@claudiolabs/claudio 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/claudio +50 -1
- package/dist/chunks/AgentTool-0.1.11-m06x003m.mjs +1 -0
- package/dist/chunks/App-0.1.11-z60c27dk.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.1.11-dpm879x7.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.1.11-kb5jvw8n.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.1.11-dnqj2p8g.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.1.11-h71pmj5p.mjs +1 -0
- package/dist/chunks/ClaudeInChromeOnboarding-0.1.11-vjwzqejw.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.11-0wpjjdn9.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.1.11-xzbcx3cw.mjs +1 -0
- package/dist/chunks/DiffDialog-0.1.11-k3zsm9tz.mjs +3 -0
- package/dist/chunks/Doctor-0.1.11-958cxvhj.mjs +1 -0
- package/dist/chunks/Grove-0.1.11-93bnbcec.mjs +1 -0
- package/dist/chunks/ITermBackend-0.1.11-xbxm144g.mjs +1 -0
- package/dist/chunks/InProcessTransport-0.1.11-xecmx0sw.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.1.11-vbeef1wb.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.1.11-5bct7bny.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.1.11-13kfzmtt.mjs +1 -0
- package/dist/chunks/Onboarding-0.1.11-kz5hnpx3.mjs +1 -0
- package/dist/chunks/ProviderManager-0.1.11-nggswmdv.mjs +1 -0
- package/dist/chunks/REPL-0.1.11-ctxx4039.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.1.11-gwxzn4yg.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.1.11-h881m192.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.1.11-z1ez7pce.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.11-pjt2g9ss.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.1.11-9y29zset.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.1.11-5a4ddj92.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.1.11-w3cgae0s.mjs +1 -0
- package/dist/chunks/TrustDialog-0.1.11-3dsrj239.mjs +1 -0
- package/dist/chunks/activeProvider-0.1.11-qrn947by.mjs +1 -0
- package/dist/chunks/add-dir-0.1.11-9j7tq9gk.mjs +1 -0
- package/dist/chunks/agents-0.1.11-26pbss9x.mjs +3 -0
- package/dist/chunks/agents-0.1.11-m56gfjmy.mjs +111 -0
- package/dist/chunks/api-0.1.11-5ygenb1h.mjs +1 -0
- package/dist/chunks/asciicast-0.1.11-7mkaazy8.mjs +1 -0
- package/dist/chunks/assistant-0.1.11-5xbar4vv.mjs +1 -0
- package/dist/chunks/auth-0.1.11-2363mst5.mjs +1 -0
- package/dist/chunks/auth-0.1.11-p47wajra.mjs +1 -0
- package/dist/chunks/autoMode-0.1.11-nv8vsag0.mjs +48 -0
- package/dist/chunks/backgroundHousekeeping-0.1.11-fy6tykxe.mjs +1 -0
- package/dist/chunks/branch-0.1.11-aqhrj1x2.mjs +4 -0
- package/dist/chunks/bridgePointer-0.1.11-wr8dfs91.mjs +1 -0
- package/dist/chunks/btw-0.1.11-2kks7dfd.mjs +1 -0
- package/dist/chunks/buddy-0.1.11-gsj76spy.mjs +3 -0
- package/dist/chunks/cacache-0.1.11-wtz0ca19.mjs +1 -0
- package/dist/chunks/cache-probe-0.1.11-pgsemwpr.mjs +21 -0
- package/dist/chunks/cacheStats-0.1.11-1zqq6pm7.mjs +4 -0
- package/dist/chunks/caches-0.1.11-vewfnrya.mjs +1 -0
- package/dist/chunks/chrome-0.1.11-0g5459b5.mjs +1 -0
- package/dist/chunks/chromeNativeHost-0.1.11-m5kskzjw.mjs +2 -0
- package/dist/chunks/claude-for-chrome-mcp-0.1.11-h99xhv8j.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.1.11-zpdtj6k8.mjs +1 -0
- package/dist/chunks/claudemd-0.1.11-qrr22x5b.mjs +1 -0
- package/dist/chunks/clear-0.1.11-c93nbam7.mjs +1 -0
- package/dist/chunks/clearTerminal-0.1.11-pdrc3735.mjs +1 -0
- package/dist/chunks/cli-0.1.11-036me3yr.mjs +2 -0
- package/dist/chunks/cli-0.1.11-05g86mrk.mjs +2 -0
- package/dist/chunks/cli-0.1.11-05ngjm8p.mjs +2 -0
- package/dist/chunks/cli-0.1.11-0fshz0ak.mjs +2 -0
- package/dist/chunks/cli-0.1.11-0n77qn68.mjs +2 -0
- package/dist/chunks/cli-0.1.11-0qwee9gy.mjs +2 -0
- package/dist/chunks/cli-0.1.11-0tge574q.mjs +2 -0
- package/dist/chunks/cli-0.1.11-10nmrfsz.mjs +8 -0
- package/dist/chunks/cli-0.1.11-16086k9e.mjs +2 -0
- package/dist/chunks/cli-0.1.11-1b48xqbe.mjs +2 -0
- package/dist/chunks/cli-0.1.11-1bmswdg3.mjs +2 -0
- package/dist/chunks/cli-0.1.11-1bryv90w.mjs +2 -0
- package/dist/chunks/cli-0.1.11-1bxwxewq.mjs +833 -0
- package/dist/chunks/cli-0.1.11-1e6fgnts.mjs +3 -0
- package/dist/chunks/cli-0.1.11-1xr9et85.mjs +2 -0
- package/dist/chunks/cli-0.1.11-21epc92q.mjs +2 -0
- package/dist/chunks/cli-0.1.11-23qqxmk4.mjs +2 -0
- package/dist/chunks/cli-0.1.11-2w8d5vqb.mjs +2 -0
- package/dist/chunks/cli-0.1.11-2xf0g9qc.mjs +45 -0
- package/dist/chunks/cli-0.1.11-3f5dv6mt.mjs +2 -0
- package/dist/chunks/cli-0.1.11-3p2f194m.mjs +2 -0
- package/dist/chunks/cli-0.1.11-3tqzgd9f.mjs +2 -0
- package/dist/chunks/cli-0.1.11-424zgj5k.mjs +4 -0
- package/dist/chunks/cli-0.1.11-4bn5ap1n.mjs +2 -0
- package/dist/chunks/cli-0.1.11-4cdyzvxv.mjs +3 -0
- package/dist/chunks/cli-0.1.11-4ggr81tw.mjs +2 -0
- package/dist/chunks/cli-0.1.11-4px8nt5r.mjs +2 -0
- package/dist/chunks/cli-0.1.11-4xsg15d1.mjs +2 -0
- package/dist/chunks/cli-0.1.11-50naxqgt.mjs +2 -0
- package/dist/chunks/cli-0.1.11-56bdg2vw.mjs +3 -0
- package/dist/chunks/cli-0.1.11-56p41bk3.mjs +2 -0
- package/dist/chunks/cli-0.1.11-5e45zda5.mjs +2 -0
- package/dist/chunks/cli-0.1.11-5hrysrcd.mjs +2 -0
- package/dist/chunks/cli-0.1.11-5hs4xyjq.mjs +2 -0
- package/dist/chunks/cli-0.1.11-5vqj6k7m.mjs +2 -0
- package/dist/chunks/cli-0.1.11-5zqfr92n.mjs +2 -0
- package/dist/chunks/cli-0.1.11-6r97rwda.mjs +2 -0
- package/dist/chunks/cli-0.1.11-6vqzqsdj.mjs +3 -0
- package/dist/chunks/cli-0.1.11-6zkfmcxp.mjs +2 -0
- package/dist/chunks/cli-0.1.11-70f778wy.mjs +2 -0
- package/dist/chunks/cli-0.1.11-71ewwy7m.mjs +50 -0
- package/dist/chunks/cli-0.1.11-7238rfy8.mjs +2 -0
- package/dist/chunks/cli-0.1.11-7mmhsc3x.mjs +2 -0
- package/dist/chunks/cli-0.1.11-7qpnfx56.mjs +2 -0
- package/dist/chunks/cli-0.1.11-7t04gqx2.mjs +3 -0
- package/dist/chunks/cli-0.1.11-7tybqg56.mjs +2 -0
- package/dist/chunks/cli-0.1.11-7vz357wm.mjs +58 -0
- package/dist/chunks/cli-0.1.11-7xr2ermy.mjs +2 -0
- package/dist/chunks/cli-0.1.11-84j34n0s.mjs +2 -0
- package/dist/chunks/cli-0.1.11-852v06g0.mjs +2 -0
- package/dist/chunks/cli-0.1.11-8qrhqvh5.mjs +2 -0
- package/dist/chunks/cli-0.1.11-91mf8dfr.mjs +2 -0
- package/dist/chunks/cli-0.1.11-96y2d09c.mjs +2 -0
- package/dist/chunks/cli-0.1.11-98zcwng9.mjs +2 -0
- package/dist/chunks/cli-0.1.11-anegs86e.mjs +7 -0
- package/dist/chunks/cli-0.1.11-anvzywg4.mjs +5 -0
- package/dist/chunks/cli-0.1.11-at3c85af.mjs +2 -0
- package/dist/chunks/cli-0.1.11-b0jasw23.mjs +9 -0
- package/dist/chunks/cli-0.1.11-bbx2h4x9.mjs +2 -0
- package/dist/chunks/cli-0.1.11-be28ty4m.mjs +2 -0
- package/dist/chunks/cli-0.1.11-bhqwqe2w.mjs +2 -0
- package/dist/chunks/cli-0.1.11-bqpcwywz.mjs +4 -0
- package/dist/chunks/cli-0.1.11-btayz9zj.mjs +2 -0
- package/dist/chunks/cli-0.1.11-bvd2r7an.mjs +252 -0
- package/dist/chunks/cli-0.1.11-bwn9ehxv.mjs +2 -0
- package/dist/chunks/cli-0.1.11-bwpemkht.mjs +2 -0
- package/dist/chunks/cli-0.1.11-cdpswj0n.mjs +2 -0
- package/dist/chunks/cli-0.1.11-cezypfbt.mjs +2 -0
- package/dist/chunks/cli-0.1.11-cf049e4w.mjs +134 -0
- package/dist/chunks/cli-0.1.11-chnrb9xx.mjs +10 -0
- package/dist/chunks/cli-0.1.11-ctjvkg5k.mjs +2 -0
- package/dist/chunks/cli-0.1.11-cw0ss3jw.mjs +4 -0
- package/dist/chunks/cli-0.1.11-cwptjaf7.mjs +12 -0
- package/dist/chunks/cli-0.1.11-d10nfa6g.mjs +11 -0
- package/dist/chunks/cli-0.1.11-d3exw047.mjs +2 -0
- package/dist/chunks/cli-0.1.11-d4ahh3jz.mjs +2 -0
- package/dist/chunks/cli-0.1.11-da6szcvw.mjs +2 -0
- package/dist/chunks/cli-0.1.11-dcswnc8x.mjs +24 -0
- package/dist/chunks/cli-0.1.11-dpfxvfty.mjs +2 -0
- package/dist/chunks/cli-0.1.11-e5ecf583.mjs +2 -0
- package/dist/chunks/cli-0.1.11-e66dak4h.mjs +4 -0
- package/dist/chunks/cli-0.1.11-e7gjxknm.mjs +16 -0
- package/dist/chunks/cli-0.1.11-egck69w4.mjs +2 -0
- package/dist/chunks/cli-0.1.11-eh7tjdab.mjs +18 -0
- package/dist/chunks/cli-0.1.11-ek6mck0j.mjs +2 -0
- package/dist/chunks/cli-0.1.11-emw2wfff.mjs +3 -0
- package/dist/chunks/cli-0.1.11-fag2wtke.mjs +2 -0
- package/dist/chunks/cli-0.1.11-fptq9w4t.mjs +2 -0
- package/dist/chunks/cli-0.1.11-fs3d0ajf.mjs +2 -0
- package/dist/chunks/cli-0.1.11-fstfs72j.mjs +2 -0
- package/dist/chunks/cli-0.1.11-ft47r1wq.mjs +2 -0
- package/dist/chunks/cli-0.1.11-fveg0t77.mjs +22 -0
- package/dist/chunks/cli-0.1.11-fx6ztxrs.mjs +5 -0
- package/dist/chunks/cli-0.1.11-g2202evh.mjs +2 -0
- package/dist/chunks/cli-0.1.11-g33qp0jz.mjs +2 -0
- package/dist/chunks/cli-0.1.11-gc069ne7.mjs +2 -0
- package/dist/chunks/cli-0.1.11-gdcvfp9f.mjs +2 -0
- package/dist/chunks/cli-0.1.11-ggrme14p.mjs +2 -0
- package/dist/chunks/cli-0.1.11-h02tyg8p.mjs +2 -0
- package/dist/chunks/cli-0.1.11-h2hxx8ma.mjs +12 -0
- package/dist/chunks/cli-0.1.11-h3jatwe1.mjs +2 -0
- package/dist/chunks/cli-0.1.11-h762f6hr.mjs +2 -0
- package/dist/chunks/cli-0.1.11-h7e4rkwk.mjs +31 -0
- package/dist/chunks/cli-0.1.11-h7phna9g.mjs +2 -0
- package/dist/chunks/cli-0.1.11-hgsa4nnp.mjs +2 -0
- package/dist/chunks/cli-0.1.11-hhs8ke9g.mjs +2 -0
- package/dist/chunks/cli-0.1.11-hmfevmz1.mjs +4 -0
- package/dist/chunks/cli-0.1.11-hrn726gf.mjs +2 -0
- package/dist/chunks/cli-0.1.11-hzezqkew.mjs +2 -0
- package/dist/chunks/cli-0.1.11-jj3s3dxd.mjs +15 -0
- package/dist/chunks/cli-0.1.11-jjgjkqqv.mjs +2 -0
- package/dist/chunks/cli-0.1.11-jkrt4znb.mjs +11 -0
- package/dist/chunks/cli-0.1.11-jne21ka1.mjs +2 -0
- package/dist/chunks/cli-0.1.11-jr50ahcv.mjs +3 -0
- package/dist/chunks/cli-0.1.11-jye250b3.mjs +2 -0
- package/dist/chunks/cli-0.1.11-kghg51gb.mjs +6 -0
- package/dist/chunks/cli-0.1.11-kk0qqs5v.mjs +7 -0
- package/dist/chunks/cli-0.1.11-kndj4a86.mjs +2 -0
- package/dist/chunks/cli-0.1.11-kthpxpj3.mjs +24 -0
- package/dist/chunks/cli-0.1.11-ktwtyqmp.mjs +2 -0
- package/dist/chunks/cli-0.1.11-m0aaey0g.mjs +4 -0
- package/dist/chunks/cli-0.1.11-m1dpnkp0.mjs +2 -0
- package/dist/chunks/cli-0.1.11-mj78w4sp.mjs +2 -0
- package/dist/chunks/cli-0.1.11-mr356stf.mjs +2 -0
- package/dist/chunks/cli-0.1.11-mstxxz33.mjs +2 -0
- package/dist/chunks/cli-0.1.11-n23d2wej.mjs +2 -0
- package/dist/chunks/cli-0.1.11-n24p2y0p.mjs +2 -0
- package/dist/chunks/cli-0.1.11-na9tsy21.mjs +2 -0
- package/dist/chunks/cli-0.1.11-nesh7dep.mjs +2 -0
- package/dist/chunks/cli-0.1.11-nhjbgc7t.mjs +2 -0
- package/dist/chunks/cli-0.1.11-nhwmv5g6.mjs +4 -0
- package/dist/chunks/cli-0.1.11-nx8a99hz.mjs +4 -0
- package/dist/chunks/cli-0.1.11-p22bdjhv.mjs +2 -0
- package/dist/chunks/cli-0.1.11-p4eeg584.mjs +5 -0
- package/dist/chunks/cli-0.1.11-pfgwwtw9.mjs +2 -0
- package/dist/chunks/cli-0.1.11-pr9jdfxt.mjs +3 -0
- package/dist/chunks/cli-0.1.11-q58q9jqr.mjs +2 -0
- package/dist/chunks/cli-0.1.11-q89t0xzx.mjs +2 -0
- package/dist/chunks/cli-0.1.11-qbcfg80y.mjs +16 -0
- package/dist/chunks/cli-0.1.11-qheffjft.mjs +2 -0
- package/dist/chunks/cli-0.1.11-qpzn4q17.mjs +15 -0
- package/dist/chunks/cli-0.1.11-qrq0sw0h.mjs +2 -0
- package/dist/chunks/cli-0.1.11-r990p54m.mjs +100 -0
- package/dist/chunks/cli-0.1.11-rj68n2kw.mjs +2 -0
- package/dist/chunks/cli-0.1.11-rj9ea3zn.mjs +2 -0
- package/dist/chunks/cli-0.1.11-rmyvg4yw.mjs +2 -0
- package/dist/chunks/cli-0.1.11-rrnr3ab1.mjs +2 -0
- package/dist/chunks/cli-0.1.11-rvk3t45h.mjs +2 -0
- package/dist/chunks/cli-0.1.11-s6yfjcm5.mjs +6 -0
- package/dist/chunks/cli-0.1.11-s8ygndzf.mjs +5036 -0
- package/dist/chunks/cli-0.1.11-sma2xhvv.mjs +2 -0
- package/dist/chunks/cli-0.1.11-sqqzwx4h.mjs +132 -0
- package/dist/chunks/cli-0.1.11-t07hba0z.mjs +2 -0
- package/dist/chunks/cli-0.1.11-t7dc7fbj.mjs +2 -0
- package/dist/chunks/cli-0.1.11-ta77hm2b.mjs +2 -0
- package/dist/chunks/cli-0.1.11-trcf78n1.mjs +2 -0
- package/dist/chunks/cli-0.1.11-tvfkn5mh.mjs +2 -0
- package/dist/chunks/cli-0.1.11-tyh8gms9.mjs +2 -0
- package/dist/chunks/cli-0.1.11-v2s8ey1n.mjs +12 -0
- package/dist/chunks/cli-0.1.11-v6kwgrqc.mjs +2 -0
- package/dist/chunks/cli-0.1.11-v7bwjqf0.mjs +192 -0
- package/dist/chunks/cli-0.1.11-v8j5bkfs.mjs +2 -0
- package/dist/chunks/cli-0.1.11-vb5f7c3a.mjs +2 -0
- package/dist/chunks/cli-0.1.11-vch8cn95.mjs +2 -0
- package/dist/chunks/cli-0.1.11-vq5fvf9m.mjs +44 -0
- package/dist/chunks/cli-0.1.11-vzet5m4y.mjs +2 -0
- package/dist/chunks/cli-0.1.11-w3fp9par.mjs +39 -0
- package/dist/chunks/cli-0.1.11-w3trj52p.mjs +21 -0
- package/dist/chunks/cli-0.1.11-w3ydpv9v.mjs +2 -0
- package/dist/chunks/cli-0.1.11-wc9bay3d.mjs +34 -0
- package/dist/chunks/cli-0.1.11-weav8142.mjs +2 -0
- package/dist/chunks/cli-0.1.11-wjxhn7j5.mjs +2 -0
- package/dist/chunks/cli-0.1.11-x37jysc0.mjs +14 -0
- package/dist/chunks/cli-0.1.11-x5nvafch.mjs +2 -0
- package/dist/chunks/cli-0.1.11-xhrk5hr0.mjs +2 -0
- package/dist/chunks/cli-0.1.11-xp93fxnp.mjs +2 -0
- package/dist/chunks/cli-0.1.11-xwj7cmkj.mjs +2 -0
- package/dist/chunks/cli-0.1.11-y4c6y87y.mjs +2 -0
- package/dist/chunks/cli-0.1.11-y909w8bb.mjs +2 -0
- package/dist/chunks/cli-0.1.11-yd6f29v2.mjs +2 -0
- package/dist/chunks/cli-0.1.11-yhk2y3c0.mjs +2 -0
- package/dist/chunks/cli-0.1.11-yrfxpjhr.mjs +2 -0
- package/dist/chunks/cli-0.1.11-yv5pfq6n.mjs +2 -0
- package/dist/chunks/cli-0.1.11-yvnhbsfn.mjs +3 -0
- package/dist/chunks/cli-0.1.11-z0thk4h0.mjs +2 -0
- package/dist/chunks/cli-0.1.11-z4hb2mcd.mjs +2 -0
- package/dist/chunks/cli-0.1.11-z62s8qx1.mjs +2 -0
- package/dist/chunks/cli-0.1.11-zb2sa3e2.mjs +13 -0
- package/dist/chunks/cli-0.1.11-zdyddegg.mjs +2 -0
- package/dist/chunks/cli-0.1.11-zfnmx1ny.mjs +2 -0
- package/dist/chunks/cli-0.1.11-zwkjaj0d.mjs +2 -0
- package/dist/chunks/client-0.1.11-h38k7vkj.mjs +1 -0
- package/dist/chunks/color-0.1.11-b7favzc8.mjs +1 -0
- package/dist/chunks/compact-0.1.11-damm234b.mjs +3 -0
- package/dist/chunks/config-0.1.11-bb6v0pwv.mjs +1 -0
- package/dist/chunks/config-0.1.11-cqy7fnab.mjs +1 -0
- package/dist/chunks/context-0.1.11-e2s56h3b.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.1.11-s6b9q91h.mjs +1 -0
- package/dist/chunks/conversation-0.1.11-d8ejy4b9.mjs +1 -0
- package/dist/chunks/copy-0.1.11-aq32vn1b.mjs +9 -0
- package/dist/chunks/cost-0.1.11-3z9y6a5a.mjs +1 -0
- package/dist/chunks/createSession-0.1.11-rgaw7n2v.mjs +1 -0
- package/dist/chunks/desktop-0.1.11-k8ac4bfx.mjs +1 -0
- package/dist/chunks/detectRepository-0.1.11-m3chgqa1.mjs +1 -0
- package/dist/chunks/detection-0.1.11-aa9k5rxv.mjs +1 -0
- package/dist/chunks/devtools-0.1.11-fkz4akhx.mjs +1 -0
- package/dist/chunks/diff-0.1.11-tcqh42f6.mjs +1 -0
- package/dist/chunks/doctor-0.1.11-6fwwz8hp.mjs +1 -0
- package/dist/chunks/earlyInput-0.1.11-94asnfvh.mjs +1 -0
- package/dist/chunks/effort-0.1.11-zcxskzrb.mjs +8 -0
- package/dist/chunks/environmentSelection-0.1.11-6ngvrt1m.mjs +1 -0
- package/dist/chunks/environments-0.1.11-pdsv6dgq.mjs +1 -0
- package/dist/chunks/exit-0.1.11-2jab9tfm.mjs +1 -0
- package/dist/chunks/export-0.1.11-wv5bd05w.mjs +2 -0
- package/dist/chunks/extra-usage-0.1.11-f5rm0265.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.1.11-dt7znwbn.mjs +1 -0
- package/dist/chunks/fast-0.1.11-a665n9kz.mjs +1 -0
- package/dist/chunks/feedback-0.1.11-q77qty87.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.1.11-y7qkhdj6.mjs +1 -0
- package/dist/chunks/git-0.1.11-g77ppr52.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.1.11-9vhs3xqj.mjs +1 -0
- package/dist/chunks/growthbook-0.1.11-2w2b1mzd.mjs +1 -0
- package/dist/chunks/heapdump-0.1.11-b216wzt7.mjs +6 -0
- package/dist/chunks/help-0.1.11-byp88gen.mjs +1 -0
- package/dist/chunks/hookChains-0.1.11-jp8f82q7.mjs +3 -0
- package/dist/chunks/hooks-0.1.11-v9jan2ss.mjs +1 -0
- package/dist/chunks/hooks-0.1.11-vf6vcsgg.mjs +79 -0
- package/dist/chunks/ide-0.1.11-7nxbd03r.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.1.11-dpg3ygnw.mjs +1 -0
- package/dist/chunks/index-0.1.11-3dfjfmc6.mjs +1 -0
- package/dist/chunks/index-0.1.11-82wnmfq3.mjs +9 -0
- package/dist/chunks/index-0.1.11-8gtaa17w.mjs +1 -0
- package/dist/chunks/index-0.1.11-ajdpkanw.mjs +1 -0
- package/dist/chunks/index-0.1.11-b2q967nq.mjs +30 -0
- package/dist/chunks/index-0.1.11-bhrstsgc.mjs +1 -0
- package/dist/chunks/index-0.1.11-d6qbzwah.mjs +1 -0
- package/dist/chunks/index-0.1.11-d9ft1b0s.mjs +1 -0
- package/dist/chunks/index-0.1.11-e52dzxjz.mjs +5 -0
- package/dist/chunks/index-0.1.11-gb3saayk.mjs +2 -0
- package/dist/chunks/index-0.1.11-kksxmkwe.mjs +1 -0
- package/dist/chunks/index-0.1.11-n564rmwy.mjs +1 -0
- package/dist/chunks/index-0.1.11-n90nxjqp.mjs +1 -0
- package/dist/chunks/index-0.1.11-p0j3w83p.mjs +1 -0
- package/dist/chunks/index-0.1.11-pmkgntay.mjs +7 -0
- package/dist/chunks/index-0.1.11-qspcw49p.mjs +1 -0
- package/dist/chunks/index-0.1.11-r6p77pf7.mjs +1 -0
- package/dist/chunks/index-0.1.11-s0w8xy7q.mjs +9 -0
- package/dist/chunks/index-0.1.11-wbhj1ny7.mjs +1 -0
- package/dist/chunks/index-0.1.11-wze82293.mjs +1 -0
- package/dist/chunks/index-0.1.11-xs4mng75.mjs +1 -0
- package/dist/chunks/index-0.1.11-yej3awws.mjs +2 -0
- package/dist/chunks/initReplBridge-0.1.11-71963wyw.mjs +1 -0
- package/dist/chunks/ink-0.1.11-tzp2q9bd.mjs +1 -0
- package/dist/chunks/insights-0.1.11-4yjg2bxs.mjs +870 -0
- package/dist/chunks/install-0.1.11-4zfvr6pk.mjs +1 -0
- package/dist/chunks/install-github-app-0.1.11-frqzdwsz.mjs +149 -0
- package/dist/chunks/install-slack-app-0.1.11-0yyjjvrw.mjs +1 -0
- package/dist/chunks/instrumentation-0.1.11-zyp2r390.mjs +12 -0
- package/dist/chunks/interactiveHelpers-0.1.11-chnsxp26.mjs +1 -0
- package/dist/chunks/keybindings-0.1.11-r2jke9h5.mjs +2 -0
- package/dist/chunks/knowledge-0.1.11-wpjw8ybd.mjs +2 -0
- package/dist/chunks/loadAgentsDir-0.1.11-bwymseqa.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.1.11-npf49gc4.mjs +1 -0
- package/dist/chunks/logout-0.1.11-48ynp610.mjs +1 -0
- package/dist/chunks/lsp-0.1.11-e4z6m5t5.mjs +1 -0
- package/dist/chunks/main-0.1.11-6sh6xycv.mjs +1 -0
- package/dist/chunks/managedEnv-0.1.11-6bnnpsm0.mjs +1 -0
- package/dist/chunks/mcp-0.1.11-vjjx8eer.mjs +17 -0
- package/dist/chunks/mcp-0.1.11-zf74a6am.mjs +4 -0
- package/dist/chunks/mcp-0.1.11-zw22jjqc.mjs +1 -0
- package/dist/chunks/mcpServer-0.1.11-czg51mvy.mjs +1 -0
- package/dist/chunks/mcpb-0.1.11-czkze48a.mjs +1 -0
- package/dist/chunks/memory-0.1.11-k7y98zqn.mjs +3 -0
- package/dist/chunks/mobile-0.1.11-2w5py2cb.mjs +2 -0
- package/dist/chunks/model-0.1.11-4v166f98.mjs +2 -0
- package/dist/chunks/model-0.1.11-qekc9c4w.mjs +1 -0
- package/dist/chunks/oauth-0.1.11-jkkd9wzq.mjs +1 -0
- package/dist/chunks/openaiShim-0.1.11-b9yqnc9c.mjs +14 -0
- package/dist/chunks/output-style-0.1.11-zwxn1knb.mjs +1 -0
- package/dist/chunks/package-HMBVQOZ4-0.1.11-n77wqhxr.mjs +1 -0
- package/dist/chunks/parser-0.1.11-vvhz2p5h.mjs +1 -0
- package/dist/chunks/passes-0.1.11-dgshr9c4.mjs +1 -0
- package/dist/chunks/permissions-0.1.11-71fn7rsk.mjs +3 -0
- package/dist/chunks/plan-0.1.11-1xyzxjgr.mjs +1 -0
- package/dist/chunks/plist-0.1.11-0sn6nqv3.mjs +1 -0
- package/dist/chunks/plugin-0.1.11-menj210d.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.1.11-ytjn1kxg.mjs +1 -0
- package/dist/chunks/plugins-0.1.11-t3pgcpcj.mjs +9 -0
- package/dist/chunks/print-0.1.11-y9vz77h9.mjs +57 -0
- package/dist/chunks/privacy-settings-0.1.11-3ah0v02p.mjs +1 -0
- package/dist/chunks/process-0.1.11-s6jnx5xw.mjs +1 -0
- package/dist/chunks/processBashCommand-0.1.11-txp79ekj.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.1.11-fdvs7etd.mjs +9 -0
- package/dist/chunks/prompt-0.1.11-4f7rsvd2.mjs +1 -0
- package/dist/chunks/prompt-0.1.11-bzkv3rsd.mjs +1 -0
- package/dist/chunks/prompts-0.1.11-xczb1nwa.mjs +1 -0
- package/dist/chunks/provider-0.1.11-cqeqqqbt.mjs +2 -0
- package/dist/chunks/providerProfiles-0.1.11-ewn8w0f1.mjs +1 -0
- package/dist/chunks/rate-limit-options-0.1.11-6bca3g5n.mjs +1 -0
- package/dist/chunks/registry-0.1.11-wjnpx9yf.mjs +1 -0
- package/dist/chunks/release-notes-0.1.11-dhe37z3c.mjs +5 -0
- package/dist/chunks/reload-plugins-0.1.11-gzep3pg3.mjs +2 -0
- package/dist/chunks/remote-env-0.1.11-yday97nq.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.1.11-hn821p07.mjs +1 -0
- package/dist/chunks/remoteSession-0.1.11-g3h440pv.mjs +1 -0
- package/dist/chunks/rename-0.1.11-ke9btph2.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.1.11-t5njc196.mjs +1 -0
- package/dist/chunks/resume-0.1.11-d4bbgty9.mjs +2 -0
- package/dist/chunks/rewind-0.1.11-t4mfk815.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.1.11-3czn1nws.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.1.11-qxv2w9n1.mjs +1 -0
- package/dist/chunks/session-0.1.11-2z972raf.mjs +2 -0
- package/dist/chunks/sessionFileAccessHooks-0.1.11-f3exnspr.mjs +1 -0
- package/dist/chunks/sessionStorage-0.1.11-aa2ftdjn.mjs +1 -0
- package/dist/chunks/setup-0.1.11-epmpszzf.mjs +5 -0
- package/dist/chunks/sinks-0.1.11-q3zcj5me.mjs +1 -0
- package/dist/chunks/skills-0.1.11-9xbyp1p5.mjs +1 -0
- package/dist/chunks/startupProfiler-0.1.11-5s07826j.mjs +1 -0
- package/dist/chunks/state-0.1.11-3fjxywyv.mjs +1 -0
- package/dist/chunks/stats-0.1.11-hxzms6gg.mjs +6 -0
- package/dist/chunks/status-0.1.11-drvp15n8.mjs +1 -0
- package/dist/chunks/stickers-0.1.11-44f4tawn.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.1.11-5w00fpez.mjs +1 -0
- package/dist/chunks/tasks-0.1.11-dn8h18fk.mjs +1 -0
- package/dist/chunks/teamHelpers-0.1.11-ca7kref8.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.1.11-an88rdgv.mjs +1 -0
- package/dist/chunks/teleport-0.1.11-8e3k0ex6.mjs +1 -0
- package/dist/chunks/terminalSetup-0.1.11-gtdwp0an.mjs +1 -0
- package/dist/chunks/theme-0.1.11-p447kczd.mjs +1 -0
- package/dist/chunks/thinkback-0.1.11-3f1xvkt5.mjs +1 -0
- package/dist/chunks/thinkback-play-0.1.11-0ax4h089.mjs +1 -0
- package/dist/chunks/toolPool-0.1.11-xrywy61j.mjs +1 -0
- package/dist/chunks/toolSearch-0.1.11-7yjvjxhp.mjs +1 -0
- package/dist/chunks/trustedDevice-0.1.11-070f1wch.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.1.11-brwqmyse.mjs +69 -0
- package/dist/chunks/ultrareviewCommand-0.1.11-0m9b3kr5.mjs +4 -0
- package/dist/chunks/update-0.1.11-p33kxpg4.mjs +94 -0
- package/dist/chunks/upgrade-0.1.11-1aj14cqt.mjs +1 -0
- package/dist/chunks/upstreamproxy-0.1.11-vk16qw88.mjs +14 -0
- package/dist/chunks/usage-0.1.11-hch4v5jb.mjs +1 -0
- package/dist/chunks/util-0.1.11-sjkxad5k.mjs +1 -0
- package/dist/chunks/utils-0.1.11-2bk8zn4g.mjs +1 -0
- package/dist/chunks/vim-0.1.11-v1rz1d56.mjs +1 -0
- package/dist/chunks/watcher-0.1.11-v8mkv1xy.mjs +1 -0
- package/dist/chunks/wiki-0.1.11-v0twhcnn.mjs +132 -0
- package/dist/chunks/worktree-0.1.11-d7chpamf.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.1.11-tsxv6h6g.mjs +1 -0
- package/dist/chunks/wrapper-0.1.11-rt9xsnjh.mjs +7 -0
- package/dist/claudio-vscode.vsix +0 -0
- package/dist/cli.mjs +6 -6
- package/package.json +1 -1
- package/dist/chunks/AgentTool-0.1.9-e26h2f7z.mjs +0 -1
- package/dist/chunks/App-0.1.9-7ttp2eny.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.1.9-pz0jzna9.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.1.9-r5wg1yfv.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.9-nbnjg2tp.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.1.9-wjg6qps3.mjs +0 -1
- package/dist/chunks/ClaudeInChromeOnboarding-0.1.9-h46b49p8.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.9-b8em430v.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.1.9-zb1h6dvy.mjs +0 -1
- package/dist/chunks/DiffDialog-0.1.9-09s28v8e.mjs +0 -3
- package/dist/chunks/Doctor-0.1.9-9ak6wqtr.mjs +0 -1
- package/dist/chunks/Grove-0.1.9-rbrf13rd.mjs +0 -1
- package/dist/chunks/ITermBackend-0.1.9-8dgw249h.mjs +0 -1
- package/dist/chunks/InProcessTransport-0.1.9-5cp1e7x7.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.1.9-6mv9wgt8.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.1.9-d5kkd4yd.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.1.9-56807wps.mjs +0 -1
- package/dist/chunks/Onboarding-0.1.9-g5nqdh1r.mjs +0 -1
- package/dist/chunks/ProviderManager-0.1.9-kj6t8003.mjs +0 -1
- package/dist/chunks/REPL-0.1.9-3h2fc9z7.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.1.9-k4gv6dx4.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.1.9-v3h7drc0.mjs +0 -1
- package/dist/chunks/StartupScreen-0.1.9-jgk08xvj.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.1.9-pnqkmgap.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.9-ddtmy43v.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.1.9-vhnyx04e.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.1.9-nb2ks1np.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.1.9-n40whaty.mjs +0 -1
- package/dist/chunks/TrustDialog-0.1.9-dm2wppgy.mjs +0 -1
- package/dist/chunks/activeProvider-0.1.9-kbwwatt3.mjs +0 -1
- package/dist/chunks/add-dir-0.1.9-ed53zp9j.mjs +0 -1
- package/dist/chunks/agents-0.1.9-4gwb1qtc.mjs +0 -111
- package/dist/chunks/agents-0.1.9-yr85gwa8.mjs +0 -3
- package/dist/chunks/api-0.1.9-kqwfw6wj.mjs +0 -1
- package/dist/chunks/asciicast-0.1.9-ekvsjx76.mjs +0 -1
- package/dist/chunks/assistant-0.1.9-h4rgf0xq.mjs +0 -1
- package/dist/chunks/auth-0.1.9-1c12xrxs.mjs +0 -1
- package/dist/chunks/auth-0.1.9-rqfx3vqa.mjs +0 -1
- package/dist/chunks/autoMode-0.1.9-s92asycq.mjs +0 -48
- package/dist/chunks/backgroundHousekeeping-0.1.9-jjbqckpm.mjs +0 -1
- package/dist/chunks/branch-0.1.9-m7j2aerq.mjs +0 -4
- package/dist/chunks/bridgePointer-0.1.9-rv3aq23v.mjs +0 -1
- package/dist/chunks/btw-0.1.9-g55x31zp.mjs +0 -1
- package/dist/chunks/buddy-0.1.9-fqmk7e4y.mjs +0 -3
- package/dist/chunks/cacache-0.1.9-dr1vt8s1.mjs +0 -1
- package/dist/chunks/cache-probe-0.1.9-ydmjrch4.mjs +0 -21
- package/dist/chunks/cacheStats-0.1.9-pkarrnw9.mjs +0 -4
- package/dist/chunks/caches-0.1.9-d6cndrra.mjs +0 -1
- package/dist/chunks/chrome-0.1.9-bvwzw157.mjs +0 -1
- package/dist/chunks/chromeNativeHost-0.1.9-8a20nscz.mjs +0 -2
- package/dist/chunks/claude-for-chrome-mcp-0.1.9-ndknjd3g.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.1.9-7xprztbk.mjs +0 -1
- package/dist/chunks/claudemd-0.1.9-dqyhgy2v.mjs +0 -1
- package/dist/chunks/clear-0.1.9-tb8x7676.mjs +0 -1
- package/dist/chunks/cli-0.1.9-001s9kxw.mjs +0 -24
- package/dist/chunks/cli-0.1.9-03e1d9dw.mjs +0 -39
- package/dist/chunks/cli-0.1.9-04ez73f7.mjs +0 -5084
- package/dist/chunks/cli-0.1.9-0dtdhejj.mjs +0 -31
- package/dist/chunks/cli-0.1.9-0e6nsh68.mjs +0 -3
- package/dist/chunks/cli-0.1.9-0j8n671q.mjs +0 -2
- package/dist/chunks/cli-0.1.9-15y0qt1z.mjs +0 -2
- package/dist/chunks/cli-0.1.9-1c3qpbdh.mjs +0 -2
- package/dist/chunks/cli-0.1.9-1f5gmndb.mjs +0 -2
- package/dist/chunks/cli-0.1.9-1ghbcafn.mjs +0 -2
- package/dist/chunks/cli-0.1.9-1kaj4v6k.mjs +0 -2
- package/dist/chunks/cli-0.1.9-1xmdqqzd.mjs +0 -3
- package/dist/chunks/cli-0.1.9-263y2rkc.mjs +0 -3
- package/dist/chunks/cli-0.1.9-2dd7h0hn.mjs +0 -15
- package/dist/chunks/cli-0.1.9-2prq7peb.mjs +0 -2
- package/dist/chunks/cli-0.1.9-2tc83tsz.mjs +0 -2
- package/dist/chunks/cli-0.1.9-2thp2z73.mjs +0 -2
- package/dist/chunks/cli-0.1.9-2v0y90vz.mjs +0 -2
- package/dist/chunks/cli-0.1.9-2v4s8yf9.mjs +0 -7
- package/dist/chunks/cli-0.1.9-2x18rhq6.mjs +0 -6
- package/dist/chunks/cli-0.1.9-38zb09vp.mjs +0 -2
- package/dist/chunks/cli-0.1.9-3g3er8j1.mjs +0 -15
- package/dist/chunks/cli-0.1.9-3h4serkj.mjs +0 -58
- package/dist/chunks/cli-0.1.9-3rhe87kw.mjs +0 -2
- package/dist/chunks/cli-0.1.9-3vfq7jja.mjs +0 -34
- package/dist/chunks/cli-0.1.9-3wmbdmrp.mjs +0 -2
- package/dist/chunks/cli-0.1.9-3y36913h.mjs +0 -10
- package/dist/chunks/cli-0.1.9-3yscrq86.mjs +0 -833
- package/dist/chunks/cli-0.1.9-45ggwszg.mjs +0 -2
- package/dist/chunks/cli-0.1.9-4a9qwf11.mjs +0 -2
- package/dist/chunks/cli-0.1.9-4bg6jxs8.mjs +0 -2
- package/dist/chunks/cli-0.1.9-4kk9fmg2.mjs +0 -2
- package/dist/chunks/cli-0.1.9-4n4dqg6k.mjs +0 -2
- package/dist/chunks/cli-0.1.9-4sqfjw8t.mjs +0 -16
- package/dist/chunks/cli-0.1.9-4vmbyj20.mjs +0 -2
- package/dist/chunks/cli-0.1.9-4vt296k0.mjs +0 -18
- package/dist/chunks/cli-0.1.9-5ryrgdzg.mjs +0 -2
- package/dist/chunks/cli-0.1.9-5vgk7wf7.mjs +0 -2
- package/dist/chunks/cli-0.1.9-5ygmjsje.mjs +0 -2
- package/dist/chunks/cli-0.1.9-5ypg3t0t.mjs +0 -2
- package/dist/chunks/cli-0.1.9-5zhhyq4q.mjs +0 -2
- package/dist/chunks/cli-0.1.9-61ywjha3.mjs +0 -2
- package/dist/chunks/cli-0.1.9-68vwvmkw.mjs +0 -2
- package/dist/chunks/cli-0.1.9-6c7qrr4p.mjs +0 -16
- package/dist/chunks/cli-0.1.9-6gk46nr9.mjs +0 -2
- package/dist/chunks/cli-0.1.9-6j5gxw5r.mjs +0 -5
- package/dist/chunks/cli-0.1.9-6ne451jc.mjs +0 -2
- package/dist/chunks/cli-0.1.9-6p67vwxh.mjs +0 -2
- package/dist/chunks/cli-0.1.9-6pcahrj9.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7047sjwh.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7bakxr5q.mjs +0 -3
- package/dist/chunks/cli-0.1.9-7bthhhpf.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7fp0smtp.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7ftnjyps.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7h5my4fb.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7kcaaxvq.mjs +0 -12
- package/dist/chunks/cli-0.1.9-7q9461ka.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7qhatm3v.mjs +0 -2
- package/dist/chunks/cli-0.1.9-86kws2c7.mjs +0 -192
- package/dist/chunks/cli-0.1.9-8egwvs85.mjs +0 -2
- package/dist/chunks/cli-0.1.9-90h21nv5.mjs +0 -2
- package/dist/chunks/cli-0.1.9-9d4sp76k.mjs +0 -2
- package/dist/chunks/cli-0.1.9-9hc8gyb7.mjs +0 -2
- package/dist/chunks/cli-0.1.9-9nhh15bp.mjs +0 -2
- package/dist/chunks/cli-0.1.9-9vab0er5.mjs +0 -2
- package/dist/chunks/cli-0.1.9-9vn4ys3c.mjs +0 -22
- package/dist/chunks/cli-0.1.9-a1gtww1d.mjs +0 -2
- package/dist/chunks/cli-0.1.9-a7zy4vqn.mjs +0 -134
- package/dist/chunks/cli-0.1.9-a95nqhbd.mjs +0 -4
- package/dist/chunks/cli-0.1.9-ag6a8kqj.mjs +0 -2
- package/dist/chunks/cli-0.1.9-ak0b9xfs.mjs +0 -100
- package/dist/chunks/cli-0.1.9-aqd7czgr.mjs +0 -3
- package/dist/chunks/cli-0.1.9-axg1kbe4.mjs +0 -2
- package/dist/chunks/cli-0.1.9-aype6q4y.mjs +0 -2
- package/dist/chunks/cli-0.1.9-b3031hmy.mjs +0 -2
- package/dist/chunks/cli-0.1.9-b6zp931m.mjs +0 -11
- package/dist/chunks/cli-0.1.9-b73n8vzm.mjs +0 -2
- package/dist/chunks/cli-0.1.9-b9kbpf6n.mjs +0 -2
- package/dist/chunks/cli-0.1.9-bg9xvmav.mjs +0 -2
- package/dist/chunks/cli-0.1.9-bn43vpc0.mjs +0 -2
- package/dist/chunks/cli-0.1.9-br9jzagb.mjs +0 -2
- package/dist/chunks/cli-0.1.9-c2fjeq7k.mjs +0 -2
- package/dist/chunks/cli-0.1.9-c38eyh49.mjs +0 -2
- package/dist/chunks/cli-0.1.9-cfzmq9k6.mjs +0 -2
- package/dist/chunks/cli-0.1.9-cvnkghgh.mjs +0 -3
- package/dist/chunks/cli-0.1.9-dmcbsmj4.mjs +0 -2
- package/dist/chunks/cli-0.1.9-dsx18zt1.mjs +0 -2
- package/dist/chunks/cli-0.1.9-dt31fs16.mjs +0 -2
- package/dist/chunks/cli-0.1.9-dzz1me99.mjs +0 -2
- package/dist/chunks/cli-0.1.9-e7ewtpew.mjs +0 -2
- package/dist/chunks/cli-0.1.9-e96x59hw.mjs +0 -2
- package/dist/chunks/cli-0.1.9-ehhkqhbv.mjs +0 -2
- package/dist/chunks/cli-0.1.9-eqxc9zxm.mjs +0 -12
- package/dist/chunks/cli-0.1.9-ewq9k9mr.mjs +0 -2
- package/dist/chunks/cli-0.1.9-ewwxqbvt.mjs +0 -2
- package/dist/chunks/cli-0.1.9-f4v4pahc.mjs +0 -4
- package/dist/chunks/cli-0.1.9-f643fvt4.mjs +0 -2
- package/dist/chunks/cli-0.1.9-f8ga1n8r.mjs +0 -6
- package/dist/chunks/cli-0.1.9-fcf313e7.mjs +0 -2
- package/dist/chunks/cli-0.1.9-fh5enjw8.mjs +0 -5
- package/dist/chunks/cli-0.1.9-fm2yycpj.mjs +0 -2
- package/dist/chunks/cli-0.1.9-fwqwgjwb.mjs +0 -2
- package/dist/chunks/cli-0.1.9-gandxpzf.mjs +0 -2
- package/dist/chunks/cli-0.1.9-gasw7sr9.mjs +0 -2
- package/dist/chunks/cli-0.1.9-gdymcvby.mjs +0 -2
- package/dist/chunks/cli-0.1.9-gpd1bhnf.mjs +0 -2
- package/dist/chunks/cli-0.1.9-gsc0t4gy.mjs +0 -2
- package/dist/chunks/cli-0.1.9-gvrtqwe3.mjs +0 -2
- package/dist/chunks/cli-0.1.9-h8xne7z8.mjs +0 -2
- package/dist/chunks/cli-0.1.9-hjcv9wr7.mjs +0 -50
- package/dist/chunks/cli-0.1.9-hva25eg3.mjs +0 -4
- package/dist/chunks/cli-0.1.9-hy4peemf.mjs +0 -3
- package/dist/chunks/cli-0.1.9-hy9s1fnj.mjs +0 -14
- package/dist/chunks/cli-0.1.9-hz8rssz0.mjs +0 -2
- package/dist/chunks/cli-0.1.9-j5zz6gbq.mjs +0 -4
- package/dist/chunks/cli-0.1.9-jb6af8n8.mjs +0 -2
- package/dist/chunks/cli-0.1.9-jchn9hyn.mjs +0 -2
- package/dist/chunks/cli-0.1.9-jdpz959j.mjs +0 -2
- package/dist/chunks/cli-0.1.9-jv2z42gk.mjs +0 -2
- package/dist/chunks/cli-0.1.9-kbrf27z8.mjs +0 -2
- package/dist/chunks/cli-0.1.9-krv35v3v.mjs +0 -2
- package/dist/chunks/cli-0.1.9-ksv4ntar.mjs +0 -2
- package/dist/chunks/cli-0.1.9-kt9xw7bn.mjs +0 -2
- package/dist/chunks/cli-0.1.9-m7shtst2.mjs +0 -2
- package/dist/chunks/cli-0.1.9-mfyd9h50.mjs +0 -2
- package/dist/chunks/cli-0.1.9-mj88t3jf.mjs +0 -2
- package/dist/chunks/cli-0.1.9-mjkhzp2c.mjs +0 -3
- package/dist/chunks/cli-0.1.9-mkfnnvz7.mjs +0 -4
- package/dist/chunks/cli-0.1.9-mme2x7fq.mjs +0 -2
- package/dist/chunks/cli-0.1.9-mnegaqr7.mjs +0 -2
- package/dist/chunks/cli-0.1.9-mx4ekht0.mjs +0 -2
- package/dist/chunks/cli-0.1.9-mz3mbxwb.mjs +0 -12
- package/dist/chunks/cli-0.1.9-n445yk6z.mjs +0 -2
- package/dist/chunks/cli-0.1.9-n54k4qt3.mjs +0 -2
- package/dist/chunks/cli-0.1.9-n8tc0gpm.mjs +0 -2
- package/dist/chunks/cli-0.1.9-nsgdz4rd.mjs +0 -2
- package/dist/chunks/cli-0.1.9-nw3rpxdd.mjs +0 -252
- package/dist/chunks/cli-0.1.9-nz8phj17.mjs +0 -2
- package/dist/chunks/cli-0.1.9-p1kdk178.mjs +0 -2
- package/dist/chunks/cli-0.1.9-p58rgwkr.mjs +0 -4
- package/dist/chunks/cli-0.1.9-p5scdysw.mjs +0 -2
- package/dist/chunks/cli-0.1.9-pdbfg3vh.mjs +0 -2
- package/dist/chunks/cli-0.1.9-pgwsmwz1.mjs +0 -2
- package/dist/chunks/cli-0.1.9-ph3w8t78.mjs +0 -2
- package/dist/chunks/cli-0.1.9-psx0e36a.mjs +0 -2
- package/dist/chunks/cli-0.1.9-q3e2h88a.mjs +0 -2
- package/dist/chunks/cli-0.1.9-q7hve442.mjs +0 -2
- package/dist/chunks/cli-0.1.9-qqjp7mpj.mjs +0 -2
- package/dist/chunks/cli-0.1.9-qydwhycw.mjs +0 -2
- package/dist/chunks/cli-0.1.9-r3ha1332.mjs +0 -7
- package/dist/chunks/cli-0.1.9-r7rcv2wm.mjs +0 -8
- package/dist/chunks/cli-0.1.9-rd0jctgk.mjs +0 -21
- package/dist/chunks/cli-0.1.9-rerthk1j.mjs +0 -2
- package/dist/chunks/cli-0.1.9-rft22htm.mjs +0 -2
- package/dist/chunks/cli-0.1.9-rp31nc37.mjs +0 -2
- package/dist/chunks/cli-0.1.9-rw09xkh7.mjs +0 -2
- package/dist/chunks/cli-0.1.9-s0w3y07w.mjs +0 -2
- package/dist/chunks/cli-0.1.9-s45y2ndk.mjs +0 -2
- package/dist/chunks/cli-0.1.9-s6bk4fbn.mjs +0 -2
- package/dist/chunks/cli-0.1.9-scpj6tps.mjs +0 -3
- package/dist/chunks/cli-0.1.9-sqja68fn.mjs +0 -2
- package/dist/chunks/cli-0.1.9-sv3awdsv.mjs +0 -2
- package/dist/chunks/cli-0.1.9-t24n24mw.mjs +0 -2
- package/dist/chunks/cli-0.1.9-teaymnrz.mjs +0 -2
- package/dist/chunks/cli-0.1.9-tq9z3reg.mjs +0 -2
- package/dist/chunks/cli-0.1.9-v32f99vc.mjs +0 -11
- package/dist/chunks/cli-0.1.9-v6x9pr1t.mjs +0 -2
- package/dist/chunks/cli-0.1.9-v7ajk1nz.mjs +0 -2
- package/dist/chunks/cli-0.1.9-vdw09f8y.mjs +0 -44
- package/dist/chunks/cli-0.1.9-vm7cggd9.mjs +0 -45
- package/dist/chunks/cli-0.1.9-vp3dtntc.mjs +0 -2
- package/dist/chunks/cli-0.1.9-vwv31syx.mjs +0 -2
- package/dist/chunks/cli-0.1.9-w692zn5c.mjs +0 -2
- package/dist/chunks/cli-0.1.9-wn39cz20.mjs +0 -2
- package/dist/chunks/cli-0.1.9-wpvrabrk.mjs +0 -2
- package/dist/chunks/cli-0.1.9-x0xxr5dh.mjs +0 -13
- package/dist/chunks/cli-0.1.9-x13p19zq.mjs +0 -2
- package/dist/chunks/cli-0.1.9-x257hapj.mjs +0 -9
- package/dist/chunks/cli-0.1.9-x7qrvj9f.mjs +0 -2
- package/dist/chunks/cli-0.1.9-xvn37fkk.mjs +0 -2
- package/dist/chunks/cli-0.1.9-xvvq2rcd.mjs +0 -4
- package/dist/chunks/cli-0.1.9-xws3mhz4.mjs +0 -2
- package/dist/chunks/cli-0.1.9-y8n4w5nn.mjs +0 -5
- package/dist/chunks/cli-0.1.9-ycvkz1gf.mjs +0 -4
- package/dist/chunks/cli-0.1.9-yddanjg2.mjs +0 -132
- package/dist/chunks/cli-0.1.9-ymsq31jx.mjs +0 -2
- package/dist/chunks/cli-0.1.9-ywf6743k.mjs +0 -2
- package/dist/chunks/cli-0.1.9-z5mm21jw.mjs +0 -24
- package/dist/chunks/cli-0.1.9-zae1me3j.mjs +0 -2
- package/dist/chunks/cli-0.1.9-zck4s4sh.mjs +0 -2
- package/dist/chunks/cli-0.1.9-zehsa1kq.mjs +0 -2
- package/dist/chunks/cli-0.1.9-zqyxbf50.mjs +0 -2
- package/dist/chunks/cli-0.1.9-zstpbdrf.mjs +0 -2
- package/dist/chunks/cli-0.1.9-zzp8m503.mjs +0 -3
- package/dist/chunks/cliArgs-0.1.9-kckasx4h.mjs +0 -1
- package/dist/chunks/client-0.1.9-ys52xz2v.mjs +0 -1
- package/dist/chunks/color-0.1.9-nmnytefc.mjs +0 -1
- package/dist/chunks/compact-0.1.9-qw915ckh.mjs +0 -3
- package/dist/chunks/config-0.1.9-1m69edch.mjs +0 -1
- package/dist/chunks/config-0.1.9-6knxc8a2.mjs +0 -1
- package/dist/chunks/context-0.1.9-47a3xmqq.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.1.9-6s9bm74v.mjs +0 -1
- package/dist/chunks/conversation-0.1.9-vebter8y.mjs +0 -1
- package/dist/chunks/copy-0.1.9-ae06p3e2.mjs +0 -9
- package/dist/chunks/cost-0.1.9-x5zee0z9.mjs +0 -1
- package/dist/chunks/createSession-0.1.9-djn7xdsv.mjs +0 -1
- package/dist/chunks/desktop-0.1.9-xaecrssd.mjs +0 -1
- package/dist/chunks/detectRepository-0.1.9-qqzcce45.mjs +0 -1
- package/dist/chunks/detection-0.1.9-ry1q2ym2.mjs +0 -1
- package/dist/chunks/devtools-0.1.9-kzs9wq2w.mjs +0 -1
- package/dist/chunks/diff-0.1.9-af5n5bzh.mjs +0 -1
- package/dist/chunks/doctor-0.1.9-9f6fz2h0.mjs +0 -1
- package/dist/chunks/earlyInput-0.1.9-h7yskwvf.mjs +0 -1
- package/dist/chunks/effort-0.1.9-spz96zzr.mjs +0 -8
- package/dist/chunks/environmentSelection-0.1.9-0va5g53h.mjs +0 -1
- package/dist/chunks/environments-0.1.9-2hka6k26.mjs +0 -1
- package/dist/chunks/exit-0.1.9-rvk04qa2.mjs +0 -1
- package/dist/chunks/export-0.1.9-c3pqjktx.mjs +0 -2
- package/dist/chunks/extra-usage-0.1.9-92jjke47.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.1.9-27zjp5q7.mjs +0 -1
- package/dist/chunks/fast-0.1.9-60sqqvgd.mjs +0 -1
- package/dist/chunks/feedback-0.1.9-anraj53n.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.1.9-y55fqx1x.mjs +0 -1
- package/dist/chunks/fullscreen-0.1.9-xy9bnpe3.mjs +0 -1
- package/dist/chunks/git-0.1.9-09pdaxwd.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.1.9-bzx6c3bd.mjs +0 -1
- package/dist/chunks/growthbook-0.1.9-rqhcy76z.mjs +0 -1
- package/dist/chunks/heapdump-0.1.9-qrfce4dp.mjs +0 -6
- package/dist/chunks/help-0.1.9-sfn2ed9n.mjs +0 -1
- package/dist/chunks/hookChains-0.1.9-5t2mrtyc.mjs +0 -3
- package/dist/chunks/hooks-0.1.9-4cebdztn.mjs +0 -1
- package/dist/chunks/hooks-0.1.9-y0vtx23k.mjs +0 -79
- package/dist/chunks/ide-0.1.9-yxzacgd5.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.1.9-fwc1ge47.mjs +0 -1
- package/dist/chunks/index-0.1.9-2gv7a7tq.mjs +0 -2
- package/dist/chunks/index-0.1.9-31vnb803.mjs +0 -1
- package/dist/chunks/index-0.1.9-68aa3hmw.mjs +0 -1
- package/dist/chunks/index-0.1.9-7ktx5gez.mjs +0 -1
- package/dist/chunks/index-0.1.9-8feamw1f.mjs +0 -1
- package/dist/chunks/index-0.1.9-8hzceckr.mjs +0 -5
- package/dist/chunks/index-0.1.9-96thm65j.mjs +0 -1
- package/dist/chunks/index-0.1.9-c7sexk3f.mjs +0 -2
- package/dist/chunks/index-0.1.9-fvtq6thw.mjs +0 -1
- package/dist/chunks/index-0.1.9-g2ngvhaf.mjs +0 -1
- package/dist/chunks/index-0.1.9-gtn0qcv2.mjs +0 -7
- package/dist/chunks/index-0.1.9-h548q4km.mjs +0 -1
- package/dist/chunks/index-0.1.9-j6ac60hq.mjs +0 -1
- package/dist/chunks/index-0.1.9-jxdymwv4.mjs +0 -1
- package/dist/chunks/index-0.1.9-kgdkzpmr.mjs +0 -1
- package/dist/chunks/index-0.1.9-mt2y3wyw.mjs +0 -9
- package/dist/chunks/index-0.1.9-smem7egb.mjs +0 -30
- package/dist/chunks/index-0.1.9-snmdvw2f.mjs +0 -1
- package/dist/chunks/index-0.1.9-vwevfx80.mjs +0 -1
- package/dist/chunks/index-0.1.9-w21jc8bp.mjs +0 -1
- package/dist/chunks/index-0.1.9-wpqaqk4y.mjs +0 -1
- package/dist/chunks/index-0.1.9-yjp28h60.mjs +0 -9
- package/dist/chunks/initReplBridge-0.1.9-dag95hyf.mjs +0 -1
- package/dist/chunks/ink-0.1.9-4n2nvw5p.mjs +0 -1
- package/dist/chunks/insights-0.1.9-9hr8tshw.mjs +0 -870
- package/dist/chunks/install-0.1.9-km91vvgf.mjs +0 -1
- package/dist/chunks/install-github-app-0.1.9-874a2dgj.mjs +0 -149
- package/dist/chunks/install-slack-app-0.1.9-q5yyb8vs.mjs +0 -1
- package/dist/chunks/instrumentation-0.1.9-raz129aj.mjs +0 -12
- package/dist/chunks/interactiveHelpers-0.1.9-21a8r4rv.mjs +0 -1
- package/dist/chunks/keybindings-0.1.9-nm8s4x8m.mjs +0 -2
- package/dist/chunks/knowledge-0.1.9-zhr6zq80.mjs +0 -2
- package/dist/chunks/loadAgentsDir-0.1.9-3m0mzw84.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.1.9-y46g5zj0.mjs +0 -1
- package/dist/chunks/logout-0.1.9-hb89bxj8.mjs +0 -1
- package/dist/chunks/lsp-0.1.9-2j3y8eqc.mjs +0 -1
- package/dist/chunks/main-0.1.9-7cnyr288.mjs +0 -1
- package/dist/chunks/managedEnv-0.1.9-y8wax2wz.mjs +0 -1
- package/dist/chunks/mcp-0.1.9-14beee71.mjs +0 -17
- package/dist/chunks/mcp-0.1.9-qw1n3pzx.mjs +0 -4
- package/dist/chunks/mcp-0.1.9-zd92e41j.mjs +0 -1
- package/dist/chunks/mcpServer-0.1.9-5p48a2y0.mjs +0 -1
- package/dist/chunks/mcpb-0.1.9-t8x1bjwv.mjs +0 -1
- package/dist/chunks/memory-0.1.9-mxz6vgsy.mjs +0 -3
- package/dist/chunks/mobile-0.1.9-144nwr03.mjs +0 -2
- package/dist/chunks/model-0.1.9-ghswdzx2.mjs +0 -1
- package/dist/chunks/model-0.1.9-j4vhm4vm.mjs +0 -2
- package/dist/chunks/oauth-0.1.9-a7p9ezjx.mjs +0 -1
- package/dist/chunks/openaiShim-0.1.9-5bn57rv6.mjs +0 -14
- package/dist/chunks/output-style-0.1.9-y8t5c5v3.mjs +0 -1
- package/dist/chunks/package-HMBVQOZ4-0.1.9-mbvqe0av.mjs +0 -1
- package/dist/chunks/parser-0.1.9-d7vc9q1w.mjs +0 -1
- package/dist/chunks/passes-0.1.9-84vsp058.mjs +0 -1
- package/dist/chunks/permissions-0.1.9-h0a2312z.mjs +0 -3
- package/dist/chunks/plan-0.1.9-k9dx9nwc.mjs +0 -1
- package/dist/chunks/plist-0.1.9-f3c6hvca.mjs +0 -1
- package/dist/chunks/plugin-0.1.9-z3nwra38.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.1.9-p68xwmv4.mjs +0 -1
- package/dist/chunks/plugins-0.1.9-grc1bgmj.mjs +0 -9
- package/dist/chunks/print-0.1.9-z151tvas.mjs +0 -57
- package/dist/chunks/privacy-settings-0.1.9-m7xpxtd8.mjs +0 -1
- package/dist/chunks/process-0.1.9-anx0dq1a.mjs +0 -1
- package/dist/chunks/processBashCommand-0.1.9-bchtybqh.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.1.9-ebvc859m.mjs +0 -9
- package/dist/chunks/prompt-0.1.9-08fnpwfx.mjs +0 -1
- package/dist/chunks/prompt-0.1.9-whqkx3td.mjs +0 -1
- package/dist/chunks/prompts-0.1.9-psek69yr.mjs +0 -1
- package/dist/chunks/provider-0.1.9-xwmdqr38.mjs +0 -2
- package/dist/chunks/providerProfiles-0.1.9-myc8zcfy.mjs +0 -1
- package/dist/chunks/rate-limit-options-0.1.9-06twart5.mjs +0 -1
- package/dist/chunks/registry-0.1.9-xxrsbce3.mjs +0 -1
- package/dist/chunks/release-notes-0.1.9-4r396x7z.mjs +0 -5
- package/dist/chunks/reload-plugins-0.1.9-hm09ekrf.mjs +0 -2
- package/dist/chunks/remote-env-0.1.9-0peng4np.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.1.9-4eg0bkck.mjs +0 -1
- package/dist/chunks/remoteSession-0.1.9-7jagnaes.mjs +0 -1
- package/dist/chunks/rename-0.1.9-3r8bqa1y.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.1.9-1y32h5jq.mjs +0 -1
- package/dist/chunks/resume-0.1.9-gayv56qp.mjs +0 -2
- package/dist/chunks/rewind-0.1.9-krxjbzeg.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.1.9-b4ze2ex2.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.1.9-6vctxbed.mjs +0 -1
- package/dist/chunks/session-0.1.9-jtrr3jje.mjs +0 -2
- package/dist/chunks/sessionFileAccessHooks-0.1.9-wpgdva8t.mjs +0 -1
- package/dist/chunks/sessionStorage-0.1.9-1v6wyqzw.mjs +0 -1
- package/dist/chunks/setup-0.1.9-jc5w6v5s.mjs +0 -5
- package/dist/chunks/sinks-0.1.9-49ereb4y.mjs +0 -1
- package/dist/chunks/skills-0.1.9-d63w5m27.mjs +0 -1
- package/dist/chunks/startupProfiler-0.1.9-gmke65dk.mjs +0 -1
- package/dist/chunks/state-0.1.9-m8x0v07d.mjs +0 -1
- package/dist/chunks/stats-0.1.9-yvya6xg6.mjs +0 -6
- package/dist/chunks/status-0.1.9-sapnwz4b.mjs +0 -1
- package/dist/chunks/stickers-0.1.9-ewdagtd4.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.1.9-2dqzh55d.mjs +0 -1
- package/dist/chunks/tasks-0.1.9-qgqwhse9.mjs +0 -1
- package/dist/chunks/teamHelpers-0.1.9-r474ar76.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.1.9-nwc11b9m.mjs +0 -1
- package/dist/chunks/teleport-0.1.9-xaj204my.mjs +0 -1
- package/dist/chunks/terminalSetup-0.1.9-xd5rhh32.mjs +0 -1
- package/dist/chunks/theme-0.1.9-f6jzdysz.mjs +0 -1
- package/dist/chunks/thinkback-0.1.9-8j25tex7.mjs +0 -1
- package/dist/chunks/thinkback-play-0.1.9-tzs2w3mj.mjs +0 -1
- package/dist/chunks/toolPool-0.1.9-6b4938vh.mjs +0 -1
- package/dist/chunks/toolSearch-0.1.9-7ych6nv7.mjs +0 -1
- package/dist/chunks/trustedDevice-0.1.9-xqxt3kmz.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.1.9-m1wesrr4.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.1.9-x09n5pvc.mjs +0 -4
- package/dist/chunks/update-0.1.9-8dntd8kh.mjs +0 -94
- package/dist/chunks/upgrade-0.1.9-eja31dgt.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.1.9-pv2yqh11.mjs +0 -14
- package/dist/chunks/usage-0.1.9-neje6dea.mjs +0 -1
- package/dist/chunks/util-0.1.9-kdhggd68.mjs +0 -1
- package/dist/chunks/utils-0.1.9-bqw30f8b.mjs +0 -1
- package/dist/chunks/vim-0.1.9-w4d1qz6f.mjs +0 -1
- package/dist/chunks/watcher-0.1.9-ty2r0yxd.mjs +0 -1
- package/dist/chunks/wiki-0.1.9-ah646x2k.mjs +0 -132
- package/dist/chunks/worktree-0.1.9-d3fbxjwd.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.1.9-qbn6b5fs.mjs +0 -1
- package/dist/chunks/wrapper-0.1.9-eh46qafm.mjs +0 -7
- /package/dist/chunks/{cli-0.1.9-zrdz7st3.mjs → cli-0.1.11-x3q39kf7.mjs} +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{D0 as E,z0 as h}from"./cli-0.1.9-gandxpzf.mjs";import{R2 as T,X2 as x}from"./cli-0.1.9-4sqfjw8t.mjs";import{ica as P,nca as _,tca as q,wca as f,zca as G}from"./cli-0.1.9-86kws2c7.mjs";G();q();E();x();import R from"os";var N="—",Z="\x1B[",W=`${Z}0m`,A=`${Z}2m`,I=`${Z}1m`,g=(F,z,K)=>`${Z}38;2;${F};${z};${K}m`,u=[243,145,175],Y=[225,95,140],c=[170,65,110],y=[" "," █▀███▀█"," █▄███▄█"," ▀█▄▄▄█▀"," █▀█ "],b=[u,Y,Y,Y,c],i=y[0].length;function L(F){let z=f();if(!z)return{name:"Not configured",model:F?T(F):N,baseUrl:N,isLocal:!1};let{transport:K,baseUrl:H}=z,k=F||z.model,$=P(H);switch(K){case"gemini":return{name:"Google Gemini",model:k,baseUrl:H,isLocal:!1};case"mistral":return{name:"Mistral",model:k,baseUrl:H,isLocal:!1};case"github_copilot":return{name:"GitHub Copilot",model:k,baseUrl:H,isLocal:!1};case"bedrock":return{name:"AWS Bedrock",model:T(k),baseUrl:H,isLocal:!1};case"vertex":return{name:"Google Vertex",model:T(k),baseUrl:H,isLocal:!1};case"foundry":return{name:"Azure Foundry",model:T(k),baseUrl:H,isLocal:!1};case"anthropic":return{name:"Anthropic",model:T(k),baseUrl:H,isLocal:$};case"codex_responses":case"openai_compat":default:{let Q=_({model:k,baseUrl:H}),D=Q.baseUrl,X=P(D),j="OpenAI";if(Q.transport==="codex_responses"||D.includes("chatgpt.com/backend-api/codex"))j="Codex";else if(/openrouter/i.test(D))j="OpenRouter";else if(/together/i.test(D))j="Together AI";else if(/groq/i.test(D))j="Groq";else if(/azure/i.test(D))j="Azure OpenAI";else if(/nvidia/i.test(D))j="NVIDIA NIM";else if(/minimax/i.test(D))j="MiniMax";else if(/api\.kimi\.com/i.test(D))j="Moonshot AI - Kimi Code";else if(/moonshot/i.test(D))j="Moonshot AI - API";else if(/deepseek/i.test(D))j="DeepSeek";else if(/mistral/i.test(D))j="Mistral";else if(/nvidia/i.test(k))j="NVIDIA NIM";else if(/minimax/i.test(k))j="MiniMax";else if(/\bkimi-for-coding\b/i.test(k))j="Moonshot AI - Kimi Code";else if(/\bkimi-k/i.test(k)||/moonshot/i.test(k))j="Moonshot AI - API";else if(/deepseek/i.test(k))j="DeepSeek";else if(/mistral/i.test(k))j="Mistral";else if(/llama/i.test(k))j="Meta Llama";else if(/bankr/i.test(D))j="Bankr";else if(/bankr/i.test(k))j="Bankr";else if(X)j=h(D);let J=Q.resolvedModel,V=Q.reasoning?.effort??z.extras?.reasoningEffort;if(V)J=`${J} (${V})`;return{name:j,model:J,baseUrl:D,isLocal:X}}}}function p(){let F=process.cwd(),z=R.homedir();if(F===z)return"~";if(F.startsWith(z+"/"))return"~"+F.slice(z.length);return F}function B(F,z){return`${g(...z)}${F}${W}`}var m=80;function O(F){let z=L(F),K=[];K.push("");let H="0.1.9",k=`${A}·${W}`,$=`${I}Claudio${W} ${A}v${H}${W}`,Q=`${z.name} ${k} ${z.model}`,D=`${A}${p()}${W}`,X=[void 0,$,Q,D,void 0],j=" ";for(let J=0;J<y.length;J++){let V=B(y[J],b[J]??Y),C=X[J];K.push(C?`${V}${j}${C}`:V)}return K.push(""),K}var S=!1;function v(F){if(process.env.CI||!process.stdout.isTTY)return;if(S)return;S=!0;let z=O(F);process.stdout.write(z.join(`
|
|
2
|
-
`)+`
|
|
3
|
-
`)}export{i as t0,L as u0,m as v0,O as w0,v as x0};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Qc as zq,Uc as Tq}from"./cli-0.1.9-a95nqhbd.mjs";import{$c as qq,ad as bq}from"./cli-0.1.9-2thp2z73.mjs";import{BF as Nq,EG as p,HG as Cq,MF as s,NF as _q,RF as r,UF as a,YF as l,bG as t,dG as Rq,iv as n,jv as Gq,lG as e,oG as Fq,ty as k,uy as fq,yF as A}from"./cli-0.1.9-04ez73f7.mjs";import{xP as i,yP as yq}from"./cli-0.1.9-ak0b9xfs.mjs";import{FS as Lq,UU as Oq,dU as o,eU as Bq,nU as F,pU as C}from"./cli-0.1.9-nw3rpxdd.mjs";import{zX as E}from"./cli-0.1.9-2v4s8yf9.mjs";import{AX as vq}from"./cli-0.1.9-hy9s1fnj.mjs";import{V8 as x,a7 as m,f7 as Zq,k7 as D,k8 as $,l7 as Xq,m8 as wq,n7 as g,p7 as Hq,p9 as Kq}from"./cli-0.1.9-86kws2c7.mjs";import{$fa as u,Aga as Yq,Yfa as P,dga as Wq,xga as O}from"./cli-0.1.9-vdw09f8y.mjs";import{hna as I,lna as Uq}from"./cli-0.1.9-kbrf27z8.mjs";import{readFile as d}from"fs/promises";import{join as S}from"path";function Jq(){return s}function Mq(){return Vq}function Qq(){return`thinkback@${Jq()}`}async function Sq(){let{enabled:K}=await p(),q=K.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Qq()));if(!q)return null;let J=S(q.path,"skills",Aq);if(await x(J))return J;return null}async function jq(K){let q=S(K,"year_in_review.js"),J=S(K,"player.js");try{await d(q)}catch(z){if(u(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await d(J)}catch(z){if(u(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=o.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await D("node",[J],{stdio:"inherit",cwd:K,reject:!1})}catch{}finally{U.exitAlternateScreen()}let y=S(K,"year_in_review.html");if(await x(y)){let z=$();g(z==="macos"?"open":z==="windows"?"start":"xdg-open",[y])}return{success:!0,message:"Year in review animation complete!"}}function Iq({onReady:K,onError:q}){let[J,U]=L.useState({phase:"checking"}),[y,z]=L.useState("");if(L.useEffect(()=>{async function H(){try{let G=await a(),X=Jq(),f=Mq(),w=Qq(),R=X in G,B=e(w);if(!R)U({phase:"installing-marketplace"}),O(`Installing marketplace ${f}`),await l({source:"github",repo:f},(W)=>{z(W)}),A(),O(`Marketplace ${X} installed`);else if(!B)U({phase:"installing-marketplace"}),z("Updating marketplace…"),O(`Refreshing marketplace ${X}`),await t(X,(W)=>{z(W)}),r(),A(),O(`Marketplace ${X} refreshed`);if(!B){U({phase:"installing-plugin"}),O(`Installing plugin ${w}`);let W=await qq([w]);if(W.failed.length>0){let v=W.failed.map((Z)=>`${Z.name}: ${Z.error}`).join(", ");throw Error(`Failed to install plugin: ${v}`)}A(),O(`Plugin ${w} installed`)}else{let{disabled:W}=await p();if(W.some((Z)=>Z.name==="thinkback"||Z.source?.includes(w))){U({phase:"enabling-plugin"}),O(`Enabling plugin ${w}`);let Z=await zq(w);if(!Z.success)throw Error(`Failed to enable plugin: ${Z.message}`);A(),O(`Plugin ${w} enabled`)}}U({phase:"ready"}),K()}catch(G){let X=P(G);m(X),U({phase:"error",message:X.message}),q(X.message)}}H()},[K,q]),J.phase==="error")return Y.jsxDEV(F,{flexDirection:"column",children:Y.jsxDEV(C,{color:"error",children:["Error: ",J.message]},void 0,!0,void 0,this)},void 0,!1,void 0,this);if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return Y.jsxDEV(F,{flexDirection:"column",children:Y.jsxDEV(F,{children:[Y.jsxDEV(k,{},void 0,!1,void 0,this),Y.jsxDEV(C,{children:y||T},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function Pq(K){let q=c.c(19),{onDone:J,onAction:U,skillDir:y,hasGenerated:z}=K,[T,H]=L.useState(!1),G;if(q[0]!==z)G=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=G;else G=q[1];let X=G,f;if(q[2]!==U||q[3]!==J||q[4]!==y)f=function(b){if(H(!0),b==="play")jq(y).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=y,q[5]=f;else f=q[5];let w=f,R;if(q[6]!==J)R=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=R;else R=q[7];let B=R;if(T)return null;let W;if(q[8]!==z)W=!z&&Y.jsxDEV(F,{flexDirection:"column",children:[Y.jsxDEV(C,{children:"Relive your year of coding with Claude."},void 0,!1,void 0,this),Y.jsxDEV(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[8]=z,q[9]=W;else W=q[9];let v;if(q[10]!==w||q[11]!==X)v=Y.jsxDEV(n,{options:X,onChange:w,visibleOptionCount:5},void 0,!1,void 0,this),q[10]=w,q[11]=X,q[12]=v;else v=q[12];let Z;if(q[13]!==W||q[14]!==v)Z=Y.jsxDEV(F,{flexDirection:"column",gap:1,children:[W,v]},void 0,!0,void 0,this),q[13]=W,q[14]=v,q[15]=Z;else Z=q[15];let N;if(q[16]!==B||q[17]!==Z)N=Y.jsxDEV(i,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:B,color:"claude",children:Z},void 0,!1,void 0,this),q[16]=B,q[17]=Z,q[18]=N;else N=q[18];return N}function uq(K){let q=c.c(27),{onDone:J}=K,[U,y]=L.useState(!1),[z,T]=L.useState(null),[H,G]=L.useState(null),[X,f]=L.useState(null),w;if(q[0]===Symbol.for("react.memo_cache_sentinel"))w=function(){y(!0)},q[0]=w;else w=q[0];let R=w,B;if(q[1]!==J)B=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=B;else B=q[2];let W=B,v,Z;if(q[3]!==W||q[4]!==U||q[5]!==z||q[6]!==H)v=()=>{if(U&&!H&&!z)Sq().then((Q)=>{if(Q)O(`Thinkback skill directory: ${Q}`),G(Q);else W("Could not find thinkback skill directory")})},Z=[U,H,z,W],q[3]=W,q[4]=U,q[5]=z,q[6]=H,q[7]=v,q[8]=Z;else v=q[7],Z=q[8];L.useEffect(v,Z);let N,V;if(q[9]!==H)N=()=>{if(!H)return;let Q=S(H,"year_in_review.js");x(Q).then((_)=>{O(`Checking for ${Q}: ${_?"found":"not found"}`),f(_)})},V=[H],q[9]=H,q[10]=N,q[11]=V;else N=q[10],V=q[11];L.useEffect(N,V);let b;if(q[12]!==J)b=function(_){J({edit:mq,fix:xq,regenerate:hq}[_],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let h=b;if(z){let Q;if(q[14]!==z)Q=Y.jsxDEV(C,{color:"error",children:["Error: ",z]},void 0,!0,void 0,this),q[14]=z,q[15]=Q;else Q=q[15];let _;if(q[16]===Symbol.for("react.memo_cache_sentinel"))_=Y.jsxDEV(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."},void 0,!1,void 0,this),q[16]=_;else _=q[16];let M;if(q[17]!==Q)M=Y.jsxDEV(F,{flexDirection:"column",children:[Q,_]},void 0,!0,void 0,this),q[17]=Q,q[18]=M;else M=q[18];return M}if(!U){let Q;if(q[19]!==W)Q=Y.jsxDEV(Iq,{onReady:R,onError:W},void 0,!1,void 0,this),q[19]=W,q[20]=Q;else Q=q[20];return Q}if(!H||X===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=Y.jsxDEV(F,{children:[Y.jsxDEV(k,{},void 0,!1,void 0,this),Y.jsxDEV(C,{children:"Loading thinkback skill…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[21]=Q;else Q=q[21];return Q}let j;if(q[22]!==h||q[23]!==X||q[24]!==J||q[25]!==H)j=Y.jsxDEV(Pq,{onDone:J,onAction:h,skillDir:H,hasGenerated:X},void 0,!1,void 0,this),q[22]=h,q[23]=X,q[24]=J,q[25]=H,q[26]=j;else j=q[26];return j}async function Yz(K){return Y.jsxDEV(uq,{onDone:K},void 0,!1,void 0,this)}var c,L,Y,Vq="anthropics/claude-plugins-official",Aq="thinkback",mq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',xq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',hq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var kq=Uq(()=>{Xq();Gq();yq();fq();Bq();Oq();Tq();Yq();Wq();Hq();Kq();Zq();wq();Nq();Fq();Rq();_q();Cq();bq();c=I(Lq(),1),L=I(vq(),1),Y=I(E(),1)});
|
|
2
|
-
export{jq as Gc,Yz as Hc,kq as Ic};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function B(q,k=process.argv){for(let z=0;z<k.length;z++){let A=k[z];if(A?.startsWith(`${q}=`))return A.slice(q.length+1);if(A===q&&z+1<k.length)return k[z+1]}return}function D(q,k=[]){if(q==="--"&&k.length>0)return{command:k[0],args:k.slice(1)};return{command:q,args:k}}
|
|
2
|
-
export{B as i0,D as j0};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Afa as P,zfa as $}from"./cli-0.1.9-5ryrgdzg.mjs";import{Aga as O,Zfa as X,dga as z,fga as Y,jga as H,xga as Z}from"./cli-0.1.9-vdw09f8y.mjs";import{lna as x}from"./cli-0.1.9-kbrf27z8.mjs";function h(q){return q.replace(w,(Q,J,K)=>{if(K.length<F)return`"${J}":"[REDACTED]"`;let V=`${K.slice(0,8)}...${K.slice(-4)}`;return`"${J}":"${V}"`})}function N(q){let Q=typeof q==="string"?q:Y(q),J=h(Q);if(J.length<=W)return J;return J.slice(0,W)+`... (${J.length} chars)`}function R(q){let Q=X(q);if(q&&typeof q==="object"&&"response"in q){let J=q.response;if(J?.data&&typeof J.data==="object"){let K=J.data,V=typeof K.message==="string"?K.message:typeof K.error==="object"&&K.error&&("message"in K.error)&&typeof K.error.message==="string"?K.error.message:void 0;if(V)return`${Q}: ${V}`}}return Q}function U(q){if(q&&typeof q==="object"&&"response"in q&&q.response&&typeof q.response.status==="number")return q.response.status;return}function j(q){if(!q||typeof q!=="object")return;if("message"in q&&typeof q.message==="string")return q.message;if("error"in q&&q.error!==null&&typeof q.error==="object"&&"message"in q.error&&typeof q.error.message==="string")return q.error.message;return}function D(q,Q,J){if(Q)Z(Q);$("tengu_bridge_repl_skipped",{reason:q,...J!==void 0&&{v2:J}})}var W=2000,k,w,F=16;var m=x(()=>{P();O();z();H();k=["session_ingress_token","environment_secret","access_token","secret","token"],w=new RegExp(`"(${k.join("|")})"\\s*:\\s*"([^"]*)"`,"g")});
|
|
2
|
-
export{N as jd,R as kd,U as ld,j as md,D as nd,m as od};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{lna as V}from"./cli-0.1.9-kbrf27z8.mjs";var k0,b;var T=V(()=>{k0=typeof global=="object"&&global&&global.Object===Object&&global,b=k0});var m0,y0,K;var z=V(()=>{T();m0=typeof self=="object"&&self&&self.Object===Object&&self,y0=b||m0||Function("return this")(),K=y0});var l0,B;var x=V(()=>{z();l0=K.Symbol,B=l0});function c0(q){var Z=v0.call(q,N),Q=q[N];try{q[N]=void 0;var Y=!0}catch(L){}var A=u0.call(q);if(Y)if(Z)q[N]=Q;else delete q[N];return A}var j,v0,u0,N,C;var f=V(()=>{x();j=Object.prototype,v0=j.hasOwnProperty,u0=j.toString,N=B?B.toStringTag:void 0;C=c0});function i0(q){return o0.call(q)}var h0,o0,g;var d=V(()=>{h0=Object.prototype,o0=h0.toString;g=i0});function s0(q){if(q==null)return q===void 0?r0:n0;return p&&p in Object(q)?C(q):g(q)}var n0="[object Null]",r0="[object Undefined]",p,k;var m=V(()=>{x();f();d();p=B?B.toStringTag:void 0;k=s0});function t0(q){var Z=typeof q;return q!=null&&(Z=="object"||Z=="function")}var G;var O=V(()=>{G=t0});function Qq(q){if(!G(q))return!1;var Z=k(q);return Z==e0||Z==qq||Z==a0||Z==Zq}var a0="[object AsyncFunction]",e0="[object Function]",qq="[object GeneratorFunction]",Zq="[object Proxy]",y;var l=V(()=>{m();O();y=Qq});var Vq,I;var v=V(()=>{z();Vq=K["__core-js_shared__"],I=Vq});function Yq(q){return!!u&&u in q}var u,c;var h=V(()=>{v();u=function(){var q=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""}();c=Yq});function Xq(q){if(q!=null){try{return Wq.call(q)}catch(Z){}try{return q+""}catch(Z){}}return""}var $q,Wq,o;var i=V(()=>{$q=Function.prototype,Wq=$q.toString;o=Xq});function Nq(q){if(!G(q)||c(q))return!1;var Z=y(q)?Lq:Bq;return Z.test(o(q))}var Kq,Bq,Jq,Uq,Eq,Aq,Lq,n;var r=V(()=>{l();h();O();i();Kq=/[\\^$.*+?()[\]{}|]/g,Bq=/^\[object .+?Constructor\]$/,Jq=Function.prototype,Uq=Object.prototype,Eq=Jq.toString,Aq=Uq.hasOwnProperty,Lq=RegExp("^"+Eq.call(Aq).replace(Kq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n=Nq});function wq(q,Z){return q==null?void 0:q[Z]}var s;var t=V(()=>{s=wq});function Fq(q,Z){var Q=s(q,Z);return n(Q)?Q:void 0}var D;var R=V(()=>{r();t();D=Fq});var Pq,$;var w=V(()=>{R();Pq=D(Object,"create"),$=Pq});function zq(){this.__data__=$?$(null):{},this.size=0}var a;var e=V(()=>{w();a=zq});function Gq(q){var Z=this.has(q)&&delete this.__data__[q];return this.size-=Z?1:0,Z}var q0;var Z0=V(()=>{q0=Gq});function Oq(q){var Z=this.__data__;if($){var Q=Z[q];return Q===Iq?void 0:Q}return xq.call(Z,q)?Z[q]:void 0}var Iq="__lodash_hash_undefined__",Dq,xq,Q0;var V0=V(()=>{w();Dq=Object.prototype,xq=Dq.hasOwnProperty;Q0=Oq});function Mq(q){var Z=this.__data__;return $?Z[q]!==void 0:Hq.call(Z,q)}var Rq,Hq,Y0;var $0=V(()=>{w();Rq=Object.prototype,Hq=Rq.hasOwnProperty;Y0=Mq});function Sq(q,Z){var Q=this.__data__;return this.size+=this.has(q)?0:1,Q[q]=$&&Z===void 0?_q:Z,this}var _q="__lodash_hash_undefined__",W0;var X0=V(()=>{w();W0=Sq});function J(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var H;var K0=V(()=>{e();Z0();V0();$0();X0();J.prototype.clear=a;J.prototype.delete=q0;J.prototype.get=Q0;J.prototype.has=Y0;J.prototype.set=W0;H=J});function bq(){this.__data__=[],this.size=0}var B0;var J0=V(()=>{B0=bq});function Tq(q,Z){return q===Z||q!==q&&Z!==Z}var U0;var E0=V(()=>{U0=Tq});function jq(q,Z){var Q=q.length;while(Q--)if(U0(q[Q][0],Z))return Q;return-1}var W;var F=V(()=>{E0();W=jq});function gq(q){var Z=this.__data__,Q=W(Z,q);if(Q<0)return!1;var Y=Z.length-1;if(Q==Y)Z.pop();else fq.call(Z,Q,1);return--this.size,!0}var Cq,fq,A0;var L0=V(()=>{F();Cq=Array.prototype,fq=Cq.splice;A0=gq});function dq(q){var Z=this.__data__,Q=W(Z,q);return Q<0?void 0:Z[Q][1]}var N0;var w0=V(()=>{F();N0=dq});function pq(q){return W(this.__data__,q)>-1}var F0;var P0=V(()=>{F();F0=pq});function kq(q,Z){var Q=this.__data__,Y=W(Q,q);if(Y<0)++this.size,Q.push([q,Z]);else Q[Y][1]=Z;return this}var z0;var G0=V(()=>{F();z0=kq});function U(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var I0;var D0=V(()=>{J0();L0();w0();P0();G0();U.prototype.clear=B0;U.prototype.delete=A0;U.prototype.get=N0;U.prototype.has=F0;U.prototype.set=z0;I0=U});var mq,x0;var O0=V(()=>{R();z();mq=D(K,"Map"),x0=mq});function yq(){this.size=0,this.__data__={hash:new H,map:new(x0||I0),string:new H}}var R0;var H0=V(()=>{K0();D0();O0();R0=yq});function lq(q){var Z=typeof q;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?q!=="__proto__":q===null}var M0;var _0=V(()=>{M0=lq});function vq(q,Z){var Q=q.__data__;return M0(Z)?Q[typeof Z=="string"?"string":"hash"]:Q.map}var X;var P=V(()=>{_0();X=vq});function uq(q){var Z=X(this,q).delete(q);return this.size-=Z?1:0,Z}var S0;var b0=V(()=>{P();S0=uq});function cq(q){return X(this,q).get(q)}var T0;var j0=V(()=>{P();T0=cq});function hq(q){return X(this,q).has(q)}var C0;var f0=V(()=>{P();C0=hq});function oq(q,Z){var Q=X(this,q),Y=Q.size;return Q.set(q,Z),this.size+=Q.size==Y?0:1,this}var g0;var d0=V(()=>{P();g0=oq});function E(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var M;var p0=V(()=>{H0();b0();j0();f0();d0();E.prototype.clear=R0;E.prototype.delete=S0;E.prototype.get=T0;E.prototype.has=C0;E.prototype.set=g0;M=E});function _(q,Z){if(typeof q!="function"||Z!=null&&typeof Z!="function")throw TypeError(iq);var Q=function(){var Y=arguments,A=Z?Z.apply(this,Y):Y[0],L=Q.cache;if(L.has(A))return L.get(A);var S=q.apply(this,Y);return Q.cache=L.set(A,S)||L,S};return Q.cache=new(_.Cache||M),Q}var iq="Expected a function",j6;var nq=V(()=>{p0();_.Cache=M;j6=_});
|
|
2
|
-
export{b as qma,T as rma,K as sma,z as tma,B as uma,x as vma,k as wma,m as xma,G as yma,O as zma,y as Ama,l as Bma,o as Cma,i as Dma,D as Ema,R as Fma,U0 as Gma,E0 as Hma,I0 as Ima,D0 as Jma,x0 as Kma,O0 as Lma,M as Mma,p0 as Nma,j6 as Oma,nq as Pma};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$_ as T,H7 as k,J7 as E,__ as D,k8 as $,m8 as O,n7 as V,p7 as P}from"./cli-0.1.9-86kws2c7.mjs";import{Aga as N,bga as x,dga as C,xga as Z}from"./cli-0.1.9-vdw09f8y.mjs";import{lna as B}from"./cli-0.1.9-kbrf27z8.mjs";import{readdirSync as y}from"fs";import{stat as W}from"fs/promises";import{homedir as F,platform as H,tmpdir as _,userInfo as M}from"os";import{join as J}from"path";function i(){let v=$(),G=F(),q=[];for(let z of X){let j=K[z],Q;switch(v){case"macos":Q=j.macos.dataPath;break;case"linux":case"wsl":Q=j.linux.dataPath;break;case"windows":{if(j.windows.dataPath.length>0){let Y=j.windows.useRoaming?J(G,"AppData","Roaming"):J(G,"AppData","Local");q.push({browser:z,path:J(Y,...j.windows.dataPath)})}continue}}if(Q&&Q.length>0)q.push({browser:z,path:J(G,...Q)})}return q}function c(){let v=$(),G=F(),q=[];for(let z of X){let j=K[z];switch(v){case"macos":if(j.macos.nativeMessagingPath.length>0)q.push({browser:z,path:J(G,...j.macos.nativeMessagingPath)});break;case"linux":case"wsl":if(j.linux.nativeMessagingPath.length>0)q.push({browser:z,path:J(G,...j.linux.nativeMessagingPath)});break;case"windows":break}}return q}function t(){let v=[];for(let G of X){let q=K[G];if(q.windows.registryKey)v.push({browser:G,key:q.windows.registryKey})}return v}async function w(){let v=$();for(let G of X){let q=K[G];switch(v){case"macos":{let z=`/Applications/${q.macos.appName}.app`;try{if((await W(z)).isDirectory())return Z(`[Claude in Chrome] Detected browser: ${q.name}`),G}catch(j){if(!x(j))throw j}break}case"wsl":case"linux":{for(let z of q.linux.binaries)if(await k(z).catch(()=>null))return Z(`[Claude in Chrome] Detected browser: ${q.name}`),G;break}case"windows":{let z=F();if(q.windows.dataPath.length>0){let j=q.windows.useRoaming?J(z,"AppData","Roaming"):J(z,"AppData","Local"),Q=J(j,...q.windows.dataPath);try{if((await W(Q)).isDirectory())return Z(`[Claude in Chrome] Detected browser: ${q.name}`),G}catch(Y){if(!x(Y))throw Y}}break}}}return null}function r(v){return D(v)===S}function o(v){if(L.size>=R&&!L.has(v))L.clear();L.add(v)}async function a(v){let G=$(),q=await w();if(!q)return Z("[Claude in Chrome] No compatible browser found"),!1;let z=K[q];switch(G){case"macos":{let{code:j}=await V("open",["-a",z.macos.appName,v]);return j===0}case"windows":{let{code:j}=await V("rundll32",["url,OpenURL",v]);return j===0}case"wsl":case"linux":{for(let j of z.linux.binaries){let{code:Q}=await V(j,[v]);if(Q===0)return!0}return!1}default:return!1}}function U(){return`/tmp/claude-mcp-browser-bridge-${A()}`}function e(){if(H()==="win32")return`\\\\.\\pipe\\${u()}`;return J(U(),`${process.pid}.sock`)}function jj(){if(H()==="win32")return[`\\\\.\\pipe\\${u()}`];let v=[],G=U();try{let Q=y(G);for(let Y of Q)if(Y.endsWith(".sock"))v.push(J(G,Y))}catch{}let q=`claude-mcp-browser-bridge-${A()}`,z=J(_(),q),j=`/tmp/${q}`;if(!v.includes(z))v.push(z);if(z!==j&&!v.includes(j))v.push(j);return v}function u(){return`claude-mcp-browser-bridge-${A()}`}function A(){try{return M().username||"default"}catch{return process.env.USER||process.env.USERNAME||"default"}}var S="claude-in-chrome",K,X,R=200,L;var b=B(()=>{T();N();C();P();O();E();K={chrome:{name:"Google Chrome",macos:{appName:"Google Chrome",dataPath:["Library","Application Support","Google","Chrome"],nativeMessagingPath:["Library","Application Support","Google","Chrome","NativeMessagingHosts"]},linux:{binaries:["google-chrome","google-chrome-stable"],dataPath:[".config","google-chrome"],nativeMessagingPath:[".config","google-chrome","NativeMessagingHosts"]},windows:{dataPath:["Google","Chrome","User Data"],registryKey:"HKCU\\Software\\Google\\Chrome\\NativeMessagingHosts"}},brave:{name:"Brave",macos:{appName:"Brave Browser",dataPath:["Library","Application Support","BraveSoftware","Brave-Browser"],nativeMessagingPath:["Library","Application Support","BraveSoftware","Brave-Browser","NativeMessagingHosts"]},linux:{binaries:["brave-browser","brave"],dataPath:[".config","BraveSoftware","Brave-Browser"],nativeMessagingPath:[".config","BraveSoftware","Brave-Browser","NativeMessagingHosts"]},windows:{dataPath:["BraveSoftware","Brave-Browser","User Data"],registryKey:"HKCU\\Software\\BraveSoftware\\Brave-Browser\\NativeMessagingHosts"}},arc:{name:"Arc",macos:{appName:"Arc",dataPath:["Library","Application Support","Arc","User Data"],nativeMessagingPath:["Library","Application Support","Arc","User Data","NativeMessagingHosts"]},linux:{binaries:[],dataPath:[],nativeMessagingPath:[]},windows:{dataPath:["Arc","User Data"],registryKey:"HKCU\\Software\\ArcBrowser\\Arc\\NativeMessagingHosts"}},chromium:{name:"Chromium",macos:{appName:"Chromium",dataPath:["Library","Application Support","Chromium"],nativeMessagingPath:["Library","Application Support","Chromium","NativeMessagingHosts"]},linux:{binaries:["chromium","chromium-browser"],dataPath:[".config","chromium"],nativeMessagingPath:[".config","chromium","NativeMessagingHosts"]},windows:{dataPath:["Chromium","User Data"],registryKey:"HKCU\\Software\\Chromium\\NativeMessagingHosts"}},edge:{name:"Microsoft Edge",macos:{appName:"Microsoft Edge",dataPath:["Library","Application Support","Microsoft Edge"],nativeMessagingPath:["Library","Application Support","Microsoft Edge","NativeMessagingHosts"]},linux:{binaries:["microsoft-edge","microsoft-edge-stable"],dataPath:[".config","microsoft-edge"],nativeMessagingPath:[".config","microsoft-edge","NativeMessagingHosts"]},windows:{dataPath:["Microsoft","Edge","User Data"],registryKey:"HKCU\\Software\\Microsoft\\Edge\\NativeMessagingHosts"}},vivaldi:{name:"Vivaldi",macos:{appName:"Vivaldi",dataPath:["Library","Application Support","Vivaldi"],nativeMessagingPath:["Library","Application Support","Vivaldi","NativeMessagingHosts"]},linux:{binaries:["vivaldi","vivaldi-stable"],dataPath:[".config","vivaldi"],nativeMessagingPath:[".config","vivaldi","NativeMessagingHosts"]},windows:{dataPath:["Vivaldi","User Data"],registryKey:"HKCU\\Software\\Vivaldi\\NativeMessagingHosts"}},opera:{name:"Opera",macos:{appName:"Opera",dataPath:["Library","Application Support","com.operasoftware.Opera"],nativeMessagingPath:["Library","Application Support","com.operasoftware.Opera","NativeMessagingHosts"]},linux:{binaries:["opera"],dataPath:[".config","opera"],nativeMessagingPath:[".config","opera","NativeMessagingHosts"]},windows:{dataPath:["Opera Software","Opera Stable"],registryKey:"HKCU\\Software\\Opera Software\\Opera Stable\\NativeMessagingHosts",useRoaming:!0}}},X=["chrome","brave","arc","edge","chromium","vivaldi","opera"];L=new Set});
|
|
2
|
-
export{S as IW,i as JW,c as KW,t as LW,r as MW,o as NW,a as OW,U as PW,e as QW,jj as RW,b as SW};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Gg as A,Hg as h}from"./cli-0.1.9-38zb09vp.mjs";import{M5 as H,b6 as P}from"./cli-0.1.9-b6zp931m.mjs";import{$6 as z,R6 as $,S6 as y,_6 as q,f7 as F}from"./cli-0.1.9-86kws2c7.mjs";import{Aga as E,Bfa as _,Cfa as N,Dfa as B,Ffa as W,fga as O,jga as w,nga as V,rga as C,xga as X}from"./cli-0.1.9-vdw09f8y.mjs";import{pma as L,wia as Z}from"./cli-0.1.9-7fp0smtp.mjs";h();P();L();N();y();W();E();C();F();w();import{dirname as I,join as x}from"path";var T=q(new Date);function D(){return x($.errors(),T+".jsonl")}function J(G){return x($.mcpLogs(G),T+".jsonl")}function S(G){let K=_(G);return{write(Q){K.write(O(Q)+`
|
|
2
|
-
`)},flush:K.flush,dispose:K.dispose}}var R=new Map;function M(G){let K=R.get(G);if(!K){let Q=I(G);K=S({writeFn:(U)=>{try{V().appendFileSync(G,U)}catch{V().mkdirSync(Q),V().appendFileSync(G,U)}},flushIntervalMs:1000,maxBufferSize:50}),R.set(G,K),B(async()=>K?.dispose())}return K}function f(G,K){}function v(G){if(typeof G==="string")return G;if(G&&typeof G==="object"){let K=G;if(typeof K.message==="string")return K.message;if(typeof K.error==="object"&&K.error&&"message"in K.error&&typeof K.error.message==="string")return K.error.message}return}function j(G){let K=G.stack||G.message,Q="";if(H.isAxiosError(G)&&G.config?.url){let U=[`url=${G.config.url}`];if(G.response?.status!==void 0)U.push(`status=${G.response.status}`);let Y=v(G.response?.data);if(Y)U.push(`body=${Y}`);Q=`[${U.join(",")}] `}X(`${G.name}: ${Q}${K}`,{level:"error"}),f(D(),{error:`${Q}${K}`})}function b(G,K){X(`MCP server "${G}" ${K}`,{level:"error"});let Q=J(G),Y={error:K instanceof Error?K.stack||K.message:String(K),timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};M(Q).write(Y)}function u(G,K){X(`MCP server "${G}": ${K}`);let Q=J(G),U={debug:K,timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};M(Q).write(U)}function k(){z({logError:j,logMCPError:b,logMCPDebug:u,getErrorsPath:D,getMCPLogsPath:J}),X("Error log sink initialized")}function r(){k(),A()}
|
|
3
|
-
export{r as K};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{ufa as L,yfa as O}from"./cli-0.1.9-9nhh15bp.mjs";import{lna as N}from"./cli-0.1.9-kbrf27z8.mjs";function S(){if(!process.stdin.isTTY||D||process.argv.includes("-p")||process.argv.includes("--print"))return;D=!0,z="";try{process.stdin.setEncoding("utf8"),process.stdin.setRawMode(!0),process.stdin.ref(),F=()=>{let q=process.stdin.read();while(q!==null){if(typeof q==="string")P(q);q=process.stdin.read()}},process.stdin.on("readable",F)}catch{D=!1}}function P(q){let w=0;while(w<q.length){let K=q[w],A=K.charCodeAt(0);if(A===3){J(),process.exit(130);return}if(A===4){J();return}if(A===127||A===8){if(z.length>0){let M=L(z);z=z.slice(0,-(M.length||1))}w++;continue}if(A===27){w++;while(w<q.length&&!(q.charCodeAt(w)>=64&&q.charCodeAt(w)<=126))w++;if(w<q.length)w++;continue}if(A<32&&A!==9&&A!==10&&A!==13){w++;continue}if(A===13){z+=`
|
|
2
|
-
`,w++;continue}z+=K,w++}}function J(){if(!D)return;if(D=!1,F)process.stdin.removeListener("readable",F),F=null}function T(){J();let q=z.trim();return z="",q}function U(){return z.trim().length>0}function V(q){z=q}function W(){return D}var z="",D=!1,F=null;var Q=N(()=>{O()});
|
|
3
|
-
export{S as VU,J as WU,T as XU,U as YU,V as ZU,W as _U,Q as $U};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{Kn as J,Ln as k,MH as z,VI as f,XI as P,yH as L}from"./cli-0.1.9-04ez73f7.mjs";import{s9 as F,x9 as A}from"./cli-0.1.9-86kws2c7.mjs";import{pda as W,rda as R,sda as H,tda as X}from"./cli-0.1.9-0dtdhejj.mjs";import{Afa as h,zfa as Y}from"./cli-0.1.9-5ryrgdzg.mjs";import{Aga as M,xga as D}from"./cli-0.1.9-vdw09f8y.mjs";import{jka as q,pma as C}from"./cli-0.1.9-7fp0smtp.mjs";import{lna as V}from"./cli-0.1.9-kbrf27z8.mjs";function S(U){let Q=[];for(let w of U){if(w.type!=="user"&&w.type!=="assistant")continue;if("isMeta"in w&&w.isMeta)continue;if("origin"in w&&w.origin&&w.origin.kind!=="human")continue;let K=w.message.content;if(typeof K==="string")Q.push(K);else if(Array.isArray(K)){for(let B of K)if("type"in B&&B.type==="text"&&"text"in B)Q.push(B.text)}}let G=Q.join(`
|
|
2
|
-
`);return G.length>$?G.slice(-$):G}async function T(U,Q){let G=U.trim();if(!G)return null;try{let w=await f({systemPrompt:J([v]),userPrompt:G,outputFormat:{type:"json_schema",schema:{type:"object",properties:{title:{type:"string"}},required:["title"],additionalProperties:!1}},signal:Q,options:{querySource:"generate_session_title",agents:[],isNonInteractiveSession:q(),hasAppendSystemPrompt:!1,mcpTools:[]}}),K=L(w.message.content),B=I().safeParse(F(K)),Z=B.success?B.data.title.trim()||null:null;return Y("tengu_session_title_generated",{success:Z!==null}),Z}catch(w){return D(`generateSessionTitle failed: ${w}`,{level:"error"}),Y("tengu_session_title_generated",{success:!1}),"Claudio"}}var $=1000,v=`Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.
|
|
3
|
-
|
|
4
|
-
Return JSON with a single "title" field.
|
|
5
|
-
|
|
6
|
-
Good examples:
|
|
7
|
-
{"title": "Fix login button on mobile"}
|
|
8
|
-
{"title": "Add OAuth authentication"}
|
|
9
|
-
{"title": "Debug failing CI tests"}
|
|
10
|
-
{"title": "Refactor API client error handling"}
|
|
11
|
-
|
|
12
|
-
Bad (too vague): {"title": "Code changes"}
|
|
13
|
-
Bad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}
|
|
14
|
-
Bad (wrong case): {"title": "Fix Login Button On Mobile"}`,I;var _=V(()=>{R();C();h();P();M();A();X();z();k();I=H(()=>W.object({title:W.string()}))});
|
|
15
|
-
export{S as wd,T as xd,_ as yd};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ma as c}from"./cli-0.1.9-br9jzagb.mjs";import{ub as I,vb as S,wb as $,xb as Xq}from"./cli-0.1.9-b73n8vzm.mjs";import{Bc as Wq,xc as v}from"./cli-0.1.9-hz8rssz0.mjs";import{Bq as e,Cz as h,Dz as Bq,EG as M,HG as Qq,HJ as E,IJ as f,KJ as Tq,LJ as P,MJ as Vq,Mz as A,Oz as Gq,Ry as L,Xy as qq,mF as _,nF as Jq,wl as C,xl as r,zq as N}from"./cli-0.1.9-04ez73f7.mjs";import{AX as s}from"./cli-0.1.9-hy9s1fnj.mjs";import{L6 as y,N6 as o,Q8 as w,S8 as t,a7 as D,f7 as n}from"./cli-0.1.9-86kws2c7.mjs";import{Afa as a,zfa as F}from"./cli-0.1.9-5ryrgdzg.mjs";import{Aga as l,Yfa as x,dga as d,xga as j}from"./cli-0.1.9-vdw09f8y.mjs";import{hna as p}from"./cli-0.1.9-kbrf27z8.mjs";Vq();a();Gq();Tq();Xq();t();l();o();d();n();r();Jq();qq();Bq();e();var V=p(s(),1);Wq();Qq();function hq({enabled:W=!0}={}){let b=V.useSyncExternalStore(S,I,I),H=f(),O=E((J)=>J.plugins.needsRefresh),{addNotification:z}=P(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await M();await c();let X=v();if(Object.keys(X).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let Y=[],Z=[];try{Y=await _(),$(Y)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Z=await C()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await L()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let u=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await N(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await h(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);A(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let i=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(i)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:T,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${T.length}, Commands: ${Y.length}, Agents: ${Z.length}, Errors: ${Q.length}`);let g=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:T.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:Y.length,agent_count:Z.length,hook_count:g,mcp_count:u,lsp_count:m}}catch(J){let T=x(J);return D(T),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let X=Q.plugins.errors.filter((Z)=>Z.source==="lsp-manager"||Z.source.startsWith("plugin:")),Y={type:"generic-error",source:"plugin-system",error:T.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...X,Y]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return V.useEffect(()=>{if(!W)return;R().then((J)=>{let{ant_enabled_names:T,...Q}=J,X={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDE_CODE_PLUGIN_CACHE_DIR};F("tengu_plugins_loaded",{...X,...T!==void 0&&{enabled_names:T}}),y("info","tengu_plugins_loaded",X)})},[R,W]),V.useEffect(()=>{if(W)return;$([])},[W]),V.useEffect(()=>{if(!W||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[W,O,z]),W?b:[]}
|
|
2
|
-
export{hq as R};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{eK as U,fK as S,gK as j,hK as Q,iK as D,jK as x,kK as l,oK as i,pK as u}from"./cli-0.1.9-04ez73f7.mjs";import{fS as K,gS as n}from"./cli-0.1.9-gpd1bhnf.mjs";import{FS as d1,JU as V,UU as k,aU as p,bU as o,nU as w,pU as Z}from"./cli-0.1.9-nw3rpxdd.mjs";import{zX as c}from"./cli-0.1.9-2v4s8yf9.mjs";import{AX as C}from"./cli-0.1.9-hy9s1fnj.mjs";import{hna as _,lna as q}from"./cli-0.1.9-kbrf27z8.mjs";function t(M){if(M.ctrl&&(M.key==="k"||M.key==="u"||M.key==="w"))return!0;if(M.meta&&M.key==="backspace")return!0;return!1}function r(M){return(M.ctrl||M.meta)&&M.key==="y"}function $1({isActive:M,onExit:b,onCancel:$,onExitUp:g,columns:H,passthroughCtrlKeys:P=[],initialQuery:L="",backspaceExitsOnEmpty:z=!0}){let{columns:v}=K(),A=H??v,[J,G]=Y.useState(L),[m,B]=Y.useState(L.length),R=Y.useCallback((d)=>{G(d),B(d.length)},[]),I=(d)=>{if(!M)return;let F=i.fromText(J,A,m);if(d.ctrl&&P.includes(d.key.toLowerCase()))return;if(!t(d))j();if(!r(d))l();if(d.key==="return"||d.key==="down"){d.preventDefault(),b();return}if(d.key==="up"){if(d.preventDefault(),g)g();return}if(d.key==="escape"){if(d.preventDefault(),$)$();else if(J.length>0)G(""),B(0);else b();return}if(d.key==="backspace"){if(d.preventDefault(),d.meta){let{cursor:X,killed:W}=F.deleteWordBefore();U(W,"prepend"),G(X.text),B(X.offset);return}if(J.length===0){if(z)($??b)();return}let T=F.backspace();G(T.text),B(T.offset);return}if(d.key==="delete"){d.preventDefault();let T=F.del();G(T.text),B(T.offset);return}if(d.key==="left"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.prevWord();B(T.offset);return}if(d.key==="right"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.nextWord();B(T.offset);return}if(d.key==="left"){d.preventDefault();let T=F.left();B(T.offset);return}if(d.key==="right"){d.preventDefault();let T=F.right();B(T.offset);return}if(d.key==="home"){d.preventDefault(),B(0);return}if(d.key==="end"){d.preventDefault(),B(J.length);return}if(d.ctrl){switch(d.preventDefault(),d.key.toLowerCase()){case"a":B(0);return;case"e":B(J.length);return;case"b":B(F.left().offset);return;case"f":B(F.right().offset);return;case"d":{if(J.length===0){($??b)();return}let T=F.del();G(T.text),B(T.offset);return}case"h":{if(J.length===0){if(z)($??b)();return}let T=F.backspace();G(T.text),B(T.offset);return}case"k":{let{cursor:T,killed:X}=F.deleteToLineEnd();U(X,"append"),G(T.text),B(T.offset);return}case"u":{let{cursor:T,killed:X}=F.deleteToLineStart();U(X,"prepend"),G(T.text),B(T.offset);return}case"w":{let{cursor:T,killed:X}=F.deleteWordBefore();U(X,"prepend"),G(T.text),B(T.offset);return}case"y":{let T=S();if(T.length>0){let X=F.offset,W=F.insert(T);Q(X,T.length),G(W.text),B(W.offset)}return}case"g":case"c":if($){$();return}}return}if(d.meta){switch(d.preventDefault(),d.key.toLowerCase()){case"b":B(F.prevWord().offset);return;case"f":B(F.nextWord().offset);return;case"d":{let T=F.deleteWordAfter();G(T.text),B(T.offset);return}case"y":{let T=D();if(T){let{text:X,start:W,length:N}=T,y=J.slice(0,W),E=J.slice(W+N),f=y+X+E,a=W+X.length;x(X.length),G(f),B(a)}return}}return}if(d.key==="tab")return;if(d.key.length>=1&&!s.has(d.key)){d.preventDefault();let T=F.insert(d.key);G(T.text),B(T.offset)}};return V((d,F,T)=>{I(new p(T.keypress))},{isActive:M}),{query:J,setQuery:R,cursorOffset:m,handleKeyDown:I}}var Y,s;var e=q(()=>{o();k();u();n();Y=_(C(),1);s=new Set(["pageup","pagedown","insert","wheelup","wheeldown","mouse","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"])});function J1(M){let b=O.c(17),{query:$,placeholder:g,isFocused:H,isTerminalFocused:P,prefix:L,width:z,cursorOffset:v,borderless:A}=M,J=g===void 0?"Search…":g,G=L===void 0?"⌕":L,m=A===void 0?!1:A,B=v??$.length,R=m?void 0:"round",I=H?"suggestion":void 0,d=!H,F=m?0:1,T=!H,X;if(b[0]!==H||b[1]!==P||b[2]!==B||b[3]!==J||b[4]!==$)X=H?h.jsxDEV(h.Fragment,{children:$?P?h.jsxDEV(h.Fragment,{children:[h.jsxDEV(Z,{children:$.slice(0,B)},void 0,!1,void 0,this),h.jsxDEV(Z,{inverse:!0,children:B<$.length?$[B]:" "},void 0,!1,void 0,this),B<$.length&&h.jsxDEV(Z,{children:$.slice(B+1)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):h.jsxDEV(Z,{children:$},void 0,!1,void 0,this):P?h.jsxDEV(h.Fragment,{children:[h.jsxDEV(Z,{inverse:!0,children:J.charAt(0)},void 0,!1,void 0,this),h.jsxDEV(Z,{dimColor:!0,children:J.slice(1)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):h.jsxDEV(Z,{dimColor:!0,children:J},void 0,!1,void 0,this)},void 0,!1,void 0,this):$?h.jsxDEV(Z,{children:$},void 0,!1,void 0,this):h.jsxDEV(Z,{children:J},void 0,!1,void 0,this),b[0]=H,b[1]=P,b[2]=B,b[3]=J,b[4]=$,b[5]=X;else X=b[5];let W;if(b[6]!==G||b[7]!==T||b[8]!==X)W=h.jsxDEV(Z,{dimColor:T,children:[G," ",X]},void 0,!0,void 0,this),b[6]=G,b[7]=T,b[8]=X,b[9]=W;else W=b[9];let N;if(b[10]!==W||b[11]!==R||b[12]!==I||b[13]!==d||b[14]!==F||b[15]!==z)N=h.jsxDEV(w,{flexShrink:0,borderStyle:R,borderColor:I,borderDimColor:d,paddingX:F,width:z,children:W},void 0,!1,void 0,this),b[10]=W,b[11]=R,b[12]=I,b[13]=d,b[14]=F,b[15]=z,b[16]=N;else N=b[16];return N}var O,h;var T1=q(()=>{k();O=_(d1(),1),h=_(c(),1)});
|
|
2
|
-
export{J1 as _f,T1 as $f,$1 as ag,e as bg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$F as R,dG as b,ek as L,fk as D,gG as w,gk as O,jk as _,kk as S,nG as M,oG as P,tG as m,uG as h,yG as c}from"./cli-0.1.9-04ez73f7.mjs";import{$$ as A,R_ as x,Z$ as B,Z_ as E,a7 as N,baa as C,f7 as T,laa as j}from"./cli-0.1.9-86kws2c7.mjs";import{wda as U,xda as F}from"./cli-0.1.9-mj88t3jf.mjs";import{Aga as v,xga as G}from"./cli-0.1.9-vdw09f8y.mjs";import{lna as y}from"./cli-0.1.9-kbrf27z8.mjs";import{join as I}from"path";async function qq(){let q=C(),z=[],W=L();for(let[K,Q]of Object.entries(W))if(K.includes("@")&&Q)z.push(K);if(q.enabledPlugins)for(let[K,Q]of Object.entries(q.enabledPlugins)){if(!K.includes("@"))continue;let J=z.indexOf(K);if(Q){if(J===-1)z.push(K)}else if(J!==-1)z.splice(J,1)}return z}function zq(){let q=new Map,z=L();for(let[K,Q]of Object.entries(z)){if(!K.includes("@"))continue;if(Q===!0)q.set(K,"flag");else if(Q===!1)q.delete(K)}let W=[{scope:"managed",source:"policySettings"},{scope:"user",source:"userSettings"},{scope:"project",source:"projectSettings"},{scope:"local",source:"localSettings"},{scope:"flag",source:"flagSettings"}];for(let{scope:K,source:Q}of W){let J=B(Q);if(!J?.enabledPlugins)continue;for(let[V,Y]of Object.entries(J.enabledPlugins)){if(!V.includes("@"))continue;if(V in z&&z[V]!==Y)G(`Plugin ${V} from --add-dir (${z[V]}) overridden by ${Q} (${Y})`);if(Y===!0)q.set(V,K);else if(Y===!1)q.delete(V)}}return G(`Found ${q.size} enabled plugins with scopes: ${Array.from(q.entries()).map(([K,Q])=>`${K}(${Q})`).join(", ")}`),q}function Jq(q){return q!=="flag"}function Kq(q){return O[q]}async function p(){M().catch((W)=>{N(W)});let q=w(),z=Object.keys(q.plugins);return G(`Found ${z.length} installed plugins`),z}async function Qq(q){try{let z=await p(),W=q.filter((J)=>!z.includes(J));return(await Promise.all(W.map(async(J)=>{try{let V=await R(J);return{pluginId:J,found:V!==null&&V!==void 0}}catch(V){return G(`Failed to check plugin ${J} in marketplace: ${V}`),{pluginId:J,found:!1}}}))).filter(({found:J})=>J).map(({pluginId:J})=>J)}catch(z){return N(z),[]}}async function Vq(q,z,W="user"){let K=W!=="user"?U():void 0,Q=_(W),J=B(Q),V={...J?.enabledPlugins},Y=[],k=[];for(let H=0;H<q.length;H++){let X=q[H];if(!X)continue;if(z)z(X,H+1,q.length);try{let Z=await R(X);if(!Z){k.push({name:X,error:"Plugin not found in any marketplace"});continue}let{entry:$,marketplaceInstallLocation:f}=Z;if(!x($.source))await m(X,$,W,K);else h({pluginId:X,installPath:I(f,$.source),version:$.version},W,K);V[X]=!0,Y.push(X)}catch(Z){let $=Z instanceof Error?Z.message:String(Z);k.push({name:X,error:$}),N(Z)}}return A(Q,{...J,enabledPlugins:V}),{installed:Y,failed:k}}var a=y(()=>{F();v();T();j();D();P();b();S();c();E()});
|
|
2
|
-
export{qq as Vc,zq as Wc,Jq as Xc,Kq as Yc,p as Zc,Qq as _c,Vq as $c,a as ad};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{wb as x,xb as o}from"./cli-0.1.9-b73n8vzm.mjs";import{BF as i,Bq as v,Cz as y,Dz as u,EG as W,HG as t,Mz as K,Oz as m,Pl as Y,Ry as $,Vl as g,Xy as d,mF as O,nF as a,uB as M,vB as l,yF as R,zq as Z}from"./cli-0.1.9-04ez73f7.mjs";import{a7 as X,f7 as h}from"./cli-0.1.9-86kws2c7.mjs";import{Aga as c,Zfa as V,dga as f,xga as I}from"./cli-0.1.9-vdw09f8y.mjs";import{Cia as U,pma as _}from"./cli-0.1.9-7fp0smtp.mjs";import{lna as C}from"./cli-0.1.9-kbrf27z8.mjs";async function Lj(w){I("refreshActivePlugins: clearing all plugin caches"),R(),M();let G=await W(),[E,F]=await Promise.all([O(),Y(U())]),{enabled:z,disabled:B,errors:H}=G;x(E);let[P,S]=await Promise.all([Promise.all(z.map(async(j)=>{if(j.mcpServers)return Object.keys(j.mcpServers).length;let q=await Z(j,H);if(q)j.mcpServers=q;return q?Object.keys(q).length:0})),Promise.all(z.map(async(j)=>{if(j.lspServers)return Object.keys(j.lspServers).length;let q=await y(j,H);if(q)j.lspServers=q;return q?Object.keys(q).length:0}))]),J=P.reduce((j,q)=>j+q,0),L=S.reduce((j,q)=>j+q,0);w((j)=>({...j,plugins:{...j.plugins,enabled:z,disabled:B,commands:[],errors:n(j.plugins.errors,H),needsRefresh:!1},agentDefinitions:F,mcp:{...j.mcp,pluginReconnectKey:j.mcp.pluginReconnectKey+1}})),K();let N=!1;try{await $()}catch(j){N=!0,X(j),I(`refreshActivePlugins: loadPluginHooks failed: ${V(j)}`)}let Q=z.reduce((j,q)=>{if(!q.hooksConfig)return j;return j+Object.values(q.hooksConfig).reduce((k,A)=>k+(A?.reduce((D,b)=>D+b.hooks.length,0)??0),0)},0);return I(`refreshActivePlugins: ${z.length} enabled, ${E.length} commands, ${F.allAgents.length} agents, ${Q} hooks, ${J} MCP, ${L} LSP`),{enabled_count:z.length,disabled_count:B.length,command_count:E.length,agent_count:F.allAgents.length,hook_count:Q,mcp_count:J,lsp_count:L,error_count:H.length+(N?1:0),agentDefinitions:F,pluginCommands:E}}function n(w,G){let E=w.filter((B)=>B.source==="lsp-manager"||B.source.startsWith("plugin:")),F=new Set(G.map(T));return[...E.filter((B)=>!F.has(T(B))),...G]}function T(w){return w.type==="generic-error"?`generic-error:${w.source}:${w.error}`:`${w.type}:${w.source}`}var p=C(()=>{_();m();o();g();c();f();h();i();a();d();u();v();l();t()});
|
|
2
|
-
export{Lj as sb,p as tb};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{AX as y}from"./cli-0.1.9-hy9s1fnj.mjs";import{hna as o,jna as c}from"./cli-0.1.9-kbrf27z8.mjs";var i=c((n)=>{var G=o(y());(function(){function I(q){if(q==null)return null;if(typeof q==="function")return q.$$typeof===s?null:q.displayName||q.name||null;if(typeof q==="string")return q;switch(q){case L:return"Fragment";case k:return"Profiler";case C:return"StrictMode";case h:return"Suspense";case g:return"SuspenseList";case l:return"Activity"}if(typeof q==="object")switch(typeof q.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),q.$$typeof){case K:return"Portal";case f:return q.displayName||"Context";case S:return(q._context.displayName||"Context")+".Consumer";case b:var v=q.render;return q=q.displayName,q||(q=v.displayName||v.name||"",q=q!==""?"ForwardRef("+q+")":"ForwardRef"),q;case m:return v=q.displayName||null,v!==null?v:I(q.type)||"Memo";case M:v=q._payload,q=q._init;try{return I(q(v))}catch(x){}}return null}function U(q){return""+q}function V(q){try{U(q);var v=!1}catch(D){v=!0}if(v){v=console;var x=v.error,B=typeof Symbol==="function"&&Symbol.toStringTag&&q[Symbol.toStringTag]||q.constructor.name||"Object";return x.call(v,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",B),U(q)}}function W(q){if(q===L)return"<>";if(typeof q==="object"&&q!==null&&q.$$typeof===M)return"<...>";try{var v=I(q);return v?"<"+v+">":"<...>"}catch(x){return"<...>"}}function _(){var q=F.A;return q===null?null:q.getOwner()}function X(){return Error("react-stack-top-frame")}function w(q){if(J.call(q,"key")){var v=Object.getOwnPropertyDescriptor(q,"key").get;if(v&&v.isReactWarning)return!1}return q.key!==void 0}function A(q,v){function x(){P||(P=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",v))}x.isReactWarning=!0,Object.defineProperty(q,"key",{get:x,configurable:!0})}function j(){var q=I(this.type);return $[q]||($[q]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),q=this.props.ref,q!==void 0?q:null}function u(q,v,x,B,D,Q){var z=x.ref;return q={$$typeof:E,type:q,key:v,props:x,_owner:B},(z!==void 0?z:null)!==null?Object.defineProperty(q,"ref",{enumerable:!1,get:j}):Object.defineProperty(q,"ref",{enumerable:!1,value:null}),q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(q,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(q,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:D}),Object.defineProperty(q,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Q}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q}function N(q,v,x,B,D,Q){var z=v.children;if(z!==void 0)if(B)if(d(z)){for(B=0;B<z.length;B++)Y(z[B]);Object.freeze&&Object.freeze(z)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Y(z);if(J.call(v,"key")){z=I(q);var H=Object.keys(v).filter(function(p){return p!=="key"});B=0<H.length?"{key: someKey, "+H.join(": ..., ")+": ...}":"{key: someKey}",T[z+B]||(H=0<H.length?"{"+H.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
-
let props = %s;
|
|
3
|
-
<%s {...props} />
|
|
4
|
-
React keys must be passed directly to JSX without using spread:
|
|
5
|
-
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,B,z,H,z),T[z+B]=!0)}if(z=null,x!==void 0&&(V(x),z=""+x),w(v)&&(V(v.key),z=""+v.key),"key"in v){x={};for(var R in v)R!=="key"&&(x[R]=v[R])}else x=v;return z&&A(x,typeof q==="function"?q.displayName||q.name||"Unknown":q),u(q,z,x,_(),D,Q)}function Y(q){Z(q)?q._store&&(q._store.validated=1):typeof q==="object"&&q!==null&&q.$$typeof===M&&(q._payload.status==="fulfilled"?Z(q._payload.value)&&q._payload.value._store&&(q._payload.value._store.validated=1):q._store&&(q._store.validated=1))}function Z(q){return typeof q==="object"&&q!==null&&q.$$typeof===E}var E=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),f=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),l=Symbol.for("react.activity"),s=Symbol.for("react.client.reference"),F=G.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=Object.prototype.hasOwnProperty,d=Array.isArray,O=console.createTask?console.createTask:function(){return null};G={react_stack_bottom_frame:function(q){return q()}};var P,$={},a=G.react_stack_bottom_frame.bind(G,X)(),r=O(W(X)),T={};n.Fragment=L,n.jsxDEV=function(q,v,x,B){var D=1e4>F.recentlyCreatedOwnerStacks++;return N(q,v,x,B,D?Error("react-stack-top-frame"):a,D?O(W(q)):r)}})()});
|
|
7
|
-
export{i as zX};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{wV as m,yV as Gt}from"./cli-0.1.9-90h21nv5.mjs";import{lna as a}from"./cli-0.1.9-kbrf27z8.mjs";var gt,Dt,Zt=(t)=>typeof t==="string"?{...Dt,name:t}:{...Dt,...t};var S=a(()=>{gt=Symbol("Let zodToJsonSchema decide on which parser to use"),Dt={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"}});var O=a(()=>{Gt()});var I=(t,n)=>{let r=0;for(;r<t.length&&r<n.length;r++)if(t[r]!==n[r])break;return[(t.length-r).toString(),...n.slice(r)].join("/")};var L=()=>{};function g(t){if(t.target!=="openAi")return{};let n=[...t.basePath,t.definitionPath,t.openAiAnyTypeName];return t.flags.hasReferencedOpenAiAnyType=!0,{$ref:t.$refStrategy==="relative"?I(n,t.currentPath):n.join("/")}}var x=a(()=>{L()});function J(t,n,r,o){if(!o?.errorMessages)return;if(r)t.errorMessage={...t.errorMessage,[n]:r}}function l(t,n,r,o,p){t[n]=r,J(t,n,o,p)}var b=()=>{};function vt(t,n){let r={type:"array"};if(t.type?._def&&t.type?._def?.typeName!==m.ZodAny)r.items=i(t.type._def,{...n,currentPath:[...n.currentPath,"items"]});if(t.minLength)l(r,"minItems",t.minLength.value,t.minLength.message,n);if(t.maxLength)l(r,"maxItems",t.maxLength.value,t.maxLength.message,n);if(t.exactLength)l(r,"minItems",t.exactLength.value,t.exactLength.message,n),l(r,"maxItems",t.exactLength.value,t.exactLength.message,n);return r}var q=a(()=>{O();b();Z()});function xt(t,n){let r={type:"integer",format:"int64"};if(!t.checks)return r;for(let o of t.checks)switch(o.kind){case"min":if(n.target==="jsonSchema7")if(o.inclusive)l(r,"minimum",o.value,o.message,n);else l(r,"exclusiveMinimum",o.value,o.message,n);else{if(!o.inclusive)r.exclusiveMinimum=!0;l(r,"minimum",o.value,o.message,n)}break;case"max":if(n.target==="jsonSchema7")if(o.inclusive)l(r,"maximum",o.value,o.message,n);else l(r,"exclusiveMaximum",o.value,o.message,n);else{if(!o.inclusive)r.exclusiveMaximum=!0;l(r,"maximum",o.value,o.message,n)}break;case"multipleOf":l(r,"multipleOf",o.value,o.message,n);break}return r}var Q=a(()=>{b()});function _t(){return{type:"boolean"}}var X=()=>{};function M(t,n){return i(t.type._def,n)}var B=a(()=>{Z()});var Tt=(t,n)=>{return i(t.innerType._def,n)};var Y=a(()=>{Z()});function H(t,n,r){let o=r??n.dateStrategy;if(Array.isArray(o))return{anyOf:o.map((p,u)=>H(t,n,p))};switch(o){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return jt(t,n)}}var jt=(t,n)=>{let r={type:"integer",format:"unix-time"};if(n.target==="openApi3")return r;for(let o of t.checks)switch(o.kind){case"min":l(r,"minimum",o.value,o.message,n);break;case"max":l(r,"maximum",o.value,o.message,n);break}return r};var V=a(()=>{b()});function bt(t,n){return{...i(t.innerType._def,n),default:t.defaultValue()}}var W=a(()=>{Z()});function Nt(t,n){return n.effectStrategy==="input"?i(t.schema._def,n):g(n)}var z=a(()=>{Z();x()});function At(t){return{type:"string",enum:Array.from(t.values)}}var d=()=>{};function Pt(t,n){let r=[i(t.left._def,{...n,currentPath:[...n.currentPath,"allOf","0"]}),i(t.right._def,{...n,currentPath:[...n.currentPath,"allOf","1"]})].filter((u)=>!!u),o=n.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,p=[];return r.forEach((u)=>{if(Ct(u)){if(p.push(...u.allOf),u.unevaluatedProperties===void 0)o=void 0}else{let y=u;if("additionalProperties"in u&&u.additionalProperties===!1){let{additionalProperties:D,...e}=u;y=e}else o=void 0;p.push(y)}}),p.length?{allOf:p,...o}:void 0}var Ct=(t)=>{if("type"in t&&t.type==="string")return!1;return"allOf"in t};var F=a(()=>{Z()});function St(t,n){let r=typeof t.value;if(r!=="bigint"&&r!=="number"&&r!=="boolean"&&r!=="string")return{type:Array.isArray(t.value)?"array":"object"};if(n.target==="openApi3")return{type:r==="bigint"?"integer":r,enum:[t.value]};return{type:r==="bigint"?"integer":r,const:t.value}}var G=()=>{};function U(t,n){let r={type:"string"};if(t.checks)for(let o of t.checks)switch(o.kind){case"min":l(r,"minLength",typeof r.minLength==="number"?Math.max(r.minLength,o.value):o.value,o.message,n);break;case"max":l(r,"maxLength",typeof r.maxLength==="number"?Math.min(r.maxLength,o.value):o.value,o.message,n);break;case"email":switch(n.emailStrategy){case"format:email":T(r,"email",o.message,n);break;case"format:idn-email":T(r,"idn-email",o.message,n);break;case"pattern:zod":v(r,_.email,o.message,n);break}break;case"url":T(r,"uri",o.message,n);break;case"uuid":T(r,"uuid",o.message,n);break;case"regex":v(r,o.regex,o.message,n);break;case"cuid":v(r,_.cuid,o.message,n);break;case"cuid2":v(r,_.cuid2,o.message,n);break;case"startsWith":v(r,RegExp(`^${C(o.value,n)}`),o.message,n);break;case"endsWith":v(r,RegExp(`${C(o.value,n)}$`),o.message,n);break;case"datetime":T(r,"date-time",o.message,n);break;case"date":T(r,"date",o.message,n);break;case"time":T(r,"time",o.message,n);break;case"duration":T(r,"duration",o.message,n);break;case"length":l(r,"minLength",typeof r.minLength==="number"?Math.max(r.minLength,o.value):o.value,o.message,n),l(r,"maxLength",typeof r.maxLength==="number"?Math.min(r.maxLength,o.value):o.value,o.message,n);break;case"includes":{v(r,RegExp(C(o.value,n)),o.message,n);break}case"ip":{if(o.version!=="v6")T(r,"ipv4",o.message,n);if(o.version!=="v4")T(r,"ipv6",o.message,n);break}case"base64url":v(r,_.base64url,o.message,n);break;case"jwt":v(r,_.jwt,o.message,n);break;case"cidr":{if(o.version!=="v6")v(r,_.ipv4Cidr,o.message,n);if(o.version!=="v4")v(r,_.ipv6Cidr,o.message,n);break}case"emoji":v(r,_.emoji(),o.message,n);break;case"ulid":{v(r,_.ulid,o.message,n);break}case"base64":{switch(n.base64Strategy){case"format:binary":{T(r,"binary",o.message,n);break}case"contentEncoding:base64":{l(r,"contentEncoding","base64",o.message,n);break}case"pattern:zod":{v(r,_.base64,o.message,n);break}}break}case"nanoid":v(r,_.nanoid,o.message,n);case"toLowerCase":case"toUpperCase":case"trim":break;default:((p)=>{})(o)}return r}function C(t,n){return n.patternStrategy==="escape"?kt(t):t}function kt(t){let n="";for(let r=0;r<t.length;r++){if(!Rt.has(t[r]))n+="\\";n+=t[r]}return n}function T(t,n,r,o){if(t.format||t.anyOf?.some((p)=>p.format)){if(!t.anyOf)t.anyOf=[];if(t.format){if(t.anyOf.push({format:t.format,...t.errorMessage&&o.errorMessages&&{errorMessage:{format:t.errorMessage.format}}}),delete t.format,t.errorMessage){if(delete t.errorMessage.format,Object.keys(t.errorMessage).length===0)delete t.errorMessage}}t.anyOf.push({format:n,...r&&o.errorMessages&&{errorMessage:{format:r}}})}else l(t,"format",n,r,o)}function v(t,n,r,o){if(t.pattern||t.allOf?.some((p)=>p.pattern)){if(!t.allOf)t.allOf=[];if(t.pattern){if(t.allOf.push({pattern:t.pattern,...t.errorMessage&&o.errorMessages&&{errorMessage:{pattern:t.errorMessage.pattern}}}),delete t.pattern,t.errorMessage){if(delete t.errorMessage.pattern,Object.keys(t.errorMessage).length===0)delete t.errorMessage}}t.allOf.push({pattern:Ot(n,o),...r&&o.errorMessages&&{errorMessage:{pattern:r}}})}else l(t,"pattern",Ot(n,o),r,o)}function Ot(t,n){if(!n.applyRegexFlags||!t.flags)return t.source;let r={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},o=r.i?t.source.toLowerCase():t.source,p="",u=!1,y=!1,D=!1;for(let e=0;e<o.length;e++){if(u){p+=o[e],u=!1;continue}if(r.i){if(y){if(o[e].match(/[a-z]/)){if(D)p+=o[e],p+=`${o[e-2]}-${o[e]}`.toUpperCase(),D=!1;else if(o[e+1]==="-"&&o[e+2]?.match(/[a-z]/))p+=o[e],D=!0;else p+=`${o[e]}${o[e].toUpperCase()}`;continue}}else if(o[e].match(/[a-z]/)){p+=`[${o[e]}${o[e].toUpperCase()}]`;continue}}if(r.m){if(o[e]==="^"){p+=`(^|(?<=[\r
|
|
2
|
-
]))`;continue}else if(o[e]==="$"){p+=`($|(?=[\r
|
|
3
|
-
]))`;continue}}if(r.s&&o[e]==="."){p+=y?`${o[e]}\r
|
|
4
|
-
`:`[${o[e]}\r
|
|
5
|
-
]`;continue}if(p+=o[e],o[e]==="\\")u=!0;else if(y&&o[e]==="]")y=!1;else if(!y&&o[e]==="[")y=!0}try{new RegExp(p)}catch{return console.warn(`Could not convert regex pattern at ${n.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),t.source}return p}var j=void 0,_,Rt;var w=a(()=>{b();_={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(j===void 0)j=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return j},uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};Rt=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789")});function E(t,n){if(n.target==="openAi")console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");if(n.target==="openApi3"&&t.keyType?._def.typeName===m.ZodEnum)return{type:"object",required:t.keyType._def.values,properties:t.keyType._def.values.reduce((o,p)=>({...o,[p]:i(t.valueType._def,{...n,currentPath:[...n.currentPath,"properties",p]})??g(n)}),{}),additionalProperties:n.rejectedAdditionalProperties};let r={type:"object",additionalProperties:i(t.valueType._def,{...n,currentPath:[...n.currentPath,"additionalProperties"]})??n.allowedAdditionalProperties};if(n.target==="openApi3")return r;if(t.keyType?._def.typeName===m.ZodString&&t.keyType._def.checks?.length){let{type:o,...p}=U(t.keyType._def,n);return{...r,propertyNames:p}}else if(t.keyType?._def.typeName===m.ZodEnum)return{...r,propertyNames:{enum:t.keyType._def.values}};else if(t.keyType?._def.typeName===m.ZodBranded&&t.keyType._def.type._def.typeName===m.ZodString&&t.keyType._def.type._def.checks?.length){let{type:o,...p}=M(t.keyType._def,n);return{...r,propertyNames:p}}return r}var K=a(()=>{O();Z();w();B();x()});function It(t,n){if(n.mapStrategy==="record")return E(t,n);let r=i(t.keyType._def,{...n,currentPath:[...n.currentPath,"items","items","0"]})||g(n),o=i(t.valueType._def,{...n,currentPath:[...n.currentPath,"items","items","1"]})||g(n);return{type:"array",maxItems:125,items:{type:"array",items:[r,o],minItems:2,maxItems:2}}}var R=a(()=>{Z();K();x()});function Lt(t){let n=t.values,o=Object.keys(t.values).filter((u)=>{return typeof n[n[u]]!=="number"}).map((u)=>n[u]),p=Array.from(new Set(o.map((u)=>typeof u)));return{type:p.length===1?p[0]==="string"?"string":"number":["string","number"],enum:o}}var k=()=>{};function Mt(t){return t.target==="openAi"?void 0:{not:g({...t,currentPath:[...t.currentPath,"not"]})}}var c=a(()=>{x()});function Bt(t){return t.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var h=()=>{};function wt(t,n){if(n.target==="openApi3")return Ut(t,n);let r=t.options instanceof Map?Array.from(t.options.values()):t.options;if(r.every((o)=>(o._def.typeName in A)&&(!o._def.checks||!o._def.checks.length))){let o=r.reduce((p,u)=>{let y=A[u._def.typeName];return y&&!p.includes(y)?[...p,y]:p},[]);return{type:o.length>1?o:o[0]}}else if(r.every((o)=>o._def.typeName==="ZodLiteral"&&!o.description)){let o=r.reduce((p,u)=>{let y=typeof u._def.value;switch(y){case"string":case"number":case"boolean":return[...p,y];case"bigint":return[...p,"integer"];case"object":if(u._def.value===null)return[...p,"null"];case"symbol":case"undefined":case"function":default:return p}},[]);if(o.length===r.length){let p=o.filter((u,y,D)=>D.indexOf(u)===y);return{type:p.length>1?p:p[0],enum:r.reduce((u,y)=>{return u.includes(y._def.value)?u:[...u,y._def.value]},[])}}}else if(r.every((o)=>o._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((o,p)=>[...o,...p._def.values.filter((u)=>!o.includes(u))],[])};return Ut(t,n)}var A,Ut=(t,n)=>{let r=(t.options instanceof Map?Array.from(t.options.values()):t.options).map((o,p)=>i(o._def,{...n,currentPath:[...n.currentPath,"anyOf",`${p}`]})).filter((o)=>!!o&&(!n.strictUnions||typeof o==="object"&&Object.keys(o).length>0));return r.length?{anyOf:r}:void 0};var $=a(()=>{Z();A={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"}});function Et(t,n){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(t.innerType._def.typeName)&&(!t.innerType._def.checks||!t.innerType._def.checks.length)){if(n.target==="openApi3")return{type:A[t.innerType._def.typeName],nullable:!0};return{type:[A[t.innerType._def.typeName],"null"]}}if(n.target==="openApi3"){let o=i(t.innerType._def,{...n,currentPath:[...n.currentPath]});if(o&&"$ref"in o)return{allOf:[o],nullable:!0};return o&&{...o,nullable:!0}}let r=i(t.innerType._def,{...n,currentPath:[...n.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}var f=a(()=>{Z();$()});function Kt(t,n){let r={type:"number"};if(!t.checks)return r;for(let o of t.checks)switch(o.kind){case"int":r.type="integer",J(r,"type",o.message,n);break;case"min":if(n.target==="jsonSchema7")if(o.inclusive)l(r,"minimum",o.value,o.message,n);else l(r,"exclusiveMinimum",o.value,o.message,n);else{if(!o.inclusive)r.exclusiveMinimum=!0;l(r,"minimum",o.value,o.message,n)}break;case"max":if(n.target==="jsonSchema7")if(o.inclusive)l(r,"maximum",o.value,o.message,n);else l(r,"exclusiveMaximum",o.value,o.message,n);else{if(!o.inclusive)r.exclusiveMaximum=!0;l(r,"maximum",o.value,o.message,n)}break;case"multipleOf":l(r,"multipleOf",o.value,o.message,n);break}return r}var s=a(()=>{b()});function $t(t,n){let r=n.target==="openAi",o={type:"object",properties:{}},p=[],u=t.shape();for(let D in u){let e=u[D];if(e===void 0||e._def===void 0)continue;let N=ht(e);if(N&&r){if(e._def.typeName==="ZodOptional")e=e._def.innerType;if(!e.isNullable())e=e.nullable();N=!1}let P=i(e._def,{...n,currentPath:[...n.currentPath,"properties",D],propertyPath:[...n.currentPath,"properties",D]});if(P===void 0)continue;if(o.properties[D]=P,!N)p.push(D)}if(p.length)o.required=p;let y=ct(t,n);if(y!==void 0)o.additionalProperties=y;return o}function ct(t,n){if(t.catchall._def.typeName!=="ZodNever")return i(t.catchall._def,{...n,currentPath:[...n.currentPath,"additionalProperties"]});switch(t.unknownKeys){case"passthrough":return n.allowedAdditionalProperties;case"strict":return n.rejectedAdditionalProperties;case"strip":return n.removeAdditionalStrategy==="strict"?n.allowedAdditionalProperties:n.rejectedAdditionalProperties}}function ht(t){try{return t.isOptional()}catch{return!0}}var tt=a(()=>{Z()});var Jt=(t,n)=>{if(n.currentPath.toString()===n.propertyPath?.toString())return i(t.innerType._def,n);let r=i(t.innerType._def,{...n,currentPath:[...n.currentPath,"anyOf","1"]});return r?{anyOf:[{not:g(n)},r]}:g(n)};var nt=a(()=>{Z();x()});var qt=(t,n)=>{if(n.pipeStrategy==="input")return i(t.in._def,n);else if(n.pipeStrategy==="output")return i(t.out._def,n);let r=i(t.in._def,{...n,currentPath:[...n.currentPath,"allOf","0"]}),o=i(t.out._def,{...n,currentPath:[...n.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,o].filter((p)=>p!==void 0)}};var rt=a(()=>{Z()});function Qt(t,n){return i(t.type._def,n)}var ot=a(()=>{Z()});function Xt(t,n){let o={type:"array",uniqueItems:!0,items:i(t.valueType._def,{...n,currentPath:[...n.currentPath,"items"]})};if(t.minSize)l(o,"minItems",t.minSize.value,t.minSize.message,n);if(t.maxSize)l(o,"maxItems",t.maxSize.value,t.maxSize.message,n);return o}var pt=a(()=>{b();Z()});function Yt(t,n){if(t.rest)return{type:"array",minItems:t.items.length,items:t.items.map((r,o)=>i(r._def,{...n,currentPath:[...n.currentPath,"items",`${o}`]})).reduce((r,o)=>o===void 0?r:[...r,o],[]),additionalItems:i(t.rest._def,{...n,currentPath:[...n.currentPath,"additionalItems"]})};else return{type:"array",minItems:t.items.length,maxItems:t.items.length,items:t.items.map((r,o)=>i(r._def,{...n,currentPath:[...n.currentPath,"items",`${o}`]})).reduce((r,o)=>o===void 0?r:[...r,o],[])}}var it=a(()=>{Z()});function Ht(t){return{not:g(t)}}var ut=a(()=>{x()});function Vt(t){return g(t)}var mt=a(()=>{x()});var Wt=(t,n)=>{return i(t.innerType._def,n)};var at=a(()=>{Z()});var zt=(t,n,r)=>{switch(n){case m.ZodString:return U(t,r);case m.ZodNumber:return Kt(t,r);case m.ZodObject:return $t(t,r);case m.ZodBigInt:return xt(t,r);case m.ZodBoolean:return _t();case m.ZodDate:return H(t,r);case m.ZodUndefined:return Ht(r);case m.ZodNull:return Bt(r);case m.ZodArray:return vt(t,r);case m.ZodUnion:case m.ZodDiscriminatedUnion:return wt(t,r);case m.ZodIntersection:return Pt(t,r);case m.ZodTuple:return Yt(t,r);case m.ZodRecord:return E(t,r);case m.ZodLiteral:return St(t,r);case m.ZodEnum:return At(t);case m.ZodNativeEnum:return Lt(t);case m.ZodNullable:return Et(t,r);case m.ZodOptional:return Jt(t,r);case m.ZodMap:return It(t,r);case m.ZodSet:return Xt(t,r);case m.ZodLazy:return()=>t.getter()._def;case m.ZodPromise:return Qt(t,r);case m.ZodNaN:case m.ZodNever:return Mt(r);case m.ZodEffects:return Nt(t,r);case m.ZodAny:return g(r);case m.ZodUnknown:return Vt(r);case m.ZodDefault:return bt(t,r);case m.ZodBranded:return M(t,r);case m.ZodReadonly:return Wt(t,r);case m.ZodCatch:return Tt(t,r);case m.ZodPipeline:return qt(t,r);case m.ZodFunction:case m.ZodVoid:case m.ZodSymbol:return;default:return((o)=>{return})(n)}};var et=a(()=>{O();x();q();Q();X();B();Y();V();W();z();d();F();G();R();k();c();h();f();s();tt();nt();rt();ot();K();pt();w();it();ut();$();mt();at()});function i(t,n,r=!1){let o=n.seen.get(t);if(n.override){let D=n.override?.(t,n,o,r);if(D!==gt)return D}if(o&&!r){let D=ft(o,n);if(D!==void 0)return D}let p={def:t,path:n.currentPath,jsonSchema:void 0};n.seen.set(t,p);let u=zt(t,t.typeName,n),y=typeof u==="function"?i(u(),n):u;if(y)st(t,n,y);if(n.postProcess){let D=n.postProcess(y,t,n);return p.jsonSchema=y,D}return p.jsonSchema=y,y}var ft=(t,n)=>{switch(n.$refStrategy){case"root":return{$ref:t.path.join("/")};case"relative":return{$ref:I(n.currentPath,t.path)};case"none":case"seen":{if(t.path.length<n.currentPath.length&&t.path.every((r,o)=>n.currentPath[o]===r))return console.warn(`Recursive reference detected at ${n.currentPath.join("/")}! Defaulting to any`),g(n);return n.$refStrategy==="seen"?g(n):void 0}}},st=(t,n,r)=>{if(t.description){if(r.description=t.description,n.markdownDescription)r.markdownDescription=t.description}return r};var Z=a(()=>{S();et();L();x()});var dt=(t)=>{let n=Zt(t),r=n.name!==void 0?[...n.basePath,n.definitionPath,n.name]:n.basePath;return{...n,flags:{hasReferencedOpenAiAnyType:!1},currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(n.definitions).map(([o,p])=>[p._def,{def:p._def,path:[...n.basePath,n.definitionPath,o],jsonSchema:void 0}]))}};var lt=a(()=>{S()});var tn=(t,n)=>{let r=dt(n),o=typeof n==="object"&&n.definitions?Object.entries(n.definitions).reduce((e,[N,P])=>({...e,[N]:i(P._def,{...r,currentPath:[...r.basePath,r.definitionPath,N]},!0)??g(r)}),{}):void 0,p=typeof n==="string"?n:n?.nameStrategy==="title"?void 0:n?.name,u=i(t._def,p===void 0?r:{...r,currentPath:[...r.basePath,r.definitionPath,p]},!1)??g(r),y=typeof n==="object"&&n.name!==void 0&&n.nameStrategy==="title"?n.name:void 0;if(y!==void 0)u.title=y;if(r.flags.hasReferencedOpenAiAnyType){if(!o)o={};if(!o[r.openAiAnyTypeName])o[r.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:r.$refStrategy==="relative"?"1":[...r.basePath,r.definitionPath,r.openAiAnyTypeName].join("/")}}}let D=p===void 0?o?{...u,[r.definitionPath]:o}:u:{$ref:[...r.$refStrategy==="relative"?[]:r.basePath,r.definitionPath,p].join("/"),[r.definitionPath]:{...o,[p]:u}};if(r.target==="jsonSchema7")D.$schema="http://json-schema.org/draft-07/schema#";else if(r.target==="jsonSchema2019-09"||r.target==="openAi")D.$schema="https://json-schema.org/draft/2019-09/schema#";if(r.target==="openAi"&&(("anyOf"in D)||("oneOf"in D)||("allOf"in D)||("type"in D)&&Array.isArray(D.type)))console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property.");return D};var yt=a(()=>{Z();lt();x()});var Ft=()=>{};var nn=a(()=>{yt();S();lt();b();L();Z();Ft();x();q();Q();X();B();Y();V();W();z();d();F();G();R();k();c();h();f();s();tt();nt();rt();ot();at();K();pt();w();it();ut();$();mt();et();yt()});
|
|
6
|
-
export{tn as tV,nn as uV};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{jna as T,lna as J5,mna as M}from"./cli-0.1.9-kbrf27z8.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 ze,X5 as Ae};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import{Ai as h,MH as u,Oh as $,Rh as m,XG as F,YE as A,ZE as p,ZG as L,xu as k,yi as U,yu as I}from"./cli-0.1.9-04ez73f7.mjs";import{E0 as O,F0 as f}from"./cli-0.1.9-4sqfjw8t.mjs";import{bga as b,dga as T,nga as S,rga as E}from"./cli-0.1.9-vdw09f8y.mjs";import{Bga as y,Oga as C}from"./cli-0.1.9-v7ajk1nz.mjs";import{lna as N}from"./cli-0.1.9-kbrf27z8.mjs";import{join as P}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 g(){let w=S(),z=P(y(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return D()}}function M(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 g(),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 M(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var j=N(()=>{C();E()});function Xw(){G.clear()}function l(w){let z=w.match(r);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(d);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function i(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function s(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=U(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(b(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=l(q);if(!H){G.delete(w.path);return}let _=await R(q,w.path,H.title,H.instructions),x=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 k({agentDefinition:i(),promptMessages:[L({content:_})],toolUseContext:Z,canUseTool:x,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var r,d,G,Yw;var a=N(()=>{I();m();p();T();h();u();f();j();r=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,d=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=O(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(F(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await s(K,w)})});
|
|
58
|
-
export{Xw as uf,Zw as vf,a as wf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Zaa as P,qba as y}from"./cli-0.1.9-86kws2c7.mjs";import{lna as U}from"./cli-0.1.9-kbrf27z8.mjs";var j,D,G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T,w,L,O,X,$,e;var W=U(()=>{j=["common","uncommon","rare","epic","legendary"],D=String.fromCharCode,G=D(100,117,99,107),M=D(103,111,111,115,101),N=D(98,108,111,98),Y=D(99,97,116),C=D(100,114,97,103,111,110),_=D(111,99,116,111,112,117,115),R=D(111,119,108),f=D(112,101,110,103,117,105,110),E=D(116,117,114,116,108,101),I=D(115,110,97,105,108),k=D(103,104,111,115,116),A=D(97,120,111,108,111,116,108),b=D(99,97,112,121,98,97,114,97),h=D(99,97,99,116,117,115),m=D(114,111,98,111,116),p=D(114,97,98,98,105,116),u=D(109,117,115,104,114,111,111,109),T=D(99,104,111,110,107),w=[G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T],L=["·","✦","×","◉","@","°"],O=["none","crown","tophat","propeller","halo","wizard","beanie","tinyduck"],X=["DEBUGGING","PATIENCE","CHAOS","WISDOM","SNARK"],$={common:60,uncommon:25,rare:10,epic:4,legendary:1},e={common:"inactive",uncommon:"success",rare:"permission",epic:"autoAccept",legendary:"warning"}});function v(q){let z=q>>>0;return function(){z|=0,z=z+1831565813|0;let B=Math.imul(z^z>>>15,1|z);return B=B+Math.imul(B^B>>>7,61|B)^B,((B^B>>>14)>>>0)/4294967296}}function F(q){if(typeof Bun<"u")return Number(BigInt(Bun.hash(q))&0xffffffffn);let z=2166136261;for(let B=0;B<q.length;B++)z^=q.charCodeAt(B),z=Math.imul(z,16777619);return z>>>0}function K(q,z){return z[Math.floor(q()*z.length)]}function S(q){let z=Object.values($).reduce((J,Q)=>J+Q,0),B=q()*z;for(let J of j)if(B-=$[J],B<0)return J;return"common"}function i(q,z){let B=d[z],J=K(q,X),Q=K(q,X);while(Q===J)Q=K(q,X);let Z={};for(let V of X)if(V===J)Z[V]=Math.min(100,B+50+Math.floor(q()*30));else if(V===Q)Z[V]=Math.max(1,B-10+Math.floor(q()*15));else Z[V]=B+Math.floor(q()*40);return Z}function H(q){let z=S(q);return{bones:{rarity:z,species:K(q,w),eye:K(q,L),hat:z==="common"?"none":K(q,O),shiny:q()<0.01,stats:i(q,z)},inspirationSeed:Math.floor(q()*1e9)}}function l(q){let z=q+c;if(x?.key===z)return x.value;let B=H(v(F(z)));return x={key:z,value:B},B}function a(q){return H(v(F(q)))}function s(){let q=P();return q.oauthAccount?.accountUuid??q.userID??"anon"}function r(){let q=P().companion;if(!q)return;let{bones:z}=l(s());return{...q,...z}}var d,c="friend-2026-401",x;var g=U(()=>{y();W();d={common:5,uncommon:15,rare:25,epic:35,legendary:50}});
|
|
2
|
-
export{G as DQ,M as EQ,N as FQ,Y as GQ,C as HQ,_ as IQ,R as JQ,f as KQ,E as LQ,I as MQ,k as NQ,A as OQ,b as PQ,h as QQ,m as RQ,p as SQ,u as TQ,T as UQ,e as VQ,W as WQ,a as XQ,s as YQ,r as ZQ,g as _Q};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import{UU as IT,lU as X,rU as JT,sU as ST}from"./cli-0.1.9-nw3rpxdd.mjs";import{$4 as K,a5 as UT}from"./cli-0.1.9-f8ga1n8r.mjs";import{Aaa as f,Caa as YT,V9 as Q,Waa as z,X9 as OT,Zaa as V,a7 as H,cba as l,dba as d,f7 as o,j9 as s,k8 as BT,m8 as VT,n7 as Y,p7 as n,p9 as XT,qba as D,t9 as FT,w9 as qT,x9 as _T}from"./cli-0.1.9-86kws2c7.mjs";import{wda as E,xda as KT}from"./cli-0.1.9-mj88t3jf.mjs";import{bga as u,dga as LT,fga as GT,gga as $T,jga as zT,nga as P,rga as QT}from"./cli-0.1.9-vdw09f8y.mjs";import{Oma as r,Pma as ZT}from"./cli-0.1.9-1ghbcafn.mjs";import{lna as I}from"./cli-0.1.9-kbrf27z8.mjs";function m(){let T=f(E(),P().existsSync)!==null,w=s(E());return[{key:"workspace",text:"Ask Claude to create a new app or clone a repository",isComplete:!1,isCompletable:!0,isEnabled:w},{key:"claudemd",text:"Set up repo instructions (/init creates AGENTS.md or updates existing CLAUDE.md; either file counts)",isComplete:T,isCompletable:!0,isEnabled:!w}]}function M(){return m().filter(({isCompletable:T,isEnabled:w})=>T&&w).every(({isComplete:T})=>T)}var k=I(()=>{KT();XT();QT();YT()});function a(){if(l().hasCompletedProjectOnboarding)return;if(M())d((T)=>({...T,hasCompletedProjectOnboarding:!0}))}var fT;var h=I(()=>{ZT();D();k();k();fT=r(()=>{let T=l();if(T.hasCompletedProjectOnboarding||T.projectOnboardingSeenCount>=4||process.env.IS_DEMO)return!1;return!M()})});import{stat as i}from"fs/promises";import{homedir as xT}from"os";import{join as HT}from"path";function RT(T){z((w)=>({...w,appleTerminalSetupInProgress:!0,appleTerminalBackupPath:T}))}function L(){z((T)=>({...T,appleTerminalSetupInProgress:!1}))}function WT(){let T=V();return{inProgress:T.appleTerminalSetupInProgress??!1,backupPath:T.appleTerminalBackupPath||null}}function _(){return HT(xT(),"Library","Preferences","com.apple.Terminal.plist")}async function t(){let T=_(),w=`${T}.bak`;try{let{code:v}=await Y("defaults",["export","com.apple.Terminal",T]);if(v!==0)return null;try{await i(T)}catch{return null}return await Y("defaults",["export","com.apple.Terminal",w]),RT(w),w}catch(v){return H(v),null}}async function e(){let{inProgress:T,backupPath:w}=WT();if(!T)return{status:"no_backup"};if(!w)return L(),{status:"no_backup"};try{await i(w)}catch{return L(),{status:"no_backup"}}try{let{code:v}=await Y("defaults",["import","com.apple.Terminal",w]);if(v!==0)return{status:"failed",backupPath:w};return await Y("killall",["cfprefsd"]),L(),{status:"restored"}}catch(v){return H(Error(`Failed to restore Terminal.app settings with: ${v}`)),L(),{status:"failed",backupPath:w}}}var TT=I(()=>{D();n();o()});import{randomBytes as y}from"crypto";import{copyFile as N,mkdir as c,readFile as p,writeFile as C}from"fs/promises";import{homedir as g,platform as A}from"os";import{dirname as MT,join as R}from"path";import{pathToFileURL as AT}from"url";function jT(){let T=process.env.VSCODE_GIT_ASKPASS_MAIN??"",w=process.env.PATH??"";return T.includes(".vscode-server")||T.includes(".cursor-server")||T.includes(".windsurf-server")||w.includes(".vscode-server")||w.includes(".cursor-server")||w.includes(".windsurf-server")}function Ww(){if(!Q.terminal||!(Q.terminal in j))return null;return j[Q.terminal]??null}function Z(T){if(!JT())return T;return`\x1B]8;;${AT(T).href}\x07${T}\x1B]8;;\x07`}function uT(){return A()==="darwin"&&Q.terminal==="Apple_Terminal"||Q.terminal==="vscode"||Q.terminal==="cursor"||Q.terminal==="windsurf"||Q.terminal==="alacritty"||Q.terminal==="zed"}async function ET(T){let w="";switch(Q.terminal){case"Apple_Terminal":w=await kT(T);break;case"vscode":w=await b("VSCode",T);break;case"cursor":w=await b("Cursor",T);break;case"windsurf":w=await b("Windsurf",T);break;case"alacritty":w=await lT(T);break;case"zed":w=await DT(T);break;case null:break}return z((v)=>{if(["vscode","cursor","windsurf","alacritty","zed"].includes(Q.terminal??"")){if(v.shiftEnterKeyBindingInstalled===!0)return v;return{...v,shiftEnterKeyBindingInstalled:!0}}else if(Q.terminal==="Apple_Terminal"){if(v.optionAsMetaKeyInstalled===!0)return v;return{...v,optionAsMetaKeyInstalled:!0}}return v}),a(),w}function Lw(){return V().shiftEnterKeyBindingInstalled===!0}function zw(){return V().hasUsedBackslashReturn===!0}function Vw(){if(!V().hasUsedBackslashReturn)z((w)=>({...w,hasUsedBackslashReturn:!0}))}async function _w(T,w,v){if(Q.terminal&&Q.terminal in j){let $=`Shift+Enter is natively supported in ${j[Q.terminal]}.
|
|
2
|
-
|
|
3
|
-
No configuration needed. Just use Shift+Enter to add newlines.`;return T($),null}if(!uT()){let $=Q.terminal||"your current terminal",B=BT(),J="";if(B==="macos")J=` • macOS: Apple Terminal
|
|
4
|
-
`;else if(B==="windows")J=` • Windows: Windows Terminal
|
|
5
|
-
`;let F=`Terminal setup cannot be run from ${$}.
|
|
6
|
-
|
|
7
|
-
This command configures a convenient Shift+Enter shortcut for multi-line prompts.
|
|
8
|
-
${K.dim("Note: You can already use backslash (\\\\) + return to add newlines.")}
|
|
9
|
-
|
|
10
|
-
To set up the shortcut (optional):
|
|
11
|
-
1. Exit tmux/screen temporarily
|
|
12
|
-
2. Run /terminal-setup directly in one of these terminals:
|
|
13
|
-
${J} • IDE: VSCode, Cursor, Windsurf, Zed
|
|
14
|
-
• Other: Alacritty
|
|
15
|
-
3. Return to tmux/screen - settings will persist
|
|
16
|
-
|
|
17
|
-
${K.dim("Note: iTerm2, WezTerm, Ghostty, Kitty, and Warp support Shift+Enter natively.")}`;return T(F),null}let q=await ET(w.options.theme);return T(q),null}async function b(T="VSCode",w){if(jT())return`${X("warning",w)(`Cannot install keybindings from a remote ${T} session.`)}${G}${G}${T} keybindings must be installed on your local machine, not the remote server.${G}${G}To install the Shift+Enter keybinding:${G}1. Open ${T} on your local machine (not connected to remote)${G}2. Open the Command Palette (Cmd/Ctrl+Shift+P) → "Preferences: Open Keyboard Shortcuts (JSON)"${G}3. Add this keybinding (the file must be a JSON array):${G}${G}${K.dim(`[
|
|
18
|
-
{
|
|
19
|
-
"key": "shift+enter",
|
|
20
|
-
"command": "workbench.action.terminal.sendSequence",
|
|
21
|
-
"args": { "text": "\\u001b\\r" },
|
|
22
|
-
"when": "terminalFocus"
|
|
23
|
-
}
|
|
24
|
-
]`)}${G}`;let v=T==="VSCode"?"Code":T,q=R(g(),A()==="win32"?R("AppData","Roaming",v,"User"):A()==="darwin"?R("Library","Application Support",v,"User"):R(".config",v,"User")),$=R(q,"keybindings.json");try{await c(q,{recursive:!0});let B="[]",J=[],F=!1;try{B=await p($,{encoding:"utf-8"}),F=!0,J=FT(B)??[]}catch(x){if(!u(x))throw x}if(F){let x=y(4).toString("hex"),S=`${$}.${x}.bak`;try{await N($,S)}catch{return`${X("warning",w)(`Error backing up existing ${T} terminal keybindings. Bailing out.`)}${G}${K.dim(`See ${Z($)}`)}${G}${K.dim(`Backup path: ${Z(S)}`)}${G}`}}if(J.find((x)=>x.key==="shift+enter"&&x.command==="workbench.action.terminal.sendSequence"&&x.when==="terminalFocus"))return`${X("warning",w)(`Found existing ${T} terminal Shift+Enter key binding. Remove it to continue.`)}${G}${K.dim(`See ${Z($)}`)}${G}`;let U=qT(B,{key:"shift+enter",command:"workbench.action.terminal.sendSequence",args:{text:"\x1B\r"},when:"terminalFocus"});return await C($,U,{encoding:"utf-8"}),`${X("success",w)(`Installed ${T} terminal Shift+Enter key binding`)}${G}${K.dim(`See ${Z($)}`)}${G}`}catch(B){throw H(B),Error(`Failed to install ${T} terminal Shift+Enter key binding`)}}async function wT(T){let{code:w}=await Y("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${T}':useOptionAsMetaKey bool true`,_()]);if(w!==0){let{code:v}=await Y("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${T}':useOptionAsMetaKey true`,_()]);if(v!==0)return H(Error(`Failed to enable Option as Meta key for Terminal.app profile: ${T}`)),!1}return!0}async function vT(T){let{code:w}=await Y("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${T}':Bell bool false`,_()]);if(w!==0){let{code:v}=await Y("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${T}':Bell false`,_()]);if(v!==0)return H(Error(`Failed to disable audio bell for Terminal.app profile: ${T}`)),!1}return!0}async function kT(T){try{if(!await t())throw Error("Failed to create backup of Terminal.app preferences, bailing out");let{stdout:v,code:q}=await Y("defaults",["read","com.apple.Terminal","Default Window Settings"]);if(q!==0||!v.trim())throw Error("Failed to read default Terminal.app profile");let{stdout:$,code:B}=await Y("defaults",["read","com.apple.Terminal","Startup Window Settings"]);if(B!==0||!$.trim())throw Error("Failed to read startup Terminal.app profile");let J=!1,F=v.trim(),W=await wT(F),O=await vT(F);if(W||O)J=!0;let U=$.trim();if(U!==F){let x=await wT(U),S=await vT(U);if(x||S)J=!0}if(!J)throw Error("Failed to enable Option as Meta key or disable audio bell for any Terminal.app profile");return await Y("killall",["cfprefsd"]),L(),`${X("success",T)("Configured Terminal.app settings:")}${G}${X("success",T)('- Enabled "Use Option as Meta key"')}${G}${X("success",T)("- Switched to visual bell")}${G}${K.dim("Option+Enter will now enter a newline.")}${G}${K.dim("You must restart Terminal.app for changes to take effect.",T)}${G}`}catch(w){H(w);let v=await e(),q="Failed to enable Option as Meta key for Terminal.app.";if(v.status==="restored")throw Error(`${q} Your settings have been restored from backup.`);else if(v.status==="failed")throw Error(`${q} Restoring from backup failed, try manually with: defaults import com.apple.Terminal ${v.backupPath}`);else throw Error(`${q} No backup was available to restore from.`)}}async function lT(T){let v=[],q=process.env.XDG_CONFIG_HOME;if(q)v.push(R(q,"alacritty","alacritty.toml"));else v.push(R(g(),".config","alacritty","alacritty.toml"));if(A()==="win32"){let F=process.env.APPDATA;if(F)v.push(R(F,"alacritty","alacritty.toml"))}let $=null,B="",J=!1;for(let F of v)try{B=await p(F,{encoding:"utf-8"}),$=F,J=!0;break}catch(W){if(!u(W))throw W}if(!$)$=v[0]??null;if(!$)throw Error("No valid config path found for Alacritty");try{if(J){if(B.includes('mods = "Shift"')&&B.includes('key = "Return"'))return`${X("warning",T)("Found existing Alacritty Shift+Enter key binding. Remove it to continue.")}${G}${K.dim(`See ${Z($)}`)}${G}`;let W=y(4).toString("hex"),O=`${$}.${W}.bak`;try{await N($,O)}catch{return`${X("warning",T)("Error backing up existing Alacritty config. Bailing out.")}${G}${K.dim(`See ${Z($)}`)}${G}${K.dim(`Backup path: ${Z(O)}`)}${G}`}}else await c(MT($),{recursive:!0});let F=B;if(B&&!B.endsWith(`
|
|
25
|
-
`))F+=`
|
|
26
|
-
`;return F+=`
|
|
27
|
-
[[keyboard.bindings]]
|
|
28
|
-
key = "Return"
|
|
29
|
-
mods = "Shift"
|
|
30
|
-
chars = "\\u001B\\r"
|
|
31
|
-
`,await C($,F,{encoding:"utf-8"}),`${X("success",T)("Installed Alacritty Shift+Enter key binding")}${G}${X("success",T)("You may need to restart Alacritty for changes to take effect")}${G}${K.dim(`See ${Z($)}`)}${G}`}catch(F){throw H(F),Error("Failed to install Alacritty Shift+Enter key binding")}}async function DT(T){let w=R(g(),".config","zed"),v=R(w,"keymap.json");try{await c(w,{recursive:!0});let q="[]",$=!1;try{q=await p(v,{encoding:"utf-8"}),$=!0}catch(J){if(!u(J))throw J}if($){if(q.includes("shift-enter"))return`${X("warning",T)("Found existing Zed Shift+Enter key binding. Remove it to continue.")}${G}${K.dim(`See ${Z(v)}`)}${G}`;let J=y(4).toString("hex"),F=`${v}.${J}.bak`;try{await N(v,F)}catch{return`${X("warning",T)("Error backing up existing Zed keymap. Bailing out.")}${G}${K.dim(`See ${Z(v)}`)}${G}${K.dim(`Backup path: ${Z(F)}`)}${G}`}}let B;try{if(B=$T(q),!Array.isArray(B))B=[]}catch{B=[]}return B.push({context:"Terminal",bindings:{"shift-enter":["terminal::SendText","\x1B\r"]}}),await C(v,GT(B,null,2)+`
|
|
32
|
-
`,{encoding:"utf-8"}),`${X("success",T)("Installed Zed Shift+Enter key binding")}${G}${K.dim(`See ${Z(v)}`)}${G}`}catch(q){throw H(q),Error("Failed to install Zed Shift+Enter key binding")}}var G=`
|
|
33
|
-
`,j;var bT=I(()=>{UT();ST();IT();h();TT();D();OT();LT();n();_T();o();VT();zT();j={ghostty:"Ghostty",kitty:"Kitty","iTerm.app":"iTerm2",WezTerm:"WezTerm",WarpTerminal:"Warp"}});
|
|
34
|
-
export{a as QR,h as RR,e as SR,TT as TR,Ww as UR,uT as VR,ET as WR,Lw as XR,zw as YR,Vw as ZR,_w as _R,bT as $R};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{SY as F,TY as A}from"./cli-0.1.9-z5mm21jw.mjs";import{F4 as e,n4 as r}from"./cli-0.1.9-4sqfjw8t.mjs";import{U9 as _,V9 as G,X9 as C,iba as U,n7 as J,p7 as I,qba as s}from"./cli-0.1.9-86kws2c7.mjs";import{Jea as Lf,xea as w}from"./cli-0.1.9-wpvrabrk.mjs";import{Aga as pf,jga as Of,xga as y}from"./cli-0.1.9-vdw09f8y.mjs";import{Ega as q,Oga as Q}from"./cli-0.1.9-v7ajk1nz.mjs";import{dka as D,jka as v,lma as R,pma as Z,wia as N}from"./cli-0.1.9-7fp0smtp.mjs";import{Oma as z,Pma as o}from"./cli-0.1.9-1ghbcafn.mjs";import{lna as E}from"./cli-0.1.9-kbrf27z8.mjs";import{stat as b}from"fs/promises";function l(){return process.platform==="linux"&&q(process.env.CLAUDE_CODE_BUBBLEWRAP)}function g(){if(process.platform!=="linux")return!1;return X??!1}async function W(){if(O!==void 0)return O;if(process.platform==="darwin")return O=null,null;try{let f=await F(process.pid,10);for(let S of f){let p=S.toLowerCase();for(let x of _)if(p.includes(x))return O=x,x}}catch{}return O=null,null}async function h(){if(process.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"){if(G.platform!=="darwin")return await W()||"pycharm"}return G.terminal}function d(){if(process.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"){if(G.platform!=="darwin"){if(O!==void 0)return O||"pycharm";return"pycharm"}}return G.terminal}async function m(){if(process.env.TERMINAL_EMULATOR==="JetBrains-JediTerm")await W()}var u,X=null,O,$;var k=E(()=>{o();C();Q();I();A();u=z(async()=>{if(process.platform!=="linux")return!1;let{code:f}=await J("test",["-f","/.dockerenv"]);return f===0});if(process.platform==="linux"){let f=process.arch==="x64"?"x86_64":"aarch64";b(`/lib/libc.musl-${f}.so.1`).then(()=>{X=!0},()=>{X=!1})}$={...G,terminal:d(),getIsDocker:u,getIsBubblewrapSandbox:l,isMuslEnvironment:g,getTerminalWithJetBrainsDetectionAsync:h,initJetBrainsDetection:m}});function a(f){let S=BigInt(58),p=Array(22).fill("1"),x=21,T=f;while(T>0n){let L=Number(T%S);p[x]="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"[L],T=T/S,x--}return p.join("")}function t(f){let S=f.replace(/-/g,"");if(S.length!==32)throw Error(`Invalid UUID hex length: ${S.length}`);return BigInt("0x"+S)}function V(f,S){let p=t(S);return`${f}_01${a(p)}`}var H=()=>{};function B(f){let S=ff[f],p=process.env[f];if(p===void 0)return S;return q(p)}function j(){let f=U(),S=N(),p={"user.id":f};if(B("OTEL_METRICS_INCLUDE_SESSION_ID"))p["session.id"]=S;if(B("OTEL_METRICS_INCLUDE_VERSION"))p["app.version"]="99.0.0";let x=r();if(x){let{organizationUuid:T,emailAddress:L,accountUuid:M}=x;if(T)p["organization.id"]=T;if(L)p["user.email"]=L;if(M&&B("OTEL_METRICS_INCLUDE_ACCOUNT_UUID"))p["user.account_uuid"]=M,p["user.account_id"]=process.env.CLAUDE_CODE_ACCOUNT_TAGGED_ID||V("user",M)}if($.terminal)p["terminal.type"]=$.terminal;return p}var ff;var c=E(()=>{Z();e();s();k();Q();H();ff={OTEL_METRICS_INCLUDE_SESSION_ID:!0,OTEL_METRICS_INCLUDE_VERSION:!1,OTEL_METRICS_INCLUDE_ACCOUNT_UUID:!0}});function xf(){return q(process.env.OTEL_LOG_USER_PROMPTS)}function Rf(f){return xf()?f:"<REDACTED>"}async function Tf(f,S={}){let p=D();if(!p){if(!i)i=!0,y(`[3P telemetry] Event dropped (no event logger initialized): ${f}`,{level:"warn"});return}let x={...j(),"event.name":f,"event.timestamp":new Date().toISOString(),"event.sequence":Sf++},T=R();if(T)x["prompt.id"]=T;let L=process.env.CLAUDE_CODE_WORKSPACE_HOST_PATHS;if(L)x["workspace.host_paths"]=L.split("|");for(let[M,Y]of Object.entries(S))if(Y!==void 0)x[M]=Y;p.emit({body:`claude_code.${f}`,attributes:x})}var Sf=0,i=!1;var P=E(()=>{Z();pf();Q();c()});function Pf(){}function nf(){return!1}function vf(){}function wf(){}var Ef=()=>{};function qf(f){return f}function If(){return!1}function Cf(){return{}}function Af(){return}function bf(){return}function uf(){return}function lf(){return}function gf(){return}var n=()=>{};function Sp(){Gf.clear(),Kf.clear()}function xp(){if(!(q(process.env.ENABLE_BETA_TRACING_DETAILED)&&Boolean(process.env.BETA_TRACING_ENDPOINT)))return!1;return v()||w("tengu_trace_lantern",!1)}var Gf,Kf;var Mf=E(()=>{Z();Lf();n();Q();Of();P();Gf=new Set,Kf=new Map});function Ep(){return!1}function qp(){return!1}function Lp(){return K}function Op(){}function Gp(){return K}function Kp(){}function Mp(){return K}function Qp(){return K}function Xp(){}function $p(){return K}function Bp(){}function Zp(){}function Yp(){}function zp(){return K}function Jp(){}var K;var Qf=E(()=>{K={end(){},setAttribute(){},setStatus(){},recordException(){},addEvent(){},isRecording(){return!1}}});
|
|
2
|
-
export{qf as aY,If as bY,Cf as cY,Af as dY,bf as eY,uf as fY,lf as gY,gf as hY,n as iY,m as jY,$ as kY,k as lY,j as mY,c as nY,Rf as oY,Tf as pY,P as qY,Pf as rY,nf as sY,vf as tY,wf as uY,Ef as vY,Sp as wY,xp as xY,Mf as yY,Ep as zY,qp as AY,Lp as BY,Op as CY,Gp as DY,Kp as EY,Mp as FY,Qp as GY,Xp as HY,$p as IY,Bp as JY,Zp as KY,Yp as LY,zp as MY,Jp as NY,Qf as OY};
|