@claudiolabs/claudin 1.1.11 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -24
- package/dist/chunks/AgentTool-1.1.13-63r89cdz.mjs +1 -0
- package/dist/chunks/App-1.1.13-d46t1gxs.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.13-ss1skn67.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.13-akb18zhk.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.13-wy2pstpa.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.13-nrs4ahv7.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.13-p12n7vw3.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.13-tqx20akq.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.13-6nf4k00f.mjs +6 -0
- package/dist/chunks/Doctor-1.1.13-sab3pc3m.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.13-8j4yph77.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.13-ezctrhfh.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.13-fn55xkky.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.13-v601bm3n.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.13-m30010yq.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.13-r6p8ac38.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.13-2mn20qcd.mjs +1 -0
- package/dist/chunks/REPL-1.1.13-mn8t5yw9.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.13-ayr9p9vf.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.13-wvmmeycx.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.13-wy75ekbh.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.13-mbjqq83z.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.13-590kxc7c.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.13-3z3twxzs.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.13-wzknhxkr.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.13-ev0qre9c.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.13-mf4z3aws.mjs +1 -0
- package/dist/chunks/add-dir-1.1.13-r8re3j87.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.13-nxkcga73.mjs +1 -0
- package/dist/chunks/agents-1.1.13-86a1wgye.mjs +110 -0
- package/dist/chunks/agents-1.1.13-w1pmkekd.mjs +3 -0
- package/dist/chunks/api-1.1.13-5ffq20rc.mjs +1 -0
- package/dist/chunks/asciicast-1.1.13-633wvh0n.mjs +1 -0
- package/dist/chunks/assistant-1.1.13-9q7zxtfz.mjs +1 -0
- package/dist/chunks/auth-1.1.13-a50e1ztc.mjs +1 -0
- package/dist/chunks/auth-1.1.13-xv576tj3.mjs +1 -0
- package/dist/chunks/autoMode-1.1.13-3n3c9p8y.mjs +48 -0
- package/dist/chunks/autoUpdater-1.1.13-mb65jkk5.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.13-avr9z4k0.mjs +1 -0
- package/dist/chunks/branch-1.1.13-gmg9we2y.mjs +4 -0
- package/dist/chunks/bridge-1.1.13-hvfvhpm1.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.13-zzxf7mvh.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.13-f2fjmfs0.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.13-8tn5vy8z.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.13-97d9ec9y.mjs +1 -0
- package/dist/chunks/btw-1.1.13-v2hwppkk.mjs +1 -0
- package/dist/chunks/buddy-1.1.13-svfg8x3f.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.13-td1bna05.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.13-tmmf2k7r.mjs +4 -0
- package/dist/chunks/caches-1.1.13-s55yzhpm.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.1.13-8d0bp8yb.mjs +1 -0
- package/dist/chunks/claudemd-1.1.13-3mc0z25q.mjs +1 -0
- package/dist/chunks/clear-1.1.13-1d9yvw3f.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.13-882kpw7s.mjs +1 -0
- package/dist/chunks/cli-1.1.13-03rdpsbf.mjs +2 -0
- package/dist/chunks/cli-1.1.13-0dha376x.mjs +3 -0
- package/dist/chunks/cli-1.1.13-0h48j6a1.mjs +7 -0
- package/dist/chunks/cli-1.1.13-0qy978b3.mjs +3 -0
- package/dist/chunks/cli-1.1.13-0x1mk1dp.mjs +2 -0
- package/dist/chunks/cli-1.1.13-0y4933cs.mjs +2 -0
- package/dist/chunks/cli-1.1.13-0yte5zpd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-15nbdw38.mjs +2 -0
- package/dist/chunks/cli-1.1.13-17xy86gy.mjs +24 -0
- package/dist/chunks/cli-1.1.13-1d70jtz7.mjs +6 -0
- package/dist/chunks/cli-1.1.13-1frz0zm3.mjs +2 -0
- package/dist/chunks/cli-1.1.13-1jf910f2.mjs +2 -0
- package/dist/chunks/cli-1.1.13-1qk5qhgt.mjs +2 -0
- package/dist/chunks/cli-1.1.13-1rfveg0v.mjs +2 -0
- package/dist/chunks/cli-1.1.13-1x4z2mj8.mjs +2 -0
- package/dist/chunks/cli-1.1.13-24284zna.mjs +2 -0
- package/dist/chunks/cli-1.1.13-284pjmzy.mjs +4 -0
- package/dist/chunks/cli-1.1.13-2964cc2e.mjs +2 -0
- package/dist/chunks/cli-1.1.13-2a8k8qw7.mjs +2 -0
- package/dist/chunks/cli-1.1.13-2f0gzs1e.mjs +2 -0
- package/dist/chunks/cli-1.1.13-2m39r998.mjs +2 -0
- package/dist/chunks/cli-1.1.13-2mrqqgcm.mjs +202 -0
- package/dist/chunks/cli-1.1.13-2sx1bxbt.mjs +2 -0
- package/dist/chunks/cli-1.1.13-2txesqy8.mjs +2 -0
- package/dist/chunks/cli-1.1.13-3dmbtx8g.mjs +2 -0
- package/dist/chunks/cli-1.1.13-3wxfn6t5.mjs +2 -0
- package/dist/chunks/cli-1.1.13-46jvx14j.mjs +2 -0
- package/dist/chunks/cli-1.1.13-49gvv5kd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-4tt8dq0e.mjs +42 -0
- package/dist/chunks/cli-1.1.13-4vt96sm8.mjs +2 -0
- package/dist/chunks/cli-1.1.13-53ght581.mjs +3 -0
- package/dist/chunks/cli-1.1.13-53zq1gs2.mjs +2 -0
- package/dist/chunks/cli-1.1.13-5kpppj1f.mjs +6 -0
- package/dist/chunks/cli-1.1.13-61mygvzg.mjs +2 -0
- package/dist/chunks/cli-1.1.13-64d0d5ye.mjs +2 -0
- package/dist/chunks/cli-1.1.13-65c7kxwt.mjs +12 -0
- package/dist/chunks/cli-1.1.13-669vhsjj.mjs +2 -0
- package/dist/chunks/cli-1.1.13-6727vw4f.mjs +2 -0
- package/dist/chunks/cli-1.1.13-6b845car.mjs +2 -0
- package/dist/chunks/cli-1.1.13-6c4qxmj3.mjs +4 -0
- package/dist/chunks/cli-1.1.13-6dcpjy34.mjs +17 -0
- package/dist/chunks/cli-1.1.13-6ebd7gpv.mjs +2 -0
- package/dist/chunks/cli-1.1.13-6jy1pnge.mjs +2 -0
- package/dist/chunks/cli-1.1.13-6k71beqh.mjs +2 -0
- package/dist/chunks/cli-1.1.13-6tf67wfm.mjs +2 -0
- package/dist/chunks/cli-1.1.13-74rczf0f.mjs +2 -0
- package/dist/chunks/cli-1.1.13-7h18kpv0.mjs +2 -0
- package/dist/chunks/cli-1.1.13-7k2bp2pf.mjs +2 -0
- package/dist/chunks/cli-1.1.13-7s34jqge.mjs +133 -0
- package/dist/chunks/cli-1.1.13-7srn3vy6.mjs +2 -0
- package/dist/chunks/cli-1.1.13-7wyfj1qp.mjs +2 -0
- package/dist/chunks/cli-1.1.13-82y6dszx.mjs +2 -0
- package/dist/chunks/cli-1.1.13-86kjp502.mjs +2 -0
- package/dist/chunks/cli-1.1.13-91q67gqp.mjs +2 -0
- package/dist/chunks/cli-1.1.13-9609q0ww.mjs +2 -0
- package/dist/chunks/cli-1.1.13-9ktdmvzq.mjs +15 -0
- package/dist/chunks/cli-1.1.13-9qhgyzkx.mjs +2 -0
- package/dist/chunks/cli-1.1.13-9s0arh3g.mjs +25 -0
- package/dist/chunks/cli-1.1.13-9v3mg87v.mjs +2 -0
- package/dist/chunks/cli-1.1.13-9x53mnyd.mjs +5 -0
- package/dist/chunks/cli-1.1.13-a3q7qm6t.mjs +2 -0
- package/dist/chunks/cli-1.1.13-a3s5tdea.mjs +2 -0
- package/dist/chunks/cli-1.1.13-a3zfe19b.mjs +25 -0
- package/dist/chunks/cli-1.1.13-a40ncbc3.mjs +2 -0
- package/dist/chunks/cli-1.1.13-a96dm0r5.mjs +4 -0
- package/dist/chunks/cli-1.1.13-aac9pss7.mjs +59 -0
- package/dist/chunks/cli-1.1.13-aeq919w1.mjs +2 -0
- package/dist/chunks/cli-1.1.13-aqph7zr1.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ayx92dtj.mjs +6 -0
- package/dist/chunks/cli-1.1.13-b47k2p92.mjs +21 -0
- package/dist/chunks/cli-1.1.13-b9sg0jsz.mjs +2 -0
- package/dist/chunks/cli-1.1.13-baxww5k9.mjs +3 -0
- package/dist/chunks/cli-1.1.13-c4zxjf91.mjs +2 -0
- package/dist/chunks/cli-1.1.13-cd7jraqe.mjs +2 -0
- package/dist/chunks/cli-1.1.13-cey8v1xc.mjs +2 -0
- package/dist/chunks/cli-1.1.13-cg1m9a2x.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ck2qzqbj.mjs +2 -0
- package/dist/chunks/cli-1.1.13-cm4vwx6e.mjs +2 -0
- package/dist/chunks/cli-1.1.13-cn9g3704.mjs +12 -0
- package/dist/chunks/cli-1.1.13-cqhxyzrd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-d4z9sv3g.mjs +2 -0
- package/dist/chunks/cli-1.1.13-d54qh52e.mjs +3 -0
- package/dist/chunks/cli-1.1.13-d8d30wps.mjs +3 -0
- package/dist/chunks/cli-1.1.13-djvyb4s5.mjs +3 -0
- package/dist/chunks/cli-1.1.13-dpsjxc84.mjs +2 -0
- package/dist/chunks/cli-1.1.13-dthjfxxw.mjs +2 -0
- package/dist/chunks/cli-1.1.13-e4hsds4b.mjs +2 -0
- package/dist/chunks/cli-1.1.13-e4k7980n.mjs +2 -0
- package/dist/chunks/cli-1.1.13-e68npf24.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ehaqachs.mjs +2 -0
- package/dist/chunks/cli-1.1.13-epjmphrz.mjs +133 -0
- package/dist/chunks/cli-1.1.13-ev08z5ye.mjs +24 -0
- package/dist/chunks/cli-1.1.13-ewxej7em.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ey931psa.mjs +2 -0
- package/dist/chunks/cli-1.1.13-f5s7e6kg.mjs +2 -0
- package/dist/chunks/cli-1.1.13-far5gqfj.mjs +2 -0
- package/dist/chunks/cli-1.1.13-fccy9c48.mjs +2 -0
- package/dist/chunks/cli-1.1.13-fjxx2wgm.mjs +2 -0
- package/dist/chunks/cli-1.1.13-fkcaczca.mjs +2 -0
- package/dist/chunks/cli-1.1.13-fkvcsg0a.mjs +2 -0
- package/dist/chunks/cli-1.1.13-fr4zp0cx.mjs +3 -0
- package/dist/chunks/cli-1.1.13-g8k8na90.mjs +2 -0
- package/dist/chunks/cli-1.1.13-gaa8s22w.mjs +8 -0
- package/dist/chunks/cli-1.1.13-gechs2yp.mjs +4 -0
- package/dist/chunks/cli-1.1.13-gfyds6b8.mjs +18 -0
- package/dist/chunks/cli-1.1.13-gh95gh19.mjs +2 -0
- package/dist/chunks/cli-1.1.13-gmqmzw50.mjs +2 -0
- package/dist/chunks/cli-1.1.13-gzfw6n93.mjs +39 -0
- package/dist/chunks/cli-1.1.13-gznvgt6g.mjs +16 -0
- package/dist/chunks/cli-1.1.13-h1v6cap9.mjs +2 -0
- package/dist/chunks/cli-1.1.13-h7n0z0dz.mjs +2 -0
- package/dist/chunks/cli-1.1.13-h7xrb6x3.mjs +2 -0
- package/dist/chunks/cli-1.1.13-hb5bb8jk.mjs +3 -0
- package/dist/chunks/cli-1.1.13-hg8x8693.mjs +6 -0
- package/dist/chunks/cli-1.1.13-hzneg4va.mjs +2 -0
- package/dist/chunks/cli-1.1.13-j02dcs05.mjs +2 -0
- package/dist/chunks/cli-1.1.13-j7dbk8te.mjs +2 -0
- package/dist/chunks/cli-1.1.13-j98qjhp9.mjs +15 -0
- package/dist/chunks/cli-1.1.13-jdcqc6bd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-je6371k7.mjs +2 -0
- package/dist/chunks/cli-1.1.13-jevpf9b3.mjs +2 -0
- package/dist/chunks/cli-1.1.13-k5sbyjwd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-k6ef9cy7.mjs +34 -0
- package/dist/chunks/cli-1.1.13-kbf9vss4.mjs +4 -0
- package/dist/chunks/cli-1.1.13-kct81ph3.mjs +2 -0
- package/dist/chunks/cli-1.1.13-kjdr6edt.mjs +15 -0
- package/dist/chunks/cli-1.1.13-kmrz3wh8.mjs +2 -0
- package/dist/chunks/cli-1.1.13-kq8spsav.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ksvd60yr.mjs +2 -0
- package/dist/chunks/cli-1.1.13-kw2fntc3.mjs +3 -0
- package/dist/chunks/cli-1.1.13-m5grg33r.mjs +4 -0
- package/dist/chunks/cli-1.1.13-mct1fasm.mjs +2 -0
- package/dist/chunks/cli-1.1.13-mt0y53s0.mjs +17 -0
- package/dist/chunks/cli-1.1.13-mzq23677.mjs +2 -0
- package/dist/chunks/cli-1.1.13-n24mxjbh.mjs +2 -0
- package/dist/chunks/cli-1.1.13-n8nv58q7.mjs +2 -0
- package/dist/chunks/cli-1.1.13-nbdp9ez1.mjs +3 -0
- package/dist/chunks/cli-1.1.13-nr09192d.mjs +2 -0
- package/dist/chunks/cli-1.1.13-pa4chrcw.mjs +2 -0
- package/dist/chunks/cli-1.1.13-pam922jf.mjs +2 -0
- package/dist/chunks/cli-1.1.13-pedv9sma.mjs +9 -0
- package/dist/chunks/cli-1.1.13-pjxb9g99.mjs +2 -0
- package/dist/chunks/cli-1.1.13-pmejqt4x.mjs +2 -0
- package/dist/chunks/cli-1.1.13-pscw4dkq.mjs +2 -0
- package/dist/chunks/cli-1.1.13-psmq4bkh.mjs +50 -0
- package/dist/chunks/cli-1.1.13-q1hx591h.mjs +2 -0
- package/dist/chunks/cli-1.1.13-q1yggv9b.mjs +2 -0
- package/dist/chunks/cli-1.1.13-qc5bvtyx.mjs +2 -0
- package/dist/chunks/cli-1.1.13-qd5r2qba.mjs +2 -0
- package/dist/chunks/cli-1.1.13-qhavh0s1.mjs +9 -0
- package/dist/chunks/cli-1.1.13-qr4adses.mjs +2 -0
- package/dist/chunks/cli-1.1.13-qtzpy08k.mjs +2 -0
- package/dist/chunks/cli-1.1.13-qv85wtc7.mjs +2 -0
- package/dist/chunks/cli-1.1.13-qxrjvprg.mjs +3 -0
- package/dist/chunks/cli-1.1.13-qyjx1fky.mjs +2 -0
- package/dist/chunks/cli-1.1.13-r2qnta4s.mjs +2 -0
- package/dist/chunks/cli-1.1.13-r4znfhyr.mjs +2 -0
- package/dist/chunks/cli-1.1.13-r9tfxszp.mjs +2 -0
- package/dist/chunks/cli-1.1.13-rcgr5xjp.mjs +1 -0
- package/dist/chunks/cli-1.1.13-rh27w2xj.mjs +24 -0
- package/dist/chunks/cli-1.1.13-rhtvcdjb.mjs +3 -0
- package/dist/chunks/cli-1.1.13-rmt4z6qm.mjs +2 -0
- package/dist/chunks/cli-1.1.13-rnajmfsp.mjs +2 -0
- package/dist/chunks/cli-1.1.13-rrp2vm36.mjs +2 -0
- package/dist/chunks/cli-1.1.13-segzta4x.mjs +2 -0
- package/dist/chunks/cli-1.1.13-shz97pa0.mjs +2 -0
- package/dist/chunks/cli-1.1.13-smefk747.mjs +2 -0
- package/dist/chunks/cli-1.1.13-snkbv1w2.mjs +2 -0
- package/dist/chunks/cli-1.1.13-sqg8rfkh.mjs +2 -0
- package/dist/chunks/cli-1.1.13-sycf9s0v.mjs +3 -0
- package/dist/chunks/cli-1.1.13-t4z97zfd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-t8ypngwg.mjs +4 -0
- package/dist/chunks/cli-1.1.13-tma5xwa2.mjs +2 -0
- package/dist/chunks/cli-1.1.13-tx4y2gtw.mjs +2 -0
- package/dist/chunks/cli-1.1.13-tz8pn7w4.mjs +24 -0
- package/dist/chunks/cli-1.1.13-v06xvs9s.mjs +2 -0
- package/dist/chunks/cli-1.1.13-v2synpdg.mjs +2 -0
- package/dist/chunks/cli-1.1.13-v32emtk0.mjs +26 -0
- package/dist/chunks/cli-1.1.13-vm8xs878.mjs +3 -0
- package/dist/chunks/cli-1.1.13-vpgfmshm.mjs +4 -0
- package/dist/chunks/cli-1.1.13-vx6r9z72.mjs +45 -0
- package/dist/chunks/cli-1.1.13-vxpmt3js.mjs +66 -0
- package/dist/chunks/cli-1.1.13-wh5smpta.mjs +2 -0
- package/dist/chunks/cli-1.1.13-wje228e3.mjs +2 -0
- package/dist/chunks/cli-1.1.13-wmpc2gzg.mjs +2 -0
- package/dist/chunks/cli-1.1.13-wqteqtr2.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ws1mny6h.mjs +58 -0
- package/dist/chunks/cli-1.1.13-x663d461.mjs +2 -0
- package/dist/chunks/cli-1.1.13-x79qava2.mjs +5413 -0
- package/dist/chunks/cli-1.1.13-x83epxhw.mjs +2 -0
- package/dist/chunks/cli-1.1.13-x92dpkgj.mjs +6 -0
- package/dist/chunks/cli-1.1.13-xbxnp58a.mjs +2 -0
- package/dist/chunks/cli-1.1.13-xjr3rwfq.mjs +6 -0
- package/dist/chunks/cli-1.1.13-xpwxcmvd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-xqqf08vq.mjs +2 -0
- package/dist/chunks/cli-1.1.13-y5d299s9.mjs +2 -0
- package/dist/chunks/cli-1.1.13-y6pa258f.mjs +4 -0
- package/dist/chunks/cli-1.1.13-y6vdh2z1.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ykzv8nyq.mjs +2 -0
- package/dist/chunks/cli-1.1.13-z39hx0gz.mjs +20 -0
- package/dist/chunks/cli-1.1.13-z3t7b0fc.mjs +2 -0
- package/dist/chunks/cli-1.1.13-z4p8zcbq.mjs +2 -0
- package/dist/chunks/cli-1.1.13-z9471mhs.mjs +4 -0
- package/dist/chunks/cli-1.1.13-zb95jpx7.mjs +4 -0
- package/dist/chunks/cli-1.1.13-zgnxf8h2.mjs +2 -0
- package/dist/chunks/cli-1.1.13-zmb192fn.mjs +18 -0
- package/dist/chunks/cli-1.1.13-zq5f89xg.mjs +5 -0
- package/dist/chunks/cli-1.1.13-zwkd4wt2.mjs +2 -0
- package/dist/chunks/client-1.1.13-6axfwqya.mjs +1 -0
- package/dist/chunks/color-1.1.13-g1rjvg86.mjs +1 -0
- package/dist/chunks/compact-1.1.13-9k4jts81.mjs +3 -0
- package/dist/chunks/config-1.1.13-58bj6t43.mjs +1 -0
- package/dist/chunks/config-1.1.13-csmwn3d0.mjs +1 -0
- package/dist/chunks/constants-1.1.13-cydjncsk.mjs +1 -0
- package/dist/chunks/context-1.1.13-04y3svxc.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.13-03weyc85.mjs +1 -0
- package/dist/chunks/conversation-1.1.13-3e1jc3w3.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.13-51e32r1x.mjs +1 -0
- package/dist/chunks/copy-1.1.13-4zq95frp.mjs +9 -0
- package/dist/chunks/cost-1.1.13-fwm0etgk.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.13-j73jx662.mjs +1 -0
- package/dist/chunks/createSession-1.1.13-2qt6zyq3.mjs +1 -0
- package/dist/chunks/debug-1.1.13-v33s5nkx.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.13-jyb9mebt.mjs +1526 -0
- package/dist/chunks/desktop-1.1.13-3pyvc57q.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.13-c8evf71r.mjs +1 -0
- package/dist/chunks/detection-1.1.13-k5td7n26.mjs +1 -0
- package/dist/chunks/diff-1.1.13-d31m696z.mjs +1 -0
- package/dist/chunks/doctor-1.1.13-59947n3f.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.13-tvrr2smf.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.13-yngv0q4n.mjs +1 -0
- package/dist/chunks/effort-1.1.13-mknzxvcm.mjs +13 -0
- package/dist/chunks/engine-1.1.13-p9g24e16.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.13-wvdxmeaw.mjs +1 -0
- package/dist/chunks/envUtils-1.1.13-v5y7eb11.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.13-5fx84mw2.mjs +1 -0
- package/dist/chunks/environments-1.1.13-dkqy0n2f.mjs +1 -0
- package/dist/chunks/errors-1.1.13-xf58n7yx.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.13-1mqkdys8.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.13-08pbvmpc.mjs +1 -0
- package/dist/chunks/exit-1.1.13-n91w8c6v.mjs +1 -0
- package/dist/chunks/explorer-1.1.13-zh3tbspv.mjs +1 -0
- package/dist/chunks/export-1.1.13-vgfr4wyy.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.13-ww6z773x.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.13-sfm57e8v.mjs +1 -0
- package/dist/chunks/fast-1.1.13-2an1j0he.mjs +1 -0
- package/dist/chunks/feedback-1.1.13-dz4kng15.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.13-zdhe9x8w.mjs +1 -0
- package/dist/chunks/git-1.1.13-n4743t7m.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.13-39mkwpe0.mjs +1 -0
- package/dist/chunks/goal-1.1.13-kt16xsn7.mjs +4 -0
- package/dist/chunks/growthbook-1.1.13-12sbk0rh.mjs +1 -0
- package/dist/chunks/headless-1.1.13-me11khs4.mjs +2 -0
- package/dist/chunks/heapdump-1.1.13-2m1pfhn8.mjs +6 -0
- package/dist/chunks/help-1.1.13-sdyj6mfj.mjs +1 -0
- package/dist/chunks/hookChains-1.1.13-kwx32g3b.mjs +3 -0
- package/dist/chunks/hooks-1.1.13-cgr9s1yz.mjs +1 -0
- package/dist/chunks/hooks-1.1.13-rbvjw5bs.mjs +79 -0
- package/dist/chunks/ide-1.1.13-699b7xgf.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.13-m17yzsrx.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.1.13-x1sbkysh.mjs +1 -0
- package/dist/chunks/index-1.1.13-1magnv9t.mjs +1 -0
- package/dist/chunks/index-1.1.13-20fw0vyg.mjs +1 -0
- package/dist/chunks/index-1.1.13-3dw8qr3q.mjs +1 -0
- package/dist/chunks/index-1.1.13-5fffrw39.mjs +23 -0
- package/dist/chunks/index-1.1.13-7v1v2795.mjs +1 -0
- package/dist/chunks/index-1.1.13-89b63y1a.mjs +1 -0
- package/dist/chunks/index-1.1.13-9hmkds89.mjs +1 -0
- package/dist/chunks/index-1.1.13-gy0jpfpr.mjs +1 -0
- package/dist/chunks/index-1.1.13-hvpk64ts.mjs +9 -0
- package/dist/chunks/index-1.1.13-pfnaxhas.mjs +9 -0
- package/dist/chunks/index-1.1.13-pq81pd76.mjs +2 -0
- package/dist/chunks/index-1.1.13-q7xgkez4.mjs +1 -0
- package/dist/chunks/index-1.1.13-qed5hqgm.mjs +1 -0
- package/dist/chunks/index-1.1.13-qncvk76v.mjs +1 -0
- package/dist/chunks/index-1.1.13-qzm5brgp.mjs +2 -0
- package/dist/chunks/index-1.1.13-sqz3new4.mjs +1 -0
- package/dist/chunks/index-1.1.13-swwn9vsr.mjs +1 -0
- package/dist/chunks/index-1.1.13-tseyy72z.mjs +1 -0
- package/dist/chunks/index-1.1.13-v219xtkm.mjs +1 -0
- package/dist/chunks/index-1.1.13-vbws03kk.mjs +30 -0
- package/dist/chunks/index-1.1.13-vpewasbk.mjs +1 -0
- package/dist/chunks/index-1.1.13-yncdgpnc.mjs +5 -0
- package/dist/chunks/index-1.1.13-zs9h2fe1.mjs +1 -0
- package/dist/chunks/init-1.1.13-6m1d58s6.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.13-awvfmbnw.mjs +1 -0
- package/dist/chunks/ink-1.1.13-vsh153b4.mjs +1 -0
- package/dist/chunks/insights-1.1.13-q1te7p8c.mjs +870 -0
- package/dist/chunks/install-1.1.13-4m9h1gcp.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.13-6psvvf35.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.13-rav6afh8.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.13-8hhppwk0.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.13-18fm94xz.mjs +1 -0
- package/dist/chunks/keybindings-1.1.13-3k2cx6e8.mjs +2 -0
- package/dist/chunks/knowledge-1.1.13-v9293wfr.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.13-1hy01yw3.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.13-gkw0j99z.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.13-mh4yata3.mjs +1 -0
- package/dist/chunks/log-1.1.13-j05vnw45.mjs +1 -0
- package/dist/chunks/main-1.1.13-9eb7dv86.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.13-9ded70wd.mjs +1 -0
- package/dist/chunks/mcp-1.1.13-kp94f55t.mjs +1 -0
- package/dist/chunks/mcp-1.1.13-vyp2stqn.mjs +4 -0
- package/dist/chunks/mcp-1.1.13-xwk9expt.mjs +17 -0
- package/dist/chunks/mcpb-1.1.13-e4x7a1cq.mjs +1 -0
- package/dist/chunks/memory-1.1.13-xq6wwcec.mjs +72 -0
- package/dist/chunks/model-1.1.13-e9231b6a.mjs +2 -0
- package/dist/chunks/model-1.1.13-qkp6et1j.mjs +1 -0
- package/dist/chunks/node-1.1.13-eg9nzfxw.mjs +12 -0
- package/dist/chunks/oauth-1.1.13-65c8za8p.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.13-9ym9m1mj.mjs +14 -0
- package/dist/chunks/output-style-1.1.13-3ew33fvw.mjs +1 -0
- package/dist/chunks/package-L37ZVTF4-1.1.13-53j92t2g.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.13-1jbm6fkk.mjs +1 -0
- package/dist/chunks/parser-1.1.13-5g8tytma.mjs +1 -0
- package/dist/chunks/passes-1.1.13-5xeg8jj4.mjs +1 -0
- package/dist/chunks/permissions-1.1.13-rtwebb2e.mjs +3 -0
- package/dist/chunks/permissions-1.1.13-tzfqtc98.mjs +1 -0
- package/dist/chunks/plan-1.1.13-fh6rsd03.mjs +1 -0
- package/dist/chunks/plist-1.1.13-4dh5ng03.mjs +1 -0
- package/dist/chunks/plugin-1.1.13-s7ah8dsz.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.13-yv5cavjc.mjs +1 -0
- package/dist/chunks/plugins-1.1.13-nbh7kt80.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.13-364dz1r6.mjs +2 -0
- package/dist/chunks/print-1.1.13-cba5ekrx.mjs +57 -0
- package/dist/chunks/process-1.1.13-cavp5bw3.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.13-fxe0rhkm.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.13-r4eqk2r6.mjs +9 -0
- package/dist/chunks/prompt-1.1.13-31mpaj7k.mjs +1 -0
- package/dist/chunks/prompt-1.1.13-ncxsva6c.mjs +1 -0
- package/dist/chunks/prompts-1.1.13-dhrj0hdm.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.13-gvd8r63q.mjs +13 -0
- package/dist/chunks/provider-1.1.13-aec8n85t.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.13-zy5qqb30.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.13-cxfdm6ma.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.13-v7dcfp2w.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.13-w8vyweq5.mjs +26 -0
- package/dist/chunks/registry-1.1.13-0gr1a931.mjs +1 -0
- package/dist/chunks/release-notes-1.1.13-e00b70ja.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.13-sqy72754.mjs +2 -0
- package/dist/chunks/remote-env-1.1.13-xx2p7c0r.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.13-8aq4kysc.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.13-pnkdpev8.mjs +1 -0
- package/dist/chunks/rename-1.1.13-7mj7635m.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.13-1jjw29zv.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.13-r9abzwa5.mjs +1 -0
- package/dist/chunks/resume-1.1.13-j22aqaqb.mjs +2 -0
- package/dist/chunks/rewind-1.1.13-f1jde571.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.13-m3dg8wsz.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.13-g7t752v0.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.13-8dyb4jrf.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.13-ns6smzfv.mjs +1 -0
- package/dist/chunks/session-1.1.13-je6e2q22.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.13-75db2930.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.13-8251mhbe.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.13-xg7nehyd.mjs +1 -0
- package/dist/chunks/settings-1.1.13-tbc6gf4g.mjs +1 -0
- package/dist/chunks/setup-1.1.13-pk56d4kg.mjs +5 -0
- package/dist/chunks/sinks-1.1.13-vgc4py0g.mjs +1 -0
- package/dist/chunks/skills-1.1.13-k0dra3w7.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.13-fvpsbvqy.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.13-v5fdv702.mjs +1 -0
- package/dist/chunks/state-1.1.13-m97vrspe.mjs +1 -0
- package/dist/chunks/stats-1.1.13-x2ranep4.mjs +6 -0
- package/dist/chunks/status-1.1.13-xv9dh6gx.mjs +1 -0
- package/dist/chunks/stickers-1.1.13-am6n03pg.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.13-w3gcpn8h.mjs +1 -0
- package/dist/chunks/tasks-1.1.13-y9rjkzvh.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.13-paydek0r.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.13-w7zznyew.mjs +1 -0
- package/dist/chunks/teleport-1.1.13-fm868anx.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.13-nfx648p3.mjs +1 -0
- package/dist/chunks/theme-1.1.13-2a11bn8e.mjs +1 -0
- package/dist/chunks/thinkback-1.1.13-8a8pxp4f.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.13-0v3gmmaa.mjs +1 -0
- package/dist/chunks/toolPool-1.1.13-6pma3gae.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.13-gmb9gs2k.mjs +1 -0
- package/dist/chunks/tools-1.1.13-pdnr83pg.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.13-82cy5yze.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.13-bqqaen2x.mjs +69 -0
- package/dist/chunks/types-1.1.13-2f1xtenh.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.13-89cvmahe.mjs +4 -0
- package/dist/chunks/update-1.1.13-0hd3pst5.mjs +72 -0
- package/dist/chunks/upgrade-1.1.13-3yjr0p81.mjs +1 -0
- package/dist/chunks/upload-1.1.13-kxah5qjz.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.13-1jkww0dp.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.13-xxqesd6p.mjs +1 -0
- package/dist/chunks/usage-1.1.13-mwqdp27m.mjs +1 -0
- package/dist/chunks/util-1.1.13-vzt92dj7.mjs +1 -0
- package/dist/chunks/utils-1.1.13-dw4qnd8d.mjs +1 -0
- package/dist/chunks/vim-1.1.13-1d635y0m.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.13-dd5a4gny.mjs +13 -0
- package/dist/chunks/watcher-1.1.13-s8bc1gyy.mjs +1 -0
- package/dist/chunks/wiki-1.1.13-0j3t4xgh.mjs +132 -0
- package/dist/chunks/workflows-1.1.13-4jfegd8x.mjs +1 -0
- package/dist/chunks/worktree-1.1.13-t2dn2nay.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.13-sc9g7vcd.mjs +1 -0
- package/dist/chunks/wrapper-1.1.13-4tbb5aym.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/dist/help-agents.txt +1 -1
- package/dist/help-auth.txt +1 -1
- package/dist/help-auto-mode.txt +1 -1
- package/dist/help-doctor.txt +1 -1
- package/dist/help-install.txt +1 -1
- package/dist/help-mcp.txt +1 -1
- package/dist/help-plugin.txt +1 -1
- package/dist/help-plugins.txt +1 -1
- package/dist/help-setup-token.txt +1 -1
- package/dist/help-update.txt +1 -1
- package/dist/help-upgrade.txt +1 -1
- package/dist/help-workflow.txt +1 -1
- package/dist/help.txt +3 -4
- package/install.cjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.11-k2q6nh9x.mjs +0 -1
- package/dist/chunks/App-1.1.11-krv6wwgp.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.11-9s811hbz.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.11-basm4sc7.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.11-aejfbb8x.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.11-3wxr3fz9.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.11-b4v59b23.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.11-e3abm4me.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.11-aswpafrn.mjs +0 -6
- package/dist/chunks/Doctor-1.1.11-jfetmc28.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.11-sn8jmt3x.mjs +0 -6
- package/dist/chunks/Grove-1.1.11-f2zsmd4t.mjs +0 -1
- package/dist/chunks/ITermBackend-1.1.11-7ga25209.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.11-vcp6js2b.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.11-qqr3ve61.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.11-z6eadsg8.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.11-16z484ph.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.11-tv77qzrq.mjs +0 -1
- package/dist/chunks/REPL-1.1.11-eft2tx7z.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.11-hc55dc65.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.11-j4b72t5c.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.11-d2ata0wm.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.11-3gr88x6n.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.11-xf144qy6.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.11-76y2a4zz.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.11-sxwd1d13.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.11-pbh6yxxm.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.11-saggs5cv.mjs +0 -1
- package/dist/chunks/add-dir-1.1.11-4tgfptar.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.11-af225gtm.mjs +0 -1
- package/dist/chunks/agents-1.1.11-0wy5khvz.mjs +0 -3
- package/dist/chunks/agents-1.1.11-40dk22tt.mjs +0 -110
- package/dist/chunks/api-1.1.11-pxj1yw19.mjs +0 -1
- package/dist/chunks/asciicast-1.1.11-wmt09xhy.mjs +0 -1
- package/dist/chunks/assistant-1.1.11-tqk05t61.mjs +0 -1
- package/dist/chunks/auth-1.1.11-nvrxv4q4.mjs +0 -1
- package/dist/chunks/auth-1.1.11-pbwjnx30.mjs +0 -1
- package/dist/chunks/autoMode-1.1.11-22v33wd4.mjs +0 -48
- package/dist/chunks/autoUpdater-1.1.11-pqjz5g38.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.11-9xjtajrq.mjs +0 -1
- package/dist/chunks/branch-1.1.11-76tya9ft.mjs +0 -4
- package/dist/chunks/bridge-1.1.11-1m3v2n3k.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.11-fp43q2e3.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.11-tqm667fa.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.11-hg46g911.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.11-1yn4135t.mjs +0 -1
- package/dist/chunks/btw-1.1.11-1m97zkn4.mjs +0 -1
- package/dist/chunks/buddy-1.1.11-ymv78npp.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.11-zyrqae8j.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.11-xq2pyhs3.mjs +0 -4
- package/dist/chunks/caches-1.1.11-rx01cbpj.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.11-hcxt0dw3.mjs +0 -1
- package/dist/chunks/claudemd-1.1.11-8xr3pty5.mjs +0 -1
- package/dist/chunks/clear-1.1.11-bj5qfbw4.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.11-5ttzjadf.mjs +0 -1
- package/dist/chunks/cli-1.1.11-00rqxf9s.mjs +0 -2
- package/dist/chunks/cli-1.1.11-0djzxjkz.mjs +0 -2
- package/dist/chunks/cli-1.1.11-0e0p0ywy.mjs +0 -2
- package/dist/chunks/cli-1.1.11-0mhwtkaa.mjs +0 -3
- package/dist/chunks/cli-1.1.11-0vywa3gz.mjs +0 -3
- package/dist/chunks/cli-1.1.11-0x3jb16g.mjs +0 -2
- package/dist/chunks/cli-1.1.11-0zmfx6fs.mjs +0 -2
- package/dist/chunks/cli-1.1.11-1425gpc8.mjs +0 -2
- package/dist/chunks/cli-1.1.11-1515mm11.mjs +0 -21
- package/dist/chunks/cli-1.1.11-178h39tz.mjs +0 -24
- package/dist/chunks/cli-1.1.11-17j0yz1c.mjs +0 -2
- package/dist/chunks/cli-1.1.11-1fkcr5gp.mjs +0 -2
- package/dist/chunks/cli-1.1.11-1he1em03.mjs +0 -2
- package/dist/chunks/cli-1.1.11-1jp85542.mjs +0 -6
- package/dist/chunks/cli-1.1.11-23hz9e80.mjs +0 -59
- package/dist/chunks/cli-1.1.11-2480c28s.mjs +0 -42
- package/dist/chunks/cli-1.1.11-2m78tg8p.mjs +0 -2
- package/dist/chunks/cli-1.1.11-333vj9h0.mjs +0 -6
- package/dist/chunks/cli-1.1.11-3gv2s1c0.mjs +0 -3
- package/dist/chunks/cli-1.1.11-3jw12y1k.mjs +0 -6
- package/dist/chunks/cli-1.1.11-3n6xajnz.mjs +0 -2
- package/dist/chunks/cli-1.1.11-3p62a4zk.mjs +0 -2
- package/dist/chunks/cli-1.1.11-3p6nmjzx.mjs +0 -4
- package/dist/chunks/cli-1.1.11-3re050dw.mjs +0 -2
- package/dist/chunks/cli-1.1.11-3y3ak28a.mjs +0 -2
- package/dist/chunks/cli-1.1.11-47crfax7.mjs +0 -2
- package/dist/chunks/cli-1.1.11-4a192z90.mjs +0 -2
- package/dist/chunks/cli-1.1.11-4a4wbqs3.mjs +0 -2
- package/dist/chunks/cli-1.1.11-4h9jnkae.mjs +0 -2
- package/dist/chunks/cli-1.1.11-4hkr6h2p.mjs +0 -2
- package/dist/chunks/cli-1.1.11-4m87wr6c.mjs +0 -45
- package/dist/chunks/cli-1.1.11-4pqmwv4k.mjs +0 -9
- package/dist/chunks/cli-1.1.11-4x7gdf33.mjs +0 -2
- package/dist/chunks/cli-1.1.11-4yg477hw.mjs +0 -2
- package/dist/chunks/cli-1.1.11-53htvfkn.mjs +0 -2
- package/dist/chunks/cli-1.1.11-54kmn08f.mjs +0 -2
- package/dist/chunks/cli-1.1.11-5716x6c7.mjs +0 -2
- package/dist/chunks/cli-1.1.11-57kjeck2.mjs +0 -2
- package/dist/chunks/cli-1.1.11-58y8zhtr.mjs +0 -26
- package/dist/chunks/cli-1.1.11-5ee40chc.mjs +0 -2
- package/dist/chunks/cli-1.1.11-5evw05k8.mjs +0 -2
- package/dist/chunks/cli-1.1.11-5mcr3f8x.mjs +0 -2
- package/dist/chunks/cli-1.1.11-6ancr21h.mjs +0 -2
- package/dist/chunks/cli-1.1.11-6kk88f11.mjs +0 -4
- package/dist/chunks/cli-1.1.11-6kp3wff0.mjs +0 -3
- package/dist/chunks/cli-1.1.11-6pgzp38k.mjs +0 -2
- package/dist/chunks/cli-1.1.11-6tyfa5hn.mjs +0 -2
- package/dist/chunks/cli-1.1.11-754rwfhh.mjs +0 -2
- package/dist/chunks/cli-1.1.11-7c5dnjyh.mjs +0 -2
- package/dist/chunks/cli-1.1.11-7fqzppxh.mjs +0 -2
- package/dist/chunks/cli-1.1.11-7h7exk8z.mjs +0 -39
- package/dist/chunks/cli-1.1.11-7ns0vhby.mjs +0 -2
- package/dist/chunks/cli-1.1.11-7vtjz4fp.mjs +0 -2
- package/dist/chunks/cli-1.1.11-80jnvwd3.mjs +0 -2
- package/dist/chunks/cli-1.1.11-80y1y33h.mjs +0 -2
- package/dist/chunks/cli-1.1.11-88pynw50.mjs +0 -2
- package/dist/chunks/cli-1.1.11-8j1jeg3y.mjs +0 -2
- package/dist/chunks/cli-1.1.11-8t6wwjcf.mjs +0 -2
- package/dist/chunks/cli-1.1.11-8vmf6185.mjs +0 -2
- package/dist/chunks/cli-1.1.11-99dgyvn6.mjs +0 -5
- package/dist/chunks/cli-1.1.11-9gtaqe5z.mjs +0 -2
- package/dist/chunks/cli-1.1.11-9q076mg1.mjs +0 -2
- package/dist/chunks/cli-1.1.11-9v76e0nn.mjs +0 -3
- package/dist/chunks/cli-1.1.11-9xepp7cw.mjs +0 -2
- package/dist/chunks/cli-1.1.11-9yb6m13t.mjs +0 -2
- package/dist/chunks/cli-1.1.11-a4we9vgp.mjs +0 -2
- package/dist/chunks/cli-1.1.11-ay57kj7t.mjs +0 -2
- package/dist/chunks/cli-1.1.11-aydwe9xx.mjs +0 -8
- package/dist/chunks/cli-1.1.11-azaecepr.mjs +0 -2
- package/dist/chunks/cli-1.1.11-b0bsxy6e.mjs +0 -2
- package/dist/chunks/cli-1.1.11-brfrsyj3.mjs +0 -2
- package/dist/chunks/cli-1.1.11-c2kpn3fs.mjs +0 -2
- package/dist/chunks/cli-1.1.11-c566maxh.mjs +0 -6
- package/dist/chunks/cli-1.1.11-c8yn2sy4.mjs +0 -12
- package/dist/chunks/cli-1.1.11-c9mw7vaf.mjs +0 -2
- package/dist/chunks/cli-1.1.11-ceb5eb1e.mjs +0 -4
- package/dist/chunks/cli-1.1.11-cetgmfd3.mjs +0 -2
- package/dist/chunks/cli-1.1.11-cfd7wcsr.mjs +0 -2
- package/dist/chunks/cli-1.1.11-cj1nzqdk.mjs +0 -6
- package/dist/chunks/cli-1.1.11-ctd6he1r.mjs +0 -2
- package/dist/chunks/cli-1.1.11-cyt97t1g.mjs +0 -2
- package/dist/chunks/cli-1.1.11-d8vrh841.mjs +0 -2
- package/dist/chunks/cli-1.1.11-dcv6a2kq.mjs +0 -2
- package/dist/chunks/cli-1.1.11-dfssr6vt.mjs +0 -2
- package/dist/chunks/cli-1.1.11-dfx7qnxc.mjs +0 -2
- package/dist/chunks/cli-1.1.11-dnp18qxm.mjs +0 -2
- package/dist/chunks/cli-1.1.11-dygnwf66.mjs +0 -2
- package/dist/chunks/cli-1.1.11-dzq0mt2q.mjs +0 -2
- package/dist/chunks/cli-1.1.11-e1nmsb3e.mjs +0 -2
- package/dist/chunks/cli-1.1.11-e5yvpr5d.mjs +0 -133
- package/dist/chunks/cli-1.1.11-e8f5j5pp.mjs +0 -20
- package/dist/chunks/cli-1.1.11-e9h0r9s8.mjs +0 -2
- package/dist/chunks/cli-1.1.11-ecfegt2j.mjs +0 -2
- package/dist/chunks/cli-1.1.11-ef7cg4xt.mjs +0 -2
- package/dist/chunks/cli-1.1.11-en4s7zr1.mjs +0 -2
- package/dist/chunks/cli-1.1.11-epajg619.mjs +0 -2
- package/dist/chunks/cli-1.1.11-erfvptpc.mjs +0 -2
- package/dist/chunks/cli-1.1.11-et6r8n19.mjs +0 -12
- package/dist/chunks/cli-1.1.11-ex37fv7p.mjs +0 -2
- package/dist/chunks/cli-1.1.11-ezt5j484.mjs +0 -7
- package/dist/chunks/cli-1.1.11-fcxz5772.mjs +0 -4
- package/dist/chunks/cli-1.1.11-fmb9eedn.mjs +0 -2
- package/dist/chunks/cli-1.1.11-fmy9jwdc.mjs +0 -3
- package/dist/chunks/cli-1.1.11-g0shs4yx.mjs +0 -17
- package/dist/chunks/cli-1.1.11-g38vgb2g.mjs +0 -2
- package/dist/chunks/cli-1.1.11-g9cesn9x.mjs +0 -2
- package/dist/chunks/cli-1.1.11-gnbty7hn.mjs +0 -9
- package/dist/chunks/cli-1.1.11-gnws5v1r.mjs +0 -15
- package/dist/chunks/cli-1.1.11-gyvneb2n.mjs +0 -2
- package/dist/chunks/cli-1.1.11-hazm6rky.mjs +0 -17
- package/dist/chunks/cli-1.1.11-hbvz2ngt.mjs +0 -2
- package/dist/chunks/cli-1.1.11-j4ym4b26.mjs +0 -2
- package/dist/chunks/cli-1.1.11-jc61pe1h.mjs +0 -15
- package/dist/chunks/cli-1.1.11-jejkqxzx.mjs +0 -2
- package/dist/chunks/cli-1.1.11-js75fbb2.mjs +0 -2
- package/dist/chunks/cli-1.1.11-jt8v99mz.mjs +0 -2
- package/dist/chunks/cli-1.1.11-jvyac5ts.mjs +0 -2
- package/dist/chunks/cli-1.1.11-jzhj2z0q.mjs +0 -4
- package/dist/chunks/cli-1.1.11-jzmj7yys.mjs +0 -18
- package/dist/chunks/cli-1.1.11-k3691mq1.mjs +0 -1
- package/dist/chunks/cli-1.1.11-k7pcdfgm.mjs +0 -2
- package/dist/chunks/cli-1.1.11-k8shpmad.mjs +0 -2
- package/dist/chunks/cli-1.1.11-kj2dg4vg.mjs +0 -2
- package/dist/chunks/cli-1.1.11-kwbasdd3.mjs +0 -2
- package/dist/chunks/cli-1.1.11-m117ak01.mjs +0 -58
- package/dist/chunks/cli-1.1.11-m3mwsg1h.mjs +0 -5
- package/dist/chunks/cli-1.1.11-m4kdt922.mjs +0 -3
- package/dist/chunks/cli-1.1.11-m79xp4zw.mjs +0 -50
- package/dist/chunks/cli-1.1.11-m7dz7jb4.mjs +0 -2
- package/dist/chunks/cli-1.1.11-mjhzsr8x.mjs +0 -2
- package/dist/chunks/cli-1.1.11-mpr8grgt.mjs +0 -6
- package/dist/chunks/cli-1.1.11-n797shcy.mjs +0 -24
- package/dist/chunks/cli-1.1.11-n9eddt48.mjs +0 -133
- package/dist/chunks/cli-1.1.11-na2dfshq.mjs +0 -4
- package/dist/chunks/cli-1.1.11-nbdb2har.mjs +0 -15
- package/dist/chunks/cli-1.1.11-nfcb5zpv.mjs +0 -24
- package/dist/chunks/cli-1.1.11-ng71jh69.mjs +0 -2
- package/dist/chunks/cli-1.1.11-nnxrj2y7.mjs +0 -2
- package/dist/chunks/cli-1.1.11-nqrzeek1.mjs +0 -2
- package/dist/chunks/cli-1.1.11-nsf7da8p.mjs +0 -25
- package/dist/chunks/cli-1.1.11-p0gdcdg7.mjs +0 -2
- package/dist/chunks/cli-1.1.11-p1g4cbqp.mjs +0 -2
- package/dist/chunks/cli-1.1.11-p99a0wsg.mjs +0 -2
- package/dist/chunks/cli-1.1.11-pfnjpp3j.mjs +0 -2
- package/dist/chunks/cli-1.1.11-qd78ng67.mjs +0 -2
- package/dist/chunks/cli-1.1.11-qe68985c.mjs +0 -2
- package/dist/chunks/cli-1.1.11-qxqfwjt2.mjs +0 -12
- package/dist/chunks/cli-1.1.11-qy572ahv.mjs +0 -2
- package/dist/chunks/cli-1.1.11-r6pat8w9.mjs +0 -2
- package/dist/chunks/cli-1.1.11-r6zppx5e.mjs +0 -2
- package/dist/chunks/cli-1.1.11-r737sg77.mjs +0 -2
- package/dist/chunks/cli-1.1.11-re35m5b2.mjs +0 -3
- package/dist/chunks/cli-1.1.11-rm1ytz6k.mjs +0 -2
- package/dist/chunks/cli-1.1.11-s3x93993.mjs +0 -2
- package/dist/chunks/cli-1.1.11-s5fsvj2a.mjs +0 -2
- package/dist/chunks/cli-1.1.11-sby4j4da.mjs +0 -3
- package/dist/chunks/cli-1.1.11-se1r4vmz.mjs +0 -2
- package/dist/chunks/cli-1.1.11-sen20m7k.mjs +0 -2
- package/dist/chunks/cli-1.1.11-smfhs04w.mjs +0 -3
- package/dist/chunks/cli-1.1.11-sph0eaqc.mjs +0 -4
- package/dist/chunks/cli-1.1.11-sptbkfhb.mjs +0 -2
- package/dist/chunks/cli-1.1.11-sxe5a6ht.mjs +0 -2
- package/dist/chunks/cli-1.1.11-sycyfbqa.mjs +0 -2
- package/dist/chunks/cli-1.1.11-t4vzh54z.mjs +0 -2
- package/dist/chunks/cli-1.1.11-t6xvy5kh.mjs +0 -2
- package/dist/chunks/cli-1.1.11-t95hn521.mjs +0 -2
- package/dist/chunks/cli-1.1.11-tg2x8my7.mjs +0 -4
- package/dist/chunks/cli-1.1.11-th7d92cz.mjs +0 -2
- package/dist/chunks/cli-1.1.11-tqtf5qtz.mjs +0 -2
- package/dist/chunks/cli-1.1.11-ty1grp21.mjs +0 -2
- package/dist/chunks/cli-1.1.11-tzw8k1nw.mjs +0 -2
- package/dist/chunks/cli-1.1.11-v0qc9e7x.mjs +0 -2
- package/dist/chunks/cli-1.1.11-v9gb0h1v.mjs +0 -2
- package/dist/chunks/cli-1.1.11-vaqp2v88.mjs +0 -3
- package/dist/chunks/cli-1.1.11-vcbj9ns4.mjs +0 -2
- package/dist/chunks/cli-1.1.11-vdh094gb.mjs +0 -2
- package/dist/chunks/cli-1.1.11-vkw5s1rv.mjs +0 -4
- package/dist/chunks/cli-1.1.11-vqcm2p2k.mjs +0 -3
- package/dist/chunks/cli-1.1.11-vtj7f6xe.mjs +0 -34
- package/dist/chunks/cli-1.1.11-w50fh65p.mjs +0 -2
- package/dist/chunks/cli-1.1.11-wf1jrvag.mjs +0 -2
- package/dist/chunks/cli-1.1.11-wjhta14d.mjs +0 -3
- package/dist/chunks/cli-1.1.11-wkmpy3a6.mjs +0 -2
- package/dist/chunks/cli-1.1.11-wrvqk2kb.mjs +0 -2
- package/dist/chunks/cli-1.1.11-ws3mhebq.mjs +0 -2
- package/dist/chunks/cli-1.1.11-wsr8n6yx.mjs +0 -2
- package/dist/chunks/cli-1.1.11-ww3qs66m.mjs +0 -2
- package/dist/chunks/cli-1.1.11-wzd4xr4g.mjs +0 -2
- package/dist/chunks/cli-1.1.11-x1cwe9h2.mjs +0 -2
- package/dist/chunks/cli-1.1.11-x2px8b33.mjs +0 -4
- package/dist/chunks/cli-1.1.11-x3d1641w.mjs +0 -66
- package/dist/chunks/cli-1.1.11-x4yq8238.mjs +0 -2
- package/dist/chunks/cli-1.1.11-xa1ktjvc.mjs +0 -18
- package/dist/chunks/cli-1.1.11-xdf6ka1p.mjs +0 -3
- package/dist/chunks/cli-1.1.11-xjejq6gc.mjs +0 -2
- package/dist/chunks/cli-1.1.11-xmp31p4m.mjs +0 -2
- package/dist/chunks/cli-1.1.11-xw1gtf4q.mjs +0 -2
- package/dist/chunks/cli-1.1.11-y8jb9ka1.mjs +0 -5382
- package/dist/chunks/cli-1.1.11-ybqaxmsq.mjs +0 -2
- package/dist/chunks/cli-1.1.11-ygstc2fh.mjs +0 -2
- package/dist/chunks/cli-1.1.11-ys88pb52.mjs +0 -2
- package/dist/chunks/cli-1.1.11-ys8qbdxp.mjs +0 -4
- package/dist/chunks/cli-1.1.11-ytd49283.mjs +0 -16
- package/dist/chunks/cli-1.1.11-yv8jze8x.mjs +0 -3
- package/dist/chunks/cli-1.1.11-yx7hmc5y.mjs +0 -24
- package/dist/chunks/cli-1.1.11-yz3byxtx.mjs +0 -202
- package/dist/chunks/cli-1.1.11-z02dbt8v.mjs +0 -25
- package/dist/chunks/cli-1.1.11-z08c87k7.mjs +0 -2
- package/dist/chunks/cli-1.1.11-zmkfqsfj.mjs +0 -2
- package/dist/chunks/cli-1.1.11-zz43hz3c.mjs +0 -2
- package/dist/chunks/client-1.1.11-4fds5q8p.mjs +0 -1
- package/dist/chunks/color-1.1.11-1pjrfnnd.mjs +0 -1
- package/dist/chunks/compact-1.1.11-qvdk635a.mjs +0 -3
- package/dist/chunks/config-1.1.11-3yh6sp7r.mjs +0 -1
- package/dist/chunks/config-1.1.11-qs94ayha.mjs +0 -1
- package/dist/chunks/constants-1.1.11-6f5wtx0e.mjs +0 -1
- package/dist/chunks/context-1.1.11-v76cyrq1.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.11-59s91h4x.mjs +0 -1
- package/dist/chunks/conversation-1.1.11-ve2rcdbk.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.11-awc75paz.mjs +0 -1
- package/dist/chunks/copy-1.1.11-t2yhcnhs.mjs +0 -9
- package/dist/chunks/cost-1.1.11-3qfqxkmj.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.11-d1a5c6qx.mjs +0 -1
- package/dist/chunks/createSession-1.1.11-tepvp40s.mjs +0 -1
- package/dist/chunks/debug-1.1.11-2tghvx1n.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.11-35s0feaf.mjs +0 -1526
- package/dist/chunks/desktop-1.1.11-hwbpq9hq.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.11-1p7kjee0.mjs +0 -1
- package/dist/chunks/detection-1.1.11-96xrmjq1.mjs +0 -1
- package/dist/chunks/diff-1.1.11-13e093sy.mjs +0 -1
- package/dist/chunks/doctor-1.1.11-r1xwax5q.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.11-05h9mhbd.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.11-14kzyy0e.mjs +0 -1
- package/dist/chunks/effort-1.1.11-9avhwp0f.mjs +0 -13
- package/dist/chunks/engine-1.1.11-j24ha45k.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.11-3xh8n4ys.mjs +0 -1
- package/dist/chunks/envUtils-1.1.11-ef7e3q7c.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.11-hxdx739y.mjs +0 -1
- package/dist/chunks/environments-1.1.11-356znhvc.mjs +0 -1
- package/dist/chunks/errors-1.1.11-ev387w5m.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.11-pejs7gw9.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.11-4s6hv328.mjs +0 -1
- package/dist/chunks/exit-1.1.11-v9psfac6.mjs +0 -1
- package/dist/chunks/explorer-1.1.11-e3f0wt2q.mjs +0 -1
- package/dist/chunks/export-1.1.11-3jan1p2n.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.11-3zfk19wt.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.11-ye9dcmbd.mjs +0 -1
- package/dist/chunks/fast-1.1.11-q42apmz5.mjs +0 -1
- package/dist/chunks/feedback-1.1.11-dtj0sby7.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.11-jy7cazzp.mjs +0 -1
- package/dist/chunks/git-1.1.11-x9yx65c5.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.11-bqkgby97.mjs +0 -1
- package/dist/chunks/goal-1.1.11-q2hpatj3.mjs +0 -4
- package/dist/chunks/grove-1.1.11-qxybpwre.mjs +0 -1
- package/dist/chunks/growthbook-1.1.11-3vnmw48g.mjs +0 -1
- package/dist/chunks/headless-1.1.11-w0ppk4vt.mjs +0 -2
- package/dist/chunks/heapdump-1.1.11-vh3qr7jg.mjs +0 -6
- package/dist/chunks/help-1.1.11-p384dp1z.mjs +0 -1
- package/dist/chunks/hookChains-1.1.11-088ye0xc.mjs +0 -3
- package/dist/chunks/hooks-1.1.11-4kkgc487.mjs +0 -79
- package/dist/chunks/hooks-1.1.11-a7p1se3t.mjs +0 -1
- package/dist/chunks/ide-1.1.11-n0zzy5nx.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.11-5xcxbnxj.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.11-y9exjc82.mjs +0 -1
- package/dist/chunks/index-1.1.11-03mzh565.mjs +0 -1
- package/dist/chunks/index-1.1.11-2yms0cys.mjs +0 -1
- package/dist/chunks/index-1.1.11-40px18hy.mjs +0 -2
- package/dist/chunks/index-1.1.11-4nqea2zz.mjs +0 -1
- package/dist/chunks/index-1.1.11-5gttv5kf.mjs +0 -1
- package/dist/chunks/index-1.1.11-68ffeh9a.mjs +0 -1
- package/dist/chunks/index-1.1.11-804qa6by.mjs +0 -1
- package/dist/chunks/index-1.1.11-9pwqbn5r.mjs +0 -1
- package/dist/chunks/index-1.1.11-a3y2aekg.mjs +0 -1
- package/dist/chunks/index-1.1.11-a6z5v5rh.mjs +0 -1
- package/dist/chunks/index-1.1.11-drr89zt1.mjs +0 -1
- package/dist/chunks/index-1.1.11-es7vjyrm.mjs +0 -1
- package/dist/chunks/index-1.1.11-fb4zcaqa.mjs +0 -9
- package/dist/chunks/index-1.1.11-fe66h6cm.mjs +0 -9
- package/dist/chunks/index-1.1.11-fmj2fbg0.mjs +0 -1
- package/dist/chunks/index-1.1.11-ft8kdz1m.mjs +0 -30
- package/dist/chunks/index-1.1.11-g7s48r9e.mjs +0 -1
- package/dist/chunks/index-1.1.11-jg3wztnh.mjs +0 -1
- package/dist/chunks/index-1.1.11-k7y5wmy4.mjs +0 -1
- package/dist/chunks/index-1.1.11-qykdv19z.mjs +0 -2
- package/dist/chunks/index-1.1.11-v4wf2vaf.mjs +0 -23
- package/dist/chunks/index-1.1.11-v83fr53d.mjs +0 -5
- package/dist/chunks/index-1.1.11-wtdppc5t.mjs +0 -1
- package/dist/chunks/init-1.1.11-hmef4hjd.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.11-pwmx5fqy.mjs +0 -1
- package/dist/chunks/ink-1.1.11-jw026dnf.mjs +0 -1
- package/dist/chunks/insights-1.1.11-6dzm6fbk.mjs +0 -870
- package/dist/chunks/install-1.1.11-pmvq4tzr.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.11-6yraca1d.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.11-f7kv64nn.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.11-5vjxebja.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.11-7pncqt0h.mjs +0 -1
- package/dist/chunks/keybindings-1.1.11-t04nc417.mjs +0 -2
- package/dist/chunks/knowledge-1.1.11-14y01py7.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.11-0y248exe.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.11-281da8yy.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.11-smwnwfy1.mjs +0 -1
- package/dist/chunks/log-1.1.11-bg8ah9ag.mjs +0 -1
- package/dist/chunks/main-1.1.11-6myv71xs.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.11-g7a35vm9.mjs +0 -1
- package/dist/chunks/mcp-1.1.11-4pdz9q1w.mjs +0 -17
- package/dist/chunks/mcp-1.1.11-63cbatj7.mjs +0 -1
- package/dist/chunks/mcp-1.1.11-jr7ccm2q.mjs +0 -4
- package/dist/chunks/mcpb-1.1.11-w2vyza13.mjs +0 -1
- package/dist/chunks/memory-1.1.11-hfwa4d07.mjs +0 -72
- package/dist/chunks/model-1.1.11-m73f7dnk.mjs +0 -1
- package/dist/chunks/model-1.1.11-s35tcbyz.mjs +0 -2
- package/dist/chunks/node-1.1.11-h3t9a7m9.mjs +0 -12
- package/dist/chunks/oauth-1.1.11-z19rt783.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.11-hw1h9m6b.mjs +0 -14
- package/dist/chunks/output-style-1.1.11-9wars2zm.mjs +0 -1
- package/dist/chunks/package-L37ZVTF4-1.1.11-xdrqg8t2.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.11-1xctyq5g.mjs +0 -1
- package/dist/chunks/parser-1.1.11-hdctc99h.mjs +0 -1
- package/dist/chunks/passes-1.1.11-cyfzrm0v.mjs +0 -1
- package/dist/chunks/permissions-1.1.11-gmeavwga.mjs +0 -1
- package/dist/chunks/permissions-1.1.11-k82nchw7.mjs +0 -3
- package/dist/chunks/plan-1.1.11-113qc4m4.mjs +0 -1
- package/dist/chunks/plist-1.1.11-tn2gma22.mjs +0 -1
- package/dist/chunks/plugin-1.1.11-v8jsy700.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.11-ak2j3gqk.mjs +0 -1
- package/dist/chunks/plugins-1.1.11-ne541702.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.11-trzavag7.mjs +0 -2
- package/dist/chunks/print-1.1.11-438pp8v9.mjs +0 -57
- package/dist/chunks/privacy-settings-1.1.11-mn1z3vsm.mjs +0 -1
- package/dist/chunks/process-1.1.11-eyv3rsh3.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.11-mmp13p2q.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.11-0q3vxz7d.mjs +0 -9
- package/dist/chunks/prompt-1.1.11-r4p751ar.mjs +0 -1
- package/dist/chunks/prompt-1.1.11-yrfr0vn1.mjs +0 -1
- package/dist/chunks/prompts-1.1.11-qxywq1b7.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.11-h9k096sf.mjs +0 -13
- package/dist/chunks/provider-1.1.11-xwrj8dzx.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.11-dwy6je4r.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.11-5x71hcx3.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.11-cex3vev6.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.11-pa8cx5ka.mjs +0 -34
- package/dist/chunks/registry-1.1.11-3s5s5x2w.mjs +0 -1
- package/dist/chunks/release-notes-1.1.11-dcephgep.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.11-06znv97n.mjs +0 -2
- package/dist/chunks/remote-env-1.1.11-ycaxf826.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.11-3f2qdc67.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.11-yr9z4qxr.mjs +0 -1
- package/dist/chunks/rename-1.1.11-cjn09qj8.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.11-ym5wskq3.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.11-b5w7tmfr.mjs +0 -1
- package/dist/chunks/resume-1.1.11-nth616a4.mjs +0 -2
- package/dist/chunks/rewind-1.1.11-57ydss59.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.11-j9g626rf.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.11-pj37xkbn.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.11-ke832djs.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.11-fybgyn3j.mjs +0 -1
- package/dist/chunks/session-1.1.11-85hpfa2y.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.11-wkjk4q5q.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.11-9rq4xh7v.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.11-bmy7c4ce.mjs +0 -1
- package/dist/chunks/settings-1.1.11-x92a7782.mjs +0 -1
- package/dist/chunks/setup-1.1.11-ft54z574.mjs +0 -5
- package/dist/chunks/sinks-1.1.11-qj6hh6fq.mjs +0 -1
- package/dist/chunks/skills-1.1.11-yb1h8f1p.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.11-aymsv2q9.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.11-q539pk5f.mjs +0 -1
- package/dist/chunks/state-1.1.11-z5q89e5v.mjs +0 -1
- package/dist/chunks/stats-1.1.11-5tdk8rvw.mjs +0 -6
- package/dist/chunks/status-1.1.11-xnqp4j47.mjs +0 -1
- package/dist/chunks/stickers-1.1.11-qj2z8gxy.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.11-p65stpt5.mjs +0 -1
- package/dist/chunks/tasks-1.1.11-wxw0xx0j.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.11-60crs4z7.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.11-s3btrevg.mjs +0 -1
- package/dist/chunks/teleport-1.1.11-0xf6aa7g.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.11-pfz13me0.mjs +0 -1
- package/dist/chunks/theme-1.1.11-2p323zvq.mjs +0 -1
- package/dist/chunks/thinkback-1.1.11-s0m1n5ww.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.11-2sq4jkjt.mjs +0 -1
- package/dist/chunks/toolPool-1.1.11-je8wzeg0.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.11-w74d8xmb.mjs +0 -1
- package/dist/chunks/tools-1.1.11-y36gvdes.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.11-x8dc07e5.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.11-sr4p4fht.mjs +0 -69
- package/dist/chunks/types-1.1.11-hmv5s58r.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.11-k569tjhq.mjs +0 -4
- package/dist/chunks/update-1.1.11-p39vapmz.mjs +0 -72
- package/dist/chunks/upgrade-1.1.11-tbgxp1ct.mjs +0 -1
- package/dist/chunks/upload-1.1.11-2ww1n0bh.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.11-1y1aettm.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.11-6g43s7vc.mjs +0 -1
- package/dist/chunks/usage-1.1.11-q123k500.mjs +0 -1
- package/dist/chunks/util-1.1.11-vtdjcaqr.mjs +0 -1
- package/dist/chunks/utils-1.1.11-tratqgvk.mjs +0 -1
- package/dist/chunks/vim-1.1.11-07nhad2c.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.11-w662caa3.mjs +0 -13
- package/dist/chunks/watcher-1.1.11-jjk2rcc6.mjs +0 -1
- package/dist/chunks/wiki-1.1.11-kdevp06r.mjs +0 -132
- package/dist/chunks/workflows-1.1.11-s711sqq1.mjs +0 -1
- package/dist/chunks/worktree-1.1.11-y6c7aw7x.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.11-afx643vn.mjs +0 -1
- package/dist/chunks/wrapper-1.1.11-yx4yqang.mjs +0 -7
- /package/dist/chunks/{cli-1.1.11-qx2jtemb.mjs → cli-1.1.13-8812dqjq.mjs} +0 -0
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{$sa as M,Ysa as T,_sa as J5}from"./cli-1.1.11-s5fsvj2a.mjs";var T0=T((G5,K1)=>{K1.exports=function(){return typeof Promise==="function"&&Promise.prototype&&Promise.prototype.then}});var y=T((O2)=>{var X0,E2=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];O2.getSymbolSize=function(q){if(!q)throw Error('"version" cannot be null or undefined');if(q<1||q>40)throw Error('"version" should be in range from 1 to 40');return q*4+17};O2.getSymbolTotalCodewords=function(q){return E2[q]};O2.getBCHDigit=function($){let q=0;while($!==0)q++,$>>>=1;return q};O2.setToSJISFunction=function(q){if(typeof q!=="function")throw Error('"toSJISFunc" is not a valid function.');X0=q};O2.isKanjiModeEnabled=function(){return typeof X0<"u"};O2.toSJIS=function(q){return X0(q)}});var J0=T((M2)=>{M2.L={bit:1};M2.M={bit:0};M2.Q={bit:3};M2.H={bit:2};function W2($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"l":case"low":return M2.L;case"m":case"medium":return M2.M;case"q":case"quartile":return M2.Q;case"h":case"high":return M2.H;default:throw Error("Unknown EC Level: "+$)}}M2.isValid=function(q){return q&&typeof q.bit<"u"&&q.bit>=0&&q.bit<4};M2.from=function(q,Z){if(M2.isValid(q))return q;try{return W2(q)}catch(J){return Z}}});var X1=T((N5,T1)=>{function O1(){this.buffer=[],this.length=0}O1.prototype={get:function($){let q=Math.floor($/8);return(this.buffer[q]>>>7-$%8&1)===1},put:function($,q){for(let Z=0;Z<q;Z++)this.putBit(($>>>q-Z-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function($){let q=Math.floor(this.length/8);if(this.buffer.length<=q)this.buffer.push(0);if($)this.buffer[q]|=128>>>this.length%8;this.length++}};T1.exports=O1});var V1=T((W5,G1)=>{function s($){if(!$||$<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=$,this.data=new Uint8Array($*$),this.reservedBit=new Uint8Array($*$)}s.prototype.set=function($,q,Z,J){let Q=$*this.size+q;if(this.data[Q]=Z,J)this.reservedBit[Q]=!0};s.prototype.get=function($,q){return this.data[$*this.size+q]};s.prototype.xor=function($,q,Z){this.data[$*this.size+q]^=Z};s.prototype.isReserved=function($,q){return this.reservedBit[$*this.size+q]};G1.exports=s});var N1=T((B2)=>{var _2=y().getSymbolSize;B2.getRowColCoords=function(q){if(q===1)return[];let Z=Math.floor(q/7)+2,J=_2(q),Q=J===145?26:Math.ceil((J-13)/(2*Z-2))*2,F=[J-7];for(let K=1;K<Z-1;K++)F[K]=F[K-1]-Q;return F.push(6),F.reverse()};B2.getPositions=function(q){let Z=[],J=B2.getRowColCoords(q),Q=J.length;for(let F=0;F<Q;F++)for(let K=0;K<Q;K++){if(F===0&&K===0||F===0&&K===Q-1||F===Q-1&&K===0)continue;Z.push([J[F],J[K]])}return Z}});var W1=T((z2)=>{var L2=y().getSymbolSize;z2.getPositions=function(q){let Z=L2(q);return[[0,0],[Z-7,0],[0,Z-7]]}});var L1=T((w2)=>{w2.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var v={N1:3,N2:3,N3:40,N4:10};w2.isValid=function(q){return q!=null&&q!==""&&!isNaN(q)&&q>=0&&q<=7};w2.from=function(q){return w2.isValid(q)?parseInt(q,10):void 0};w2.getPenaltyN1=function(q){let Z=q.size,J=0,Q=0,F=0,K=null,U=null;for(let R=0;R<Z;R++){Q=F=0,K=U=null;for(let H=0;H<Z;H++){let Y=q.get(R,H);if(Y===K)Q++;else{if(Q>=5)J+=v.N1+(Q-5);K=Y,Q=1}if(Y=q.get(H,R),Y===U)F++;else{if(F>=5)J+=v.N1+(F-5);U=Y,F=1}}if(Q>=5)J+=v.N1+(Q-5);if(F>=5)J+=v.N1+(F-5)}return J};w2.getPenaltyN2=function(q){let Z=q.size,J=0;for(let Q=0;Q<Z-1;Q++)for(let F=0;F<Z-1;F++){let K=q.get(Q,F)+q.get(Q,F+1)+q.get(Q+1,F)+q.get(Q+1,F+1);if(K===4||K===0)J++}return J*v.N2};w2.getPenaltyN3=function(q){let Z=q.size,J=0,Q=0,F=0;for(let K=0;K<Z;K++){Q=F=0;for(let U=0;U<Z;U++){if(Q=Q<<1&2047|q.get(K,U),U>=10&&(Q===1488||Q===93))J++;if(F=F<<1&2047|q.get(U,K),U>=10&&(F===1488||F===93))J++}}return J*v.N3};w2.getPenaltyN4=function(q){let Z=0,J=q.data.length;for(let F=0;F<J;F++)Z+=q.data[F];return Math.abs(Math.ceil(Z*100/J/5)-10)*v.N4};function S2($,q,Z){switch($){case w2.Patterns.PATTERN000:return(q+Z)%2===0;case w2.Patterns.PATTERN001:return q%2===0;case w2.Patterns.PATTERN010:return Z%3===0;case w2.Patterns.PATTERN011:return(q+Z)%3===0;case w2.Patterns.PATTERN100:return(Math.floor(q/2)+Math.floor(Z/3))%2===0;case w2.Patterns.PATTERN101:return q*Z%2+q*Z%3===0;case w2.Patterns.PATTERN110:return(q*Z%2+q*Z%3)%2===0;case w2.Patterns.PATTERN111:return(q*Z%3+(q+Z)%2)%2===0;default:throw Error("bad maskPattern:"+$)}}w2.applyMask=function(q,Z){let J=Z.size;for(let Q=0;Q<J;Q++)for(let F=0;F<J;F++){if(Z.isReserved(F,Q))continue;Z.xor(F,Q,S2(q,F,Q))}};w2.getBestMask=function(q,Z){let J=Object.keys(w2.Patterns).length,Q=0,F=1/0;for(let K=0;K<J;K++){Z(K),w2.applyMask(K,q);let U=w2.getPenaltyN1(q)+w2.getPenaltyN2(q)+w2.getPenaltyN3(q)+w2.getPenaltyN4(q);if(w2.applyMask(K,q),U<F)F=U,Q=K}return Q}});var V0=T((y2)=>{var g=J0(),Q0=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],F0=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];y2.getBlocksCount=function(q,Z){switch(Z){case g.L:return Q0[(q-1)*4+0];case g.M:return Q0[(q-1)*4+1];case g.Q:return Q0[(q-1)*4+2];case g.H:return Q0[(q-1)*4+3];default:return}};y2.getTotalCodewordsCount=function(q,Z){switch(Z){case g.L:return F0[(q-1)*4+0];case g.M:return F0[(q-1)*4+1];case g.Q:return F0[(q-1)*4+2];case g.H:return F0[(q-1)*4+3];default:return}}});var z1=T((D2)=>{var o=new Uint8Array(512),K0=new Uint8Array(256);(function(){let q=1;for(let Z=0;Z<255;Z++)if(o[Z]=q,K0[q]=Z,q<<=1,q&256)q^=285;for(let Z=255;Z<512;Z++)o[Z]=o[Z-255]})();D2.log=function(q){if(q<1)throw Error("log("+q+")");return K0[q]};D2.exp=function(q){return o[q]};D2.mul=function(q,Z){if(q===0||Z===0)return 0;return o[K0[q]+K0[Z]]}});var S1=T((c2)=>{var A0=z1();c2.mul=function(q,Z){let J=new Uint8Array(q.length+Z.length-1);for(let Q=0;Q<q.length;Q++)for(let F=0;F<Z.length;F++)J[Q+F]^=A0.mul(q[Q],Z[F]);return J};c2.mod=function(q,Z){let J=new Uint8Array(q);while(J.length-Z.length>=0){let Q=J[0];for(let K=0;K<Z.length;K++)J[K]^=A0.mul(Z[K],Q);let F=0;while(F<J.length&&J[F]===0)F++;J=J.slice(F)}return J};c2.generateECPolynomial=function(q){let Z=new Uint8Array([1]);for(let J=0;J<q;J++)Z=c2.mul(Z,new Uint8Array([1,A0.exp(J)]));return Z}});var C1=T((z5,f1)=>{var w1=S1();function N0($){if(this.genPoly=void 0,this.degree=$,this.degree)this.initialize(this.degree)}N0.prototype.initialize=function(q){this.degree=q,this.genPoly=w1.generateECPolynomial(this.degree)};N0.prototype.encode=function(q){if(!this.genPoly)throw Error("Encoder not initialized");let Z=new Uint8Array(q.length+this.degree);Z.set(q);let J=w1.mod(Z,this.genPoly),Q=this.degree-J.length;if(Q>0){let F=new Uint8Array(this.degree);return F.set(J,Q),F}return J};f1.exports=N0});var W0=T((x2)=>{x2.isValid=function(q){return!isNaN(q)&&q>=1&&q<=40}});var M0=T((i2)=>{var t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");var n2="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r
|
|
2
|
-
]))+`;i2.KANJI=new RegExp(t,"g");i2.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");i2.BYTE=new RegExp(n2,"g");i2.NUMERIC=new RegExp("[0-9]+","g");i2.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var p2=new RegExp("^"+t+"$"),d2=new RegExp("^[0-9]+$"),r2=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");i2.testKanji=function(q){return p2.test(q)};i2.testNumeric=function(q){return d2.test(q)};i2.testAlphanumeric=function(q){return r2.test(q)}});var u=T((F6)=>{var J6=W0(),j0=M0();F6.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};F6.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};F6.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};F6.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};F6.MIXED={bit:-1};F6.getCharCountIndicator=function(q,Z){if(!q.ccBits)throw Error("Invalid mode: "+q);if(!J6.isValid(Z))throw Error("Invalid version: "+Z);if(Z>=1&&Z<10)return q.ccBits[0];else if(Z<27)return q.ccBits[1];return q.ccBits[2]};F6.getBestModeForData=function(q){if(j0.testNumeric(q))return F6.NUMERIC;else if(j0.testAlphanumeric(q))return F6.ALPHANUMERIC;else if(j0.testKanji(q))return F6.KANJI;else return F6.BYTE};F6.toString=function(q){if(q&&q.id)return q.id;throw Error("Invalid mode")};F6.isValid=function(q){return q&&q.bit&&q.ccBits};function Q6($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"numeric":return F6.NUMERIC;case"alphanumeric":return F6.ALPHANUMERIC;case"kanji":return F6.KANJI;case"byte":return F6.BYTE;default:throw Error("Unknown mode: "+$)}}F6.from=function(q,Z){if(F6.isValid(q))return q;try{return Q6(q)}catch(J){return Z}}});var P1=T((G6)=>{var U0=y(),E6=V0(),g1=J0(),D=u(),z0=W0(),u1=U0.getBCHDigit(7973);function O6($,q,Z){for(let J=1;J<=40;J++)if(q<=G6.getCapacity(J,Z,$))return J;return}function D1($,q){return D.getCharCountIndicator($,q)+4}function T6($,q){let Z=0;return $.forEach(function(J){let Q=D1(J.mode,q);Z+=Q+J.getBitsLength()}),Z}function X6($,q){for(let Z=1;Z<=40;Z++)if(T6($,Z)<=G6.getCapacity(Z,q,D.MIXED))return Z;return}G6.from=function(q,Z){if(z0.isValid(q))return parseInt(q,10);return Z};G6.getCapacity=function(q,Z,J){if(!z0.isValid(q))throw Error("Invalid QR Code version");if(typeof J>"u")J=D.BYTE;let Q=U0.getSymbolTotalCodewords(q),F=E6.getTotalCodewordsCount(q,Z),K=(Q-F)*8;if(J===D.MIXED)return K;let U=K-D1(J,q);switch(J){case D.NUMERIC:return Math.floor(U/10*3);case D.ALPHANUMERIC:return Math.floor(U/11*2);case D.KANJI:return Math.floor(U/13);case D.BYTE:default:return Math.floor(U/8)}};G6.getBestVersionForData=function(q,Z){let J,Q=g1.from(Z,g1.M);if(Array.isArray(q)){if(q.length>1)return X6(q,Q);if(q.length===0)return 1;J=q[0]}else J=q;return O6(J.mode,J.getLength(),Q)};G6.getEncodedBits=function(q){if(!z0.isValid(q)||q<7)throw Error("Invalid QR Code version");let Z=q<<12;while(U0.getBCHDigit(Z)-u1>=0)Z^=7973<<U0.getBCHDigit(Z)-u1;return q<<12|Z}});var c1=T((W6)=>{var k0=y(),v1=k0.getBCHDigit(1335);W6.getEncodedBits=function(q,Z){let J=q.bit<<3|Z,Q=J<<10;while(k0.getBCHDigit(Q)-v1>=0)Q^=1335<<k0.getBCHDigit(Q)-v1;return(J<<10|Q)^21522}});var m1=T((y5,b1)=>{var j6=u();function m($){this.mode=j6.NUMERIC,this.data=$.toString()}m.getBitsLength=function(q){return 10*Math.floor(q/3)+(q%3?q%3*3+1:0)};m.prototype.getLength=function(){return this.data.length};m.prototype.getBitsLength=function(){return m.getBitsLength(this.data.length)};m.prototype.write=function(q){let Z,J,Q;for(Z=0;Z+3<=this.data.length;Z+=3)J=this.data.substr(Z,3),Q=parseInt(J,10),q.put(Q,10);let F=this.data.length-Z;if(F>0)J=this.data.substr(Z),Q=parseInt(J,10),q.put(Q,F*3+1)};b1.exports=m});var l1=T((g5,x1)=>{var _6=u(),S0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function x($){this.mode=_6.ALPHANUMERIC,this.data=$}x.getBitsLength=function(q){return 11*Math.floor(q/2)+6*(q%2)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(q){let Z;for(Z=0;Z+2<=this.data.length;Z+=2){let J=S0.indexOf(this.data[Z])*45;J+=S0.indexOf(this.data[Z+1]),q.put(J,11)}if(this.data.length%2)q.put(S0.indexOf(this.data[Z]),6)};x1.exports=x});var p1=T((u5,n1)=>{var B6=u();function l($){if(this.mode=B6.BYTE,typeof $==="string")this.data=new TextEncoder().encode($);else this.data=new Uint8Array($)}l.getBitsLength=function(q){return q*8};l.prototype.getLength=function(){return this.data.length};l.prototype.getBitsLength=function(){return l.getBitsLength(this.data.length)};l.prototype.write=function($){for(let q=0,Z=this.data.length;q<Z;q++)$.put(this.data[q],8)};n1.exports=l});var r1=T((D5,d1)=>{var I6=u(),L6=y();function n($){this.mode=I6.KANJI,this.data=$}n.getBitsLength=function(q){return q*13};n.prototype.getLength=function(){return this.data.length};n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)};n.prototype.write=function($){let q;for(q=0;q<this.data.length;q++){let Z=L6.toSJIS(this.data[q]);if(Z>=33088&&Z<=40956)Z-=33088;else if(Z>=57408&&Z<=60351)Z-=49472;else throw Error("Invalid SJIS character: "+this.data[q]+`
|
|
3
|
-
Make sure your charset is UTF-8`);Z=(Z>>>8&255)*192+(Z&255),$.put(Z,13)}};d1.exports=n});var i1=T((h5,w0)=>{var e={single_source_shortest_paths:function($,q,Z){var J={},Q={};Q[q]=0;var F=e.PriorityQueue.make();F.push(q,0);var K,U,R,H,Y,E,O,X,G;while(!F.empty()){K=F.pop(),U=K.value,H=K.cost,Y=$[U]||{};for(R in Y)if(Y.hasOwnProperty(R)){if(E=Y[R],O=H+E,X=Q[R],G=typeof Q[R]>"u",G||X>O)Q[R]=O,F.push(R,O),J[R]=U}}if(typeof Z<"u"&&typeof Q[Z]>"u"){var A=["Could not find a path from ",q," to ",Z,"."].join("");throw Error(A)}return J},extract_shortest_path_from_predecessor_list:function($,q){var Z=[],J=q,Q;while(J)Z.push(J),Q=$[J],J=$[J];return Z.reverse(),Z},find_path:function($,q,Z){var J=e.single_source_shortest_paths($,q,Z);return e.extract_shortest_path_from_predecessor_list(J,Z)},PriorityQueue:{make:function($){var q=e.PriorityQueue,Z={},J;$=$||{};for(J in q)if(q.hasOwnProperty(J))Z[J]=q[J];return Z.queue=[],Z.sorter=$.sorter||q.default_sorter,Z},default_sorter:function($,q){return $.cost-q.cost},push:function($,q){var Z={value:$,cost:q};this.queue.push(Z),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};if(typeof w0<"u")w0.exports=e});var Z7=T((f6)=>{var N=u(),t1=m1(),e1=l1(),a1=p1(),q7=r1(),a=M0(),R0=y(),z6=i1();function s1($){return unescape(encodeURIComponent($)).length}function q0($,q,Z){let J=[],Q;while((Q=$.exec(Z))!==null)J.push({data:Q[0],index:Q.index,mode:q,length:Q[0].length});return J}function $7($){let q=q0(a.NUMERIC,N.NUMERIC,$),Z=q0(a.ALPHANUMERIC,N.ALPHANUMERIC,$),J,Q;if(R0.isKanjiModeEnabled())J=q0(a.BYTE,N.BYTE,$),Q=q0(a.KANJI,N.KANJI,$);else J=q0(a.BYTE_KANJI,N.BYTE,$),Q=[];return q.concat(Z,J,Q).sort(function(K,U){return K.index-U.index}).map(function(K){return{data:K.data,mode:K.mode,length:K.length}})}function f0($,q){switch(q){case N.NUMERIC:return t1.getBitsLength($);case N.ALPHANUMERIC:return e1.getBitsLength($);case N.KANJI:return q7.getBitsLength($);case N.BYTE:return a1.getBitsLength($)}}function k6($){return $.reduce(function(q,Z){let J=q.length-1>=0?q[q.length-1]:null;if(J&&J.mode===Z.mode)return q[q.length-1].data+=Z.data,q;return q.push(Z),q},[])}function S6($){let q=[];for(let Z=0;Z<$.length;Z++){let J=$[Z];switch(J.mode){case N.NUMERIC:q.push([J,{data:J.data,mode:N.ALPHANUMERIC,length:J.length},{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.ALPHANUMERIC:q.push([J,{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.KANJI:q.push([J,{data:J.data,mode:N.BYTE,length:s1(J.data)}]);break;case N.BYTE:q.push([{data:J.data,mode:N.BYTE,length:s1(J.data)}])}}return q}function w6($,q){let Z={},J={start:{}},Q=["start"];for(let F=0;F<$.length;F++){let K=$[F],U=[];for(let R=0;R<K.length;R++){let H=K[R],Y=""+F+R;U.push(Y),Z[Y]={node:H,lastCount:0},J[Y]={};for(let E=0;E<Q.length;E++){let O=Q[E];if(Z[O]&&Z[O].node.mode===H.mode)J[O][Y]=f0(Z[O].lastCount+H.length,H.mode)-f0(Z[O].lastCount,H.mode),Z[O].lastCount+=H.length;else{if(Z[O])Z[O].lastCount=H.length;J[O][Y]=f0(H.length,H.mode)+4+N.getCharCountIndicator(H.mode,q)}}}Q=U}for(let F=0;F<Q.length;F++)J[Q[F]].end=0;return{map:J,table:Z}}function o1($,q){let Z,J=N.getBestModeForData($);if(Z=N.from(q,J),Z!==N.BYTE&&Z.bit<J.bit)throw Error('"'+$+'" cannot be encoded with mode '+N.toString(Z)+`.
|
|
4
|
-
Suggested mode is: `+N.toString(J));if(Z===N.KANJI&&!R0.isKanjiModeEnabled())Z=N.BYTE;switch(Z){case N.NUMERIC:return new t1($);case N.ALPHANUMERIC:return new e1($);case N.KANJI:return new q7($);case N.BYTE:return new a1($)}}f6.fromArray=function(q){return q.reduce(function(Z,J){if(typeof J==="string")Z.push(o1(J,null));else if(J.data)Z.push(o1(J.data,J.mode));return Z},[])};f6.fromString=function(q,Z){let J=$7(q,R0.isKanjiModeEnabled()),Q=S6(J),F=w6(Q,Z),K=z6.find_path(F.map,"start","end"),U=[];for(let R=1;R<K.length-1;R++)U.push(F.table[K[R]].node);return f6.fromArray(k6(U))};f6.rawSplit=function(q){return f6.fromArray($7(q,R0.isKanjiModeEnabled()))}});var P0=T((i6)=>{var Y0=y(),y0=J0(),g6=X1(),u6=V1(),D6=N1(),h6=W1(),D0=L1(),h0=V0(),P6=C1(),H0=P1(),v6=c1(),c6=u(),g0=Z7();function b6($,q){let Z=$.size,J=h6.getPositions(q);for(let Q=0;Q<J.length;Q++){let F=J[Q][0],K=J[Q][1];for(let U=-1;U<=7;U++){if(F+U<=-1||Z<=F+U)continue;for(let R=-1;R<=7;R++){if(K+R<=-1||Z<=K+R)continue;if(U>=0&&U<=6&&(R===0||R===6)||R>=0&&R<=6&&(U===0||U===6)||U>=2&&U<=4&&R>=2&&R<=4)$.set(F+U,K+R,!0,!0);else $.set(F+U,K+R,!1,!0)}}}}function m6($){let q=$.size;for(let Z=8;Z<q-8;Z++){let J=Z%2===0;$.set(Z,6,J,!0),$.set(6,Z,J,!0)}}function x6($,q){let Z=D6.getPositions(q);for(let J=0;J<Z.length;J++){let Q=Z[J][0],F=Z[J][1];for(let K=-2;K<=2;K++)for(let U=-2;U<=2;U++)if(K===-2||K===2||U===-2||U===2||K===0&&U===0)$.set(Q+K,F+U,!0,!0);else $.set(Q+K,F+U,!1,!0)}}function l6($,q){let Z=$.size,J=H0.getEncodedBits(q),Q,F,K;for(let U=0;U<18;U++)Q=Math.floor(U/3),F=U%3+Z-8-3,K=(J>>U&1)===1,$.set(Q,F,K,!0),$.set(F,Q,K,!0)}function u0($,q,Z){let J=$.size,Q=v6.getEncodedBits(q,Z),F,K;for(F=0;F<15;F++){if(K=(Q>>F&1)===1,F<6)$.set(F,8,K,!0);else if(F<8)$.set(F+1,8,K,!0);else $.set(J-15+F,8,K,!0);if(F<8)$.set(8,J-F-1,K,!0);else if(F<9)$.set(8,15-F-1+1,K,!0);else $.set(8,15-F-1,K,!0)}$.set(J-8,8,1,!0)}function n6($,q){let Z=$.size,J=-1,Q=Z-1,F=7,K=0;for(let U=Z-1;U>0;U-=2){if(U===6)U--;while(!0){for(let R=0;R<2;R++)if(!$.isReserved(Q,U-R)){let H=!1;if(K<q.length)H=(q[K]>>>F&1)===1;if($.set(Q,U-R,H),F--,F===-1)K++,F=7}if(Q+=J,Q<0||Z<=Q){Q-=J,J=-J;break}}}}function p6($,q,Z){let J=new g6;Z.forEach(function(R){J.put(R.mode.bit,4),J.put(R.getLength(),c6.getCharCountIndicator(R.mode,$)),R.write(J)});let Q=Y0.getSymbolTotalCodewords($),F=h0.getTotalCodewordsCount($,q),K=(Q-F)*8;if(J.getLengthInBits()+4<=K)J.put(0,4);while(J.getLengthInBits()%8!==0)J.putBit(0);let U=(K-J.getLengthInBits())/8;for(let R=0;R<U;R++)J.put(R%2?17:236,8);return d6(J,$,q)}function d6($,q,Z){let J=Y0.getSymbolTotalCodewords(q),Q=h0.getTotalCodewordsCount(q,Z),F=J-Q,K=h0.getBlocksCount(q,Z),U=J%K,R=K-U,H=Math.floor(J/K),Y=Math.floor(F/K),E=Y+1,O=H-Y,X=new P6(O),G=0,A=Array(K),V=Array(K),W=0,E0=new Uint8Array($.buffer);for(let b=0;b<K;b++){let O0=b<R?Y:E;A[b]=E0.slice(G,G+O0),V[b]=X.encode(A[b]),G+=O0,W=Math.max(W,O0)}let i=new Uint8Array(J),I=0,z,C;for(z=0;z<W;z++)for(C=0;C<K;C++)if(z<A[C].length)i[I++]=A[C][z];for(z=0;z<O;z++)for(C=0;C<K;C++)i[I++]=V[C][z];return i}function r6($,q,Z,J){let Q;if(Array.isArray($))Q=g0.fromArray($);else if(typeof $==="string"){let H=q;if(!H){let Y=g0.rawSplit($);H=H0.getBestVersionForData(Y,Z)}Q=g0.fromString($,H||40)}else throw Error("Invalid data");let F=H0.getBestVersionForData(Q,Z);if(!F)throw Error("The amount of data is too big to be stored in a QR Code");if(!q)q=F;else if(q<F)throw Error(`
|
|
5
|
-
The chosen QR Code version cannot contain this amount of data.
|
|
6
|
-
Minimum version required to store current data is: `+F+`.
|
|
7
|
-
`);let K=p6(q,Z,Q),U=Y0.getSymbolSize(q),R=new u6(U);if(b6(R,q),m6(R),x6(R,q),u0(R,Z,0),q>=7)l6(R,q);if(n6(R,K),isNaN(J))J=D0.getBestMask(R,u0.bind(null,R,Z));return D0.applyMask(J,R),u0(R,Z,J),{modules:R,version:q,errorCorrectionLevel:Z,maskPattern:J,segments:Q}}i6.create=function(q,Z){if(typeof q>"u"||q==="")throw Error("No input text");let J=y0.M,Q,F;if(typeof Z<"u"){if(J=y0.from(Z.errorCorrectionLevel,y0.M),Q=H0.from(Z.version),F=D0.from(Z.maskPattern),Z.toSJISFunc)Y0.setToSJISFunction(Z.toSJISFunc)}return r6(q,Q,J,F)}});var v0=T((c5,Q7)=>{var o6=M("util"),J7=M("stream"),S=Q7.exports=function(){J7.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};o6.inherits(S,J7);S.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q}),process.nextTick(function(){if(this._process(),this._paused&&this._reads&&this._reads.length>0)this._paused=!1,this.emit("drain")}.bind(this))};S.prototype.write=function($,q){if(!this.writable)return this.emit("error",Error("Stream not writable")),!1;let Z;if(Buffer.isBuffer($))Z=$;else Z=Buffer.from($,q||this._encoding);if(this._buffers.push(Z),this._buffered+=Z.length,this._process(),this._reads&&this._reads.length===0)this._paused=!0;return this.writable&&!this._paused};S.prototype.end=function($,q){if($)this.write($,q);if(this.writable=!1,!this._buffers)return;if(this._buffers.length===0)this._end();else this._buffers.push(null),this._process()};S.prototype.destroySoon=S.prototype.end;S.prototype._end=function(){if(this._reads.length>0)this.emit("error",Error("Unexpected end of input"));this.destroy()};S.prototype.destroy=function(){if(!this._buffers)return;this.writable=!1,this._reads=null,this._buffers=null,this.emit("close")};S.prototype._processReadAllowingLess=function($){this._reads.shift();let q=this._buffers[0];if(q.length>$.length)this._buffered-=$.length,this._buffers[0]=q.slice($.length),$.func.call(this,q.slice(0,$.length));else this._buffered-=q.length,this._buffers.shift(),$.func.call(this,q)};S.prototype._processRead=function($){this._reads.shift();let q=0,Z=0,J=Buffer.alloc($.length);while(q<$.length){let Q=this._buffers[Z++],F=Math.min(Q.length,$.length-q);if(Q.copy(J,q,0,F),q+=F,F!==Q.length)this._buffers[--Z]=Q.slice(F)}if(Z>0)this._buffers.splice(0,Z);this._buffered-=$.length,$.func.call(this,J)};S.prototype._process=function(){try{while(this._buffered>0&&this._reads&&this._reads.length>0){let $=this._reads[0];if($.allowLess)this._processReadAllowingLess($);else if(this._buffered>=$.length)this._processRead($);else break}if(this._buffers&&!this.writable)this._end()}catch($){this.emit("error",$)}}});var c0=T((t6)=>{var h=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];t6.getImagePasses=function($,q){let Z=[],J=$%8,Q=q%8,F=($-J)/8,K=(q-Q)/8;for(let U=0;U<h.length;U++){let R=h[U],H=F*R.x.length,Y=K*R.y.length;for(let E=0;E<R.x.length;E++)if(R.x[E]<J)H++;else break;for(let E=0;E<R.y.length;E++)if(R.y[E]<Q)Y++;else break;if(H>0&&Y>0)Z.push({width:H,height:Y,index:U})}return Z};t6.getInterlaceIterator=function($){return function(q,Z,J){let Q=q%h[J].x.length,F=(q-Q)/h[J].x.length*8+h[J].x[Q],K=Z%h[J].y.length,U=(Z-K)/h[J].y.length*8+h[J].y[K];return F*4+U*$*4}}});var b0=T((m5,F7)=>{F7.exports=function(q,Z,J){let Q=q+Z-J,F=Math.abs(Q-q),K=Math.abs(Q-Z),U=Math.abs(Q-J);if(F<=K&&F<=U)return q;if(K<=U)return Z;return J}});var m0=T((x5,U7)=>{var qq=c0(),$q=b0();function K7($,q,Z){let J=$*q;if(Z!==8)J=Math.ceil(J/(8/Z));return J}var p=U7.exports=function($,q){let{width:Z,height:J,interlace:Q,bpp:F,depth:K}=$;if(this.read=q.read,this.write=q.write,this.complete=q.complete,this._imageIndex=0,this._images=[],Q){let U=qq.getImagePasses(Z,J);for(let R=0;R<U.length;R++)this._images.push({byteWidth:K7(U[R].width,F,K),height:U[R].height,lineIndex:0})}else this._images.push({byteWidth:K7(Z,F,K),height:J,lineIndex:0});if(K===8)this._xComparison=F;else if(K===16)this._xComparison=F*2;else this._xComparison=1};p.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};p.prototype._unFilterType1=function($,q,Z){let J=this._xComparison,Q=J-1;for(let F=0;F<Z;F++){let K=$[1+F],U=F>Q?q[F-J]:0;q[F]=K+U}};p.prototype._unFilterType2=function($,q,Z){let J=this._lastLine;for(let Q=0;Q<Z;Q++){let F=$[1+Q],K=J?J[Q]:0;q[Q]=F+K}};p.prototype._unFilterType3=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=Math.floor((H+R)/2);q[K]=U+Y}};p.prototype._unFilterType4=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=K>Q&&F?F[K-J]:0,E=$q(H,R,Y);q[K]=U+E}};p.prototype._reverseFilterLine=function($){let q=$[0],Z,J=this._images[this._imageIndex],Q=J.byteWidth;if(q===0)Z=$.slice(1,Q+1);else switch(Z=Buffer.alloc(Q),q){case 1:this._unFilterType1($,Z,Q);break;case 2:this._unFilterType2($,Z,Q);break;case 3:this._unFilterType3($,Z,Q);break;case 4:this._unFilterType4($,Z,Q);break;default:throw Error("Unrecognised filter type - "+q)}if(this.write(Z),J.lineIndex++,J.lineIndex>=J.height)this._lastLine=null,this._imageIndex++,J=this._images[this._imageIndex];else this._lastLine=Z;if(J)this.read(J.byteWidth+1,this._reverseFilterLine.bind(this));else this._lastLine=null,this.complete()}});var Y7=T((l5,H7)=>{var Zq=M("util"),R7=v0(),Jq=m0(),Qq=H7.exports=function($){R7.call(this);let q=[],Z=this;this._filter=new Jq($,{read:this.read.bind(this),write:function(J){q.push(J)},complete:function(){Z.emit("complete",Buffer.concat(q))}}),this._filter.start()};Zq.inherits(Qq,R7)});var d=T((n5,E7)=>{E7.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var n0=T((p5,O7)=>{var x0=[];(function(){for(let $=0;$<256;$++){let q=$;for(let Z=0;Z<8;Z++)if(q&1)q=3988292384^q>>>1;else q=q>>>1;x0[$]=q}})();var l0=O7.exports=function(){this._crc=-1};l0.prototype.write=function($){for(let q=0;q<$.length;q++)this._crc=x0[(this._crc^$[q])&255]^this._crc>>>8;return!0};l0.prototype.crc32=function(){return this._crc^-1};l0.crc32=function($){let q=-1;for(let Z=0;Z<$.length;Z++)q=x0[(q^$[Z])&255]^q>>>8;return q^-1}});var p0=T((d5,T7)=>{var j=d(),Fq=n0(),_=T7.exports=function($,q){this._options=$,$.checkCRC=$.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[j.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[j.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[j.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[j.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[j.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[j.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=q.read,this.error=q.error,this.metadata=q.metadata,this.gamma=q.gamma,this.transColor=q.transColor,this.palette=q.palette,this.parsed=q.parsed,this.inflateData=q.inflateData,this.finished=q.finished,this.simpleTransparency=q.simpleTransparency,this.headersFinished=q.headersFinished||function(){}};_.prototype.start=function(){this.read(j.PNG_SIGNATURE.length,this._parseSignature.bind(this))};_.prototype._parseSignature=function($){let q=j.PNG_SIGNATURE;for(let Z=0;Z<q.length;Z++)if($[Z]!==q[Z]){this.error(Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};_.prototype._parseChunkBegin=function($){let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J="";for(let F=4;F<8;F++)J+=String.fromCharCode($[F]);let Q=Boolean($[4]&32);if(!this._hasIHDR&&Z!==j.TYPE_IHDR){this.error(Error("Expected IHDR on beggining"));return}if(this._crc=new Fq,this._crc.write(Buffer.from(J)),this._chunks[Z])return this._chunks[Z](q);if(!Q){this.error(Error("Unsupported critical chunk type "+J));return}this.read(q+4,this._skipChunk.bind(this))};_.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};_.prototype._parseChunkEnd=function($){let q=$.readInt32BE(0),Z=this._crc.crc32();if(this._options.checkCRC&&Z!==q){this.error(Error("Crc error - "+q+" - "+Z));return}if(!this._hasIEND)this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleIHDR=function($){this.read($,this._parseIHDR.bind(this))};_.prototype._parseIHDR=function($){this._crc.write($);let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J=$[8],Q=$[9],F=$[10],K=$[11],U=$[12];if(J!==8&&J!==4&&J!==2&&J!==1&&J!==16){this.error(Error("Unsupported bit depth "+J));return}if(!(Q in j.COLORTYPE_TO_BPP_MAP)){this.error(Error("Unsupported color type"));return}if(F!==0){this.error(Error("Unsupported compression method"));return}if(K!==0){this.error(Error("Unsupported filter method"));return}if(U!==0&&U!==1){this.error(Error("Unsupported interlace method"));return}this._colorType=Q;let R=j.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:q,height:Z,depth:J,interlace:Boolean(U),palette:Boolean(Q&j.COLORTYPE_PALETTE),color:Boolean(Q&j.COLORTYPE_COLOR),alpha:Boolean(Q&j.COLORTYPE_ALPHA),bpp:R,colorType:Q}),this._handleChunkEnd()};_.prototype._handlePLTE=function($){this.read($,this._parsePLTE.bind(this))};_.prototype._parsePLTE=function($){this._crc.write($);let q=Math.floor($.length/3);for(let Z=0;Z<q;Z++)this._palette.push([$[Z*3],$[Z*3+1],$[Z*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};_.prototype._handleTRNS=function($){this.simpleTransparency(),this.read($,this._parseTRNS.bind(this))};_.prototype._parseTRNS=function($){if(this._crc.write($),this._colorType===j.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(Error("Transparency chunk must be after palette"));return}if($.length>this._palette.length){this.error(Error("More transparent colors than palette size"));return}for(let q=0;q<$.length;q++)this._palette[q][3]=$[q];this.palette(this._palette)}if(this._colorType===j.COLORTYPE_GRAYSCALE)this.transColor([$.readUInt16BE(0)]);if(this._colorType===j.COLORTYPE_COLOR)this.transColor([$.readUInt16BE(0),$.readUInt16BE(2),$.readUInt16BE(4)]);this._handleChunkEnd()};_.prototype._handleGAMA=function($){this.read($,this._parseGAMA.bind(this))};_.prototype._parseGAMA=function($){this._crc.write($),this.gamma($.readUInt32BE(0)/j.GAMMA_DIVISION),this._handleChunkEnd()};_.prototype._handleIDAT=function($){if(!this._emittedHeadersFinished)this._emittedHeadersFinished=!0,this.headersFinished();this.read(-$,this._parseIDAT.bind(this,$))};_.prototype._parseIDAT=function($,q){if(this._crc.write(q),this._colorType===j.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw Error("Expected palette not found");this.inflateData(q);let Z=$-q.length;if(Z>0)this._handleIDAT(Z);else this._handleChunkEnd()};_.prototype._handleIEND=function($){this.read($,this._parseIEND.bind(this))};_.prototype._parseIEND=function($){if(this._crc.write($),this._hasIEND=!0,this._handleChunkEnd(),this.finished)this.finished()}});var d0=T((Eq)=>{var X7=c0(),Kq=[function(){},function($,q,Z,J){if(J===q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=255},function($,q,Z,J){if(J+1>=q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=q[J+1]},function($,q,Z,J){if(J+2>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=255},function($,q,Z,J){if(J+3>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=q[J+3]}],Uq=[function(){},function($,q,Z,J){let Q=q[0];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=J},function($,q,Z){let J=q[0];$[Z]=J,$[Z+1]=J,$[Z+2]=J,$[Z+3]=q[1]},function($,q,Z,J){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=J},function($,q,Z){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=q[3]}];function Rq($,q){let Z=[],J=0;function Q(){if(J===$.length)throw Error("Ran out of data");let F=$[J];J++;let K,U,R,H,Y,E,O,X;switch(q){default:throw Error("unrecognised depth");case 16:O=$[J],J++,Z.push((F<<8)+O);break;case 4:O=F&15,X=F>>4,Z.push(X,O);break;case 2:Y=F&3,E=F>>2&3,O=F>>4&3,X=F>>6&3,Z.push(X,O,E,Y);break;case 1:K=F&1,U=F>>1&1,R=F>>2&1,H=F>>3&1,Y=F>>4&1,E=F>>5&1,O=F>>6&1,X=F>>7&1,Z.push(X,O,E,Y,H,R,U,K);break}}return{get:function(F){while(Z.length<F)Q();let K=Z.slice(0,F);return Z=Z.slice(F),K},resetAfterLine:function(){Z.length=0},end:function(){if(J!==$.length)throw Error("extra data found")}}}function Hq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++)for(let Y=0;Y<K;Y++){let E=Z(Y,H,R);Kq[J](q,Q,E,F),F+=J}return F}function Yq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++){for(let Y=0;Y<K;Y++){let E=Q.get(J),O=Z(Y,H,R);Uq[J](q,E,O,F)}Q.resetAfterLine()}}Eq.dataToBitMap=function($,q){let{width:Z,height:J,depth:Q,bpp:F,interlace:K}=q,U;if(Q!==8)U=Rq($,Q);let R;if(Q<=8)R=Buffer.alloc(Z*J*4);else R=new Uint16Array(Z*J*4);let H=Math.pow(2,Q)-1,Y=0,E,O;if(K)E=X7.getImagePasses(Z,J),O=X7.getInterlaceIterator(Z,J);else{let X=0;O=function(){let G=X;return X+=4,G},E=[{width:Z,height:J}]}for(let X=0;X<E.length;X++)if(Q===8)Y=Hq(E[X],R,O,F,$,Y);else Yq(E[X],R,O,F,U,H);if(Q===8){if(Y!==$.length)throw Error("extra data found")}else U.end();return R}});var r0=T((i5,G7)=>{function Tq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=Q[$[F]];if(!R)throw Error("index "+$[F]+" not in palette");for(let H=0;H<4;H++)q[F+H]=R[H];F+=4}}function Xq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=!1;if(Q.length===1){if(Q[0]===$[F])R=!0}else if(Q[0]===$[F]&&Q[1]===$[F+1]&&Q[2]===$[F+2])R=!0;if(R)for(let H=0;H<4;H++)q[F+H]=0;F+=4}}function Gq($,q,Z,J,Q){let F=255,K=Math.pow(2,Q)-1,U=0;for(let R=0;R<J;R++)for(let H=0;H<Z;H++){for(let Y=0;Y<4;Y++)q[U+Y]=Math.floor($[U+Y]*F/K+0.5);U+=4}}G7.exports=function($,q){let{depth:Z,width:J,height:Q,colorType:F,transColor:K,palette:U}=q,R=$;if(F===3)Tq($,R,J,Q,U);else{if(K)Xq($,R,J,Q,K);if(Z!==8){if(Z===16)R=Buffer.alloc(J*Q*4);Gq($,R,J,Q,Z)}}return R}});var N7=T((s5,A7)=>{var Vq=M("util"),i0=M("zlib"),V7=v0(),Aq=Y7(),Nq=p0(),Wq=d0(),Mq=r0(),f=A7.exports=function($){V7.call(this),this._parser=new Nq($,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=$,this.writable=!0,this._parser.start()};Vq.inherits(f,V7);f.prototype._handleError=function($){if(this.emit("error",$),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy)this._inflate.destroy();if(this._filter)this._filter.destroy(),this._filter.on("error",function(){});this.errord=!0};f.prototype._inflateData=function($){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i0.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let Z=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,J=Math.max(Z,i0.Z_MIN_CHUNK);this._inflate=i0.createInflate({chunkSize:J});let Q=Z,F=this.emit.bind(this,"error");this._inflate.on("error",function(U){if(!Q)return;F(U)}),this._filter.on("complete",this._complete.bind(this));let K=this._filter.write.bind(this._filter);this._inflate.on("data",function(U){if(!Q)return;if(U.length>Q)U=U.slice(0,Q);Q-=U.length,K(U)}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write($)};f.prototype._handleMetaData=function($){this._metaData=$,this._bitmapInfo=Object.create($),this._filter=new Aq(this._bitmapInfo)};f.prototype._handleTransColor=function($){this._bitmapInfo.transColor=$};f.prototype._handlePalette=function($){this._bitmapInfo.palette=$};f.prototype._simpleTransparency=function(){this._metaData.alpha=!0};f.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};f.prototype._finished=function(){if(this.errord)return;if(!this._inflate)this.emit("error","No Inflate block");else this._inflate.end()};f.prototype._complete=function($){if(this.errord)return;let q;try{let Z=Wq.dataToBitMap($,this._bitmapInfo);q=Mq(Z,this._bitmapInfo),Z=null}catch(Z){this._handleError(Z);return}this.emit("parsed",q)}});var M7=T((o5,W7)=>{var k=d();W7.exports=function($,q,Z,J){let Q=[k.COLORTYPE_COLOR_ALPHA,k.COLORTYPE_ALPHA].indexOf(J.colorType)!==-1;if(J.colorType===J.inputColorType){let G=function(){let A=new ArrayBuffer(2);return new DataView(A).setInt16(0,256,!0),new Int16Array(A)[0]!==256}();if(J.bitDepth===8||J.bitDepth===16&&G)return $}let F=J.bitDepth!==16?$:new Uint16Array($.buffer),K=255,U=k.COLORTYPE_TO_BPP_MAP[J.inputColorType];if(U===4&&!J.inputHasAlpha)U=3;let R=k.COLORTYPE_TO_BPP_MAP[J.colorType];if(J.bitDepth===16)K=65535,R*=2;let H=Buffer.alloc(q*Z*R),Y=0,E=0,O=J.bgColor||{};if(O.red===void 0)O.red=K;if(O.green===void 0)O.green=K;if(O.blue===void 0)O.blue=K;function X(){let G,A,V,W=K;switch(J.inputColorType){case k.COLORTYPE_COLOR_ALPHA:W=F[Y+3],G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_COLOR:G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_ALPHA:W=F[Y+1],G=F[Y],A=G,V=G;break;case k.COLORTYPE_GRAYSCALE:G=F[Y],A=G,V=G;break;default:throw Error("input color type:"+J.inputColorType+" is not supported at present")}if(J.inputHasAlpha){if(!Q)W/=K,G=Math.min(Math.max(Math.round((1-W)*O.red+W*G),0),K),A=Math.min(Math.max(Math.round((1-W)*O.green+W*A),0),K),V=Math.min(Math.max(Math.round((1-W)*O.blue+W*V),0),K)}return{red:G,green:A,blue:V,alpha:W}}for(let G=0;G<Z;G++)for(let A=0;A<q;A++){let V=X(F,Y);switch(J.colorType){case k.COLORTYPE_COLOR_ALPHA:case k.COLORTYPE_COLOR:if(J.bitDepth===8){if(H[E]=V.red,H[E+1]=V.green,H[E+2]=V.blue,Q)H[E+3]=V.alpha}else if(H.writeUInt16BE(V.red,E),H.writeUInt16BE(V.green,E+2),H.writeUInt16BE(V.blue,E+4),Q)H.writeUInt16BE(V.alpha,E+6);break;case k.COLORTYPE_ALPHA:case k.COLORTYPE_GRAYSCALE:{let W=(V.red+V.green+V.blue)/3;if(J.bitDepth===8){if(H[E]=W,Q)H[E+1]=V.alpha}else if(H.writeUInt16BE(W,E),Q)H.writeUInt16BE(V.alpha,E+2);break}default:throw Error("unrecognised color Type "+J.colorType)}Y+=U,E+=R}return H}});var B7=T((t5,_7)=>{var j7=b0();function jq($,q,Z,J,Q){for(let F=0;F<Z;F++)J[Q+F]=$[q+F]}function _q($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++)J+=Math.abs($[F]);return J}function Bq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=$[q+K]-U;J[Q+K]=R}}function Iq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=$[q+F]-K;Q+=Math.abs(U)}return Q}function Lq($,q,Z,J,Q){for(let F=0;F<Z;F++){let K=q>0?$[q+F-Z]:0,U=$[q+F]-K;J[Q+F]=U}}function zq($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++){let K=q>0?$[F-Z]:0,U=$[F]-K;J+=Math.abs(U)}return J}function kq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=$[q+K]-(U+R>>1);J[Q+K]=H}}function Sq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=$[q+F]-(K+U>>1);Q+=Math.abs(R)}return Q}function wq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=q>0&&K>=F?$[q+K-(Z+F)]:0,Y=$[q+K]-j7(U,R,H);J[Q+K]=Y}}function fq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=q>0&&F>=J?$[q+F-(Z+J)]:0,H=$[q+F]-j7(K,U,R);Q+=Math.abs(H)}return Q}var Cq={0:jq,1:Bq,2:Lq,3:kq,4:wq},yq={0:_q,1:Iq,2:zq,3:Sq,4:fq};_7.exports=function($,q,Z,J,Q){let F;if(!("filterType"in J)||J.filterType===-1)F=[0,1,2,3,4];else if(typeof J.filterType==="number")F=[J.filterType];else throw Error("unrecognised filter types");if(J.bitDepth===16)Q*=2;let K=q*Q,U=0,R=0,H=Buffer.alloc((K+1)*Z),Y=F[0];for(let E=0;E<Z;E++){if(F.length>1){let O=1/0;for(let X=0;X<F.length;X++){let G=yq[F[X]]($,R,K,Q);if(G<O)Y=F[X],O=G}}H[U]=Y,U++,Cq[Y]($,R,K,H,U,Q),U+=K,R+=K}return H}});var s0=T((e5,I7)=>{var B=d(),gq=n0(),uq=M7(),Dq=B7(),hq=M("zlib"),P=I7.exports=function($){if(this._options=$,$.deflateChunkSize=$.deflateChunkSize||32768,$.deflateLevel=$.deflateLevel!=null?$.deflateLevel:9,$.deflateStrategy=$.deflateStrategy!=null?$.deflateStrategy:3,$.inputHasAlpha=$.inputHasAlpha!=null?$.inputHasAlpha:!0,$.deflateFactory=$.deflateFactory||hq.createDeflate,$.bitDepth=$.bitDepth||8,$.colorType=typeof $.colorType==="number"?$.colorType:B.COLORTYPE_COLOR_ALPHA,$.inputColorType=typeof $.inputColorType==="number"?$.inputColorType:B.COLORTYPE_COLOR_ALPHA,[B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.colorType)===-1)throw Error("option color type:"+$.colorType+" is not supported at present");if([B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.inputColorType)===-1)throw Error("option input color type:"+$.inputColorType+" is not supported at present");if($.bitDepth!==8&&$.bitDepth!==16)throw Error("option bit depth:"+$.bitDepth+" is not supported at present")};P.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};P.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};P.prototype.filterData=function($,q,Z){let J=uq($,q,Z,this._options),Q=B.COLORTYPE_TO_BPP_MAP[this._options.colorType];return Dq(J,q,Z,this._options,Q)};P.prototype._packChunk=function($,q){let Z=q?q.length:0,J=Buffer.alloc(Z+12);if(J.writeUInt32BE(Z,0),J.writeUInt32BE($,4),q)q.copy(J,8);return J.writeInt32BE(gq.crc32(J.slice(4,J.length-4)),J.length-4),J};P.prototype.packGAMA=function($){let q=Buffer.alloc(4);return q.writeUInt32BE(Math.floor($*B.GAMMA_DIVISION),0),this._packChunk(B.TYPE_gAMA,q)};P.prototype.packIHDR=function($,q){let Z=Buffer.alloc(13);return Z.writeUInt32BE($,0),Z.writeUInt32BE(q,4),Z[8]=this._options.bitDepth,Z[9]=this._options.colorType,Z[10]=0,Z[11]=0,Z[12]=0,this._packChunk(B.TYPE_IHDR,Z)};P.prototype.packIDAT=function($){return this._packChunk(B.TYPE_IDAT,$)};P.prototype.packIEND=function(){return this._packChunk(B.TYPE_IEND,null)}});var S7=T((a5,k7)=>{var Pq=M("util"),L7=M("stream"),vq=d(),cq=s0(),z7=k7.exports=function($){L7.call(this);let q=$||{};this._packer=new cq(q),this._deflate=this._packer.createDeflate(),this.readable=!0};Pq.inherits(z7,L7);z7.prototype.pack=function($,q,Z,J){if(this.emit("data",Buffer.from(vq.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(q,Z)),J)this.emit("data",this._packer.packGAMA(J));let Q=this._packer.filterData($,q,Z);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(F){this.emit("data",this._packer.packIDAT(F))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(Q)}});var u7=T(($0,g7)=>{var w7=M("assert").ok,r=M("zlib"),bq=M("util"),f7=M("buffer").kMaxLength;function c($){if(!(this instanceof c))return new c($);if($&&$.chunkSize<r.Z_MIN_CHUNK)$.chunkSize=r.Z_MIN_CHUNK;if(r.Inflate.call(this,$),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,$&&$.maxLength!=null)this._maxLength=$.maxLength}function mq($){return new c($)}function C7($,q){if(q)process.nextTick(q);if(!$._handle)return;$._handle.close(),$._handle=null}c.prototype._processChunk=function($,q,Z){if(typeof Z==="function")return r.Inflate._processChunk.call(this,$,q,Z);let J=this,Q=$&&$.length,F=this._chunkSize-this._offset,K=this._maxLength,U=0,R=[],H=0,Y;this.on("error",function(G){Y=G});function E(G,A){if(J._hadError)return;let V=F-A;if(w7(V>=0,"have should not go down"),V>0){let W=J._buffer.slice(J._offset,J._offset+V);if(J._offset+=V,W.length>K)W=W.slice(0,K);if(R.push(W),H+=W.length,K-=W.length,K===0)return!1}if(A===0||J._offset>=J._chunkSize)F=J._chunkSize,J._offset=0,J._buffer=Buffer.allocUnsafe(J._chunkSize);if(A===0)return U+=Q-G,Q=G,!0;return!1}w7(this._handle,"zlib binding closed");let O;do O=this._handle.writeSync(q,$,U,Q,this._buffer,this._offset,F),O=O||this._writeState;while(!this._hadError&&E(O[0],O[1]));if(this._hadError)throw Y;if(H>=f7)throw C7(this),RangeError("Cannot create final Buffer. It would be larger than 0x"+f7.toString(16)+" bytes");let X=Buffer.concat(R,H);return C7(this),X};bq.inherits(c,r.Inflate);function xq($,q){if(typeof q==="string")q=Buffer.from(q);if(!(q instanceof Buffer))throw TypeError("Not a string or buffer");let Z=$._finishFlushFlag;if(Z==null)Z=r.Z_FINISH;return $._processChunk(q,Z)}function y7($,q){return xq(new c(q),$)}g7.exports=$0=y7;$0.Inflate=c;$0.createInflate=mq;$0.inflateSync=y7});var o0=T((q$,h7)=>{var D7=h7.exports=function($){this._buffer=$,this._reads=[]};D7.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q})};D7.prototype.process=function(){while(this._reads.length>0&&this._buffer.length){let $=this._reads[0];if(this._buffer.length&&(this._buffer.length>=$.length||$.allowLess)){this._reads.shift();let q=this._buffer;this._buffer=q.slice($.length),$.func.call(this,q.slice(0,$.length))}else break}if(this._reads.length>0)return Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return Error("unrecognised content at end of stream")}});var P7=T((pq)=>{var lq=o0(),nq=m0();pq.process=function($,q){let Z=[],J=new lq($);return new nq(q,{read:J.read.bind(J),write:function(F){Z.push(F)},complete:function(){}}).start(),J.process(),Buffer.concat(Z)}});var m7=T((Z$,b7)=>{var v7=!0,c7=M("zlib"),rq=u7();if(!c7.deflateSync)v7=!1;var iq=o0(),sq=P7(),oq=p0(),tq=d0(),eq=r0();b7.exports=function($,q){if(!v7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let Z;function J(I){Z=I}let Q;function F(I){Q=I}function K(I){Q.transColor=I}function U(I){Q.palette=I}function R(){Q.alpha=!0}let H;function Y(I){H=I}let E=[];function O(I){E.push(I)}let X=new iq($);if(new oq(q,{read:X.read.bind(X),error:J,metadata:F,gamma:Y,palette:U,transColor:K,inflateData:O,simpleTransparency:R}).start(),X.process(),Z)throw Z;let A=Buffer.concat(E);E.length=0;let V;if(Q.interlace)V=c7.inflateSync(A);else{let z=((Q.width*Q.bpp*Q.depth+7>>3)+1)*Q.height;V=rq(A,{chunkSize:z,maxLength:z})}if(A=null,!V||!V.length)throw Error("bad png - invalid inflate data response");let W=sq.process(V,Q);A=null;let E0=tq.dataToBitMap(W,Q);W=null;let i=eq(E0,Q);return Q.data=i,Q.gamma=H||0,Q}});var p7=T((J$,n7)=>{var x7=!0,l7=M("zlib");if(!l7.deflateSync)x7=!1;var aq=d(),q4=s0();n7.exports=function($,q){if(!x7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let J=new q4(q||{}),Q=[];if(Q.push(Buffer.from(aq.PNG_SIGNATURE)),Q.push(J.packIHDR($.width,$.height)),$.gamma)Q.push(J.packGAMA($.gamma));let F=J.filterData($.data,$.width,$.height),K=l7.deflateSync(F,J.getDeflateOptions());if(F=null,!K||!K.length)throw Error("bad png - invalid compressed data response");return Q.push(J.packIDAT(K)),Q.push(J.packIEND()),Buffer.concat(Q)}});var d7=T((J4)=>{var $4=m7(),Z4=p7();J4.read=function($,q){return $4($,q||{})};J4.write=function($,q){return Z4($,q)}});var i7=T((Y4)=>{var K4=M("util"),r7=M("stream"),U4=N7(),R4=S7(),H4=d7(),L=Y4.PNG=function($){if(r7.call(this),$=$||{},this.width=$.width|0,this.height=$.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,$.fill&&this.data)this.data.fill(0);this.gamma=0,this.readable=this.writable=!0,this._parser=new U4($),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(q){this.data=q,this.emit("parsed",q)}.bind(this)),this._packer=new R4($),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};K4.inherits(L,r7);L.sync=H4;L.prototype.pack=function(){if(!this.data||!this.data.length)return this.emit("error","No data provided"),this;return process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this};L.prototype.parse=function($,q){if(q){let Z,J;Z=function(Q){this.removeListener("error",J),this.data=Q,q(null,this)}.bind(this),J=function(Q){this.removeListener("parsed",Z),q(Q,null)}.bind(this),this.once("parsed",Z),this.once("error",J)}return this.end($),this};L.prototype.write=function($){return this._parser.write($),!0};L.prototype.end=function($){this._parser.end($)};L.prototype._metadata=function($){this.width=$.width,this.height=$.height,this.emit("metadata",$)};L.prototype._gamma=function($){this.gamma=$};L.prototype._handleClose=function(){if(!this._parser.writable&&!this._packer.readable)this.emit("close")};L.bitblt=function($,q,Z,J,Q,F,K,U){if(Z|=0,J|=0,Q|=0,F|=0,K|=0,U|=0,Z>$.width||J>$.height||Z+Q>$.width||J+F>$.height)throw Error("bitblt reading outside image");if(K>q.width||U>q.height||K+Q>q.width||U+F>q.height)throw Error("bitblt writing outside image");for(let R=0;R<F;R++)$.data.copy(q.data,(U+R)*q.width+K<<2,(J+R)*$.width+Z<<2,(J+R)*$.width+Z+Q<<2)};L.prototype.bitblt=function($,q,Z,J,Q,F,K){return L.bitblt(this,$,q,Z,J,Q,F,K),this};L.adjustGamma=function($){if($.gamma){for(let q=0;q<$.height;q++)for(let Z=0;Z<$.width;Z++){let J=$.width*q+Z<<2;for(let Q=0;Q<3;Q++){let F=$.data[J+Q]/255;F=Math.pow(F,0.45454545454545453/$.gamma),$.data[J+Q]=Math.round(F*255)}}$.gamma=0}};L.prototype.adjustGamma=function(){L.adjustGamma(this)}});var Z0=T((E4)=>{function s7($){if(typeof $==="number")$=$.toString();if(typeof $!=="string")throw Error("Color should be defined as hex string");let q=$.slice().replace("#","").split("");if(q.length<3||q.length===5||q.length>8)throw Error("Invalid hex color: "+$);if(q.length===3||q.length===4)q=Array.prototype.concat.apply([],q.map(function(J){return[J,J]}));if(q.length===6)q.push("F","F");let Z=parseInt(q.join(""),16);return{r:Z>>24&255,g:Z>>16&255,b:Z>>8&255,a:Z&255,hex:"#"+q.slice(0,6).join("")}}E4.getOptions=function(q){if(!q)q={};if(!q.color)q.color={};let Z=typeof q.margin>"u"||q.margin===null||q.margin<0?4:q.margin,J=q.width&&q.width>=21?q.width:void 0,Q=q.scale||4;return{width:J,scale:J?4:Q,margin:Z,color:{dark:s7(q.color.dark||"#000000ff"),light:s7(q.color.light||"#ffffffff")},type:q.type,rendererOpts:q.rendererOpts||{}}};E4.getScale=function(q,Z){return Z.width&&Z.width>=q+Z.margin*2?Z.width/(q+Z.margin*2):Z.scale};E4.getImageWidth=function(q,Z){let J=E4.getScale(q,Z);return Math.floor((q+Z.margin*2)*J)};E4.qrToImageData=function(q,Z,J){let Q=Z.modules.size,F=Z.modules.data,K=E4.getScale(Q,J),U=Math.floor((Q+J.margin*2)*K),R=J.margin*K,H=[J.color.light,J.color.dark];for(let Y=0;Y<U;Y++)for(let E=0;E<U;E++){let O=(Y*U+E)*4,X=J.color.light;if(Y>=R&&E>=R&&Y<U-R&&E<U-R){let G=Math.floor((Y-R)/K),A=Math.floor((E-R)/K);X=H[F[G*Q+A]?1:0]}q[O++]=X.r,q[O++]=X.g,q[O++]=X.b,q[O]=X.a}}});var o7=T((A4)=>{var G4=M("fs"),V4=i7().PNG,e0=Z0();A4.render=function(q,Z){let J=e0.getOptions(Z),Q=J.rendererOpts,F=e0.getImageWidth(q.modules.size,J);Q.width=F,Q.height=F;let K=new V4(Q);return e0.qrToImageData(K.data,q,J),K};A4.renderToDataURL=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;A4.renderToBuffer(q,Z,function(Q,F){if(Q)J(Q);let K="data:image/png;base64,";K+=F.toString("base64"),J(null,K)})};A4.renderToBuffer=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;let Q=A4.render(q,Z),F=[];Q.on("error",J),Q.on("data",function(K){F.push(K)}),Q.on("end",function(){J(null,Buffer.concat(F))}),Q.pack()};A4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=!1,K=(...R)=>{if(F)return;F=!0,Q.apply(null,R)},U=G4.createWriteStream(q);U.on("error",K),U.on("close",K),A4.renderToFileStream(U,Z,J)};A4.renderToFileStream=function(q,Z,J){A4.render(Z,J).pack().pipe(q)}});var e7=T((z4)=>{var _4=Z0(),B4={WW:" ",WB:"▄",BB:"█",BW:"▀"},I4={BB:" ",BW:"▄",WW:"█",WB:"▀"};function L4($,q,Z){if($&&q)return Z.BB;if($&&!q)return Z.BW;if(!$&&q)return Z.WB;return Z.WW}z4.render=function($,q,Z){let J=_4.getOptions(q),Q=B4;if(J.color.dark.hex==="#ffffff"||J.color.light.hex==="#000000")Q=I4;let F=$.modules.size,K=$.modules.data,U="",R=Array(F+J.margin*2+1).join(Q.WW);R=Array(J.margin/2+1).join(R+`
|
|
8
|
-
`);let H=Array(J.margin+1).join(Q.WW);U+=R;for(let Y=0;Y<F;Y+=2){U+=H;for(let E=0;E<F;E++){let O=K[Y*F+E],X=K[(Y+1)*F+E];U+=L4(O,X,Q)}U+=H+`
|
|
9
|
-
`}if(U+=R.slice(0,-1),typeof Z==="function")Z(null,U);return U};z4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),K=z4.render(Z,J);F.writeFile(q,K,Q)}});var a7=T((S4)=>{S4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F="\x1B[40m \x1B[0m",K="\x1B[47m \x1B[0m",U="",R=Array(J+3).join("\x1B[47m \x1B[0m"),H=Array(2).join("\x1B[47m \x1B[0m");U+=R+`
|
|
10
|
-
`;for(let Y=0;Y<J;++Y){U+="\x1B[47m \x1B[0m";for(let E=0;E<J;E++)U+=Q[Y*J+E]?"\x1B[40m \x1B[0m":"\x1B[47m \x1B[0m";U+=H+`
|
|
11
|
-
`}if(U+=R+`
|
|
12
|
-
`,typeof Z==="function")Z(null,U);return U}});var Z2=T((g4)=>{var f4="\x1B[47m\x1B[30m",C4="\x1B[40m\x1B[37m",y4=function($,q,Z){return{"00":"\x1B[0m "+$,"01":"\x1B[0m"+q+"▄"+$,"02":"\x1B[0m"+Z+"▄"+$,10:"\x1B[0m"+q+"▀"+$,11:" ",12:"▄",20:"\x1B[0m"+Z+"▀"+$,21:"▀",22:"█"}},q2=function($,q,Z,J){let Q=q+1;if(Z>=Q||J>=Q||J<-1||Z<-1)return"0";if(Z>=q||J>=q||J<0||Z<0)return"1";let F=J*q+Z;return $[F]?"2":"1"},$2=function($,q,Z,J){return q2($,q,Z,J)+q2($,q,Z,J+1)};g4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F=!!(q&&q.inverse),K=q&&q.inverse?C4:f4,H=y4(K,F?"\x1B[30m":"\x1B[37m",F?"\x1B[37m":"\x1B[30m"),Y=`\x1B[0m
|
|
13
|
-
`+K,E=K;for(let O=-1;O<J+1;O+=2){for(let X=-1;X<J;X++)E+=H[$2(Q,J,X,O)];E+=H[$2(Q,J,J,O)]+Y}if(E+="\x1B[0m",typeof Z==="function")Z(null,E);return E}});var J2=T((P4)=>{var D4=a7(),h4=Z2();P4.render=function($,q,Z){if(q&&q.small)return h4.render($,q,Z);return D4.render($,q,Z)}});var $1=T((m4)=>{var c4=Z0();function Q2($,q){let Z=$.a/255,J=q+'="'+$.hex+'"';return Z<1?J+" "+q+'-opacity="'+Z.toFixed(2).slice(1)+'"':J}function q1($,q,Z){let J=$+q;if(typeof Z<"u")J+=" "+Z;return J}function b4($,q,Z){let J="",Q=0,F=!1,K=0;for(let U=0;U<$.length;U++){let R=Math.floor(U%q),H=Math.floor(U/q);if(!R&&!F)F=!0;if($[U]){if(K++,!(U>0&&R>0&&$[U-1]))J+=F?q1("M",R+Z,0.5+H+Z):q1("m",Q,0),Q=0,F=!1;if(!(R+1<q&&$[U+1]))J+=q1("h",K),K=0}else Q++}return J}m4.render=function(q,Z,J){let Q=c4.getOptions(Z),F=q.modules.size,K=q.modules.data,U=F+Q.margin*2,R=!Q.color.light.a?"":"<path "+Q2(Q.color.light,"fill")+' d="M0 0h'+U+"v"+U+'H0z"/>',H="<path "+Q2(Q.color.dark,"stroke")+' d="'+b4(K,F,Q.margin)+'"/>',Y='viewBox="0 0 '+U+" "+U+'"',O='<svg xmlns="http://www.w3.org/2000/svg" '+(!Q.width?"":'width="'+Q.width+'" height="'+Q.width+'" ')+Y+' shape-rendering="crispEdges">'+R+H+`</svg>
|
|
14
|
-
`;if(typeof J==="function")J(null,O);return O}});var K2=T((n4)=>{var l4=$1();n4.render=l4.render;n4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),U='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+n4.render(Z,J);F.writeFile(q,U,Q)}});var R2=T((i4)=>{var Z1=Z0();function d4($,q,Z){if($.clearRect(0,0,q.width,q.height),!q.style)q.style={};q.height=Z,q.width=Z,q.style.height=Z+"px",q.style.width=Z+"px"}function r4(){try{return document.createElement("canvas")}catch($){throw Error("You need to specify a canvas element")}}i4.render=function(q,Z,J){let Q=J,F=Z;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Z)F=r4();Q=Z1.getOptions(Q);let K=Z1.getImageWidth(q.modules.size,Q),U=F.getContext("2d"),R=U.createImageData(K,K);return Z1.qrToImageData(R.data,q,Q),d4(U,F,K),U.putImageData(R,0,0),F};i4.renderToDataURL=function(q,Z,J){let Q=J;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Q)Q={};let F=i4.render(q,Z,Q),K=Q.type||"image/png",U=Q.rendererOpts||{};return F.toDataURL(K,U.quality)}});var Y2=T((e4)=>{var o4=T0(),J1=P0(),H2=R2(),t4=$1();function Q1($,q,Z,J,Q){let F=[].slice.call(arguments,1),K=F.length,U=typeof F[K-1]==="function";if(!U&&!o4())throw Error("Callback required as last argument");if(U){if(K<2)throw Error("Too few arguments provided");if(K===2)Q=Z,Z=q,q=J=void 0;else if(K===3)if(q.getContext&&typeof Q>"u")Q=J,J=void 0;else Q=J,J=Z,Z=q,q=void 0}else{if(K<1)throw Error("Too few arguments provided");if(K===1)Z=q,q=J=void 0;else if(K===2&&!q.getContext)J=Z,Z=q,q=void 0;return new Promise(function(R,H){try{let Y=J1.create(Z,J);R($(Y,q,J))}catch(Y){H(Y)}})}try{let R=J1.create(Z,J);Q(null,$(R,q,J))}catch(R){Q(R)}}e4.create=J1.create;e4.toCanvas=Q1.bind(null,H2.render);e4.toDataURL=Q1.bind(null,H2.renderToDataURL);e4.toString=Q1.bind(null,function($,q,Z){return t4.render($,Z)})});function R5($,q,Z){if(typeof $>"u")throw Error("String required as first argument");if(typeof Z>"u")Z=q,q={};if(typeof Z!=="function")if(!Q5())throw Error("Callback required as last argument");else q=Z||{},Z=null;return{opts:q,cb:Z}}function H5($){switch($){case"svg":return U5;case"terminal":return K5;case"utf8":default:return F5}}function Y5($,q,Z){if(!Z.cb)return new Promise(function(J,Q){try{let F=F1.create(q,Z.opts);return $(F,Z.opts,function(K,U){return K?Q(K):J(U)})}catch(F){Q(F)}});try{let J=F1.create(q,Z.opts);return $(J,Z.opts,Z.cb)}catch(J){Z.cb(J)}}var Q5,F1,A$,F5,K5,U5,E5,O5,T5=function(q,Z,J){let Q=R5(q,Z,J),F=Q.opts?Q.opts.type:void 0,K=H5(F);return Y5(K.render,q,Q)};var X5=J5(()=>{Q5=T0(),F1=P0(),A$=o7(),F5=e7(),K5=J2(),U5=K2();E5=F1.create,O5=Y2().toCanvas});
|
|
15
|
-
export{T5 as Ie,X5 as Je};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Mi as H,Oi as C}from"./cli-1.1.11-qy572ahv.mjs";import{Pi as k,Qi as y}from"./cli-1.1.11-t6xvy5kh.mjs";import{v4 as G,w4 as m}from"./cli-1.1.11-se1r4vmz.mjs";import{D4 as X,F4 as Y,K4 as R}from"./cli-1.1.11-4a4wbqs3.mjs";import{M4 as B,N4 as f}from"./cli-1.1.11-re35m5b2.mjs";import{I8 as w,X8 as E}from"./cli-1.1.11-ytd49283.mjs";import{Jga as Q,Nea as S,Qea as j,Rga as D,jfa as x}from"./cli-1.1.11-yz3byxtx.mjs";import{Jja as V,Kja as b}from"./cli-1.1.11-17j0yz1c.mjs";import{gsa as W,ysa as I}from"./cli-1.1.11-yx7hmc5y.mjs";import{_sa as Z}from"./cli-1.1.11-s5fsvj2a.mjs";async function _(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests`;return(await W.post(J,L,{headers:K})).data}async function $(L,N){let{accessToken:P,orgUUID:K}=await X(),J={...Y(P),"x-organization-uuid":K},F=`${V().BASE_API_URL}/api/oauth/organizations/${K}/admin_requests/me?request_type=${L}`;for(let v of N)F+=`&statuses=${v}`;return(await W.get(F,{headers:J})).data}async function z(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests/eligibility?request_type=${L}`;return(await W.get(J,{headers:K})).data}var M=Z(()=>{I();b();R()});async function i(){if(!j().hasVisitedExtraUsage)S((J)=>({...J,hasVisitedExtraUsage:!0}));H();let L=w(),N=L==="team"||L==="enterprise";if(!G()&&N){let J;try{J=(await k())?.extra_usage}catch(F){Q(F)}if(J?.is_enabled&&J.monthly_limit===null)return{type:"message",value:"Your organization already has unlimited extra usage. No request needed."};try{if((await z("limit_increase"))?.is_allowed===!1)return{type:"message",value:"Please contact your admin to manage extra usage settings."}}catch(F){Q(F)}try{let F=await $("limit_increase",["pending","dismissed"]);if(F&&F.length>0)return{type:"message",value:"You have already submitted a request for extra usage to your admin."}}catch(F){Q(F)}try{return await _({request_type:"limit_increase",details:null}),{type:"message",value:J?.is_enabled?"Request sent to your admin to increase extra usage.":"Request sent to your admin to enable extra usage."}}catch(F){Q(F)}return{type:"message",value:"Please contact your admin to manage extra usage settings."}}let K=N?"https://claude.ai/admin-settings/usage":"https://claude.ai/settings/usage";try{let J=await B(K);return{type:"browser-opened",url:K,opened:J}}catch(J){return Q(J),{type:"message",value:`Failed to open browser. Please visit ${K} to manage extra usage.`}}}var A=Z(()=>{M();C();y();E();m();f();x();D()});
|
|
2
|
-
export{i as Ji,A as Ki};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import{K7 as x,Q7 as K}from"./cli-1.1.11-ytd49283.mjs";import{Qda as w,Zda as J}from"./cli-1.1.11-yz3byxtx.mjs";import{$ha as I,Pha as v}from"./cli-1.1.11-4x7gdf33.mjs";import{Jla as G,zla as q}from"./cli-1.1.11-8vmf6185.mjs";import{_sa as z}from"./cli-1.1.11-s5fsvj2a.mjs";function W(h){return h.type==="advisor_tool_result"||h.type==="server_tool_use"&&h.name==="advisor"}function j(){return v("tengu_sage_compass",{})}function k(){if(q(process.env.CLAUDE_CODE_DISABLE_ADVISOR_TOOL))return!1;if(!x())return!1;return j().enabled??!1}function N(){return k()&&(j().canUserConfigure??!1)}function X(){let h=j();return k()&&!N()&&h.baseModel&&h.advisorModel?{baseModel:h.baseModel,advisorModel:h.advisorModel}:void 0}function Z(h){let b=h.toLowerCase();return b.includes("opus-5")||b.includes("opus-4-8")||b.includes("opus-4-7")||b.includes("opus-4-6")||b.includes("sonnet-5")||b.includes("sonnet-4-6")}function $(h){let b=h.toLowerCase();return b.includes("opus-5")||b.includes("opus-4-8")||b.includes("opus-4-7")||b.includes("opus-4-6")||b.includes("sonnet-5")||b.includes("sonnet-4-6")}function B(){if(!k())return;return w().advisorModel}function D(h){let b=h.iterations;if(!b)return[];return b.filter((y)=>y.type==="advisor_message")}var F=`# Advisor Tool
|
|
2
|
-
|
|
3
|
-
You have access to an \`advisor\` tool backed by a stronger reviewer model. It takes NO parameters -- when you call it, your entire conversation history is automatically forwarded. The advisor sees the task, every tool call you've made, every result you've seen.
|
|
4
|
-
|
|
5
|
-
Call advisor BEFORE substantive work -- before writing code, before committing to an interpretation, before building on an assumption. If the task requires orientation first (finding files, reading code, seeing what's there), do that, then call advisor. Orientation is not substantive work. Writing, editing, and declaring an answer are.
|
|
6
|
-
|
|
7
|
-
Also call advisor:
|
|
8
|
-
- When you believe the task is complete. BEFORE this call, make your deliverable durable: write the file, stage the change, save the result. The advisor call takes time; if the session ends during it, a durable result persists and an unwritten one doesn't.
|
|
9
|
-
- When stuck -- errors recurring, approach not converging, results that don't fit.
|
|
10
|
-
- When considering a change of approach.
|
|
11
|
-
|
|
12
|
-
On tasks longer than a few steps, call advisor at least once before committing to an approach and once before declaring done. On short reactive tasks where the next action is dictated by tool output you just read, you don't need to keep calling -- the advisor adds most of its value on the first call, before the approach crystallizes.
|
|
13
|
-
|
|
14
|
-
Give the advice serious weight. If you follow a step and it fails empirically, or you have primary-source evidence that contradicts a specific claim (the file says X, the code does Y), adapt. A passing self-test is not evidence the advice is wrong -- it's evidence your test doesn't check what the advice is checking.
|
|
15
|
-
|
|
16
|
-
If you've already retrieved data pointing one way and the advisor points another: don't silently switch. Surface the conflict in one more advisor call -- "I found X, you suggest Y, which constraint breaks the tie?" The advisor saw your evidence but may have underweighted it; a reconcile call is cheaper than committing to the wrong branch.`;var O=z(()=>{I();K();G();J()});
|
|
17
|
-
export{W as aV,k as bV,N as cV,X as dV,Z as eV,$ as fV,B as gV,D as hV,F as iV,O as jV};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Zsa as Q,_sa as U}from"./cli-1.1.11-s5fsvj2a.mjs";var w={};Q(w,{default:()=>x,createSupportsColor:()=>K});import M from"node:process";import V from"node:os";import O from"node:tty";function z(q,B=globalThis.Deno?globalThis.Deno.args:M.argv){let D=q.startsWith("-")?"":q.length===1?"-":"--",E=B.indexOf(D+q),G=B.indexOf("--");return E!==-1&&(G===-1||E<G)}function X(){if(!("FORCE_COLOR"in j))return;if(j.FORCE_COLOR==="true")return 1;if(j.FORCE_COLOR==="false")return 0;if(j.FORCE_COLOR.length===0)return 1;let q=Math.min(Number.parseInt(j.FORCE_COLOR,10),3);if(![0,1,2,3].includes(q))return;return q}function Z(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function $(q,{streamIsTTY:B,sniffFlags:D=!0}={}){let E=X();if(E!==void 0)H=E;let G=D?H:E;if(G===0)return 0;if(D){if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2}if("TF_BUILD"in j&&"AGENT_NAME"in j)return 1;if(q&&!B&&G===void 0)return 0;let J=G||0;if(j.TERM==="dumb")return J;if(M.platform==="win32"){let A=V.release().split(".");if(Number(A[0])>=10&&Number(A[2])>=10586)return Number(A[2])>=14931?3:2;return 1}if("CI"in j){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((A)=>(A in j)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((A)=>(A in j))||j.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in j)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(j.TEAMCITY_VERSION)?1:0;if(j.COLORTERM==="truecolor")return 3;if(j.TERM==="xterm-kitty")return 3;if(j.TERM==="xterm-ghostty")return 3;if(j.TERM==="wezterm")return 3;if("TERM_PROGRAM"in j){let A=Number.parseInt((j.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(j.TERM_PROGRAM){case"iTerm.app":return A>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(j.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(j.TERM))return 1;if("COLORTERM"in j)return 1;return J}function K(q,B={}){let D=$(q,{streamIsTTY:q&&q.isTTY,...B});return Z(D)}var j,H,b,x;var L=U(()=>{({env:j}=M);if(z("no-color")||z("no-colors")||z("color=false")||z("color=never"))H=0;else if(z("color")||z("colors")||z("color=true")||z("color=always"))H=1;b={stdout:K({isTTY:O.isatty(1)}),stderr:K({isTTY:O.isatty(2)})},x=b});
|
|
2
|
-
export{K as Hsa,w as Isa,L as Jsa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{DZ as u,H1 as a,P0 as QQ,Q0 as uQ,a1 as g,c1 as h,i1 as RQ,r1 as jQ,s1 as aQ,w1 as d}from"./cli-1.1.11-23hz9e80.mjs";import{k4 as K,l4 as k,m4 as f}from"./cli-1.1.11-dzq0mt2q.mjs";import{n4 as v}from"./cli-1.1.11-d8vrh841.mjs";import{D4 as n,F4 as t,K4 as YV}from"./cli-1.1.11-4a4wbqs3.mjs";import{C8 as $Q,F8 as P,I8 as pQ,X8 as XV}from"./cli-1.1.11-ytd49283.mjs";import{Jga as CQ,Nea as mQ,Qea as b,Rga as VV,jea as fQ,jfa as QV,kea as eQ}from"./cli-1.1.11-yz3byxtx.mjs";import{Wga as AQ,Xga as sQ}from"./cli-1.1.11-x2px8b33.mjs";import{Jja as r,Kja as nQ}from"./cli-1.1.11-17j0yz1c.mjs";import{Oka as E,Rka as iQ}from"./cli-1.1.11-1jp85542.mjs";import{gsa as i,ysa as tQ}from"./cli-1.1.11-yx7hmc5y.mjs";import{Wsa as S,_sa as F}from"./cli-1.1.11-s5fsvj2a.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=S(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 JQ=()=>{};function GQ(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 yQ(X){if(X===" ")return[GQ("space")];return X.trim().split(/\s+/).map(GQ)}function hQ(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=kQ(X.key);return Q.push(V),Q.join("+")}function kQ(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 l(X){return X.map(hQ).join(" ")}function BV(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:yQ(Z),action:Y,context:V.context});return Q}var qQ=()=>{};function LQ(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?l(Z.chord):void 0}function gQ(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 lQ(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 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 zQ(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let J=gQ(X,Q);if(!J){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let G=Y?[...Y,J]:[J],q=new Set(V),B=Z.filter((L)=>q.has(L.context)),z=new Map;for(let L of B)if(L.chord.length>G.length&&lQ(G,L))z.set(l(L.chord),L.action);let N=!1;for(let L of z.values())if(L!==null){N=!0;break}if(N)return{type:"chord_started",pending:G};let H;for(let L of B)if(cQ(G,L))H=L;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 BQ=F(()=>{JQ();qQ()});function SV(X){let Q=c.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:J,activeContexts:G,registerActiveContext:q,unregisterActiveContext:B,handlerRegistryRef:z,children:N}=X,H;if(Q[0]!==V)H=(U,O)=>LQ(U,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let L=H,_;if(Q[2]!==z)_=(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 M=O.get(U.action);if(M){if(M.delete(U),M.size===0)O.delete(U.action)}}},Q[2]=z,Q[3]=_;else _=Q[3];let p=_,D;if(Q[4]!==G||Q[5]!==z)D=(U)=>{let O=z.current;if(!O)return!1;let M=O.get(U);if(!M||M.size===0)return!1;for(let e of M)if(G.has(e.context))return e.handler(),!0;return!1},Q[4]=G,Q[5]=z,Q[6]=D;else D=Q[6];let I=D,j;if(Q[7]!==V||Q[8]!==Z)j=(U,O,M)=>zQ(U,O,M,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=j;else j=Q[9];let A;if(Q[10]!==G||Q[11]!==V||Q[12]!==L||Q[13]!==I||Q[14]!==Y||Q[15]!==q||Q[16]!==p||Q[17]!==J||Q[18]!==j||Q[19]!==B)A={resolve:j,setPendingChord:J,getDisplayText:L,bindings:V,pendingChord:Y,activeContexts:G,registerActiveContext:q,unregisterActiveContext:B,registerHandler:p,invokeAction:I},Q[10]=G,Q[11]=V,Q[12]=L,Q[13]=I,Q[14]=Y,Q[15]=q,Q[16]=p,Q[17]=J,Q[18]=j,Q[19]=B,Q[20]=A;else A=Q[20];let w=A,W;if(Q[21]!==N||Q[22]!==w)W=K(NQ.Provider,{value:w,children:N}),Q[21]=N,Q[22]=w,Q[23]=W;else W=Q[23];return W}function dQ(){}function y(){return m.useContext(NQ)}function KV(X,Q){let V=c.c(5),Z=Q===void 0?!0:Q,Y=y(),J,G;if(V[0]!==X||V[1]!==Z||V[2]!==Y)J=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},G=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=J,V[4]=G;else J=V[3],G=V[4];m.useLayoutEffect(J,G)}var c,m,NQ;var UQ=F(()=>{BQ();f();c=S(u(),1),m=S(v(),1),NQ=m.createContext(null)});function TV(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,J=y();C.useEffect(()=>{if(!J||!Y)return;return J.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,J,Y]);let G=C.useCallback((q,B,z)=>{if(!J)return;let N=[...J.activeContexts,Z,"Global"],H=[...new Set(N)],L=J.resolve(q,B,H);switch(L.type){case"match":if(J.setPendingChord(null),L.action===X){if(Q()!==!1)z.stopImmediatePropagation()}break;case"chord_started":J.setPendingChord(L.pending),z.stopImmediatePropagation();break;case"chord_cancelled":J.setPendingChord(null);break;case"unbound":J.setPendingChord(null),z.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,J]);d(G,{isActive:Y})}function OQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=y();C.useEffect(()=>{if(!Y||!Z)return;let G=[];for(let[q,B]of Object.entries(X))G.push(Y.registerHandler({action:q,context:V,handler:B}));return()=>{for(let q of G)q()}},[V,X,Y,Z]);let J=C.useCallback((G,q,B)=>{if(!Y)return;let z=[...Y.activeContexts,V,"Global"],N=[...new Set(z)],H=Y.resolve(G,q,N);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let L=X[H.action];if(L&&L()!==!1)B.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),B.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),B.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);d(J,{isActive:Z})}var C;var _Q=F(()=>{a();UQ();C=S(v(),1)});function o(X,Q,V){let Z=R.useRef(0),Y=R.useRef(void 0),J=R.useCallback(()=>{if(Y.current)clearTimeout(Y.current),Y.current=void 0},[]);return R.useEffect(()=>{return()=>{J()}},[J]),R.useCallback(()=>{let G=Date.now();if(G-Z.current<=FQ&&Y.current!==void 0)J(),X(!1),Q();else V?.(),X(!0),J(),Y.current=setTimeout((z,N)=>{z(!1),N.current=void 0},FQ,X,Y);Z.current=G},[X,Q,V,J])}var R,FQ=800;var WQ=F(()=>{R=S(v(),1)});function wQ(X,Q,V,Z=!0){let{exit:Y}=jQ(),[J,G]=T.useState({pending:!1,keyName:null}),q=T.useMemo(()=>V??Y,[V,Y]),B=o((_)=>G({pending:_,keyName:"Ctrl-C"}),q),z=o((_)=>G({pending:_,keyName:"Ctrl-D"}),q),N=T.useCallback(()=>{if(Q?.())return;B()},[B,Q]),H=T.useCallback(()=>{z()},[z]),L=T.useMemo(()=>({"app:interrupt":N,"app:exit":H}),[N,H]);return X(L,{context:"Global",isActive:Z}),J}var T;var SQ=F(()=>{aQ();WQ();T=S(v(),1)});function $V(X,Q,V){return wQ(OQ,Q,X,V)}var oQ=F(()=>{_Q();SQ()});function MQ(){return $.useContext(s)!==null}function xV(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 bV(){return $.useContext(s)?.scrollRef??null}var KQ,$,s;var IQ=F(()=>{KQ=S(u(),1),$=S(v(),1),s=$.createContext(null)});function DQ(X){let Q=TQ.c(21),{width:V,color:Z,char:Y,padding:J,title:G}=X,q=Y===void 0?"─":Y,B=J===void 0?0:J,{columns:z}=XQ(),N=Math.max(0,(V??z)-B);if(G){let p=AQ(G)+2,D=Math.max(0,N-p),I=Math.floor(D/2),j=D-I,A=!Z,w;if(Q[0]!==q||Q[1]!==I)w=q.repeat(I),Q[0]=q,Q[1]=I,Q[2]=w;else w=Q[2];let W;if(Q[3]!==G)W=K(h,{dimColor:!0,children:K(RQ,{children:G})}),Q[3]=G,Q[4]=W;else W=Q[4];let U;if(Q[5]!==q||Q[6]!==j)U=q.repeat(j),Q[5]=q,Q[6]=j,Q[7]=U;else U=Q[7];let O;if(Q[8]!==Z||Q[9]!==A||Q[10]!==w||Q[11]!==W||Q[12]!==U)O=k(h,{color:Z,dimColor:A,children:[w," ",W," ",U]}),Q[8]=Z,Q[9]=A,Q[10]=w,Q[11]=W,Q[12]=U,Q[13]=O;else O=Q[13];return O}let H=!Z,L;if(Q[14]!==q||Q[15]!==N)L=q.repeat(N),Q[14]=q,Q[15]=N,Q[16]=L;else L=Q[16];let _;if(Q[17]!==Z||Q[18]!==H||Q[19]!==L)_=K(h,{color:Z,dimColor:H,children:L}),Q[17]=Z,Q[18]=H,Q[19]=L,Q[20]=_;else _=Q[20];return _}var TQ;var EQ=F(()=>{YQ();sQ();a();f();TQ=S(u(),1)});function oV(X){let Q=PQ.c(9),{children:V,color:Z}=X;if(MQ()){let q;if(Q[0]!==V)q=K(g,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=q;else q=Q[1];return q}let Y;if(Q[2]!==Z)Y=K(DQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let J;if(Q[4]!==V)J=K(g,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=J;else J=Q[5];let G;if(Q[6]!==Y||Q[7]!==J)G=k(g,{flexDirection:"column",paddingTop:1,children:[Y,J]}),Q[6]=Y,Q[7]=J,Q[8]=G;else G=Q[8];return G}var PQ;var rQ=F(()=>{IQ();a();EQ();f();PQ=S(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 bQ(){return!!(P()?.organizationUuid&&$Q()&&pQ()==="max")}function JX(){if(!bQ())return{eligible:!1,needsRefresh:!1,hasCache:!1};let X=P()?.organizationUuid;if(!X)return{eligible:!1,needsRefresh:!1,hasCache:!1};let V=b().passesEligibilityCache?.[X];if(!V)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Z,timestamp:Y}=V,G=Date.now()-Y>xQ;return{eligible:Z,needsRefresh:G,hasCache:!0}}function GX(X){let Q=JV[X.currency]??`${X.currency} `,V=X.amount_minor_units/100,Z=V%1===0?V.toString():V.toFixed(2);return`${Q}${Z}`}function qX(){let X=P()?.organizationUuid;if(!X)return null;return b().passesEligibilityCache?.[X]?.referrer_reward??null}function LX(){let X=P()?.organizationUuid;if(!X)return null;return b().passesEligibilityCache?.[X]?.remaining_passes??null}async function vQ(){if(x)return E("Passes: Reusing in-flight eligibility fetch"),x;let X=P()?.organizationUuid;if(!X)return null;return x=(async()=>{try{let Q=await ZV(),V={...Q,timestamp:Date.now()};return mQ((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{x=null}})(),x}async function GV(){if(!bQ())return null;let X=P()?.organizationUuid;if(!X)return null;let V=b().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>xQ){E("Passes: Cache stale, returning cached data and refreshing in background"),vQ();let{timestamp:G,...q}=V;return q}E("Passes: Using fresh cached eligibility data");let{timestamp:Y,...J}=V;return J}async function HX(){if(fQ())return;GV()}var xQ=86400000,x=null,JV;var qV=F(()=>{tQ();nQ();XV();QV();iQ();VV();eQ();YV();JV={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
|
|
2
|
-
export{XQ as nY,YQ as oY,GQ as pY,yQ as qY,l as rY,BV as sY,qQ as tY,LQ as uY,zQ as vY,BQ as wY,SV as xY,y as yY,KV as zY,UQ as AY,TV as BY,OQ as CY,_Q as DY,o as EY,WQ as FY,$V as GY,oQ as HY,s as IY,MQ as JY,xV as KY,bV as LY,IQ as MY,DQ as NY,EQ as OY,oV as PY,rQ as QY,ZX as RY,JX as SY,GX as TY,qX as UY,LX as VY,GV as WY,HX as XY,qV as YY};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{C2 as VJ,z2 as qJ}from"./cli-1.1.11-azaecepr.mjs";import{Bba as jJ,Jga as q,Nea as U,O$ as YJ,P$ as TJ,P_ as W,Q_ as f,Qda as $J,Rga as u,Zda as AJ,jfa as m,sba as y,uba as E,zba as ZJ}from"./cli-1.1.11-yz3byxtx.mjs";import{Lja as F,Oja as NJ}from"./cli-1.1.11-nnxrj2y7.mjs";import{Aka as w,Eka as D,Oka as K,Rka as xJ,rka as b,ska as N,wka as P}from"./cli-1.1.11-1jp85542.mjs";import{Yka as QJ,nla as M,ola as v,rla as n,tla as j}from"./cli-1.1.11-sph0eaqc.mjs";import{Jla as k,wla as O}from"./cli-1.1.11-8vmf6185.mjs";import{_sa as T}from"./cli-1.1.11-s5fsvj2a.mjs";import{access as d,chmod as vJ,writeFile as RJ}from"fs/promises";import{homedir as h}from"os";import{join as B}from"path";function A(){return B(O(),"local")}function _J(J=h()){return B(J,".claude","local")}function p(J){let Q=J?.homeDir??h(),Y=J?.configHomeDir??O();return Array.from(new Set([B(Y,"local"),_J(Q)]))}function c(J){return[B(J,"node_modules",".bin","claudin"),B(J,"node_modules",".bin","claude")]}function GJ(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function V(){return B(A(),"claudin")}function rJ(){return GJ(y())}async function I(J,Q,Y){try{return await RJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(M(Z)==="EEXIST")return!1;throw Z}}async function OJ(){try{let J=A();await w().mkdir(J),await I(B(J,"package.json"),b({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=V();if(await I(Q,`#!/bin/sh
|
|
2
|
-
exec "${J}/node_modules/.bin/claudin" "$@"`,493))await vJ(Q,493);return!0}catch(J){return q(J),!1}}async function JQ(J,Q){try{if(!await OJ())return"install_failed";let Z=await W("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:A(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return U(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function QQ(){for(let J of p())for(let Q of c(J))try{return await d(Q),!0}catch{}return!1}async function YQ(){for(let J of p())for(let Q of c(J))try{return await d(Q),J}catch{}return null}function ZQ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var g=T(()=>{E();m();k();j();f();D();u();P()});import{open as MJ,readFile as wJ,stat as yJ}from"fs/promises";import{homedir as t}from"os";import{join as C}from"path";function S(J){let Q=J?.homedir??t(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:C(Z,".zshrc"),bash:C(Q,".bashrc"),fish:C(Q,".config/fish/config.fish")}}function a(J){let Q=!1;return{filtered:J.filter((Z)=>{if(s.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===V())return Q=!0,!1}}return!0}),hadAlias:Q}}async function L(J){try{return(await wJ(J,{encoding:"utf8"})).split(`
|
|
3
|
-
`)}catch(Q){if(n(Q))return null;throw Q}}async function l(J,Q){let Y=await MJ(J,"w");try{await Y.writeFile(Q.join(`
|
|
4
|
-
`),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function UJ(J){let Q=S(J);for(let Y of Object.values(Q)){let Z=await L(Y);if(!Z)continue;for(let $ of Z)if(s.test($)){let X=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(X&&X[1])return X[1]}}return null}async function HQ(J){let Q=await UJ(J);if(!Q)return null;let Y=J?.homedir??t(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await yJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var s;var o=T(()=>{j();g();s=/^\s*alias\s+claude\s*=/});import{constants as KJ}from"fs";import{access as WJ,readFile as CJ,stat as SJ,writeFile as i}from"fs/promises";import{homedir as z}from"os";import{join as H}from"path";function LJ(){let J=y();if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}function XJ(){return LJ()?"bun":"npm"}function zJ(){let J=process.env.BUN_INSTALL||H(z(),".bun");return H(J,"install","global","node_modules","@claudiolabs/claudin")}async function kJ(){let J=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(J.code!==0)return null;let Q=J.stdout.trim();if(!Q)return null;return YJ()==="windows"?H(Q,"node_modules","@claudiolabs/claudin"):H(Q,"lib","node_modules","@claudiolabs/claudin")}async function e(J){try{let Q=await CJ(H(J,"package.json"),"utf8"),Y=N(Q);return typeof Y.version==="string"?Y.version:null}catch(Q){if(!v(Q))q(Q);return null}}function r(J){return J==="bun"?Promise.resolve(zJ()):kJ()}async function bJ(J,Q,Y){let Z=J==="npm"?"bun":"npm",$=await r(Z);if(!$)return;let X=await e($);if(!X)return;let _=await r(J),G=_?await e(_):null;if(G&&X===G)return;K(`update: repairing stale ${Z} install ${X} at ${$}`);let x=await W(Z,Z==="npm"?["install","-g","--force",Q]:["install","-g",Q],{cwd:z()});if(x.code!==0){q(new R(`Failed to refresh the ${Z} global install at ${$}: ${x.stdout} ${x.stderr}`));return}if(Z==="bun")await HJ();Y?.(`Repaired old version ${X} at ${$}`)}async function PJ(J,Q){let Y=await W("node",[J],{cwd:Q});if(Y.code===0)return!0;if(!IJ.test(Y.error??""))return q(new R(`Skipped postinstall failed under node: ${Y.stdout} ${Y.stderr}`)),!1;let Z=await W("bun",[J],{cwd:Q});if(Z.code===0)return!0;return q(new R(`Skipped postinstall failed under bun: ${Z.stdout} ${Z.stderr}`)),!1}async function HJ(){let J=zJ(),Q=H(J,"install.cjs"),Y=H(J,"bin","claudin.exe");try{await WJ(Q,KJ.F_OK)}catch(Z){if(!v(Z))q(Z);return!1}try{if((await SJ(Y)).size>FJ)return!1}catch(Z){if(!v(Z))return q(Z),!1}if(!await PJ(Q,J))return!1;return K("update: repaired Bun global launcher via install.cjs"),!0}async function IQ(){}async function kQ(){return}async function bQ(){return}function PQ(J){let Y=$J()?.minimumVersion;if(!Y)return!1;let Z=!qJ(J,Y);if(Z)K(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function BJ(){return H(O(),".update.lock")}async function DJ(){let J=w(),Q=BJ();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<JJ)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<JJ)return!1;await J.unlink(Q)}catch($){if(!v($))return q($),!1}}catch(Y){if(!v(Y))return q(Y),!1}try{return await i(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=M(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(O()),await i(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(M($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function fJ(){let J=w(),Q=BJ();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(v(Y))return;q(Y)}}async function EJ(){let J=XJ()==="bun",Q=null;if(J)Q=await W("bun",["pm","bin","-g"],{cwd:z()});else Q=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function mJ(){try{let J=await EJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await WJ(J,KJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new R("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function DQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await W("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:z()});if($.code!==0){if(K(`npm view failed with code ${$.code}`),$.stderr)K(`npm stderr: ${$.stderr.trim()}`);else K("npm stderr: (empty)");if($.stdout)K(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function fQ(){let J=await W("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:z()});if(J.code!==0)return K(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=N(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return K(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function EQ(J){return null}async function mQ(){return{latest:null,stable:null}}async function uQ(J){let Y=await W("npm",["view","@claudiolabs/claudin","versions","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(30000),cwd:z()});if(Y.code!==0){if(K(`npm view versions failed with code ${Y.code}`),Y.stderr)K(`npm stderr: ${Y.stderr.trim()}`);return[]}try{return N(Y.stdout.trim()).slice(-J).reverse()}catch(Z){return K(`Failed to parse version history: ${Z}`),[]}}async function dQ(J,Q){if(!await DJ())return q(new R("Another process is currently installing an update")),F("tengu_auto_updater_lock_contention",{pid:process.pid,currentVersion:"99.0.0"}),"in_progress";try{await uJ();let Y=XJ();if(Y==="npm"&&ZJ.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),F("tengu_auto_updater_windows_npm_in_wsl",{currentVersion:"99.0.0"}),console.error(`
|
|
5
|
-
Error: Windows NPM detected in WSL
|
|
6
|
-
|
|
7
|
-
You're running Claude Code in WSL but using the Windows NPM installation from /mnt/c/.
|
|
8
|
-
This configuration is not supported for updates.
|
|
9
|
-
|
|
10
|
-
To fix this issue:
|
|
11
|
-
1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
|
|
12
|
-
2. Make sure Linux NPM is in your PATH before the Windows version
|
|
13
|
-
3. Try updating again with 'claude update'
|
|
14
|
-
`),"install_failed";let{hasPermissions:Z}=await mJ();if(!Z)return"no_permissions";let $=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",_=await W(Y,Y==="npm"?["install","-g","--force",$]:["install","-g",$],{cwd:z()});if(_.code!==0){let G=new R(`Failed to install new version of claude: ${_.stdout} ${_.stderr}`);return q(G),"install_failed"}return await HJ(),await bJ(Y,$,Q?.onProgress),U((G)=>({...G,installMethod:"global"})),"success"}finally{await fJ()}}async function uJ(){let J=S();for(let[,Q]of Object.entries(J))try{let Y=await L(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=a(Y);if($)await l(Q,Z),K(`Removed claude alias from ${Q}`)}catch(Y){K(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var R,FJ=4096,IJ,JJ=300000;var dJ=T(()=>{NJ();E();m();xJ();jJ();k();j();f();D();u();TJ();VJ();AJ();o();P();R=class R extends QJ{};IJ=/ENOENT/i});
|
|
15
|
-
export{rJ as uU,JQ as vU,QQ as wU,YQ as xU,ZQ as yU,g as zU,S as AU,a as BU,L as CU,l as DU,UJ as EU,HQ as FU,o as GU,zJ as HU,HJ as IU,IQ as JU,kQ as KU,bQ as LU,PQ as MU,BJ as NU,mJ as OU,DQ as PU,fQ as QU,EQ as RU,mQ as SU,uQ as TU,dQ as UU,dJ as VU};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Xo as Z,ap as G}from"./cli-1.1.11-y8jb9ka1.mjs";import{Jga as X,Rga as R}from"./cli-1.1.11-yz3byxtx.mjs";import{Aka as C,Eka as M,Oka as U,Rka as O,rka as v,ska as B,wka as A}from"./cli-1.1.11-1jp85542.mjs";import{_sa as b}from"./cli-1.1.11-s5fsvj2a.mjs";import{randomBytes as L}from"crypto";import{readFile as N,rename as S,unlink as T,writeFile as _}from"fs/promises";import{join as E}from"path";function Y(){return E(Z(),j)}function k(q){let x=B(q);if(typeof x!=="object"||x===null||!("plugins"in x)||typeof x.plugins!=="object"||x.plugins===null)return{};let z=x.plugins,J={};for(let[Q,K]of Object.entries(z))if(K&&typeof K==="object"&&"flaggedAt"in K&&typeof K.flaggedAt==="string"){let $={flaggedAt:K.flaggedAt};if("seenAt"in K&&typeof K.seenAt==="string")$.seenAt=K.seenAt;J[Q]=$}return J}async function V(){try{let q=await N(Y(),{encoding:"utf-8"});return k(q)}catch{return{}}}async function W(q){let x=Y(),z=`${x}.${L(8).toString("hex")}.tmp`;try{await C().mkdir(Z());let J=v({plugins:q},null,2);await _(z,J,{encoding:"utf-8",mode:384}),await S(z,x),H=q}catch(J){X(J);try{await T(z)}catch{}}}async function o(){let q=await V(),x=Date.now(),z=!1;for(let[J,Q]of Object.entries(q))if(Q.seenAt&&x-new Date(Q.seenAt).getTime()>=f)delete q[J],z=!0;if(H=q,z)await W(q)}function c(){return H??{}}async function p(q){if(H===null)H=await V();let x={...H,[q]:{flaggedAt:new Date().toISOString()}};await W(x),U(`Flagged plugin: ${q}`)}async function d(q){if(H===null)H=await V();let x=new Date().toISOString(),z=!1,J={...H};for(let Q of q){let K=J[Q];if(K&&!K.seenAt)J[Q]={...K,seenAt:x},z=!0}if(z)await W(J)}async function g(q){if(H===null)H=await V();if(!(q in H))return;let{[q]:x,...z}=H;H=z,await W(z)}var j="flagged-plugins.json",f=172800000,H=null;var w=b(()=>{O();M();R();A();G()});
|
|
2
|
-
export{o as ud,c as vd,p as wd,d as xd,g as yd,w as zd};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Hfa as f,Nea as M,Qea as L,ifa as G,jfa as h,nfa as v,ofa as P,vfa as k}from"./cli-1.1.11-yz3byxtx.mjs";import{Bja as E,Kja as x}from"./cli-1.1.11-17j0yz1c.mjs";import{Jla as u,wla as T}from"./cli-1.1.11-8vmf6185.mjs";import{_sa as C}from"./cli-1.1.11-s5fsvj2a.mjs";import{chmodSync as K,cpSync as S,existsSync as V,mkdirSync as m,readFileSync as _,readdirSync as w,statSync as D,writeFileSync as O}from"fs";import{homedir as R}from"os";import{join as Y}from"path";function b(j){return Y(j,".claude")}function A(j){try{let q=_(j,"utf8"),B=JSON.parse(q);if(B&&typeof B==="object"&&!Array.isArray(B))return B;return null}catch{return null}}function F(j,q){O(j,JSON.stringify(q,null,2),{encoding:"utf8"})}function $(j){m(j,{recursive:!0})}function l(j,q,B,Q){let z=Y(j,".credentials.json"),I=Y(q,".credentials.json");if(!V(z))return 0;try{if(V(I)){let W=_(z),X=_(I);if(W.equals(X))return K(I,384),0;return Q.push(`${I} already exists with different content — kept new file untouched`),0}$(q);let N=_(z);return O(I,N),K(I,384),d(N)}catch(N){return B.push(`failed to copy .credentials.json: ${N instanceof Error?N.message:String(N)}`),0}}function d(j){try{let q=JSON.parse(j.toString("utf8"));if(q&&typeof q==="object")return Object.keys(q).length}catch{}return 1}function y(j,q,B){let Q=Y(j,"CLAUDE.md"),z=Y(q,"CLAUDE.md");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy CLAUDE.md: ${I instanceof Error?I.message:String(I)}`),!1}}function c(j,q,B){let Q=Y(j,"keybindings.json"),z=Y(q,"keybindings.json");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy keybindings.json: ${I instanceof Error?I.message:String(I)}`),!1}}function H(j,q,B,Q){let z=Y(j,B),I=Y(q,B);if(!V(z))return 0;let N=0;try{if(!D(z).isDirectory())return 0;$(q),S(z,I,{recursive:!0,force:!1,errorOnExist:!1}),N=p(I)}catch(W){Q.push(`failed to copy ${B}/: ${W instanceof Error?W.message:String(W)}`)}return N}function p(j){try{if(!V(j))return 0;return w(j).length}catch{return 0}}function a(j,q,B){let Q=Y(j,"settings.json");if(!V(Q))return 0;let z=A(Q);if(!z)return B.push("legacy settings.json could not be parsed; skipped"),0;let I=Y(q,"settings.json"),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of g){if(!(U in z))continue;if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{$(q),F(I,W)}catch(U){return B.push(`failed to write settings.json: ${U instanceof Error?U.message:String(U)}`),0}return X}function J(j){return Y(j,`.claude${E()}.json`)}function n(j){return Y(j,`config${E()}.json`)}function t(j,q,B){let Q=J(j);if(!V(Q))return 0;let z=A(Q);if(!z)return B.push(`legacy ${Q} could not be parsed; skipped`),0;let I=n(q),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of Object.keys(z)){if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{F(I,W)}catch(U){return B.push(`failed to write ${I}: ${U instanceof Error?U.message:String(U)}`),0}return G(null),X}function o(){let q=L().claudeToClaudinMigratedAt;if(typeof q==="string"&&q.length>0)return{migrated:!0,at:q};return{migrated:!1}}function s(j){M((q)=>({...q,claudeToClaudinMigratedAt:j}))}async function Vj(j={}){let q=j.homeDir??R(),B=b(q),Q=j.newDir??T(),z=[],I=[],N={tokens:0,settingsKeys:0,globalConfigKeys:0,claudeMd:!1,plugins:0,skills:0,agents:0,commands:0,keybindings:!1,anthropicProfileCreated:!1,errors:z,warnings:I,alreadyMigrated:!1,legacyDir:B,newDir:Q},W=V(J(q));if(!V(B)&&!W)return N;let X=o();if(X.migrated&&!j.force)return N.alreadyMigrated=!0,N.migratedAt=X.at,N;try{$(Q)}catch(U){return z.push(`failed to create ${Q}: ${U instanceof Error?U.message:String(U)}`),N}if(V(B))N.tokens=l(B,Q,z,I),N.settingsKeys=a(B,Q,z),N.claudeMd=y(B,Q,z),N.plugins=H(B,Q,"plugins",z),N.skills=H(B,Q,"skills",z),N.agents=H(B,Q,"agents",z),N.commands=H(B,Q,"commands",z),N.keybindings=c(B,Q,z);if(N.globalConfigKeys=t(q,Q,I),N.anthropicProfileCreated=i(Q,N.tokens,I),z.length===0){let U=new Date().toISOString();s(U),N.migratedAt=U}return N}function i(j,q,B){if(q<=0)return!1;let Q=Y(j,".credentials.json"),z;try{z=JSON.parse(_(Q,"utf8"))}catch(Z){return B.push(`failed to read migrated .credentials.json for profile bootstrap: ${Z instanceof Error?Z.message:String(Z)}`),!1}let N=z?.claudeAiOauth?.accessToken;if(typeof N!=="string"||N.length===0)return!1;let W=P();if(W.some((Z)=>Z.provider==="anthropic"))return!1;let X=v("anthropic"),U={provider:"anthropic",name:X.name,baseUrl:X.baseUrl,model:X.model};try{if(!k(U,{makeActive:W.length===0}))return B.push("anthropic profile could not be saved after migration"),!1;return!0}catch(Z){return B.push(`failed to create anthropic profile: ${Z instanceof Error?Z.message:String(Z)}`),!1}}function Wj(j){if(j.alreadyMigrated)return`nothing to do (last run: ${j.migratedAt??"unknown"}). Pass --force to re-run.`;let q=[];q.push(`${j.tokens} token${j.tokens===1?"":"s"}`),q.push(`${j.settingsKeys} settings key${j.settingsKeys===1?"":"s"}`),q.push(`${j.globalConfigKeys} global config key${j.globalConfigKeys===1?"":"s"}`),q.push(`${j.claudeMd?1:0} CLAUDE.md`),q.push(`${j.plugins} plugin${j.plugins===1?"":"s"}`),q.push(`${j.skills} skill${j.skills===1?"":"s"}`),q.push(`${j.agents} agent${j.agents===1?"":"s"}`),q.push(`${j.commands} command${j.commands===1?"":"s"}`),q.push(`${j.keybindings?"keybindings copied":"no keybindings"}`),q.push(j.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let B=q.join(", "),Q=`. ${j.legacyDir} kept untouched.`,z=`${B}${Q}`;if(j.warnings.length>0)z+=` Warnings: ${j.warnings.join("; ")}`;if(j.errors.length>0)z+=` Errors: ${j.errors.join("; ")}`;return z}function e(j=R()){return V(b(j))}function r(j=R()){return V(J(j))}function Xj(j=R()){let q=L();if(q.claudeToClaudinMigratedAt)return!1;if(q.legacyMigrationSkipped===!0)return!1;return e(j)||r(j)}function Yj(){M((j)=>({...j,legacyMigrationSkipped:!0}))}var g;var jj=C(()=>{x();h();u();f();g=["theme","model","customApiKeyResponses","permissions","verbose","editorMode","mcpServers","providerProfiles","activeProviderProfileId"]});
|
|
2
|
-
export{Vj as zc,Wj as Ac,e as Bc,Xj as Cc,Yj as Dc,jj as Ec};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Hi as a,Ii as l}from"./cli-1.1.11-xw1gtf4q.mjs";import{Ji as m,Ki as c}from"./cli-1.1.11-gyvneb2n.mjs";import{k4 as e,m4 as n}from"./cli-1.1.11-dzq0mt2q.mjs";import{_sa as s}from"./cli-1.1.11-s5fsvj2a.mjs";async function f(o,r){let t=await m();if(t.type==="message")return o(t.value),null;return e(a,{startingMessage:"Starting new login following /extra-usage. Exit with Ctrl-C to use existing account.",onDone:(i)=>{r.onChangeAPIKey(),o(i?"Login successful":"Login interrupted")}})}var g=s(()=>{l();c();n()});
|
|
2
|
-
export{f as Fi,g as Gi};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_sa as s}from"./cli-1.1.11-s5fsvj2a.mjs";function c(){return"claude-code/99.0.0"}function i(){let e=process.env.CLAUDE_CODE_ENTRYPOINT??"cli",n=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",t=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claudin/1.1.11 (${e}${n}${t})`}var r=()=>{};
|
|
2
|
-
export{c as x4,i as y4,r as z4};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Pd as j,Qd as w,Rd as _,Sd as D,Td as L,Ud as A,Vd as O}from"./cli-1.1.11-vkw5s1rv.mjs";import{LS as h,NS as y,bB as W,eB as V,gB as C,pM as X,pp as R,qM as I,sp as b}from"./cli-1.1.11-y8jb9ka1.mjs";import{Jga as U,Rga as S,x_ as Q,y_ as N}from"./cli-1.1.11-yz3byxtx.mjs";import{Lja as K,Oja as v}from"./cli-1.1.11-nnxrj2y7.mjs";import{Tka as x,Xka as M}from"./cli-1.1.11-ygstc2fh.mjs";import{mla as B,tla as F}from"./cli-1.1.11-sph0eaqc.mjs";N();F();y();S();I();b();M();C();v();O();function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${Q.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=R(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...W(Y,$,X())}})():{};K("tengu_plugin_command_failed",{command:J,error_category:V(z),...H}),process.exit(1)}async function g(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await j(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_installed_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function a(z,J="user",q=!1){try{let G=await w(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${Q.tick} ${G.message}`);let{name:H,marketplace:Y}=R(G.pluginId||z);K("tengu_plugin_uninstalled_cli",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...W(H,Y,X())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function i(z,J){try{let q=await _(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_enabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function u(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_disabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function n(){try{let z=await L();if(!z.success)throw Error(z.message);console.log(`${Q.tick} ${z.message}`),K("tengu_plugin_disabled_all_cli",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function r(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope…
|
|
2
|
-
`);let q=await A(z,J);if(!q.success)throw Error(q.message);if(x(`${Q.tick} ${q.message}
|
|
3
|
-
`),!q.alreadyUpToDate){let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_updated_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},old_version:q.oldVersion||"unknown",new_version:q.newVersion||"unknown",...W(G,H,X())})}await h(0)}catch(q){Z(q,"update",z)}}
|
|
4
|
-
export{g as h,a as i,i as j,u as k,n as l,r as m};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{oJ as Q,rJ as F}from"./cli-1.1.11-y8jb9ka1.mjs";import{Oka as b,Rka as y}from"./cli-1.1.11-1jp85542.mjs";import{ola as x,tla as f}from"./cli-1.1.11-sph0eaqc.mjs";import{Jla as R,wla as w}from"./cli-1.1.11-8vmf6185.mjs";import{mra as K,rna as $,una as j}from"./cli-1.1.11-9q076mg1.mjs";import{_sa as v}from"./cli-1.1.11-s5fsvj2a.mjs";import{statSync as u}from"fs";import{join as Z}from"path";function P(k,q){return`${q} ${k}`}function g(){J.clear()}function C(){return{projectLoopMdPath:Z(j(),".claudin","loop.md"),userLoopMdPath:Z(w(),"loop.md")}}function h(k){for(let q of[k.projectLoopMdPath,k.userLoopMdPath])try{let z=u(q);return`${q}:${z.mtimeMs}:${z.size}`}catch(z){if(!x(z))b(`[loopSentinels] failed to stat ${q}: ${z}`)}return null}function M(k,q,z=m){let B=k.trim();if(B!==Y&&B!==G)return k;let V=h(q??C()),W=P(B,z),H=J.get(W);J.set(W,{firedOnce:!0,loopMdFingerprint:V});let X=H!==void 0&&H.loopMdFingerprint!==V;if(H===void 0||X)return d(B,X);return L(B)}function d(k,q){let z=q?`Note: the loop.md instructions changed since the last tick — re-read them and follow the updated version.
|
|
2
|
-
|
|
3
|
-
`:"",B=k===G?`
|
|
4
|
-
|
|
5
|
-
${c}`:"";return`Scheduled loop tick.
|
|
6
|
-
|
|
7
|
-
${z}${D}${B}`}function L(k){if(k!==G)return"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md).";return`${"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md)."} Then, as the LAST action of the turn, call ${Q} again (prompt: ${G}) to continue the loop, or omit it to end the loop.`}var Y="<<autonomous-loop>>",G="<<autonomous-loop-dynamic>>",D=`Scheduled maintenance loop iteration.
|
|
8
|
-
|
|
9
|
-
If .claudin/loop.md exists, read it and follow it.
|
|
10
|
-
Otherwise, if ~/.claudin/loop.md exists, read it and follow it.
|
|
11
|
-
Otherwise:
|
|
12
|
-
- continue any unfinished work from the conversation
|
|
13
|
-
- tend to the current branch's pull request: review comments, failed CI runs, merge conflicts
|
|
14
|
-
- run cleanup passes such as bug hunts or simplification when nothing else is pending
|
|
15
|
-
|
|
16
|
-
Do not start new initiatives outside that scope.
|
|
17
|
-
Irreversible actions such as pushing or deleting only proceed when they continue something the transcript already authorized.`,c,m="lead",J;var U=v(()=>{K();F();y();R();f();c=`This loop is self-paced (/loop dynamic mode): when this iteration's work is done, as the LAST action of the turn either call ${Q} again — prompt set to exactly ${G}, with a delay chosen per the tool description and a one-sentence reason — to continue the loop, or omit the call to end it.`,J=new Map;$(g)});
|
|
18
|
-
export{Y as Zh,G as _h,D as $h,g as ai,M as bi,U as ci};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Qia as q,Sia as A,Tia as x,Uia as B}from"./cli-1.1.11-x3d1641w.mjs";import{wka as J}from"./cli-1.1.11-1jp85542.mjs";import{tla as G}from"./cli-1.1.11-sph0eaqc.mjs";G();J();A();B();var F=x(()=>q.object({session_id:q.string(),ws_url:q.string(),work_dir:q.string().optional()}));
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_sa as j}from"./cli-1.1.11-s5fsvj2a.mjs";function G(){return`claude-swarm-${process.pid}`}var q="team-lead",A="claude-swarm",B="swarm-view",D="tmux",F="claude-hidden",H="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
|
|
2
|
-
export{q as z3,A as A3,B as B3,D as C3,F as D3,G as E3,H as F3,k as G3};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{J_ as B,L_ as p}from"./cli-1.1.11-yz3byxtx.mjs";import{Lja as C,Oja as y}from"./cli-1.1.11-nnxrj2y7.mjs";import{Oka as V,Rka as M,ska as T,wka as x}from"./cli-1.1.11-1jp85542.mjs";import{mla as L,tla as c}from"./cli-1.1.11-sph0eaqc.mjs";y();M();p();c();x();function N(W){if(W<60000)return`${Math.round(W/1000)}s`;let Z=Math.floor(W/60000),z=Math.round(W%60000/1000);return z>0?`${Z}m ${z}s`:`${Z}m`}function h(W){let z=(W.startsWith("sk-ant-si-")?W.slice(10):W).split(".");if(z.length!==3||!z[1])return null;try{return T(Buffer.from(z[1],"base64url").toString("utf8"))}catch{return null}}function E(W){let Z=h(W);if(Z!==null&&typeof Z==="object"&&"exp"in Z&&typeof Z.exp==="number")return Z.exp;return null}var F=300000,j=1800000,H=3,R=60000;function I({getAccessToken:W,onRefresh:Z,label:z,refreshBufferMs:P=F}){let O=new Map,v=new Map,w=new Map;function U(q){let Q=(w.get(q)??0)+1;return w.set(q,Q),Q}function A(q,Q){let $=E(Q);if(!$){V(`[${z}:token] Could not decode JWT expiry for sessionId=${q}, token prefix=${Q.slice(0,15)}…, keeping existing timer`);return}let X=O.get(q);if(X)clearTimeout(X);let J=U(q),Y=new Date($*1000).toISOString(),G=$*1000-Date.now()-P;if(G<=0){V(`[${z}:token] Token for sessionId=${q} expires=${Y} (past or within buffer), refreshing immediately`),K(q,J);return}V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(G)} (expires=${Y}, buffer=${P/1000}s)`);let k=setTimeout(K,G,q,J);O.set(q,k)}function D(q,Q){let $=O.get(q);if($)clearTimeout($);let X=U(q),J=Math.max(Q*1000-P,30000);V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(J)} (expires_in=${Q}s, buffer=${P/1000}s)`);let Y=setTimeout(K,J,q,X);O.set(q,Y)}async function K(q,Q){let $;try{$=await W()}catch(J){V(`[${z}:token] getAccessToken threw for sessionId=${q}: ${L(J)}`,{level:"error"})}if(w.get(q)!==Q){V(`[${z}:token] doRefresh for sessionId=${q} stale (gen ${Q} vs ${w.get(q)}), skipping`);return}if(!$){let J=(v.get(q)??0)+1;if(v.set(q,J),V(`[${z}:token] No OAuth token available for refresh, sessionId=${q} (failure ${J}/${H})`,{level:"error"}),B("error","bridge_token_refresh_no_oauth"),J<H){let Y=setTimeout(K,R,q,Q);O.set(q,Y)}return}v.delete(q),V(`[${z}:token] Refreshing token for sessionId=${q}: new token prefix=${$.slice(0,15)}…`),C("tengu_bridge_token_refreshed",{}),Z(q,$);let X=setTimeout(K,j,q,Q);O.set(q,X),V(`[${z}:token] Scheduled follow-up refresh for sessionId=${q} in ${N(j)}`)}function S(q){U(q);let Q=O.get(q);if(Q)clearTimeout(Q),O.delete(q);v.delete(q)}function _(){for(let q of w.keys())U(q);for(let q of O.values())clearTimeout(q);O.clear(),v.clear()}return{schedule:A,scheduleFromExpiresIn:D,cancel:S,cancelAll:_}}
|
|
2
|
-
export{E as Ob,I as Pb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{M$ as x,W_ as X,__ as k,q$ as Y}from"./cli-1.1.11-yz3byxtx.mjs";import{mha as $}from"./cli-1.1.11-x2px8b33.mjs";import{_sa as Z}from"./cli-1.1.11-s5fsvj2a.mjs";import{stat as I}from"fs/promises";import{join as Q,sep as P}from"path";async function H(J){let q=await Y(J);if(!q)return;let K=await X(q),[z,B]=await Promise.all([V(Q(q,"FETCH_HEAD")),K?V(Q(K,"FETCH_HEAD")):Promise.resolve(void 0)]);if(z&&B)return z>B?z:B;return z??B}async function V(J){try{let{mtime:q}=await I(J);return q}catch{return}}var M=Z(()=>{$();k();x()});
|
|
2
|
-
export{H as fb,M as gb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{sd as t,td as DJ}from"./cli-1.1.11-wrvqk2kb.mjs";import{Xh as s,Yh as jJ}from"./cli-1.1.11-m117ak01.mjs";import{Dj as g,FF as a,Fm as UJ,GF as LJ,JT as bJ,Mn as JJ,ND as ZJ,Zl as p,am as _J,eH as r,eS as h,fE as PJ,gE as xJ,iH as IJ,jH as l,kH as TJ,lE as o,mE as yJ,nm as m,pz as f,qz as wJ,sm as BJ,vO as $J,zm as d,zx as XJ}from"./cli-1.1.11-y8jb9ka1.mjs";import{BV as u,CV as c,NV as MJ}from"./cli-1.1.11-en4s7zr1.mjs";import{m7 as YJ}from"./cli-1.1.11-ytd49283.mjs";import{Aga as A,Bga as NJ,Jga as _,Qda as j,Rga as k,Yda as D,Zda as zJ,taa as KJ}from"./cli-1.1.11-yz3byxtx.mjs";import{$ha as GJ}from"./cli-1.1.11-4x7gdf33.mjs";import{Lja as b,Oja as S}from"./cli-1.1.11-nnxrj2y7.mjs";import{Aka as W,Eka as VJ,Oka as I,Rka as WJ,wka as qJ}from"./cli-1.1.11-1jp85542.mjs";import{tla as e}from"./cli-1.1.11-sph0eaqc.mjs";import{Jla as QJ,wla as B}from"./cli-1.1.11-8vmf6185.mjs";import{dpa as R,mra as C,uoa as H}from"./cli-1.1.11-9q076mg1.mjs";import{Xsa as SJ}from"./cli-1.1.11-s5fsvj2a.mjs";yJ();jJ();C();GJ();S();KJ();h();YJ();qJ();$J();JJ();k();e();h();XJ();ZJ();function P(){}C();S();NJ();WJ();QJ();VJ();wJ();k();LJ();BJ();bJ();TJ();MJ();zJ();UJ();_J();import{join as Q}from"path";var AJ=30;function N(){let q=((j()||{}).cleanupPeriodDays??AJ)*24*60*60*1000;return new Date(Date.now()-q)}function n(X,J){return{messages:X.messages+J.messages,errors:X.errors+J.errors}}function FJ(X){let J=X.split(".")[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,"T$1:$2:$3.$4Z");return new Date(J)}async function x(X,J,q){let $={messages:0,errors:0};try{let G=await W().readdir(X);for(let K of G)try{if(FJ(K.name)<J)if(await W().unlink(Q(X,K.name)),q)$.messages++;else $.errors++}catch(Z){_(Z)}}catch(G){if(G instanceof Error&&"code"in G&&G.code!=="ENOENT")_(G)}return $}async function HJ(){let X=W(),J=N(),q=A.errors(),$=A.baseLogs(),G=await x(q,J,!1);try{let K;try{K=await X.readdir($)}catch{return G}let Z=K.filter((Y)=>Y.isDirectory()&&Y.name.startsWith("mcp-logs-")).map((Y)=>Q($,Y.name));for(let Y of Z)G=n(G,await x(Y,J,!0)),await V(Y,X)}catch(K){if(K instanceof Error&&"code"in K&&K.code!=="ENOENT")_(K)}return G}async function U(X,J,q){if((await q.stat(X)).mtime<J)return await q.unlink(X),!0;return!1}async function V(X,J){try{await J.rmdir(X)}catch{}}async function RJ(){let X=N(),J={messages:0,errors:0},q=g(),$=W(),G;try{G=await $.readdir(q)}catch{return J}for(let K of G){if(!K.isDirectory())continue;let Z=Q(q,K.name),Y;try{Y=await $.readdir(Z)}catch{J.errors++;continue}for(let z of Y)if(z.isFile()){if(!z.name.endsWith(".jsonl")&&!z.name.endsWith(".cast"))continue;try{if(await U(Q(Z,z.name),X,$))J.messages++}catch{J.errors++}}else if(z.isDirectory()){let L=Q(Z,z.name),M=Q(L,d),v;try{v=await $.readdir(M)}catch{await V(L,$);continue}for(let w of v)if(w.isFile())try{if(await U(Q(M,w.name),X,$))J.messages++}catch{J.errors++}else if(w.isDirectory()){let T=Q(M,w.name),O;try{O=await $.readdir(T)}catch{continue}for(let E of O){if(!E.isFile())continue;try{if(await U(Q(T,E.name),X,$))J.messages++}catch{J.errors++}}await V(T,$)}await V(M,$),await V(L,$)}await V(Z,$)}return J}async function y(X,J,q=!0){let $=N(),G={messages:0,errors:0},K=W(),Z;try{Z=await K.readdir(X)}catch{return G}for(let Y of Z){if(!Y.isFile()||!Y.name.endsWith(J))continue;try{if(await U(Q(X,Y.name),$,K))G.messages++}catch{G.errors++}}if(q)await V(X,K);return G}async function vJ(){let X=m(),J=await y(X,".md"),q=Q(B(),"plans");if(q!==X){let $=await y(q,".md");return n(J,$)}return J}async function OJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=B(),G=Q($,"file-history"),K;try{K=await q.readdir(G)}catch{return J}let Z=K.filter((Y)=>Y.isDirectory()).map((Y)=>Q(G,Y.name));await Promise.all(Z.map(async(Y)=>{try{if((await q.stat(Y)).mtime<X)await q.rm(Y,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}})),await V(G,q)}catch($){_($)}return J}async function EJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=B(),G=Q($,"session-env"),K;try{K=await q.readdir(G)}catch{return J}let Z=K.filter((Y)=>Y.isDirectory()).map((Y)=>Q(G,Y.name));for(let Y of Z)try{if((await q.stat(Y)).mtime<X)await q.rm(Y,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}await V(G,q)}catch($){_($)}return J}async function kJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=Q(B(),"tasks"),G=c(u()),K;try{K=await q.readdir($)}catch{return J}for(let Z of K){if(!Z.isDirectory()||Z.name===G)continue;let Y=Q($,Z.name);try{if(await hJ(Y,q)<X)await q.rm(Y,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}}await V($,q)}catch($){_($)}return J}async function hJ(X,J){let q=(await J.stat(X)).mtime,$=await J.readdir(X).catch(()=>[]);for(let G of $){if(!G.isFile())continue;try{let{mtime:K}=await J.stat(Q(X,G.name));if(K>q)q=K}catch{}}return q}async function CJ(){let X=N(),J={messages:0,errors:0},q=W(),$=Q(B(),"debug"),G;try{G=await q.readdir($)}catch{return J}for(let K of G){if(!K.isFile()||!K.name.endsWith(".txt")||K.name==="latest")continue;try{if(await U(Q($,K.name),X,q))J.messages++}catch{J.errors++}}return J}async function i(){let{errors:X}=l();if(X.length>0&&D("cleanupPeriodDays")){I("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await HJ(),await RJ(),await vJ(),await OJ(),await EJ(),await kJ(),await CJ(),await f(),await a(N());let J=await p(N());if(J>0)b("tengu_worktree_cleanup",{removed:J})}IJ();DJ();var gJ=(xJ(),SJ(PJ));var F=600000;function dX(){s(),P(),gJ.initExtractMemories(),o(),t();let X=!0;async function J(){if(R()&&H()>Date.now()-60000){setTimeout(J,F).unref();return}if(X)X=!1,await i();if(R()&&H()>Date.now()-60000){setTimeout(J,F).unref();return}await r()}setTimeout(J,F).unref()}
|
|
2
|
-
export{dX as ka};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import{NR as P,cD as A,dD as p,eS as s,ej as $,hj as T,kB as U,lB as I,mK as F,vr as O,yr as m}from"./cli-1.1.11-y8jb9ka1.mjs";import{R4 as b,S4 as h}from"./cli-1.1.11-ytd49283.mjs";import{Aka as S,Eka as C}from"./cli-1.1.11-1jp85542.mjs";import{rla as k,tla as M}from"./cli-1.1.11-sph0eaqc.mjs";import{Jla as x,wla as y}from"./cli-1.1.11-8vmf6185.mjs";import{_sa as N}from"./cli-1.1.11-s5fsvj2a.mjs";import{join as E}from"path";function D(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
|
|
2
|
-
|
|
3
|
-
Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
|
|
4
|
-
|
|
5
|
-
The file {{docPath}} has already been read for you. Here are its current contents:
|
|
6
|
-
<current_doc_content>
|
|
7
|
-
{{docContents}}
|
|
8
|
-
</current_doc_content>
|
|
9
|
-
|
|
10
|
-
Document title: {{docTitle}}
|
|
11
|
-
{{customInstructions}}
|
|
12
|
-
|
|
13
|
-
Your ONLY task is to use the Edit tool to update the documentation file if there is substantial new information to add, then stop. You can make multiple edits (update multiple sections as needed) - make all Edit tool calls in parallel in a single message. If there's nothing substantial to add, simply respond with a brief explanation and do not call any tools.
|
|
14
|
-
|
|
15
|
-
CRITICAL RULES FOR EDITING:
|
|
16
|
-
- Preserve the Magic Doc header exactly as-is: # MAGIC DOC: {{docTitle}}
|
|
17
|
-
- If there's an italicized line immediately after the header, preserve it exactly as-is
|
|
18
|
-
- Keep the document CURRENT with the latest state of the codebase - this is NOT a changelog or history
|
|
19
|
-
- Update information IN-PLACE to reflect the current state - do NOT append historical notes or track changes over time
|
|
20
|
-
- Remove or replace outdated information rather than adding "Previously..." or "Updated to..." notes
|
|
21
|
-
- Clean up or DELETE sections that are no longer relevant or don't align with the document's purpose
|
|
22
|
-
- Fix obvious errors: typos, grammar mistakes, broken formatting, incorrect information, or confusing statements
|
|
23
|
-
- Keep the document well organized: use clear headings, logical section order, consistent formatting, and proper nesting
|
|
24
|
-
|
|
25
|
-
DOCUMENTATION PHILOSOPHY - READ CAREFULLY:
|
|
26
|
-
- BE TERSE. High signal only. No filler words or unnecessary elaboration.
|
|
27
|
-
- Documentation is for OVERVIEWS, ARCHITECTURE, and ENTRY POINTS - not detailed code walkthroughs
|
|
28
|
-
- Do NOT duplicate information that's already obvious from reading the source code
|
|
29
|
-
- Do NOT document every function, parameter, or line number reference
|
|
30
|
-
- Focus on: WHY things exist, HOW components connect, WHERE to start reading, WHAT patterns are used
|
|
31
|
-
- Skip: detailed implementation steps, exhaustive API docs, play-by-play narratives
|
|
32
|
-
|
|
33
|
-
What TO document:
|
|
34
|
-
- High-level architecture and system design
|
|
35
|
-
- Non-obvious patterns, conventions, or gotchas
|
|
36
|
-
- Key entry points and where to start reading code
|
|
37
|
-
- Important design decisions and their rationale
|
|
38
|
-
- Critical dependencies or integration points
|
|
39
|
-
- References to related files, docs, or code (like a wiki) - help readers navigate to relevant context
|
|
40
|
-
|
|
41
|
-
What NOT to document:
|
|
42
|
-
- Anything obvious from reading the code itself
|
|
43
|
-
- Exhaustive lists of files, functions, or parameters
|
|
44
|
-
- Step-by-step implementation details
|
|
45
|
-
- Low-level code mechanics
|
|
46
|
-
- Information already in CLAUDE.md or other project docs
|
|
47
|
-
|
|
48
|
-
Use the Edit tool with file_path: {{docPath}}
|
|
49
|
-
|
|
50
|
-
REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function f(){let w=S(),z=E(y(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return D()}}function g(w,z){return w.replace(/\{\{(\w+)\}\}/g,(B,J)=>Object.prototype.hasOwnProperty.call(z,J)?z[J]:B)}async function R(w,z,B,J){let Y=await f(),K=J?`
|
|
51
|
-
|
|
52
|
-
DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
|
|
53
|
-
The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
|
|
54
|
-
|
|
55
|
-
"${J}"
|
|
56
|
-
|
|
57
|
-
These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return g(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var j=N(()=>{x();C()});function Xw(){G.clear()}function d(w){let z=w.match(u);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(r);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function l(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function i(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=O(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await A.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(k(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=d(q);if(!H){G.delete(w.path);return}let L=await R(q,w.path,H.title,H.instructions),_=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let v=W.file_path;if(typeof v==="string"&&v===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of U({agentDefinition:l(),promptMessages:[F({content:L})],toolUseContext:Z,canUseTool:_,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var u,r,G,Yw;var a=N(()=>{I();T();p();M();m();s();h();j();u=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,r=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=b(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(P(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await i(K,w)})});
|
|
58
|
-
export{Xw as Wh,Zw as Xh,a as Yh};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{Fb as U}from"./cli-1.1.11-ezt5j484.mjs";import{Jt as N,Kt as b}from"./cli-1.1.11-y8jb9ka1.mjs";import{IW as F,LW as d,MW as _,NW as M,SW as I}from"./cli-1.1.11-sycyfbqa.mjs";import{$8 as B,c9 as T,j9 as x,k9 as H,p9 as v}from"./cli-1.1.11-c8yn2sy4.mjs";import{J_ as Z,L_ as P}from"./cli-1.1.11-yz3byxtx.mjs";import{Lja as O,Oja as D}from"./cli-1.1.11-nnxrj2y7.mjs";import{Oka as Y,Rka as A,rka as z,wka as S}from"./cli-1.1.11-1jp85542.mjs";import{Jla as f,zla as L}from"./cli-1.1.11-8vmf6185.mjs";import{gsa as y,ysa as i}from"./cli-1.1.11-yx7hmc5y.mjs";import{$sa as k}from"./cli-1.1.11-s5fsvj2a.mjs";i();A();P();d();D();b();A();P();f();T();v();I();S();var C=`{"type":"keep_alive"}
|
|
2
|
-
`,u=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(u)}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:B()||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.11-yx4yqang.mjs"),Q=new K(this.url.href,{headers:J,agent:x(this.url.href),...B()});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)O("tengu_ws_transport_reconnected",{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)O("tengu_ws_transport_closed",{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 V=this.refreshHeaders();Object.assign(this.headers,V),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(h*Math.pow(2,this.reconnectAttempts-1),R),G=Math.max(0,$+$*0.25*(2*Math.random()-1));if(Y(`WebSocketTransport: Reconnecting in ${Math.round(G)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.isBridge)O("tengu_ws_transport_reconnecting",{attempt:this.reconnectAttempts,elapsedMs:X,delayMs:Math.round(G)});this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},G)}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((G)=>("uuid"in G)&&G.uuid===J);if($>=0){Q=$+1;let G=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(G),G.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${G.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:G.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 G=z($)+`
|
|
3
|
-
`;if(!this.sendLine(G)){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=z(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(C),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:G,onBatchDropped:V}=$??{};this.postUrl=r(J),this.uploader=new U({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:G,onBatchDropped:(j,q)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:j,failures:q}),V?.(j,q)},send:(j)=>this.postOnce(j)}),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=F();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 sb,n as tb};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Gg as d,Hg as Vq}from"./cli-1.1.11-ng71jh69.mjs";import{JT as Oq,LS as a,NS as yq,xT as l}from"./cli-1.1.11-y8jb9ka1.mjs";import{DZ as Zq,H1 as Gq,a1 as T,c1 as R,w1 as $}from"./cli-1.1.11-23hz9e80.mjs";import{C2 as e,x2 as t,z2 as v}from"./cli-1.1.11-azaecepr.mjs";import{k4 as P,l4 as N,m4 as S}from"./cli-1.1.11-dzq0mt2q.mjs";import{n4 as Yq}from"./cli-1.1.11-d8vrh841.mjs";import{M4 as u,N4 as Aq}from"./cli-1.1.11-re35m5b2.mjs";import{O_ as G,Q_ as o,Taa as s,waa as j}from"./cli-1.1.11-yz3byxtx.mjs";import{Xia as w,Zia as r}from"./cli-1.1.11-ww3qs66m.mjs";import{Oka as L,Rka as n}from"./cli-1.1.11-1jp85542.mjs";import{mla as c,tla as Xq}from"./cli-1.1.11-sph0eaqc.mjs";import{mra as i,nna as f}from"./cli-1.1.11-9q076mg1.mjs";import{Wsa as I,_sa as h}from"./cli-1.1.11-s5fsvj2a.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 j("/Applications/Claude.app");else if(H==="linux"){let{code:q,stdout:z}=await G("xdg-mime",["query","default","x-scheme-handler/claude"]);return q===0&&z.trim().length>0}else if(H==="win32"){let{code:q}=await G("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 G("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)=>K.coerce(W)!==null).sort((W,B)=>{let V=K.coerce(W),y=K.coerce(B);return V.compare(y)});return Y.length>0?Y[Y.length-1]:null}catch{return null}}return null}async function x(){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=K.coerce(q);if(!z||!v(z.version,Hq))return{status:"version-too-old",version:q};return{status:"ready",version:q}}async function Wq(H){let q=process.platform;if(L(`Opening deep link: ${H}`),q==="darwin"){if(_()){let{code:Q}=await G("osascript",["-e",`tell application "Electron" to open location "${H}"`]);return Q===0}let{code:z}=await G("open",[H]);return z===0}else if(q==="linux"){let{code:z}=await G("xdg-open",[H]);return z===0}else if(q==="win32"){let{code:z}=await G("cmd",["/c","start","",H]);return z===0}return!1}async function m(){let H=f();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 K,Hq="1.1.2396";var k=h(()=>{i();r();n();o();s();e();K=I(t(),1)});function Kq(){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 mq(H){let q=p.c(20),{onDone:z}=H,[Q,Y]=A.useState("checking"),[W,B]=A.useState(null),[V,y]=A.useState(""),O;if(q[0]!==W||q[1]!==z||q[2]!==Q)O=(J)=>{if(Q==="error"){z(W??"Unknown error",{display:"system"});return}if(Q==="prompt-download"){if(J==="y"||J==="Y")u(Kq()).catch(Rq),z(`Starting download. Re-run /desktop once you’ve installed the app.
|
|
2
|
-
Learn more at ${D}`,{display:"system"});else if(J==="n"||J==="N")z(`The desktop app is required for /desktop. Learn more at ${D}`,{display:"system"})}},q[0]=W,q[1]=z,q[2]=Q,q[3]=O;else O=q[3];$(O);let E,F;if(q[4]!==z)E=()=>{(async function(){Y("checking");let X=await x();if(X.status==="not-installed"){y("Claude Desktop is not installed."),Y("prompt-download");return}if(X.status==="version-too-old"){y(`Claude Desktop needs to be updated (found v${X.version}, need v1.1.2396+).`),Y("prompt-download");return}Y("flushing"),await l(),Y("opening");let U=await m();if(!U.success){B(U.error??"Failed to open Claude Desktop"),Y("error");return}Y("success"),setTimeout(Pq,500,z)})().catch((Z)=>{B(c(Z)),Y("error")})},F=[z],q[4]=z,q[5]=E,q[6]=F;else E=q[5],F=q[6];if(A.useEffect(E,F),Q==="error"){let J;if(q[7]!==W)J=N(R,{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=P(R,{dimColor:!0,children:"Press any key to continue…"}),q[9]=Z;else Z=q[9];let X;if(q[10]!==J)X=N(T,{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]!==V)J=P(R,{children:V}),q[12]=V,q[13]=J;else J=q[13];let Z;if(q[14]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{children:"Download now? (y/n)"}),q[14]=Z;else Z=q[14];let X;if(q[15]!==J)X=N(T,{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 b=C[Q],M;if(q[18]!==b)M=P(d,{message:b}),q[18]=b,q[19]=M;else M=q[19];return M}async function Pq(H){H("Session transferred to Claude Desktop",{display:"system"}),await a(0,"other")}function Rq(){}var p,A,D="https://clau.de/desktop";var Bq=h(()=>{Gq();Aq();k();Xq();yq();Oq();Vq();S();p=I(Zq(),1),A=I(Yq(),1)});
|
|
3
|
-
export{mq as Eg,Bq as Fg};
|