@claudiolabs/claudio 0.1.10 → 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-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-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 +3 -3
- package/package.json +1 -1
- package/dist/chunks/AgentTool-0.1.10-6d1adwh4.mjs +0 -1
- package/dist/chunks/App-0.1.10-kcqgpy9v.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.1.10-276swzgm.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.1.10-zy1wpm5p.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.10-wm40g3s8.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.1.10-s6979mex.mjs +0 -1
- package/dist/chunks/ClaudeInChromeOnboarding-0.1.10-r7fr5krr.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.10-r34sxess.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.1.10-fkrt161g.mjs +0 -1
- package/dist/chunks/DiffDialog-0.1.10-z3c417rj.mjs +0 -3
- package/dist/chunks/Doctor-0.1.10-hzxpkma0.mjs +0 -1
- package/dist/chunks/Grove-0.1.10-k7t0bk1q.mjs +0 -1
- package/dist/chunks/ITermBackend-0.1.10-9nmcsqzc.mjs +0 -1
- package/dist/chunks/InProcessTransport-0.1.10-wpgrvt4k.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.1.10-1yxptsrm.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.1.10-2dx3wzpc.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.1.10-52vcfe6j.mjs +0 -1
- package/dist/chunks/Onboarding-0.1.10-sshvgxhv.mjs +0 -1
- package/dist/chunks/ProviderManager-0.1.10-gk479qf3.mjs +0 -1
- package/dist/chunks/REPL-0.1.10-pzwdjhkc.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.1.10-h4qtmeht.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.1.10-7pnzpe15.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.1.10-pna8cvtz.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.10-qgt41j05.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.1.10-yhws2rqe.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.1.10-235npnf1.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.1.10-9dwz8tfs.mjs +0 -1
- package/dist/chunks/TrustDialog-0.1.10-j46d8gme.mjs +0 -1
- package/dist/chunks/activeProvider-0.1.10-mc05hsn1.mjs +0 -1
- package/dist/chunks/add-dir-0.1.10-67yt41qd.mjs +0 -1
- package/dist/chunks/agents-0.1.10-c6k1gjp7.mjs +0 -3
- package/dist/chunks/agents-0.1.10-ezzxfn1m.mjs +0 -111
- package/dist/chunks/api-0.1.10-712k136n.mjs +0 -1
- package/dist/chunks/asciicast-0.1.10-p5232pbe.mjs +0 -1
- package/dist/chunks/assistant-0.1.10-ghtz2fm5.mjs +0 -1
- package/dist/chunks/auth-0.1.10-ec2e3mg3.mjs +0 -1
- package/dist/chunks/auth-0.1.10-pnnxbpmz.mjs +0 -1
- package/dist/chunks/autoMode-0.1.10-en4g4zp3.mjs +0 -48
- package/dist/chunks/backgroundHousekeeping-0.1.10-w42bm2y9.mjs +0 -1
- package/dist/chunks/branch-0.1.10-z00acm0q.mjs +0 -4
- package/dist/chunks/bridgePointer-0.1.10-0fpe1aqp.mjs +0 -1
- package/dist/chunks/btw-0.1.10-zz9v05r2.mjs +0 -1
- package/dist/chunks/buddy-0.1.10-g62mmn7n.mjs +0 -3
- package/dist/chunks/cacache-0.1.10-jdqat7je.mjs +0 -1
- package/dist/chunks/cache-probe-0.1.10-m5je5wda.mjs +0 -21
- package/dist/chunks/cacheStats-0.1.10-h3wmx4ck.mjs +0 -4
- package/dist/chunks/caches-0.1.10-gfv0fw3r.mjs +0 -1
- package/dist/chunks/chrome-0.1.10-vn58ms2z.mjs +0 -1
- package/dist/chunks/chromeNativeHost-0.1.10-1546eayv.mjs +0 -2
- package/dist/chunks/claude-for-chrome-mcp-0.1.10-4pjczkdy.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.1.10-gxr4sfek.mjs +0 -1
- package/dist/chunks/claudemd-0.1.10-fxjaqw0j.mjs +0 -1
- package/dist/chunks/clear-0.1.10-7a42j19v.mjs +0 -1
- package/dist/chunks/clearTerminal-0.1.10-vb1ec5bk.mjs +0 -1
- package/dist/chunks/cli-0.1.10-0n4bjm9z.mjs +0 -3
- package/dist/chunks/cli-0.1.10-0zwk2w6t.mjs +0 -3
- package/dist/chunks/cli-0.1.10-17f08ra3.mjs +0 -2
- package/dist/chunks/cli-0.1.10-19jdke0x.mjs +0 -2
- package/dist/chunks/cli-0.1.10-1faf50d6.mjs +0 -2
- package/dist/chunks/cli-0.1.10-1remt68x.mjs +0 -2
- package/dist/chunks/cli-0.1.10-1zgq248j.mjs +0 -2
- package/dist/chunks/cli-0.1.10-227xyew7.mjs +0 -2
- package/dist/chunks/cli-0.1.10-283zk2ee.mjs +0 -2
- package/dist/chunks/cli-0.1.10-28zx3btb.mjs +0 -14
- package/dist/chunks/cli-0.1.10-2a49sq4g.mjs +0 -2
- package/dist/chunks/cli-0.1.10-2ahvbvra.mjs +0 -2
- package/dist/chunks/cli-0.1.10-2gmmnep8.mjs +0 -2
- package/dist/chunks/cli-0.1.10-2k83cndj.mjs +0 -2
- package/dist/chunks/cli-0.1.10-2mqddc7q.mjs +0 -31
- package/dist/chunks/cli-0.1.10-2tygs780.mjs +0 -2
- package/dist/chunks/cli-0.1.10-3chjvgrj.mjs +0 -2
- package/dist/chunks/cli-0.1.10-3d0w3dmn.mjs +0 -12
- package/dist/chunks/cli-0.1.10-3q43p3wr.mjs +0 -11
- package/dist/chunks/cli-0.1.10-3s7cftaq.mjs +0 -39
- package/dist/chunks/cli-0.1.10-3zkqq9sp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-4a42q38j.mjs +0 -2
- package/dist/chunks/cli-0.1.10-4c5p0gjr.mjs +0 -3
- package/dist/chunks/cli-0.1.10-4jsc4zm5.mjs +0 -2
- package/dist/chunks/cli-0.1.10-4md6sg2a.mjs +0 -2
- package/dist/chunks/cli-0.1.10-4n8p34vn.mjs +0 -2
- package/dist/chunks/cli-0.1.10-4n8rvtk0.mjs +0 -2
- package/dist/chunks/cli-0.1.10-4nrdrp9t.mjs +0 -21
- package/dist/chunks/cli-0.1.10-4q7m47pn.mjs +0 -3
- package/dist/chunks/cli-0.1.10-4vnky3f9.mjs +0 -3
- package/dist/chunks/cli-0.1.10-594z8zdp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-5jnkne9q.mjs +0 -2
- package/dist/chunks/cli-0.1.10-5kg4wpz2.mjs +0 -2
- package/dist/chunks/cli-0.1.10-5tyyhz34.mjs +0 -833
- package/dist/chunks/cli-0.1.10-63qeecn7.mjs +0 -24
- package/dist/chunks/cli-0.1.10-6bn5q3gp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-6f66h3s0.mjs +0 -2
- package/dist/chunks/cli-0.1.10-6g6ga1zd.mjs +0 -2
- package/dist/chunks/cli-0.1.10-6p8tttyp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-6wf59qza.mjs +0 -58
- package/dist/chunks/cli-0.1.10-72ece2yk.mjs +0 -2
- package/dist/chunks/cli-0.1.10-73y7xdxy.mjs +0 -2
- package/dist/chunks/cli-0.1.10-7691mckr.mjs +0 -2
- package/dist/chunks/cli-0.1.10-77zcax57.mjs +0 -2
- package/dist/chunks/cli-0.1.10-7d7j1qyf.mjs +0 -2
- package/dist/chunks/cli-0.1.10-7ngfsh9h.mjs +0 -4
- package/dist/chunks/cli-0.1.10-7v1vvde4.mjs +0 -8
- package/dist/chunks/cli-0.1.10-7ydarbm4.mjs +0 -2
- package/dist/chunks/cli-0.1.10-8dyffagh.mjs +0 -2
- package/dist/chunks/cli-0.1.10-91tna7ay.mjs +0 -2
- package/dist/chunks/cli-0.1.10-977j0ey2.mjs +0 -2
- package/dist/chunks/cli-0.1.10-97rwbawt.mjs +0 -2
- package/dist/chunks/cli-0.1.10-9dfywk37.mjs +0 -2
- package/dist/chunks/cli-0.1.10-9rh1hjrr.mjs +0 -16
- package/dist/chunks/cli-0.1.10-9ybfn3a4.mjs +0 -50
- package/dist/chunks/cli-0.1.10-9zjhrr6j.mjs +0 -2
- package/dist/chunks/cli-0.1.10-a4p945wp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-a53q2hat.mjs +0 -2
- package/dist/chunks/cli-0.1.10-a6j6www8.mjs +0 -10
- package/dist/chunks/cli-0.1.10-acy8ec7t.mjs +0 -2
- package/dist/chunks/cli-0.1.10-akaq0zte.mjs +0 -2
- package/dist/chunks/cli-0.1.10-aw4xkrf7.mjs +0 -2
- package/dist/chunks/cli-0.1.10-b59j6twr.mjs +0 -2
- package/dist/chunks/cli-0.1.10-be8dvtg8.mjs +0 -2
- package/dist/chunks/cli-0.1.10-bfw7yx17.mjs +0 -2
- package/dist/chunks/cli-0.1.10-bgxwxmv1.mjs +0 -2
- package/dist/chunks/cli-0.1.10-bqsa7eam.mjs +0 -2
- package/dist/chunks/cli-0.1.10-brfs5rdm.mjs +0 -4
- package/dist/chunks/cli-0.1.10-bw6411be.mjs +0 -3
- package/dist/chunks/cli-0.1.10-bxbkeycj.mjs +0 -4
- package/dist/chunks/cli-0.1.10-c7bkm855.mjs +0 -4
- package/dist/chunks/cli-0.1.10-cd9k16mb.mjs +0 -2
- package/dist/chunks/cli-0.1.10-ckb6d1wg.mjs +0 -5
- package/dist/chunks/cli-0.1.10-cp1bprrv.mjs +0 -2
- package/dist/chunks/cli-0.1.10-crwvcrfq.mjs +0 -2
- package/dist/chunks/cli-0.1.10-d48qgcag.mjs +0 -2
- package/dist/chunks/cli-0.1.10-d70y9y7x.mjs +0 -2
- package/dist/chunks/cli-0.1.10-dh7by4rw.mjs +0 -2
- package/dist/chunks/cli-0.1.10-dx1a4dz7.mjs +0 -2
- package/dist/chunks/cli-0.1.10-dx92txwb.mjs +0 -13
- package/dist/chunks/cli-0.1.10-e0ftjytk.mjs +0 -2
- package/dist/chunks/cli-0.1.10-e4qewc1p.mjs +0 -44
- package/dist/chunks/cli-0.1.10-e64kvn2p.mjs +0 -2
- package/dist/chunks/cli-0.1.10-eh248dzz.mjs +0 -15
- package/dist/chunks/cli-0.1.10-ejtn8grm.mjs +0 -2
- package/dist/chunks/cli-0.1.10-er8zk2kj.mjs +0 -2
- package/dist/chunks/cli-0.1.10-f1nw74m1.mjs +0 -2
- package/dist/chunks/cli-0.1.10-f2jh6yv0.mjs +0 -2
- package/dist/chunks/cli-0.1.10-f38gq0e0.mjs +0 -2
- package/dist/chunks/cli-0.1.10-f7wg8ttz.mjs +0 -2
- package/dist/chunks/cli-0.1.10-fay16q4v.mjs +0 -2
- package/dist/chunks/cli-0.1.10-fcarec7s.mjs +0 -2
- package/dist/chunks/cli-0.1.10-fh4zzwzq.mjs +0 -5
- package/dist/chunks/cli-0.1.10-fhvyzg2m.mjs +0 -2
- package/dist/chunks/cli-0.1.10-frs4kmth.mjs +0 -2
- package/dist/chunks/cli-0.1.10-g6rx9rdb.mjs +0 -132
- package/dist/chunks/cli-0.1.10-gccb3gw8.mjs +0 -4
- package/dist/chunks/cli-0.1.10-gdqbhzyr.mjs +0 -100
- package/dist/chunks/cli-0.1.10-gms4557v.mjs +0 -252
- package/dist/chunks/cli-0.1.10-gnds07ck.mjs +0 -2
- package/dist/chunks/cli-0.1.10-h7dsgrnw.mjs +0 -2
- package/dist/chunks/cli-0.1.10-h7egg5xp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-hbk3dhq8.mjs +0 -24
- package/dist/chunks/cli-0.1.10-hpa8eyg4.mjs +0 -2
- package/dist/chunks/cli-0.1.10-hpg8gdm2.mjs +0 -2
- package/dist/chunks/cli-0.1.10-hrjh10v7.mjs +0 -2
- package/dist/chunks/cli-0.1.10-hwk5cfdc.mjs +0 -2
- package/dist/chunks/cli-0.1.10-hyxg32sc.mjs +0 -2
- package/dist/chunks/cli-0.1.10-jb7jbbms.mjs +0 -2
- package/dist/chunks/cli-0.1.10-jjdvb4je.mjs +0 -2
- package/dist/chunks/cli-0.1.10-js33z9dt.mjs +0 -2
- package/dist/chunks/cli-0.1.10-jy0nmcmp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-jy7ds572.mjs +0 -2
- package/dist/chunks/cli-0.1.10-kdqsv63d.mjs +0 -3
- package/dist/chunks/cli-0.1.10-knbxee8j.mjs +0 -2
- package/dist/chunks/cli-0.1.10-kp2t4r8z.mjs +0 -2
- package/dist/chunks/cli-0.1.10-me1f9fvm.mjs +0 -2
- package/dist/chunks/cli-0.1.10-mjy2g3ce.mjs +0 -7
- package/dist/chunks/cli-0.1.10-mqgz2v10.mjs +0 -2
- package/dist/chunks/cli-0.1.10-mt4jf92z.mjs +0 -2
- package/dist/chunks/cli-0.1.10-mt6tj76h.mjs +0 -192
- package/dist/chunks/cli-0.1.10-mv1psn5z.mjs +0 -15
- package/dist/chunks/cli-0.1.10-n0kq1anb.mjs +0 -22
- package/dist/chunks/cli-0.1.10-nfnje7ew.mjs +0 -34
- package/dist/chunks/cli-0.1.10-nh3yfpyp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-npkfteg7.mjs +0 -2
- package/dist/chunks/cli-0.1.10-nzvv74kz.mjs +0 -2
- package/dist/chunks/cli-0.1.10-nzxw7p2m.mjs +0 -4
- package/dist/chunks/cli-0.1.10-p42gvsdg.mjs +0 -2
- package/dist/chunks/cli-0.1.10-p4a151rw.mjs +0 -2
- package/dist/chunks/cli-0.1.10-p5wpvhbv.mjs +0 -2
- package/dist/chunks/cli-0.1.10-pagxn9ep.mjs +0 -2
- package/dist/chunks/cli-0.1.10-pw67rrjr.mjs +0 -2
- package/dist/chunks/cli-0.1.10-qez6cjt8.mjs +0 -2
- package/dist/chunks/cli-0.1.10-qf6ps98q.mjs +0 -2
- package/dist/chunks/cli-0.1.10-qhh8pa5t.mjs +0 -2
- package/dist/chunks/cli-0.1.10-qkv7g58s.mjs +0 -2
- package/dist/chunks/cli-0.1.10-qtq4gx83.mjs +0 -3
- package/dist/chunks/cli-0.1.10-qw2c8g14.mjs +0 -2
- package/dist/chunks/cli-0.1.10-qw7kdg27.mjs +0 -2
- package/dist/chunks/cli-0.1.10-rgtrj3k8.mjs +0 -2
- package/dist/chunks/cli-0.1.10-rjz4ymc4.mjs +0 -2
- package/dist/chunks/cli-0.1.10-rnwbgj0h.mjs +0 -134
- package/dist/chunks/cli-0.1.10-rpyv9ekb.mjs +0 -45
- package/dist/chunks/cli-0.1.10-rr3xpxx1.mjs +0 -2
- package/dist/chunks/cli-0.1.10-rvb440sp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-s3x3vzah.mjs +0 -2
- package/dist/chunks/cli-0.1.10-s4x77tm0.mjs +0 -2
- package/dist/chunks/cli-0.1.10-s6jxst02.mjs +0 -2
- package/dist/chunks/cli-0.1.10-s7s5bgrq.mjs +0 -11
- package/dist/chunks/cli-0.1.10-s7zk0vc8.mjs +0 -18
- package/dist/chunks/cli-0.1.10-sab6x266.mjs +0 -2
- package/dist/chunks/cli-0.1.10-seekz53q.mjs +0 -2
- package/dist/chunks/cli-0.1.10-sre7cbsg.mjs +0 -2
- package/dist/chunks/cli-0.1.10-szz5tkt1.mjs +0 -4
- package/dist/chunks/cli-0.1.10-t0v9d184.mjs +0 -2
- package/dist/chunks/cli-0.1.10-t1zd86kd.mjs +0 -2
- package/dist/chunks/cli-0.1.10-t8rnwwhq.mjs +0 -2
- package/dist/chunks/cli-0.1.10-ta048zme.mjs +0 -3
- package/dist/chunks/cli-0.1.10-v0vhyf3h.mjs +0 -4
- package/dist/chunks/cli-0.1.10-v385rk98.mjs +0 -2
- package/dist/chunks/cli-0.1.10-v582vfad.mjs +0 -2
- package/dist/chunks/cli-0.1.10-v6gq9bxc.mjs +0 -7
- package/dist/chunks/cli-0.1.10-vrd90nhd.mjs +0 -16
- package/dist/chunks/cli-0.1.10-w1hqcxj1.mjs +0 -2
- package/dist/chunks/cli-0.1.10-w8np72sh.mjs +0 -2
- package/dist/chunks/cli-0.1.10-wajz23ff.mjs +0 -2
- package/dist/chunks/cli-0.1.10-wjmtd9vm.mjs +0 -6
- package/dist/chunks/cli-0.1.10-wm8pd1jq.mjs +0 -2
- package/dist/chunks/cli-0.1.10-wvhzawgv.mjs +0 -12
- package/dist/chunks/cli-0.1.10-x1qs5ctr.mjs +0 -2
- package/dist/chunks/cli-0.1.10-x2eaxa4s.mjs +0 -2
- package/dist/chunks/cli-0.1.10-xjpjs3y5.mjs +0 -2
- package/dist/chunks/cli-0.1.10-xzz1tdne.mjs +0 -2
- package/dist/chunks/cli-0.1.10-y17z0pes.mjs +0 -2
- package/dist/chunks/cli-0.1.10-y1bkenem.mjs +0 -2
- package/dist/chunks/cli-0.1.10-y2byece1.mjs +0 -12
- package/dist/chunks/cli-0.1.10-y3q22zvb.mjs +0 -2
- package/dist/chunks/cli-0.1.10-y6a8q1t3.mjs +0 -9
- package/dist/chunks/cli-0.1.10-y9mkzh11.mjs +0 -5036
- package/dist/chunks/cli-0.1.10-yq3dy7w2.mjs +0 -2
- package/dist/chunks/cli-0.1.10-yset0578.mjs +0 -2
- package/dist/chunks/cli-0.1.10-z20mk55m.mjs +0 -5
- package/dist/chunks/cli-0.1.10-z3f97n2d.mjs +0 -6
- package/dist/chunks/cli-0.1.10-z4a84y0c.mjs +0 -2
- package/dist/chunks/cli-0.1.10-z7ghb8z7.mjs +0 -2
- package/dist/chunks/cli-0.1.10-zeqsd250.mjs +0 -2
- package/dist/chunks/cli-0.1.10-zxcxqxwv.mjs +0 -2
- package/dist/chunks/cli-0.1.10-zxgw1kqq.mjs +0 -2
- package/dist/chunks/client-0.1.10-btm7zd17.mjs +0 -1
- package/dist/chunks/color-0.1.10-h3wdkq18.mjs +0 -1
- package/dist/chunks/compact-0.1.10-3vz0z7cj.mjs +0 -3
- package/dist/chunks/config-0.1.10-37452dtw.mjs +0 -1
- package/dist/chunks/config-0.1.10-apkj5t0e.mjs +0 -1
- package/dist/chunks/context-0.1.10-z4vfp64w.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.1.10-xmmn39z5.mjs +0 -1
- package/dist/chunks/conversation-0.1.10-p82mc6k7.mjs +0 -1
- package/dist/chunks/copy-0.1.10-y1c1gb1w.mjs +0 -9
- package/dist/chunks/cost-0.1.10-d5wpnm54.mjs +0 -1
- package/dist/chunks/createSession-0.1.10-7bq5e7c3.mjs +0 -1
- package/dist/chunks/desktop-0.1.10-3f54fc1k.mjs +0 -1
- package/dist/chunks/detectRepository-0.1.10-1kyc0kvc.mjs +0 -1
- package/dist/chunks/detection-0.1.10-0h6d9cqt.mjs +0 -1
- package/dist/chunks/devtools-0.1.10-93f39njd.mjs +0 -1
- package/dist/chunks/diff-0.1.10-j17ke0k6.mjs +0 -1
- package/dist/chunks/doctor-0.1.10-wcq13152.mjs +0 -1
- package/dist/chunks/earlyInput-0.1.10-k1phbjt5.mjs +0 -1
- package/dist/chunks/effort-0.1.10-kanyae0a.mjs +0 -8
- package/dist/chunks/environmentSelection-0.1.10-ydckkyqx.mjs +0 -1
- package/dist/chunks/environments-0.1.10-7dht1svt.mjs +0 -1
- package/dist/chunks/exit-0.1.10-q7af8rb6.mjs +0 -1
- package/dist/chunks/export-0.1.10-tgsj9sg2.mjs +0 -2
- package/dist/chunks/extra-usage-0.1.10-qccdgzpk.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.1.10-5rpbnmgs.mjs +0 -1
- package/dist/chunks/fast-0.1.10-eq1jgfqk.mjs +0 -1
- package/dist/chunks/feedback-0.1.10-yvpgv2wy.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.1.10-1q5vbtwp.mjs +0 -1
- package/dist/chunks/git-0.1.10-ngvcytb0.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.1.10-w5g5cqhg.mjs +0 -1
- package/dist/chunks/growthbook-0.1.10-zkm4sham.mjs +0 -1
- package/dist/chunks/heapdump-0.1.10-29gq2jvb.mjs +0 -6
- package/dist/chunks/help-0.1.10-yj8ra443.mjs +0 -1
- package/dist/chunks/hookChains-0.1.10-32qn4nw8.mjs +0 -3
- package/dist/chunks/hooks-0.1.10-epp78p44.mjs +0 -79
- package/dist/chunks/hooks-0.1.10-fjrmscrk.mjs +0 -1
- package/dist/chunks/ide-0.1.10-361fyyet.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.1.10-18yjap6z.mjs +0 -1
- package/dist/chunks/index-0.1.10-1cxj797w.mjs +0 -2
- package/dist/chunks/index-0.1.10-30c6wwdm.mjs +0 -30
- package/dist/chunks/index-0.1.10-80bh88yr.mjs +0 -1
- package/dist/chunks/index-0.1.10-8apwt1gk.mjs +0 -1
- package/dist/chunks/index-0.1.10-8c4f5nq6.mjs +0 -2
- package/dist/chunks/index-0.1.10-9mqxzarc.mjs +0 -5
- package/dist/chunks/index-0.1.10-c29w46aj.mjs +0 -1
- package/dist/chunks/index-0.1.10-c450y86m.mjs +0 -1
- package/dist/chunks/index-0.1.10-d1r31eyx.mjs +0 -9
- package/dist/chunks/index-0.1.10-drj30y1c.mjs +0 -1
- package/dist/chunks/index-0.1.10-g667a23q.mjs +0 -1
- package/dist/chunks/index-0.1.10-gz2mwwnj.mjs +0 -1
- package/dist/chunks/index-0.1.10-m1gd7g5v.mjs +0 -1
- package/dist/chunks/index-0.1.10-n4bkm7fr.mjs +0 -9
- package/dist/chunks/index-0.1.10-r42rb77w.mjs +0 -7
- package/dist/chunks/index-0.1.10-ra4k3x9k.mjs +0 -1
- package/dist/chunks/index-0.1.10-s32szzwg.mjs +0 -1
- package/dist/chunks/index-0.1.10-std21r3g.mjs +0 -1
- package/dist/chunks/index-0.1.10-t71jm4x7.mjs +0 -1
- package/dist/chunks/index-0.1.10-vpcq7nfa.mjs +0 -1
- package/dist/chunks/index-0.1.10-x6dkpkw7.mjs +0 -1
- package/dist/chunks/index-0.1.10-xqy1yh0c.mjs +0 -1
- package/dist/chunks/initReplBridge-0.1.10-4af5e275.mjs +0 -1
- package/dist/chunks/ink-0.1.10-57r8vscr.mjs +0 -1
- package/dist/chunks/insights-0.1.10-rptwhmpm.mjs +0 -870
- package/dist/chunks/install-0.1.10-9w2w5vre.mjs +0 -1
- package/dist/chunks/install-github-app-0.1.10-xhj1zyqh.mjs +0 -149
- package/dist/chunks/install-slack-app-0.1.10-tq51qy4s.mjs +0 -1
- package/dist/chunks/instrumentation-0.1.10-kyzfec48.mjs +0 -12
- package/dist/chunks/interactiveHelpers-0.1.10-1491802m.mjs +0 -1
- package/dist/chunks/keybindings-0.1.10-fpyw69y7.mjs +0 -2
- package/dist/chunks/knowledge-0.1.10-2aa0bb5w.mjs +0 -2
- package/dist/chunks/loadAgentsDir-0.1.10-h8t0ppav.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.1.10-ne71stmt.mjs +0 -1
- package/dist/chunks/logout-0.1.10-xxm4ydq9.mjs +0 -1
- package/dist/chunks/lsp-0.1.10-k53wta4y.mjs +0 -1
- package/dist/chunks/main-0.1.10-q3qenxfq.mjs +0 -1
- package/dist/chunks/managedEnv-0.1.10-s37qwcz1.mjs +0 -1
- package/dist/chunks/mcp-0.1.10-af795ewj.mjs +0 -1
- package/dist/chunks/mcp-0.1.10-b5z770fs.mjs +0 -17
- package/dist/chunks/mcp-0.1.10-nd17220r.mjs +0 -4
- package/dist/chunks/mcpServer-0.1.10-vrpfykem.mjs +0 -1
- package/dist/chunks/mcpb-0.1.10-jzxbat3k.mjs +0 -1
- package/dist/chunks/memory-0.1.10-zwzw20d5.mjs +0 -3
- package/dist/chunks/mobile-0.1.10-02fzsby3.mjs +0 -2
- package/dist/chunks/model-0.1.10-9g2nyrq7.mjs +0 -1
- package/dist/chunks/model-0.1.10-rygn5rc7.mjs +0 -2
- package/dist/chunks/oauth-0.1.10-t6fn448z.mjs +0 -1
- package/dist/chunks/openaiShim-0.1.10-gnhp89j2.mjs +0 -14
- package/dist/chunks/output-style-0.1.10-tnvcw858.mjs +0 -1
- package/dist/chunks/package-HMBVQOZ4-0.1.10-zd9nnmft.mjs +0 -1
- package/dist/chunks/parser-0.1.10-yemkwzb2.mjs +0 -1
- package/dist/chunks/passes-0.1.10-3zg7g2tp.mjs +0 -1
- package/dist/chunks/permissions-0.1.10-3tmntee5.mjs +0 -3
- package/dist/chunks/plan-0.1.10-sj11cbeb.mjs +0 -1
- package/dist/chunks/plist-0.1.10-mfhsxrkb.mjs +0 -1
- package/dist/chunks/plugin-0.1.10-c2rxcqb7.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.1.10-n5esk5p9.mjs +0 -1
- package/dist/chunks/plugins-0.1.10-cyb1q58v.mjs +0 -9
- package/dist/chunks/print-0.1.10-s2t5nd3y.mjs +0 -57
- package/dist/chunks/privacy-settings-0.1.10-kxx4szxa.mjs +0 -1
- package/dist/chunks/process-0.1.10-kp51xxsy.mjs +0 -1
- package/dist/chunks/processBashCommand-0.1.10-t1cdkkjx.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.1.10-pvndkc40.mjs +0 -9
- package/dist/chunks/prompt-0.1.10-2kjnmw4z.mjs +0 -1
- package/dist/chunks/prompt-0.1.10-v546t6x4.mjs +0 -1
- package/dist/chunks/prompts-0.1.10-8k80tabm.mjs +0 -1
- package/dist/chunks/provider-0.1.10-5p16y1p3.mjs +0 -2
- package/dist/chunks/providerProfiles-0.1.10-0r6j5m52.mjs +0 -1
- package/dist/chunks/rate-limit-options-0.1.10-0sgjcqvt.mjs +0 -1
- package/dist/chunks/registry-0.1.10-nyx80cwb.mjs +0 -1
- package/dist/chunks/release-notes-0.1.10-8bpsjmax.mjs +0 -5
- package/dist/chunks/reload-plugins-0.1.10-f8cj2ymj.mjs +0 -2
- package/dist/chunks/remote-env-0.1.10-x65rh1n3.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.1.10-tk9vhzgk.mjs +0 -1
- package/dist/chunks/remoteSession-0.1.10-xx5eng27.mjs +0 -1
- package/dist/chunks/rename-0.1.10-zjwr9vqm.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.1.10-34e8jwrt.mjs +0 -1
- package/dist/chunks/resume-0.1.10-dc75n2zf.mjs +0 -2
- package/dist/chunks/rewind-0.1.10-kt2968kt.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.1.10-whhwsy1v.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.1.10-19w6767r.mjs +0 -1
- package/dist/chunks/session-0.1.10-pzsbjyqm.mjs +0 -2
- package/dist/chunks/sessionFileAccessHooks-0.1.10-jaadayzy.mjs +0 -1
- package/dist/chunks/sessionStorage-0.1.10-b72srv50.mjs +0 -1
- package/dist/chunks/setup-0.1.10-fbs90hdh.mjs +0 -5
- package/dist/chunks/sinks-0.1.10-02w5f1q9.mjs +0 -1
- package/dist/chunks/skills-0.1.10-pexnbjqd.mjs +0 -1
- package/dist/chunks/startupProfiler-0.1.10-gcv6ckp5.mjs +0 -1
- package/dist/chunks/state-0.1.10-embrgn1a.mjs +0 -1
- package/dist/chunks/stats-0.1.10-s0rzmsxx.mjs +0 -6
- package/dist/chunks/status-0.1.10-8r0jrc8n.mjs +0 -1
- package/dist/chunks/stickers-0.1.10-dj7ganhx.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.1.10-hpv416jp.mjs +0 -1
- package/dist/chunks/tasks-0.1.10-cnvnk57k.mjs +0 -1
- package/dist/chunks/teamHelpers-0.1.10-j6sfy2zc.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.1.10-ddhe13pc.mjs +0 -1
- package/dist/chunks/teleport-0.1.10-saft8sby.mjs +0 -1
- package/dist/chunks/terminalSetup-0.1.10-4p5xvtyy.mjs +0 -1
- package/dist/chunks/theme-0.1.10-5xss74sp.mjs +0 -1
- package/dist/chunks/thinkback-0.1.10-e4bz61r1.mjs +0 -1
- package/dist/chunks/thinkback-play-0.1.10-0vjf0r8c.mjs +0 -1
- package/dist/chunks/toolPool-0.1.10-57jq29ct.mjs +0 -1
- package/dist/chunks/toolSearch-0.1.10-ysjw302j.mjs +0 -1
- package/dist/chunks/trustedDevice-0.1.10-zy988esg.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.1.10-vhmcr6t6.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.1.10-sqjsmw0x.mjs +0 -4
- package/dist/chunks/update-0.1.10-p7ctpbkr.mjs +0 -94
- package/dist/chunks/upgrade-0.1.10-8585sfbv.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.1.10-ddbrjzqt.mjs +0 -14
- package/dist/chunks/usage-0.1.10-r8vznre6.mjs +0 -1
- package/dist/chunks/util-0.1.10-51fk6c0k.mjs +0 -1
- package/dist/chunks/utils-0.1.10-43r4vneb.mjs +0 -1
- package/dist/chunks/vim-0.1.10-3yzrqjw5.mjs +0 -1
- package/dist/chunks/watcher-0.1.10-xq2qsexd.mjs +0 -1
- package/dist/chunks/wiki-0.1.10-v3w4719f.mjs +0 -132
- package/dist/chunks/worktree-0.1.10-b5r0y9mr.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.1.10-ckcv927j.mjs +0 -1
- package/dist/chunks/wrapper-0.1.10-10976h3e.mjs +0 -7
- /package/dist/chunks/{cli-0.1.10-tf9dk84p.mjs → cli-0.1.11-4px8nt5r.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.10-xfdakzcb.mjs → cli-0.1.11-tyh8gms9.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.10-9xpgjxhj.mjs → cli-0.1.11-x3q39kf7.mjs} +0 -0
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{Hn as Oq,Jn as dq,Ln as _q,Mn as nq,PH as qQ,QM as hq,SM as Pq,YI as Lq,ZG as Nq,_I as QQ,aN as HQ,uH as Rq,uL as Bq,wL as Cq,xK as Uq,yK as WQ}from"./cli-0.1.10-y9mkzh11.mjs";import"./cli-0.1.10-rr3xpxx1.mjs";import"./cli-0.1.10-xjpjs3y5.mjs";import"./cli-0.1.10-7d7j1qyf.mjs";import{AP as oq,BP as u,CP as sq,FP as zq,GP as rq,xP as f,yP as cq,zP as x}from"./cli-0.1.10-gdqbhzyr.mjs";import"./cli-0.1.10-fay16q4v.mjs";import"./cli-0.1.10-z4a84y0c.mjs";import"./cli-0.1.10-y3q22zvb.mjs";import"./cli-0.1.10-4a42q38j.mjs";import"./cli-0.1.10-x1qs5ctr.mjs";import"./cli-0.1.10-fhvyzg2m.mjs";import"./cli-0.1.10-72ece2yk.mjs";import"./cli-0.1.10-qf6ps98q.mjs";import"./cli-0.1.10-t8rnwwhq.mjs";import"./cli-0.1.10-wajz23ff.mjs";import"./cli-0.1.10-nfnje7ew.mjs";import"./cli-0.1.10-be8dvtg8.mjs";import"./cli-0.1.10-rvb440sp.mjs";import{AS as Xq,BS as lq,OS as Yq,QS as iq}from"./cli-0.1.10-xzz1tdne.mjs";import{KU as G,MU as K,eV as Kq,pV as pq}from"./cli-0.1.10-gms4557v.mjs";import"./cli-0.1.10-0n4bjm9z.mjs";import"./cli-0.1.10-4n8rvtk0.mjs";import"./cli-0.1.10-3q43p3wr.mjs";import"./cli-0.1.10-gccb3gw8.mjs";import"./cli-0.1.10-er8zk2kj.mjs";import{$W as Gq,dX as eq}from"./cli-0.1.10-zeqsd250.mjs";import"./cli-0.1.10-z3f97n2d.mjs";import"./cli-0.1.10-b59j6twr.mjs";import{kX as j}from"./cli-0.1.10-v6gq9bxc.mjs";import{lX as Dq}from"./cli-0.1.10-28zx3btb.mjs";import{mX as wq,pX as Hq,rX as aq}from"./cli-0.1.10-p42gvsdg.mjs";import"./cli-0.1.10-d48qgcag.mjs";import"./cli-0.1.10-227xyew7.mjs";import{HX as Jq,IX as tq}from"./cli-0.1.10-bqsa7eam.mjs";import"./cli-0.1.10-acy8ec7t.mjs";import"./cli-0.1.10-hbk3dhq8.mjs";import"./cli-0.1.10-w8np72sh.mjs";import"./cli-0.1.10-t1zd86kd.mjs";import"./cli-0.1.10-jjdvb4je.mjs";import"./cli-0.1.10-dx92txwb.mjs";import"./cli-0.1.10-f38gq0e0.mjs";import"./cli-0.1.10-2ahvbvra.mjs";import"./cli-0.1.10-73y7xdxy.mjs";import{H4 as $q,b5 as Eq,j1 as Zq,o1 as uq}from"./cli-0.1.10-vrd90nhd.mjs";import"./cli-0.1.10-y6a8q1t3.mjs";import"./cli-0.1.10-wjmtd9vm.mjs";import"./cli-0.1.10-g6rx9rdb.mjs";import"./cli-0.1.10-7ydarbm4.mjs";import{i6 as V,z6 as fq}from"./cli-0.1.10-s7s5bgrq.mjs";import"./cli-0.1.10-y2byece1.mjs";import"./cli-0.1.10-fcarec7s.mjs";import{B8 as Qq,D7 as bq,G8 as jq,j8 as qq,r_ as C,t7 as r,t_ as xq,u7 as Vq,y7 as b,z7 as e}from"./cli-0.1.10-mt6tj76h.mjs";import"./cli-0.1.10-2mqddc7q.mjs";import"./cli-0.1.10-4n8p34vn.mjs";import"./cli-0.1.10-594z8zdp.mjs";import"./cli-0.1.10-a4p945wp.mjs";import"./cli-0.1.10-w1hqcxj1.mjs";import"./cli-0.1.10-nzxw7p2m.mjs";import"./cli-0.1.10-97rwbawt.mjs";import{Yfa as Wq,Zfa as gq}from"./cli-0.1.10-f2jh6yv0.mjs";import{Ega as D,Iga as kq,Wga as t,Zga as Iq}from"./cli-0.1.10-e4qewc1p.mjs";import"./cli-0.1.10-y1bkenem.mjs";import"./cli-0.1.10-pw67rrjr.mjs";import{Oma as Sq,jla as s}from"./cli-0.1.10-mqgz2v10.mjs";import"./cli-0.1.10-akaq0zte.mjs";import{Gna as T,Kna as o}from"./cli-0.1.10-hyxg32sc.mjs";import{readFile as ZQ,stat as $Q}from"fs/promises";function h(W){let q=W;return q=q.replace(/"(sk-ant[^\s"']{24,})"/g,'"[REDACTED_API_KEY]"'),q=q.replace(/(?<![A-Za-z0-9"'])(sk-ant-?[A-Za-z0-9_-]{10,})(?![A-Za-z0-9"'])/g,"[REDACTED_API_KEY]"),q=q.replace(/AWS key: "(AWS[A-Z0-9]{20,})"/g,'AWS key: "[REDACTED_AWS_KEY]"'),q=q.replace(/(AKIA[A-Z0-9]{16})/g,"[REDACTED_AWS_KEY]"),q=q.replace(/(?<![A-Za-z0-9])(AIza[A-Za-z0-9_-]{35})(?![A-Za-z0-9])/g,"[REDACTED_GCP_KEY]"),q=q.replace(/(?<![A-Za-z0-9])([a-z0-9-]+@[a-z0-9-]+\.iam\.gserviceaccount\.com)(?![A-Za-z0-9])/g,"[REDACTED_GCP_SERVICE_ACCOUNT]"),q=q.replace(/(["']?x-api-key["']?\s*[:=]\s*["']?)[^"',\s)}\]]+/gi,"$1[REDACTED_API_KEY]"),q=q.replace(/(["']?authorization["']?\s*[:=]\s*["']?(bearer\s+)?)[^"',\s)}\]]+/gi,"$1[REDACTED_TOKEN]"),q=q.replace(/(AWS[_-][A-Za-z0-9_]+\s*[=:]\s*)["']?[^"',\s)}\]]+["']?/gi,"$1[REDACTED_AWS_VALUE]"),q=q.replace(/(GOOGLE[_-][A-Za-z0-9_]+\s*[=:]\s*)["']?[^"',\s)}\]]+["']?/gi,"$1[REDACTED_GCP_VALUE]"),q=q.replace(/((API[-_]?KEY|TOKEN|SECRET|PASSWORD)\s*[=:]\s*)["']?[^"',\s)}\]]+["']?/gi,"$1[REDACTED]"),q}function d(){return e().map((W)=>{let q={...W};if(q&&typeof q.error==="string")q.error=h(q.error);return q})}async function KQ(){try{let W=Bq(),{size:q}=await $Q(W);if(q>Cq)return t(`Skipping raw transcript read: file too large (${q} bytes)`,{level:"warn"}),null;return await ZQ(W,"utf-8")}catch{return null}}function Mq({abortSignal:W,messages:q,initialDescription:Z,onDone:$,backgroundTasks:N={}}){let[X,P]=w.useState("userInput"),[y,p]=w.useState(0),[J,M]=w.useState(Z??""),[m,v]=w.useState(null),[R,A]=w.useState("submitted"),[H,L]=w.useState(null),[O,g]=w.useState({isGit:!1,gitState:null}),[U,S]=w.useState(null),k=Xq().columns-4;w.useEffect(()=>{async function _(){let Y=await qq(),z=null;if(Y)z=await Qq();g({isGit:Y,gitState:z})}_()},[]);let l=w.useCallback(async()=>{P("submitting"),L(null),v(null),A("submitted");let _=d(),z=Nq(q)?.requestId??null,[Fq,c]=await Promise.all([Pq(),KQ()]),Tq=hq(N),i={...Fq,...Tq},yq={latestAssistantMessageId:z,message_count:q.length,datetime:new Date().toISOString(),description:J,platform:C.platform,gitRepo:O.isGit,terminal:C.terminal,version:"99.0.0",transcript:Rq(q),errors:_,lastApiRequest:s(),...Object.keys(i).length>0&&{subagentTranscripts:i},...c&&{rawTranscriptJsonl:c}},[B,mq]=await Promise.all([wQ(yq,W),YQ(J,W)]);if(S(mq),B.success){if(A(B.issueDraftOnly?"issue-draft":"submitted"),B.feedbackId)v(B.feedbackId),Wq("tengu_bug_report_submitted",{feedback_id:B.feedbackId,last_assistant_message_id:z}),Gq("tengu_bug_report_description",{feedback_id:B.feedbackId,description:h(J)});P("done")}else{if(B.isZdrOrg)L("Feedback collection is not available for organizations with custom data retention policies.");else L("Could not submit feedback. Please try again later.");P("userInput")}},[J,O.isGit,q]),F=w.useCallback(()=>{if(X==="done"){if(H)$("Error submitting feedback / bug report",{display:"system"});else $(R==="issue-draft"?"GitHub issue draft ready":"Feedback / bug report submitted",{display:"system"});return}$("Feedback / bug report cancelled",{display:"system"})},[X,H,R,$]);return Yq("confirm:no",F,{context:"Settings",isActive:X==="userInput"}),Kq((_,Y)=>{if(X==="done"){if(Y.return&&U&&E){let z=XQ(m??"",U,J,d());Jq(z)}if(H)$("Error submitting feedback / bug report",{display:"system"});else $(R==="issue-draft"?"GitHub issue draft ready":"Feedback / bug report submitted",{display:"system"});return}if(H&&X!=="userInput"){$("Error submitting feedback / bug report",{display:"system"});return}if(X==="consent"&&(Y.return||_===" "))l()}),Q.jsxDEV(zq,{title:"Submit Feedback / Bug Report",onCancel:F,isCancelActive:X!=="userInput",inputGuide:(_)=>_.pending?Q.jsxDEV(K,{children:["Press ",_.keyName," again to exit"]},void 0,!0,void 0,this):X==="userInput"?Q.jsxDEV(u,{children:[Q.jsxDEV(f,{shortcut:"Enter",action:"continue"},void 0,!1,void 0,this),Q.jsxDEV(x,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):X==="consent"?Q.jsxDEV(u,{children:[Q.jsxDEV(f,{shortcut:"Enter",action:"submit"},void 0,!1,void 0,this),Q.jsxDEV(x,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,children:[X==="userInput"&&Q.jsxDEV(G,{flexDirection:"column",gap:1,children:[Q.jsxDEV(K,{children:"Describe the issue below:"},void 0,!1,void 0,this),Q.jsxDEV(Uq,{value:J,onChange:(_)=>{if(M(_),H)L(null)},columns:k,onSubmit:()=>P("consent"),onExitMessage:()=>$("Feedback cancelled",{display:"system"}),cursorOffset:y,onChangeCursorOffset:p,showCursor:!0},void 0,!1,void 0,this),H&&Q.jsxDEV(G,{flexDirection:"column",gap:1,children:[Q.jsxDEV(K,{color:"error",children:H},void 0,!1,void 0,this),Q.jsxDEV(K,{dimColor:!0,children:"Edit and press Enter to retry, or Esc to cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),X==="consent"&&Q.jsxDEV(G,{flexDirection:"column",children:[Q.jsxDEV(K,{children:"This report will include:"},void 0,!1,void 0,this),Q.jsxDEV(G,{marginLeft:2,flexDirection:"column",children:[Q.jsxDEV(K,{children:["- Your feedback / bug description:"," ",Q.jsxDEV(K,{dimColor:!0,children:J},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q.jsxDEV(K,{children:["- Environment info:"," ",Q.jsxDEV(K,{dimColor:!0,children:[C.platform,", ",C.terminal,", v","99.0.0"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),O.gitState&&Q.jsxDEV(K,{children:["- Git repo metadata:"," ",Q.jsxDEV(K,{dimColor:!0,children:[O.gitState.branchName,O.gitState.commitHash?`, ${O.gitState.commitHash.slice(0,7)}`:"",O.gitState.remoteUrl?` @ ${O.gitState.remoteUrl}`:"",!O.gitState.isHeadOnRemote&&", not synced",!O.gitState.isClean&&", has local changes"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Q.jsxDEV(K,{children:"- Current session transcript"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Q.jsxDEV(G,{marginTop:1,children:Q.jsxDEV(K,{wrap:"wrap",dimColor:!0,children:["We will use your feedback to debug related issues or to improve"," ","Claude Code's functionality (eg. to reduce the risk of bugs occurring in the future)."]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Q.jsxDEV(G,{marginTop:1,children:Q.jsxDEV(K,{children:["Press ",Q.jsxDEV(K,{bold:!0,children:"Enter"},void 0,!1,void 0,this)," to confirm and submit."]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X==="submitting"&&Q.jsxDEV(G,{flexDirection:"row",gap:1,children:Q.jsxDEV(K,{children:"Submitting report…"},void 0,!1,void 0,this)},void 0,!1,void 0,this),X==="done"&&Q.jsxDEV(G,{flexDirection:"column",children:[H?Q.jsxDEV(K,{color:"error",children:H},void 0,!1,void 0,this):Q.jsxDEV(K,{color:"success",children:R==="issue-draft"?"Your GitHub issue draft is ready.":"Thank you for your report!"},void 0,!1,void 0,this),m&&Q.jsxDEV(K,{dimColor:!0,children:["Feedback ID: ",m]},void 0,!0,void 0,this),E&&Q.jsxDEV(G,{marginTop:1,children:[Q.jsxDEV(K,{children:"Press "},void 0,!1,void 0,this),Q.jsxDEV(K,{bold:!0,children:"Enter "},void 0,!1,void 0,this),Q.jsxDEV(K,{children:"to open your browser and draft a GitHub issue, or any other key to close."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function XQ(W,q,Z,$){let N=h(q),X=h(Z),P=W?`- Feedback ID: ${W}
|
|
2
|
-
`:"",y=`**Bug Description**
|
|
3
|
-
${X}
|
|
4
|
-
|
|
5
|
-
**Environment Info**
|
|
6
|
-
- Platform: ${C.platform}
|
|
7
|
-
- Terminal: ${C.terminal}
|
|
8
|
-
- Version: 99.0.0
|
|
9
|
-
`+P+"\n**Errors**\n```json\n",p="\n```\n",J=D($),M=`${E}/new?title=${encodeURIComponent(N)}&labels=user-reported,bug&body=`,m=`
|
|
10
|
-
**Note:** Content was truncated.
|
|
11
|
-
`,v=encodeURIComponent(y),R=encodeURIComponent("\n```\n"),A=encodeURIComponent(`
|
|
12
|
-
**Note:** Content was truncated.
|
|
13
|
-
`),H=encodeURIComponent(J),L=a-M.length-v.length-R.length-A.length;if(L<=0){let k=encodeURIComponent("…"),l=50,F=a-M.length-k.length-A.length-50,_=y+J+"\n```\n",Y=encodeURIComponent(_);if(Y.length>F){Y=Y.slice(0,F);let z=Y.lastIndexOf("%");if(z>=Y.length-2)Y=Y.slice(0,z)}return M+Y+k+A}if(H.length<=L)return M+v+H+R;let O=encodeURIComponent("…"),g=50,U=H.slice(0,L-O.length-g),S=U.lastIndexOf("%");if(S>=U.length-2)U=U.slice(0,S);return M+v+U+O+R+A}async function YQ(W,q){try{let Z=await Lq({systemPrompt:_q(["Generate a concise, technical issue title (max 80 chars) for a public GitHub issue based on this bug report for Claude Code.","Claude Code is an agentic coding CLI based on the Anthropic API.","The title should:","- Include the type of issue [Bug] or [Feature Request] as the first thing in the title","- Be concise, specific and descriptive of the actual problem","- Use technical terminology appropriate for a software issue",'- For error messages, extract the key error (e.g., "Missing Tool Result Block" rather than the full message)',"- Be direct and clear for developers to understand the problem",'- If you cannot determine a clear issue, use "Bug Report: [brief description]"',"- Any LLM API errors are from the Anthropic API, not from any other model provider","Your response will be directly used as the title of the Github issue, and as such should not contain any other commentary or explaination",'Examples of good titles include: "[Bug] Auto-Compact triggers to soon", "[Bug] Anthropic API Error: Missing Tool Result Block", "[Bug] Error: Invalid Model Name for Opus"']),userPrompt:W,signal:q,options:{hasAppendSystemPrompt:!1,toolChoice:void 0,isNonInteractiveSession:!1,agents:[],querySource:"feedback",mcpTools:[]}}),$=Z.message.content[0]?.type==="text"?Z.message.content[0].text:"Bug Report";if(Oq($))return n(W);return $}catch(Z){return b(Z),n(W)}}function n(W){let q=W.split(`
|
|
14
|
-
`)[0]||"";if(q.length<=60&&q.length>5)return q;let Z=q.slice(0,60);if(q.length>60){let $=Z.lastIndexOf(" ");if($>30)Z=Z.slice(0,$);Z+="..."}return Z.length<10?"Bug Report":Z}function I(W){if(W instanceof Error){let q=Error(h(W.message));if(W.stack)q.stack=h(W.stack);b(q)}else{let q=h(String(W));b(Error(q))}}async function wQ(W,q){if(r())return{success:!1};try{if(Zq()!=="firstParty")return{success:!0,issueDraftOnly:!0};await $q();let Z=Hq();if(Z.error)return{success:!1};let $={"Content-Type":"application/json","User-Agent":wq(),...Z.headers},N=await V.post("https://api.anthropic.com/api/claude_cli_feedback",{content:D(W)},{headers:$,timeout:30000,signal:q});if(N.status===200){let X=N.data;if(X?.feedback_id)return{success:!0,feedbackId:X.feedback_id};return I(Error("Failed to submit feedback: request did not return feedback_id")),{success:!1}}return I(Error("Failed to submit feedback:"+N.status)),{success:!1}}catch(Z){if(V.isCancel(Z))return{success:!1};if(V.isAxiosError(Z)&&Z.response?.status===403){let $=Z.response.data;if($?.error?.type==="permission_error"&&$?.error?.message?.includes("Custom data retention settings"))return I(Error("Cannot submit feedback because custom data retention settings are enabled")),{success:!1,isZdrOrg:!0}}return I(Z),{success:!1}}}var w,Q,a=7250,E="";var Aq=o(()=>{fq();Sq();eq();gq();qQ();lq();pq();iq();QQ();dq();Eq();tq();Iq();xq();jq();aq();bq();uq();Vq();HQ();kq();nq();oq();sq();rq();cq();WQ();w=T(Dq(),1),Q=T(j(),1)});function OQ(W,q,Z,$="",N={}){return vq.jsxDEV(Mq,{abortSignal:q,messages:Z,initialDescription:$,onDone:W,backgroundTasks:N},void 0,!1,void 0,this)}async function pQ(W,q,Z){let $=Z||"";return OQ(W,q.abortController.signal,q.messages,$)}var vq;var _Q=o(()=>{Aq();vq=T(j(),1)});_Q();export{OQ as renderFeedbackComponent,pQ as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$W as e,XW as a,YW as b,ZW as c,_W as d,aX as f,bX as g,cX as h,dX as i}from"./cli-0.1.10-zeqsd250.mjs";import"./cli-0.1.10-hyxg32sc.mjs";i();export{c as shutdown1PEventLogging,b as shouldSampleEvent,h as reinitialize1PEventLoggingIfConfigChanged,f as logGrowthBookExperimentTo1P,e as logEventTo1P,d as is1PEventLoggingEnabled,g as initialize1PEventLogging,a as getEventSamplingConfig};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A8 as u,B8 as v,C8 as w,D8 as x,E8 as y,F8 as z,G8 as A,g8 as a,h8 as b,i8 as c,j8 as d,k8 as e,l8 as f,m8 as g,n8 as h,o8 as i,p8 as j,q8 as k,r8 as l,s8 as m,t8 as n,u8 as o,v8 as p,w8 as q,x8 as r,y8 as s,z8 as t}from"./cli-0.1.10-mt6tj76h.mjs";import"./cli-0.1.10-2mqddc7q.mjs";import"./cli-0.1.10-4n8p34vn.mjs";import"./cli-0.1.10-594z8zdp.mjs";import"./cli-0.1.10-a4p945wp.mjs";import"./cli-0.1.10-w1hqcxj1.mjs";import"./cli-0.1.10-nzxw7p2m.mjs";import"./cli-0.1.10-97rwbawt.mjs";import"./cli-0.1.10-f2jh6yv0.mjs";import"./cli-0.1.10-e4qewc1p.mjs";import"./cli-0.1.10-y1bkenem.mjs";import"./cli-0.1.10-pw67rrjr.mjs";import"./cli-0.1.10-mqgz2v10.mjs";import"./cli-0.1.10-akaq0zte.mjs";import"./cli-0.1.10-hyxg32sc.mjs";A();export{u as stashToCleanState,y as preserveGitStateForIssue,l as normalizeGitRemoteUrl,z as isCurrentDirectoryBareGitRepo,f as isAtGitRoot,o as hasUnpushedCommits,c as gitExe,t as getWorktreeCount,m as getRepoRemoteHash,k as getRemoteUrl,n as getIsHeadOnRemote,d as getIsGit,q as getIsClean,h as getHead,w as getGithubRepo,v as getGitState,e as getGitDir,s as getFileStatus,j as getDefaultBranch,r as getChangedFiles,i as getBranch,p as getAheadBehind,x as findRemoteBase,a as findGitRoot,b as findCanonicalGitRoot,g as dirIsInGitRepo};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f0 as a,g0 as b,h0 as c,i0 as d,j0 as e,k0 as f,l0 as g,m0 as h,n0 as i}from"./cli-0.1.10-6bn5q3gp.mjs";import"./cli-0.1.10-mt6tj76h.mjs";import"./cli-0.1.10-2mqddc7q.mjs";import"./cli-0.1.10-4n8p34vn.mjs";import"./cli-0.1.10-594z8zdp.mjs";import"./cli-0.1.10-a4p945wp.mjs";import"./cli-0.1.10-w1hqcxj1.mjs";import"./cli-0.1.10-nzxw7p2m.mjs";import"./cli-0.1.10-97rwbawt.mjs";import"./cli-0.1.10-f2jh6yv0.mjs";import"./cli-0.1.10-e4qewc1p.mjs";import"./cli-0.1.10-y1bkenem.mjs";import"./cli-0.1.10-pw67rrjr.mjs";import"./cli-0.1.10-mqgz2v10.mjs";import"./cli-0.1.10-akaq0zte.mjs";import"./cli-0.1.10-hyxg32sc.mjs";i();export{g as saveGithubModelsToken,f as refreshGithubModelsTokenIfNeeded,d as readGithubModelsTokenAsync,c as readGithubModelsToken,e as hydrateGithubModelsTokenFromSecureStorage,h as clearGithubModelsToken,a as GITHUB_MODELS_STORAGE_KEY,b as GITHUB_MODELS_HYDRATED_ENV_MARKER};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ea as o,Nea as a,Oea as b,Pea as c,Qea as d,Rea as e,Sea as f,Tea as g,Uea as h,Vea as i,Wea as j,Xea as k,Yea as l,Zea as m,_ea as n,afa as p,bfa as q,cfa as r,dfa as s,efa as t,ffa as u,gfa as v}from"./cli-0.1.10-w1hqcxj1.mjs";import"./cli-0.1.10-hyxg32sc.mjs";v();export{s as stopPeriodicGrowthBookRefresh,r as setupPeriodicGrowthBookRefresh,e as setGrowthBookConfigOverride,p as resetGrowthBook,q as refreshGrowthBookFeatures,o as refreshGrowthBookAfterAuthChange,a as onGrowthBookRefresh,h as initializeGrowthBook,b as hasGrowthBookEnvOverride,d as getGrowthBookConfigOverrides,i as getFeatureValue_DEPRECATED,k as getFeatureValue_CACHED_WITH_REFRESH,j as getFeatureValue_CACHED_MAY_BE_STALE,u as getDynamicConfig_CACHED_MAY_BE_STALE,t as getDynamicConfig_BLOCKS_ON_INIT,g as getApiBaseUrlHost,c as getAllGrowthBookFeatures,f as clearGrowthBookConfigOverrides,l as checkStatsigFeatureGate_CACHED_MAY_BE_STALE,m as checkSecurityRestrictionGate,n as checkGate_CACHED_OR_BLOCKING};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{D7 as D,J9 as v,N9 as F,y7 as I}from"./cli-0.1.10-mt6tj76h.mjs";import"./cli-0.1.10-2mqddc7q.mjs";import"./cli-0.1.10-4n8p34vn.mjs";import"./cli-0.1.10-594z8zdp.mjs";import"./cli-0.1.10-a4p945wp.mjs";import"./cli-0.1.10-w1hqcxj1.mjs";import"./cli-0.1.10-nzxw7p2m.mjs";import"./cli-0.1.10-97rwbawt.mjs";import{Yfa as M,Zfa as N}from"./cli-0.1.10-f2jh6yv0.mjs";import{Cga as H,Ega as E,Iga as P,Mga as G,Qga as f,Wga as _,Zga as j,vga as w}from"./cli-0.1.10-e4qewc1p.mjs";import"./cli-0.1.10-y1bkenem.mjs";import"./cli-0.1.10-pw67rrjr.mjs";import{Oma as k,Via as O}from"./cli-0.1.10-mqgz2v10.mjs";import"./cli-0.1.10-akaq0zte.mjs";import{Kna as U}from"./cli-0.1.10-hyxg32sc.mjs";import{createWriteStream as b,writeFileSync as h}from"fs";import{readdir as S,readFile as l,writeFile as c}from"fs/promises";import{join as R}from"path";import{pipeline as d}from"stream/promises";import{getHeapSnapshot as m,getHeapSpaceStatistics as u,getHeapStatistics as n}from"v8";async function g(z,A=0){let $=process.memoryUsage(),x=n(),Q=process.resourceUsage(),T=process.uptime(),X;try{X=u()}catch{}let Y=process._getActiveHandles().length,q=process._getActiveRequests().length,J;try{J=(await S("/proc/self/fd")).length}catch{}let V;try{V=await l("/proc/self/smaps_rollup","utf8")}catch{}let C=$.rss-$.heapUsed,B=T>0?$.rss/T:0,W=B*3600/1048576,K=[];if(x.number_of_detached_contexts>0)K.push(`${x.number_of_detached_contexts} detached context(s) - possible iframe/context leak`);if(Y>100)K.push(`${Y} active handles - possible timer/socket leak`);if(C>$.heapUsed)K.push("Native memory > heap - leak may be in native addons (node-pty, sharp, etc.)");if(W>100)K.push(`High memory growth rate: ${W.toFixed(1)} MB/hour`);if(J&&J>500)K.push(`${J} open file descriptors - possible file/socket leak`);return{timestamp:new Date().toISOString(),sessionId:O(),trigger:z,dumpNumber:A,uptimeSeconds:T,memoryUsage:{heapUsed:$.heapUsed,heapTotal:$.heapTotal,external:$.external,arrayBuffers:$.arrayBuffers,rss:$.rss},memoryGrowthRate:{bytesPerSecond:B,mbPerHour:W},v8HeapStats:{heapSizeLimit:x.heap_size_limit,mallocedMemory:x.malloced_memory,peakMallocedMemory:x.peak_malloced_memory,detachedContexts:x.number_of_detached_contexts,nativeContexts:x.number_of_native_contexts},v8HeapSpaces:X?.map((Z)=>({name:Z.space_name,size:Z.space_size,used:Z.space_used_size,available:Z.space_available_size})),resourceUsage:{maxRSS:Q.maxRSS*1024,userCPUTime:Q.userCPUTime,systemCPUTime:Q.systemCPUTime},activeHandles:Y,activeRequests:q,openFileDescriptors:J,analysis:{potentialLeaks:K,recommendation:K.length>0?`WARNING: ${K.length} potential leak indicator(s) found. See potentialLeaks array.`:"No obvious leak indicators. Check heap snapshot for retained objects."},smapsRollup:V,platform:process.platform,nodeVersion:process.version,ccVersion:"99.0.0"}}async function y(z="manual",A=0){try{let $=O(),x=await g(z,A),Q=(C)=>(C/1024/1024/1024).toFixed(3);_(`[HeapDump] Memory state:
|
|
2
|
-
heapUsed: ${Q(x.memoryUsage.heapUsed)} GB (in snapshot)
|
|
3
|
-
external: ${Q(x.memoryUsage.external)} GB (NOT in snapshot)
|
|
4
|
-
rss: ${Q(x.memoryUsage.rss)} GB (total process)
|
|
5
|
-
${x.analysis.recommendation}`);let T=v();await G().mkdir(T);let X=A>0?`-dump${A}`:"",Y=`${$}${X}.heapsnapshot`,q=`${$}${X}-diagnostics.json`,J=R(T,Y),V=R(T,q);return await c(V,E(x,null,2),{mode:384}),_(`[HeapDump] Diagnostics written to ${V}`),await o(J),_(`[HeapDump] Heap dump written to ${J}`),M("tengu_heap_dump",{triggerManual:z==="manual",triggerAuto15GB:z==="auto-1.5GB",dumpNumber:A,success:!0}),{success:!0,heapPath:J,diagPath:V}}catch($){let x=w($);return I(x),M("tengu_heap_dump",{triggerManual:z==="manual",triggerAuto15GB:z==="auto-1.5GB",dumpNumber:A,success:!1}),{success:!1,error:x.message}}}async function o(z){if(typeof Bun<"u"){h(z,Bun.generateHeapSnapshot("v8","arraybuffer"),{mode:384}),Bun.gc(!0);return}let A=b(z,{mode:384}),$=m();await d($,A)}var L=U(()=>{k();N();j();H();F();f();D();P()});async function X$(){let z=await y();if(!z.success)return{type:"text",value:`Failed to create heap dump: ${z.error}`};return{type:"text",value:`${z.heapPath}
|
|
6
|
-
${z.diagPath}`}}var p=U(()=>{L()});p();export{X$ as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$e as j,af as Qr}from"./cli-0.1.10-me1f9fvm.mjs";import{Of as vr,Pf as H,Rf as a,Sf as D}from"./cli-0.1.10-1faf50d6.mjs";import"./cli-0.1.10-ejtn8grm.mjs";import{cL as Yr,jv as b,kv as Ar,oL as d,pL as n}from"./cli-0.1.10-y9mkzh11.mjs";import"./cli-0.1.10-rr3xpxx1.mjs";import"./cli-0.1.10-xjpjs3y5.mjs";import"./cli-0.1.10-7d7j1qyf.mjs";import{vP as rr,wP as Zr}from"./cli-0.1.10-gdqbhzyr.mjs";import"./cli-0.1.10-fay16q4v.mjs";import"./cli-0.1.10-z4a84y0c.mjs";import"./cli-0.1.10-y3q22zvb.mjs";import"./cli-0.1.10-4a42q38j.mjs";import"./cli-0.1.10-x1qs5ctr.mjs";import"./cli-0.1.10-fhvyzg2m.mjs";import"./cli-0.1.10-72ece2yk.mjs";import"./cli-0.1.10-qf6ps98q.mjs";import"./cli-0.1.10-t8rnwwhq.mjs";import{WR as pr,XR as hr}from"./cli-0.1.10-wajz23ff.mjs";import"./cli-0.1.10-nfnje7ew.mjs";import"./cli-0.1.10-be8dvtg8.mjs";import"./cli-0.1.10-rvb440sp.mjs";import{AS as s,BS as Xr,OS as fr,QS as er,SS as Fr,VS as zr,YS as Mr,ZS as Lr}from"./cli-0.1.10-xzz1tdne.mjs";import{KU as W,MU as Q,QU as $,_S as u,pV as c}from"./cli-0.1.10-gms4557v.mjs";import"./cli-0.1.10-0n4bjm9z.mjs";import"./cli-0.1.10-4n8rvtk0.mjs";import"./cli-0.1.10-3q43p3wr.mjs";import"./cli-0.1.10-gccb3gw8.mjs";import"./cli-0.1.10-er8zk2kj.mjs";import"./cli-0.1.10-zeqsd250.mjs";import"./cli-0.1.10-z3f97n2d.mjs";import"./cli-0.1.10-b59j6twr.mjs";import{kX as k}from"./cli-0.1.10-v6gq9bxc.mjs";import"./cli-0.1.10-28zx3btb.mjs";import"./cli-0.1.10-p42gvsdg.mjs";import"./cli-0.1.10-d48qgcag.mjs";import"./cli-0.1.10-227xyew7.mjs";import"./cli-0.1.10-bqsa7eam.mjs";import"./cli-0.1.10-acy8ec7t.mjs";import"./cli-0.1.10-hbk3dhq8.mjs";import"./cli-0.1.10-w8np72sh.mjs";import"./cli-0.1.10-t1zd86kd.mjs";import"./cli-0.1.10-jjdvb4je.mjs";import"./cli-0.1.10-dx92txwb.mjs";import"./cli-0.1.10-f38gq0e0.mjs";import"./cli-0.1.10-2ahvbvra.mjs";import"./cli-0.1.10-73y7xdxy.mjs";import"./cli-0.1.10-vrd90nhd.mjs";import"./cli-0.1.10-y6a8q1t3.mjs";import"./cli-0.1.10-wjmtd9vm.mjs";import"./cli-0.1.10-g6rx9rdb.mjs";import"./cli-0.1.10-7ydarbm4.mjs";import"./cli-0.1.10-s7s5bgrq.mjs";import"./cli-0.1.10-y2byece1.mjs";import"./cli-0.1.10-fcarec7s.mjs";import"./cli-0.1.10-mt6tj76h.mjs";import"./cli-0.1.10-2mqddc7q.mjs";import"./cli-0.1.10-4n8p34vn.mjs";import"./cli-0.1.10-594z8zdp.mjs";import"./cli-0.1.10-a4p945wp.mjs";import"./cli-0.1.10-w1hqcxj1.mjs";import{Gfa as wr,ufa as i}from"./cli-0.1.10-nzxw7p2m.mjs";import"./cli-0.1.10-97rwbawt.mjs";import"./cli-0.1.10-f2jh6yv0.mjs";import"./cli-0.1.10-e4qewc1p.mjs";import"./cli-0.1.10-y1bkenem.mjs";import"./cli-0.1.10-pw67rrjr.mjs";import"./cli-0.1.10-mqgz2v10.mjs";import"./cli-0.1.10-akaq0zte.mjs";import{Gna as q,Kna as o}from"./cli-0.1.10-hyxg32sc.mjs";function C(F){let r=E.c(14),{commands:p,maxHeight:B,columns:_,title:U,onCancel:v,emptyMessage:I}=F,{headerFocused:h,focusHeader:M}=a(),w=Math.max(1,_-10),A=Math.max(1,Math.floor((B-10)/2)),z;if(r[0]!==p||r[1]!==w){let K=new Set,J;if(r[3]!==w)J=(Y)=>({label:`/${Y.name}`,value:Y.name,description:i(d(Y),w,!0)}),r[3]=w,r[4]=J;else J=r[4];z=p.filter((Y)=>{if(K.has(Y.name))return!1;return K.add(Y.name),!0}).sort(Jr).map(J),r[0]=p,r[1]=w,r[2]=z}else z=r[2];let X=z,R;if(r[5]!==p.length||r[6]!==I||r[7]!==M||r[8]!==h||r[9]!==v||r[10]!==X||r[11]!==U||r[12]!==A)R=e.jsxDEV(W,{flexDirection:"column",paddingY:1,children:p.length===0&&I?e.jsxDEV(Q,{dimColor:!0,children:I},void 0,!1,void 0,this):e.jsxDEV(e.Fragment,{children:[e.jsxDEV(Q,{children:U},void 0,!1,void 0,this),e.jsxDEV(W,{marginTop:1,children:e.jsxDEV(b,{options:X,visibleOptionCount:A,onCancel:v,disableSelection:!0,hideIndexes:!0,layout:"compact-vertical",onUpFromFirstItem:M,isDisabled:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),r[5]=p.length,r[6]=I,r[7]=M,r[8]=h,r[9]=v,r[10]=X,r[11]=U,r[12]=A,r[13]=R;else R=r[13];return R}function Jr(F,r){return F.name.localeCompare(r.name)}var E,e;var V=o(()=>{n();c();wr();Ar();D();E=q(u(),1),e=q(k(),1)});function m(){let F=x.c(2),r;if(F[0]===Symbol.for("react.memo_cache_sentinel"))r=G.jsxDEV(W,{children:G.jsxDEV(Q,{children:"Claude understands your codebase, makes edits with your permission, and executes commands — right from your terminal."},void 0,!1,void 0,this)},void 0,!1,void 0,this),F[0]=r;else r=F[0];let p;if(F[1]===Symbol.for("react.memo_cache_sentinel"))p=G.jsxDEV(W,{flexDirection:"column",paddingY:1,gap:1,children:[r,G.jsxDEV(W,{flexDirection:"column",children:[G.jsxDEV(W,{children:G.jsxDEV(Q,{bold:!0,children:"Shortcuts"},void 0,!1,void 0,this)},void 0,!1,void 0,this),G.jsxDEV(j,{gap:2,fixedWidth:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F[1]=p;else p=F[1];return p}var x,G;var t=o(()=>{c();Qr();x=q(u(),1),G=q(k(),1)});function Ur(F){let r=Rr.c(44),{onClose:p,commands:B}=F,{rows:_,columns:U}=s(),v=Math.floor(_/2),I=Fr(),h;if(r[0]!==p)h=()=>p("Help dialog dismissed",{display:"system"}),r[0]=p,r[1]=h;else h=r[1];let M=h,w;if(r[2]===Symbol.for("react.memo_cache_sentinel"))w={context:"Help"},r[2]=w;else w=r[2];fr("help:dismiss",M,w);let A=pr(M),z=rr("help:dismiss","Help","esc"),X,R,K;if(r[3]!==B){let N=Yr();R=B.filter((T)=>N.has(T.name)&&!T.isHidden);let Z;if(r[7]===Symbol.for("react.memo_cache_sentinel"))Z=[],r[7]=Z;else Z=r[7];X=Z,K=B.filter((T)=>!N.has(T.name)&&!T.isHidden),r[3]=B,r[4]=X,r[5]=R,r[6]=K}else X=r[4],R=r[5],K=r[6];let J=K,Y;if(r[8]===Symbol.for("react.memo_cache_sentinel"))Y=f.jsxDEV(H,{title:"general",children:f.jsxDEV(m,{},void 0,!1,void 0,this)},"general",!1,void 0,this),r[8]=Y;else Y=r[8];let L;if(r[9]!==X||r[10]!==R||r[11]!==M||r[12]!==U||r[13]!==J||r[14]!==v){L=[Y];let N;if(r[16]!==R||r[17]!==M||r[18]!==U||r[19]!==v)N=f.jsxDEV(H,{title:"commands",children:f.jsxDEV(C,{commands:R,maxHeight:v,columns:U,title:"Browse default commands:",onCancel:M},void 0,!1,void 0,this)},"commands",!1,void 0,this),r[16]=R,r[17]=M,r[18]=U,r[19]=v,r[20]=N;else N=r[20];L.push(N);let Z;if(r[21]!==M||r[22]!==U||r[23]!==J||r[24]!==v)Z=f.jsxDEV(H,{title:"custom-commands",children:f.jsxDEV(C,{commands:J,maxHeight:v,columns:U,title:"Browse custom commands:",emptyMessage:"No custom commands found",onCancel:M},void 0,!1,void 0,this)},"custom",!1,void 0,this),r[21]=M,r[22]=U,r[23]=J,r[24]=v,r[25]=Z;else Z=r[25];L.push(Z),r[9]=X,r[10]=R,r[11]=M,r[12]=U,r[13]=J,r[14]=v,r[15]=L}else L=r[15];let l=I?void 0:v,P;if(r[31]!==L)P=f.jsxDEV(vr,{title:"Claude Code v99.0.0",color:"professionalBlue",defaultTab:"general",children:L},void 0,!1,void 0,this),r[31]=L,r[32]=P;else P=r[32];let y;if(r[33]===Symbol.for("react.memo_cache_sentinel"))y=f.jsxDEV(W,{marginTop:1,children:f.jsxDEV(Q,{children:["For more help:"," ",f.jsxDEV($,{url:"https://code.claude.com/docs/en/overview"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),r[33]=y;else y=r[33];let O;if(r[34]!==z||r[35]!==A.keyName||r[36]!==A.pending)O=f.jsxDEV(W,{marginTop:1,children:f.jsxDEV(Q,{dimColor:!0,children:A.pending?f.jsxDEV(f.Fragment,{children:["Press ",A.keyName," again to exit"]},void 0,!0,void 0,this):f.jsxDEV(Q,{italic:!0,children:[z," to cancel"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),r[34]=z,r[35]=A.keyName,r[36]=A.pending,r[37]=O;else O=r[37];let g;if(r[38]!==P||r[39]!==O)g=f.jsxDEV(Mr,{color:"professionalBlue",children:[P,y,O]},void 0,!0,void 0,this),r[38]=P,r[39]=O,r[40]=g;else g=r[40];let S;if(r[41]!==l||r[42]!==g)S=f.jsxDEV(W,{flexDirection:"column",height:l,children:g},void 0,!1,void 0,this),r[41]=l,r[42]=g,r[43]=S;else S=r[43];return S}var Rr,f;var Wr=o(()=>{hr();Zr();n();zr();Xr();c();er();Lr();D();V();t();Rr=q(u(),1),f=q(k(),1)});var qr,Er=async(F,{options:{commands:r}})=>{return qr.jsxDEV(Ur,{commands:r,onClose:F},void 0,!1,void 0,this)};var kr=o(()=>{Wr();qr=q(k(),1)});kr();export{Er as call};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Hu as a,Ku as Ej,Vs as t,jt as Cj}from"./cli-0.1.10-y9mkzh11.mjs";import"./cli-0.1.10-rr3xpxx1.mjs";import"./cli-0.1.10-xjpjs3y5.mjs";import"./cli-0.1.10-7d7j1qyf.mjs";import"./cli-0.1.10-gdqbhzyr.mjs";import"./cli-0.1.10-fay16q4v.mjs";import{DQ as Kj,oQ as jj}from"./cli-0.1.10-z4a84y0c.mjs";import"./cli-0.1.10-y3q22zvb.mjs";import"./cli-0.1.10-4a42q38j.mjs";import"./cli-0.1.10-x1qs5ctr.mjs";import{aR as d,bR as n,dR as e,kR as Wj}from"./cli-0.1.10-fhvyzg2m.mjs";import"./cli-0.1.10-72ece2yk.mjs";import"./cli-0.1.10-qf6ps98q.mjs";import"./cli-0.1.10-t8rnwwhq.mjs";import"./cli-0.1.10-wajz23ff.mjs";import"./cli-0.1.10-nfnje7ew.mjs";import"./cli-0.1.10-be8dvtg8.mjs";import"./cli-0.1.10-rvb440sp.mjs";import"./cli-0.1.10-xzz1tdne.mjs";import"./cli-0.1.10-gms4557v.mjs";import"./cli-0.1.10-0n4bjm9z.mjs";import"./cli-0.1.10-4n8rvtk0.mjs";import"./cli-0.1.10-3q43p3wr.mjs";import"./cli-0.1.10-gccb3gw8.mjs";import"./cli-0.1.10-er8zk2kj.mjs";import"./cli-0.1.10-zeqsd250.mjs";import"./cli-0.1.10-z3f97n2d.mjs";import"./cli-0.1.10-b59j6twr.mjs";import"./cli-0.1.10-v6gq9bxc.mjs";import"./cli-0.1.10-28zx3btb.mjs";import"./cli-0.1.10-p42gvsdg.mjs";import"./cli-0.1.10-d48qgcag.mjs";import"./cli-0.1.10-227xyew7.mjs";import"./cli-0.1.10-bqsa7eam.mjs";import{YX as M,ZX as kj}from"./cli-0.1.10-acy8ec7t.mjs";import"./cli-0.1.10-hbk3dhq8.mjs";import"./cli-0.1.10-w8np72sh.mjs";import"./cli-0.1.10-t1zd86kd.mjs";import"./cli-0.1.10-jjdvb4je.mjs";import"./cli-0.1.10-dx92txwb.mjs";import"./cli-0.1.10-f38gq0e0.mjs";import"./cli-0.1.10-2ahvbvra.mjs";import"./cli-0.1.10-73y7xdxy.mjs";import"./cli-0.1.10-vrd90nhd.mjs";import"./cli-0.1.10-y6a8q1t3.mjs";import"./cli-0.1.10-wjmtd9vm.mjs";import"./cli-0.1.10-g6rx9rdb.mjs";import"./cli-0.1.10-7ydarbm4.mjs";import"./cli-0.1.10-s7s5bgrq.mjs";import"./cli-0.1.10-y2byece1.mjs";import"./cli-0.1.10-fcarec7s.mjs";import{Q9 as r,V9 as bj,Y_ as o,__ as Bj,d9 as i,e9 as _j,h7 as c,j7 as Yj}from"./cli-0.1.10-mt6tj76h.mjs";import{Oda as H,Qda as Zj}from"./cli-0.1.10-2mqddc7q.mjs";import"./cli-0.1.10-4n8p34vn.mjs";import"./cli-0.1.10-594z8zdp.mjs";import"./cli-0.1.10-a4p945wp.mjs";import"./cli-0.1.10-w1hqcxj1.mjs";import"./cli-0.1.10-nzxw7p2m.mjs";import"./cli-0.1.10-97rwbawt.mjs";import{Yfa as K,Zfa as $j}from"./cli-0.1.10-f2jh6yv0.mjs";import{Cga as Vj,Wga as w,Zga as Xj,xga as l}from"./cli-0.1.10-e4qewc1p.mjs";import{bha as s,lha as Tj}from"./cli-0.1.10-y1bkenem.mjs";import"./cli-0.1.10-pw67rrjr.mjs";import{$ia as u,Oma as Qj}from"./cli-0.1.10-mqgz2v10.mjs";import"./cli-0.1.10-akaq0zte.mjs";import{Kna as Pj,Lna as I}from"./cli-0.1.10-hyxg32sc.mjs";import{createHash as qj}from"crypto";import{statSync as Mj}from"fs";import{join as Aj,resolve as Sj}from"path";function V(j){return j}function m(j){return structuredClone(j)}function k(){return{version:1,enabled:!1,maxChainDepth:Fj,defaultCooldownMs:Gj,defaultDedupWindowMs:Hj,rules:[]}}function gj(){let j=process.env[yj];if(j===void 0)return!1;return s(j)}function uj(j){let q=j||process.env[Dj];if(q)return Sj(v(),q);return Aj(v(),Ij)}function v(){try{return u()}catch{return process.cwd()}}function sj(j){if(j.trigger.outcomes)return j.trigger.outcomes;if(j.trigger.outcome)return[j.trigger.outcome];return}function _(j){return j??{}}function Y(j,q){for(let G of q){let A=j[G];if(typeof A==="string"&&A.length>0)return A}return}function lj(j,q){let G=q.split(".").filter(Boolean),A=j;for(let F of G){if(typeof A!=="object"||A===null)return;A=A[F]}return A}function cj(j,q){if(!j)return!0;let G=_(q.payload);if(j.toolNames&&j.toolNames.length>0){let A=Y(G,["tool_name","toolName"]);if(!A||!j.toolNames.includes(A))return!1}if(j.taskStatuses&&j.taskStatuses.length>0){let A=Y(G,["task_status","taskStatus","status"]);if(!A||!j.taskStatuses.includes(A))return!1}if(j.errorIncludes&&j.errorIncludes.length>0){let A=Y(G,["error","reason","message"])??"";if(!j.errorIncludes.some((J)=>A.toLowerCase().includes(J.toLowerCase())))return!1}if(j.eventFieldEquals){for(let[A,F]of Object.entries(j.eventFieldEquals))if(lj(G,A)!==F)return!1}return!0}function ij(j,q){let G=[];for(let A of j){if(A.enabled===!1)continue;if(A.trigger.event!==q.eventName)continue;let F=sj(A);if(F&&F.length>0&&!F.includes(q.outcome))continue;if(!cj(A.condition,q))continue;G.push({rule:A})}return G}function rj(j){let q=uj(j?.pathOverride);if(!gj())return{config:k(),path:q,exists:!1,fromCache:!1};let G;try{let P=Mj(q);G={mtimeMs:P.mtimeMs,size:P.size}}catch(P){if(l(P)!=="ENOENT")w(`[hook-chains] Failed to stat config at ${q}: ${String(P)}`);else if(Z?.path===q)Z=null;return{config:k(),path:q,exists:!1,fromCache:!1}}if(!j?.forceReload&&Z&&Z.path===q&&Z.mtimeMs===G.mtimeMs&&Z.size===G.size&&Date.now()-Z.loadedAtMs<=Uj)return{config:m(Z.config),path:q,exists:!0,fromCache:!0};let A;try{A=i(q)}catch(P){return{config:k(),path:q,exists:!0,fromCache:!1,error:`Failed to read hook chain config file: ${String(P)}`}}let F=r(A,!1);if(!F)return{config:k(),path:q,exists:!0,fromCache:!1,error:"Invalid JSON in hook chain config file."};let J=vj.safeParse(F);if(!J.success){let P=J.error.issues.map((Q)=>Q.message).join("; ");return{config:k(),path:q,exists:!0,fromCache:!1,error:P}}let O="hookChains"in J.data?J.data.hookChains:J.data;return Z={path:q,mtimeMs:G.mtimeMs,size:G.size,loadedAtMs:Date.now(),config:O},{config:m(O),path:q,exists:!0,fromCache:!1}}function f(j,q){if(j===null||j===void 0)return j;if(typeof j==="string"||typeof j==="number"||typeof j==="boolean")return j;if(Array.isArray(j))return j.map((G)=>f(G,q));if(typeof j==="object"){if(q.has(j))return"[Circular]";q.add(j);let G=j,A={};for(let F of Object.keys(G).sort())A[F]=f(G[F],q);return A}return String(j)}function U(j){try{return JSON.stringify(f(j,new WeakSet))}catch{return"[unserializable]"}}function oj(j){let q=_(j.payload),G={eventName:j.eventName,outcome:j.outcome,taskId:Y(q,["task_id","taskId"]),toolUseId:Y(q,["tool_use_id","toolUseId"]),sessionId:Y(q,["session_id","sessionId"]),error:Y(q,["error","reason"])};return qj("sha1").update(U({coreIdentity:G,payload:q})).digest("hex")}function dj(j){for(let[q,G]of B.entries())if(G<=j)B.delete(q);for(let[q,G]of b.entries())if(G<=j)b.delete(q);g(B,fj),g(b,zj)}function g(j,q){if(j.size<=q)return;let G=[...j.entries()].sort((F,J)=>F[1]-J[1]),A=j.size-q;for(let F=0;F<A;F++){let J=G[F];if(!J)break;j.delete(J[0])}}function p(j,q){return j.replace(/\$\{([A-Z0-9_]+)\}|\$([A-Z0-9_]+)/g,(G,A,F)=>{return q[A||F]??""})}function nj(j,q,G){let A=_(G.payload),F=U(A),J=Y(A,["task_subject","taskSubject"]),O=Y(A,["task_description","taskDescription"]),P=Y(A,["error","reason"]),Q={EVENT_NAME:G.eventName,OUTCOME:G.outcome,RULE_ID:q.id,TASK_SUBJECT:J??"",TASK_DESCRIPTION:O??"",ERROR:P??"",PAYLOAD_JSON:F};if(j.promptTemplate)return p(j.promptTemplate,Q);let X=["You are a fallback recovery agent triggered by a Self-Healing Hook Chain rule.",`Event: ${G.eventName}`,`Outcome: ${G.outcome}`,`Rule ID: ${q.id}`];if(J)X.push(`Task subject: ${J}`);if(O)X.push(`Task description: ${O}`);if(P)X.push(`Failure details: ${P}`);return X.push("Goal: perform a minimal, safe recovery attempt and report what changed, what failed, and recommended next steps."),X.push(`Failure payload JSON: ${F}`),X.join(`
|
|
2
|
-
`)}function ej(j,q,G){let A=_(G.payload),F=U(A),J={EVENT_NAME:G.eventName,OUTCOME:G.outcome,RULE_ID:q.id,PAYLOAD_JSON:F,ERROR:Y(A,["error","reason"])??"",TASK_SUBJECT:Y(A,["task_subject","taskSubject"])??"",TASK_ID:Y(A,["task_id","taskId"])??""},O=j.summary?p(j.summary,J):`Hook chain ${q.id} triggered (${G.eventName}/${G.outcome})`,P=j.messageTemplate?p(j.messageTemplate,J):["Self-healing hook chain triggered.",`Rule: ${q.id}`,`Event: ${G.eventName}`,`Outcome: ${G.outcome}`,`Error: ${J.ERROR||"n/a"}`,`Task: ${J.TASK_SUBJECT||J.TASK_ID||"n/a"}`,`Payload: ${F}`].join(`
|
|
3
|
-
`);return{summary:O,body:P}}async function tj(j){let{action:q,rule:G,event:A,runtime:F}=j;if(F.signal?.aborted)return{status:"skipped",reason:"aborted"};if(!F.onSpawnFallbackAgent)return{status:"failed",reason:"No fallback agent launcher is registered in runtime context"};let J=_(A.payload),O=q.description??`Fallback recovery: ${A.eventName} (${A.outcome})`,P={ruleId:G.id,eventName:A.eventName,outcome:A.outcome,description:O,prompt:nj(q,G,A),agentType:q.agentType,model:q.model,runInBackground:!0,payload:J,signal:F.signal};try{let Q=await F.onSpawnFallbackAgent(P);if(!Q.launched)return{status:"failed",reason:Q.reason??"Fallback launcher declined to start an agent"};return{status:"executed",detail:Q.agentId?`Fallback agent launched: ${Q.agentId}`:"Fallback agent launched"}}catch(Q){return{status:"failed",reason:`Fallback agent launch failed: ${String(Q)}`}}}function aj(j,q,G){if(j.teamName)return j.teamName;if(q.teamName)return q.teamName;let A=_(G.payload),F=Y(A,["team_name","teamName"]);if(F)return F;return n()}function jq(j,q,G){if(j&&j.length>0){if(j.includes("*"))return q.filter((F)=>F!==G);let A=new Set(q);return j.filter((F)=>A.has(F))}return q.filter((A)=>A!==G)}async function qq(j){let{action:q,rule:G,event:A,runtime:F}=j;if(F.signal?.aborted)return{status:"skipped",reason:"aborted"};let J=_(A.payload),O=aj(q,F,A);if(!O)return{status:"skipped",reason:"No team context is available for notify_team action"};let P=F.senderName??d()??"self-healing-mesh",Q=F.senderColor??e(),{summary:X,body:N}=ej(q,G,A),S=await jj(O);if(!S)return{status:"skipped",reason:`Team file not found for team ${O}`};let W=S.members.map((L)=>L.name),T=jq(q.recipients,W,P);if(T.length===0)return{status:"skipped",reason:"No eligible recipients for notify_team action"};if(F.onNotifyTeam)try{let L=await F.onNotifyTeam({ruleId:G.id,eventName:A.eventName,outcome:A.outcome,teamName:O,recipients:T,summary:X,message:N,payload:J,signal:F.signal});if(!L.sent)return{status:"skipped",reason:L.reason??"notify_team callback declined to send"};return{status:"executed",detail:`Team notification sent to ${L.recipientCount??T.length} recipient(s)`}}catch(L){return{status:"failed",reason:`notify_team callback failed: ${String(L)}`}}for(let L of T)await t(L,{from:P,text:N,summary:X,color:Q,timestamp:new Date().toISOString()},O);return{status:"executed",detail:`Team notification sent to ${T.length} recipient(s)`}}async function Aq(j){let{action:q,rule:G,event:A,runtime:F}=j;if(F.signal?.aborted)return{status:"skipped",reason:"aborted"};if(!a("allow_remote_sessions"))return{status:"skipped",reason:"Remote sessions are blocked by policy"};if(F.onWarmRemoteCapacity)try{let J=await F.onWarmRemoteCapacity({ruleId:G.id,eventName:A.eventName,outcome:A.outcome,payload:_(A.payload),signal:F.signal,createDefaultEnvironmentIfMissing:q.createDefaultEnvironmentIfMissing});if(!J.warmed)return{status:"skipped",reason:J.reason??"Warm remote callback declined"};return{status:"executed",detail:J.environmentId?`Remote capacity warmed for environment ${J.environmentId}`:"Remote capacity warm-up completed"}}catch(J){return{status:"failed",reason:`warm_remote_capacity callback failed: ${String(J)}`}}try{let{getReplBridgeHandle:J}=await import("./replBridgeHandle-0.1.10-34e8jwrt.mjs");if(!J())return{status:"skipped",reason:"Bridge is not active; warm_remote_capacity is a safe no-op"}}catch{return{status:"skipped",reason:"Bridge status unavailable; warm_remote_capacity skipped"}}try{let[{checkBackgroundRemoteSessionEligibility:J},{getEnvironmentSelectionInfo:O},P]=await Promise.all([import("./remoteSession-0.1.10-xx5eng27.mjs"),import("./environmentSelection-0.1.10-ydckkyqx.mjs"),import("./environments-0.1.10-7dht1svt.mjs")]),Q=await J({skipBundle:!0});if(Q.length>0)return{status:"skipped",reason:`Remote warm-up preconditions failed: ${Q.map((N)=>N.type).join(", ")}`};let X=await O();if(!X.selectedEnvironment&&q.createDefaultEnvironmentIfMissing===!0){let N=await P.createDefaultCloudEnvironment("Claudio Self-Healing Warmup");X={availableEnvironments:[N],selectedEnvironment:N,selectedEnvironmentSource:null}}if(!X.selectedEnvironment)return{status:"skipped",reason:"No eligible remote environment available for warm-up"};return await P.fetchEnvironments(),{status:"executed",detail:`Remote warm-up checked environment ${X.selectedEnvironment.environment_id}`}}catch(J){return{status:"failed",reason:`Remote warm-up failed: ${String(J)}`}}}function Fq(j){K("chain_rule_matched",{rule_id:V(j.ruleId),hook_event_name:V(j.eventName),outcome:V(j.outcome),chain_depth:j.chainDepth}),M("chain_rule_matched",{rule_id:j.ruleId,hook_event_name:j.eventName,outcome:j.outcome,chain_depth:String(j.chainDepth)})}function Gq(j){K("chain_action_executed",{rule_id:V(j.ruleId),action_type:V(j.actionType),action_id:j.actionId?V(j.actionId):void 0,hook_event_name:V(j.eventName),outcome:V(j.outcome)}),M("chain_action_executed",{rule_id:j.ruleId,action_type:j.actionType,action_id:j.actionId,hook_event_name:j.eventName,outcome:j.outcome,detail:j.detail})}function C(j){let q=Jj(j.reason);K("chain_action_skipped",{rule_id:V(j.ruleId),action_type:V(j.actionType),action_id:j.actionId?V(j.actionId):void 0,hook_event_name:V(j.eventName),outcome:V(j.outcome),reason_category:V(q)}),M("chain_action_skipped",{rule_id:j.ruleId,action_type:j.actionType,action_id:j.actionId,hook_event_name:j.eventName,outcome:j.outcome,reason:j.reason})}function Hq(j){let q=Jj(j.reason);K("chain_action_failed",{rule_id:V(j.ruleId),action_type:V(j.actionType),action_id:j.actionId?V(j.actionId):void 0,hook_event_name:V(j.eventName),outcome:V(j.outcome),reason_category:V(q)}),M("chain_action_failed",{rule_id:j.ruleId,action_type:j.actionType,action_id:j.actionId,hook_event_name:j.eventName,outcome:j.outcome,reason:j.reason})}async function Jq(j){let{action:q}=j;if(q.enabled===!1)return{status:"skipped",reason:"action disabled"};switch(q.type){case"spawn_fallback_agent":return tj({action:q,rule:j.rule,event:j.event,runtime:j.runtime});case"notify_team":return qq({action:q,rule:j.rule,event:j.event,runtime:j.runtime});case"warm_remote_capacity":return Aq({action:q,rule:j.rule,event:j.event,runtime:j.runtime})}}function Lq(j,q){return j.cooldownMs??q.defaultCooldownMs}function Nq(j,q,G){return j.dedupWindowMs??q.dedupWindowMs??G.defaultDedupWindowMs}function Oq(j){let{rule:q,action:G,actionIndex:A,event:F,runtime:J}=j,O={ruleId:q.id,actionId:G.id??`${G.type}:${A}`,eventIdentity:oj(F),scope:J.dedupScope??""};return qj("sha1").update(U(O)).digest("hex")}async function yq(j){let q=j.runtime??{},G=rj({pathOverride:j.configPathOverride,forceReload:j.forceReloadConfig}),A=G.config,F={...j.event,payload:_(j.event.payload),occurredAt:j.event.occurredAt??Date.now()};if(!A.enabled||A.rules.length===0)return{enabled:!1,configPath:G.path,fromCache:G.fromCache,evaluatedRuleCount:0,matchedRuleIds:[],actionResults:[]};let J=q.chainDepth??0;if(J>=A.maxChainDepth)return{enabled:!0,configPath:G.path,fromCache:G.fromCache,evaluatedRuleCount:0,matchedRuleIds:[],actionResults:[]};let O=Date.now();dj(O);let P=ij(A.rules,F),Q=[];for(let X of P){let{rule:N}=X;if(q.signal?.aborted)break;if(N.maxDepth!==void 0&&J>=N.maxDepth){for(let T of N.actions){let L={ruleId:N.id,actionType:T.type,actionId:T.id,status:"skipped",reason:`rule maxDepth reached (${J}/${N.maxDepth})`};Q.push(L),C({ruleId:N.id,actionType:T.type,actionId:T.id,eventName:F.eventName,outcome:F.outcome,reason:L.reason??"rule depth guard"})}continue}let S=Lq(N,A),W=b.get(N.id);if(W&&W>O){for(let T of N.actions){let L=`rule cooldown active for ${W-O}ms`,D={ruleId:N.id,actionType:T.type,actionId:T.id,status:"skipped",reason:L};Q.push(D),C({ruleId:N.id,actionType:T.type,actionId:T.id,eventName:F.eventName,outcome:F.outcome,reason:L})}continue}b.set(N.id,O+S),Fq({ruleId:N.id,eventName:F.eventName,outcome:F.outcome,chainDepth:J});for(let T=0;T<N.actions.length;T++){let L=N.actions[T];if(!L)continue;if(q.signal?.aborted){let y={ruleId:N.id,actionType:L.type,actionId:L.id,status:"skipped",reason:"aborted"};Q.push(y),C({ruleId:N.id,actionType:L.type,actionId:L.id,eventName:F.eventName,outcome:F.outcome,reason:"aborted"});continue}let D=Oq({rule:N,action:L,actionIndex:T,event:F,runtime:q}),Lj=Nq(L,N,A),z=B.get(D);if(z&&z>O){let y=`dedup window active for ${z-O}ms`,Oj={ruleId:N.id,actionType:L.type,actionId:L.id,status:"skipped",reason:y};Q.push(Oj),C({ruleId:N.id,actionType:L.type,actionId:L.id,eventName:F.eventName,outcome:F.outcome,reason:y});continue}B.set(D,O+Lj);let $=await Jq({action:L,rule:N,event:F,runtime:q}),Nj={ruleId:N.id,actionType:L.type,actionId:L.id,status:$.status,reason:$.reason,detail:$.detail};if(Q.push(Nj),$.status==="executed")Gq({ruleId:N.id,actionType:L.type,actionId:L.id,eventName:F.eventName,outcome:F.outcome,detail:$.detail});else if($.status==="skipped")C({ruleId:N.id,actionType:L.type,actionId:L.id,eventName:F.eventName,outcome:F.outcome,reason:$.reason??"skipped"});else Hq({ruleId:N.id,actionType:L.type,actionId:L.id,eventName:F.eventName,outcome:F.outcome,reason:$.reason??"failed"})}}if(c("info","hook_chains_dispatch",{event_name:F.eventName,outcome:F.outcome,matched_rules:P.length,action_results:Q.length}),G.error)w(`[hook-chains] Config validation error at ${G.path}: ${G.error}`);return{enabled:!0,configPath:G.path,fromCache:G.fromCache,evaluatedRuleCount:A.rules.length,matchedRuleIds:P.map((X)=>X.rule.id),actionResults:Q}}function Iq(){Z=null,b.clear(),B.clear()}function Jj(j){let q=j.toLowerCase();if(q.includes("aborted"))return"aborted";if(q.includes("cooldown"))return"cooldown";if(q.includes("dedup"))return"dedup";if(q.includes("policy"))return"policy";if(q.includes("context"))return"context_missing";if(q.includes("precondition"))return"precondition";if(q.includes("disabled"))return"disabled";return"other"}var Dj="CLAUDE_CODE_HOOK_CHAINS_CONFIG_PATH",yj="CLAUDE_CODE_ENABLE_HOOK_CHAINS",Ij,Fj=2,Gj=30000,Hj=30000,E=86400000,Uj=300000,zj=5000,fj=20000,h,pj,x,wj,xj,hj,Rj,mj,R,vj,Z=null,b,B;var Pq=Pj(()=>{Bj();Qj();$j();Ej();Xj();Yj();Tj();Vj();_j();bj();Kj();Wj();Cj();kj();Zj();Ij=Aj(".claudio","hook-chains.json"),h=H.enum(["success","failed","timeout","unknown"]),pj=H.object({toolNames:H.array(H.string().min(1)).optional(),taskStatuses:H.array(H.string().min(1)).optional(),errorIncludes:H.array(H.string().min(1)).optional(),eventFieldEquals:H.record(H.string(),H.union([H.string(),H.number(),H.boolean()])).optional()}).optional(),x=H.object({id:H.string().min(1).optional(),enabled:H.boolean().default(!0).optional(),dedupWindowMs:H.number().int().min(0).max(E).optional()}),wj=x.extend({type:H.literal("spawn_fallback_agent"),description:H.string().min(1).optional(),promptTemplate:H.string().min(1).optional(),agentType:H.string().min(1).optional(),model:H.string().min(1).optional()}),xj=x.extend({type:H.literal("notify_team"),teamName:H.string().min(1).optional(),recipients:H.array(H.string().min(1)).optional(),summary:H.string().min(1).optional(),messageTemplate:H.string().min(1).optional()}),hj=x.extend({type:H.literal("warm_remote_capacity"),createDefaultEnvironmentIfMissing:H.boolean().optional()}),Rj=H.discriminatedUnion("type",[wj,xj,hj]),mj=H.object({id:H.string().min(1),enabled:H.boolean().default(!0).optional(),trigger:H.object({event:H.enum(o),outcome:h.optional(),outcomes:H.array(h).nonempty().optional()}).superRefine((j,q)=>{if(j.outcome&&j.outcomes)q.addIssue({code:"custom",message:"Use either trigger.outcome or trigger.outcomes, not both.",path:["outcomes"]})}),condition:pj,cooldownMs:H.number().int().min(0).max(E).optional(),dedupWindowMs:H.number().int().min(0).max(E).optional(),maxDepth:H.number().int().min(0).max(10).optional(),actions:H.array(Rj).min(1)}),R=H.object({version:H.literal(1).default(1),enabled:H.boolean().default(!0),maxChainDepth:H.number().int().min(1).max(10).default(Fj),defaultCooldownMs:H.number().int().min(0).max(E).default(Gj),defaultDedupWindowMs:H.number().int().min(0).max(E).default(Hj),rules:H.array(mj).default([])}),vj=H.union([H.object({hookChains:R}),R]),b=new Map,B=new Map});Pq();export{Iq as resetHookChainsRuntimeStateForTests,rj as loadHookChainsConfig,Aq as executeWarmRemoteCapacityAction,tj as executeSpawnFallbackAgentAction,qq as executeNotifyTeamAction,ij as evaluateHookChainRules,Fq as emitHookChainRuleMatched,C as emitHookChainActionSkipped,Hq as emitHookChainActionFailed,Gq as emitHookChainActionExecuted,yq as dispatchHookChainsForEvent};
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import{KC as IJ,KJ as JJ,MC as DJ,MJ as OJ,NJ as _J,jv as c,ki as qJ,kv as Vq,li as BJ,nr as hq,or as Mq,pr as sq,qr as yq,rr as cq,sr as Dq,tr as Kq}from"./cli-0.1.10-y9mkzh11.mjs";import"./cli-0.1.10-rr3xpxx1.mjs";import"./cli-0.1.10-xjpjs3y5.mjs";import"./cli-0.1.10-7d7j1qyf.mjs";import{FP as u,GP as o}from"./cli-0.1.10-gdqbhzyr.mjs";import"./cli-0.1.10-fay16q4v.mjs";import"./cli-0.1.10-z4a84y0c.mjs";import"./cli-0.1.10-y3q22zvb.mjs";import"./cli-0.1.10-4a42q38j.mjs";import"./cli-0.1.10-x1qs5ctr.mjs";import"./cli-0.1.10-fhvyzg2m.mjs";import"./cli-0.1.10-72ece2yk.mjs";import"./cli-0.1.10-qf6ps98q.mjs";import"./cli-0.1.10-t8rnwwhq.mjs";import"./cli-0.1.10-wajz23ff.mjs";import"./cli-0.1.10-nfnje7ew.mjs";import"./cli-0.1.10-be8dvtg8.mjs";import"./cli-0.1.10-rvb440sp.mjs";import{OS as e,QS as CJ}from"./cli-0.1.10-xzz1tdne.mjs";import{KU as _,MU as Y,QU as kq,_S as $,pV as s}from"./cli-0.1.10-gms4557v.mjs";import"./cli-0.1.10-0n4bjm9z.mjs";import"./cli-0.1.10-4n8rvtk0.mjs";import"./cli-0.1.10-3q43p3wr.mjs";import"./cli-0.1.10-gccb3gw8.mjs";import"./cli-0.1.10-er8zk2kj.mjs";import"./cli-0.1.10-zeqsd250.mjs";import"./cli-0.1.10-z3f97n2d.mjs";import"./cli-0.1.10-b59j6twr.mjs";import{kX as D}from"./cli-0.1.10-v6gq9bxc.mjs";import{lX as TJ}from"./cli-0.1.10-28zx3btb.mjs";import"./cli-0.1.10-p42gvsdg.mjs";import"./cli-0.1.10-d48qgcag.mjs";import"./cli-0.1.10-227xyew7.mjs";import"./cli-0.1.10-bqsa7eam.mjs";import"./cli-0.1.10-acy8ec7t.mjs";import"./cli-0.1.10-hbk3dhq8.mjs";import"./cli-0.1.10-w8np72sh.mjs";import"./cli-0.1.10-t1zd86kd.mjs";import"./cli-0.1.10-jjdvb4je.mjs";import"./cli-0.1.10-dx92txwb.mjs";import"./cli-0.1.10-f38gq0e0.mjs";import"./cli-0.1.10-2ahvbvra.mjs";import"./cli-0.1.10-73y7xdxy.mjs";import"./cli-0.1.10-vrd90nhd.mjs";import"./cli-0.1.10-y6a8q1t3.mjs";import"./cli-0.1.10-wjmtd9vm.mjs";import"./cli-0.1.10-g6rx9rdb.mjs";import"./cli-0.1.10-7ydarbm4.mjs";import"./cli-0.1.10-s7s5bgrq.mjs";import"./cli-0.1.10-y2byece1.mjs";import"./cli-0.1.10-fcarec7s.mjs";import{Aaa as Fq,E7 as Hq,F7 as wJ,Jaa as bJ,R$ as i,Z$ as pq,vaa as t}from"./cli-0.1.10-mt6tj76h.mjs";import"./cli-0.1.10-2mqddc7q.mjs";import"./cli-0.1.10-4n8p34vn.mjs";import"./cli-0.1.10-594z8zdp.mjs";import"./cli-0.1.10-a4p945wp.mjs";import"./cli-0.1.10-w1hqcxj1.mjs";import"./cli-0.1.10-nzxw7p2m.mjs";import"./cli-0.1.10-97rwbawt.mjs";import{Yfa as ZJ,Zfa as MJ}from"./cli-0.1.10-f2jh6yv0.mjs";import"./cli-0.1.10-e4qewc1p.mjs";import"./cli-0.1.10-y1bkenem.mjs";import"./cli-0.1.10-pw67rrjr.mjs";import{Oma as WJ,Yla as jq}from"./cli-0.1.10-mqgz2v10.mjs";import{lna as gq,mna as UJ}from"./cli-0.1.10-akaq0zte.mjs";import{Gna as V,Kna as m}from"./cli-0.1.10-hyxg32sc.mjs";function uq(O,q){let Q={PreToolUse:{},PostToolUse:{},PostToolUseFailure:{},PermissionDenied:{},Notification:{},UserPromptSubmit:{},SessionStart:{},SessionEnd:{},Stop:{},StopFailure:{},SubagentStart:{},SubagentStop:{},PreCompact:{},PostCompact:{},PermissionRequest:{},Setup:{},TeammateIdle:{},TaskCreated:{},TaskCompleted:{},Elicitation:{},ElicitationResult:{},ConfigChange:{},WorktreeCreate:{},WorktreeRemove:{},InstructionsLoaded:{},CwdChanged:{},FileChanged:{}},T=Pq(q);Mq(O).forEach((J)=>{let Z=Q[J.event];if(Z){let X=T[J.event].matcherMetadata!==void 0?J.matcher||"":"";if(!Z[X])Z[X]=[];Z[X].push(J)}});let L=jq();if(L)for(let[J,Z]of Object.entries(L)){let X=J,G=Q[X];if(!G)continue;for(let N of Z){let K=N.matcher||"";if("pluginRoot"in N){G[K]??=[];for(let U of N.hooks)G[K].push({event:X,config:U,matcher:N.matcher,source:"pluginHook",pluginName:N.pluginId})}}}return Q}function xq(O,q){let Q=Object.keys(O[q]||{});return Dq(Q,O,q)}function vq(O,q,Q){let T=Q??"";return O[q]?.[T]??[]}function a(O,q){return Pq(q)[O].matcherMetadata}var Pq;var Sq=m(()=>{UJ();WJ();Kq();Pq=gq(function(O){return{PreToolUse:{summary:"Before tool execution",description:`Input to command is JSON of tool call arguments.
|
|
2
|
-
Exit code 0 - stdout/stderr not shown
|
|
3
|
-
Exit code 2 - show stderr to model and block tool call
|
|
4
|
-
Other exit codes - show stderr to user only but continue with tool call`,matcherMetadata:{fieldToMatch:"tool_name",values:O}},PostToolUse:{summary:"After tool execution",description:`Input to command is JSON with fields "inputs" (tool call arguments) and "response" (tool call response).
|
|
5
|
-
Exit code 0 - stdout shown in transcript mode (ctrl+o)
|
|
6
|
-
Exit code 2 - show stderr to model immediately
|
|
7
|
-
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"tool_name",values:O}},PostToolUseFailure:{summary:"After tool execution fails",description:`Input to command is JSON with tool_name, tool_input, tool_use_id, error, error_type, is_interrupt, and is_timeout.
|
|
8
|
-
Exit code 0 - stdout shown in transcript mode (ctrl+o)
|
|
9
|
-
Exit code 2 - show stderr to model immediately
|
|
10
|
-
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"tool_name",values:O}},PermissionDenied:{summary:"After auto mode classifier denies a tool call",description:`Input to command is JSON with tool_name, tool_input, tool_use_id, and reason.
|
|
11
|
-
Return {"hookSpecificOutput":{"hookEventName":"PermissionDenied","retry":true}} to tell the model it may retry.
|
|
12
|
-
Exit code 0 - stdout shown in transcript mode (ctrl+o)
|
|
13
|
-
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"tool_name",values:O}},Notification:{summary:"When notifications are sent",description:`Input to command is JSON with notification message and type.
|
|
14
|
-
Exit code 0 - stdout/stderr not shown
|
|
15
|
-
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"notification_type",values:["permission_prompt","idle_prompt","auth_success","elicitation_dialog","elicitation_complete","elicitation_response"]}},UserPromptSubmit:{summary:"When the user submits a prompt",description:`Input to command is JSON with original user prompt text.
|
|
16
|
-
Exit code 0 - stdout shown to Claude
|
|
17
|
-
Exit code 2 - block processing, erase original prompt, and show stderr to user only
|
|
18
|
-
Other exit codes - show stderr to user only`},SessionStart:{summary:"When a new session is started",description:`Input to command is JSON with session start source.
|
|
19
|
-
Exit code 0 - stdout shown to Claude
|
|
20
|
-
Blocking errors are ignored
|
|
21
|
-
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"source",values:["startup","resume","clear","compact"]}},Stop:{summary:"Right before Claude concludes its response",description:`Exit code 0 - stdout/stderr not shown
|
|
22
|
-
Exit code 2 - show stderr to model and continue conversation
|
|
23
|
-
Other exit codes - show stderr to user only`},StopFailure:{summary:"When the turn ends due to an API error",description:"Fires instead of Stop when an API error (rate limit, auth failure, etc.) ended the turn. Fire-and-forget — hook output and exit codes are ignored.",matcherMetadata:{fieldToMatch:"error",values:["rate_limit","authentication_failed","billing_error","invalid_request","server_error","max_output_tokens","unknown"]}},SubagentStart:{summary:"When a subagent (Agent tool call) is started",description:`Input to command is JSON with agent_id and agent_type.
|
|
24
|
-
Exit code 0 - stdout shown to subagent
|
|
25
|
-
Blocking errors are ignored
|
|
26
|
-
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"agent_type",values:[]}},SubagentStop:{summary:"Right before a subagent (Agent tool call) concludes its response",description:`Input to command is JSON with agent_id, agent_type, and agent_transcript_path.
|
|
27
|
-
Exit code 0 - stdout/stderr not shown
|
|
28
|
-
Exit code 2 - show stderr to subagent and continue having it run
|
|
29
|
-
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"agent_type",values:[]}},PreCompact:{summary:"Before conversation compaction",description:`Input to command is JSON with compaction details.
|
|
30
|
-
Exit code 0 - stdout appended as custom compact instructions
|
|
31
|
-
Exit code 2 - block compaction
|
|
32
|
-
Other exit codes - show stderr to user only but continue with compaction`,matcherMetadata:{fieldToMatch:"trigger",values:["manual","auto"]}},PostCompact:{summary:"After conversation compaction",description:`Input to command is JSON with compaction details and the summary.
|
|
33
|
-
Exit code 0 - stdout shown to user
|
|
34
|
-
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"trigger",values:["manual","auto"]}},SessionEnd:{summary:"When a session is ending",description:`Input to command is JSON with session end reason.
|
|
35
|
-
Exit code 0 - command completes successfully
|
|
36
|
-
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"reason",values:["clear","logout","prompt_input_exit","other"]}},PermissionRequest:{summary:"When a permission dialog is displayed",description:`Input to command is JSON with tool_name, tool_input, and tool_use_id.
|
|
37
|
-
Output JSON with hookSpecificOutput containing decision to allow or deny.
|
|
38
|
-
Exit code 0 - use hook decision if provided
|
|
39
|
-
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"tool_name",values:O}},Setup:{summary:"Repo setup hooks for init and maintenance",description:`Input to command is JSON with trigger (init or maintenance).
|
|
40
|
-
Exit code 0 - stdout shown to Claude
|
|
41
|
-
Blocking errors are ignored
|
|
42
|
-
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"trigger",values:["init","maintenance"]}},TeammateIdle:{summary:"When a teammate is about to go idle",description:`Input to command is JSON with teammate_name and team_name.
|
|
43
|
-
Exit code 0 - stdout/stderr not shown
|
|
44
|
-
Exit code 2 - show stderr to teammate and prevent idle (teammate continues working)
|
|
45
|
-
Other exit codes - show stderr to user only`},TaskCreated:{summary:"When a task is being created",description:`Input to command is JSON with task_id, task_subject, task_description, teammate_name, and team_name.
|
|
46
|
-
Exit code 0 - stdout/stderr not shown
|
|
47
|
-
Exit code 2 - show stderr to model and prevent task creation
|
|
48
|
-
Other exit codes - show stderr to user only`},TaskCompleted:{summary:"When a task is being marked as completed",description:`Input to command is JSON with task_id, task_subject, task_description, teammate_name, and team_name.
|
|
49
|
-
Exit code 0 - stdout/stderr not shown
|
|
50
|
-
Exit code 2 - show stderr to model and prevent task completion
|
|
51
|
-
Other exit codes - show stderr to user only`},Elicitation:{summary:"When an MCP server requests user input (elicitation)",description:`Input to command is JSON with mcp_server_name, message, and requested_schema.
|
|
52
|
-
Output JSON with hookSpecificOutput containing action (accept/decline/cancel) and optional content.
|
|
53
|
-
Exit code 0 - use hook response if provided
|
|
54
|
-
Exit code 2 - deny the elicitation
|
|
55
|
-
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"mcp_server_name",values:[]}},ElicitationResult:{summary:"After a user responds to an MCP elicitation",description:`Input to command is JSON with mcp_server_name, action, content, mode, and elicitation_id.
|
|
56
|
-
Output JSON with hookSpecificOutput containing optional action and content to override the response.
|
|
57
|
-
Exit code 0 - use hook response if provided
|
|
58
|
-
Exit code 2 - block the response (action becomes decline)
|
|
59
|
-
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"mcp_server_name",values:[]}},ConfigChange:{summary:"When configuration files change during a session",description:`Input to command is JSON with source (user_settings, project_settings, local_settings, policy_settings, skills) and file_path.
|
|
60
|
-
Exit code 0 - allow the change
|
|
61
|
-
Exit code 2 - block the change from being applied to the session
|
|
62
|
-
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"source",values:["user_settings","project_settings","local_settings","policy_settings","skills"]}},InstructionsLoaded:{summary:"When an instruction file (CLAUDE.md or rule) is loaded",description:`Input to command is JSON with file_path, memory_type (User, Project, Local, Managed), load_reason (session_start, nested_traversal, path_glob_match, include, compact), globs (optional — the paths: frontmatter patterns that matched), trigger_file_path (optional — the file Claude touched that caused the load), and parent_file_path (optional — the file that @-included this one).
|
|
63
|
-
Exit code 0 - command completes successfully
|
|
64
|
-
Other exit codes - show stderr to user only
|
|
65
|
-
This hook is observability-only and does not support blocking.`,matcherMetadata:{fieldToMatch:"load_reason",values:["session_start","nested_traversal","path_glob_match","include","compact"]}},WorktreeCreate:{summary:"Create an isolated worktree for VCS-agnostic isolation",description:`Input to command is JSON with name (suggested worktree slug).
|
|
66
|
-
Stdout should contain the absolute path to the created worktree directory.
|
|
67
|
-
Exit code 0 - worktree created successfully
|
|
68
|
-
Other exit codes - worktree creation failed`},WorktreeRemove:{summary:"Remove a previously created worktree",description:`Input to command is JSON with worktree_path (absolute path to worktree).
|
|
69
|
-
Exit code 0 - worktree removed successfully
|
|
70
|
-
Other exit codes - show stderr to user only`},CwdChanged:{summary:"After the working directory changes",description:`Input to command is JSON with old_cwd and new_cwd.
|
|
71
|
-
CLAUDE_ENV_FILE is set — write bash exports there to apply env to subsequent BashTool commands.
|
|
72
|
-
Hook output can include hookSpecificOutput.watchPaths (array of absolute paths) to register with the FileChanged watcher.
|
|
73
|
-
Exit code 0 - command completes successfully
|
|
74
|
-
Other exit codes - show stderr to user only`},FileChanged:{summary:"When a watched file changes",description:`Input to command is JSON with file_path and event (change, add, unlink).
|
|
75
|
-
CLAUDE_ENV_FILE is set — write bash exports there to apply env to subsequent BashTool commands.
|
|
76
|
-
The matcher field specifies filenames to watch in the current directory (e.g. ".envrc|.env").
|
|
77
|
-
Hook output can include hookSpecificOutput.watchPaths (array of absolute paths) to dynamically update the watch list.
|
|
78
|
-
Exit code 0 - command completes successfully
|
|
79
|
-
Other exit codes - show stderr to user only`}}},(O)=>O.slice().sort().join(","))});function mq(O){let q=Eq.c(23),{hookEventMetadata:Q,hooksByEvent:T,totalHooksCount:L,restrictedByPolicy:J,onSelectEvent:Z,onCancel:X}=O,G;if(q[0]!==L)G=i(L,"hook"),q[0]=L,q[1]=G;else G=q[1];let N=`${L} ${G} configured`,K;if(q[2]!==J)K=J&&j.jsxDEV(_,{flexDirection:"column",children:[j.jsxDEV(Y,{color:"suggestion",children:[Hq.info," Hooks Restricted by Policy"]},void 0,!0,void 0,this),j.jsxDEV(Y,{dimColor:!0,children:"Only hooks from managed settings can run. User-defined hooks from ~/.claude/settings.json, .claude/settings.json, and .claude/settings.local.json are blocked."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[2]=J,q[3]=K;else K=q[3];let U;if(q[4]===Symbol.for("react.memo_cache_sentinel"))U=j.jsxDEV(_,{flexDirection:"column",children:j.jsxDEV(Y,{dimColor:!0,children:[Hq.info," This menu is read-only. To add or modify hooks, edit settings.json directly or ask Claude."," ",j.jsxDEV(kq,{url:"https://code.claude.com/docs/en/hooks",children:"Learn more"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[4]=U;else U=q[4];let W;if(q[5]!==Z)W=(f)=>{Z(f)},q[5]=Z,q[6]=W;else W=q[6];let w;if(q[7]!==Q)w=Object.entries(Q),q[7]=Q,q[8]=w;else w=q[8];let P;if(q[9]!==T||q[10]!==w)P=w.map((f)=>{let[g,H]=f,k=T[g]||0;return{label:k>0?j.jsxDEV(Y,{children:[g," ",j.jsxDEV(Y,{color:"suggestion",children:["(",k,")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):g,value:g,description:H.summary}}),q[9]=T,q[10]=w,q[11]=P;else P=q[11];let I;if(q[12]!==X||q[13]!==W||q[14]!==P)I=j.jsxDEV(_,{flexDirection:"column",children:j.jsxDEV(c,{onChange:W,onCancel:X,options:P},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[12]=X,q[13]=W,q[14]=P,q[15]=I;else I=q[15];let F;if(q[16]!==K||q[17]!==I)F=j.jsxDEV(_,{flexDirection:"column",gap:1,children:[K,U,I]},void 0,!0,void 0,this),q[16]=K,q[17]=I,q[18]=F;else F=q[18];let B;if(q[19]!==X||q[20]!==N||q[21]!==F)B=j.jsxDEV(u,{title:"Hooks",subtitle:N,onCancel:X,children:F},void 0,!1,void 0,this),q[19]=X,q[20]=N,q[21]=F,q[22]=B;else B=q[22];return B}var Eq,j;var iq=m(()=>{wJ();s();pq();Vq();o();Eq=V($(),1),j=V(D(),1)});function dq(O){let q=rq.c(19),{selectedEvent:Q,selectedMatcher:T,hooksForSelectedMatcher:L,hookEventMetadata:J,onSelect:Z,onCancel:X}=O,G=J.matcherMetadata!==void 0?`${Q} - Matcher: ${T||"(all)"}`:Q;if(L.length===0){let P;if(q[0]===Symbol.for("react.memo_cache_sentinel"))P=x.jsxDEV(_,{flexDirection:"column",gap:1,children:[x.jsxDEV(Y,{dimColor:!0,children:"No hooks configured for this event."},void 0,!1,void 0,this),x.jsxDEV(Y,{dimColor:!0,children:"To add hooks, edit settings.json directly or ask Claude."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[0]=P;else P=q[0];let I;if(q[1]!==J.description||q[2]!==X||q[3]!==G)I=x.jsxDEV(u,{title:G,subtitle:J.description,onCancel:X,inputGuide:GJ,children:P},void 0,!1,void 0,this),q[1]=J.description,q[2]=X,q[3]=G,q[4]=I;else I=q[4];return I}let N=J.description,K;if(q[5]!==L)K=L.map(RJ),q[5]=L,q[6]=K;else K=q[6];let U;if(q[7]!==L||q[8]!==Z)U=(P)=>{let I=parseInt(P,10),F=L[I];if(F)Z(F)},q[7]=L,q[8]=Z,q[9]=U;else U=q[9];let W;if(q[10]!==X||q[11]!==K||q[12]!==U)W=x.jsxDEV(_,{flexDirection:"column",children:x.jsxDEV(c,{options:K,onChange:U,onCancel:X},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[10]=X,q[11]=K,q[12]=U,q[13]=W;else W=q[13];let w;if(q[14]!==J.description||q[15]!==X||q[16]!==W||q[17]!==G)w=x.jsxDEV(u,{title:G,subtitle:N,onCancel:X,children:W},void 0,!1,void 0,this),q[14]=J.description,q[15]=X,q[16]=W,q[17]=G,q[18]=w;else w=q[18];return w}function RJ(O,q){return{label:`[${O.config.type}] ${hq(O.config)}`,value:q.toString(),description:O.source==="pluginHook"&&O.pluginName?`${yq(O.source)} (${O.pluginName})`:yq(O.source)}}function GJ(){return x.jsxDEV(Y,{children:"Esc to go back"},void 0,!1,void 0,this)}var rq,x;var lq=m(()=>{s();Kq();Vq();o();rq=V($(),1),x=V(D(),1)});function aq(O){let q=nq.c(25),{selectedEvent:Q,matchersForSelectedEvent:T,hooksByEventAndMatcher:L,eventDescription:J,onSelect:Z,onCancel:X}=O,G;if(q[0]!==L||q[1]!==T||q[2]!==Q){let I;if(q[4]!==L||q[5]!==Q)I=(F)=>{let B=L[Q]?.[F]||[],f=Array.from(new Set(B.map(fJ)));return{matcher:F,sources:f,hookCount:B.length}},q[4]=L,q[5]=Q,q[6]=I;else I=q[6];G=T.map(I),q[0]=L,q[1]=T,q[2]=Q,q[3]=G}else G=q[3];let N=G;if(T.length===0){let I=`${Q} - Matchers`,F;if(q[7]===Symbol.for("react.memo_cache_sentinel"))F=v.jsxDEV(_,{flexDirection:"column",gap:1,children:[v.jsxDEV(Y,{dimColor:!0,children:"No hooks configured for this event."},void 0,!1,void 0,this),v.jsxDEV(Y,{dimColor:!0,children:"To add hooks, edit settings.json directly or ask Claude."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[7]=F;else F=q[7];let B;if(q[8]!==J||q[9]!==X||q[10]!==I)B=v.jsxDEV(u,{title:I,subtitle:J,onCancel:X,inputGuide:PJ,children:F},void 0,!1,void 0,this),q[8]=J,q[9]=X,q[10]=I,q[11]=B;else B=q[11];return B}let K=`${Q} - Matchers`,U;if(q[12]!==N)U=N.map(KJ),q[12]=N,q[13]=U;else U=q[13];let W;if(q[14]!==Z)W=(I)=>{Z(I)},q[14]=Z,q[15]=W;else W=q[15];let w;if(q[16]!==X||q[17]!==U||q[18]!==W)w=v.jsxDEV(_,{flexDirection:"column",children:v.jsxDEV(c,{options:U,onChange:W,onCancel:X},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[16]=X,q[17]=U,q[18]=W,q[19]=w;else w=q[19];let P;if(q[20]!==J||q[21]!==X||q[22]!==K||q[23]!==w)P=v.jsxDEV(u,{title:K,subtitle:J,onCancel:X,children:w},void 0,!1,void 0,this),q[20]=J,q[21]=X,q[22]=K,q[23]=w,q[24]=P;else P=q[24];return P}function KJ(O){let q=O.sources.map(cq).join(", "),Q=O.matcher||"(all)";return{label:`[${q}] ${Q}`,value:O.matcher,description:`${O.hookCount} ${i(O.hookCount,"hook")}`}}function PJ(){return v.jsxDEV(Y,{children:"Esc to go back"},void 0,!1,void 0,this)}function fJ(O){return O.source}var nq,v;var $q=m(()=>{s();Kq();pq();Vq();o();nq=V($(),1),v=V(D(),1)});function eq(O){let q=oq.c(40),{selectedHook:Q,eventSupportsMatcher:T,onCancel:L}=O,J;if(q[0]!==Q.event)J=C.jsxDEV(Y,{children:["Event: ",C.jsxDEV(Y,{bold:!0,children:Q.event},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[0]=Q.event,q[1]=J;else J=q[1];let Z;if(q[2]!==T||q[3]!==Q.matcher)Z=T&&C.jsxDEV(Y,{children:["Matcher: ",C.jsxDEV(Y,{bold:!0,children:Q.matcher||"(all)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[2]=T,q[3]=Q.matcher,q[4]=Z;else Z=q[4];let X;if(q[5]!==Q.config.type)X=C.jsxDEV(Y,{children:["Type: ",C.jsxDEV(Y,{bold:!0,children:Q.config.type},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[5]=Q.config.type,q[6]=X;else X=q[6];let G;if(q[7]!==Q.source)G=sq(Q.source),q[7]=Q.source,q[8]=G;else G=q[8];let N;if(q[9]!==G)N=C.jsxDEV(Y,{children:["Source:"," ",C.jsxDEV(Y,{dimColor:!0,children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[9]=G,q[10]=N;else N=q[10];let K;if(q[11]!==Q.pluginName)K=Q.pluginName&&C.jsxDEV(Y,{children:["Plugin: ",C.jsxDEV(Y,{dimColor:!0,children:Q.pluginName},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[11]=Q.pluginName,q[12]=K;else K=q[12];let U;if(q[13]!==J||q[14]!==Z||q[15]!==X||q[16]!==N||q[17]!==K)U=C.jsxDEV(_,{flexDirection:"column",children:[J,Z,X,N,K]},void 0,!0,void 0,this),q[13]=J,q[14]=Z,q[15]=X,q[16]=N,q[17]=K,q[18]=U;else U=q[18];let W;if(q[19]!==Q.config)W=AJ(Q.config),q[19]=Q.config,q[20]=W;else W=q[20];let w;if(q[21]!==W)w=C.jsxDEV(Y,{dimColor:!0,children:[W,":"]},void 0,!0,void 0,this),q[21]=W,q[22]=w;else w=q[22];let P;if(q[23]!==Q.config)P=NJ(Q.config),q[23]=Q.config,q[24]=P;else P=q[24];let I;if(q[25]!==P)I=C.jsxDEV(_,{borderStyle:"round",borderDimColor:!0,paddingLeft:1,paddingRight:1,children:C.jsxDEV(Y,{children:P},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[25]=P,q[26]=I;else I=q[26];let F;if(q[27]!==I||q[28]!==w)F=C.jsxDEV(_,{flexDirection:"column",children:[w,I]},void 0,!0,void 0,this),q[27]=I,q[28]=w,q[29]=F;else F=q[29];let B;if(q[30]!==Q.config)B="statusMessage"in Q.config&&Q.config.statusMessage&&C.jsxDEV(Y,{children:["Status message:"," ",C.jsxDEV(Y,{dimColor:!0,children:Q.config.statusMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[30]=Q.config,q[31]=B;else B=q[31];let f;if(q[32]===Symbol.for("react.memo_cache_sentinel"))f=C.jsxDEV(Y,{dimColor:!0,children:"To modify or remove this hook, edit settings.json directly or ask Claude to help."},void 0,!1,void 0,this),q[32]=f;else f=q[32];let g;if(q[33]!==F||q[34]!==B||q[35]!==U)g=C.jsxDEV(_,{flexDirection:"column",gap:1,children:[U,F,B,f]},void 0,!0,void 0,this),q[33]=F,q[34]=B,q[35]=U,q[36]=g;else g=q[36];let H;if(q[37]!==L||q[38]!==g)H=C.jsxDEV(u,{title:"Hook details",onCancel:L,inputGuide:FJ,children:g},void 0,!1,void 0,this),q[37]=L,q[38]=g,q[39]=H;else H=q[39];return H}function FJ(){return C.jsxDEV(Y,{children:"Esc to go back"},void 0,!1,void 0,this)}function AJ(O){switch(O.type){case"command":return"Command";case"prompt":return"Prompt";case"agent":return"Prompt";case"http":return"URL"}}function NJ(O){switch(O.type){case"command":return O.command;case"prompt":return O.prompt;case"agent":return O.prompt;case"http":return O.url}}var oq,C;var tq=m(()=>{s();Kq();o();oq=V($(),1),C=V(D(),1)});function XJ(O){let q=QJ.c(100),{toolNames:Q,onExit:T}=O,L;if(q[0]===Symbol.for("react.memo_cache_sentinel"))L={mode:"select-event"},q[0]=L;else L=q[0];let[J,Z]=fq.useState(L),[X,G]=fq.useState(jJ),[N,K]=fq.useState(gJ),U;if(q[1]===Symbol.for("react.memo_cache_sentinel"))U=(A)=>{if(A==="policySettings"){let R=Fq()?.disableAllHooks===!0;G(R&&t("policySettings")?.disableAllHooks===!0),K(t("policySettings")?.allowManagedHooksOnly===!0)}},q[1]=U;else U=q[1];qJ(U);let W=J.mode,w="event"in J?J.event:"PreToolUse",P="matcher"in J?J.matcher:null,I=JJ(yJ),F=OJ(),B;if(q[2]!==I.tools||q[3]!==Q)B=[...Q,...I.tools.map(VJ)],q[2]=I.tools,q[3]=Q,q[4]=B;else B=q[4];let f=B,g;if(q[5]!==F||q[6]!==f)g=uq(F.getState(),f),q[5]=F,q[6]=f,q[7]=g;else g=q[7];let H=g,k;if(q[8]!==H||q[9]!==w)k=xq(H,w),q[8]=H,q[9]=w,q[10]=k;else k=q[10];let Aq=k,qq;if(q[11]!==H||q[12]!==w||q[13]!==P)qq=vq(H,w,P),q[11]=H,q[12]=w,q[13]=P,q[14]=qq;else qq=q[14];let Nq=qq,Jq;if(q[15]!==T)Jq=()=>{T("Hooks dialog dismissed",{display:"system"})},q[15]=T,q[16]=Jq;else Jq=q[16];let E=Jq,bq=W==="select-event",Oq;if(q[17]!==bq)Oq={context:"Confirmation",isActive:bq},q[17]=bq,q[18]=Oq;else Oq=q[18];e("confirm:no",E,Oq);let Qq;if(q[19]===Symbol.for("react.memo_cache_sentinel"))Qq=()=>{Z({mode:"select-event"})},q[19]=Qq;else Qq=q[19];let Tq=W==="select-matcher",Xq;if(q[20]!==Tq)Xq={context:"Confirmation",isActive:Tq},q[20]=Tq,q[21]=Xq;else Xq=q[21];e("confirm:no",Qq,Xq);let Yq;if(q[22]!==f||q[23]!==J)Yq=()=>{if("event"in J)if(a(J.event,f)!==void 0)Z({mode:"select-matcher",event:J.event});else Z({mode:"select-event"})},q[22]=f,q[23]=J,q[24]=Yq;else Yq=q[24];let Bq=W==="select-hook",Zq;if(q[25]!==Bq)Zq={context:"Confirmation",isActive:Bq},q[25]=Bq,q[26]=Zq;else Zq=q[26];e("confirm:no",Yq,Zq);let Iq;if(q[27]!==J)Iq=()=>{if(J.mode==="view-hook"){let{event:A,hook:z}=J;Z({mode:"select-hook",event:A,matcher:z.matcher||""})}},q[27]=J,q[28]=Iq;else Iq=q[28];let Cq=W==="view-hook",zq;if(q[29]!==Cq)zq={context:"Confirmation",isActive:Cq},q[29]=Cq,q[30]=zq;else zq=q[30];e("confirm:no",Iq,zq);let Lq;if(q[31]!==f)Lq=Pq(f),q[31]=f,q[32]=Lq;else Lq=q[32];let n=Lq,LJ=Fq()?.disableAllHooks===!0,Uq;if(q[33]!==H){let A={},z=0;for(let[R,b]of Object.entries(H)){let p=Object.values(b).reduce(pJ,0);A[R]=p,z=z+p}Uq={hooksByEvent:A,totalHooksCount:z},q[33]=H,q[34]=Uq}else Uq=q[34];let{hooksByEvent:_q,totalHooksCount:M}=Uq;if(LJ){let A;if(q[35]===Symbol.for("react.memo_cache_sentinel"))A=y.jsxDEV(Y,{bold:!0,children:"disabled"},void 0,!1,void 0,this),q[35]=A;else A=q[35];let z=X&&" by a managed settings file",R;if(q[36]!==M)R=y.jsxDEV(Y,{bold:!0,children:M},void 0,!1,void 0,this),q[36]=M,q[37]=R;else R=q[37];let b;if(q[38]!==M)b=i(M,"hook"),q[38]=M,q[39]=b;else b=q[39];let p;if(q[40]!==M)p=i(M,"is","are"),q[40]=M,q[41]=p;else p=q[41];let S;if(q[42]!==z||q[43]!==R||q[44]!==b||q[45]!==p)S=y.jsxDEV(Y,{children:["All hooks are currently ",A,z,". You have"," ",R," configured"," ",b," that"," ",p," not running."]},void 0,!0,void 0,this),q[42]=z,q[43]=R,q[44]=b,q[45]=p,q[46]=S;else S=q[46];let h,Wq,wq,Rq;if(q[47]===Symbol.for("react.memo_cache_sentinel"))h=y.jsxDEV(_,{marginTop:1,children:y.jsxDEV(Y,{dimColor:!0,children:"When hooks are disabled:"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Wq=y.jsxDEV(Y,{dimColor:!0,children:"· No hook commands will execute"},void 0,!1,void 0,this),wq=y.jsxDEV(Y,{dimColor:!0,children:"· StatusLine will not be displayed"},void 0,!1,void 0,this),Rq=y.jsxDEV(Y,{dimColor:!0,children:"· Tool operations will proceed without hook validation"},void 0,!1,void 0,this),q[47]=h,q[48]=Wq,q[49]=wq,q[50]=Rq;else h=q[47],Wq=q[48],wq=q[49],Rq=q[50];let r;if(q[51]!==S)r=y.jsxDEV(_,{flexDirection:"column",children:[S,h,Wq,wq,Rq]},void 0,!0,void 0,this),q[51]=S,q[52]=r;else r=q[52];let d;if(q[53]!==X)d=!X&&y.jsxDEV(Y,{dimColor:!0,children:'To re-enable hooks, remove "disableAllHooks" from settings.json or ask Claude.'},void 0,!1,void 0,this),q[53]=X,q[54]=d;else d=q[54];let l;if(q[55]!==r||q[56]!==d)l=y.jsxDEV(_,{flexDirection:"column",gap:1,children:[r,d]},void 0,!0,void 0,this),q[55]=r,q[56]=d,q[57]=l;else l=q[57];let Gq;if(q[58]!==E||q[59]!==l)Gq=y.jsxDEV(u,{title:"Hook Configuration - Disabled",onCancel:E,inputGuide:HJ,children:l},void 0,!1,void 0,this),q[58]=E,q[59]=l,q[60]=Gq;else Gq=q[60];return Gq}switch(J.mode){case"select-event":{let A;if(q[61]!==f)A=(R)=>{if(a(R,f)!==void 0)Z({mode:"select-matcher",event:R});else Z({mode:"select-hook",event:R,matcher:""})},q[61]=f,q[62]=A;else A=q[62];let z;if(q[63]!==E||q[64]!==n||q[65]!==_q||q[66]!==N||q[67]!==A||q[68]!==M)z=y.jsxDEV(mq,{hookEventMetadata:n,hooksByEvent:_q,totalHooksCount:M,restrictedByPolicy:N,onSelectEvent:A,onCancel:E},void 0,!1,void 0,this),q[63]=E,q[64]=n,q[65]=_q,q[66]=N,q[67]=A,q[68]=M,q[69]=z;else z=q[69];return z}case"select-matcher":{let A=n[J.event],z;if(q[70]!==J.event)z=(p)=>{Z({mode:"select-hook",event:J.event,matcher:p})},q[70]=J.event,q[71]=z;else z=q[71];let R;if(q[72]===Symbol.for("react.memo_cache_sentinel"))R=()=>{Z({mode:"select-event"})},q[72]=R;else R=q[72];let b;if(q[73]!==H||q[74]!==J.event||q[75]!==Aq||q[76]!==A.description||q[77]!==z)b=y.jsxDEV(aq,{selectedEvent:J.event,matchersForSelectedEvent:Aq,hooksByEventAndMatcher:H,eventDescription:A.description,onSelect:z,onCancel:R},void 0,!1,void 0,this),q[73]=H,q[74]=J.event,q[75]=Aq,q[76]=A.description,q[77]=z,q[78]=b;else b=q[78];return b}case"select-hook":{let A=n[J.event],z;if(q[79]!==J.event)z=(p)=>{Z({mode:"view-hook",event:J.event,hook:p})},q[79]=J.event,q[80]=z;else z=q[80];let R;if(q[81]!==f||q[82]!==J.event)R=()=>{if(a(J.event,f)!==void 0)Z({mode:"select-matcher",event:J.event});else Z({mode:"select-event"})},q[81]=f,q[82]=J.event,q[83]=R;else R=q[83];let b;if(q[84]!==Nq||q[85]!==J.event||q[86]!==J.matcher||q[87]!==A||q[88]!==z||q[89]!==R)b=y.jsxDEV(dq,{selectedEvent:J.event,selectedMatcher:J.matcher,hooksForSelectedMatcher:Nq,hookEventMetadata:A,onSelect:z,onCancel:R},void 0,!1,void 0,this),q[84]=Nq,q[85]=J.event,q[86]=J.matcher,q[87]=A,q[88]=z,q[89]=R,q[90]=b;else b=q[90];return b}case"view-hook":{let A=J.hook,z;if(q[91]!==f||q[92]!==J.event)z=a(J.event,f),q[91]=f,q[92]=J.event,q[93]=z;else z=q[93];let R=z!==void 0,b;if(q[94]!==J)b=()=>{let{event:S,hook:h}=J;Z({mode:"select-hook",event:S,matcher:h.matcher||""})},q[94]=J,q[95]=b;else b=q[95];let p;if(q[96]!==J.hook||q[97]!==R||q[98]!==b)p=y.jsxDEV(eq,{selectedHook:A,eventSupportsMatcher:R,onCancel:b},void 0,!1,void 0,this),q[96]=J.hook,q[97]=R,q[98]=b,q[99]=p;else p=q[99];return p}}}function HJ(){return y.jsxDEV(Y,{children:"Esc to close"},void 0,!1,void 0,this)}function pJ(O,q){return O+q.length}function VJ(O){return O.name}function yJ(O){return O.mcp}function gJ(){return t("policySettings")?.allowManagedHooksOnly===!0}function jJ(){return Fq()?.disableAllHooks===!0&&t("policySettings")?.disableAllHooks===!0}var QJ,fq,y;var YJ=m(()=>{_J();BJ();s();CJ();Sq();bJ();pq();o();iq();lq();$q();tq();QJ=V($(),1),fq=V(TJ(),1),y=V(D(),1)});var zJ,_O=async(O,q)=>{ZJ("tengu_hooks_command",{});let T=q.getAppState().toolPermissionContext,L=IJ(T).map((J)=>J.name);return zJ.jsxDEV(XJ,{toolNames:L,onExit:O},void 0,!1,void 0,this)};var uJ=m(()=>{YJ();MJ();DJ();zJ=V(D(),1)});uJ();export{_O as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$N as y,DN as a,EN as b,FN as c,GN as d,HN as e,IN as f,JN as g,KN as h,LN as i,MN as j,NN as k,ON as l,PN as m,QN as n,RN as o,SN as p,TN as q,UN as r,VN as s,WN as t,XN as u,YN as v,ZN as w,_N as x,aO as z,bO as A,cO as B,dO as C,eO as D,fO as E,gO as F,hO as G,iO as H,jO as I,kO as J,lO as K,mO as L,nO as M,oO as N,pO as O,qO as P}from"./cli-0.1.10-y9mkzh11.mjs";import"./cli-0.1.10-rr3xpxx1.mjs";import"./cli-0.1.10-xjpjs3y5.mjs";import"./cli-0.1.10-7d7j1qyf.mjs";import"./cli-0.1.10-gdqbhzyr.mjs";import"./cli-0.1.10-fay16q4v.mjs";import"./cli-0.1.10-z4a84y0c.mjs";import"./cli-0.1.10-y3q22zvb.mjs";import"./cli-0.1.10-4a42q38j.mjs";import"./cli-0.1.10-x1qs5ctr.mjs";import"./cli-0.1.10-fhvyzg2m.mjs";import"./cli-0.1.10-72ece2yk.mjs";import"./cli-0.1.10-qf6ps98q.mjs";import"./cli-0.1.10-t8rnwwhq.mjs";import"./cli-0.1.10-wajz23ff.mjs";import"./cli-0.1.10-nfnje7ew.mjs";import"./cli-0.1.10-be8dvtg8.mjs";import"./cli-0.1.10-rvb440sp.mjs";import"./cli-0.1.10-xzz1tdne.mjs";import"./cli-0.1.10-gms4557v.mjs";import"./cli-0.1.10-0n4bjm9z.mjs";import"./cli-0.1.10-4n8rvtk0.mjs";import"./cli-0.1.10-3q43p3wr.mjs";import"./cli-0.1.10-gccb3gw8.mjs";import"./cli-0.1.10-er8zk2kj.mjs";import"./cli-0.1.10-zeqsd250.mjs";import"./cli-0.1.10-z3f97n2d.mjs";import"./cli-0.1.10-b59j6twr.mjs";import"./cli-0.1.10-v6gq9bxc.mjs";import"./cli-0.1.10-28zx3btb.mjs";import"./cli-0.1.10-p42gvsdg.mjs";import"./cli-0.1.10-d48qgcag.mjs";import"./cli-0.1.10-227xyew7.mjs";import"./cli-0.1.10-bqsa7eam.mjs";import"./cli-0.1.10-acy8ec7t.mjs";import"./cli-0.1.10-hbk3dhq8.mjs";import"./cli-0.1.10-w8np72sh.mjs";import"./cli-0.1.10-t1zd86kd.mjs";import"./cli-0.1.10-jjdvb4je.mjs";import"./cli-0.1.10-dx92txwb.mjs";import"./cli-0.1.10-f38gq0e0.mjs";import"./cli-0.1.10-2ahvbvra.mjs";import"./cli-0.1.10-73y7xdxy.mjs";import"./cli-0.1.10-vrd90nhd.mjs";import"./cli-0.1.10-y6a8q1t3.mjs";import"./cli-0.1.10-wjmtd9vm.mjs";import"./cli-0.1.10-g6rx9rdb.mjs";import"./cli-0.1.10-7ydarbm4.mjs";import"./cli-0.1.10-s7s5bgrq.mjs";import"./cli-0.1.10-y2byece1.mjs";import"./cli-0.1.10-fcarec7s.mjs";import"./cli-0.1.10-mt6tj76h.mjs";import"./cli-0.1.10-2mqddc7q.mjs";import"./cli-0.1.10-4n8p34vn.mjs";import"./cli-0.1.10-594z8zdp.mjs";import"./cli-0.1.10-a4p945wp.mjs";import"./cli-0.1.10-w1hqcxj1.mjs";import"./cli-0.1.10-nzxw7p2m.mjs";import"./cli-0.1.10-97rwbawt.mjs";import"./cli-0.1.10-f2jh6yv0.mjs";import"./cli-0.1.10-e4qewc1p.mjs";import"./cli-0.1.10-y1bkenem.mjs";import"./cli-0.1.10-pw67rrjr.mjs";import"./cli-0.1.10-mqgz2v10.mjs";import"./cli-0.1.10-akaq0zte.mjs";import"./cli-0.1.10-hyxg32sc.mjs";P();export{b as shouldSkipHookDueToTrust,M as hasWorktreeCreateHook,G as hasInstructionsLoadedHook,k as hasBlockingResult,j as getUserPromptSubmitHookBlockingMessage,g as getTeammateIdleHookMessage,h as getTaskCreatedHookMessage,i as getTaskCompletedHookMessage,f as getStopHookMessage,a as getSessionEndHookTimeoutMs,e as getPreToolHookBlockingMessage,d as getMatchingHooks,O as executeWorktreeRemoveHook,N as executeWorktreeCreateHook,v as executeUserPromptSubmitHooks,s as executeTeammateIdleHooks,t as executeTaskCreatedHooks,u as executeTaskCompletedHooks,y as executeSubagentStartHooks,r as executeStopHooks,q as executeStopFailureHooks,K as executeStatusLineCommand,x as executeSetupHooks,w as executeSessionStartHooks,B as executeSessionEndHooks,l as executePreToolHooks,z as executePreCompactHooks,n as executePostToolUseFailureHooks,m as executePostToolHooks,A as executePostCompactHooks,C as executePermissionRequestHooks,o as executePermissionDeniedHooks,p as executeNotificationHooks,H as executeInstructionsLoadedHooks,L as executeFileSuggestionCommand,F as executeFileChangedHooks,J as executeElicitationResultHooks,I as executeElicitationHooks,E as executeCwdChangedHooks,D as executeConfigChangeHooks,c as createBaseHookInput};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Ct as s,GI as K0,Ht as J0,KJ as Q0,Kt as c,LJ as U0,MO as r0,NJ as f0,Ot as n,QI as k0,jv as w,lv as e,sO as W0,wt as H0,yt as E,zt as g}from"./cli-0.1.10-y9mkzh11.mjs";import"./cli-0.1.10-rr3xpxx1.mjs";import"./cli-0.1.10-xjpjs3y5.mjs";import"./cli-0.1.10-7d7j1qyf.mjs";import{FP as f,GP as t}from"./cli-0.1.10-gdqbhzyr.mjs";import"./cli-0.1.10-fay16q4v.mjs";import"./cli-0.1.10-z4a84y0c.mjs";import"./cli-0.1.10-y3q22zvb.mjs";import"./cli-0.1.10-4a42q38j.mjs";import"./cli-0.1.10-x1qs5ctr.mjs";import"./cli-0.1.10-fhvyzg2m.mjs";import"./cli-0.1.10-72ece2yk.mjs";import"./cli-0.1.10-qf6ps98q.mjs";import"./cli-0.1.10-t8rnwwhq.mjs";import"./cli-0.1.10-wajz23ff.mjs";import"./cli-0.1.10-nfnje7ew.mjs";import"./cli-0.1.10-be8dvtg8.mjs";import"./cli-0.1.10-rvb440sp.mjs";import"./cli-0.1.10-xzz1tdne.mjs";import{KU as p,MU as P,_S as D,pV as a}from"./cli-0.1.10-gms4557v.mjs";import"./cli-0.1.10-0n4bjm9z.mjs";import"./cli-0.1.10-4n8rvtk0.mjs";import"./cli-0.1.10-3q43p3wr.mjs";import"./cli-0.1.10-gccb3gw8.mjs";import"./cli-0.1.10-er8zk2kj.mjs";import"./cli-0.1.10-zeqsd250.mjs";import"./cli-0.1.10-z3f97n2d.mjs";import"./cli-0.1.10-b59j6twr.mjs";import{kX as o}from"./cli-0.1.10-v6gq9bxc.mjs";import{lX as F0}from"./cli-0.1.10-28zx3btb.mjs";import"./cli-0.1.10-p42gvsdg.mjs";import"./cli-0.1.10-d48qgcag.mjs";import"./cli-0.1.10-227xyew7.mjs";import"./cli-0.1.10-bqsa7eam.mjs";import"./cli-0.1.10-acy8ec7t.mjs";import"./cli-0.1.10-hbk3dhq8.mjs";import"./cli-0.1.10-w8np72sh.mjs";import"./cli-0.1.10-t1zd86kd.mjs";import"./cli-0.1.10-jjdvb4je.mjs";import"./cli-0.1.10-dx92txwb.mjs";import"./cli-0.1.10-f38gq0e0.mjs";import"./cli-0.1.10-2ahvbvra.mjs";import"./cli-0.1.10-73y7xdxy.mjs";import"./cli-0.1.10-vrd90nhd.mjs";import"./cli-0.1.10-y6a8q1t3.mjs";import{x5 as M,y5 as P0}from"./cli-0.1.10-wjmtd9vm.mjs";import"./cli-0.1.10-g6rx9rdb.mjs";import"./cli-0.1.10-7ydarbm4.mjs";import"./cli-0.1.10-s7s5bgrq.mjs";import"./cli-0.1.10-y2byece1.mjs";import"./cli-0.1.10-fcarec7s.mjs";import{L7 as q0,N7 as y0,Oba as R0,sba as I,vba as $}from"./cli-0.1.10-mt6tj76h.mjs";import"./cli-0.1.10-2mqddc7q.mjs";import{Vda as d,Wda as O0}from"./cli-0.1.10-4n8p34vn.mjs";import"./cli-0.1.10-594z8zdp.mjs";import"./cli-0.1.10-a4p945wp.mjs";import"./cli-0.1.10-w1hqcxj1.mjs";import"./cli-0.1.10-nzxw7p2m.mjs";import"./cli-0.1.10-97rwbawt.mjs";import{Yfa as z0,Zfa as L0}from"./cli-0.1.10-f2jh6yv0.mjs";import"./cli-0.1.10-e4qewc1p.mjs";import"./cli-0.1.10-y1bkenem.mjs";import"./cli-0.1.10-pw67rrjr.mjs";import"./cli-0.1.10-mqgz2v10.mjs";import"./cli-0.1.10-akaq0zte.mjs";import{Gna as k,Kna as l}from"./cli-0.1.10-hyxg32sc.mjs";function m0(A){let m=i.c(9),{onComplete:Y}=A,q;if(m[0]!==Y)q=async(U)=>{let W=U==="yes";I((H)=>({...H,autoConnectIde:W,hasIdeAutoConnectDialogBeenShown:!0})),Y()},m[0]=Y,m[1]=q;else q=m[1];let J=q,B;if(m[2]===Symbol.for("react.memo_cache_sentinel"))B=[{label:"Yes",value:"yes"},{label:"No",value:"no"}],m[2]=B;else B=m[2];let K=B,X;if(m[3]!==J)X=C.jsxDEV(w,{options:K,onChange:J,defaultValue:"yes"},void 0,!1,void 0,this),m[3]=J,m[4]=X;else X=m[4];let z;if(m[5]===Symbol.for("react.memo_cache_sentinel"))z=C.jsxDEV(P,{dimColor:!0,children:"You can also configure this in /config or with the --ide flag"},void 0,!1,void 0,this),m[5]=z;else z=m[5];let G;if(m[6]!==Y||m[7]!==X)G=C.jsxDEV(f,{title:"Do you wish to enable auto-connect to IDE?",color:"ide",onCancel:Y,children:[X,z]},void 0,!0,void 0,this),m[6]=Y,m[7]=X,m[8]=G;else G=m[8];return G}function Y0(){let A=$();return!g()&&A.autoConnectIde!==!0&&A.hasIdeAutoConnectDialogBeenShown!==!0}function A0(A){let m=i.c(10),{onComplete:Y}=A,q;if(m[0]!==Y)q=(W)=>{let H=W==="yes";if(H)I(T0);Y(H)},m[0]=Y,m[1]=q;else q=m[1];let J=q,B;if(m[2]!==Y)B=()=>{Y(!1)},m[2]=Y,m[3]=B;else B=m[3];let K=B,X;if(m[4]===Symbol.for("react.memo_cache_sentinel"))X=[{label:"No",value:"no"},{label:"Yes",value:"yes"}],m[4]=X;else X=m[4];let z=X,G;if(m[5]!==J)G=C.jsxDEV(w,{options:z,onChange:J,defaultValue:"no"},void 0,!1,void 0,this),m[5]=J,m[6]=G;else G=m[6];let U;if(m[7]!==K||m[8]!==G)U=C.jsxDEV(f,{title:"Do you wish to disable auto-connect to IDE?",subtitle:"You can also configure this in /config",onCancel:K,color:"ide",children:G},void 0,!1,void 0,this),m[7]=K,m[8]=G,m[9]=U;else U=m[9];return U}function T0(A){return{...A,autoConnectIde:!1}}function B0(){let A=$();return!g()&&A.autoConnectIde===!0}var i,C;var G0=l(()=>{a();R0();n();e();t();i=k(D(),1),C=k(o(),1)});import*as X0 from"path";function w0(A){let m=r.c(39),{availableIDEs:Y,unavailableIDEs:q,selectedIDE:J,onClose:B,onSelect:K}=A,X;if(m[0]!==J?.port)X=J?.port?.toString()??"None",m[0]=J?.port,m[1]=X;else X=m[1];let[z,G]=y.useState(X),[U,W]=y.useState(!1),[H,Q]=y.useState(!1),R;if(m[2]!==Y||m[3]!==K)R=(O)=>{if(O!=="None"&&Y0())W(!0);else if(O==="None"&&B0())Q(!0);else K(Y.find((F)=>F.port===parseInt(O)))},m[2]=Y,m[3]=K,m[4]=R;else R=m[4];let N=R,T;if(m[5]!==Y)T=Y.reduce(b0,{}),m[5]=Y,m[6]=T;else T=m[6];let L=T,b;if(m[7]!==Y||m[8]!==L){let O;if(m[10]!==L)O=(F)=>{let N0=(L[F.name]||0)>1&&F.workspaceFolders.length>0;return{label:F.name,value:F.port.toString(),description:N0?Z0(F.workspaceFolders):void 0}},m[10]=L,m[11]=O;else O=m[11];b=Y.map(O).concat([{label:"None",value:"None",description:void 0}]),m[7]=Y,m[8]=L,m[9]=b}else b=m[9];let V=b;if(U){let O;if(m[12]!==N||m[13]!==z)O=Z.jsxDEV(m0,{onComplete:()=>N(z)},void 0,!1,void 0,this),m[12]=N,m[13]=z,m[14]=O;else O=m[14];return O}if(H){let O;if(m[15]!==K)O=Z.jsxDEV(A0,{onComplete:()=>{K(void 0)}},void 0,!1,void 0,this),m[15]=K,m[16]=O;else O=m[16];return O}let j;if(m[17]!==Y.length)j=Y.length===0&&Z.jsxDEV(P,{dimColor:!0,children:E()?`No available IDEs detected. Please install the plugin and restart your IDE:
|
|
2
|
-
https://docs.claude.com/s/claude-code-jetbrains`:"No available IDEs detected. Make sure your IDE has the Claude Code extension or plugin installed and is running."},void 0,!1,void 0,this),m[17]=Y.length,m[18]=j;else j=m[18];let S;if(m[19]!==Y.length||m[20]!==N||m[21]!==V||m[22]!==z)S=Y.length!==0&&Z.jsxDEV(w,{defaultValue:z,defaultFocusValue:z,options:V,onChange:(O)=>{G(O),N(O)}},void 0,!1,void 0,this),m[19]=Y.length,m[20]=N,m[21]=V,m[22]=z,m[23]=S;else S=m[23];let h;if(m[24]!==Y)h=Y.length!==0&&Y.some(p0)&&Z.jsxDEV(p,{marginTop:1,children:Z.jsxDEV(P,{color:"warning",children:"Note: Only one Claude Code instance can be connected to VS Code at a time."},void 0,!1,void 0,this)},void 0,!1,void 0,this),m[24]=Y,m[25]=h;else h=m[25];let x;if(m[26]!==Y.length)x=Y.length!==0&&!g()&&Z.jsxDEV(p,{marginTop:1,children:Z.jsxDEV(P,{dimColor:!0,children:"Tip: You can enable auto-connect to IDE in /config or with the --ide flag"},void 0,!1,void 0,this)},void 0,!1,void 0,this),m[26]=Y.length,m[27]=x;else x=m[27];let u;if(m[28]!==q)u=q.length>0&&Z.jsxDEV(p,{marginTop:1,flexDirection:"column",children:[Z.jsxDEV(P,{dimColor:!0,children:["Found ",q.length," other running IDE(s). However, their workspace/project directories do not match the current cwd."]},void 0,!0,void 0,this),Z.jsxDEV(p,{marginTop:1,flexDirection:"column",children:q.map(M0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m[28]=q,m[29]=u;else u=m[29];let _;if(m[30]!==j||m[31]!==S||m[32]!==h||m[33]!==x||m[34]!==u)_=Z.jsxDEV(p,{flexDirection:"column",children:[j,S,h,x,u]},void 0,!0,void 0,this),m[30]=j,m[31]=S,m[32]=h,m[33]=x,m[34]=u,m[35]=_;else _=m[35];let v;if(m[36]!==B||m[37]!==_)v=Z.jsxDEV(f,{title:"Select IDE",subtitle:"Connect to an IDE for integrated development features.",onCancel:B,color:"ide",children:_},void 0,!1,void 0,this),m[36]=B,m[37]=_,m[38]=v;else v=m[38];return v}function M0(A,m){return Z.jsxDEV(p,{paddingLeft:3,children:Z.jsxDEV(P,{dimColor:!0,children:["• ",A.name,": ",Z0(A.workspaceFolders)]},void 0,!0,void 0,this)},m,!1,void 0,this)}function p0(A){return A.name==="VS Code"||A.name==="Visual Studio Code"}function b0(A,m){return A[m.name]=(A[m.name]||0)+1,A}async function j0(A,m){let Y=m?.ide;if(!Y||Y.type!=="sse-ide"&&Y.type!=="ws-ide")return null;for(let q of A)if(q.url===Y.url)return q;return null}function S0(A){let m=r.c(18),{availableIDEs:Y,onSelectIDE:q,onDone:J}=A,B;if(m[0]!==Y[0]?.port)B=Y[0]?.port?.toString()??"",m[0]=Y[0]?.port,m[1]=B;else B=m[1];let[K,X]=y.useState(B),z;if(m[2]!==Y||m[3]!==q)z=(L)=>{let b=Y.find((V)=>V.port===parseInt(L));q(b)},m[2]=Y,m[3]=q,m[4]=z;else z=m[4];let G=z,U;if(m[5]!==Y)U=Y.map(h0),m[5]=Y,m[6]=U;else U=m[6];let W=U,H;if(m[7]!==J)H=function(){J("IDE selection cancelled",{display:"system"})},m[7]=J,m[8]=H;else H=m[8];let Q=H,R;if(m[9]!==G)R=(L)=>{X(L),G(L)},m[9]=G,m[10]=R;else R=m[10];let N;if(m[11]!==W||m[12]!==K||m[13]!==R)N=Z.jsxDEV(w,{defaultValue:K,defaultFocusValue:K,options:W,onChange:R},void 0,!1,void 0,this),m[11]=W,m[12]=K,m[13]=R,m[14]=N;else N=m[14];let T;if(m[15]!==Q||m[16]!==N)T=Z.jsxDEV(f,{title:"Select an IDE to open the project",onCancel:Q,color:"ide",children:N},void 0,!1,void 0,this),m[15]=Q,m[16]=N,m[17]=T;else T=m[17];return T}function h0(A){return{label:A.name,value:A.port.toString()}}function x0(A){let m=r.c(15),{runningIDEs:Y,onSelectIDE:q,onDone:J}=A,[B,K]=y.useState(Y[0]??""),X;if(m[0]!==q)X=(T)=>{q(T)},m[0]=q,m[1]=X;else X=m[1];let z=X,G;if(m[2]!==Y)G=Y.map(u0),m[2]=Y,m[3]=G;else G=m[3];let U=G,W;if(m[4]!==J)W=function(){J("IDE selection cancelled",{display:"system"})},m[4]=J,m[5]=W;else W=m[5];let H=W,Q;if(m[6]!==z)Q=(T)=>{K(T),z(T)},m[6]=z,m[7]=Q;else Q=m[7];let R;if(m[8]!==U||m[9]!==B||m[10]!==Q)R=Z.jsxDEV(w,{defaultFocusValue:B,options:U,onChange:Q},void 0,!1,void 0,this),m[8]=U,m[9]=B,m[10]=Q,m[11]=R;else R=m[11];let N;if(m[12]!==H||m[13]!==R)N=Z.jsxDEV(f,{title:"Select IDE to install extension",onCancel:H,color:"ide",children:R},void 0,!1,void 0,this),m[12]=H,m[13]=R,m[14]=N;else N=m[14];return N}function u0(A){return{label:c(A),value:A}}function _0(A){let m=r.c(4),{ide:Y,onInstall:q}=A,J,B;if(m[0]!==Y||m[1]!==q)J=()=>{q(Y)},B=[Y,q],m[0]=Y,m[1]=q,m[2]=J,m[3]=B;else J=m[2],B=m[3];return y.useEffect(J,B),null}async function qm(A,m,Y){z0("tengu_ext_ide_command",{});let{options:{dynamicMcpConfig:q},onChangeDynamicMcpConfig:J}=m;if(Y?.trim()==="open"){let G=W0(),U=G?G.worktreePath:d(),H=(await s(!0)).filter((Q)=>Q.isValid);if(H.length===0)return A("No IDEs with Claude Code extension detected."),null;return Z.jsxDEV(S0,{availableIDEs:H,onSelectIDE:async(Q)=>{if(!Q){A("No IDE selected.");return}if(Q.name.toLowerCase().includes("vscode")||Q.name.toLowerCase().includes("cursor")||Q.name.toLowerCase().includes("windsurf")){let{code:R}=await q0("code",[U]);if(R===0)A(`Opened ${G?"worktree":"project"} in ${M.bold(Q.name)}`);else A(`Failed to open in ${Q.name}. Try opening manually: ${U}`)}else if(E())A(`Please open the ${G?"worktree":"project"} manually in ${M.bold(Q.name)}: ${U}`);else A(`Please open the ${G?"worktree":"project"} manually in ${M.bold(Q.name)}: ${U}`)},onDone:()=>{A("Exited without opening IDE",{display:"system"})}},void 0,!1,void 0,this)}let B=await s(!0);if(B.length===0&&m.onInstallIDEExtension&&!g()){let G=await J0(),U=(W)=>{if(m.onInstallIDEExtension)if(m.onInstallIDEExtension(W),H0(W))A(`Installed plugin to ${M.bold(c(W))}
|
|
3
|
-
Please ${M.bold("restart your IDE")} completely for it to take effect`);else A(`Installed extension to ${M.bold(c(W))}`)};if(G.length>1)return Z.jsxDEV(x0,{runningIDEs:G,onSelectIDE:U,onDone:()=>{A("No IDE selected.",{display:"system"})}},void 0,!1,void 0,this);else if(G.length===1)return Z.jsxDEV(_0,{ide:G[0],onInstall:U},void 0,!1,void 0,this)}let K=B.filter((G)=>G.isValid),X=B.filter((G)=>!G.isValid),z=await j0(K,q);return Z.jsxDEV(g0,{availableIDEs:K,unavailableIDEs:X,currentIDE:z,dynamicMcpConfig:q,onChangeDynamicMcpConfig:J,onDone:A},void 0,!1,void 0,this)}function g0({availableIDEs:A,unavailableIDEs:m,currentIDE:Y,dynamicMcpConfig:q,onChangeDynamicMcpConfig:J,onDone:B}){let[K,X]=y.useState(null),z=Q0((H)=>H.mcp.clients.find((Q)=>Q.name==="ide")),G=U0(),U=y.useRef(!0);y.useEffect(()=>{if(!K)return;if(U.current){U.current=!1;return}if(!z||z.type==="pending")return;if(z.type==="connected")B(`Connected to ${K.name}.`);else if(z.type==="failed")B(`Failed to connect to ${K.name}.`)},[z,K,B]),y.useEffect(()=>{if(!K)return;let H=setTimeout(B,C0,`Connection to ${K.name} timed out.`);return()=>clearTimeout(H)},[K,B]);let W=y.useCallback((H)=>{if(!J){B("Error connecting to IDE.");return}let Q={...q||{}};if(Y)delete Q.ide;if(!H){if(z&&z.type==="connected"&&Y)z.client.onclose=()=>{},K0("ide",z.config),G((N)=>({...N,mcp:{...N.mcp,clients:N.mcp.clients.filter((T)=>T.name!=="ide"),tools:N.mcp.tools.filter((T)=>!T.name?.startsWith("mcp__ide__")),commands:N.mcp.commands.filter((T)=>!T.name?.startsWith("mcp__ide__"))}}));J(Q),B(Y?`Disconnected from ${Y.name}.`:"No IDE selected.");return}let R=H.url;Q.ide={type:R.startsWith("ws:")?"ws-ide":"sse-ide",url:R,ideName:H.name,authToken:H.authToken,ideRunningInWindows:H.ideRunningInWindows,scope:"dynamic"},U.current=!0,X(H),J(Q)},[q,Y,z,G,J,B]);if(K)return Z.jsxDEV(P,{dimColor:!0,children:["Connecting to ",K.name,"…"]},void 0,!0,void 0,this);return Z.jsxDEV(w0,{availableIDEs:A,unavailableIDEs:m,selectedIDE:Y,onClose:()=>B("IDE selection cancelled",{display:"system"}),onSelect:W},void 0,!1,void 0,this)}function Z0(A,m=100){if(A.length===0)return"";let Y=d(),q=A.slice(0,2),J=A.length>2,B=J?3:0,K=(q.length-1)*2,X=m-K-B,z=Math.floor(X/q.length),G=Y.normalize("NFC"),W=q.map((H)=>{let Q=H.normalize("NFC");if(Q.startsWith(G+X0.sep))H=Q.slice(G.length+1);if(H.length<=z)return H;return"…"+H.slice(-(z-1))}).join(", ");if(J)W+=", …";return W}var r,y,Z,C0=35000;var V0=l(()=>{P0();L0();e();t();G0();a();k0();f0();O0();y0();n();r0();r=k(D(),1),y=k(F0(),1),Z=k(o(),1)});V0();export{Z0 as formatWorkspaceFolders,qm as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Kna as z}from"./cli-0.1.10-hyxg32sc.mjs";var g=()=>null,c=class{},q,A,l,D=!0,E=null,F,G,H,I,J=null,K=null,L,M,P,Q,R,S,U,V,W,X,Y,Z,_,$,b,i,k,u,w,y,N,O,T="service.name",h="service.version",x="service.name",d="service.version",f,m,t,e,C;var B=z(()=>{q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},A=new Proxy(g,q),l=A,F=new Proxy({},{get:()=>g}),G={parse:()=>({})},H=[],I=g,L=g,M=g,P=g,Q={SUCCESS:0,FAILED:1},R=g,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k=c,u=c,w=c,y={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},N={active:g,with:(v,j)=>j()},O={OK:0,ERROR:1,UNSET:2},f={CUMULATIVE:0,DELTA:1},m={HISTOGRAM:0,SUM:1,GAUGE:2},t={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},e=c,C={}});B();export{y as trace,R as resourceFromAttributes,M as plot,L as getSyntaxTheme,I as getMcpConfigForManifest,l as default,P as createClaudeForChromeMcpServer,N as context,D as __stub,O as SpanStatusCode,U as SimpleSpanProcessor,i as SimpleLogRecordProcessor,C as SeverityNumber,E as SandboxViolationStore,G as SandboxRuntimeConfigSchema,F as SandboxManager,d as SEMRESATTRS_SERVICE_VERSION,x as SEMRESATTRS_SERVICE_NAME,S as Resource,e as PushMetricExporter,$ as PrometheusExporter,w as PeriodicExportingMetricReader,Y as OTLPTraceExporter,_ as OTLPMetricExporter,Z as OTLPLogExporter,W as NodeTracerProvider,u as MeterProvider,b as LoggerProvider,t as InstrumentType,Q as ExportResultCode,m as DataPointType,K as ColorFile,J as ColorDiff,V as BatchSpanProcessor,k as BatchLogRecordProcessor,X as BasicTracerProvider,H as BROWSER_TOOLS,f as AggregationTemporality,h as ATTR_SERVICE_VERSION,T as ATTR_SERVICE_NAME};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{C5 as m,D5 as ms,E5 as js,F5 as Ls,G5 as Ir,H5 as qr,I5 as hs,J5 as Ts,K5 as Dt,L5 as zs,M5 as Hs,N5 as $t,O5 as j,P5 as Is,Q5 as qs,R5 as fs,S5 as Ps,T5 as gs,U5 as Cs,V5 as ls,W5 as us,X5 as Vs,Y5 as Bs}from"./cli-0.1.10-n0kq1anb.mjs";import{Z5 as It}from"./cli-0.1.10-kdqsv63d.mjs";import{nna as Os}from"./cli-0.1.10-283zk2ee.mjs";import{ona as De}from"./cli-0.1.10-nh3yfpyp.mjs";import"./cli-0.1.10-dx1a4dz7.mjs";import{tna as pr,vna as at}from"./cli-0.1.10-9rh1hjrr.mjs";import{Ana as k}from"./cli-0.1.10-7v1vvde4.mjs";import{Cna as ys}from"./cli-0.1.10-szz5tkt1.mjs";import{Dna as as}from"./cli-0.1.10-v385rk98.mjs";import{Ena as Ne}from"./cli-0.1.10-cd9k16mb.mjs";import{Fna as cs}from"./cli-0.1.10-6p8tttyp.mjs";import{Gna as we,Ina as x,Kna as So,Lna as K}from"./cli-0.1.10-hyxg32sc.mjs";var be=x((cr)=>{var Xt=k(),Zt=m(),d=Ne(),b=De(),Kt=K("node:fs"),kt=({logger:e,signingName:t}={})=>async()=>{if(e?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!t)throw new d.TokenProviderError("Please pass 'signingName' to compute environment variable key",{logger:e});let r=Zt.getBearerTokenEnvKey(t);if(!(r in process.env))throw new d.TokenProviderError(`Token not present in '${r}' environment variable`,{logger:e});let o={token:process.env[r]};return Xt.setTokenFeature(o,"BEARER_SERVICE_ENV_VARS","3"),o},er=300000,ee="To refresh this SSO session run 'aws sso login' with the corresponding profile.",tr=async(e,t={},r)=>{let{SSOOIDCClient:o}=await import("./index-0.1.10-c29w46aj.mjs").then((m)=>we(m.default)),s=(c)=>t.clientConfig?.[c]??t.parentClientConfig?.[c]??r?.[c];return new o(Object.assign({},t.clientConfig??{},{region:e??t.clientConfig?.region,logger:s("logger"),userAgentAppId:s("userAgentAppId")}))},rr=async(e,t,r={},o)=>{let{CreateTokenCommand:s}=await import("./index-0.1.10-c29w46aj.mjs").then((m)=>we(m.default));return(await tr(t,r,o)).send(new s({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))},ge=(e)=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new d.TokenProviderError(`Token is expired. ${ee}`,!1)},f=(e,t,r=!1)=>{if(typeof t>"u")throw new d.TokenProviderError(`Value not present for '${e}' in SSO Token${r?". Cannot refresh":""}. ${ee}`,!1)},{writeFile:sr}=Kt.promises,or=(e,t)=>{let r=b.getSSOTokenFilepath(e),o=JSON.stringify(t,null,2);return sr(r,o)},Ce=new Date(0),$e=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await b.parseKnownFiles(e),o=b.getProfileName({profile:e.profile??t?.profile}),s=r[o];if(!s)throw new d.TokenProviderError(`Profile '${o}' could not be found in shared credentials file.`,!1);else if(!s.sso_session)throw new d.TokenProviderError(`Profile '${o}' is missing required property 'sso_session'.`);let n=s.sso_session,p=(await b.loadSsoSessionData(e))[n];if(!p)throw new d.TokenProviderError(`Sso session '${n}' could not be found in shared credentials file.`,!1);for(let a of["sso_start_url","sso_region"])if(!p[a])throw new d.TokenProviderError(`Sso session '${n}' is missing required property '${a}'.`,!1);p.sso_start_url;let i=p.sso_region,l;try{l=await b.getSSOTokenFromFile(n)}catch(a){throw new d.TokenProviderError(`The SSO session token associated with profile=${o} was not found or is invalid. ${ee}`,!1)}f("accessToken",l.accessToken),f("expiresAt",l.expiresAt);let{accessToken:u,expiresAt:$}=l,y={token:u,expiration:new Date($)};if(y.expiration.getTime()-Date.now()>er)return y;if(Date.now()-Ce.getTime()<30000)return ge(y),y;f("clientId",l.clientId,!0),f("clientSecret",l.clientSecret,!0),f("refreshToken",l.refreshToken,!0);try{Ce.setTime(Date.now());let a=await rr(l,i,e,t);f("accessToken",a.accessToken),f("expiresIn",a.expiresIn);let O=new Date(Date.now()+a.expiresIn*1000);try{await or(n,{...l,accessToken:a.accessToken,expiresAt:O.toISOString(),refreshToken:a.refreshToken})}catch(X){}return{token:a.accessToken,expiration:O}}catch(a){return ge(y),y}},nr=({token:e,logger:t})=>async()=>{if(t?.debug("@aws-sdk/token-providers - fromStatic"),!e||!e.token)throw new d.TokenProviderError("Please pass a valid token to fromStatic",!1);return e},ar=(e={})=>d.memoize(d.chain($e(e),async()=>{throw new d.TokenProviderError("Could not load token from any providers",!1)}),(t)=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<300000,(t)=>t.expiration!==void 0);cr.fromEnvSigningName=kt;cr.fromSso=$e;cr.fromStatic=nr;cr.nodeProvider=ar});var re=x((Ae)=>{Object.defineProperty(Ae,"__esModule",{value:!0});Ae.resolveHttpAuthSchemeConfig=Ae.defaultSSOHttpAuthSchemeProvider=Ae.defaultSSOHttpAuthSchemeParametersProvider=void 0;var _r=m(),te=pr(),Er=async(e,t,r)=>{return{operation:(0,te.getSmithyContext)(t).operation,region:await(0,te.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};Ae.defaultSSOHttpAuthSchemeParametersProvider=Er;function Sr(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function Rr(e){return{schemeId:"smithy.api#noAuth"}}var xr=(e)=>{let t=[];switch(e.operation){case"GetRoleCredentials":{t.push(Rr(e));break}default:t.push(Sr(e))}return t};Ae.defaultSSOHttpAuthSchemeProvider=xr;var vr=(e)=>{let t=(0,_r.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,te.normalizeProvider)(e.authSchemePreference??[])})};Ae.resolveHttpAuthSchemeConfig=vr});var Ze=x((We)=>{Object.defineProperty(We,"__esModule",{value:!0});We.ruleSet=void 0;var Be="required",E="fn",S="argv",D="ref",Ue=!0,Me="isSet",A="booleanEquals",w="error",N="endpoint",h="tree",se="PartitionResult",oe="getAttr",Ge={[Be]:!1,type:"string"},me={[Be]:!0,default:!1,type:"boolean"},je={[D]:"Endpoint"},Ye={[E]:A,[S]:[{[D]:"UseFIPS"},!0]},Qe={[E]:A,[S]:[{[D]:"UseDualStack"},!0]},_={},Le={[E]:oe,[S]:[{[D]:se},"supportsFIPS"]},Je={[D]:se},Te={[E]:A,[S]:[!0,{[E]:oe,[S]:[Je,"supportsDualStack"]}]},ze=[Ye],He=[Qe],Ve=[{[D]:"Region"}],hr={version:"1.0",parameters:{Region:Ge,UseDualStack:me,UseFIPS:me,Endpoint:Ge},rules:[{conditions:[{[E]:Me,[S]:[je]}],rules:[{conditions:ze,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:w},{conditions:He,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:w},{endpoint:{url:je,properties:_,headers:_},type:N}],type:h},{conditions:[{[E]:Me,[S]:Ve}],rules:[{conditions:[{[E]:"aws.partition",[S]:Ve,assign:se}],rules:[{conditions:[Ye,Qe],rules:[{conditions:[{[E]:A,[S]:[Ue,Le]},Te],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:_,headers:_},type:N}],type:h},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:w}],type:h},{conditions:ze,rules:[{conditions:[{[E]:A,[S]:[Le,Ue]}],rules:[{conditions:[{[E]:"stringEquals",[S]:[{[E]:oe,[S]:[Je,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:_,headers:_},type:N},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:_,headers:_},type:N}],type:h},{error:"FIPS is enabled but this partition does not support FIPS",type:w}],type:h},{conditions:He,rules:[{conditions:[Te],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:_,headers:_},type:N}],type:h},{error:"DualStack is enabled but this partition does not support DualStack",type:w}],type:h},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:_,headers:_},type:N}],type:h}],type:h},{error:"Invalid Configuration: Missing Region",type:w}]};We.ruleSet=hr});var et=x((Ke)=>{Object.defineProperty(Ke,"__esModule",{value:!0});Ke.defaultEndpointResolver=void 0;var fr=qr(),ne=Ir(),Pr=Ze(),gr=new ne.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Cr=(e,t={})=>{return gr.get(e,()=>(0,ne.resolveEndpoint)(Pr.ruleSet,{endpointParams:e,logger:t.logger}))};Ke.defaultEndpointResolver=Cr;ne.customEndpointFunctions.aws=fr.awsEndpointFunctions});var L=x((ce)=>{Object.defineProperty(ce,"__esModule",{value:!0});ce.SSOServiceException=ce.__ServiceException=void 0;var tt=j();Object.defineProperty(ce,"__ServiceException",{enumerable:!0,get:function(){return tt.ServiceException}});class ae extends tt.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ae.prototype)}}ce.SSOServiceException=ae});var pe=x((st)=>{Object.defineProperty(st,"__esModule",{value:!0});st.UnauthorizedException=st.TooManyRequestsException=st.ResourceNotFoundException=st.InvalidRequestException=void 0;var T=L();class le extends T.SSOServiceException{name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,le.prototype)}}st.InvalidRequestException=le;class ue extends T.SSOServiceException{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ue.prototype)}}st.ResourceNotFoundException=ue;class ie extends T.SSOServiceException{name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});Object.setPrototypeOf(this,ie.prototype)}}st.TooManyRequestsException=ie;class de extends T.SSOServiceException{name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});Object.setPrototypeOf(this,de.prototype)}}st.UnauthorizedException=de});var _e=x((it)=>{Object.defineProperty(it,"__esModule",{value:!0});it.GetRoleCredentials$=it.RoleCredentials$=it.GetRoleCredentialsResponse$=it.GetRoleCredentialsRequest$=it.errorTypeRegistries=it.UnauthorizedException$=it.TooManyRequestsException$=it.ResourceNotFoundException$=it.InvalidRequestException$=it.SSOServiceException$=void 0;var $r="AccessTokenType",br="GetRoleCredentials",Ar="GetRoleCredentialsRequest",Fr="GetRoleCredentialsResponse",Ur="InvalidRequestException",Mr="RoleCredentials",Gr="ResourceNotFoundException",mr="SecretAccessKeyType",jr="SessionTokenType",Lr="TooManyRequestsException",Tr="UnauthorizedException",zr="accountId",Hr="accessKeyId",Vr="accessToken",Br="account_id",z="client",H="error",Yr="expiration",Qr="http",V="httpError",Jr="httpHeader",nt="httpQuery",B="message",Wr="roleCredentials",Xr="roleName",Zr="role_name",ct="smithy.ts.sdk.synthetic.com.amazonaws.sso",Kr="secretAccessKey",kr="sessionToken",es="x-amz-sso_bearer_token",R="com.amazonaws.sso",lt=at(),Y=pe(),ts=L(),ut=lt.TypeRegistry.for(ct);it.SSOServiceException$=[-3,ct,"SSOServiceException",0,[],[]];ut.registerError(it.SSOServiceException$,ts.SSOServiceException);var F=lt.TypeRegistry.for(R);it.InvalidRequestException$=[-3,R,Ur,{[H]:z,[V]:400},[B],[0]];F.registerError(it.InvalidRequestException$,Y.InvalidRequestException);it.ResourceNotFoundException$=[-3,R,Gr,{[H]:z,[V]:404},[B],[0]];F.registerError(it.ResourceNotFoundException$,Y.ResourceNotFoundException);it.TooManyRequestsException$=[-3,R,Lr,{[H]:z,[V]:429},[B],[0]];F.registerError(it.TooManyRequestsException$,Y.TooManyRequestsException);it.UnauthorizedException$=[-3,R,Tr,{[H]:z,[V]:401},[B],[0]];F.registerError(it.UnauthorizedException$,Y.UnauthorizedException);it.errorTypeRegistries=[ut,F];var rs=[0,R,$r,8,0],ss=[0,R,mr,8,0],os=[0,R,jr,8,0];it.GetRoleCredentialsRequest$=[3,R,Ar,0,[Xr,zr,Vr],[[0,{[nt]:Zr}],[0,{[nt]:Br}],[()=>rs,{[Jr]:es}]],3];it.GetRoleCredentialsResponse$=[3,R,Fr,0,[Wr],[[()=>it.RoleCredentials$,0]]];it.RoleCredentials$=[3,R,Mr,0,[Hr,Kr,kr,Yr],[0,[()=>ss,0],[()=>os,0],1]];it.GetRoleCredentials$=[9,R,br,{[Qr]:["GET","/federation/credentials",200]},()=>it.GetRoleCredentialsRequest$,()=>it.GetRoleCredentialsResponse$]});var Pt=x((qt)=>{Object.defineProperty(qt,"__esModule",{value:!0});qt.getRuntimeConfig=void 0;var is=m(),ds=ls(),ps=It(),_s=j(),Es=as(),Ot=us(),ht=cs(),Ss=re(),Rs=et(),xs=_e(),vs=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Ot.fromBase64,base64Encoder:e?.base64Encoder??Ot.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Rs.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Ss.defaultSSOHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new is.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ps.NoAuthSigner}],logger:e?.logger??new _s.NoOpLogger,protocol:e?.protocol??ds.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:xs.errorTypeRegistries,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??Es.parseUrl,utf8Decoder:e?.utf8Decoder??ht.fromUtf8,utf8Encoder:e?.utf8Encoder??ht.toUtf8}};qt.getRuntimeConfig=vs});var Ft=x((bt)=>{Object.defineProperty(bt,"__esModule",{value:!0});bt.getRuntimeConfig=void 0;var ws=Is(),Ns=ws.__importDefault(qs()),Ds=k(),$s=m(),gt=fs(),Q=Dt(),bs=Ps(),Ct=$t(),P=Os(),wt=ys(),Nt=j(),As=gs(),Fs=Cs(),Us=hs(),Ms=Pt(),Gs=(e)=>{(0,Nt.emitWarningIfUnsupportedVersion)(process.version);let t=(0,Fs.resolveDefaultsModeConfig)(e),r=()=>t().then(Nt.loadConfigsForDefaultMode),o=(0,Ms.getRuntimeConfig)(e);(0,Ds.emitWarningIfUnsupportedVersion)(process.version);let s={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,P.loadConfig)($s.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:e?.bodyLengthChecker??As.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,gt.createDefaultUserAgentProvider)({serviceId:o.serviceId,clientVersion:Ns.default.version}),maxAttempts:e?.maxAttempts??(0,P.loadConfig)(Ct.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,P.loadConfig)(Q.NODE_REGION_CONFIG_OPTIONS,{...Q.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:wt.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,P.loadConfig)({...Ct.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await r()).retryMode||Us.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??bs.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??wt.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,P.loadConfig)(Q.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:e?.useFipsEndpoint??(0,P.loadConfig)(Q.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:e?.userAgentAppId??(0,P.loadConfig)(gt.NODE_APP_ID_CONFIG_OPTIONS,s)}};bt.getRuntimeConfig=Gs});var zt=x((I)=>{var Ut=ms(),Ys=js(),Qs=Ls(),Mt=Ts(),Js=Dt(),Ee=It(),Ws=at(),Xs=zs(),Tt=Hs(),Gt=$t(),g=j(),mt=re(),Zs=Ft(),jt=Vs(),Lt=Bs(),U=_e(),J=pe(),Ks=L(),ks=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"})},eo={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},to=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:r,credentials:o}=e;return{setHttpAuthScheme(s){let n=t.findIndex((c)=>c.schemeId===s.schemeId);if(n===-1)t.push(s);else t.splice(n,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){o=s},credentials(){return o}}},ro=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},so=(e,t)=>{let r=Object.assign(jt.getAwsRegionExtensionConfiguration(e),g.getDefaultExtensionConfiguration(e),Lt.getHttpHandlerExtensionConfiguration(e),to(e));return t.forEach((o)=>o.configure(r)),Object.assign(e,jt.resolveAwsRegionExtensionConfiguration(r),g.resolveDefaultRuntimeConfig(r),Lt.resolveHttpHandlerRuntimeConfig(r),ro(r))};class Se extends g.Client{config;constructor(...[e]){let t=Zs.getRuntimeConfig(e||{});super(t);this.initConfig=t;let r=ks(t),o=Mt.resolveUserAgentConfig(r),s=Gt.resolveRetryConfig(o),n=Js.resolveRegionConfig(s),c=Ut.resolveHostHeaderConfig(n),p=Tt.resolveEndpointConfig(c),i=mt.resolveHttpAuthSchemeConfig(p),l=so(i,e?.extensions||[]);this.config=l,this.middlewareStack.use(Ws.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(Mt.getUserAgentPlugin(this.config)),this.middlewareStack.use(Gt.getRetryPlugin(this.config)),this.middlewareStack.use(Xs.getContentLengthPlugin(this.config)),this.middlewareStack.use(Ut.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Ys.getLoggerPlugin(this.config)),this.middlewareStack.use(Qs.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(Ee.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:mt.defaultSSOHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(u)=>new Ee.DefaultIdentityProviderConfig({"aws.auth#sigv4":u.credentials})})),this.middlewareStack.use(Ee.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class Re extends g.Command.classBuilder().ep(eo).m(function(e,t,r,o){return[Tt.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(U.GetRoleCredentials$).build(){}var oo={GetRoleCredentialsCommand:Re};class xe extends Se{}g.createAggregatedClient(oo,xe);I.$Command=g.Command;I.__Client=g.Client;I.SSOServiceException=Ks.SSOServiceException;I.GetRoleCredentialsCommand=Re;I.SSO=xe;I.SSOClient=Se;Object.prototype.hasOwnProperty.call(U,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:U.__proto__});Object.keys(U).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=U[e]});Object.prototype.hasOwnProperty.call(J,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:J.__proto__});Object.keys(J).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=J[e]})});var Vt=x((po)=>{var Ht=zt();po.GetRoleCredentialsCommand=Ht.GetRoleCredentialsCommand;po.SSOClient=Ht.SSOClient});var v,W,Bt,Ro,Qt=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string"),M=!1,Yt=async({ssoStartUrl:e,ssoSession:t,ssoAccountId:r,ssoRegion:o,ssoRoleName:s,ssoClient:n,clientConfig:c,parentClientConfig:p,callerClientConfig:i,profile:l,filepath:u,configFilepath:$,ignoreCache:y,logger:a})=>{let O,X="To refresh this SSO session run aws sso login with the corresponding profile.";if(t)try{let q=await Ro.fromSso({profile:l,filepath:u,configFilepath:$,ignoreCache:y})();O={accessToken:q.token,expiresAt:new Date(q.expiration).toISOString()}}catch(q){throw new v.CredentialsProviderError(q.message,{tryNextLink:M,logger:a})}else try{O=await W.getSSOTokenFromFile(e)}catch(q){throw new v.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:M,logger:a})}if(new Date(O.expiresAt).getTime()-Date.now()<=0)throw new v.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:M,logger:a});let{accessToken:ve}=O,{SSOClient:C,GetRoleCredentialsCommand:G}=await Promise.resolve().then(function(){return Vt()}),Wt=n||new C(Object.assign({},c??{},{logger:c?.logger??i?.logger??p?.logger,region:c?.region??o,userAgentAppId:c?.userAgentAppId??i?.userAgentAppId??p?.userAgentAppId})),ye;try{ye=await Wt.send(new G({accountId:r,roleName:s,accessToken:ve}))}catch(q){throw new v.CredentialsProviderError(q,{tryNextLink:M,logger:a})}let{roleCredentials:{accessKeyId:Oe,secretAccessKey:he,sessionToken:Ie,expiration:qe,credentialScope:fe,accountId:Pe}={}}=ye;if(!Oe||!he||!Ie||!qe)throw new v.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:M,logger:a});let Z={accessKeyId:Oe,secretAccessKey:he,sessionToken:Ie,expiration:new Date(qe),...fe&&{credentialScope:fe},...Pe&&{accountId:Pe}};if(t)Bt.setCredentialFeature(Z,"CREDENTIALS_SSO","s");else Bt.setCredentialFeature(Z,"CREDENTIALS_SSO_LEGACY","u");return Z},Jt=(e,t)=>{let{sso_start_url:r,sso_account_id:o,sso_region:s,sso_role_name:n}=e;if(!r||!o||!s||!n)throw new v.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
|
|
2
|
-
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:t});return e},xo=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:o,ssoRegion:s,ssoRoleName:n,ssoSession:c}=e,{ssoClient:p}=e,i=W.getProfileName({profile:e.profile??t?.profile});if(!r&&!o&&!s&&!n&&!c){let u=(await W.parseKnownFiles(e))[i];if(!u)throw new v.CredentialsProviderError(`Profile ${i} was not found.`,{logger:e.logger});if(!Qt(u))throw new v.CredentialsProviderError(`Profile ${i} is not configured with SSO credentials.`,{logger:e.logger});if(u?.sso_session){let C=(await W.loadSsoSessionData(e))[u.sso_session],G=` configurations in profile ${i} and sso-session ${u.sso_session}`;if(s&&s!==C.sso_region)throw new v.CredentialsProviderError("Conflicting SSO region"+G,{tryNextLink:!1,logger:e.logger});if(r&&r!==C.sso_start_url)throw new v.CredentialsProviderError("Conflicting SSO start_url"+G,{tryNextLink:!1,logger:e.logger});u.sso_region=C.sso_region,u.sso_start_url=C.sso_start_url}let{sso_start_url:$,sso_account_id:y,sso_region:a,sso_role_name:O,sso_session:X}=Jt(u,e.logger);return Yt({ssoStartUrl:$,ssoSession:X,ssoAccountId:y,ssoRegion:a,ssoRoleName:O,ssoClient:p,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:i,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}else if(!r||!o||!s||!n)throw new v.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger});else return Yt({ssoStartUrl:r,ssoSession:c,ssoAccountId:o,ssoRegion:s,ssoRoleName:n,ssoClient:p,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:i,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})},vo,yo,Oo;var ho=So(()=>{v=Ne(),W=De(),Bt=k(),Ro=be();vo=xo,yo=Qt,Oo=Jt});ho();export{Oo as validateSsoProfile,yo as isSsoProfile,vo as fromSSO};export default {get validateSsoProfile(){return Oo},get isSsoProfile(){return yo},get fromSSO(){return vo}};
|