@claudiolabs/claudin 1.1.22 → 1.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.1.23-vycpz7yt.mjs +1 -0
- package/dist/chunks/App-1.1.23-4e8j2bd3.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.23-zst4089h.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.23-5hcs6ecz.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.23-dd0gy0z6.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.23-st6gcnzm.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.23-9q5hv0m5.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.23-37xx0cvg.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.23-0mhma9am.mjs +6 -0
- package/dist/chunks/Doctor-1.1.23-er5wr07d.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.23-r0q2mdyq.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.23-9w1hnwqa.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.23-pceysmem.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.23-wqg7m1yb.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.23-jvwd5evb.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.23-12qbzfp4.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.23-gz4gqcm4.mjs +1 -0
- package/dist/chunks/REPL-1.1.23-vg0qg9my.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.23-ma5pytfz.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.23-j0x7q43m.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.23-5fbd2jd2.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.23-zx9qhe0w.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.23-2fpwy0ej.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.23-fjghg3n9.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.23-ct6qdm0d.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.23-ajcjhwrt.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.23-taz5qq4d.mjs +1 -0
- package/dist/chunks/add-dir-1.1.23-yb7mzffx.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.23-779zy67c.mjs +1 -0
- package/dist/chunks/agents-1.1.23-13ae3y31.mjs +110 -0
- package/dist/chunks/agents-1.1.23-mz2jsne2.mjs +3 -0
- package/dist/chunks/api-1.1.23-sadzsv9h.mjs +1 -0
- package/dist/chunks/asciicast-1.1.23-ccrtpq7h.mjs +1 -0
- package/dist/chunks/assistant-1.1.23-35t6yajq.mjs +1 -0
- package/dist/chunks/auth-1.1.23-2mazt66r.mjs +1 -0
- package/dist/chunks/auth-1.1.23-f804wpq0.mjs +1 -0
- package/dist/chunks/autoMode-1.1.23-14t0khqy.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.23-xxctnwmg.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.23-wjwsw0rs.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.23-pdgb72sw.mjs +1 -0
- package/dist/chunks/branch-1.1.23-df4c0964.mjs +4 -0
- package/dist/chunks/bridge-1.1.23-kkp1c9j5.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.23-5xm11ndj.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.23-tjahj3z4.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.23-0pzcvrp1.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.23-6rp86r12.mjs +1 -0
- package/dist/chunks/btw-1.1.23-8eq1q86j.mjs +1 -0
- package/dist/chunks/buddy-1.1.23-1raw3vjp.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.23-t476aagd.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.23-r3dg9dbs.mjs +4 -0
- package/dist/chunks/caches-1.1.23-6eegsnhk.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.1.23-rwmxta3h.mjs +1 -0
- package/dist/chunks/claudemd-1.1.23-av012etb.mjs +1 -0
- package/dist/chunks/clear-1.1.23-z6d1gwfs.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.23-stp5kwm2.mjs +1 -0
- package/dist/chunks/cli-1.1.23-08g4ya29.mjs +2 -0
- package/dist/chunks/cli-1.1.23-0mg2h5ny.mjs +4 -0
- package/dist/chunks/cli-1.1.23-13w02myd.mjs +2 -0
- package/dist/chunks/cli-1.1.23-18zz9bbk.mjs +2 -0
- package/dist/chunks/cli-1.1.23-1a2n71wn.mjs +5 -0
- package/dist/chunks/cli-1.1.23-1e9zjn1z.mjs +3 -0
- package/dist/chunks/cli-1.1.23-1fexxp20.mjs +2 -0
- package/dist/chunks/cli-1.1.23-1fy18jhn.mjs +4 -0
- package/dist/chunks/cli-1.1.23-1r6w3hc9.mjs +2 -0
- package/dist/chunks/cli-1.1.23-1rea0qrn.mjs +2 -0
- package/dist/chunks/cli-1.1.23-1rv4y64b.mjs +2 -0
- package/dist/chunks/cli-1.1.23-2arbhkcc.mjs +24 -0
- package/dist/chunks/cli-1.1.23-2cqrzcwp.mjs +4 -0
- package/dist/chunks/cli-1.1.23-2g7503ny.mjs +133 -0
- package/dist/chunks/cli-1.1.23-2gax24jg.mjs +2 -0
- package/dist/chunks/cli-1.1.23-2swa87qn.mjs +2 -0
- package/dist/chunks/cli-1.1.23-2zmj7bmt.mjs +2 -0
- package/dist/chunks/cli-1.1.23-39e6gsmv.mjs +7 -0
- package/dist/chunks/cli-1.1.23-3hnz7314.mjs +2 -0
- package/dist/chunks/cli-1.1.23-3myqt8k1.mjs +2 -0
- package/dist/chunks/cli-1.1.23-3t45wkcy.mjs +2 -0
- package/dist/chunks/cli-1.1.23-3tbvgbsz.mjs +24 -0
- package/dist/chunks/cli-1.1.23-3v88zfgv.mjs +2 -0
- package/dist/chunks/cli-1.1.23-3vzk6gte.mjs +2 -0
- package/dist/chunks/cli-1.1.23-4r2e2zqk.mjs +2 -0
- package/dist/chunks/cli-1.1.23-4tcfdexs.mjs +3 -0
- package/dist/chunks/cli-1.1.23-4z00tj56.mjs +20 -0
- package/dist/chunks/cli-1.1.23-534g4n3n.mjs +2 -0
- package/dist/chunks/cli-1.1.23-5bcs19jr.mjs +2 -0
- package/dist/chunks/cli-1.1.23-5jka5ps0.mjs +2 -0
- package/dist/chunks/cli-1.1.23-5nf6hd1y.mjs +3 -0
- package/dist/chunks/cli-1.1.23-5xfyp6fr.mjs +2 -0
- package/dist/chunks/cli-1.1.23-61q858yx.mjs +24 -0
- package/dist/chunks/cli-1.1.23-67rrc0m6.mjs +6 -0
- package/dist/chunks/cli-1.1.23-6801e7pm.mjs +34 -0
- package/dist/chunks/cli-1.1.23-69bhvv0j.mjs +2 -0
- package/dist/chunks/cli-1.1.23-6d34yw4z.mjs +2 -0
- package/dist/chunks/cli-1.1.23-6dmkrxmn.mjs +3 -0
- package/dist/chunks/cli-1.1.23-6eg5g01d.mjs +2 -0
- package/dist/chunks/cli-1.1.23-6f46jqfm.mjs +2 -0
- package/dist/chunks/cli-1.1.23-6fa2z4j7.mjs +2 -0
- package/dist/chunks/cli-1.1.23-6jn1rxac.mjs +3 -0
- package/dist/chunks/cli-1.1.23-6svwd47h.mjs +2 -0
- package/dist/chunks/cli-1.1.23-6vn61k3h.mjs +4 -0
- package/dist/chunks/cli-1.1.23-6zb0fha5.mjs +2 -0
- package/dist/chunks/cli-1.1.23-7081am2r.mjs +60 -0
- package/dist/chunks/cli-1.1.23-73rtfe6f.mjs +2 -0
- package/dist/chunks/cli-1.1.23-7672wfdw.mjs +2 -0
- package/dist/chunks/cli-1.1.23-79fjt009.mjs +2 -0
- package/dist/chunks/cli-1.1.23-7btdskbp.mjs +2 -0
- package/dist/chunks/cli-1.1.23-7jpsfgxt.mjs +2 -0
- package/dist/chunks/cli-1.1.23-7ke90t8x.mjs +2 -0
- package/dist/chunks/cli-1.1.23-7p15pph2.mjs +2 -0
- package/dist/chunks/cli-1.1.23-84j1qdx5.mjs +2 -0
- package/dist/chunks/cli-1.1.23-89dm39zw.mjs +2 -0
- package/dist/chunks/cli-1.1.23-8cwhqjmg.mjs +2 -0
- package/dist/chunks/cli-1.1.23-8qrr5zea.mjs +2 -0
- package/dist/chunks/cli-1.1.23-8sb0xktt.mjs +1 -0
- package/dist/chunks/cli-1.1.23-8tv84m75.mjs +2 -0
- package/dist/chunks/cli-1.1.23-8yb4p9wj.mjs +4 -0
- package/dist/chunks/cli-1.1.23-8zysx8xg.mjs +6 -0
- package/dist/chunks/cli-1.1.23-913hrrgx.mjs +2 -0
- package/dist/chunks/cli-1.1.23-91n79mdp.mjs +2 -0
- package/dist/chunks/cli-1.1.23-971f3zzk.mjs +2 -0
- package/dist/chunks/cli-1.1.23-9b08qsth.mjs +2 -0
- package/dist/chunks/cli-1.1.23-9bpzr9w9.mjs +2 -0
- package/dist/chunks/cli-1.1.23-9h8vjbtg.mjs +2 -0
- package/dist/chunks/cli-1.1.23-9qe28y65.mjs +16 -0
- package/dist/chunks/cli-1.1.23-9txgxd8x.mjs +2 -0
- package/dist/chunks/cli-1.1.23-9vqnsq1x.mjs +2 -0
- package/dist/chunks/cli-1.1.23-9zrhw582.mjs +2 -0
- package/dist/chunks/cli-1.1.23-a1w72kgd.mjs +12 -0
- package/dist/chunks/cli-1.1.23-a6h0h87f.mjs +18 -0
- package/dist/chunks/cli-1.1.23-a95wepyn.mjs +66 -0
- package/dist/chunks/cli-1.1.23-a9b5aae8.mjs +2 -0
- package/dist/chunks/cli-1.1.23-afsrnsz6.mjs +7 -0
- package/dist/chunks/cli-1.1.23-ah6fas1q.mjs +2 -0
- package/dist/chunks/cli-1.1.23-akghy19s.mjs +58 -0
- package/dist/chunks/cli-1.1.23-b00bqmpw.mjs +2 -0
- package/dist/chunks/cli-1.1.23-bdj1ne1r.mjs +2 -0
- package/dist/chunks/cli-1.1.23-beazn1ym.mjs +45 -0
- package/dist/chunks/cli-1.1.23-bfcbpz9k.mjs +15 -0
- package/dist/chunks/cli-1.1.23-bghc6n12.mjs +2 -0
- package/dist/chunks/cli-1.1.23-bkd2235z.mjs +2 -0
- package/dist/chunks/cli-1.1.23-bqb900hx.mjs +2 -0
- package/dist/chunks/cli-1.1.23-btem08d6.mjs +2 -0
- package/dist/chunks/cli-1.1.23-c49xxwj4.mjs +2 -0
- package/dist/chunks/cli-1.1.23-c5rb4b67.mjs +2 -0
- package/dist/chunks/cli-1.1.23-cdsq9bfc.mjs +2 -0
- package/dist/chunks/cli-1.1.23-cf9wpsc7.mjs +3 -0
- package/dist/chunks/cli-1.1.23-cg8mndc0.mjs +2 -0
- package/dist/chunks/cli-1.1.23-cmmvjc9g.mjs +2 -0
- package/dist/chunks/cli-1.1.23-cp5z31eb.mjs +2 -0
- package/dist/chunks/cli-1.1.23-cpdr6mcc.mjs +50 -0
- package/dist/chunks/cli-1.1.23-d98p8mnw.mjs +2 -0
- package/dist/chunks/cli-1.1.23-dd8dp11f.mjs +2 -0
- package/dist/chunks/cli-1.1.23-dm6get34.mjs +42 -0
- package/dist/chunks/cli-1.1.23-dmc5g4zs.mjs +2 -0
- package/dist/chunks/cli-1.1.23-dnf57r3v.mjs +2 -0
- package/dist/chunks/cli-1.1.23-dspgg8gk.mjs +2 -0
- package/dist/chunks/cli-1.1.23-dxtv4be7.mjs +2 -0
- package/dist/chunks/cli-1.1.23-e3g5ahaf.mjs +2 -0
- package/dist/chunks/cli-1.1.23-e3zf752q.mjs +2 -0
- package/dist/chunks/cli-1.1.23-e7vvcy9q.mjs +2 -0
- package/dist/chunks/cli-1.1.23-ea3wd7a4.mjs +9 -0
- package/dist/chunks/cli-1.1.23-eh1w5te8.mjs +2 -0
- package/dist/chunks/cli-1.1.23-eyrgaj5n.mjs +15 -0
- package/dist/chunks/cli-1.1.23-f001cyx3.mjs +2 -0
- package/dist/chunks/cli-1.1.23-f1xqkfa1.mjs +2 -0
- package/dist/chunks/cli-1.1.23-f3x0gp77.mjs +2 -0
- package/dist/chunks/cli-1.1.23-fd4gay6z.mjs +2 -0
- package/dist/chunks/cli-1.1.23-ft6azs1x.mjs +3 -0
- package/dist/chunks/cli-1.1.23-fxt20eva.mjs +2 -0
- package/dist/chunks/cli-1.1.23-fxyf1cph.mjs +2 -0
- package/dist/chunks/cli-1.1.23-g16f6f0k.mjs +6 -0
- package/dist/chunks/cli-1.1.23-g3ps2zfa.mjs +2 -0
- package/dist/chunks/cli-1.1.23-g6b9c447.mjs +2 -0
- package/dist/chunks/cli-1.1.23-gfa8cfzz.mjs +2 -0
- package/dist/chunks/cli-1.1.23-gqpma6kp.mjs +2 -0
- package/dist/chunks/cli-1.1.23-gqzmsste.mjs +2 -0
- package/dist/chunks/cli-1.1.23-gt2whh9g.mjs +25 -0
- package/dist/chunks/cli-1.1.23-h8qgj8ca.mjs +17 -0
- package/dist/chunks/cli-1.1.23-h9a97qvh.mjs +17 -0
- package/dist/chunks/cli-1.1.23-hdrz15yh.mjs +2 -0
- package/dist/chunks/cli-1.1.23-hemwg8ag.mjs +2 -0
- package/dist/chunks/cli-1.1.23-hkttfc6z.mjs +2 -0
- package/dist/chunks/cli-1.1.23-hmtg8m65.mjs +2 -0
- package/dist/chunks/cli-1.1.23-hynrf6x1.mjs +5456 -0
- package/dist/chunks/cli-1.1.23-j1834bmw.mjs +8 -0
- package/dist/chunks/cli-1.1.23-j50f02dv.mjs +3 -0
- package/dist/chunks/cli-1.1.23-j8pns1dc.mjs +9 -0
- package/dist/chunks/cli-1.1.23-j9tza8qb.mjs +2 -0
- package/dist/chunks/cli-1.1.23-jam2qpf9.mjs +2 -0
- package/dist/chunks/cli-1.1.23-jax91df0.mjs +2 -0
- package/dist/chunks/cli-1.1.23-jb9w45wb.mjs +2 -0
- package/dist/chunks/cli-1.1.23-jefmjg1q.mjs +2 -0
- package/dist/chunks/cli-1.1.23-jf6jqrkj.mjs +4 -0
- package/dist/chunks/cli-1.1.23-jv6dcqe2.mjs +2 -0
- package/dist/chunks/cli-1.1.23-kc1tbe8y.mjs +6 -0
- package/dist/chunks/cli-1.1.23-keftnbc6.mjs +206 -0
- package/dist/chunks/cli-1.1.23-kqechz3h.mjs +3 -0
- package/dist/chunks/cli-1.1.23-kwbgn4rk.mjs +4 -0
- package/dist/chunks/cli-1.1.23-mdnfpw2r.mjs +4 -0
- package/dist/chunks/cli-1.1.23-mg8gngc9.mjs +2 -0
- package/dist/chunks/cli-1.1.23-mqhr3zhn.mjs +2 -0
- package/dist/chunks/cli-1.1.23-mtz1dxjx.mjs +2 -0
- package/dist/chunks/cli-1.1.23-n0182x8j.mjs +2 -0
- package/dist/chunks/cli-1.1.23-n2b7hpwm.mjs +2 -0
- package/dist/chunks/cli-1.1.23-n3aqpv08.mjs +2 -0
- package/dist/chunks/cli-1.1.23-n73gbfxf.mjs +2 -0
- package/dist/chunks/cli-1.1.23-nr6xamsd.mjs +2 -0
- package/dist/chunks/cli-1.1.23-p3m54nrk.mjs +12 -0
- package/dist/chunks/cli-1.1.23-pjmjhm4y.mjs +2 -0
- package/dist/chunks/cli-1.1.23-pw5hm4mz.mjs +3 -0
- package/dist/chunks/cli-1.1.23-qn9572e2.mjs +2 -0
- package/dist/chunks/cli-1.1.23-qrr9yfsn.mjs +2 -0
- package/dist/chunks/cli-1.1.23-r21frpa6.mjs +6 -0
- package/dist/chunks/cli-1.1.23-r3rsk08v.mjs +2 -0
- package/dist/chunks/cli-1.1.23-r3waeyk4.mjs +2 -0
- package/dist/chunks/cli-1.1.23-r6f0jbrx.mjs +2 -0
- package/dist/chunks/cli-1.1.23-rcxg7gfm.mjs +25 -0
- package/dist/chunks/cli-1.1.23-rd74yzp6.mjs +2 -0
- package/dist/chunks/cli-1.1.23-re0ge1zr.mjs +2 -0
- package/dist/chunks/cli-1.1.23-rgc4d03t.mjs +2 -0
- package/dist/chunks/cli-1.1.23-rjt1xt8g.mjs +2 -0
- package/dist/chunks/cli-1.1.23-rpxkp0kh.mjs +2 -0
- package/dist/chunks/cli-1.1.23-s21f8qza.mjs +2 -0
- package/dist/chunks/cli-1.1.23-s2pn202f.mjs +4 -0
- package/dist/chunks/cli-1.1.23-s943evpq.mjs +2 -0
- package/dist/chunks/cli-1.1.23-sbyq9afq.mjs +21 -0
- package/dist/chunks/cli-1.1.23-sch1s17t.mjs +2 -0
- package/dist/chunks/cli-1.1.23-se379e5e.mjs +15 -0
- package/dist/chunks/cli-1.1.23-swf2c8db.mjs +2 -0
- package/dist/chunks/cli-1.1.23-syq3k5mp.mjs +2 -0
- package/dist/chunks/cli-1.1.23-v22erb37.mjs +2 -0
- package/dist/chunks/cli-1.1.23-v2fscr2z.mjs +5 -0
- package/dist/chunks/cli-1.1.23-v5e3cr99.mjs +2 -0
- package/dist/chunks/cli-1.1.23-v9bysq9w.mjs +3 -0
- package/dist/chunks/cli-1.1.23-vjgmph3s.mjs +2 -0
- package/dist/chunks/cli-1.1.23-vns1fwxz.mjs +2 -0
- package/dist/chunks/cli-1.1.23-vvcr72vv.mjs +2 -0
- package/dist/chunks/cli-1.1.23-vyf2j831.mjs +2 -0
- package/dist/chunks/cli-1.1.23-w16rdkte.mjs +3 -0
- package/dist/chunks/cli-1.1.23-w96hh9h7.mjs +3 -0
- package/dist/chunks/cli-1.1.23-wd48c77m.mjs +24 -0
- package/dist/chunks/cli-1.1.23-wgecwfx4.mjs +18 -0
- package/dist/chunks/cli-1.1.23-wkvjbzna.mjs +2 -0
- package/dist/chunks/cli-1.1.23-wnxxa385.mjs +4 -0
- package/dist/chunks/cli-1.1.23-wt4jgek9.mjs +39 -0
- package/dist/chunks/cli-1.1.23-x3te6rkf.mjs +2 -0
- package/dist/chunks/cli-1.1.23-x7yfmrs9.mjs +3 -0
- package/dist/chunks/cli-1.1.23-xafxg4a2.mjs +2 -0
- package/dist/chunks/cli-1.1.23-xgst7vty.mjs +2 -0
- package/dist/chunks/cli-1.1.23-xkt2056f.mjs +2 -0
- package/dist/chunks/cli-1.1.23-xyjeajm2.mjs +2 -0
- package/dist/chunks/cli-1.1.23-xzwwmz59.mjs +2 -0
- package/dist/chunks/cli-1.1.23-y3ea6683.mjs +2 -0
- package/dist/chunks/cli-1.1.23-y3fpdh43.mjs +2 -0
- package/dist/chunks/cli-1.1.23-ywvfrc54.mjs +2 -0
- package/dist/chunks/cli-1.1.23-yy2jcnc3.mjs +133 -0
- package/dist/chunks/cli-1.1.23-z1mvb05m.mjs +2 -0
- package/dist/chunks/cli-1.1.23-zb8savhy.mjs +6 -0
- package/dist/chunks/cli-1.1.23-zwpmh1ab.mjs +2 -0
- package/dist/chunks/client-1.1.23-mcea9qxt.mjs +1 -0
- package/dist/chunks/color-1.1.23-e9h5ff51.mjs +1 -0
- package/dist/chunks/compact-1.1.23-66s1gsw9.mjs +3 -0
- package/dist/chunks/config-1.1.23-j8frjsmx.mjs +1 -0
- package/dist/chunks/config-1.1.23-kedfvs1w.mjs +1 -0
- package/dist/chunks/constants-1.1.23-9gn99pw5.mjs +1 -0
- package/dist/chunks/context-1.1.23-bbrdpmdb.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.23-f8h7s1k6.mjs +1 -0
- package/dist/chunks/conversation-1.1.23-s003tkm4.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.23-ktfjf8vp.mjs +1 -0
- package/dist/chunks/copy-1.1.23-vydqekfj.mjs +9 -0
- package/dist/chunks/cost-1.1.23-wp3xmmkp.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.23-0dtjaw6b.mjs +1 -0
- package/dist/chunks/createSession-1.1.23-bx4zk9g9.mjs +1 -0
- package/dist/chunks/debug-1.1.23-7kg6d3tr.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.23-gpfa81s0.mjs +1534 -0
- package/dist/chunks/desktop-1.1.23-0kbkasx9.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.23-cjja5tc4.mjs +1 -0
- package/dist/chunks/detection-1.1.23-j30fjqtk.mjs +1 -0
- package/dist/chunks/diff-1.1.23-97rmmwmn.mjs +1 -0
- package/dist/chunks/doctor-1.1.23-xm4qcrg3.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.23-04mtjnab.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.23-cjvssdzr.mjs +1 -0
- package/dist/chunks/effort-1.1.23-9wwy3zcx.mjs +13 -0
- package/dist/chunks/engine-1.1.23-zted98hq.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.23-ga3cphpb.mjs +1 -0
- package/dist/chunks/envUtils-1.1.23-rqpvwp80.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.23-mv2a2h1j.mjs +1 -0
- package/dist/chunks/environments-1.1.23-4jsfjwva.mjs +1 -0
- package/dist/chunks/errors-1.1.23-9xwf7tdw.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.23-80yr756b.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.23-psbfft6h.mjs +1 -0
- package/dist/chunks/exit-1.1.23-vrg1sh8k.mjs +1 -0
- package/dist/chunks/explorer-1.1.23-g4rr4dbw.mjs +1 -0
- package/dist/chunks/export-1.1.23-811x7m0f.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.23-ytv7q7g9.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.23-kfdpp2zp.mjs +1 -0
- package/dist/chunks/fast-1.1.23-vxqr4rn1.mjs +1 -0
- package/dist/chunks/feedback-1.1.23-sfxf5wts.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.23-1gh6mqe9.mjs +1 -0
- package/dist/chunks/git-1.1.23-ybtn6n7y.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.23-ty811pr3.mjs +1 -0
- package/dist/chunks/goal-1.1.23-cmzk221k.mjs +4 -0
- package/dist/chunks/growthbook-1.1.23-3q1rbkkk.mjs +1 -0
- package/dist/chunks/headless-1.1.23-bkk5p8rm.mjs +2 -0
- package/dist/chunks/heapdump-1.1.23-ea8pzqst.mjs +6 -0
- package/dist/chunks/help-1.1.23-r7j3xk0t.mjs +1 -0
- package/dist/chunks/hookChains-1.1.23-3gw3ts22.mjs +3 -0
- package/dist/chunks/hooks-1.1.23-nh96m542.mjs +1 -0
- package/dist/chunks/hooks-1.1.23-pggycv75.mjs +79 -0
- package/dist/chunks/ide-1.1.23-qfkj03dp.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.23-etg91fj9.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.1.23-gct8j14t.mjs +1 -0
- package/dist/chunks/index-1.1.23-04w67ps4.mjs +1 -0
- package/dist/chunks/index-1.1.23-0qn8x2ym.mjs +2 -0
- package/dist/chunks/index-1.1.23-16krzxwz.mjs +1 -0
- package/dist/chunks/index-1.1.23-2mwhvv7z.mjs +2 -0
- package/dist/chunks/index-1.1.23-5xkpaxba.mjs +1 -0
- package/dist/chunks/index-1.1.23-87bctdxv.mjs +1 -0
- package/dist/chunks/index-1.1.23-894gw6j8.mjs +1 -0
- package/dist/chunks/index-1.1.23-bcrdf2k3.mjs +9 -0
- package/dist/chunks/index-1.1.23-ed1jbmt6.mjs +1 -0
- package/dist/chunks/index-1.1.23-hzafkcpn.mjs +30 -0
- package/dist/chunks/index-1.1.23-jfybaapb.mjs +9 -0
- package/dist/chunks/index-1.1.23-mbvmhq60.mjs +1 -0
- package/dist/chunks/index-1.1.23-nq44z8sn.mjs +1 -0
- package/dist/chunks/index-1.1.23-p84yrb6r.mjs +1 -0
- package/dist/chunks/index-1.1.23-sd9cv8pk.mjs +23 -0
- package/dist/chunks/index-1.1.23-v3pvt45w.mjs +1 -0
- package/dist/chunks/index-1.1.23-vnn2xc4y.mjs +1 -0
- package/dist/chunks/index-1.1.23-vw0ns36r.mjs +1 -0
- package/dist/chunks/index-1.1.23-xb876pe7.mjs +5 -0
- package/dist/chunks/index-1.1.23-xfzxwabm.mjs +1 -0
- package/dist/chunks/index-1.1.23-yjt3kte0.mjs +1 -0
- package/dist/chunks/index-1.1.23-ymq59t45.mjs +1 -0
- package/dist/chunks/index-1.1.23-ytps69pn.mjs +1 -0
- package/dist/chunks/init-1.1.23-68d7nbfy.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.23-zaa5v40e.mjs +1 -0
- package/dist/chunks/ink-1.1.23-vb2phcn9.mjs +1 -0
- package/dist/chunks/insights-1.1.23-hnbtjced.mjs +870 -0
- package/dist/chunks/install-1.1.23-ayas8qxr.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.23-mph12hm0.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.23-9fs5jpzj.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.23-g4we2v3z.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.23-72qdetj8.mjs +1 -0
- package/dist/chunks/keybindings-1.1.23-qb0smw96.mjs +2 -0
- package/dist/chunks/knowledge-1.1.23-05gqt07k.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.23-1xrk6v9s.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.23-x9vbg6j3.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.23-b0kt93we.mjs +1 -0
- package/dist/chunks/log-1.1.23-raemwqxy.mjs +1 -0
- package/dist/chunks/main-1.1.23-ktwpj2m3.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.23-wnqxm7br.mjs +1 -0
- package/dist/chunks/mcp-1.1.23-mtw0ktrf.mjs +17 -0
- package/dist/chunks/mcp-1.1.23-s9pkvzz6.mjs +4 -0
- package/dist/chunks/mcp-1.1.23-wcc13fhx.mjs +1 -0
- package/dist/chunks/mcpb-1.1.23-90y8tgct.mjs +1 -0
- package/dist/chunks/memory-1.1.23-bvsjvxnw.mjs +72 -0
- package/dist/chunks/model-1.1.23-m65499d4.mjs +1 -0
- package/dist/chunks/model-1.1.23-rdvj7rvy.mjs +2 -0
- package/dist/chunks/node-1.1.23-bqy7dzrh.mjs +14 -0
- package/dist/chunks/oauth-1.1.23-x33h0bwk.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.23-0bheqhmg.mjs +14 -0
- package/dist/chunks/output-style-1.1.23-kxxfbqnj.mjs +1 -0
- package/dist/chunks/package-ZOVFJE7Z-1.1.23-cvn9aynn.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.23-r2c69hpj.mjs +1 -0
- package/dist/chunks/parser-1.1.23-9gjy8yyd.mjs +1 -0
- package/dist/chunks/passes-1.1.23-jt18rvzt.mjs +1 -0
- package/dist/chunks/permissions-1.1.23-krb3w1g6.mjs +3 -0
- package/dist/chunks/permissions-1.1.23-r2894sce.mjs +1 -0
- package/dist/chunks/plan-1.1.23-z731dw1m.mjs +1 -0
- package/dist/chunks/plist-1.1.23-5761s0b4.mjs +1 -0
- package/dist/chunks/plugin-1.1.23-p7pdz7d1.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.23-mm4bszh7.mjs +1 -0
- package/dist/chunks/plugins-1.1.23-egkwh4yf.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.23-v994g2s0.mjs +2 -0
- package/dist/chunks/print-1.1.23-g988xjb3.mjs +57 -0
- package/dist/chunks/process-1.1.23-eh0mn414.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.23-cnnyqpaq.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.23-vs9vb8en.mjs +9 -0
- package/dist/chunks/prompt-1.1.23-4mk9fy81.mjs +1 -0
- package/dist/chunks/prompt-1.1.23-qmqyfem4.mjs +1 -0
- package/dist/chunks/prompts-1.1.23-jeeypg6w.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.23-1davtsam.mjs +13 -0
- package/dist/chunks/provider-1.1.23-x1hzx1zj.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.23-bkm9vq79.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.23-z2rg5707.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.23-f0hm4mbj.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.23-mhtafhr6.mjs +26 -0
- package/dist/chunks/registry-1.1.23-hyqgjbyg.mjs +1 -0
- package/dist/chunks/release-notes-1.1.23-q1am84ke.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.23-nd1fctqt.mjs +2 -0
- package/dist/chunks/remote-env-1.1.23-m2zzn0f8.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.23-vd210k89.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.23-1jpg062g.mjs +1 -0
- package/dist/chunks/rename-1.1.23-ma9ny7xb.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.23-08pq9q2p.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.23-wsqwfhc4.mjs +1 -0
- package/dist/chunks/resume-1.1.23-hkg0scyr.mjs +2 -0
- package/dist/chunks/rewind-1.1.23-jd6j4sgm.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.23-m526t4yf.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.23-8mxg8581.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.23-pb9hd8jw.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.23-38kf297y.mjs +1 -0
- package/dist/chunks/session-1.1.23-mws1tmy1.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.23-8819q77c.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.23-zq8cgfyk.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.23-m9mm0gy5.mjs +1 -0
- package/dist/chunks/settings-1.1.23-3fm1v708.mjs +1 -0
- package/dist/chunks/setup-1.1.23-rf97k4ha.mjs +12 -0
- package/dist/chunks/sinks-1.1.23-qgn22fd9.mjs +1 -0
- package/dist/chunks/skills-1.1.23-aed2c5zd.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.23-qrw1wxzd.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.23-pwj6hq5b.mjs +1 -0
- package/dist/chunks/state-1.1.23-jxkq1t17.mjs +1 -0
- package/dist/chunks/stats-1.1.23-5kg21t1n.mjs +6 -0
- package/dist/chunks/status-1.1.23-zkcmaawr.mjs +1 -0
- package/dist/chunks/stickers-1.1.23-qag1twc4.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.23-ahy63kbs.mjs +1 -0
- package/dist/chunks/tasks-1.1.23-89zfdmw0.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.23-wnq5c429.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.23-zrc83hqd.mjs +1 -0
- package/dist/chunks/teleport-1.1.23-cabj7qs6.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.23-3jp21th9.mjs +1 -0
- package/dist/chunks/theme-1.1.23-n5t1dngt.mjs +1 -0
- package/dist/chunks/thinkback-1.1.23-4a2rem3s.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.23-3928h8m5.mjs +1 -0
- package/dist/chunks/toolPool-1.1.23-yeszysf1.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.23-x75878b7.mjs +1 -0
- package/dist/chunks/tools-1.1.23-m04a9j6h.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.23-rxgc65b0.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.23-e39vsv0v.mjs +69 -0
- package/dist/chunks/types-1.1.23-pca5g3df.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.23-mr97q52h.mjs +4 -0
- package/dist/chunks/update-1.1.23-3xmkkhns.mjs +72 -0
- package/dist/chunks/upgrade-1.1.23-8vn6552j.mjs +1 -0
- package/dist/chunks/upload-1.1.23-cx2aj445.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.23-8rxwm8d3.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.23-5e49greb.mjs +1 -0
- package/dist/chunks/usage-1.1.23-bndk03g2.mjs +1 -0
- package/dist/chunks/util-1.1.23-cb0nrsh4.mjs +1 -0
- package/dist/chunks/utils-1.1.23-t0mge2p3.mjs +1 -0
- package/dist/chunks/vim-1.1.23-trn7yz9v.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.23-m61k9zxv.mjs +13 -0
- package/dist/chunks/watcher-1.1.23-vbwspp2c.mjs +1 -0
- package/dist/chunks/wiki-1.1.23-a9pe4h8f.mjs +132 -0
- package/dist/chunks/workflows-1.1.23-nbvbwe56.mjs +1 -0
- package/dist/chunks/worktree-1.1.23-tdh9qszq.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.23-bhescr26.mjs +1 -0
- package/dist/chunks/wrapper-1.1.23-xbpjcwkh.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.22-4ba6sbn1.mjs +0 -1
- package/dist/chunks/App-1.1.22-2m11r40p.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.22-zp1y1218.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.22-s95rx0gk.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.22-5qa3134t.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.22-m5fc6nej.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.22-bnv9d1h5.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.22-g92az35d.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.22-9ccdds3r.mjs +0 -6
- package/dist/chunks/Doctor-1.1.22-1gc86nqw.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.22-z6sndn27.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.22-gb09bshz.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.22-52wjx92m.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.22-q6j91dba.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.22-z6x86qa5.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.22-05vxshwk.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.22-zh99bzde.mjs +0 -1
- package/dist/chunks/REPL-1.1.22-2c229abh.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.22-jp1q8573.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.22-s20kx6cz.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.22-036phq5k.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.22-2fpx0v36.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.22-q9xh6c1x.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.22-shtyh6x1.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.22-hwnb32mw.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.22-tx9d7tzw.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.22-qd5cmwvf.mjs +0 -1
- package/dist/chunks/add-dir-1.1.22-be3sb4ed.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.22-rm5akk7n.mjs +0 -1
- package/dist/chunks/agents-1.1.22-ad8hknzy.mjs +0 -3
- package/dist/chunks/agents-1.1.22-c8hb8sst.mjs +0 -110
- package/dist/chunks/api-1.1.22-b74pv1bc.mjs +0 -1
- package/dist/chunks/asciicast-1.1.22-qz35a5k4.mjs +0 -1
- package/dist/chunks/assistant-1.1.22-mqc1g16y.mjs +0 -1
- package/dist/chunks/auth-1.1.22-hwjcqvy4.mjs +0 -1
- package/dist/chunks/auth-1.1.22-pwa369jw.mjs +0 -1
- package/dist/chunks/autoMode-1.1.22-3by2zax3.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.22-e4mn7cas.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.22-ng881g40.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.22-hxy5jpcq.mjs +0 -1
- package/dist/chunks/branch-1.1.22-akcs4dk5.mjs +0 -4
- package/dist/chunks/bridge-1.1.22-rttgyvkn.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.22-gtqyk17c.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.22-tfhha37q.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.22-mt52dzzq.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.22-bqaet342.mjs +0 -1
- package/dist/chunks/btw-1.1.22-y44fbm0x.mjs +0 -1
- package/dist/chunks/buddy-1.1.22-1jzcjwyr.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.22-wmckr2fj.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.22-rzg950xm.mjs +0 -4
- package/dist/chunks/caches-1.1.22-kabyzmmd.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.22-7mafzt35.mjs +0 -1
- package/dist/chunks/claudemd-1.1.22-genp8cn4.mjs +0 -1
- package/dist/chunks/clear-1.1.22-ta3shrbf.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.22-hvkervt4.mjs +0 -1
- package/dist/chunks/cli-1.1.22-00s47593.mjs +0 -4
- package/dist/chunks/cli-1.1.22-01xfy12n.mjs +0 -18
- package/dist/chunks/cli-1.1.22-01yb5we4.mjs +0 -2
- package/dist/chunks/cli-1.1.22-0553cn3c.mjs +0 -3
- package/dist/chunks/cli-1.1.22-073y3gd5.mjs +0 -2
- package/dist/chunks/cli-1.1.22-07prh801.mjs +0 -2
- package/dist/chunks/cli-1.1.22-09eb3077.mjs +0 -2
- package/dist/chunks/cli-1.1.22-0h7jejsr.mjs +0 -3
- package/dist/chunks/cli-1.1.22-0n0cxg2p.mjs +0 -4
- package/dist/chunks/cli-1.1.22-0x96ahhc.mjs +0 -4
- package/dist/chunks/cli-1.1.22-1099x9x2.mjs +0 -2
- package/dist/chunks/cli-1.1.22-12vfd6j1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-1npmfnxb.mjs +0 -50
- package/dist/chunks/cli-1.1.22-1tqdha8j.mjs +0 -2
- package/dist/chunks/cli-1.1.22-1vrzwj7y.mjs +0 -2
- package/dist/chunks/cli-1.1.22-22735g9w.mjs +0 -2
- package/dist/chunks/cli-1.1.22-261r450y.mjs +0 -60
- package/dist/chunks/cli-1.1.22-265a4qpa.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2bdf1etb.mjs +0 -4
- package/dist/chunks/cli-1.1.22-2getjsf5.mjs +0 -6
- package/dist/chunks/cli-1.1.22-2mahjtgk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2nwmyakz.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2rqykpy1.mjs +0 -18
- package/dist/chunks/cli-1.1.22-2t3fhfjv.mjs +0 -133
- package/dist/chunks/cli-1.1.22-2tctx2yg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2wh33kpx.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2y82t3pd.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2yxd7hfb.mjs +0 -2
- package/dist/chunks/cli-1.1.22-2zhxvvkx.mjs +0 -2
- package/dist/chunks/cli-1.1.22-33jc9czg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-35fe0h6z.mjs +0 -2
- package/dist/chunks/cli-1.1.22-3ehpcpz4.mjs +0 -2
- package/dist/chunks/cli-1.1.22-3h20fb9d.mjs +0 -2
- package/dist/chunks/cli-1.1.22-3jyydg5h.mjs +0 -206
- package/dist/chunks/cli-1.1.22-3nmtk1bh.mjs +0 -2
- package/dist/chunks/cli-1.1.22-3r3tadt1.mjs +0 -4
- package/dist/chunks/cli-1.1.22-3thczx3s.mjs +0 -133
- package/dist/chunks/cli-1.1.22-3xjx3y13.mjs +0 -2
- package/dist/chunks/cli-1.1.22-41aseceq.mjs +0 -3
- package/dist/chunks/cli-1.1.22-4227vtcf.mjs +0 -24
- package/dist/chunks/cli-1.1.22-48gjx3j7.mjs +0 -2
- package/dist/chunks/cli-1.1.22-4g11fbx3.mjs +0 -2
- package/dist/chunks/cli-1.1.22-4ph3xqne.mjs +0 -2
- package/dist/chunks/cli-1.1.22-4pmfh5v2.mjs +0 -2
- package/dist/chunks/cli-1.1.22-5afprdre.mjs +0 -2
- package/dist/chunks/cli-1.1.22-5dcmb4h9.mjs +0 -2
- package/dist/chunks/cli-1.1.22-5mzq5mc4.mjs +0 -24
- package/dist/chunks/cli-1.1.22-5vkvwgh1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-619cwdw8.mjs +0 -2
- package/dist/chunks/cli-1.1.22-6bxa25n5.mjs +0 -2
- package/dist/chunks/cli-1.1.22-6gd42s2a.mjs +0 -2
- package/dist/chunks/cli-1.1.22-6k5nt5wc.mjs +0 -2
- package/dist/chunks/cli-1.1.22-6khex7bz.mjs +0 -34
- package/dist/chunks/cli-1.1.22-6vtb75g8.mjs +0 -2
- package/dist/chunks/cli-1.1.22-73mzmb6a.mjs +0 -3
- package/dist/chunks/cli-1.1.22-796yez98.mjs +0 -2
- package/dist/chunks/cli-1.1.22-7dha9j2p.mjs +0 -3
- package/dist/chunks/cli-1.1.22-7rm6jw0h.mjs +0 -17
- package/dist/chunks/cli-1.1.22-7rv96st9.mjs +0 -4
- package/dist/chunks/cli-1.1.22-7xwf9v6n.mjs +0 -2
- package/dist/chunks/cli-1.1.22-7zv5k6p0.mjs +0 -2
- package/dist/chunks/cli-1.1.22-87m0b80d.mjs +0 -8
- package/dist/chunks/cli-1.1.22-8cxdckv7.mjs +0 -39
- package/dist/chunks/cli-1.1.22-8fwvxw5t.mjs +0 -2
- package/dist/chunks/cli-1.1.22-8zvpve6x.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9283mpm5.mjs +0 -4
- package/dist/chunks/cli-1.1.22-9affzgn1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9b6k45hn.mjs +0 -3
- package/dist/chunks/cli-1.1.22-9dr01ge1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9jjvp1h1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9t3wxp9c.mjs +0 -2
- package/dist/chunks/cli-1.1.22-9xhwr18a.mjs +0 -2
- package/dist/chunks/cli-1.1.22-a4bc88qq.mjs +0 -2
- package/dist/chunks/cli-1.1.22-an1qn05v.mjs +0 -3
- package/dist/chunks/cli-1.1.22-as4a7add.mjs +0 -5
- package/dist/chunks/cli-1.1.22-b3bpnsqk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-b7axxc6j.mjs +0 -2
- package/dist/chunks/cli-1.1.22-b81ce6x4.mjs +0 -15
- package/dist/chunks/cli-1.1.22-bfc0nw13.mjs +0 -3
- package/dist/chunks/cli-1.1.22-bj4bsta6.mjs +0 -2
- package/dist/chunks/cli-1.1.22-bnse4r9s.mjs +0 -2
- package/dist/chunks/cli-1.1.22-bv3a0vaa.mjs +0 -2
- package/dist/chunks/cli-1.1.22-bxfemtrx.mjs +0 -2
- package/dist/chunks/cli-1.1.22-byxwkfrj.mjs +0 -3
- package/dist/chunks/cli-1.1.22-c07z4d74.mjs +0 -2
- package/dist/chunks/cli-1.1.22-c1h1wfjn.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ca6d1erw.mjs +0 -6
- package/dist/chunks/cli-1.1.22-ccp7e8qv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ckvf3pt3.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ctbmc0bv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-cvfsmaqt.mjs +0 -2
- package/dist/chunks/cli-1.1.22-d1w2ky89.mjs +0 -6
- package/dist/chunks/cli-1.1.22-d7cmcmfd.mjs +0 -2
- package/dist/chunks/cli-1.1.22-d990gcrg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-d9y8qqg3.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ddq8axpw.mjs +0 -12
- package/dist/chunks/cli-1.1.22-df129qms.mjs +0 -5
- package/dist/chunks/cli-1.1.22-df9q1a85.mjs +0 -2
- package/dist/chunks/cli-1.1.22-djkeg65n.mjs +0 -2
- package/dist/chunks/cli-1.1.22-dpqknw7z.mjs +0 -2
- package/dist/chunks/cli-1.1.22-e25bz2ew.mjs +0 -9
- package/dist/chunks/cli-1.1.22-e5sxpgah.mjs +0 -2
- package/dist/chunks/cli-1.1.22-e5wx36qr.mjs +0 -2
- package/dist/chunks/cli-1.1.22-eagkxr30.mjs +0 -9
- package/dist/chunks/cli-1.1.22-eddrkydn.mjs +0 -2
- package/dist/chunks/cli-1.1.22-emmr10wb.mjs +0 -21
- package/dist/chunks/cli-1.1.22-eqtbpc0r.mjs +0 -2
- package/dist/chunks/cli-1.1.22-erbhk4p7.mjs +0 -4
- package/dist/chunks/cli-1.1.22-f0wja05z.mjs +0 -2
- package/dist/chunks/cli-1.1.22-f9ntxarz.mjs +0 -2
- package/dist/chunks/cli-1.1.22-fetzhxhh.mjs +0 -2
- package/dist/chunks/cli-1.1.22-fwhfqwwn.mjs +0 -2
- package/dist/chunks/cli-1.1.22-gkryz2d0.mjs +0 -2
- package/dist/chunks/cli-1.1.22-gpt102mm.mjs +0 -2
- package/dist/chunks/cli-1.1.22-grjw9tnm.mjs +0 -2
- package/dist/chunks/cli-1.1.22-gwhdvfge.mjs +0 -24
- package/dist/chunks/cli-1.1.22-gyhxg2db.mjs +0 -2
- package/dist/chunks/cli-1.1.22-h3m1whqm.mjs +0 -6
- package/dist/chunks/cli-1.1.22-hgwxyksg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-hhmq1rbn.mjs +0 -2
- package/dist/chunks/cli-1.1.22-hjxaqntc.mjs +0 -45
- package/dist/chunks/cli-1.1.22-hqbf8xt0.mjs +0 -3
- package/dist/chunks/cli-1.1.22-hv3m9qnv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-j6xg80k8.mjs +0 -2
- package/dist/chunks/cli-1.1.22-j7qc1g0f.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jdz4rqbp.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jech3kdr.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jrhx2z2p.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jvrjpdd1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-jz426kr2.mjs +0 -66
- package/dist/chunks/cli-1.1.22-jzvqt2pv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-k3xv38bj.mjs +0 -2
- package/dist/chunks/cli-1.1.22-kphdet4j.mjs +0 -58
- package/dist/chunks/cli-1.1.22-m41t95z0.mjs +0 -2
- package/dist/chunks/cli-1.1.22-mdapyzp3.mjs +0 -6
- package/dist/chunks/cli-1.1.22-mdttpxs6.mjs +0 -24
- package/dist/chunks/cli-1.1.22-mw0jpevk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-mxqz88pc.mjs +0 -2
- package/dist/chunks/cli-1.1.22-n0px7a23.mjs +0 -3
- package/dist/chunks/cli-1.1.22-n2jecp35.mjs +0 -2
- package/dist/chunks/cli-1.1.22-nstgtysk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-nsydz2bd.mjs +0 -2
- package/dist/chunks/cli-1.1.22-nxv6yayj.mjs +0 -2
- package/dist/chunks/cli-1.1.22-pgrcj1gs.mjs +0 -12
- package/dist/chunks/cli-1.1.22-q622p3vr.mjs +0 -16
- package/dist/chunks/cli-1.1.22-q76mjgec.mjs +0 -2
- package/dist/chunks/cli-1.1.22-qmk7mm5m.mjs +0 -2
- package/dist/chunks/cli-1.1.22-qq7q7v3n.mjs +0 -2
- package/dist/chunks/cli-1.1.22-qzc4h0w2.mjs +0 -2
- package/dist/chunks/cli-1.1.22-r0v2mak7.mjs +0 -2
- package/dist/chunks/cli-1.1.22-r7dnq81v.mjs +0 -2
- package/dist/chunks/cli-1.1.22-r9n3fz01.mjs +0 -2
- package/dist/chunks/cli-1.1.22-rd5zdpvh.mjs +0 -2
- package/dist/chunks/cli-1.1.22-rma08k7m.mjs +0 -3
- package/dist/chunks/cli-1.1.22-rsp3340r.mjs +0 -2
- package/dist/chunks/cli-1.1.22-rtn7nhkb.mjs +0 -1
- package/dist/chunks/cli-1.1.22-s2n02sky.mjs +0 -2
- package/dist/chunks/cli-1.1.22-s5qhs3ds.mjs +0 -2
- package/dist/chunks/cli-1.1.22-s6e60cqc.mjs +0 -2
- package/dist/chunks/cli-1.1.22-sema6yh6.mjs +0 -2
- package/dist/chunks/cli-1.1.22-skpsy2jm.mjs +0 -17
- package/dist/chunks/cli-1.1.22-ss970cxc.mjs +0 -2
- package/dist/chunks/cli-1.1.22-swvmx131.mjs +0 -2
- package/dist/chunks/cli-1.1.22-sy41x518.mjs +0 -2
- package/dist/chunks/cli-1.1.22-tag23y0b.mjs +0 -25
- package/dist/chunks/cli-1.1.22-tkg7zwpn.mjs +0 -20
- package/dist/chunks/cli-1.1.22-tt24grn6.mjs +0 -2
- package/dist/chunks/cli-1.1.22-v260dy3k.mjs +0 -2
- package/dist/chunks/cli-1.1.22-v2q2pts1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-v8pzx6jk.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vdsszncw.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vesjdg08.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vnmyjmjg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vp1eed3p.mjs +0 -7
- package/dist/chunks/cli-1.1.22-vwdxbs23.mjs +0 -2
- package/dist/chunks/cli-1.1.22-vwv40zm1.mjs +0 -2
- package/dist/chunks/cli-1.1.22-w09pyst3.mjs +0 -2
- package/dist/chunks/cli-1.1.22-waqb850v.mjs +0 -15
- package/dist/chunks/cli-1.1.22-wbpdne8j.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xm1rhe1d.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xmb0wn88.mjs +0 -42
- package/dist/chunks/cli-1.1.22-xmy1w9q2.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xpvyrpxz.mjs +0 -7
- package/dist/chunks/cli-1.1.22-xxwfawkh.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xygngqfs.mjs +0 -2
- package/dist/chunks/cli-1.1.22-xzrnmekb.mjs +0 -3
- package/dist/chunks/cli-1.1.22-y0t8rezv.mjs +0 -2
- package/dist/chunks/cli-1.1.22-y3te45vg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-y4rj8ced.mjs +0 -2
- package/dist/chunks/cli-1.1.22-ya408d88.mjs +0 -4
- package/dist/chunks/cli-1.1.22-yegp0d0j.mjs +0 -6
- package/dist/chunks/cli-1.1.22-yhgxca73.mjs +0 -2
- package/dist/chunks/cli-1.1.22-yjv63n10.mjs +0 -2
- package/dist/chunks/cli-1.1.22-yqbnqsen.mjs +0 -3
- package/dist/chunks/cli-1.1.22-yr5y8074.mjs +0 -4
- package/dist/chunks/cli-1.1.22-yy4d5xbz.mjs +0 -2
- package/dist/chunks/cli-1.1.22-yzk40k6c.mjs +0 -2
- package/dist/chunks/cli-1.1.22-z5g00tpb.mjs +0 -25
- package/dist/chunks/cli-1.1.22-zcrvxkff.mjs +0 -15
- package/dist/chunks/cli-1.1.22-zfg31zpg.mjs +0 -2
- package/dist/chunks/cli-1.1.22-zmt5pksy.mjs +0 -5426
- package/dist/chunks/cli-1.1.22-znq4fk8a.mjs +0 -2
- package/dist/chunks/cli-1.1.22-zsc0cmye.mjs +0 -2
- package/dist/chunks/client-1.1.22-wq8vw6a1.mjs +0 -1
- package/dist/chunks/color-1.1.22-qk5z13ac.mjs +0 -1
- package/dist/chunks/compact-1.1.22-rb84pjhg.mjs +0 -3
- package/dist/chunks/config-1.1.22-0p9ep18d.mjs +0 -1
- package/dist/chunks/config-1.1.22-5mngav76.mjs +0 -1
- package/dist/chunks/constants-1.1.22-kjrh13hv.mjs +0 -1
- package/dist/chunks/context-1.1.22-dw2er614.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.22-znhpxryw.mjs +0 -1
- package/dist/chunks/conversation-1.1.22-awv74gk2.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.22-m6ccr26v.mjs +0 -1
- package/dist/chunks/copy-1.1.22-7b5mhaaj.mjs +0 -9
- package/dist/chunks/cost-1.1.22-dt2gz43e.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.22-a42r8ywe.mjs +0 -1
- package/dist/chunks/createSession-1.1.22-ddd5ddkv.mjs +0 -1
- package/dist/chunks/debug-1.1.22-qraa5by9.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.22-ctnqgj01.mjs +0 -1534
- package/dist/chunks/desktop-1.1.22-wg1hxyyk.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.22-pn2g27hr.mjs +0 -1
- package/dist/chunks/detection-1.1.22-s8r50ft4.mjs +0 -1
- package/dist/chunks/diff-1.1.22-6sdsv83f.mjs +0 -1
- package/dist/chunks/doctor-1.1.22-cj56pasy.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.22-ezjhg329.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.22-k4tqtjbb.mjs +0 -1
- package/dist/chunks/effort-1.1.22-eztddah9.mjs +0 -13
- package/dist/chunks/engine-1.1.22-6wrga0yh.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.22-9jm3xgge.mjs +0 -1
- package/dist/chunks/envUtils-1.1.22-7qb9fr3c.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.22-4xy91rp5.mjs +0 -1
- package/dist/chunks/environments-1.1.22-ke6dvmrb.mjs +0 -1
- package/dist/chunks/errors-1.1.22-rgsmtg01.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.22-xv4kj009.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.22-m7ndjwpq.mjs +0 -1
- package/dist/chunks/exit-1.1.22-m0bm4f9d.mjs +0 -1
- package/dist/chunks/explorer-1.1.22-jsrgxmw0.mjs +0 -1
- package/dist/chunks/export-1.1.22-s0m4af77.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.22-9sdr6tyh.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.22-9k857j7m.mjs +0 -1
- package/dist/chunks/fast-1.1.22-3w3eg6gc.mjs +0 -1
- package/dist/chunks/feedback-1.1.22-7jr2gbzj.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.22-08zb6ajr.mjs +0 -1
- package/dist/chunks/git-1.1.22-m66s3f9x.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.22-2r1deqm3.mjs +0 -1
- package/dist/chunks/goal-1.1.22-60jn1knb.mjs +0 -4
- package/dist/chunks/growthbook-1.1.22-jnddje2q.mjs +0 -1
- package/dist/chunks/headless-1.1.22-jc8xk2dj.mjs +0 -2
- package/dist/chunks/heapdump-1.1.22-h87tv4ay.mjs +0 -6
- package/dist/chunks/help-1.1.22-hkgcwycs.mjs +0 -1
- package/dist/chunks/hookChains-1.1.22-hjjsdtfz.mjs +0 -3
- package/dist/chunks/hooks-1.1.22-d51y91pz.mjs +0 -79
- package/dist/chunks/hooks-1.1.22-knpyhzjq.mjs +0 -1
- package/dist/chunks/ide-1.1.22-0tqwa732.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.22-6qd4v6hf.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.22-gvb5zry4.mjs +0 -1
- package/dist/chunks/index-1.1.22-19x2126b.mjs +0 -30
- package/dist/chunks/index-1.1.22-28fcrc19.mjs +0 -9
- package/dist/chunks/index-1.1.22-2ea02rg7.mjs +0 -1
- package/dist/chunks/index-1.1.22-2rc4s1ea.mjs +0 -1
- package/dist/chunks/index-1.1.22-33ka1vh2.mjs +0 -1
- package/dist/chunks/index-1.1.22-3sbe52mk.mjs +0 -1
- package/dist/chunks/index-1.1.22-3ze6s7jh.mjs +0 -1
- package/dist/chunks/index-1.1.22-45fydkr4.mjs +0 -1
- package/dist/chunks/index-1.1.22-4jyb49wh.mjs +0 -5
- package/dist/chunks/index-1.1.22-53bbsdht.mjs +0 -23
- package/dist/chunks/index-1.1.22-6dbeceeq.mjs +0 -1
- package/dist/chunks/index-1.1.22-8dntbh7a.mjs +0 -1
- package/dist/chunks/index-1.1.22-8kjk15ba.mjs +0 -1
- package/dist/chunks/index-1.1.22-an0gp01d.mjs +0 -1
- package/dist/chunks/index-1.1.22-cnbxnqdc.mjs +0 -1
- package/dist/chunks/index-1.1.22-fpsntg6z.mjs +0 -1
- package/dist/chunks/index-1.1.22-fv3cwfqb.mjs +0 -1
- package/dist/chunks/index-1.1.22-hjp106ay.mjs +0 -1
- package/dist/chunks/index-1.1.22-njczpq0j.mjs +0 -9
- package/dist/chunks/index-1.1.22-zeprwv8d.mjs +0 -2
- package/dist/chunks/index-1.1.22-zmmyfbe7.mjs +0 -1
- package/dist/chunks/index-1.1.22-zssja3p2.mjs +0 -2
- package/dist/chunks/index-1.1.22-zw38mh26.mjs +0 -1
- package/dist/chunks/init-1.1.22-xnq27h0g.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.22-y1d60qz3.mjs +0 -1
- package/dist/chunks/ink-1.1.22-k48q879m.mjs +0 -1
- package/dist/chunks/insights-1.1.22-a1cvbm3p.mjs +0 -870
- package/dist/chunks/install-1.1.22-jbzmqsdp.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.22-8a3hpgxj.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.22-rt6z32mx.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.22-z450bn0g.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.22-6ks3mty3.mjs +0 -1
- package/dist/chunks/keybindings-1.1.22-g9y42jd0.mjs +0 -2
- package/dist/chunks/knowledge-1.1.22-9pnvwgtc.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.22-qt6jab06.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.22-sq4k9pva.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.22-vshz13qp.mjs +0 -1
- package/dist/chunks/log-1.1.22-e7ksty3v.mjs +0 -1
- package/dist/chunks/main-1.1.22-6td1g6n1.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.22-htj06t2x.mjs +0 -1
- package/dist/chunks/mcp-1.1.22-18h7drd2.mjs +0 -17
- package/dist/chunks/mcp-1.1.22-ezfae103.mjs +0 -1
- package/dist/chunks/mcp-1.1.22-s120rv95.mjs +0 -4
- package/dist/chunks/mcpb-1.1.22-vm6h475e.mjs +0 -1
- package/dist/chunks/memory-1.1.22-e0tx5g0m.mjs +0 -72
- package/dist/chunks/model-1.1.22-jpnba4j9.mjs +0 -2
- package/dist/chunks/model-1.1.22-ptaehfsq.mjs +0 -1
- package/dist/chunks/node-1.1.22-n2j0h224.mjs +0 -14
- package/dist/chunks/oauth-1.1.22-xryjmqvy.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.22-5g2mvrb0.mjs +0 -14
- package/dist/chunks/output-style-1.1.22-15avrxe6.mjs +0 -1
- package/dist/chunks/package-ZOVFJE7Z-1.1.22-74v22202.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.22-th9g7k2v.mjs +0 -1
- package/dist/chunks/parser-1.1.22-f76s0696.mjs +0 -1
- package/dist/chunks/passes-1.1.22-5067sbnv.mjs +0 -1
- package/dist/chunks/permissions-1.1.22-jq3s11rr.mjs +0 -3
- package/dist/chunks/permissions-1.1.22-yjbnyvja.mjs +0 -1
- package/dist/chunks/plan-1.1.22-a0v77tas.mjs +0 -1
- package/dist/chunks/plist-1.1.22-stjt7ne7.mjs +0 -1
- package/dist/chunks/plugin-1.1.22-ccc18w6d.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.22-6w6xqk0q.mjs +0 -1
- package/dist/chunks/plugins-1.1.22-14tg96p5.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.22-w8y973hr.mjs +0 -2
- package/dist/chunks/print-1.1.22-fj5my0gp.mjs +0 -57
- package/dist/chunks/process-1.1.22-5ehjyzp9.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.22-rfx8p83z.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.22-zz4rg3b9.mjs +0 -9
- package/dist/chunks/prompt-1.1.22-1k2zk0wc.mjs +0 -1
- package/dist/chunks/prompt-1.1.22-dnwycjh5.mjs +0 -1
- package/dist/chunks/prompts-1.1.22-4p4a5se6.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.22-cs8w65fv.mjs +0 -13
- package/dist/chunks/provider-1.1.22-bn5s7tah.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.22-pymtgbvs.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.22-c7c5hbxa.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.22-w2qffppm.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.22-ab4qb34w.mjs +0 -26
- package/dist/chunks/registry-1.1.22-nsm8d8eb.mjs +0 -1
- package/dist/chunks/release-notes-1.1.22-8x23myzn.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.22-ak7jhwx7.mjs +0 -2
- package/dist/chunks/remote-env-1.1.22-x7trmcqx.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.22-hbz0g8ya.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.22-f6jb57v7.mjs +0 -1
- package/dist/chunks/rename-1.1.22-xe35q0k0.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.22-fhwjkdxg.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.22-vv0a8mm6.mjs +0 -1
- package/dist/chunks/resume-1.1.22-2sa8hbck.mjs +0 -2
- package/dist/chunks/rewind-1.1.22-9p74phfv.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.22-d6srkssk.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.22-g8m5b1gg.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.22-xfg2fsw2.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.22-dtc44mq5.mjs +0 -1
- package/dist/chunks/session-1.1.22-3tjyetra.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.22-33mn13e8.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.22-d3bejz9v.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.22-j74sh7m1.mjs +0 -1
- package/dist/chunks/settings-1.1.22-nkarfvpa.mjs +0 -1
- package/dist/chunks/setup-1.1.22-qcehqed4.mjs +0 -12
- package/dist/chunks/sinks-1.1.22-cq9rny33.mjs +0 -1
- package/dist/chunks/skills-1.1.22-ekjpttza.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.22-9fngk9y1.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.22-d1k95rad.mjs +0 -1
- package/dist/chunks/state-1.1.22-jwyx08g8.mjs +0 -1
- package/dist/chunks/stats-1.1.22-gbms572d.mjs +0 -6
- package/dist/chunks/status-1.1.22-k6tz1204.mjs +0 -1
- package/dist/chunks/stickers-1.1.22-0p5wcv91.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.22-8nw03e6a.mjs +0 -1
- package/dist/chunks/tasks-1.1.22-j3tvhmzv.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.22-9h9wz2vt.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.22-az279j20.mjs +0 -1
- package/dist/chunks/teleport-1.1.22-x65tzb7k.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.22-mgtn4k1h.mjs +0 -1
- package/dist/chunks/theme-1.1.22-ytcpmqf6.mjs +0 -1
- package/dist/chunks/thinkback-1.1.22-r3tqf574.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.22-gy5pmk8r.mjs +0 -1
- package/dist/chunks/toolPool-1.1.22-enzkj5fj.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.22-nks2rxm6.mjs +0 -1
- package/dist/chunks/tools-1.1.22-vngj7bpe.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.22-521tzk05.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.22-thexftmp.mjs +0 -69
- package/dist/chunks/types-1.1.22-jp8m10f1.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.22-tjrn8agz.mjs +0 -4
- package/dist/chunks/update-1.1.22-n10ztshv.mjs +0 -72
- package/dist/chunks/upgrade-1.1.22-e0pjbtcd.mjs +0 -1
- package/dist/chunks/upload-1.1.22-e00jdttg.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.22-1qmxkbg7.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.22-jj7mv0bn.mjs +0 -1
- package/dist/chunks/usage-1.1.22-s54ykz8x.mjs +0 -1
- package/dist/chunks/util-1.1.22-wntx1394.mjs +0 -1
- package/dist/chunks/utils-1.1.22-wmew7b5j.mjs +0 -1
- package/dist/chunks/vim-1.1.22-qddsv4he.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.22-1z60qm0a.mjs +0 -13
- package/dist/chunks/watcher-1.1.22-100q2zbm.mjs +0 -1
- package/dist/chunks/wiki-1.1.22-akk70ycq.mjs +0 -132
- package/dist/chunks/workflows-1.1.22-ed33rwny.mjs +0 -1
- package/dist/chunks/worktree-1.1.22-f3b1rr0f.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.22-taeyewr8.mjs +0 -1
- package/dist/chunks/wrapper-1.1.22-hayqq9zr.mjs +0 -7
- /package/dist/chunks/{cli-1.1.22-nv9q4jrr.mjs → cli-1.1.23-4q364wmc.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.22-ccg6dy3s.mjs → cli-1.1.23-7jpcmnjc.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.22-kqk323ja.mjs → cli-1.1.23-btq83yzw.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.22-as944wt5.mjs → cli-1.1.23-gm82gspk.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.22-ws6y62na.mjs → cli-1.1.23-qgdfjtj2.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.22-08c4ym21.mjs → cli-1.1.23-vdp0r91n.mjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Sh as C,Th as t}from"./cli-1.1.22-e5sxpgah.mjs";import{Uh as p,Vh as e}from"./cli-1.1.22-2y82t3pd.mjs";import{nY as L,oY as i}from"./cli-1.1.22-bv3a0vaa.mjs";import{H1 as s,a1 as b,c1 as P}from"./cli-1.1.22-261r450y.mjs";import{d4 as M,f4 as y}from"./cli-1.1.22-vwdxbs23.mjs";import{g4 as n}from"./cli-1.1.22-c07z4d74.mjs";import{x_ as T,y_ as m}from"./cli-1.1.22-3jyydg5h.mjs";import{hha as $,iha as o,jha as S,kha as v,mha as W,zha as d}from"./cli-1.1.22-erbhk4p7.mjs";import{pta as a,tta as l}from"./cli-1.1.22-w09pyst3.mjs";function Zq(J,q,Y){if(J.startsWith("file-"))return Y?C(q):"+";if(J.startsWith("mcp-resource-"))return"◇";if(J.startsWith("agent-"))return"*";return"+"}function x(J){return J.startsWith("file-")||J.startsWith("mcp-resource-")||J.startsWith("agent-")}function $q(J){let q=J.metadata?.type;return q==="directory"||q==="file"}function Gq(J,q,Y){if(q<=0||Y<=0)return[];let G=J.replace(Yq," ").trim();if(G==="")return[];let Q=[],K="";for(let z of G.split(" ")){if(K==="")K=z;else if($(K)+1+$(z)<=q)K=`${K} ${z}`;else Q.push(K),K=z;while($(K)>q){let H=W(K,q);if(H==="")break;Q.push(H),K=K.slice(H.length)}if(Q.length>Y)break}if(K!=="")Q.push(K);if(Q.length<=Y)return Q;let O=Q.slice(Y-1).join(" "),A=Q.slice(0,Y);return A[Y-1]=$(O)<=q?O:v(O,q),A}function c(J,q,Y){let G=Math.floor(q*0.4),Q=Math.min(Y??$(J.displayText)+5,G),K=J.displayText;if($(K)>Q-2)K=v(K,Q-2);let O=$q(J)?`${h?C(J.displayText):"+"} `:"",A=J.tag?`[${J.tag}] `:"",z=Math.max(0,q-R-Q-$(A)-4),H=J.description?Gq(J.description,z,Kq):[];return{displayText:K,displayTextWidth:Q,pathIcon:O,tagText:A,descriptionLines:H}}function Oq(J,q,Y){if(x(J.id))return 1;return Math.max(1,c(J,q,Y).descriptionLines.length)}function Aq({suggestions:J,selectedSuggestion:q,maxColumnWidth:Y,overlay:G}){let{columns:Q,rows:K}=L(),O=Math.max(1,K-2),A=O>=qq?Math.min(Jq,O):O;if(J.length===0)return null;let z=Y??Math.max(...J.map((Z)=>$(Z.displayText)))+5,H=J.map((Z)=>Oq(Z,Q,z)),N=(Z)=>Math.max(0,Math.min(q-Math.floor(Z/2),J.length-Z)),U=Math.min(A,J.length);while(U>1){let Z=N(U);if(H.slice(Z,Z+U).reduce((B,j)=>B+j,0)<=O)break;U--}let V=N(U),X=Math.min(V+U,J.length),F=J.slice(V,X);return M(b,{flexDirection:"column",justifyContent:G?void 0:"flex-end",children:F.map((Z)=>M(zq,{item:Z,maxColumnWidth:z,isSelected:Z.id===J[q]?.id},`${Z.id}:${Z.id===J[q]?.id?"selected":"idle"}`))})}var E,qq=8,Jq=15,Kq=2,I,Qq=" ",R,Yq,h,zq,bq;var Uq=l(()=>{m();i();o();s();t();d();e();y();E=a(n(),1),I=`${T.pointer} `,R=$(I),Yq=/\s+/g,h=p();zq=E.memo(function({item:q,maxColumnWidth:Y,isSelected:G}){let Q=L().columns,K=G?I:Qq,O=G?"suggestion":void 0,A=G?"inverseText":void 0;if(x(q.id)){let k=Zq(q.id,q.displayText,h),B=!G,j=q.id.startsWith("file-"),u=q.id.startsWith("mcp-resource-"),Hq=2,kq=4,w=q.description?3:0,f;if(j){let _=q.description?Math.min(20,$(q.description)):0,r=Q-R-2-4-w-_;f=S(q.displayText,r)}else if(u)f=v(q.displayText,30);else f=q.displayText;let g=Q-R-2-$(f)-w-4,D;if(q.description){let _=v(q.description.replace(/\s+/g," "),Math.max(0,g));D=`${K}${k} ${f} - ${_}`}else D=`${K}${k} ${f}`;return M(b,{width:"100%",opaque:!0,backgroundColor:O,children:M(P,{color:A,dimColor:B,bold:G,wrap:"truncate",children:D})})}let{displayText:z,displayTextWidth:H,pathIcon:N,tagText:U,descriptionLines:V}=c(q,Q,Y),X=K+N+z+" ".repeat(Math.max(0,H-$(z))),F=" ".repeat($(X)+$(U)),Z=V.length>0?V.map((k,B)=>B===0?`${X}${U}${k}`:`${F}${k}`):[`${X}${U}`];return M(b,{flexDirection:"column",width:"100%",opaque:!0,backgroundColor:O,children:Z.map((k,B)=>M(P,{color:A,dimColor:!G,bold:G,wrap:"truncate",children:k},B))})});bq=E.memo(Aq)});
|
|
2
|
-
export{Aq as Nh,bq as Oh,Uq as Ph};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Gc as v,Hc as m,Ic as Vk}from"./cli-1.1.22-zsc0cmye.mjs";import{CF as Gk,IS as r,JS as kk,KO as o,MG as n,MO as t,NG as w,NS as Dk,OG as i,PO as Tk,RG as Lk,TO as e,UO as Ck,Yn as p,ZA as s,Zn as jk,_A as zk,tF as g,uF as a,yz as l,zz as wk}from"./cli-1.1.22-zmt5pksy.mjs";import{Z4 as L,d5 as Jk,x5 as f,z5 as Ok}from"./cli-1.1.22-q622p3vr.mjs";import{W8 as u,X8 as Ik,f9 as d,i9 as Mk}from"./cli-1.1.22-ddq8axpw.mjs";import{j_ as S,o_ as _k}from"./cli-1.1.22-5dcmb4h9.mjs";import{Hga as _,J_ as K,Kga as Hk,L_ as Zk,Q$ as P,U$ as $k,Uda as D,bfa as U,ffa as b,kea as Kk,ofa as c,wfa as $}from"./cli-1.1.22-3jyydg5h.mjs";import{Eha as J,Iha as Yk}from"./cli-1.1.22-erbhk4p7.mjs";import{Xja as G,Yja as Bk}from"./cli-1.1.22-y4rj8ced.mjs";import{ala as B,dka as O,dla as C,fka as Rk}from"./cli-1.1.22-ca6d1erw.mjs";import{Ala as Y,Hla as Xk,ula as h}from"./cli-1.1.22-3r3tadt1.mjs";import{Nla as E,Vla as Wk}from"./cli-1.1.22-265a4qpa.mjs";import{Yoa as F,_oa as y,opa as V,yra as j}from"./cli-1.1.22-v260dy3k.mjs";import{Xra as A,Yra as Qk}from"./cli-1.1.22-j7qc1g0f.mjs";import{uta as W}from"./cli-1.1.22-w09pyst3.mjs";Yk();j();$();Qk();j();j();wk();Ok();Gk();Lk();Bk();Hk();Jk();var z=!1;function T(){if(z)return;if(z=!0,L()!=="firstParty")return;let k=_()?.transport;if(k==="bedrock"||k==="vertex"||k==="foundry")return;if(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||process.env.ANTHROPIC_UNIX_SOCKET||process.env.CLAUDIN_CLIENT_CERT||process.env.CLAUDIN_CLIENT_KEY)return;let q=_(),N=(q?.transport==="anthropic"?q.baseUrl:void 0)||G().BASE_API_URL;fetch(N,{method:"HEAD",signal:AbortSignal.timeout(1e4)}).catch(()=>{})}$();C();Kk();function x(){if(process.env.NODE_EXTRA_CA_CERTS)return;let k=Nk();if(k)process.env.NODE_EXTRA_CA_CERTS=k,B(`CA certs: Applied NODE_EXTRA_CA_CERTS from config to process.env: ${k}`)}function Nk(){try{let q=U()?.env,Q=D("userSettings")?.env;B(`CA certs: Config fallback - globalEnv keys: ${q?Object.keys(q).join(","):"none"}, settingsEnv keys: ${Q?Object.keys(Q).join(","):"none"}`);let R=Q?.NODE_EXTRA_CA_CERTS||q?.NODE_EXTRA_CA_CERTS;if(R)B(`CA certs: Found NODE_EXTRA_CA_CERTS in config/settings: ${R}`);return R}catch(k){B(`CA certs: Config fallback failed: ${k}`,{level:"error"});return}}Rk();$();C();_k();Zk();jk();Wk();Xk();Dk();Vk();Ik();Tk();Mk();Ck();zk();$k();var I=!1,Yq=A(async()=>{let k=Date.now();K("info","init_started"),J("init_function_start");try{let q=Date.now();b(),K("info","init_configs_enabled",{duration_ms:Date.now()-q}),J("init_configs_enabled");let N=Date.now();if(v(),x(),K("info","init_safe_env_vars_applied",{duration_ms:Date.now()-N}),J("init_safe_env_vars_applied"),r(),J("init_after_graceful_shutdown"),Promise.all([import("./firstPartyEventLogger-1.1.22-08zb6ajr.mjs"),import("./growthbook-1.1.22-jnddje2q.mjs")]).then(([H,X])=>{H.initialize1PEventLogging(),X.onGrowthBookRefresh(()=>{H.reinitialize1PEventLoggingIfConfigChanged()})}),J("init_after_1p_event_logging"),f(),J("init_after_oauth_populate"),p(),J("init_after_jetbrains_detection"),S(),w())n();if(a())g();J("init_after_remote_settings_check"),c();let Q=Date.now();B("[init] configureGlobalMTLS starting"),u(),K("info","init_mtls_configured",{duration_ms:Date.now()-Q}),B("[init] configureGlobalMTLS complete");let R=Date.now();if(B("[init] configureGlobalAgents starting"),d(),K("info","init_proxy_configured",{duration_ms:Date.now()-R}),B("[init] configureGlobalAgents complete"),J("init_network_configured"),T(),E(process.env.CLAUDE_CODE_REMOTE))try{let{initUpstreamProxy:H,getUpstreamProxyEnv:X}=await import("./upstreamproxy-1.1.22-1qmxkbg7.mjs"),{registerUpstreamProxyEnvFn:Z}=await import("./subprocessEnv-1.1.22-8nw03e6a.mjs");Z(X),await H()}catch(H){B(`[init] upstreamproxy init failed: ${H instanceof Error?H.message:String(H)}; continuing without proxy`,{level:"warn"})}if(P(),O(l),O(async()=>{let{cleanupSessionTeams:H}=await import("./teamHelpers-1.1.22-9h9wz2vt.mjs");await H()}),o()){let H=Date.now();await t(),K("info","init_scratchpad_created",{duration_ms:Date.now()-H})}K("info","init_completed",{duration_ms:Date.now()-k}),J("init_function_end")}catch(q){if(q instanceof h){if(V()){process.stderr.write(`Configuration error in ${q.filePath}: ${q.message}
|
|
2
|
-
`),kk(1);return}return import("./InvalidConfigDialog-1.1.22-52wjx92m.mjs").then((N)=>N.showInvalidConfigDialog({error:q}))}else throw q}});function Zq(){if(w()){if(V()&&e())M().catch((k)=>{B(`[3P telemetry] Eager telemetry init failed (beta tracing): ${Y(k)}`,{level:"error"})});B("[3P telemetry] Waiting for remote managed settings before telemetry init"),i().then(async()=>{B("[3P telemetry] Remote managed settings loaded, initializing telemetry"),m(),await M()}).catch((k)=>{B(`[3P telemetry] Telemetry init failed (remote settings path): ${Y(k)}`,{level:"error"})})}else M().catch((k)=>{B(`[3P telemetry] Telemetry init failed: ${Y(k)}`,{level:"error"})})}async function M(){if(I)return;I=!0;try{await Uk()}catch(k){throw I=!1,k}}async function Uk(){let{initializeTelemetry:k}=await import("./instrumentation-1.1.22-z450bn0g.mjs"),q=await k();if(q)F(q,(Q,R)=>{let H=q?.createCounter(Q,R);return{add(X,Z={}){let qk={...s(),...Z};H?.add(X,qk)}}}),y()?.add(1)}
|
|
3
|
-
export{Yq as _,Zq as $};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{BD as I,CD as _,DQ as r,ED as p,Ev as T,HS as i,IC as P,OC as b,UC as j,sQ as f,tQ as L,zD as K}from"./cli-1.1.22-zmt5pksy.mjs";import{nW as A,oW as n}from"./cli-1.1.22-b7axxc6j.mjs";import{Zja as E,aka as C}from"./cli-1.1.22-s5qhs3ds.mjs";import{Oka as M,Ska as m,ala as Z,dka as F,dla as u,fka as S}from"./cli-1.1.22-ca6d1erw.mjs";import{ara as v,vna as Y,wna as k,yra as c}from"./cli-1.1.22-v260dy3k.mjs";n();c();r();C();p();P();S();u();m();i();k();import*as H from"path";var d=1000,o=500,l=300,e=2000,h=typeof Bun<"u",x=null,y=null,Q=new Set,B=!1,D=!1,V=!1,X=null,W=Y(),U=null;async function t(){if(B||D)return;if(B=!0,!V)V=!0,_(()=>{f(),W.emit()});let q=await a();if(q.length===0)return;Z(`Watching for changes in skill/command directories: ${q.join(", ")}...`),x=A.watch(q,{persistent:!1,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:U?.stabilityThreshold??d,pollInterval:U?.pollInterval??o},ignored:(w,z)=>{if(z&&!z.isFile()&&!z.isDirectory())return!0;return w.split(H.sep).some((J)=>J===".git")},ignorePermissionErrors:!0,usePolling:h,interval:U?.chokidarInterval??e,atomic:!0}),x.on("add",$),x.on("change",$),x.on("unlink",$),X=F(async()=>{await g()})}function g(){if(D=!0,X)X(),X=null;let q=Promise.resolve();if(x)q=x.close(),x=null;if(y)clearTimeout(y),y=null;return Q.clear(),W.clear(),q}var s=W.subscribe;async function a(){let q=M(),w=[],z=K("userSettings","skills");if(z)try{await q.stat(z),w.push(z)}catch{}let J=K("userSettings","commands");if(J)try{await q.stat(J),w.push(J)}catch{}let N=K("projectSettings","skills");if(N)try{let G=H.resolve(N);await q.stat(G),w.push(G)}catch{}let O=K("projectSettings","commands");if(O)try{let G=H.resolve(O);await q.stat(G),w.push(G)}catch{}for(let G of v()){let R=H.join(G,".claudin","skills");try{await q.stat(R),w.push(R)}catch{}}return w}function $(q){Z(`Detected skill change: ${q}`),E("",{source:"chokidar"}),qq(q)}function qq(q){if(Q.add(q),y)clearTimeout(y);y=setTimeout(async()=>{y=null;let w=[...Q];Q.clear();let z=await j("skills",w[0]);if(b(z)){Z(`ConfigChange hook blocked skill reload (${w.length} paths)`);return}I(),L(),T(),W.emit()},U?.reloadDebounce??l)}async function wq(q){if(x)await x.close(),x=null;if(y)clearTimeout(y),y=null;Q.clear(),W.clear(),B=!1,D=!1,U=q??null}var Zq={initialize:t,dispose:g,subscribe:s,resetForTesting:wq};
|
|
2
|
-
export{Zq as $a};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{pb as d}from"./cli-1.1.22-as944wt5.mjs";import{AK as f,Ez as C,Fz as D,JT as Vj,Kz as Gj,Lk as $,Mk as n,Ol as P,Ot as h,Pl as R,Qt as qj,Rm as E,Sm as e,UT as F,Uk as v,Vk as r,XE as Jj,bT as m,cT as S,ck as O,dT as A,eS as Qj,ek as o,ev as k,fU as Xj,gD as I,hD as Hj,hm as s,hv as V,nv as zj,oT as c,ov as w,pv as Bj,um as y,vT as p,wT as X,zm as t}from"./cli-1.1.22-zmt5pksy.mjs";import{NV as jj,yV as W}from"./cli-1.1.22-v8pzx6jk.mjs";import{OX as x,RX as Kj}from"./cli-1.1.22-4227vtcf.mjs";import{_6 as T,f7 as u}from"./cli-1.1.22-q622p3vr.mjs";import{jja as Z,lja as i}from"./cli-1.1.22-j6xg80k8.mjs";import{ala as b,dla as l}from"./cli-1.1.22-ca6d1erw.mjs";import{Cna as _,Hna as Y,Moa as M,Ooa as N,Uqa as K,yra as g,zna as U}from"./cli-1.1.22-v260dy3k.mjs";g();e();Gj();zj();r();o();import{dirname as Yj}from"path";Xj();Jj();Kj();i();l();qj();Qj();u();t();n();Hj();Vj();jj();Bj();s();function Zj(j){for(let q=j.length-1;q>=0;q--){let B=j[q];if(B?.type!=="assistant")continue;let z=B.message.content.find((J)=>J.type==="tool_use"&&J.name===v);if(!z||z.type!=="tool_use")continue;let G=z.input;if(G===null||typeof G!=="object")return[];let H=w().safeParse(G.todos);return H.success?H.data:[]}return[]}function aj(j,q){if(j.fileHistorySnapshots&&j.fileHistorySnapshots.length>0)h(j.fileHistorySnapshots,(B)=>{q((z)=>({...z,fileHistory:B}))});if(!W()&&j.messages&&j.messages.length>0){let B=Zj(j.messages);if(B.length>0){let z=U();q((G)=>({...G,todos:{...G.todos,[z]:B}}))}}}function $j(j){return}function Pj(j,q){if(!j&&!q)return;return{name:j??"",color:q==="default"?void 0:q}}function Rj(j,q,B){if(q)return{agentDefinition:q,agentType:void 0};if(!j)return K(void 0),{agentDefinition:void 0,agentType:void 0};let z=B.activeAgents.find((G)=>G.agentType===j);if(!z)return b(`Resumed session had agent "${j}" but it is no longer available. Using default behavior.`),K(void 0),{agentDefinition:void 0,agentType:void 0};if(K(z.agentType),!M()&&z.model&&z.model!=="inherit")N(T(z.model));return{agentDefinition:z,agentType:z.agentType}}async function yj(j,q,B,z){if(!j)return z;V.cache.clear?.();let G=await V(q),H=[...G.allAgents,...B];return{...G,allAgents:H,activeAgents:k(H)}}function Ej(j){let q=P();if(q){X(q);return}if(!j)return;try{process.chdir(j.worktreePath)}catch{X(null);return}I(j.worktreePath),Y(Z()),R(j),F(),E(),y.cache.clear?.(),$()}function gj(){let j=P();if(!j)return;R(null),F(),E(),y.cache.clear?.(),$();try{process.chdir(j.originalCwd)}catch{return}I(j.originalCwd),Y(Z())}async function lj(j,q,B){let z;if(z=B.modeApi?.matchSessionMode(j.mode),z)j.messages.push(f(z,"warning"));if(!q.forkSession){let Q=q.sessionIdOverride??j.sessionId;if(Q){if(_(O(Q),q.transcriptPath?Yj(q.transcriptPath):null),await d(),await S(),!C(Q))D(j.messages)}}else if(j.contentReplacements?.length)await m(j.contentReplacements);if(c(q.forkSession?{...j,worktreeSession:void 0}:j),!q.forkSession)Ej(j.worktreeSession),A();let{agentDefinition:G,agentType:H}=Rj(j.agentSetting,B.mainThreadAgentDefinition,B.agentDefinitions);p(B.modeApi?.isCoordinatorMode()?"coordinator":"normal");let J=q.includeAttribution?$j(j):void 0,L=Pj(j.agentName,j.agentColor);x(j.agentName);let a=await yj(!!z,B.currentCwd,B.cliAgents,B.agentDefinitions);return{messages:j.messages,fileHistorySnapshots:j.fileHistorySnapshots,contentReplacements:j.contentReplacements,agentName:j.agentName,agentColor:j.agentColor==="default"?void 0:j.agentColor,restoredAgentDef:G,initialState:{...B.initialState,...H&&{agent:H},...J&&{attribution:J},...L&&{standaloneAgentContext:L},agentDefinitions:a}}}
|
|
2
|
-
export{aj as Pa,Pj as Qa,Rj as Ra,Ej as Sa,gj as Ta,lj as Ua};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$F as i,_F as L,aG as l,bG as E,cG as c,dG as w,eG as O,iG as y,jG as e}from"./cli-1.1.22-zmt5pksy.mjs";import{nY as x,oY as s}from"./cli-1.1.22-bv3a0vaa.mjs";import{DZ as C,H1 as K,R0 as S,S0 as r,a1 as k,c1 as V,w1 as Q}from"./cli-1.1.22-261r450y.mjs";import{c4 as Y,d4 as P,e4 as v,f4 as _}from"./cli-1.1.22-vwdxbs23.mjs";import{g4 as t}from"./cli-1.1.22-c07z4d74.mjs";import{pta as p,tta as q}from"./cli-1.1.22-w09pyst3.mjs";function X1(J){let b=j.c(17),{query:$,placeholder:I,isFocused:W,isTerminalFocused:Z,prefix:N,width:H,cursorOffset:A,borderless:U}=J,G=I===void 0?"Search…":I,h=N===void 0?"⌕":N,m=U===void 0?!1:U,B=A??$.length,D=m?void 0:"round",g=W?"suggestion":void 0,d=!W,F=m?0:1,T=!W,X;if(b[0]!==W||b[1]!==Z||b[2]!==B||b[3]!==G||b[4]!==$)X=W?P(Y,{children:$?Z?v(Y,{children:[P(V,{children:$.slice(0,B)}),P(V,{inverse:!0,children:B<$.length?$[B]:" "}),B<$.length&&P(V,{children:$.slice(B+1)})]}):P(V,{children:$}):Z?v(Y,{children:[P(V,{inverse:!0,children:G.charAt(0)}),P(V,{dimColor:!0,children:G.slice(1)})]}):P(V,{dimColor:!0,children:G})}):$?P(V,{children:$}):P(V,{children:G}),b[0]=W,b[1]=Z,b[2]=B,b[3]=G,b[4]=$,b[5]=X;else X=b[5];let M;if(b[6]!==h||b[7]!==T||b[8]!==X)M=v(V,{dimColor:T,children:[h," ",X]}),b[6]=h,b[7]=T,b[8]=X,b[9]=M;else M=b[9];let z;if(b[10]!==M||b[11]!==D||b[12]!==g||b[13]!==d||b[14]!==F||b[15]!==H)z=P(k,{flexShrink:0,borderStyle:D,borderColor:g,borderDimColor:d,paddingX:F,width:H,children:M}),b[10]=M,b[11]=D,b[12]=g,b[13]=d,b[14]=F,b[15]=H,b[16]=z;else z=b[16];return z}var j;var u=q(()=>{K();_();j=p(C(),1)});function d1(J){if(J.ctrl&&(J.key==="k"||J.key==="u"||J.key==="w"))return!0;if(J.meta&&J.key==="backspace")return!0;return!1}function T1(J){return(J.ctrl||J.meta)&&J.key==="y"}function V1({isActive:J,onExit:b,onCancel:$,onExitUp:I,columns:W,passthroughCtrlKeys:Z=[],initialQuery:N="",backspaceExitsOnEmpty:H=!0}){let{columns:A}=x(),U=W??A,[G,h]=R.useState(N),[m,B]=R.useState(N.length),D=R.useCallback((d)=>{h(d),B(d.length)},[]),g=(d)=>{if(!J)return;let F=y.fromText(G,U,m);if(d.ctrl&&Z.includes(d.key.toLowerCase()))return;if(!d1(d))l();if(!T1(d))O();if(d.key==="return"||d.key==="down"){d.preventDefault(),b();return}if(d.key==="up"){if(d.preventDefault(),I)I();return}if(d.key==="escape"){if(d.preventDefault(),$)$();else if(G.length>0)h(""),B(0);else b();return}if(d.key==="backspace"){if(d.preventDefault(),d.meta){let{cursor:X,killed:M}=F.deleteWordBefore();L(M,"prepend"),h(X.text),B(X.offset);return}if(G.length===0){if(H)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}if(d.key==="delete"){d.preventDefault();let T=F.del();h(T.text),B(T.offset);return}if(d.key==="left"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.prevWord();B(T.offset);return}if(d.key==="right"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.nextWord();B(T.offset);return}if(d.key==="left"){d.preventDefault();let T=F.left();B(T.offset);return}if(d.key==="right"){d.preventDefault();let T=F.right();B(T.offset);return}if(d.key==="home"){d.preventDefault(),B(0);return}if(d.key==="end"){d.preventDefault(),B(G.length);return}if(d.ctrl){switch(d.preventDefault(),d.key.toLowerCase()){case"a":B(0);return;case"e":B(G.length);return;case"b":B(F.left().offset);return;case"f":B(F.right().offset);return;case"d":{if(G.length===0){($??b)();return}let T=F.del();h(T.text),B(T.offset);return}case"h":{if(G.length===0){if(H)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}case"k":{let{cursor:T,killed:X}=F.deleteToLineEnd();L(X,"append"),h(T.text),B(T.offset);return}case"u":{let{cursor:T,killed:X}=F.deleteToLineStart();L(X,"prepend"),h(T.text),B(T.offset);return}case"w":{let{cursor:T,killed:X}=F.deleteWordBefore();L(X,"prepend"),h(T.text),B(T.offset);return}case"y":{let T=i();if(T.length>0){let X=F.offset,M=F.insert(T);E(X,T.length),h(M.text),B(M.offset)}return}case"g":case"c":if($){$();return}}return}if(d.meta){switch(d.preventDefault(),d.key.toLowerCase()){case"b":B(F.prevWord().offset);return;case"f":B(F.nextWord().offset);return;case"d":{let T=F.deleteWordAfter();h(T.text),B(T.offset);return}case"y":{let T=c();if(T){let{text:X,start:M,length:z}=T,f=G.slice(0,M),a=G.slice(M+z),n=f+X+a,o=M+X.length;w(X.length),h(n),B(o)}return}}return}if(d.key==="tab")return;if(d.key.length>=1&&!b1.has(d.key)){d.preventDefault();let T=F.insert(d.key);h(T.text),B(T.offset)}};return Q((d,F,T)=>{g(new S(T.keypress))},{isActive:J}),{query:G,setQuery:D,cursorOffset:m,handleKeyDown:g}}var R,b1;var B1=q(()=>{r();K();e();s();R=p(t(),1);b1=new Set(["pageup","pagedown","insert","wheelup","wheeldown","mouse","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"])});
|
|
2
|
-
export{X1 as th,u as uh,V1 as vh,B1 as wh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tta as M}from"./cli-1.1.22-w09pyst3.mjs";function P(j){return j.message?.role??j.role}function G(j){return j.message?j.message.content:j.content}function K(j){if(!j||typeof j!=="object")return!1;if(j.type==="image")return!0;if(j.type==="tool_result"&&Array.isArray(j.content))return j.content.some((q)=>K(q));return!1}function Q(j){if(!Array.isArray(j))return!1;return j.some((q)=>K(q))}function U(j){if(!Array.isArray(j)||j.length===0)return!1;return j.every((q)=>{let w=q;return w&&typeof w==="object"&&w.type==="tool_result"})}function V(j){let q=j[j.length-1];if(!q||typeof q!=="object")return"user";if(P(q)!=="user")return"agent";if(U(G(q)))return"agent";return"user"}function W(j){return j.some((q)=>Q(G(q)))}function X(j){let q={"x-initiator":V(j)};if(W(j))q["Copilot-Vision-Request"]="true";return q}function Z(j,q={}){return(w,B)=>{let E=new Headers(B?.headers);for(let[z,F]of Object.entries(q))if(!E.has(z))E.set(z,F);try{if(typeof B?.body==="string"){let z=JSON.parse(B.body);if(Array.isArray(z?.messages))for(let[F,L]of Object.entries(X(z.messages)))E.set(F,L)}}catch{}return j(w,{...B,headers:E})}}var Y=()=>{};
|
|
2
|
-
export{V as Oi,W as Pi,X as Qi,Z as Ri,Y as Si};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Qd as Jq,Ud as Tq}from"./cli-1.1.22-7rv96st9.mjs";import{Zd as zq,_d as bq}from"./cli-1.1.22-d990gcrg.mjs";import{BG as r,CG as Gq,GL as S,JL as Nq,MM as D,PM as Cq,UL as s,VL as _q,ZL as a,aM as l,eM as t,jM as e,ko as n,lM as Rq,lo as yq,oI as h,pI as fq,sM as qq,wM as Fq}from"./cli-1.1.22-zmt5pksy.mjs";import{DZ as Bq,H1 as Oq,a1 as F,c1 as C,tZ as i,uZ as Kq}from"./cli-1.1.22-261r450y.mjs";import{d4 as v,e4 as R,f4 as p}from"./cli-1.1.22-vwdxbs23.mjs";import{g4 as Lq}from"./cli-1.1.22-c07z4d74.mjs";import{B_ as g,C_ as Zq,O$ as o,O_ as $,P$ as Hq,Q_ as Xq,Taa as vq,Wga as m,cha as wq,waa as x}from"./cli-1.1.22-3jyydg5h.mjs";import{ala as B,dla as Yq}from"./cli-1.1.22-ca6d1erw.mjs";import{Cla as u,Hla as Wq,zla as P}from"./cli-1.1.22-3r3tadt1.mjs";import{pta as d,tta as Vq}from"./cli-1.1.22-w09pyst3.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(u(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(u(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(h,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function hq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:uq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(h,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(hq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',uq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
|
|
2
|
-
export{Iq as Gd,Yz as Hd,Dq as Id};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Pg as p,Qg as Aq}from"./cli-1.1.22-vwv40zm1.mjs";import{JT as bq,LS as l,NS as Rq,xT as a}from"./cli-1.1.22-zmt5pksy.mjs";import{DZ as Zq,H1 as yq,a1 as j,c1 as K,w1 as c}from"./cli-1.1.22-261r450y.mjs";import{C2 as e,x2 as t,z2 as L}from"./cli-1.1.22-vdsszncw.mjs";import{d4 as B,e4 as M,f4 as S}from"./cli-1.1.22-vwdxbs23.mjs";import{g4 as Yq}from"./cli-1.1.22-c07z4d74.mjs";import{F4 as $,G4 as Gq}from"./cli-1.1.22-0553cn3c.mjs";import{O_ as y,Q_ as o,Taa as s,waa as m}from"./cli-1.1.22-3jyydg5h.mjs";import{jja as w,lja as r}from"./cli-1.1.22-j6xg80k8.mjs";import{ala as U,dla as n}from"./cli-1.1.22-ca6d1erw.mjs";import{Ala as D,Hla as Xq}from"./cli-1.1.22-3r3tadt1.mjs";import{yra as i,zna as T}from"./cli-1.1.22-v260dy3k.mjs";import{pta as I,tta as h}from"./cli-1.1.22-w09pyst3.mjs";import{readdir as qq}from"fs/promises";import{join as zq}from"path";function _(){let H=[process.argv[1]||"",process.execPath||""],q=["/build-ant/","/build-ant-native/","/build-external/","/build-external-native/"];return H.some((z)=>q.some((Q)=>z.includes(Q)))}function Jq(H){let q=_()?"claude-dev":"claude",z=new URL(`${q}://resume`);return z.searchParams.set("session",H),z.searchParams.set("cwd",w()),z.toString()}async function g(){if(_())return!0;let H=process.platform;if(H==="darwin")return m("/Applications/Claude.app");else if(H==="linux"){let{code:q,stdout:z}=await y("xdg-mime",["query","default","x-scheme-handler/claude"]);return q===0&&z.trim().length>0}else if(H==="win32"){let{code:q}=await y("reg",["query","HKEY_CLASSES_ROOT\\claude","/ve"]);return q===0}return!1}async function Qq(){let H=process.platform;if(H==="darwin"){let{code:q,stdout:z}=await y("defaults",["read","/Applications/Claude.app/Contents/Info.plist","CFBundleShortVersionString"]);if(q!==0)return null;let Q=z.trim();return Q.length>0?Q:null}else if(H==="win32"){let q=process.env.LOCALAPPDATA;if(!q)return null;let z=zq(q,"AnthropicClaude");try{let Y=(await qq(z)).filter((W)=>W.startsWith("app-")).map((W)=>W.slice(4)).filter((W)=>V.coerce(W)!==null).sort((W,P)=>{let A=V.coerce(W),R=V.coerce(P);return A.compare(R)});return Y.length>0?Y[Y.length-1]:null}catch{return null}}return null}async function v(){if(!await g())return{status:"not-installed"};let q;try{q=await Qq()}catch{return{status:"ready",version:"unknown"}}if(!q)return{status:"ready",version:"unknown"};let z=V.coerce(q);if(!z||!L(z.version,Hq))return{status:"version-too-old",version:q};return{status:"ready",version:q}}async function Wq(H){let q=process.platform;if(U(`Opening deep link: ${H}`),q==="darwin"){if(_()){let{code:Q}=await y("osascript",["-e",`tell application "Electron" to open location "${H}"`]);return Q===0}let{code:z}=await y("open",[H]);return z===0}else if(q==="linux"){let{code:z}=await y("xdg-open",[H]);return z===0}else if(q==="win32"){let{code:z}=await y("cmd",["/c","start","",H]);return z===0}return!1}async function k(){let H=T();if(!await g())return{success:!1,error:"Claude Desktop is not installed. Install it from https://claude.ai/download"};let z=Jq(H);if(!await Wq(z))return{success:!1,error:"Failed to open Claude Desktop. Please try opening it manually.",deepLinkUrl:z};return{success:!0,deepLinkUrl:z}}var V,Hq="1.1.2396";var x=h(()=>{i();r();n();o();s();e();V=I(t(),1)});function Vq(){switch(process.platform){case"win32":return"https://claude.ai/api/desktop/win32/x64/exe/latest/redirect";default:return"https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect"}}function kq(H){let q=d.c(20),{onDone:z}=H,[Q,Y]=G.useState("checking"),[W,P]=G.useState(null),[A,R]=G.useState(""),b;if(q[0]!==W||q[1]!==z||q[2]!==Q)b=(J)=>{if(Q==="error"){z(W??"Unknown error",{display:"system"});return}if(Q==="prompt-download"){if(J==="y"||J==="Y")$(Vq()).catch(Kq),z(`Starting download. Re-run /desktop once you’ve installed the app.
|
|
2
|
-
Learn more at ${u}`,{display:"system"});else if(J==="n"||J==="N")z(`The desktop app is required for /desktop. Learn more at ${u}`,{display:"system"})}},q[0]=W,q[1]=z,q[2]=Q,q[3]=b;else b=q[3];c(b);let O,E;if(q[4]!==z)O=()=>{(async function(){Y("checking");let X=await v();if(X.status==="not-installed"){R("Claude Desktop is not installed."),Y("prompt-download");return}if(X.status==="version-too-old"){R(`Claude Desktop needs to be updated (found v${X.version}, need v1.1.2396+).`),Y("prompt-download");return}Y("flushing"),await a(),Y("opening");let f=await k();if(!f.success){P(f.error??"Failed to open Claude Desktop"),Y("error");return}Y("success"),setTimeout(Bq,500,z)})().catch((Z)=>{P(D(Z)),Y("error")})},E=[z],q[4]=z,q[5]=O,q[6]=E;else O=q[5],E=q[6];if(G.useEffect(O,E),Q==="error"){let J;if(q[7]!==W)J=M(K,{color:"error",children:["Error: ",W]}),q[7]=W,q[8]=J;else J=q[8];let Z;if(q[9]===Symbol.for("react.memo_cache_sentinel"))Z=B(K,{dimColor:!0,children:"Press any key to continue…"}),q[9]=Z;else Z=q[9];let X;if(q[10]!==J)X=M(j,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[10]=J,q[11]=X;else X=q[11];return X}if(Q==="prompt-download"){let J;if(q[12]!==A)J=B(K,{children:A}),q[12]=A,q[13]=J;else J=q[13];let Z;if(q[14]===Symbol.for("react.memo_cache_sentinel"))Z=B(K,{children:"Download now? (y/n)"}),q[14]=Z;else Z=q[14];let X;if(q[15]!==J)X=M(j,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[15]=J,q[16]=X;else X=q[16];return X}let C;if(q[17]===Symbol.for("react.memo_cache_sentinel"))C={checking:"Checking for Claude Desktop…",flushing:"Saving session…",opening:"Opening Claude Desktop…",success:"Opening in Claude Desktop…"},q[17]=C;else C=q[17];let N=C[Q],F;if(q[18]!==N)F=B(p,{message:N}),q[18]=N,q[19]=F;else F=q[19];return F}async function Bq(H){H("Session transferred to Claude Desktop",{display:"system"}),await l(0,"other")}function Kq(){}var d,G,u="https://clau.de/desktop";var Pq=h(()=>{yq();Gq();x();Xq();Rq();bq();Aq();S();d=I(Zq(),1),G=I(Yq(),1)});
|
|
3
|
-
export{kq as Ng,Pq as Og};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{Fb as F}from"./cli-1.1.22-vp1eed3p.mjs";import{Xt as N,Yt as b}from"./cli-1.1.22-zmt5pksy.mjs";import{IW as U,LW as d,MW as _,NW as M,SW as I}from"./cli-1.1.22-fetzhxhh.mjs";import{U8 as z,X8 as T,c9 as x,d9 as H,i9 as v}from"./cli-1.1.22-ddq8axpw.mjs";import{J_ as Z,L_ as P}from"./cli-1.1.22-3jyydg5h.mjs";import{Zja as B,aka as D}from"./cli-1.1.22-s5qhs3ds.mjs";import{Fka as O,Kka as f,ala as Y,dla as A}from"./cli-1.1.22-ca6d1erw.mjs";import{Nla as L,Vla as S}from"./cli-1.1.22-265a4qpa.mjs";import{Bsa as y,Tsa as i}from"./cli-1.1.22-gwhdvfge.mjs";import{uta as k}from"./cli-1.1.22-w09pyst3.mjs";i();A();P();d();D();b();A();P();S();T();v();I();f();var u=`{"type":"keep_alive"}
|
|
2
|
-
`,C=1000,h=1000,R=30000,w=600000,p=1e4,m=300000,E=R*2,c=new Set([1002,4001,4003]);class W{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;isBridge;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,X,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=X,this.autoReconnect=$?.autoReconnect??!0,this.isBridge=$?.isBridge??!1,this.messageBuffer=new N(C)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Y(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Z("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),Y(`WebSocketTransport: Opening ${this.url.href}`),Z("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,Y(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:H(this.url.href),tls:z()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-1.1.22-hayqq9zr.mjs"),Q=new K(this.url.href,{headers:J,agent:x(this.url.href),...z()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{Y("WebSocketTransport: Error",{level:"error"}),Z("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;Y(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let X=Q.headers["x-last-request-id"];this.replayBufferedMessages(X)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{Y(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),Z("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;Y(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;if(Y("WebSocketTransport: Connected"),Z("info","cli_websocket_connect_connected",{duration_ms:J}),this.isBridge&&this.reconnectStartTime!==null)B("",{attempts:this.reconnectAttempts,downtimeMs:Date.now()-this.reconnectStartTime});this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),_(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return Y("WebSocketTransport: Not connected"),Z("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return Y(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),Z("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(Y(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),Z("info","cli_websocket_disconnected"),this.isBridge)B("",{closeCode:J,msSinceLastActivity:this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1,wasConnected:this.state==="connected",reconnectAttempts:this.reconnectAttempts});if(this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,Y("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),Z("info","cli_websocket_4003_token_refreshed")}if(J!=null&&c.has(J)&&!K){Y(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),Z("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>E)Y(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),Z("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let X=Q-this.reconnectStartTime;if(X<w){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let G=this.refreshHeaders();Object.assign(this.headers,G),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(h*Math.pow(2,this.reconnectAttempts-1),R),j=Math.max(0,$+$*0.25*(2*Math.random()-1));if(Y(`WebSocketTransport: Reconnecting in ${Math.round(j)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.isBridge)B("",{attempt:this.reconnectAttempts,elapsedMs:X,delayMs:Math.round(j)});this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},j)}else if(Y(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(X/1000)}s for ${this.url.href}`,{level:"error"}),Z("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:X}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((j)=>("uuid"in j)&&j.uuid===J);if($>=0){Q=$+1;let j=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(j),j.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${j.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:j.length})}}let X=K.slice(Q);if(X.length===0){Y("WebSocketTransport: No new messages to replay"),Z("info","cli_websocket_no_messages_to_replay");return}Y(`WebSocketTransport: Replaying ${X.length} buffered messages`),Z("info","cli_websocket_messages_to_replay",{count:X.length});for(let $ of X){let j=O($)+`
|
|
3
|
-
`;if(!this.sendLine(j)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=O(J)+`
|
|
4
|
-
`;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",X=this.getControlMessageDetailLabel(J);Y(`WebSocketTransport: Sending message type=${J.type}${Q}${X}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,X=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${X?` tool=${X}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>E){Y(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),Z("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){Y("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),Z("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(X){Y(`WebSocketTransport: Ping failed: ${X}`,{level:"error"}),Z("error","cli_websocket_ping_failed")}}},p)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),L(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send(u),this.lastActivityTime=Date.now(),Y("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){Y(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),Z("error","cli_websocket_keepalive_failed")}},m)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var g=100,t=15000,l=3000;class n extends W{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,X,$){super(J,K,Q,X,$);let{maxConsecutiveFailures:j,onBatchDropped:G}=$??{};this.postUrl=r(J),this.uploader=new F({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:j,onBatchDropped:(V,q)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:V,failures:q}),G?.(V,q)},send:(V)=>this.postOnce(V)}),Y(`HybridTransport: POST URL = ${this.postUrl}`),Z("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),g);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,l)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=U();if(!K){Y("HybridTransport: No session token available for POST"),Z("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},X;try{X=await y.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:t})}catch($){throw Y(`HybridTransport: POST error: ${$.message}`),Z("warn","cli_hybrid_post_network_error"),$}if(X.status>=200&&X.status<300){Y(`HybridTransport: POST success count=${J.length}`);return}if(X.status>=400&&X.status<500&&X.status!==429){Y(`HybridTransport: POST returned ${X.status} (permanent), dropping`),Z("warn","cli_hybrid_post_client_error",{status:X.status});return}throw Y(`HybridTransport: POST returned ${X.status} (retryable)`),Z("warn","cli_hybrid_post_retryable_error",{status:X.status}),Error(`POST failed with ${X.status}`)}}function r(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}
|
|
5
|
-
export{W as qb,n as rb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tta as B}from"./cli-1.1.22-w09pyst3.mjs";function F(z){let k=z.trim();if(!k.startsWith("/"))return null;let b=k.slice(1).split(" ");if(!b[0])return null;let j=b[0],l=!1,q=1;if(b.length>1&&b[1]==="(MCP)")j=j+" (MCP)",l=!0,q=2;let A=b.slice(q).join(" ");return{commandName:j,args:A,isMcp:l}}var C=()=>{};
|
|
2
|
-
export{F as Ji,C as Ki};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tta as g}from"./cli-1.1.22-w09pyst3.mjs";import{lstat as c,readdir as Cq,realpath as Mq,stat as Kq}from"node:fs/promises";import{join as Nq,relative as Hq,resolve as l,sep as Yq}from"node:path";import{Readable as Oq}from"node:stream";function i(q,J={}){let X=J.entryType||J.type;if(X==="both")X=H.FILE_DIR_TYPE;if(X)J.type=X;if(!q)throw Error("readdirp: root argument is required. Usage: readdirp(root, options)");else if(typeof q!=="string")throw TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");else if(X&&!o.includes(X))throw Error(`readdirp: Invalid type passed. Use one of ${o.join(", ")}`);return J.root=q,new u(J)}var H,_,h="READDIRP_RECURSIVE_ERROR",Iq,o,bq,Dq,Vq=(q)=>Iq.has(q.code),Lq,p=(q)=>!0,n=(q)=>{if(q===void 0)return p;if(typeof q==="function")return q;if(typeof q==="string"){let J=q.trim();return(X)=>X.basename===J}if(Array.isArray(q)){let J=q.map((X)=>X.trim());return(X)=>J.some((Q)=>X.basename===Q)}return p},u;var s=g(()=>{H={FILE_TYPE:"files",DIR_TYPE:"directories",FILE_DIR_TYPE:"files_directories",EVERYTHING_TYPE:"all"},_={root:".",fileFilter:(q)=>!0,directoryFilter:(q)=>!0,type:H.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:4096};Object.freeze(_);Iq=new Set(["ENOENT","EPERM","EACCES","ELOOP",h]),o=[H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE],bq=new Set([H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE]),Dq=new Set([H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE]),Lq=process.platform==="win32";u=class u extends Oq{parents;reading;parent;_stat;_maxDepth;_wantsDir;_wantsFile;_wantsEverything;_root;_isDirent;_statsProp;_rdOptions;_fileFilter;_directoryFilter;constructor(q={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:q.highWaterMark});let J={..._,...q},{root:X,type:Q}=J;this._fileFilter=n(J.fileFilter),this._directoryFilter=n(J.directoryFilter);let Z=J.lstat?c:Kq;if(Lq)this._stat=(z)=>Z(z,{bigint:!0});else this._stat=Z;this._maxDepth=J.depth!=null&&Number.isSafeInteger(J.depth)?J.depth:_.depth,this._wantsDir=Q?bq.has(Q):!1,this._wantsFile=Q?Dq.has(Q):!1,this._wantsEverything=Q===H.EVERYTHING_TYPE,this._root=l(X),this._isDirent=!J.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(X,1)],this.reading=!1,this.parent=void 0}async _read(q){if(this.reading)return;this.reading=!0;try{while(!this.destroyed&&q>0){let J=this.parent,X=J&&J.files;if(X&&X.length>0){let{path:Q,depth:Z}=J,z=X.splice(0,q).map((G)=>this._formatEntry(G,Q)),$=await Promise.all(z);for(let G of $){if(!G)continue;if(this.destroyed)return;let U=await this._getEntryType(G);if(U==="directory"&&this._directoryFilter(G)){if(Z<=this._maxDepth)this.parents.push(this._exploreDir(G.fullPath,Z+1));if(this._wantsDir)this.push(G),q--}else if((U==="file"||this._includeAsFile(G))&&this._fileFilter(G)){if(this._wantsFile)this.push(G),q--}}}else{let Q=this.parents.pop();if(!Q){this.push(null);break}if(this.parent=await Q,this.destroyed)return}}}catch(J){this.destroy(J)}finally{this.reading=!1}}async _exploreDir(q,J){let X;try{X=await Cq(q,this._rdOptions)}catch(Q){this._onError(Q)}return{files:X,depth:J,path:q}}async _formatEntry(q,J){let X,Q=this._isDirent?q.name:q;try{let Z=l(Nq(J,Q));X={path:Hq(this._root,Z),fullPath:Z,basename:Q},X[this._statsProp]=this._isDirent?q:await this._stat(Z)}catch(Z){this._onError(Z);return}return X}_onError(q){if(Vq(q)&&!this.destroyed)this.emit("warn",q);else this.destroy(q)}async _getEntryType(q){if(!q&&this._statsProp in q)return"";let J=q[this._statsProp];if(J.isFile())return"file";if(J.isDirectory())return"directory";if(J&&J.isSymbolicLink()){let X=q.fullPath;try{let Q=await Mq(X),Z=await c(Q);if(Z.isFile())return"file";if(Z.isDirectory()){let z=Q.length;if(X.startsWith(Q)&&X.substr(z,1)===Yq){let $=Error(`Circular symlink detected: "${X}" points to "${Q}"`);return $.code=h,this._onError($)}return"directory"}}catch(Q){return this._onError(Q),""}}}_includeAsFile(q){let J=q&&q[this._statsProp];return J&&this._wantsEverything&&!J.isDirectory()}}});import{watch as Aq,unwatchFile as a,watchFile as Wq}from"node:fs";import{realpath as P,lstat as Fq,open as Rq,stat as e}from"node:fs/promises";import{type as Tq}from"node:os";import*as M from"node:path";function r(q,J,X,Q,Z){let z=($,G)=>{if(X(q),Z($,G,{watchedPath:q}),G&&q!==G)W(M.resolve(q,G),I,M.join(q,G))};try{return Aq(q,{persistent:J.persistent},z)}catch($){Q($);return}}class f{fsw;_boundHandleError;constructor(q){this.fsw=q,this._boundHandleError=(J)=>q._handleError(J)}_watchWithNodeFs(q,J){let X=this.fsw.options,Q=M.dirname(q),Z=M.basename(q);this.fsw._getWatchedDir(Q).add(Z);let $=M.resolve(q),G={persistent:X.persistent};if(!J)J=F;let U;if(X.usePolling){let x=X.interval!==X.binaryInterval;G.interval=x&&fq(Z)?X.binaryInterval:X.interval,U=dq(q,$,G,{listener:J,rawEmitter:this.fsw._emitRaw})}else U=mq(q,$,G,{listener:J,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return U}_handleFile(q,J,X){if(this.fsw.closed)return;let Q=M.dirname(q),Z=M.basename(q),z=this.fsw._getWatchedDir(Q),$=J;if(z.has(Z))return;let G=async(x,j)=>{if(!this.fsw._throttle(Sq,q,5))return;if(!j||j.mtimeMs===0)try{let k=await e(q);if(this.fsw.closed)return;let{atimeMs:K,mtimeMs:N}=k;if(!K||K<=N||N!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,k);if((gq||uq||Pq)&&$.ino!==k.ino){this.fsw._closeFile(x),$=k;let O=this._watchWithNodeFs(q,G);if(O)this.fsw._addPathCloser(x,O)}else $=k}catch(k){this.fsw._remove(Q,Z)}else if(z.has(Z)){let{atimeMs:k,mtimeMs:K}=j;if(!k||k<=K||K!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,j);$=j}},U=this._watchWithNodeFs(q,G);if(!(X&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(q)){if(!this.fsw._throttle(Y.ADD,q,0))return;this.fsw._emit(Y.ADD,q,J)}return U}async _handleSymlink(q,J,X,Q){if(this.fsw.closed)return;let Z=q.fullPath,z=this.fsw._getWatchedDir(J);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let $;try{$=await P(X)}catch(G){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if(z.has(Q)){if(this.fsw._symlinkPaths.get(Z)!==$)this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.CHANGE,X,q.stats)}else z.add(Q),this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.ADD,X,q.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(Z))return!0;this.fsw._symlinkPaths.set(Z,!0)}_handleRead(q,J,X,Q,Z,z,$){q=M.join(q,"");let G=Q?`${q}:${Q}`:q;if($=this.fsw._throttle("readdir",G,1000),!$)return;let U=this.fsw._getWatchedDir(X.path),x=new Set,j=this.fsw._readdirp(q,{fileFilter:(k)=>X.filterPath(k),directoryFilter:(k)=>X.filterDir(k)});if(!j)return;return j.on(_q,async(k)=>{if(this.fsw.closed){j=void 0;return}let K=k.path,N=M.join(q,K);if(x.add(K),k.stats.isSymbolicLink()&&await this._handleSymlink(k,q,N,K))return;if(this.fsw.closed){j=void 0;return}if(K===Q||!Q&&!U.has(K))this.fsw._incrReadyCount(),N=M.join(Z,M.relative(Z,N)),this._addToNodeFs(N,J,X,z+1)}).on(Y.ERROR,this._boundHandleError),new Promise((k,K)=>{if(!j)return K();j.once(w,()=>{if(this.fsw.closed){j=void 0;return}let N=$?$.clear():!1;if(k(void 0),U.getChildren().filter((O)=>{return O!==q&&!x.has(O)}).forEach((O)=>{this.fsw._remove(q,O)}),j=void 0,N)this._handleRead(q,!1,X,Q,Z,z,$)})})}async _handleDir(q,J,X,Q,Z,z,$){let G=this.fsw._getWatchedDir(M.dirname(q)),U=G.has(M.basename(q));if(!(X&&this.fsw.options.ignoreInitial)&&!Z&&!U)this.fsw._emit(Y.ADD_DIR,q,J);G.add(M.basename(q)),this.fsw._getWatchedDir(q);let x,j,k=this.fsw.options.depth;if((k==null||Q<=k)&&!this.fsw._symlinkPaths.has($)){if(!Z){if(await this._handleRead(q,X,z,Z,q,Q,x),this.fsw.closed)return}j=this._watchWithNodeFs(q,(K,N)=>{if(N&&N.mtimeMs===0)return;this._handleRead(K,!1,z,Z,q,Q,x)})}return j}async _addToNodeFs(q,J,X,Q,Z){let z=this.fsw._emitReady;if(this.fsw._isIgnored(q)||this.fsw.closed)return z(),!1;let $=this.fsw._getWatchHelpers(q);if(X)$.filterPath=(G)=>X.filterPath(G),$.filterDir=(G)=>X.filterDir(G);try{let G=await vq[$.statMethod]($.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored($.watchPath,G))return z(),!1;let U=this.fsw.options.followSymlinks,x;if(G.isDirectory()){let j=M.resolve(q),k=U?await P(q):q;if(this.fsw.closed)return;if(x=await this._handleDir($.watchPath,G,J,Q,Z,$,k),this.fsw.closed)return;if(j!==k&&k!==void 0)this.fsw._symlinkPaths.set(j,k)}else if(G.isSymbolicLink()){let j=U?await P(q):q;if(this.fsw.closed)return;let k=M.dirname($.watchPath);if(this.fsw._getWatchedDir(k).add($.watchPath),this.fsw._emit(Y.ADD,$.watchPath,G),x=await this._handleDir(k,G,J,Q,q,$,j),this.fsw.closed)return;if(j!==void 0)this.fsw._symlinkPaths.set(M.resolve(q),j)}else x=this._handleFile($.watchPath,G,J);if(z(),x)this.fsw._addPathCloser(q,x);return!1}catch(G){if(this.fsw._handleError(G))return z(),q}}}var _q="data",w="end",t="close",F=()=>{},R,E,gq,uq,Pq,qq,C,Y,Sq="watch",vq,I="listeners",L="errHandlers",b="rawEmitters",wq,Eq,fq=(q)=>Eq.has(M.extname(q).slice(1).toLowerCase()),v=(q,J)=>{if(q instanceof Set)q.forEach(J);else J(q)},D=(q,J,X)=>{let Q=q[J];if(!(Q instanceof Set))q[J]=Q=new Set([Q]);Q.add(X)},yq=(q)=>(J)=>{let X=q[J];if(X instanceof Set)X.clear();else delete q[J]},V=(q,J,X)=>{let Q=q[J];if(Q instanceof Set)Q.delete(X);else if(Q===X)delete q[J]},Jq=(q)=>q instanceof Set?q.size===0:!q,A,W=(q,J,X,Q,Z)=>{let z=A.get(q);if(!z)return;v(z[J],($)=>{$(X,Q,Z)})},mq=(q,J,X,Q)=>{let{listener:Z,errHandler:z,rawEmitter:$}=Q,G=A.get(J),U;if(!X.persistent){if(U=r(q,X,Z,z,$),!U)return;return U.close.bind(U)}if(G)D(G,I,Z),D(G,L,z),D(G,b,$);else{if(U=r(q,X,W.bind(null,J,I),z,W.bind(null,J,b)),!U)return;U.on(Y.ERROR,async(x)=>{let j=W.bind(null,J,L);if(G)G.watcherUnusable=!0;if(E&&x.code==="EPERM")try{await(await Rq(q,"r")).close(),j(x)}catch(k){}else j(x)}),G={listeners:Z,errHandlers:z,rawEmitters:$,watcher:U},A.set(J,G)}return()=>{if(V(G,I,Z),V(G,L,z),V(G,b,$),Jq(G.listeners))G.watcher.close(),A.delete(J),wq.forEach(yq(G)),G.watcher=void 0,Object.freeze(G)}},S,dq=(q,J,X,Q)=>{let{listener:Z,rawEmitter:z}=Q,$=S.get(J),G=$&&$.options;if(G&&(G.persistent<X.persistent||G.interval>X.interval))a(J),$=void 0;if($)D($,I,Z),D($,b,z);else $={listeners:Z,rawEmitters:z,options:X,watcher:Wq(J,X,(U,x)=>{v($.rawEmitters,(k)=>{k(Y.CHANGE,J,{curr:U,prev:x})});let j=U.mtimeMs;if(U.size!==x.size||j>x.mtimeMs||j===0)v($.listeners,(k)=>k(q,U))})},S.set(J,$);return()=>{if(V($,I,Z),V($,b,z),Jq($.listeners))S.delete(J),a(J),$.options=$.watcher=void 0,Object.freeze($)}};var Qq=g(()=>{R=process.platform,E=R==="win32",gq=R==="darwin",uq=R==="linux",Pq=R==="freebsd",qq=Tq()==="OS400",C={ALL:"all",READY:"ready",ADD:"add",CHANGE:"change",ADD_DIR:"addDir",UNLINK:"unlink",UNLINK_DIR:"unlinkDir",RAW:"raw",ERROR:"error"},Y=C,vq={lstat:Fq,stat:e},wq=[I,L,b],Eq=new Set(["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),A=new Map;S=new Map});import{EventEmitter as cq}from"node:events";import{stat as lq,Stats as YJ}from"node:fs";import{readdir as oq,stat as pq}from"node:fs/promises";import*as B from"node:path";function T(q){return Array.isArray(q)?q:[q]}function eq(q){if(typeof q==="function")return q;if(typeof q==="string")return(J)=>q===J;if(q instanceof RegExp)return(J)=>q.test(J);if(typeof q==="object"&&q!==null)return(J)=>{if(q.path===J)return!0;if(q.recursive){let X=B.relative(q.path,J);if(!X)return!1;return!X.startsWith("..")&&!B.isAbsolute(X)}return!1};return()=>!1}function tq(q){if(typeof q!=="string")throw Error("string expected");q=B.normalize(q),q=q.replace(/\\/g,"/");let J=!1;if(q.startsWith("//"))J=!0;if(q=q.replace(Uq,"/"),J)q="/"+q;return q}function Xq(q,J,X){let Q=tq(J);for(let Z=0;Z<q.length;Z++){let z=q[Z];if(z(Q,X))return!0}return!1}function qJ(q,J){if(q==null)throw TypeError("anymatch: specify first argument");let Q=T(q).map((Z)=>eq(Z));if(J==null)return(Z,z)=>{return Xq(Q,Z,z)};return Xq(Q,J)}class kq{path;_removeWatcher;items;constructor(q,J){this.path=q,this._removeWatcher=J,this.items=new Set}add(q){let{items:J}=this;if(!J)return;if(q!==zq&&q!==hq)J.add(q)}async remove(q){let{items:J}=this;if(!J)return;if(J.delete(q),J.size>0)return;let X=this.path;try{await oq(X)}catch(Q){if(this._removeWatcher)this._removeWatcher(B.dirname(X),B.basename(X))}}has(q){let{items:J}=this;if(!J)return;return J.has(q)}getChildren(){let{items:q}=this;if(!q)return[];return[...q.values()]}dispose(){this.items.clear(),this.path="",this._removeWatcher=F,this.items=QJ,Object.freeze(this)}}class Bq{fsw;path;watchPath;fullWatchPath;dirParts;followSymlinks;statMethod;constructor(q,J,X){this.fsw=X;let Q=q;this.path=q=q.replace(rq,""),this.watchPath=Q,this.fullWatchPath=B.resolve(Q),this.dirParts=[],this.dirParts.forEach((Z)=>{if(Z.length>1)Z.pop()}),this.followSymlinks=J,this.statMethod=J?XJ:ZJ}entryPath(q){return B.join(this.watchPath,B.relative(this.watchPath,q.fullPath))}filterPath(q){let{stats:J}=q;if(J&&J.isSymbolicLink())return this.filterDir(q);let X=this.entryPath(q);return this.fsw._isntIgnored(X,J)&&this.fsw._hasReadPermissions(J)}filterDir(q){return this.fsw._isntIgnored(this.entryPath(q),q.stats)}}function $J(q,J={}){let X=new d(J);return X.add(q),X}var y="/",nq="//",zq=".",hq="..",iq="string",sq,Uq,aq,rq,m=(q)=>typeof q==="object"&&q!==null&&!(q instanceof RegExp),Zq=(q)=>{let J=T(q).flat();if(!J.every((X)=>typeof X===iq))throw TypeError(`Non-string provided as watch path: ${J}`);return J.map(xq)},$q=(q)=>{let J=q.replace(sq,y),X=!1;if(J.startsWith(nq))X=!0;if(J=J.replace(Uq,y),X)J=y+J;return J},xq=(q)=>$q(B.normalize($q(q))),Gq=(q="")=>(J)=>{if(typeof J==="string")return xq(B.isAbsolute(J)?J:B.join(q,J));else return J},JJ=(q,J)=>{if(B.isAbsolute(q))return q;return B.join(J,q)},QJ,XJ="stat",ZJ="lstat",d,DJ;var GJ=g(()=>{s();Qq();/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */sq=/\\/g,Uq=/\/\//g,aq=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,rq=/^\.[/\\]/;QJ=Object.freeze(new Set);d=class d extends cq{closed;options;_closers;_ignoredPaths;_throttled;_streams;_symlinkPaths;_watched;_pendingWrites;_pendingUnlinks;_readyCount;_emitReady;_closePromise;_userIgnored;_readyEmitted;_emitRaw;_boundRemove;_nodeFsHandler;constructor(q={}){super();this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let J=q.awaitWriteFinish,X={stabilityThreshold:2000,pollInterval:100},Q={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...q,ignored:q.ignored?T(q.ignored):T([]),awaitWriteFinish:J===!0?X:typeof J==="object"?{...X,...J}:!1};if(qq)Q.usePolling=!0;if(Q.atomic===void 0)Q.atomic=!Q.usePolling;let Z=process.env.CHOKIDAR_USEPOLLING;if(Z!==void 0){let G=Z.toLowerCase();if(G==="false"||G==="0")Q.usePolling=!1;else if(G==="true"||G==="1")Q.usePolling=!0;else Q.usePolling=!!G}let z=process.env.CHOKIDAR_INTERVAL;if(z)Q.interval=Number.parseInt(z,10);let $=0;this._emitReady=()=>{if($++,$>=this._readyCount)this._emitReady=F,this._readyEmitted=!0,process.nextTick(()=>this.emit(C.READY))},this._emitRaw=(...G)=>this.emit(C.RAW,...G),this._boundRemove=this._remove.bind(this),this.options=Q,this._nodeFsHandler=new f(this),Object.freeze(Q)}_addIgnoredPath(q){if(m(q)){for(let J of this._ignoredPaths)if(m(J)&&J.path===q.path&&J.recursive===q.recursive)return}this._ignoredPaths.add(q)}_removeIgnoredPath(q){if(this._ignoredPaths.delete(q),typeof q==="string"){for(let J of this._ignoredPaths)if(m(J)&&J.path===q)this._ignoredPaths.delete(J)}}add(q,J,X){let{cwd:Q}=this.options;this.closed=!1,this._closePromise=void 0;let Z=Zq(q);if(Q)Z=Z.map((z)=>{return JJ(z,Q)});if(Z.forEach((z)=>{this._removeIgnoredPath(z)}),this._userIgnored=void 0,!this._readyCount)this._readyCount=0;return this._readyCount+=Z.length,Promise.all(Z.map(async(z)=>{let $=await this._nodeFsHandler._addToNodeFs(z,!X,void 0,0,J);if($)this._emitReady();return $})).then((z)=>{if(this.closed)return;z.forEach(($)=>{if($)this.add(B.dirname($),B.basename(J||$))})}),this}unwatch(q){if(this.closed)return this;let J=Zq(q),{cwd:X}=this.options;return J.forEach((Q)=>{if(!B.isAbsolute(Q)&&!this._closers.has(Q)){if(X)Q=B.join(X,Q);Q=B.resolve(Q)}if(this._closePath(Q),this._addIgnoredPath(Q),this._watched.has(Q))this._addIgnoredPath({path:Q,recursive:!0});this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let q=[];return this._closers.forEach((J)=>J.forEach((X)=>{let Q=X();if(Q instanceof Promise)q.push(Q)})),this._streams.forEach((J)=>J.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((J)=>J.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=q.length?Promise.all(q).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let q={};return this._watched.forEach((J,X)=>{let Z=(this.options.cwd?B.relative(this.options.cwd,X):X)||zq;q[Z]=J.getChildren().sort()}),q}emitWithAll(q,J){if(this.emit(q,...J),q!==C.ERROR)this.emit(C.ALL,q,...J)}async _emit(q,J,X){if(this.closed)return;let Q=this.options;if(E)J=B.normalize(J);if(Q.cwd)J=B.relative(Q.cwd,J);let Z=[J];if(X!=null)Z.push(X);let z=Q.awaitWriteFinish,$;if(z&&($=this._pendingWrites.get(J)))return $.lastChange=new Date,this;if(Q.atomic){if(q===C.UNLINK)return this._pendingUnlinks.set(J,[q,...Z]),setTimeout(()=>{this._pendingUnlinks.forEach((G,U)=>{this.emit(...G),this.emit(C.ALL,...G),this._pendingUnlinks.delete(U)})},typeof Q.atomic==="number"?Q.atomic:100),this;if(q===C.ADD&&this._pendingUnlinks.has(J))q=C.CHANGE,this._pendingUnlinks.delete(J)}if(z&&(q===C.ADD||q===C.CHANGE)&&this._readyEmitted){let G=(U,x)=>{if(U)q=C.ERROR,Z[0]=U,this.emitWithAll(q,Z);else if(x){if(Z.length>1)Z[1]=x;else Z.push(x);this.emitWithAll(q,Z)}};return this._awaitWriteFinish(J,z.stabilityThreshold,q,G),this}if(q===C.CHANGE){if(!this._throttle(C.CHANGE,J,50))return this}if(Q.alwaysStat&&X===void 0&&(q===C.ADD||q===C.ADD_DIR||q===C.CHANGE)){let G=Q.cwd?B.join(Q.cwd,J):J,U;try{U=await pq(G)}catch(x){}if(!U||this.closed)return;Z.push(U)}return this.emitWithAll(q,Z),this}_handleError(q){let J=q&&q.code;if(q&&J!=="ENOENT"&&J!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||J!=="EPERM"&&J!=="EACCES"))this.emit(C.ERROR,q);return q||this.closed}_throttle(q,J,X){if(!this._throttled.has(q))this._throttled.set(q,new Map);let Q=this._throttled.get(q);if(!Q)throw Error("invalid throttle");let Z=Q.get(J);if(Z)return Z.count++,!1;let z,$=()=>{let U=Q.get(J),x=U?U.count:0;if(Q.delete(J),clearTimeout(z),U)clearTimeout(U.timeoutObject);return x};z=setTimeout($,X);let G={timeoutObject:z,clear:$,count:0};return Q.set(J,G),G}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(q,J,X,Q){let Z=this.options.awaitWriteFinish;if(typeof Z!=="object")return;let z=Z.pollInterval,$,G=q;if(this.options.cwd&&!B.isAbsolute(q))G=B.join(this.options.cwd,q);let U=new Date,x=this._pendingWrites;function j(k){lq(G,(K,N)=>{if(K||!x.has(q)){if(K&&K.code!=="ENOENT")Q(K);return}let O=Number(new Date);if(k&&N.size!==k.size)x.get(q).lastChange=O;let jq=x.get(q);if(O-jq.lastChange>=J)x.delete(q),Q(void 0,N);else $=setTimeout(j,z,N)})}if(!x.has(q))x.set(q,{lastChange:U,cancelWait:()=>{return x.delete(q),clearTimeout($),X}}),$=setTimeout(j,z)}_isIgnored(q,J){if(this.options.atomic&&aq.test(q))return!0;if(!this._userIgnored){let{cwd:X}=this.options,Z=(this.options.ignored||[]).map(Gq(X)),$=[...[...this._ignoredPaths].map(Gq(X)),...Z];this._userIgnored=qJ($,void 0)}return this._userIgnored(q,J)}_isntIgnored(q,J){return!this._isIgnored(q,J)}_getWatchHelpers(q){return new Bq(q,this.options.followSymlinks,this)}_getWatchedDir(q){let J=B.resolve(q);if(!this._watched.has(J))this._watched.set(J,new kq(J,this._boundRemove));return this._watched.get(J)}_hasReadPermissions(q){if(this.options.ignorePermissionErrors)return!0;return Boolean(Number(q.mode)&256)}_remove(q,J,X){let Q=B.join(q,J),Z=B.resolve(Q);if(X=X!=null?X:this._watched.has(Q)||this._watched.has(Z),!this._throttle("remove",Q,100))return;if(!X&&this._watched.size===1)this.add(q,J,!0);this._getWatchedDir(Q).getChildren().forEach((k)=>this._remove(Q,k));let G=this._getWatchedDir(q),U=G.has(J);if(G.remove(J),this._symlinkPaths.has(Z))this._symlinkPaths.delete(Z);let x=Q;if(this.options.cwd)x=B.relative(this.options.cwd,Q);if(this.options.awaitWriteFinish&&this._pendingWrites.has(x)){if(this._pendingWrites.get(x).cancelWait()===C.ADD)return}this._watched.delete(Q),this._watched.delete(Z);let j=X?C.UNLINK_DIR:C.UNLINK;if(U&&!this._isIgnored(Q))this._emit(j,Q);this._closePath(Q)}_closePath(q){this._closeFile(q);let J=B.dirname(q);this._getWatchedDir(J).remove(B.basename(q))}_closeFile(q){let J=this._closers.get(q);if(!J)return;J.forEach((X)=>X()),this._closers.delete(q)}_addPathCloser(q,J){if(!J)return;let X=this._closers.get(q);if(!X)X=[],this._closers.set(q,X);X.push(J)}_readdirp(q,J){if(this.closed)return;let X={type:C.ALL,alwaysStat:!0,lstat:!0,...J,depth:0},Q=i(q,X);return this._streams.add(Q),Q.once(t,()=>{Q=void 0}),Q.once(w,()=>{if(Q)this._streams.delete(Q),Q=void 0}),Q}};DJ={watch:$J,FSWatcher:d}});
|
|
2
|
-
export{Bq as kW,d as lW,$J as mW,DJ as nW,GJ as oW};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{eS as b,qO as V,rk as J,sO as z,vx as L,wx as v}from"./cli-1.1.22-zmt5pksy.mjs";import{Xaa as F,aba as X}from"./cli-1.1.22-3jyydg5h.mjs";import{cja as Y,eja as A,fja as H,gja as k}from"./cli-1.1.22-jz426kr2.mjs";import{Zja as W,aka as R}from"./cli-1.1.22-s5qhs3ds.mjs";import{ala as D,dla as f}from"./cli-1.1.22-ca6d1erw.mjs";import{opa as q,yra as M}from"./cli-1.1.22-v260dy3k.mjs";import{tta as C}from"./cli-1.1.22-w09pyst3.mjs";function T(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 p(U,Q){let G=U.trim();if(!G)return null;try{let w=await V({systemPrompt:L([P]),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=J(w.message.content),B=I().safeParse(F(K)),Z=B.success?B.data.title.trim()||null:null;return W("",{success:Z!==null}),Z}catch(w){return D(`generateSessionTitle failed: ${w}`,{level:"error"}),W("",{success:!1}),"Claudin"}}var $=1000,P=`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 _=C(()=>{A();M();R();z();f();X();k();b();v();I=H(()=>Y.object({title:Y.string()}))});
|
|
15
|
-
export{T as me,p as ne,_ as oe};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{$0 as s,DZ as t,H1 as o,MZ as p,_0 as j,a1 as F,c1 as V}from"./cli-1.1.22-261r450y.mjs";import{d4 as w,e4 as g,f4 as y}from"./cli-1.1.22-vwdxbs23.mjs";import{D_ as _,E_ as n,x_ as $,y_ as a}from"./cli-1.1.22-3jyydg5h.mjs";import{pta as i,tta as v}from"./cli-1.1.22-w09pyst3.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,D){if(!D)return Y;return j(D,W)(Y)}function N(Y,D,S,A=0){if(typeof Y==="string"){X.push(D+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let H=String(Y);X.push(D+Z(H,Q.value))}return}if(I.has(Y)){X.push(D+Z("[Circular]",Q.value));return}I.add(Y);let L=Object.keys(Y).filter((H)=>{let E=Y[H];if(G&&typeof E==="function")return!1;return!0});L.forEach((H,E)=>{let U=Y[H],P=E===L.length-1,T=A===0&&E===0?"":D,u=P?R.lastBranch:R.branch,d=Z(u,Q.treeChar),C=H.trim()===""?"":Z(H,Q.key),B=T+d+(C?" "+C:""),z=H.trim()!=="";if(U&&typeof U==="object"&&I.has(U)){let K=Z("[Circular]",Q.value);X.push(B+(z?": ":B?" ":"")+K)}else if(U&&typeof U==="object"&&!Array.isArray(U)){X.push(B);let K=P?R.empty:R.line,k=Z(K,Q.treeChar),c=T+k+" ";N(U,c,P,A+1)}else if(Array.isArray(U))X.push(B+(z?": ":B?" ":"")+"[Array("+U.length+")]");else if(M){let K=typeof U==="function"?"[Function]":String(U),k=Z(K,Q.value);B+=(z?": ":B?" ":"")+k,X.push(B)}else X.push(B)})}let O=Object.keys(J);if(O.length===0)return Z("(empty)",Q.value);if(O.length===1&&O[0]!==void 0&&O[0].trim()===""&&typeof J[O[0]]==="string"){let Y=O[0],D=Z(R.lastBranch,Q.treeChar),S=Z(J[Y],Q.value);return D+" "+S}return N(J,"",!0),X.join(`
|
|
2
|
-
`)}var R;var m=v(()=>{a();s();R={branch:$.lineUpDownRight,lastBranch:$.lineUpRight,line:$.lineVertical,empty:" "}});function r(J){let q={};return J.forEach((M)=>{if(!M.path){q[""]=M.message;return}let G=M.path.split("."),W=M.path;if(M.invalidValue!==null&&M.invalidValue!==void 0&&G.length>0){let Q=[];for(let X=0;X<G.length;X++){let I=G[X];if(!I)continue;let Z=parseInt(I,10);if(!isNaN(Z)&&X===G.length-1){let N;if(typeof M.invalidValue==="string")N=`"${M.invalidValue}"`;else if(M.invalidValue===null)N="null";else if(M.invalidValue===void 0)N="undefined";else N=String(M.invalidValue);Q.push(N)}else Q.push(I)}W=Q.join(".")}b(q,W,M.message,Object)}),q}function Hq(J){let q=h.c(9),{errors:M}=J,[G]=p();if(M.length===0)return null;let W,Q,X;if(q[0]!==M||q[1]!==G){let Z=M.reduce(Jq,{}),N=Object.keys(Z).sort();W=F,Q="column",X=N.map((O)=>{let Y=Z[O]||[];Y.sort(qq);let D=r(Y),S=new Map;Y.forEach((L)=>{if(L.suggestion||L.docLink){let H=`${L.suggestion||""}|${L.docLink||""}`;if(!S.has(H))S.set(H,{suggestion:L.suggestion,docLink:L.docLink})}});let A=x(D,{showValues:!0,themeName:G,treeCharColors:{treeChar:"inactive",key:"text",value:"inactive"}});return g(F,{flexDirection:"column",children:[w(V,{children:O}),w(F,{marginLeft:1,children:w(V,{dimColor:!0,children:A})}),S.size>0&&w(F,{flexDirection:"column",marginTop:1,children:Array.from(S.values()).map(e)})]},O)}),q[0]=M,q[1]=G,q[2]=W,q[3]=Q,q[4]=X}else W=q[2],Q=q[3],X=q[4];let I;if(q[5]!==W||q[6]!==Q||q[7]!==X)I=w(W,{flexDirection:Q,children:X}),q[5]=W,q[6]=Q,q[7]=X,q[8]=I;else I=q[8];return I}function e(J,q){return g(F,{flexDirection:"column",marginBottom:1,children:[J.suggestion&&w(V,{dimColor:!0,wrap:"wrap",children:J.suggestion}),J.docLink&&g(V,{dimColor:!0,wrap:"wrap",children:["Learn more: ",J.docLink]})]},`suggestion-pair-${q}`)}function qq(J,q){if(!J.path&&q.path)return-1;if(J.path&&!q.path)return 1;return(J.path||"").localeCompare(q.path||"")}function Jq(J,q){let M=q.file||"(file not specified)";if(!J[M])J[M]=[];return J[M].push(q),J}var h;var Mq=v(()=>{f();o();m();y();h=i(t(),1)});
|
|
3
|
-
export{Hq as ig,Mq as jg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{DZ as O}from"./cli-1.1.22-261r450y.mjs";import{d4 as X,f4 as Q}from"./cli-1.1.22-vwdxbs23.mjs";import{g4 as b}from"./cli-1.1.22-c07z4d74.mjs";import{ifa as W,wfa as P}from"./cli-1.1.22-3jyydg5h.mjs";import{pta as U}from"./cli-1.1.22-w09pyst3.mjs";P();Q();var Y=U(O(),1),J=U(b(),1);function L(D,z){let F=z/100*(D.length-1),q=Math.floor(F),k=Math.ceil(F);if(q===k)return D[q];return D[q]+(D[k]-D[q])*(F-q)}var T=1024;function V(){let D=new Map,z=new Map,F=new Map;return{increment(q,k=1){D.set(q,(D.get(q)??0)+k)},set(q,k){D.set(q,k)},observe(q,k){let y=z.get(q);if(!y)y={reservoir:[],count:0,sum:0,min:k,max:k},z.set(q,y);if(y.count++,y.sum+=k,k<y.min)y.min=k;if(k>y.max)y.max=k;if(y.reservoir.length<T)y.reservoir.push(k);else{let B=Math.floor(Math.random()*y.count);if(B<T)y.reservoir[B]=k}},add(q,k){let y=F.get(q);if(!y)y=new Set,F.set(q,y);y.add(k)},getAll(){let q=Object.fromEntries(D);for(let[k,y]of z){if(y.count===0)continue;q[`${k}_count`]=y.count,q[`${k}_min`]=y.min,q[`${k}_max`]=y.max,q[`${k}_avg`]=y.sum/y.count;let B=[...y.reservoir].sort((G,H)=>G-H);q[`${k}_p50`]=L(B,50),q[`${k}_p95`]=L(B,95),q[`${k}_p99`]=L(B,99)}for(let[k,y]of F)q[k]=y.size;return q}}}var Z=J.createContext(null);function C(D){let z=Y.c(7),{store:F,children:q}=D,k;if(z[0]===Symbol.for("react.memo_cache_sentinel"))k=V(),z[0]=k;else k=z[0];let B=F??k,G,H;if(z[1]!==B)G=()=>{let M=()=>{let N=B.getAll();if(Object.keys(N).length>0)W((A)=>({...A,lastSessionMetrics:N}))};return process.on("exit",M),()=>{process.off("exit",M)}},H=[B],z[1]=B,z[2]=G,z[3]=H;else G=z[2],H=z[3];J.useEffect(G,H);let K;if(z[4]!==q||z[5]!==B)K=X(Z.Provider,{value:B,children:q}),z[4]=q,z[5]=B,z[6]=K;else K=z[6];return K}
|
|
2
|
-
export{V as kb,C as lb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Az as Uq,Bz as mq,vs as Hq,ws as pq}from"./cli-1.1.22-zmt5pksy.mjs";import{q4 as Bq,s4 as dq}from"./cli-1.1.22-4pmfh5v2.mjs";import{K7 as Nq,L7 as yq,Q8 as gq,Z4 as Lq,c5 as jq,d5 as Sq,q8 as i,u8 as S}from"./cli-1.1.22-q622p3vr.mjs";import{Gea as Yq,Hea as Dq,I$ as b,Iea as k,Kea as Wq,M$ as $q,Nea as Xq,raa as Gq,taa as Pq}from"./cli-1.1.22-3jyydg5h.mjs";import{cja as N,eja as Mq,fja as E,gja as Cq}from"./cli-1.1.22-jz426kr2.mjs";import{Qja as Kq,Rja as Qq,Sja as Vq,Xja as Zq,Yja as Rq}from"./cli-1.1.22-y4rj8ced.mjs";import{Zja as _,aka as e}from"./cli-1.1.22-s5qhs3ds.mjs";import{Fka as m,Kka as Eq,ala as Y,dka as Fq,dla as Jq,fka as $J}from"./cli-1.1.22-ca6d1erw.mjs";import{Ala as C,Gla as P,Hla as qq}from"./cli-1.1.22-3r3tadt1.mjs";import{Bsa as z,Tsa as kq}from"./cli-1.1.22-gwhdvfge.mjs";import{sta as ZJ,tta as d,uta as Tq}from"./cli-1.1.22-w09pyst3.mjs";var fq,r,s;var t=d(()=>{Mq();Cq();fq=E(()=>N.object({entries:N.record(N.string(),N.string()),entryChecksums:N.record(N.string(),N.string()).optional()})),r=E(()=>N.object({organizationId:N.string(),repo:N.string(),version:N.number(),lastModified:N.string(),checksum:N.string(),content:fq()})),s=E(()=>N.object({error:N.object({details:N.object({error_code:N.literal("team_memory_too_many_entries"),max_entries:N.number().int().positive(),received_entries:N.number().int().positive()})})}))});import{createHash as hq}from"crypto";import{mkdir as iq,readdir as cq,readFile as Oq,stat as nq,writeFile as lq}from"fs/promises";import{join as uq,relative as oq,sep as aq}from"path";function wq(){return{lastKnownChecksum:null,serverChecksums:new Map,serverMaxEntries:null}}function sq(q){return"sha256:"+hq("sha256").update(q,"utf8").digest("hex")}function xq(q){return q instanceof Error&&"code"in q&&typeof q.code==="string"}function n(){if(Lq()!=="firstParty"||!jq())return!1;let q=i();return Boolean(q?.accessToken&&q.scopes?.includes(Kq)&&q.scopes.includes(Qq))}function l(q){return`${process.env.TEAM_MEMORY_SYNC_URL||Zq().BASE_API_URL}/api/claude_code/team_memory?repo=${encodeURIComponent(q)}`}function u(){let q=i();if(q?.accessToken)return{headers:{Authorization:`Bearer ${q.accessToken}`,"anthropic-beta":Vq,"User-Agent":Bq()}};return{error:"No OAuth token available for team memory sync"}}async function tq(q,K,$){try{await S();let V=u();if(V.error)return{success:!1,error:V.error,skipRetry:!0,errorType:"auth"};let Q={...V.headers};if($)Q["If-None-Match"]=`"${$.replace(/"/g,"")}"`;let G=l(K),J=await z.get(G,{headers:Q,timeout:c,validateStatus:(X)=>X===200||X===304||X===404});if(J.status===304)return Y("team-memory-sync: not modified (304)",{level:"debug"}),{success:!0,notModified:!0,checksum:$??void 0};if(J.status===404)return Y("team-memory-sync: no remote data (404)",{level:"debug"}),q.lastKnownChecksum=null,{success:!0,isEmpty:!0};let Z=r().safeParse(J.data);if(!Z.success)return Y("team-memory-sync: invalid response format",{level:"warn"}),{success:!1,error:"Invalid team memory response format",skipRetry:!0,errorType:"parse"};let W=Z.data.checksum||J.headers.etag?.replace(/^"|"$/g,"")||void 0;if(W)q.lastKnownChecksum=W;return Y(`team-memory-sync: fetched successfully (checksum: ${W??"none"})`,{level:"debug"}),{success:!0,data:Z.data,isEmpty:!1,checksum:W}}catch(V){let{kind:Q,status:G,message:J}=P(V),Z=z.isAxiosError(V)?JSON.stringify(V.response?.data??""):"";if(Q!=="other")Y(`team-memory-sync: fetch error ${G}: ${Z}`,{level:"warn"});switch(Q){case"auth":return{success:!1,error:`Not authorized for team memory sync: ${Z}`,skipRetry:!0,errorType:"auth",httpStatus:G};case"timeout":return{success:!1,error:"Team memory sync request timeout",errorType:"timeout"};case"network":return{success:!1,error:"Cannot connect to server",errorType:"network"};default:return{success:!1,error:J,errorType:"unknown",httpStatus:G}}}}async function eq(q,K){try{await S();let $=u();if($.error)return{success:!1,error:$.error,errorType:"auth"};let V=l(K)+"&view=hashes",Q=await z.get(V,{headers:$.headers,timeout:c,validateStatus:(Z)=>Z===200||Z===404});if(Q.status===404)return q.lastKnownChecksum=null,{success:!0,entryChecksums:{}};let G=Q.data?.checksum||Q.headers.etag?.replace(/^"|"$/g,""),J=Q.data?.entryChecksums;if(!J||typeof J!=="object")return{success:!1,error:"Server did not return entryChecksums (?view=hashes unsupported)",errorType:"parse"};if(G)q.lastKnownChecksum=G;return{success:!0,version:Q.data?.version,checksum:G,entryChecksums:J}}catch($){let{kind:V,status:Q,message:G}=P($);switch(V){case"auth":return{success:!1,error:"Not authorized",errorType:"auth",httpStatus:Q};case"timeout":return{success:!1,error:"Timeout",errorType:"timeout"};case"network":return{success:!1,error:"Network error",errorType:"network"};default:return{success:!1,error:G,errorType:"unknown",httpStatus:Q}}}}async function qJ(q,K,$){let V=null;for(let Q=1;Q<=p+1;Q++){if(V=await tq(q,K,$),V.success||V.skipRetry)return V;if(Q>p)return V;let G=Hq(Q);Y(`team-memory-sync: retry ${Q}/${p}`,{level:"debug"}),await Nq(G)}return V}function JJ(q){let K=Object.keys(q).sort();if(K.length===0)return[];let $=Buffer.byteLength('{"entries":{}}',"utf8"),V=(Z,W)=>Buffer.byteLength(m(Z),"utf8")+Buffer.byteLength(m(W),"utf8")+2,Q=[],G={},J=$;for(let Z of K){let W=V(Z,q[Z]);if(J+W>rq&&Object.keys(G).length>0)Q.push(G),G={},J=$;G[Z]=q[Z],J+=W}return Q.push(G),Q}async function KJ(q,K,$,V){try{await S();let Q=u();if(Q.error)return{success:!1,error:Q.error,errorType:"auth"};let G={...Q.headers,"Content-Type":"application/json"};if(V)G["If-Match"]=`"${V.replace(/"/g,"")}"`;let J=l(K),Z=await z.put(J,{entries:$},{headers:G,timeout:c,validateStatus:(X)=>X===200||X===412});if(Z.status===412)return Y("team-memory-sync: conflict (412 Precondition Failed)",{level:"info"}),{success:!1,conflict:!0,error:"ETag mismatch"};let W=Z.data?.checksum;if(W)q.lastKnownChecksum=W;return Y(`team-memory-sync: uploaded ${Object.keys($).length} entries (checksum: ${W??"none"})`,{level:"debug"}),{success:!0,checksum:W,lastModified:Z.data?.lastModified}}catch(Q){let G=z.isAxiosError(Q)?JSON.stringify(Q.response?.data??""):"";Y(`team-memory-sync: upload failed: ${Q instanceof Error?Q.message:""} ${G}`,{level:"warn"});let{kind:J,status:Z,message:W}=P(Q),X=J==="http"||J==="other"?"unknown":J,j,O,B;if(Z===413&&z.isAxiosError(Q)){let H=s().safeParse(Q.response?.data);if(H.success)j=H.data.error.details.error_code,O=H.data.error.details.max_entries,B=H.data.error.details.received_entries}return{success:!1,error:W,errorType:X,httpStatus:Z,...j!==void 0&&{serverErrorCode:j},...O!==void 0&&{serverMaxEntries:O},...B!==void 0&&{serverReceivedEntries:B}}}}async function QJ(q){let K=k(),$={},V=[];async function Q(J){try{let Z=await cq(J,{withFileTypes:!0});await Promise.all(Z.map(async(W)=>{let X=uq(J,W.name);if(W.isDirectory())await Q(X);else if(W.isFile())try{let j=await nq(X);if(j.size>h){Y(`team-memory-sync: skipping oversized file ${W.name} (${j.size} > ${h} bytes)`,{level:"info"});return}let O=await Oq(X,"utf8"),B=oq(K,X).replaceAll("\\","/"),H=Uq(O);if(H.length>0){let L=H[0];V.push({path:B,ruleId:L.ruleId,label:L.label}),Y(`team-memory-sync: skipping "${B}" — detected ${L.label}`,{level:"warn"});return}$[B]=O}catch{}}))}catch(Z){if(xq(Z)){if(Z.code!=="ENOENT"&&Z.code!=="EACCES"&&Z.code!=="EPERM")throw Z}else throw Z}}await Q(K);let G=Object.keys($).sort();if(q!==null&&G.length>q){let J=G.slice(q);Y(`team-memory-sync: ${G.length} local entries exceeds server cap of ${q}; ${J.length} file(s) will NOT sync: ${J.join(", ")}. Consider consolidating or removing some team memory files.`,{level:"warn"}),_("",{total_entries:G.length,dropped_count:J.length,max_entries:q});let Z={};for(let W of G.slice(0,q))Z[W]=$[W];return{entries:Z,skippedSecrets:V}}return{entries:$,skippedSecrets:V}}async function VJ(q){let K=await Promise.all(Object.entries(q).map(async([$,V])=>{let Q;try{Q=await Wq($)}catch(J){if(J instanceof Yq)return Y(`team-memory-sync: ${J.message}`,{level:"warn"}),!1;throw J}if(Buffer.byteLength(V,"utf8")>h)return Y(`team-memory-sync: skipping oversized remote entry "${$}"`,{level:"info"}),!1;try{if(await Oq(Q,"utf8")===V)return!1}catch(J){if(xq(J)&&J.code!=="ENOENT"&&J.code!=="ENOTDIR")Y(`team-memory-sync: unexpected read error for "${$}": ${J.code}`,{level:"debug"})}try{let J=Q.substring(0,Q.lastIndexOf(aq));return await iq(J,{recursive:!0}),await lq(Q,V,"utf8"),!0}catch(J){return Y(`team-memory-sync: failed to write "${$}": ${J}`,{level:"warn"}),!1}}));return Gq(K,Boolean)}function _q(){return n()}async function Iq(q,K){let $=K?.skipEtagCache??!1,V=Date.now();if(!n())return A(V,{success:!1,errorType:"no_oauth"}),{success:!1,filesWritten:0,entryCount:0,error:"OAuth not available"};let Q=await b();if(!Q)return A(V,{success:!1,errorType:"no_repo"}),{success:!1,filesWritten:0,entryCount:0,error:"No git remote found"};let G=$?null:q.lastKnownChecksum,J=await qJ(q,Q,G);if(!J.success)return A(V,{success:!1,errorType:J.errorType,status:J.httpStatus}),{success:!1,filesWritten:0,entryCount:0,error:J.error};if(J.notModified)return A(V,{success:!0,notModified:!0}),{success:!0,filesWritten:0,entryCount:0,notModified:!0};if(J.isEmpty||!J.data)return q.serverChecksums.clear(),A(V,{success:!0}),{success:!0,filesWritten:0,entryCount:0};let Z=J.data.content.entries,W=J.data.content.entryChecksums;if(q.serverChecksums.clear(),W)for(let[j,O]of Object.entries(W))q.serverChecksums.set(j,O);else Y("team-memory-sync: server response missing entryChecksums (pre-#283027 deploy) — next push will be full, not delta",{level:"debug"});let X=await VJ(Z);if(X>0){let{clearMemoryFileCaches:j}=await import("./claudemd-1.1.22-genp8cn4.mjs");j()}return Y(`team-memory-sync: pulled ${X} files`,{level:"info"}),A(V,{success:!0,filesWritten:X}),{success:!0,filesWritten:X,entryCount:Object.keys(Z).length}}async function o(q){let K=Date.now(),$=0;if(!n())return x(K,{success:!1,errorType:"no_oauth"}),{success:!1,filesUploaded:0,error:"OAuth not available",errorType:"no_oauth"};let V=await b();if(!V)return x(K,{success:!1,errorType:"no_repo"}),{success:!1,filesUploaded:0,error:"No git remote found",errorType:"no_repo"};let Q=await QJ(q.serverMaxEntries),G=Q.entries,J=Q.skippedSecrets;if(J.length>0){let X=J.map((j)=>`"${j.path}" (${j.label})`).join(", ");Y(`team-memory-sync: ${J.length} file(s) skipped due to detected secrets: ${X}. Remove the secret(s) to enable sync for these files.`,{level:"warn"}),_("",{file_count:J.length,rule_ids:J.map((j)=>j.ruleId).join(",")})}let Z=new Map;for(let[X,j]of Object.entries(G))Z.set(X,sq(j));let W=!1;for(let X=0;X<=R;X++){let j={};for(let[w,D]of Z)if(q.serverChecksums.get(w)!==D)j[w]=G[w];if(Object.keys(j).length===0)return x(K,{success:!0,conflict:W,conflictRetries:$}),{success:!0,filesUploaded:0,...J.length>0&&{skippedSecrets:J}};let B=JJ(j),H=0,L;for(let w of B){if(L=await KJ(q,V,w,q.lastKnownChecksum),!L.success)break;for(let D of Object.keys(w))q.serverChecksums.set(D,Z.get(D));H+=Object.keys(w).length}if(L=L,L.success)return Y(B.length>1?`team-memory-sync: pushed ${H} of ${Z.size} files in ${B.length} batches`:`team-memory-sync: pushed ${H} of ${Z.size} files (delta)`,{level:"info"}),x(K,{success:!0,filesUploaded:H,conflict:W,conflictRetries:$,putBatches:B.length>1?B.length:void 0}),{success:!0,filesUploaded:H,checksum:L.checksum,...J.length>0&&{skippedSecrets:J}};if(!L.conflict){if(L.serverMaxEntries!==void 0)q.serverMaxEntries=L.serverMaxEntries,Y(`team-memory-sync: learned server max_entries=${L.serverMaxEntries} from 413; next push will truncate to this`,{level:"warn"});return x(K,{success:!1,filesUploaded:H,conflictRetries:$,putBatches:B.length>1?B.length:void 0,errorType:L.errorType,status:L.httpStatus,errorCode:L.serverErrorCode,serverMaxEntries:L.serverMaxEntries,serverReceivedEntries:L.serverReceivedEntries}),{success:!1,filesUploaded:H,error:L.error,errorType:L.errorType,httpStatus:L.httpStatus}}if(W=!0,X>=R)return Y(`team-memory-sync: giving up after ${R} conflict retries`,{level:"warn"}),x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:"Conflict resolution failed after retries"};$++,Y(`team-memory-sync: conflict (412), probing server hashes (attempt ${X+1}/${R})`,{level:"info"});let T=await eq(q,V);if(!T.success||!T.entryChecksums)return x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:`Conflict resolution hashes probe failed: ${T.error}`};q.serverChecksums.clear();for(let[w,D]of Object.entries(T.entryChecksums))q.serverChecksums.set(w,D)}return x(K,{success:!1,conflictRetries:$}),{success:!1,filesUploaded:0,error:"Unexpected end of conflict resolution loop"}}function A(q,K){_("",{success:K.success,files_written:K.filesWritten??0,not_modified:K.notModified??!1,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status}})}function x(q,K){_("",{success:K.success,files_uploaded:K.filesUploaded??0,conflict:K.conflict??!1,conflict_retries:K.conflictRetries??0,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status},...K.putBatches&&{put_batches:K.putBatches},...K.errorCode&&{error_code:K.errorCode},...K.serverMaxEntries!==void 0&&{server_max_entries:K.serverMaxEntries},...K.serverReceivedEntries!==void 0&&{server_received_entries:K.serverReceivedEntries}})}var c=30000,h=250000,rq=200000,p=3,R=2;var zq=d(()=>{kq();Rq();Xq();Pq();gq();Jq();qq();$q();Sq();yq();Eq();dq();e();pq();mq();t()});var OJ={};ZJ(OJ,{stopTeamMemoryWatcher:()=>bq,startTeamMemoryWatcher:()=>NJ,notifyTeamMemoryWrite:()=>BJ,isPermanentFailure:()=>Aq,_startFileWatcherForTesting:()=>UJ,_resetWatcherStateForTesting:()=>HJ});import{watch as GJ}from"fs";import{mkdir as YJ,stat as WJ}from"fs/promises";import{join as XJ}from"path";function Aq(q){if(q.errorType==="no_oauth"||q.errorType==="no_repo")return!0;if(q.httpStatus!==void 0&&q.httpStatus>=400&&q.httpStatus<500&&q.httpStatus!==409&&q.httpStatus!==429)return!0;return!1}async function jJ(){if(!I)return;y=!0;try{let q=await o(I);if(q.success)g=!1;if(q.success&&q.filesUploaded>0)Y(`team-memory-watcher: pushed ${q.filesUploaded} files`,{level:"info"});else if(!q.success){if(Y(`team-memory-watcher: push failed: ${q.error}`,{level:"warn"}),Aq(q)&&U===null)U=q.httpStatus!==void 0?`http_${q.httpStatus}`:q.errorType??"unknown",Y(`team-memory-watcher: suppressing retry until next unlink or session restart (${U})`,{level:"warn"}),_("",{reason:U,...q.httpStatus&&{status:q.httpStatus}})}}catch(q){Y(`team-memory-watcher: push error: ${C(q)}`,{level:"warn"})}finally{y=!1,f=null}}function M(){if(U!==null)return;if(g=!0,F)clearTimeout(F);F=setTimeout(()=>{if(y){M();return}f=jJ()},LJ)}async function vq(q){if(a)return;a=!0;try{await YJ(q,{recursive:!0}),v=GJ(q,{persistent:!1,recursive:!0},(K,$)=>{if($===null){M();return}if(U!==null){WJ(XJ(q,$)).catch((V)=>{if(V.code!=="ENOENT")return;if(U!==null)Y(`team-memory-watcher: unlink cleared suppression (was: ${U})`,{level:"info"}),U=null;M()});return}M()}),v.on("error",(K)=>{Y(`team-memory-watcher: fs.watch error: ${C(K)}`,{level:"warn"})}),Y(`team-memory-watcher: watching ${q}`,{level:"debug"})}catch(K){Y(`team-memory-watcher: failed to watch ${q}: ${C(K)}`,{level:"warn"})}Fq(async()=>bq())}async function NJ(){if(!Dq()||!_q())return;if(!await b()){Y("team-memory-watcher: no github.com remote, skipping sync",{level:"debug"});return}I=wq();let K=!1,$=0,V=!1;try{let Q=await Iq(I);if(K=Q.success,V=Q.entryCount>0,Q.success&&Q.filesWritten>0)$=Q.filesWritten,Y(`team-memory-watcher: initial pull got ${Q.filesWritten} files`,{level:"info"})}catch(Q){Y(`team-memory-watcher: initial pull failed: ${C(Q)}`,{level:"warn"})}await vq(k()),_("",{initial_pull_success:K,initial_files_pulled:$,watcher_started:!0,server_has_content:V})}async function BJ(){if(!I)return;M()}async function bq(){if(F)clearTimeout(F),F=null;if(v)v.close(),v=null;if(f)try{await f}catch{}if(g&&I&&U===null)try{await o(I)}catch{}}function HJ(q){v=null,F=null,y=!1,g=!1,f=null,a=q?.skipWatcher??!1,U=q?.pushSuppressedReason??null,I=q?.syncState??null}function UJ(q){return vq(q)}var LJ=2000,v=null,F=null,y=!1,g=!1,f=null,a=!1,U=null,I=null;var wJ=d(()=>{Xq();$J();Jq();qq();$q();e();zq()});
|
|
2
|
-
export{Aq as p,NJ as q,BJ as r,bq as s,HJ as t,UJ as u,OJ as v,wJ as w};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{DZ as u,H1 as a,P0 as QQ,Q0 as uQ,a1 as k,c1 as y,i1 as MQ,r1 as _Q,s1 as aQ,w1 as d}from"./cli-1.1.22-261r450y.mjs";import{d4 as K,e4 as l,f4 as m}from"./cli-1.1.22-vwdxbs23.mjs";import{g4 as v}from"./cli-1.1.22-c07z4d74.mjs";import{D4 as YV,w4 as n,y4 as t}from"./cli-1.1.22-mw0jpevk.mjs";import{B8 as pQ,Q8 as XV,v8 as $Q,y8 as P}from"./cli-1.1.22-q622p3vr.mjs";import{Wga as CQ,_ea as fQ,bfa as x,cha as VV,wea as mQ,wfa as QV,xea as eQ}from"./cli-1.1.22-3jyydg5h.mjs";import{hha as IQ,iha as sQ}from"./cli-1.1.22-erbhk4p7.mjs";import{Xja as r,Yja as nQ}from"./cli-1.1.22-y4rj8ced.mjs";import{ala as E,dla as iQ}from"./cli-1.1.22-ca6d1erw.mjs";import{Bsa as i,Tsa as tQ}from"./cli-1.1.22-gwhdvfge.mjs";import{pta as T,tta as F}from"./cli-1.1.22-w09pyst3.mjs";function XQ(){let X=VQ.useContext(QQ);if(!X)throw Error("useTerminalSize must be used within an Ink App component");return X}var VQ;var YQ=F(()=>{uQ();VQ=T(v(),1)});function ZQ(X,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(X.length===1)return X.toLowerCase();return null}var GQ=()=>{};function JQ(X){let Q=X.split("+"),V={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let Z of Q){let Y=Z.toLowerCase();switch(Y){case"ctrl":case"control":V.ctrl=!0;break;case"alt":case"opt":case"option":V.alt=!0;break;case"shift":V.shift=!0;break;case"meta":V.meta=!0;break;case"cmd":case"command":case"super":case"win":V.super=!0;break;case"esc":V.key="escape";break;case"return":V.key="enter";break;case"space":V.key=" ";break;case"↑":V.key="up";break;case"↓":V.key="down";break;case"←":V.key="left";break;case"→":V.key="right";break;default:V.key=Y;break}}return V}function hQ(X){if(X===" ")return[JQ("space")];return X.trim().split(/\s+/).map(JQ)}function yQ(X){let Q=[];if(X.ctrl)Q.push("ctrl");if(X.alt)Q.push("alt");if(X.shift)Q.push("shift");if(X.meta)Q.push("meta");if(X.super)Q.push("cmd");let V=lQ(X.key);return Q.push(V),Q.join("+")}function lQ(X){switch(X){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return X}}function c(X){return X.map(yQ).join(" ")}function NV(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:hQ(Z),action:Y,context:V.context});return Q}var LQ=()=>{};function qQ(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?c(Z.chord):void 0}function kQ(X,Q){let V=ZQ(X,Q);if(!V)return null;let Z=Q.escape?!1:Q.meta;return{key:V,ctrl:Q.ctrl,alt:Z,shift:Q.shift,meta:Z,super:Q.super}}function HQ(X,Q){return X.key===Q.key&&X.ctrl===Q.ctrl&&X.shift===Q.shift&&(X.alt||X.meta)===(Q.alt||Q.meta)&&X.super===Q.super}function cQ(X,Q){if(X.length>=Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function gQ(X,Q){if(X.length!==Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function zQ(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let G=kQ(X,Q);if(!G){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let J=Y?[...Y,G]:[G],L=new Set(V),N=Z.filter((q)=>L.has(q.context)),z=new Map;for(let q of N)if(q.chord.length>J.length&&cQ(J,q))z.set(c(q.chord),q.action);let B=!1;for(let q of z.values())if(q!==null){B=!0;break}if(B)return{type:"chord_started",pending:J};let H;for(let q of N)if(gQ(J,q))H=q;if(H){if(H.action===null)return{type:"unbound"};return{type:"match",action:H.action}}if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}var NQ=F(()=>{GQ();LQ()});function TV(X){let Q=g.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:G,activeContexts:J,registerActiveContext:L,unregisterActiveContext:N,handlerRegistryRef:z,children:B}=X,H;if(Q[0]!==V)H=(U,O)=>qQ(U,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let q=H,w;if(Q[2]!==z)w=(U)=>{let O=z.current;if(!O)return dQ;if(!O.has(U.action))O.set(U.action,new Set);return O.get(U.action)?.add(U),()=>{let S=O.get(U.action);if(S){if(S.delete(U),S.size===0)O.delete(U.action)}}},Q[2]=z,Q[3]=w;else w=Q[3];let p=w,D;if(Q[4]!==J||Q[5]!==z)D=(U)=>{let O=z.current;if(!O)return!1;let S=O.get(U);if(!S||S.size===0)return!1;for(let e of S)if(J.has(e.context))return e.handler(),!0;return!1},Q[4]=J,Q[5]=z,Q[6]=D;else D=Q[6];let A=D,_;if(Q[7]!==V||Q[8]!==Z)_=(U,O,S)=>zQ(U,O,S,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=_;else _=Q[9];let I;if(Q[10]!==J||Q[11]!==V||Q[12]!==q||Q[13]!==A||Q[14]!==Y||Q[15]!==L||Q[16]!==p||Q[17]!==G||Q[18]!==_||Q[19]!==N)I={resolve:_,setPendingChord:G,getDisplayText:q,bindings:V,pendingChord:Y,activeContexts:J,registerActiveContext:L,unregisterActiveContext:N,registerHandler:p,invokeAction:A},Q[10]=J,Q[11]=V,Q[12]=q,Q[13]=A,Q[14]=Y,Q[15]=L,Q[16]=p,Q[17]=G,Q[18]=_,Q[19]=N,Q[20]=I;else I=Q[20];let j=I,W;if(Q[21]!==B||Q[22]!==j)W=K(BQ.Provider,{value:j,children:B}),Q[21]=B,Q[22]=j,Q[23]=W;else W=Q[23];return W}function dQ(){}function h(){return f.useContext(BQ)}function KV(X,Q){let V=g.c(5),Z=Q===void 0?!0:Q,Y=h(),G,J;if(V[0]!==X||V[1]!==Z||V[2]!==Y)G=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},J=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=G,V[4]=J;else G=V[3],J=V[4];f.useLayoutEffect(G,J)}var g,f,BQ;var UQ=F(()=>{NQ();m();g=T(u(),1),f=T(v(),1),BQ=f.createContext(null)});function RV(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,G=h();C.useEffect(()=>{if(!G||!Y)return;return G.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,G,Y]);let J=C.useCallback((L,N,z)=>{if(!G)return;let B=[...G.activeContexts,Z,"Global"],H=[...new Set(B)],q=G.resolve(L,N,H);switch(q.type){case"match":if(G.setPendingChord(null),q.action===X){if(Q()!==!1)z.stopImmediatePropagation()}break;case"chord_started":G.setPendingChord(q.pending),z.stopImmediatePropagation();break;case"chord_cancelled":G.setPendingChord(null);break;case"unbound":G.setPendingChord(null),z.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,G]);d(J,{isActive:Y})}function OQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=h();C.useEffect(()=>{if(!Y||!Z)return;let J=[];for(let[L,N]of Object.entries(X))J.push(Y.registerHandler({action:L,context:V,handler:N}));return()=>{for(let L of J)L()}},[V,X,Y,Z]);let G=C.useCallback((J,L,N)=>{if(!Y)return;let z=[...Y.activeContexts,V,"Global"],B=[...new Set(z)],H=Y.resolve(J,L,B);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let q=X[H.action];if(q&&q()!==!1)N.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),N.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),N.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);d(G,{isActive:Z})}var C;var wQ=F(()=>{a();UQ();C=T(v(),1)});function o(X,Q,V){let Z=M.useRef(0),Y=M.useRef(void 0),G=M.useCallback(()=>{if(Y.current)clearTimeout(Y.current),Y.current=void 0},[]);return M.useEffect(()=>{return()=>{G()}},[G]),M.useCallback(()=>{let J=Date.now();if(J-Z.current<=FQ&&Y.current!==void 0)G(),X(!1),Q();else V?.(),X(!0),G(),Y.current=setTimeout((z,B)=>{z(!1),B.current=void 0},FQ,X,Y);Z.current=J},[X,Q,V,G])}var M,FQ=800;var WQ=F(()=>{M=T(v(),1)});function jQ(X,Q,V,Z=!0){let{exit:Y}=_Q(),[G,J]=R.useState({pending:!1,keyName:null}),L=R.useMemo(()=>V??Y,[V,Y]),N=o((w)=>J({pending:w,keyName:"Ctrl-C"}),L),z=o((w)=>J({pending:w,keyName:"Ctrl-D"}),L),B=R.useCallback(()=>{if(Q?.())return;N()},[N,Q]),H=R.useCallback(()=>{z()},[z]),q=R.useMemo(()=>({"app:interrupt":B,"app:exit":H}),[B,H]);return X(q,{context:"Global",isActive:Z}),G}var R;var TQ=F(()=>{aQ();WQ();R=T(v(),1)});function $V(X,Q,V){return jQ(OQ,Q,X,V)}var oQ=F(()=>{wQ();TQ()});function SQ(){return $.useContext(s)!==null}function bV(X){let Q=KQ.c(3),V=$.useContext(s),Z;if(Q[0]!==V||Q[1]!==X)Z=V?{rows:V.rows,columns:V.columns}:X,Q[0]=V,Q[1]=X,Q[2]=Z;else Z=Q[2];return Z}function xV(){return $.useContext(s)?.scrollRef??null}var KQ,$,s;var AQ=F(()=>{KQ=T(u(),1),$=T(v(),1),s=$.createContext(null)});function DQ(X){let Q=RQ.c(21),{width:V,color:Z,char:Y,padding:G,title:J}=X,L=Y===void 0?"─":Y,N=G===void 0?0:G,{columns:z}=XQ(),B=Math.max(0,(V??z)-N);if(J){let p=IQ(J)+2,D=Math.max(0,B-p),A=Math.floor(D/2),_=D-A,I=!Z,j;if(Q[0]!==L||Q[1]!==A)j=L.repeat(A),Q[0]=L,Q[1]=A,Q[2]=j;else j=Q[2];let W;if(Q[3]!==J)W=K(y,{dimColor:!0,children:K(MQ,{children:J})}),Q[3]=J,Q[4]=W;else W=Q[4];let U;if(Q[5]!==L||Q[6]!==_)U=L.repeat(_),Q[5]=L,Q[6]=_,Q[7]=U;else U=Q[7];let O;if(Q[8]!==Z||Q[9]!==I||Q[10]!==j||Q[11]!==W||Q[12]!==U)O=l(y,{color:Z,dimColor:I,children:[j," ",W," ",U]}),Q[8]=Z,Q[9]=I,Q[10]=j,Q[11]=W,Q[12]=U,Q[13]=O;else O=Q[13];return O}let H=!Z,q;if(Q[14]!==L||Q[15]!==B)q=L.repeat(B),Q[14]=L,Q[15]=B,Q[16]=q;else q=Q[16];let w;if(Q[17]!==Z||Q[18]!==H||Q[19]!==q)w=K(y,{color:Z,dimColor:H,children:q}),Q[17]=Z,Q[18]=H,Q[19]=q,Q[20]=w;else w=Q[20];return w}var RQ;var EQ=F(()=>{YQ();sQ();a();m();RQ=T(u(),1)});function oV(X){let Q=PQ.c(9),{children:V,color:Z}=X;if(SQ()){let L;if(Q[0]!==V)L=K(k,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=L;else L=Q[1];return L}let Y;if(Q[2]!==Z)Y=K(DQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let G;if(Q[4]!==V)G=K(k,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=G;else G=Q[5];let J;if(Q[6]!==Y||Q[7]!==G)J=l(k,{flexDirection:"column",paddingTop:1,children:[Y,G]}),Q[6]=Y,Q[7]=G,Q[8]=J;else J=Q[8];return J}var PQ;var rQ=F(()=>{AQ();a();EQ();m();PQ=T(u(),1)});async function ZV(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/eligibility`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:5000})).data}async function ZX(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/redemptions`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:1e4})).data}function xQ(){return!!(P()?.organizationUuid&&$Q()&&pQ()==="max")}function GX(){if(!xQ())return{eligible:!1,needsRefresh:!1,hasCache:!1};let X=P()?.organizationUuid;if(!X)return{eligible:!1,needsRefresh:!1,hasCache:!1};let V=x().passesEligibilityCache?.[X];if(!V)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Z,timestamp:Y}=V,J=Date.now()-Y>bQ;return{eligible:Z,needsRefresh:J,hasCache:!0}}function JX(X){let Q=GV[X.currency]??`${X.currency} `,V=X.amount_minor_units/100,Z=V%1===0?V.toString():V.toFixed(2);return`${Q}${Z}`}function LX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.referrer_reward??null}function qX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.remaining_passes??null}async function vQ(){if(b)return E("Passes: Reusing in-flight eligibility fetch"),b;let X=P()?.organizationUuid;if(!X)return null;return b=(async()=>{try{let Q=await ZV(),V={...Q,timestamp:Date.now()};return fQ((Z)=>({...Z,passesEligibilityCache:{...Z.passesEligibilityCache,[X]:V}})),E(`Passes eligibility cached for org ${X}: ${Q.eligible}`),Q}catch(Q){return E("Failed to fetch and cache passes eligibility"),CQ(Q),null}finally{b=null}})(),b}async function JV(){if(!xQ())return null;let X=P()?.organizationUuid;if(!X)return null;let V=x().passesEligibilityCache?.[X],Z=Date.now();if(!V)return E("Passes: No cache, fetching eligibility in background (command unavailable this session)"),vQ(),null;if(Z-V.timestamp>bQ){E("Passes: Cache stale, returning cached data and refreshing in background"),vQ();let{timestamp:J,...L}=V;return L}E("Passes: Using fresh cached eligibility data");let{timestamp:Y,...G}=V;return G}async function HX(){if(mQ())return;JV()}var bQ=86400000,b=null,GV;var LV=F(()=>{tQ();nQ();XV();QV();iQ();VV();eQ();YV();GV={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
|
|
2
|
-
export{XQ as nY,YQ as oY,JQ as pY,hQ as qY,c as rY,NV as sY,LQ as tY,qQ as uY,zQ as vY,NQ as wY,TV as xY,h as yY,KV as zY,UQ as AY,RV as BY,OQ as CY,wQ as DY,o as EY,WQ as FY,$V as GY,oQ as HY,s as IY,SQ as JY,bV as KY,xV as LY,AQ as MY,DQ as NY,EQ as OY,oV as PY,rQ as QY,ZX as RY,GX as SY,JX as TY,LX as UY,qX as VY,JV as WY,HX as XY,LV as YY};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tf as k,vf as a}from"./cli-1.1.22-7zv5k6p0.mjs";import{E2 as D,H2 as g}from"./cli-1.1.22-4ph3xqne.mjs";import{ala as K,dla as u}from"./cli-1.1.22-ca6d1erw.mjs";import{Ala as G,Hla as l}from"./cli-1.1.22-3r3tadt1.mjs";import{tta as c,uta as J}from"./cli-1.1.22-w09pyst3.mjs";function b(P){return P===200||P===201}function n(P,Q){return Q&&P===400}async function e({environmentId:P,title:Q,events:z,gitRepoUrl:q,branch:L,signal:H,baseUrl:y,getAccessToken:B,permissionMode:$,onFailure:Z}){let{getClaudeAIOAuthTokens:W}=await import("./auth-1.1.22-pwa369jw.mjs"),{getOrganizationUUID:_}=await import("./client-1.1.22-wq8vw6a1.mjs"),{getOauthConfig:V}=await import("./oauth-1.1.22-xryjmqvy.mjs"),{getOAuthHeaders:N}=await import("./api-1.1.22-b74pv1bc.mjs"),{parseGitHubRepository:E}=await import("./detectRepository-1.1.22-pn2g27hr.mjs"),{getDefaultBranch:T}=await import("./git-1.1.22-m66s3f9x.mjs"),{getMainLoopModel:j}=await import("./model-1.1.22-ptaehfsq.mjs"),{default:x}=await import("./index-1.1.22-2ea02rg7.mjs"),R=B?.()??W()?.accessToken;if(!R)return K("[bridge] No access token for session creation"),Z?.({retryable:!1,detail:"not signed in"}),null;let v=await _();if(!v)return K("[bridge] No org UUID for session creation"),Z?.({retryable:!1,detail:"no organization for this account"}),null;let A=null,O=null;if(q){let{parseGitRemote:Y}=await import("./detectRepository-1.1.22-pn2g27hr.mjs"),w=Y(q);if(w){let{host:C,owner:S,name:f}=w,m=L||await T()||void 0;A={type:"git_repository",url:`https://${C}/${S}/${f}`,revision:m},O={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${L||"task"}`]}}}else{let C=E(q);if(C){let[S,f]=C.split("/");if(S&&f){let m=L||await T()||void 0;A={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:m},O={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${L||"task"}`]}}}}}}let h=(Y)=>({...Q!==void 0&&{title:Q},events:z,session_context:{sources:Y&&A?[A]:[],outcomes:Y&&O?[O]:[],model:j()},environment_id:P,source:"remote-control",...$&&{permission_mode:$}}),d={...N(R),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":v},p=`${y??V().BASE_API_URL}/v1/sessions`,F=async(Y)=>{try{return await x.post(p,h(Y),{headers:d,signal:H,validateStatus:(w)=>w<500})}catch(w){return K(`[bridge] Session creation request failed: ${G(w)}`),Z?.({retryable:!0,detail:G(w)}),null}},U=A!==null&&!I,X=await F(U);if(!X)return null;if(!b(X.status)&&n(X.status,U)){let Y=k(X.data);if(K(`[bridge] Session creation rejected with status ${X.status}${Y?`: ${Y}`:""} — retrying without the git context`),I=!0,X=await F(!1),!X)return null}if(!b(X.status)){let Y=k(X.data);return K(`[bridge] Session creation failed with status ${X.status}${Y?`: ${Y}`:""}`),Z?.({status:X.status,detail:Y,retryable:X.status===429}),null}let M=X.data;if(!M||typeof M!=="object"||!("id"in M)||typeof M.id!=="string")return K("[bridge] No session ID in response"),Z?.({status:X.status,detail:"malformed session response",retryable:!1}),null;return M.id}async function JJ(P,Q){let{getClaudeAIOAuthTokens:z}=await import("./auth-1.1.22-pwa369jw.mjs"),{getOrganizationUUID:q}=await import("./client-1.1.22-wq8vw6a1.mjs"),{getOauthConfig:L}=await import("./oauth-1.1.22-xryjmqvy.mjs"),{getOAuthHeaders:H}=await import("./api-1.1.22-b74pv1bc.mjs"),{default:y}=await import("./index-1.1.22-2ea02rg7.mjs"),B=Q?.getAccessToken?.()??z()?.accessToken;if(!B)return K("[bridge] No access token for session fetch"),null;let $=await q();if(!$)return K("[bridge] No org UUID for session fetch"),null;let Z={...H(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":$},W=`${Q?.baseUrl??L().BASE_API_URL}/v1/sessions/${P}`,_=1e4;K(`[bridge] Fetching session ${P}`);let V;try{V=await y.get(W,{headers:Z,timeout:_,validateStatus:(N)=>N<500})}catch(N){if(y.isAxiosError(N)){let E=N.response?.status??"no-response",T=N.code??"unknown-code",j=N.config?.url??W,x=N.config?.method?.toUpperCase()??"GET",R=N.message??G(N),v=N.config?.timeout??_;K(`[bridge] Session fetch request failed: status=${E} code=${T} method=${x} url=${j} timeout=${v} message=${R}`)}else K(`[bridge] Session fetch request failed: url=${W} timeout=${_} message=${G(N)}`);return null}if(V.status!==200){let N=k(V.data);return K(`[bridge] Session fetch failed with status ${V.status} url=${W}${N?`: ${N}`:""}`),null}return V.data}async function KJ(P,Q){let{getClaudeAIOAuthTokens:z}=await import("./auth-1.1.22-pwa369jw.mjs"),{getOrganizationUUID:q}=await import("./client-1.1.22-wq8vw6a1.mjs"),{getOauthConfig:L}=await import("./oauth-1.1.22-xryjmqvy.mjs"),{getOAuthHeaders:H}=await import("./api-1.1.22-b74pv1bc.mjs"),{default:y}=await import("./index-1.1.22-2ea02rg7.mjs"),B=Q?.getAccessToken?.()??z()?.accessToken;if(!B){K("[bridge] No access token for session archive");return}let $=await q();if(!$){K("[bridge] No org UUID for session archive");return}let Z={...H(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":$},W=`${Q?.baseUrl??L().BASE_API_URL}/v1/sessions/${P}/archive`;K(`[bridge] Archiving session ${P}`);let _=await y.post(W,{},{headers:Z,timeout:Q?.timeoutMs??1e4,validateStatus:(V)=>V<500});if(_.status===200)K(`[bridge] Session ${P} archived successfully`);else{let V=k(_.data);K(`[bridge] Session archive failed with status ${_.status}${V?`: ${V}`:""}`)}}async function NJ(P,Q,z){let{getClaudeAIOAuthTokens:q}=await import("./auth-1.1.22-pwa369jw.mjs"),{getOrganizationUUID:L}=await import("./client-1.1.22-wq8vw6a1.mjs"),{getOauthConfig:H}=await import("./oauth-1.1.22-xryjmqvy.mjs"),{getOAuthHeaders:y}=await import("./api-1.1.22-b74pv1bc.mjs"),{default:B}=await import("./index-1.1.22-2ea02rg7.mjs"),$=z?.getAccessToken?.()??q()?.accessToken;if(!$){K("[bridge] No access token for session title update");return}let Z=await L();if(!Z){K("[bridge] No org UUID for session title update");return}let W={...y($),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Z},_=D(P),V=`${z?.baseUrl??H().BASE_API_URL}/v1/sessions/${_}`;K(`[bridge] Updating session title: ${_} → ${Q}`);try{let N=await B.patch(V,{title:Q},{headers:W,timeout:1e4,validateStatus:(E)=>E<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let E=k(N.data);K(`[bridge] Session title update failed with status ${N.status}${E?`: ${E}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${G(N)}`)}}var I=!1;var i=c(()=>{u();l();a();g()});
|
|
2
|
-
export{n as jf,e as kf,JJ as lf,KJ as mf,NJ as nf,i as of};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{bX as Q,gX as w}from"./cli-1.1.22-41aseceq.mjs";import{A2 as x,C2 as j}from"./cli-1.1.22-vdsszncw.mjs";import{$ha as K,mia as Y}from"./cli-1.1.22-dpqknw7z.mjs";import{cja as k,eja as Z,fja as M,gja as $}from"./cli-1.1.22-jz426kr2.mjs";import{tta as X}from"./cli-1.1.22-w09pyst3.mjs";async function W(){let q=await K("tengu_bridge_repl_v2_config",J),H=y().safeParse(q);return H.success?H.data:J}async function p(){let q=await W();if(q.min_version&&x("99.0.0",q.min_version))return`Your version of Claudin (99.0.0) is too old for Remote Control.
|
|
2
|
-
Version ${q.min_version} or higher is required. Run \`claudin update\` to update.`;return null}async function A(){if(!Q())return!1;return(await W()).should_show_app_upgrade_message}var J,y;var P=X(()=>{Z();Y();$();j();w();J={init_retry_max_attempts:3,init_retry_base_delay_ms:500,init_retry_jitter_fraction:0.25,init_retry_max_delay_ms:4000,http_timeout_ms:1e4,uuid_dedup_buffer_size:2000,heartbeat_interval_ms:20000,heartbeat_jitter_fraction:0.1,token_refresh_buffer_ms:300000,teardown_archive_timeout_ms:1500,connect_timeout_ms:15000,min_version:"0.0.0",should_show_app_upgrade_message:!1},y=M(()=>k.object({init_retry_max_attempts:k.number().int().min(1).max(10).default(3),init_retry_base_delay_ms:k.number().int().min(100).default(500),init_retry_jitter_fraction:k.number().min(0).max(1).default(0.25),init_retry_max_delay_ms:k.number().int().min(500).default(4000),http_timeout_ms:k.number().int().min(2000).default(1e4),uuid_dedup_buffer_size:k.number().int().min(100).max(50000).default(2000),heartbeat_interval_ms:k.number().int().min(5000).max(30000).default(20000),heartbeat_jitter_fraction:k.number().min(0).max(0.5).default(0.1),token_refresh_buffer_ms:k.number().int().min(30000).max(1800000).default(300000),teardown_archive_timeout_ms:k.number().int().min(500).max(2000).default(1500),connect_timeout_ms:k.number().int().min(5000).max(60000).default(15000),min_version:k.string().refine((q)=>{try{return x(q,"0.0.0"),!0}catch{return!1}}).default("0.0.0"),should_show_app_upgrade_message:k.boolean().default(!1)}))});
|
|
3
|
-
export{J as ec,W as fc,p as gc,A as hc,P as ic};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{rta as j}from"./cli-1.1.22-w09pyst3.mjs";var Lt=j((Q)=>{var y=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),L=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),m=Symbol.iterator;function q(t){if(t===null||typeof t!=="object")return null;return t=m&&t[m]||t["@@iterator"],typeof t==="function"?t:null}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,w={};function l(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}l.prototype.isReactComponent={};l.prototype.setState=function(t,e){if(typeof t!=="object"&&typeof t!=="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};l.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function P(){}P.prototype=l.prototype;function v(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}var T=v.prototype=new P;T.constructor=v;g(T,l.prototype);T.isPureReactComponent=!0;var C=Array.isArray;function E(){}var f={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function R(t,e,n){var r=n.ref;return{$$typeof:y,type:t,key:e,ref:r!==void 0?r:null,props:n}}function z(t,e){return R(t.type,e,t.props)}function x(t){return typeof t==="object"&&t!==null&&t.$$typeof===y}function G(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var d=/\/+/g;function a(t,e){return typeof t==="object"&&t!==null&&t.key!=null?G(""+t.key):e.toString(36)}function K(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status==="string"?t.then(E,E):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function p(t,e,n,r,o){var u=typeof t;if(u==="undefined"||u==="boolean")t=null;var s=!1;if(t===null)s=!0;else switch(u){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case y:case $:s=!0;break;case h:return s=t._init,p(s(t._payload),e,n,r,o)}}if(s)return o=o(t),s=r===""?"."+a(t,0):r,C(o)?(n="",s!=null&&(n=s.replace(d,"$&/")+"/"),p(o,e,n,"",function(O){return O})):o!=null&&(x(o)&&(o=z(o,n+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(d,"$&/")+"/")+s)),e.push(o)),1;s=0;var c=r===""?".":r+":";if(C(t))for(var i=0;i<t.length;i++)r=t[i],u=c+a(r,i),s+=p(r,e,n,u,o);else if(i=q(t),typeof i==="function")for(t=i.call(t),i=0;!(r=t.next()).done;)r=r.value,u=c+a(r,i++),s+=p(r,e,n,u,o);else if(u==="object"){if(typeof t.then==="function")return p(K(t),e,n,r,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return s}function _(t,e,n){if(t==null)return t;var r=[],o=0;return p(t,r,"","",function(u){return e.call(n,u,o++)}),r}function B(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){if(t._status===0||t._status===-1)t._status=1,t._result=n},function(n){if(t._status===0||t._status===-1)t._status=2,t._result=n}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var A=typeof reportError==="function"?reportError:function(t){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t==="object"&&t!==null&&typeof t.message==="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",t);return}console.error(t)},W={map:_,forEach:function(t,e,n){_(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return _(t,function(){e++}),e},toArray:function(t){return _(t,function(e){return e})||[]},only:function(t){if(!x(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Q.Activity=D;Q.Children=W;Q.Component=l;Q.Fragment=I;Q.Profiler=M;Q.PureComponent=v;Q.StrictMode=N;Q.Suspense=U;Q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;Q.__COMPILER_RUNTIME={__proto__:null,c:function(t){return f.H.useMemoCache(t)}};Q.cache=function(t){return function(){return t.apply(null,arguments)}};Q.cacheSignal=function(){return null};Q.cloneElement=function(t,e,n){if(t===null||t===void 0)throw Error("The argument must be a React element, but you passed "+t+".");var r=g({},t.props),o=t.key;if(e!=null)for(u in e.key!==void 0&&(o=""+e.key),e)!H.call(e,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&e.ref===void 0||(r[u]=e[u]);var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return R(t.type,o,r)};Q.createContext=function(t){return t={$$typeof:L,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Y,_context:t},t};Q.createElement=function(t,e,n){var r,o={},u=null;if(e!=null)for(r in e.key!==void 0&&(u=""+e.key),e)H.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=e[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),i=0;i<s;i++)c[i]=arguments[i+2];o.children=c}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return R(t,u,o)};Q.createRef=function(){return{current:null}};Q.forwardRef=function(t){return{$$typeof:k,render:t}};Q.isValidElement=x;Q.lazy=function(t){return{$$typeof:h,_payload:{_status:-1,_result:t},_init:B}};Q.memo=function(t,e){return{$$typeof:b,type:t,compare:e===void 0?null:e}};Q.startTransition=function(t){var e=f.T,n={};f.T=n;try{var r=t(),o=f.S;o!==null&&o(n,r),typeof r==="object"&&r!==null&&typeof r.then==="function"&&r.then(E,A)}catch(u){A(u)}finally{e!==null&&n.types!==null&&(e.types=n.types),f.T=e}};Q.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()};Q.use=function(t){return f.H.use(t)};Q.useActionState=function(t,e,n){return f.H.useActionState(t,e,n)};Q.useCallback=function(t,e){return f.H.useCallback(t,e)};Q.useContext=function(t){return f.H.useContext(t)};Q.useDebugValue=function(){};Q.useDeferredValue=function(t,e){return f.H.useDeferredValue(t,e)};Q.useEffect=function(t,e){return f.H.useEffect(t,e)};Q.useEffectEvent=function(t){return f.H.useEffectEvent(t)};Q.useId=function(){return f.H.useId()};Q.useImperativeHandle=function(t,e,n){return f.H.useImperativeHandle(t,e,n)};Q.useInsertionEffect=function(t,e){return f.H.useInsertionEffect(t,e)};Q.useLayoutEffect=function(t,e){return f.H.useLayoutEffect(t,e)};Q.useMemo=function(t,e){return f.H.useMemo(t,e)};Q.useOptimistic=function(t,e){return f.H.useOptimistic(t,e)};Q.useReducer=function(t,e,n){return f.H.useReducer(t,e,n)};Q.useRef=function(t){return f.H.useRef(t)};Q.useState=function(t){return f.H.useState(t)};Q.useSyncExternalStore=function(t,e,n){return f.H.useSyncExternalStore(t,e,n)};Q.useTransition=function(){return f.H.useTransition()};Q.version="19.2.8"});
|
|
2
|
-
export{Lt as g4};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Q8 as D,q8 as q}from"./cli-1.1.22-q622p3vr.mjs";import{Xja as m,Yja as z}from"./cli-1.1.22-y4rj8ced.mjs";import{tta as x}from"./cli-1.1.22-w09pyst3.mjs";function E(){return process.env.CLAUDE_BRIDGE_OAUTH_TOKEN||void 0}function F(){return process.env.CLAUDE_BRIDGE_BASE_URL||void 0}function K(){return E()??q()?.accessToken}function M(){return F()??m().BASE_API_URL}var G=x(()=>{z();D()});
|
|
2
|
-
export{E as yi,F as zi,K as Ai,M as Bi,G as Ci};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{gla as ZX,jla as y8}from"./cli-1.1.22-cvfsmaqt.mjs";import{Bla as r,Hla as R8}from"./cli-1.1.22-3r3tadt1.mjs";import{Kla as $X,Nla as NJ,Vla as j8}from"./cli-1.1.22-265a4qpa.mjs";import{Ama as w,Bma as kQ,Ema as yJ,Fma as OX,Gma as h,Hma as vJ,Ima as tJ,Jma as hX,Kma as hJ,Lma as wX,Mma as y,Nma as OJ,Oma as gQ,Pma as m6,Sma as O,Tma as GJ,Wla as dQ,Xla as P6,ama as qJ,bma as oX,ema as eJ,fma as fX,gma as fQ,hma as T6,ima as $Q,jma as cX,mma as JQ,nma as pX,oma as g,pma as oJ,qma as n,rma as LQ,uma as pQ,vma as v6,yma as l,yra as sQ,zma as wQ,zna as XX}from"./cli-1.1.22-v260dy3k.mjs";import{Ara as CX,Fra as cJ,Gra as TX,Hra as HJ,Ira as J6,Lra as L,Mra as XJ,Rra as LJ,Sra as zX,Xra as V,Yra as xJ,zra as SJ}from"./cli-1.1.22-j7qc1g0f.mjs";import{sta as uJ,tta as U,vta as N,wta as W}from"./cli-1.1.22-w09pyst3.mjs";function zJ({writeFn:J,flushIntervalMs:Q=1000,maxBufferSize:X=100,maxBufferBytes:$=1/0,immediateMode:Y=!1}){let Z=[],q=0,H=null,G=null;function I(){if(H)clearTimeout(H),H=null}function B(){if(G)J(G.join("")),G=null;if(Z.length===0)return;J(Z.join("")),Z=[],q=0,I()}function M(){if(!H)H=setTimeout(B,Q)}function F(){if(G){G.push(...Z),Z=[],q=0,I();return}let x=Z;Z=[],q=0,I(),G=x,setImmediate(()=>{let v=G;if(G=null,v)J(v.join(""))})}return{write(x){if(Y){J(x);return}if(Z.push(x),q+=x.length,M(),Z.length>=X||q>=$)F()},flush:B,dispose(){B()}}}var BJ=()=>{};function IJ(J){return t.add(J),()=>t.delete(J)}async function r8(){await Promise.all(Array.from(t).map((J)=>J()))}var t;var CJ=U(()=>{t=new Set});function WX(J){let Q=[],X=J.match(/^MCP server ["']([^"']+)["']/);if(X&&X[1])Q.push("mcp"),Q.push(X[1].toLowerCase());else{let Z=J.match(/^([^:[]+):/);if(Z&&Z[1])Q.push(Z[1].trim().toLowerCase())}let $=J.match(/^\[([^\]]+)]/);if($&&$[1])Q.push($[1].trim().toLowerCase());if(J.toLowerCase().includes("1p event:"))Q.push("1p");let Y=J.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(Y&&Y[1]){let Z=Y[1].trim().toLowerCase();if(Z.length<30&&!Z.includes(" "))Q.push(Z)}return Array.from(new Set(Q))}function EX(J,Q){if(!Q)return!0;if(J.length===0)return!1;if(Q.isExclusive)return!J.some((X)=>Q.exclude.includes(X));else return J.some((X)=>Q.include.includes(X))}function VJ(J,Q){if(!Q)return!0;let X=WX(J);return EX(X,Q)}var FJ;var DJ=U(()=>{xJ();FJ=V((J)=>{if(!J||J.trim()==="")return null;let Q=J.split(",").map((Z)=>Z.trim()).filter(Boolean);if(Q.length===0)return null;let X=Q.some((Z)=>Z.startsWith("!")),$=Q.some((Z)=>!Z.startsWith("!"));if(X&&$)return null;let Y=Q.map((Z)=>Z.replace(/^!/,"").toLowerCase());return{include:X?[]:Y,exclude:X?Y:[],isExclusive:X}})});function MX(J,Q){var X=-1,$=J==null?0:J.length;while(++X<$)if(Q(J[X],X,J)===!1)break;return J}var RJ;var AJ=U(()=>{RJ=MX});var BX,e;var _J=U(()=>{zX();BX=function(){try{var J=LJ(Object,"defineProperty");return J({},"",{}),J}catch(Q){}}(),e=BX});function IX(J,Q,X){if(Q=="__proto__"&&e)e(J,Q,{configurable:!0,enumerable:!0,value:X,writable:!0});else J[Q]=X}var m;var JJ=U(()=>{_J();m=IX});function VX(J,Q,X){var $=J[Q];if(!(FX.call(J,Q)&&SJ($,X))||X===void 0&&!(Q in J))m(J,Q,X)}var xX,FX,j;var QJ=U(()=>{JJ();CX();xX=Object.prototype,FX=xX.hasOwnProperty;j=VX});function DX(J,Q,X,$){var Y=!X;X||(X={});var Z=-1,q=Q.length;while(++Z<q){var H=Q[Z],G=$?$(X[H],J[H],H,X,J):void 0;if(G===void 0)G=J[H];if(Y)m(X,H,G);else j(X,H,G)}return X}var R;var k=U(()=>{QJ();JJ();R=DX});function RX(J,Q){return J&&R(Q,y(Q),J)}var wJ;var kJ=U(()=>{k();OJ();wJ=RX});function AX(J){var Q=[];if(J!=null)for(var X in Object(J))Q.push(X);return Q}var PJ;var TJ=U(()=>{PJ=AX});function SX(J){if(!L(J))return PJ(J);var Q=h(J),X=[];for(var $ in J)if(!($=="constructor"&&(Q||!_X.call(J,$))))X.push($);return X}var LX,_X,mJ;var jJ=U(()=>{XJ();vJ();TJ();LX=Object.prototype,_X=LX.hasOwnProperty;mJ=SX});function kX(J){return hJ(J)?yJ(J,!0):mJ(J)}var _;var d=U(()=>{OX();jJ();wX();_=kX});function PX(J,Q){return J&&R(Q,_(Q),J)}var dJ;var fJ=U(()=>{k();d();dJ=PX});var p={};uJ(p,{default:()=>$J});function mX(J,Q){if(Q)return J.slice();var X=J.length,$=bJ?bJ(X):new J.constructor(X);return J.copy($),$}var nJ,pJ,vX,gJ,bJ,$J;var lJ=U(()=>{TX();nJ=typeof p=="object"&&p&&!p.nodeType&&p,pJ=nJ&&typeof f=="object"&&f&&!f.nodeType&&f,vX=pJ&&pJ.exports===nJ,gJ=vX?cJ.Buffer:void 0,bJ=gJ?gJ.allocUnsafe:void 0;$J=mX});function jX(J,Q){var X=-1,$=J.length;Q||(Q=Array($));while(++X<$)Q[X]=J[X];return Q}var iJ;var rJ=U(()=>{iJ=jX});function yX(J,Q){return R(J,g(J),Q)}var sJ;var aJ=U(()=>{k();oJ();sJ=yX});var dX,b;var ZJ=U(()=>{hX();dX=tJ(Object.getPrototypeOf,Object),b=dX});var gX,bX,u;var YJ=U(()=>{fX();ZJ();oJ();pX();gX=Object.getOwnPropertySymbols,bX=!gX?JQ:function(J){var Q=[];while(J)eJ(Q,g(J)),J=b(J);return Q},u=bX});function uX(J,Q){return R(J,u(J),Q)}var QQ;var XQ=U(()=>{k();YJ();QQ=uX});function nX(J){return $Q(J,_,u)}var ZQ;var YQ=U(()=>{cX();YJ();d();ZQ=nX});function rX(J){var Q=J.length,X=new J.constructor(Q);if(Q&&typeof J[0]=="string"&&iX.call(J,"index"))X.index=J.index,X.input=J.input;return X}var lX,iX,qQ;var HQ=U(()=>{lX=Object.prototype,iX=lX.hasOwnProperty;qQ=rX});function sX(J){var Q=new J.constructor(J.byteLength);return new qJ(Q).set(new qJ(J)),Q}var S;var c=U(()=>{oX();S=sX});function aX(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.byteLength)}var GQ;var KQ=U(()=>{c();GQ=aX});function eX(J){var Q=new J.constructor(J.source,tX.exec(J));return Q.lastIndex=J.lastIndex,Q}var tX,UQ;var NQ=U(()=>{tX=/\w*$/;UQ=eX});function Q6(J){return EQ?Object(EQ.call(J)):{}}var WQ,EQ,MQ;var zQ=U(()=>{J6();WQ=HJ?HJ.prototype:void 0,EQ=WQ?WQ.valueOf:void 0;MQ=Q6});function X6(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.length)}var BQ;var IQ=U(()=>{c();BQ=X6});function D6(J,Q,X){var $=J.constructor;switch(Q){case N6:return S(J);case $6:case Z6:return new $(+J);case W6:return GQ(J,X);case E6:case M6:case z6:case B6:case I6:case C6:case x6:case F6:case V6:return BQ(J,X);case Y6:return new $;case q6:case K6:return new $(J);case H6:return UQ(J);case G6:return new $;case U6:return MQ(J)}}var $6="[object Boolean]",Z6="[object Date]",Y6="[object Map]",q6="[object Number]",H6="[object RegExp]",G6="[object Set]",K6="[object String]",U6="[object Symbol]",N6="[object ArrayBuffer]",W6="[object DataView]",E6="[object Float32Array]",M6="[object Float64Array]",z6="[object Int8Array]",B6="[object Int16Array]",I6="[object Int32Array]",C6="[object Uint8Array]",x6="[object Uint8ClampedArray]",F6="[object Uint16Array]",V6="[object Uint32Array]",CQ;var xQ=U(()=>{c();KQ();NQ();zQ();IQ();CQ=D6});var FQ,R6,VQ;var DQ=U(()=>{XJ();FQ=Object.create,R6=function(){function J(){}return function(Q){if(!L(Q))return{};if(FQ)return FQ(Q);J.prototype=Q;var X=new J;return J.prototype=void 0,X}}(),VQ=R6});function A6(J){return typeof J.constructor=="function"&&!h(J)?VQ(b(J)):{}}var RQ;var AQ=U(()=>{DQ();ZJ();vJ();RQ=A6});function _6(J){return n(J)&&O(J)==L6}var L6="[object Map]",_Q;var SQ=U(()=>{GJ();LQ();_Q=_6});var OQ,S6,PQ;var TQ=U(()=>{SQ();wQ();kQ();OQ=w&&w.isMap,S6=OQ?l(OQ):_Q,PQ=S6});function w6(J){return n(J)&&O(J)==O6}var O6="[object Set]",vQ;var mQ=U(()=>{GJ();LQ();vQ=w6});var jQ,k6,yQ;var hQ=U(()=>{mQ();wQ();kQ();jQ=w&&w.isSet,k6=jQ?l(jQ):vQ,yQ=k6});function i(J,Q,X,$,Y,Z){var q,H=Q&j6,G=Q&y6,I=Q&h6;if(X)q=Y?X(J,$,Y,Z):X(J);if(q!==void 0)return q;if(!L(J))return J;var B=fQ(J);if(B){if(q=qQ(J),!H)return iJ(J,q)}else{var M=O(J),F=M==uQ||M==b6;if(pQ(J))return $J(J,H);if(M==cQ||M==bQ||F&&!Y){if(q=G||F?{}:RQ(J),!H)return G?QQ(J,dJ(q,J)):sJ(J,wJ(q,J))}else{if(!z[M])return Y?J:{};q=CQ(J,M,H)}}Z||(Z=new dQ);var x=Z.get(J);if(x)return x;if(Z.set(J,q),yQ(J))J.forEach(function(D){q.add(i(D,Q,X,D,J,Z))});else if(PQ(J))J.forEach(function(D,A){q.set(A,i(D,Q,X,A,J,Z))});var v=I?G?ZQ:gQ:G?_:y,MJ=B?void 0:v(J);return RJ(MJ||J,function(D,A){if(MJ)A=D,D=J[A];j(q,A,i(D,Q,X,A,J,Z))}),q}var j6=1,y6=2,h6=4,bQ="[object Arguments]",d6="[object Array]",f6="[object Boolean]",p6="[object Date]",g6="[object Error]",uQ="[object Function]",b6="[object GeneratorFunction]",u6="[object Map]",c6="[object Number]",cQ="[object Object]",n6="[object RegExp]",l6="[object Set]",i6="[object String]",r6="[object Symbol]",o6="[object WeakMap]",s6="[object ArrayBuffer]",a6="[object DataView]",t6="[object Float32Array]",e6="[object Float64Array]",J8="[object Int8Array]",Q8="[object Int16Array]",X8="[object Int32Array]",$8="[object Uint8Array]",Z8="[object Uint8ClampedArray]",Y8="[object Uint16Array]",q8="[object Uint32Array]",z,nQ;var lQ=U(()=>{P6();AJ();QJ();kJ();fJ();lJ();rJ();aJ();XQ();m6();YQ();GJ();HQ();xQ();AQ();T6();v6();TQ();XJ();hQ();OJ();d();z={};z[bQ]=z[d6]=z[s6]=z[a6]=z[f6]=z[p6]=z[t6]=z[e6]=z[J8]=z[Q8]=z[X8]=z[u6]=z[c6]=z[cQ]=z[n6]=z[l6]=z[i6]=z[r6]=z[$8]=z[Z8]=z[Y8]=z[q8]=!0;z[g6]=z[uQ]=z[o6]=!1;nQ=i});function K8(J){return nQ(J,H8|G8)}var H8=1,G8=4,iQ;var rQ=U(()=>{lQ();iQ=K8});var V8={};uJ(V8,{writeFileSync_DEPRECATED:()=>F8,slowLogging:()=>E,jsonStringify:()=>KJ,jsonParse:()=>I8,cloneDeep:()=>x8,clone:()=>C8,callerFrame:()=>M8,SLOW_OPERATION_THRESHOLD_MS:()=>E8});import{closeSync as U8,writeFileSync as oQ,fsyncSync as N8,openSync as W8}from"fs";function M8(J){if(!J)return"";for(let Q of J.split(`
|
|
2
|
-
`)){if(Q.includes("slowOperations"))continue;let X=Q.match(/([^/\\]+?):(\d+):\d+\)?$/);if(X)return` @ ${X[1]}:${X[2]}`}return""}function B8(){return z8}function KJ(J,Q,X){let Y=[];try{const $=N(Y,E`JSON.stringify(${J})`,0);return JSON.stringify(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}}function C8(J,Q){let $=[];try{const X=N($,E`structuredClone(${J})`,0);return structuredClone(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}}function x8(J){let X=[];try{const Q=N(X,E`cloneDeep(${J})`,0);return iQ(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}}function F8(J,Q,X){let Z=[];try{const $=N(Z,E`fs.writeFileSync(${J}, ${Q})`,0);let Y=X!==null&&typeof X==="object"&&"flush"in X&&X.flush===!0;if(Y){let I=typeof X==="object"&&"encoding"in X?X.encoding:void 0,B=typeof X==="object"&&"mode"in X?X.mode:void 0,M;try{M=W8(J,"w",B),oQ(M,Q,{encoding:I??void 0}),N8(M)}finally{if(M!==void 0)U8(M)}}else oQ(J,Q,X)}catch(q){var H=q,G=1}finally{W(Z,H,G)}}var E8,z8,E,I8=(J,Q)=>{let $=[];try{const X=N($,E`JSON.parse(${J})`,0);return typeof Q>"u"?JSON.parse(J):JSON.parse(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}};var UJ=U(()=>{rQ();sQ();aQ();E8=(()=>{let J=process.env.CLAUDIN_SLOW_OPERATION_THRESHOLD_MS;if(J!==void 0){let Q=Number(J);if(!Number.isNaN(Q)&&Q>=0)return Q}return 1/0})();z8={[Symbol.dispose](){}};E=B8});import*as K from"fs";import{mkdir as A8,open as o,readdir as L8,readFile as tQ,copyFile as _8,rename as S8,rmdir as O8,rm as w8,stat as k8,unlink as P8}from"fs/promises";import{homedir as eQ}from"os";import*as C from"path";function JX(J,Q){if(Q.startsWith("//")||Q.startsWith("\\\\"))return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};try{let X=J.lstatSync(Q);if(X.isFIFO()||X.isSocket()||X.isCharacterDevice()||X.isBlockDevice())return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};let $=J.realpathSync(Q);return{resolvedPath:$,isSymlink:$!==Q,isCanonical:!0}}catch(X){return{resolvedPath:Q,isSymlink:!1,isCanonical:!1}}}function H1(J,Q,X){let{resolvedPath:$}=JX(J,Q);if(X.has($))return!0;return X.add($),!1}function T8(J,Q){let X=Q,$=[];while(X!==C.dirname(X)){let Y;try{Y=J.lstatSync(X)}catch{$.unshift(C.basename(X)),X=C.dirname(X);continue}if(Y.isSymbolicLink())try{let Z=J.realpathSync(X);return $.length===0?Z:C.join(Z,...$)}catch{let Z=J.readlinkSync(X),q=C.isAbsolute(Z)?Z:C.resolve(C.dirname(X),Z);return $.length===0?q:C.join(q,...$)}try{let Z=J.realpathSync(X);if(Z!==X)return $.length===0?Z:C.join(Z,...$)}catch{}return}return}function G1(J){let Q=J;if(Q==="~")Q=eQ().normalize("NFC");else if(Q.startsWith("~/"))Q=C.join(eQ().normalize("NFC"),Q.slice(2));let X=new Set,$=s();if(X.add(Q),Q.startsWith("//")||Q.startsWith("\\\\"))return Array.from(X);try{let q=Q,H=new Set,G=40;for(let I=0;I<G;I++){if(H.has(q))break;if(H.add(q),!$.existsSync(q)){if(q===Q){let x=T8($,Q);if(x!==void 0)X.add(x)}break}let B=$.lstatSync(q);if(B.isFIFO()||B.isSocket()||B.isCharacterDevice()||B.isBlockDevice())break;if(!B.isSymbolicLink())break;let M=$.readlinkSync(q),F=C.isAbsolute(M)?M:C.resolve(C.dirname(q),M);X.add(F),q=F}}catch{}let{resolvedPath:Y,isSymlink:Z}=JX($,Q);if(Z&&Y!==Q)X.add(Y);return Array.from(X)}function s(){return m8}async function K1(J,Q,X){let G=[];try{const $=N(G,await o(J,"r"),1);let Y=(await $.stat()).size;if(Y<=Q)return null;let Z=Math.min(Y-Q,X);let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await $.read(q,H,Z-H,Q+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:Y}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function U1(J,Q){let G=[];try{const X=N(G,await o(J,"r"),1);let $=(await X.stat()).size;if($===0)return{content:"",bytesRead:0,bytesTotal:0};let Y=Math.max(0,$-Q);let Z=$-Y;let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await X.read(q,H,Z-H,Y+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:$}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function*N1(J){let X=await o(J,"r");try{let Y=(await X.stat()).size,Z=Buffer.alloc(0),q=Buffer.alloc(4096);while(Y>0){let H=Math.min(4096,Y);Y-=H,await X.read(q,0,H,Y);let G=Buffer.concat([q.subarray(0,H),Z]),I=G.indexOf(10);if(I===-1){Z=G;continue}Z=Buffer.from(G.subarray(0,I));let B=G.toString("utf8",I+1).split(`
|
|
3
|
-
`);for(let M=B.length-1;M>=0;M--){let F=B[M];if(F)yield F}}if(Z.length>0)yield Z.toString("utf8")}finally{await X.close()}}var v8,m8;var QX=U(()=>{R8();UJ();v8={cwd(){return process.cwd()},existsSync(J){let X=[];try{const Q=N(X,E`fs.existsSync(${J})`,0);return K.existsSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},async stat(J){return k8(J)},async readdir(J){return L8(J,{withFileTypes:!0})},async unlink(J){return P8(J)},async rmdir(J){return O8(J)},async rm(J,Q){return w8(J,Q)},async mkdir(J,Q){try{await A8(J,{recursive:!0,...Q})}catch(X){if(r(X)!=="EEXIST")throw X}},async readFile(J,Q){return tQ(J,{encoding:Q.encoding})},async rename(J,Q){return S8(J,Q)},async copyFile(J,Q){let $=[];try{const X=N($,E`fs.copyFile(${J} → ${Q})`,0);return _8(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},statSync(J){let X=[];try{const Q=N(X,E`fs.statSync(${J})`,0);return K.statSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},lstatSync(J){let X=[];try{const Q=N(X,E`fs.lstatSync(${J})`,0);return K.lstatSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readFileSync(J,Q){let $=[];try{const X=N($,E`fs.readFileSync(${J})`,0);return K.readFileSync(J,{encoding:Q.encoding})}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},readFileBytesSync(J){let X=[];try{const Q=N(X,E`fs.readFileBytesSync(${J})`,0);return K.readFileSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readSync(J,Q){let Y=[];try{const X=N(Y,E`fs.readSync(${J}, ${Q.length} bytes)`,0);let $=void 0;try{$=K.openSync(J,"r");let G=Buffer.alloc(Q.length),I=K.readSync($,G,0,Q.length,0);return{buffer:G,bytesRead:I}}finally{if($)K.closeSync($)}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},appendFileSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.appendFileSync(${J}, ${Q.length} chars)`,0);if(X?.mode!==void 0)try{let G=K.openSync(J,"ax",X.mode);try{K.appendFileSync(G,Q)}finally{K.closeSync(G)}return}catch(G){if(r(G)!=="EEXIST")throw G}K.appendFileSync(J,Q)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},copyFileSync(J,Q){let $=[];try{const X=N($,E`fs.copyFileSync(${J} → ${Q})`,0);K.copyFileSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},unlinkSync(J){let X=[];try{const Q=N(X,E`fs.unlinkSync(${J})`,0);K.unlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},renameSync(J,Q){let $=[];try{const X=N($,E`fs.renameSync(${J} → ${Q})`,0);K.renameSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},linkSync(J,Q){let $=[];try{const X=N($,E`fs.linkSync(${J} → ${Q})`,0);K.linkSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},symlinkSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.symlinkSync(${J} → ${Q})`,0);K.symlinkSync(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readlinkSync(J){let X=[];try{const Q=N(X,E`fs.readlinkSync(${J})`,0);return K.readlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},realpathSync(J){let X=[];try{const Q=N(X,E`fs.realpathSync(${J})`,0);return K.realpathSync(J).normalize("NFC")}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},mkdirSync(J,Q){let Y=[];try{const X=N(Y,E`fs.mkdirSync(${J})`,0);let $={recursive:!0};if(Q?.mode!==void 0)$.mode=Q.mode;try{K.mkdirSync(J,$)}catch(G){if(r(G)!=="EEXIST")throw G}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readdirSync(J){let X=[];try{const Q=N(X,E`fs.readdirSync(${J})`,0);return K.readdirSync(J,{withFileTypes:!0})}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readdirStringSync(J){let X=[];try{const Q=N(X,E`fs.readdirStringSync(${J})`,0);return K.readdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},isDirEmptySync(J){let $=[];try{const Q=N($,E`fs.isDirEmptySync(${J})`,0);let X=this.readdirSync(J);return X.length===0}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},rmdirSync(J){let X=[];try{const Q=N(X,E`fs.rmdirSync(${J})`,0);K.rmdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},rmSync(J,Q){let $=[];try{const X=N($,E`fs.rmSync(${J})`,0);K.rmSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},createWriteStream(J){return K.createWriteStream(J)},async readFileBytes(J,Q){if(Q===void 0)return tQ(J);let X=await o(J,"r");try{let{size:$}=await X.stat(),Y=Math.min($,Q),Z=Buffer.allocUnsafe(Y),q=0;while(q<Y){let{bytesRead:H}=await X.read(Z,q,Y-q,q);if(H===0)break;q+=H}return q<Y?Z.subarray(0,q):Z}finally{await X.close()}}},m8=v8});import{appendFile as h8,mkdir as d8,symlink as f8,unlink as p8}from"fs/promises";import{dirname as YX,join as qX}from"path";function L1(){let J=T();return HX=!0,T.cache.clear?.(),J}function u8(J){if(!T())return!1;if(typeof process>"u"||typeof process.versions>"u"||typeof process.versions.node>"u")return!1;let Q=b8();return VJ(J,Q)}function _1(J){EJ=J}function S1(){return EJ}async function c8(J,Q,X,$){if(J)await d8(Q,{recursive:!0}).catch(()=>{});await h8(X,$),NX()}function n8(){}function l8(){if(!P){let J=null;P=zJ({writeFn:(Q)=>{let X=UX(),$=YX(X),Y=J!==$;if(J=$,T()){if(Y)try{s().mkdirSync($)}catch{}s().appendFileSync(X,Q),NX();return}a=a.then(c8.bind(null,Y,$,X,Q)).catch(n8)},flushIntervalMs:1000,maxBufferSize:100,immediateMode:T()}),IJ(async()=>{P?.dispose(),await a})}return P}async function O1(){P?.flush(),await a}function D8(J,{level:Q}={level:"debug"}){if(WJ[Q]<WJ[g8()])return;if(!u8(J))return;if(EJ&&J.includes(`
|
|
4
|
-
`))J=KJ(J);let $=`${new Date().toISOString()} [${Q.toUpperCase()}] ${J.trim()}
|
|
5
|
-
`;if(GX()){ZX($);return}l8().write($)}function UX(){return KX()??process.env.CLAUDIN_DEBUG_LOGS_DIR??qX($X(),"debug",`${XX()}.txt`)}function w1(J,Q){}var WJ,g8,HX=!1,T,b8,GX,KX,EJ=!1,P=null,a,NX;var aQ=U(()=>{xJ();sQ();BJ();CJ();DJ();j8();QX();y8();UJ();WJ={verbose:0,debug:1,info:2,warn:3,error:4},g8=V(()=>{let J=process.env.CLAUDIN_DEBUG_LOG_LEVEL?.toLowerCase().trim();if(J&&Object.hasOwn(WJ,J))return J;return"debug"}),T=V(()=>{return HX||NJ(process.env.DEBUG)||NJ(process.env.DEBUG_SDK)||process.argv.includes("--debug")||process.argv.includes("-d")||GX()||process.argv.some((J)=>J.startsWith("--debug="))||KX()!==null});b8=V(()=>{let J=process.argv.find((X)=>X.startsWith("--debug="));if(!J)return null;let Q=J.substring(8);return FJ(Q)}),GX=V(()=>{return process.argv.includes("--debug-to-stderr")||process.argv.includes("-D")}),KX=V(()=>{for(let J=0;J<process.argv.length;J++){let Q=process.argv[J];if(Q.startsWith("--debug-file="))return Q.substring(13);if(Q==="--debug-file"&&J+1<process.argv.length)return process.argv[J+1]}return null});a=Promise.resolve();NX=V(async()=>{try{let J=UX(),Q=YX(J),X=qX(Q,"latest");await p8(X).catch(()=>{}),await f8(J,X)}catch{}})});
|
|
6
|
-
export{zJ as bka,BJ as cka,IJ as dka,r8 as eka,CJ as fka,e as gka,_J as hka,m as ika,JJ as jka,j as kka,QJ as lka,R as mka,k as nka,_ as oka,d as pka,$J as qka,lJ as rka,iJ as ska,rJ as tka,b as uka,ZJ as vka,ZQ as wka,YQ as xka,BQ as yka,IQ as zka,RQ as Aka,AQ as Bka,nQ as Cka,lQ as Dka,E as Eka,KJ as Fka,I8 as Gka,C8 as Hka,F8 as Ika,V8 as Jka,UJ as Kka,JX as Lka,H1 as Mka,G1 as Nka,s as Oka,K1 as Pka,U1 as Qka,N1 as Rka,QX as Ska,g8 as Tka,T as Uka,L1 as Vka,b8 as Wka,GX as Xka,KX as Yka,_1 as Zka,S1 as _ka,O1 as $ka,D8 as ala,UX as bla,w1 as cla,aQ as dla};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{P8 as v,Q8 as C}from"./cli-1.1.22-q622p3vr.mjs";import{Xfa as x,Yfa as Y,wea as Z,xea as V}from"./cli-1.1.22-3jyydg5h.mjs";import{aia as R,eia as W,mia as O}from"./cli-1.1.22-dpqknw7z.mjs";import{Xja as Q,Yja as M}from"./cli-1.1.22-y4rj8ced.mjs";import{Fka as P,Kka as I,ala as f,dla as L}from"./cli-1.1.22-ca6d1erw.mjs";import{Ala as w,Hla as H}from"./cli-1.1.22-3r3tadt1.mjs";import{Xra as N,Yra as F}from"./cli-1.1.22-j7qc1g0f.mjs";import{Bsa as X,Tsa as U}from"./cli-1.1.22-gwhdvfge.mjs";import{qta as h,tta as B}from"./cli-1.1.22-w09pyst3.mjs";import{hostname as E}from"os";function $(){return R(G,!1)}function u(){if(!$())return;return y()}function n(){y.cache?.clear?.()}function o(){if(!$())return;let i=x();try{let q=i.read();if(q?.trustedDeviceToken)delete q.trustedDeviceToken,i.update(q)}catch{}y.cache?.clear?.()}async function t(){try{if(!await W(G)){f(`[trusted-device] Gate ${G} is off, skipping enrollment`);return}if(process.env.CLAUDE_TRUSTED_DEVICE_TOKEN){f("[trusted-device] CLAUDE_TRUSTED_DEVICE_TOKEN env var is set, skipping enrollment (env var takes precedence)");return}let{getClaudeAIOAuthTokens:i}=(C(),h(v)),q=i()?.accessToken;if(!q){f("[trusted-device] No OAuth token, skipping enrollment");return}let J=x();if(Z()){f("[trusted-device] Essential traffic only, skipping enrollment");return}let b=Q().BASE_API_URL,m;try{m=await X.post(`${b}/api/auth/trusted_devices`,{display_name:`Claude Code on ${E()} · ${process.platform}`},{headers:{Authorization:`Bearer ${q}`,"Content-Type":"application/json"},timeout:1e4,validateStatus:(j)=>j<500})}catch(j){f(`[trusted-device] Enrollment request failed: ${w(j)}`);return}if(m.status!==200&&m.status!==201){f(`[trusted-device] Enrollment failed ${m.status}: ${P(m.data).slice(0,200)}`);return}let z=m.data?.device_token;if(!z||typeof z!=="string"){f("[trusted-device] Enrollment response missing device_token field");return}try{let j=J.read();if(!j){f("[trusted-device] Cannot read storage, skipping token persist");return}j.trustedDeviceToken=z;let K=J.update(j);if(!K.success){f(`[trusted-device] Failed to persist token: ${K.warning??"unknown"}`);return}y.cache?.clear?.(),f(`[trusted-device] Enrolled device_id=${m.data.device_id??"unknown"}`)}catch(j){f(`[trusted-device] Storage write failed: ${w(j)}`)}}catch(i){f(`[trusted-device] Enrollment error: ${w(i)}`)}}var G="tengu_sessions_elevated_auth_enforcement",y;var d=B(()=>{U();F();M();O();L();H();V();Y();I();y=N(()=>{let i=process.env.CLAUDE_TRUSTED_DEVICE_TOKEN;if(i)return i;return x().read()?.trustedDeviceToken})});
|
|
2
|
-
export{u as VW,n as WW,o as XW,t as YW,d as ZW};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ud as Y,vd as Z,wd as _,zd as b}from"./cli-1.1.22-6vtb75g8.mjs";import{Pd as X,Ud as V}from"./cli-1.1.22-7rv96st9.mjs";import{bM as T,gM as U,lM as O,mM as W,wM as S}from"./cli-1.1.22-zmt5pksy.mjs";import{ala as Q,dla as K}from"./cli-1.1.22-ca6d1erw.mjs";import{Ala as L,Hla as C}from"./cli-1.1.22-3r3tadt1.mjs";V();K();C();S();O();b();function j(E,H,J){let G=new Set(H.plugins.map((v)=>v.name)),z=`@${J}`,q=[];for(let v of Object.keys(E.plugins)){if(!v.endsWith(z))continue;let h=v.slice(0,-z.length);if(!G.has(h))q.push(v)}return q}async function F(){await Y();let E=W(),H=Z(),J=await T(),G=[];for(let z of Object.keys(J))try{let q=await U(z);if(!q.forceRemoveDeletedPlugins)continue;let v=j(E,q,z);for(let h of v){if(h in H)continue;let R=E.plugins[h]??[];if(!R.some((A)=>A.scope==="user"||A.scope==="project"||A.scope==="local"))continue;for(let A of R){let{scope:B}=A;if(B!=="user"&&B!=="project"&&B!=="local")continue;try{await X(h,B)}catch($){Q(`Failed to auto-uninstall delisted plugin ${h} from ${B}: ${L($)}`,{level:"error"})}}await _(h),G.push(h)}}catch(q){Q(`Failed to check for delisted plugins in "${z}": ${L(q)}`,{level:"warn"})}return G}
|
|
2
|
-
export{F as Xa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ai as W,Bi as v,Ci as T}from"./cli-1.1.22-c1h1wfjn.mjs";import{cja as X,eja as C,fja as $,gja as F}from"./cli-1.1.22-jz426kr2.mjs";import{ala as L,dla as B}from"./cli-1.1.22-ca6d1erw.mjs";import{Kla as H,Vla as y}from"./cli-1.1.22-265a4qpa.mjs";import{yra as j,zna as E}from"./cli-1.1.22-v260dy3k.mjs";import{Bsa as R,Tsa as N}from"./cli-1.1.22-gwhdvfge.mjs";N();C();j();B();y();F();T();import{randomUUID as O}from"crypto";import{mkdir as U,writeFile as A}from"fs/promises";import{basename as I,join as M}from"path";var P=30000;function Q(q){L(`[bridge:inbound-attach] ${q}`)}var k=$(()=>X.object({file_uuid:X.string(),file_name:X.string()})),D=$(()=>X.array(k()));function S(q){if(typeof q!=="object"||q===null||!("file_attachments"in q))return[];let G=D().safeParse(q.file_attachments);return G.success?G.data:[]}function z(q){return I(q).replace(/[^a-zA-Z0-9._-]/g,"_")||"attachment"}function l(){return M(H(),"uploads",E())}async function x(q){let G=W();if(!G){Q("skip: no oauth token");return}let J;try{let V=`${v()}/api/oauth/files/${encodeURIComponent(q.file_uuid)}/content`,Z=await R.get(V,{headers:{Authorization:`Bearer ${G}`},responseType:"arraybuffer",timeout:P,validateStatus:()=>!0});if(Z.status!==200){Q(`fetch ${q.file_uuid} failed: status=${Z.status}`);return}J=Buffer.from(Z.data)}catch(V){Q(`fetch ${q.file_uuid} threw: ${V}`);return}let K=z(q.file_name),_=(q.file_uuid.slice(0,8)||O().slice(0,8)).replace(/[^a-zA-Z0-9_-]/g,"_"),w=l(),Y=M(w,`${_}-${K}`);try{await U(w,{recursive:!0}),await A(Y,J)}catch(V){Q(`write ${Y} failed: ${V}`);return}return Q(`resolved ${q.file_uuid} → ${Y} (${J.length} bytes)`),Y}async function f(q){if(q.length===0)return"";Q(`resolving ${q.length} attachment(s)`);let J=(await Promise.all(q.map(x))).filter((K)=>K!==void 0);if(J.length===0)return"";return J.map((K)=>`@"${K}"`).join(" ")+" "}function u(q,G){if(!G)return q;if(typeof q==="string")return G+q;let J=q.findLastIndex((K)=>K.type==="text");if(J!==-1){let K=q[J];if(K.type==="text")return[...q.slice(0,J),{...K,text:G+K.text},...q.slice(J+1)]}return[...q,{type:"text",text:G.trimEnd()}]}async function o(q,G){let J=S(q);if(J.length===0)return G;let K=await f(J);return u(G,K)}
|
|
2
|
-
export{S as ca,f as da,u as ea,o as fa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tta as K}from"./cli-1.1.22-w09pyst3.mjs";function C(f){return(j)=>{if(j.code==="EPIPE")f.destroy()}}function M(){process.stdout.on("error",C(process.stdout)),process.stderr.on("error",C(process.stderr))}function G(f,j){if(f.destroyed)return;f.write(j)}function N(f){G(process.stdout,f)}function Q(f){G(process.stderr,f)}function R(f){console.error(f),process.exit(1)}function S(f,j){return new Promise((H)=>{let q=(J)=>{clearTimeout(B),f.off("end",z),f.off("data",A),H(J)},z=()=>q(!1),A=()=>clearTimeout(B),B=setTimeout(q,j,!0);f.once("end",z),f.once("data",A)})}var L=()=>{};
|
|
2
|
-
export{M as ela,N as fla,Q as gla,R as hla,S as ila,L as jla};
|