@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,24 +0,0 @@
|
|
|
1
|
-
import{ua as VY}from"./cli-0.1.10-tf9dk84p.mjs";import{bb as zY}from"./cli-0.1.10-4jsc4zm5.mjs";import{Ih as Q9,Jh as CW}from"./cli-0.1.10-s4x77tm0.mjs";import{$F as y9,CH as G9,Cs as k0,Ds as kZ,Dy as M0,EH as J9,Es as x0,Fs as p0,GD as JY,Gs as u0,Gy as E0,HD as mQ,Hs as m0,Hy as CZ,Is as xZ,Js as pZ,KH as H9,KJ as I0,Ko as UZ,Ks as c0,LD as a,LG as dY,Ls as g0,Ly as l9,MN as z9,Mk as w9,Ms as d0,ND as TW,NJ as a9,Nk as mW,No as yZ,Ns as l0,OG as PW,Oo as f0,Os as a0,PH as wZ,Ps as n0,Qs as i0,Rs as r0,Ss as o0,Tm as eZ,Ts as KQ,Tt as Y9,Um as K0,VF as O9,Vm as DZ,Wm as G0,Wt as IW,XF as U9,YG as fZ,YN as V9,aH as r,aL as N9,bF as W9,bq as bY,cF as RW,cq as LW,dO as BY,do as GY,dq as IY,eo as uQ,ep as Z9,eq as CY,fq as FZ,gG as cW,gH as QZ,gp as bW,gq as iZ,hq as TY,iq as YZ,jJ as HY,jL as B9,jq as rZ,jv as F0,kH as SZ,kq as RY,kv as g9,lJ as cQ,lL as L9,lq as fY,mF as X9,mq as vY,nF as K9,oF as fW,ox as S0,pL as SW,px as QQ,qO as LY,uy as D0,vH as b0,vy as d9,xN as NY,yN as gQ}from"./cli-0.1.10-y9mkzh11.mjs";import{WR as $0,XR as m9}from"./cli-0.1.10-wajz23ff.mjs";import{AS as U0,BS as p9,OS as y0,PS as P0,QS as u9,WS as j0,XS as c9}from"./cli-0.1.10-xzz1tdne.mjs";import{KU as x,MU as M,_S as k9,pV as x9}from"./cli-0.1.10-gms4557v.mjs";import{kX as J0}from"./cli-0.1.10-v6gq9bxc.mjs";import{lX as h9}from"./cli-0.1.10-28zx3btb.mjs";import{XX as rY,YX as oY,ZX as DW,iY as sY,vY as MW}from"./cli-0.1.10-acy8ec7t.mjs";import{AY as KW,wY as UY}from"./cli-0.1.10-hbk3dhq8.mjs";import{C2 as UW,b5 as yW,e4 as gY,y2 as cY}from"./cli-0.1.10-vrd90nhd.mjs";import{Aaa as mY,D7 as _0,E7 as qZ,F7 as R9,G8 as xW,Jaa as OW,N9 as pW,Q9 as OY,V9 as XW,h7 as KY,h8 as v9,j7 as pQ,m9 as IZ,o$ as _9,o9 as f9,p7 as A0,r9 as A9,s7 as T9,v$ as uW,y7 as s}from"./cli-0.1.10-mt6tj76h.mjs";import{Oda as Y,Pda as h,Qda as KZ,Rda as v,Sda as OZ}from"./cli-0.1.10-2mqddc7q.mjs";import{$da as N0,Vda as xY,Wda as _W,Yda as bZ,aea as B0,bea as L0,cea as z0,fea as V0,gea as q0,sea as v0,yea as C9}from"./cli-0.1.10-4n8p34vn.mjs";import{Jea as pY,Kea as uY,Mea as wW}from"./cli-0.1.10-a4p945wp.mjs";import{Xea as qY,gfa as oQ}from"./cli-0.1.10-w1hqcxj1.mjs";import{Cfa as O0,Gfa as S9,ufa as w0}from"./cli-0.1.10-nzxw7p2m.mjs";import{Yfa as g,Zfa as _Z}from"./cli-0.1.10-f2jh6yv0.mjs";import{Cga as cZ,Ega as t,Fga as WY,Iga as $Z,Wga as E,Zga as XZ,aga as wY,cga as WW,oga as QY,wga as q9,xga as lZ}from"./cli-0.1.10-e4qewc1p.mjs";import{nha as XY,rha as xQ}from"./cli-0.1.10-pw67rrjr.mjs";import{$ia as Z0,Cla as DY,Dla as LZ,Ela as MY,Gla as EY,Lma as iY,Oma as NZ,Via as HZ,aja as _Y,ika as kY}from"./cli-0.1.10-mqgz2v10.mjs";import{Gna as vZ,Jna as RZ,Kna as AZ,Lna as oZ}from"./cli-0.1.10-hyxg32sc.mjs";var ZQ={};RZ(ZQ,{selectableUserMessagesFilter:()=>R0,messagesAfterAreOnlySynthetic:()=>e9,MessageSelector:()=>i9});import{randomUUID as n9}from"crypto";import*as ZZ from"path";function C0(Q){return Q.type==="text"}function TZ(Q){return Q==="summarize"||Q==="summarize_up_to"}function i9({messages:Q,onPreRestore:Z,onRestoreMessage:W,onRestoreCode:X,onSummarize:K,onClose:H,preselectedMessage:G}){let N=I0((P)=>P.fileHistory),[z,q]=b.useState(void 0),J=M0(),V=b.useMemo(n9,[]),U=b.useMemo(()=>[...Q.filter(R0),{...r({content:""}),uuid:V}],[Q,V]),[_,O]=b.useState(U.length-1),j=Math.max(0,Math.min(_-Math.floor(EZ/2),U.length-EZ)),I=U.length>1,[A,F]=b.useState(G),[$,C]=b.useState(void 0);b.useEffect(()=>{if(!G||!J)return;let P=!1;return CZ(N,G.uuid).then((R)=>{if(!P)C(R)}),()=>{P=!0}},[G,J,N]);let[y,D]=b.useState(!1),[d,l]=b.useState(null),[f,u]=b.useState("both"),[c,k]=b.useState(""),[w,L]=b.useState("");function T(P){let R=P?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],p={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return R.push({value:"summarize",label:"Summarize from here",...p,onChange:k}),R.push({value:"nevermind",label:"Never mind"}),R}b.useEffect(()=>{g("tengu_message_selector_opened",{})},[]);async function S(P){Z(),D(!0);try{await W(P),D(!1),H()}catch(R){s(R),D(!1),q(`Failed to restore the conversation:
|
|
2
|
-
${R}`)}}async function n(P){let R=Q.indexOf(P),p=Q.length-1-R;if(g("tengu_message_selector_selected",{index_from_end:p,message_type:P.type,is_current_prompt:!1}),!Q.includes(P)){H();return}if(!J){await S(P);return}let m=await CZ(N,P.uuid);F(P),C(m)}async function o(P){if(g("tengu_message_selector_restore_option_selected",{option:P}),!A){q("Message not found.");return}if(P==="nevermind"){if(G)H();else F(void 0);return}if(TZ(P)){Z(),D(!0),l(P),q(void 0);try{let m=P==="summarize_up_to"?"up_to":"from",e=(m==="up_to"?w:c).trim()||void 0;await K(A,e,m),D(!1),l(null),F(void 0),H()}catch(m){s(m),D(!1),l(null),F(void 0),q(`Failed to summarize:
|
|
3
|
-
${m}`)}return}Z(),D(!0),q(void 0);let R=null,p=null;if(P==="code"||P==="both")try{await X(A)}catch(m){R=m,s(R)}if(P==="conversation"||P==="both")try{await W(A)}catch(m){p=m,s(p)}if(D(!1),F(void 0),p&&R)q(`Failed to restore the conversation and code:
|
|
4
|
-
${p}
|
|
5
|
-
${R}`);else if(p)q(`Failed to restore the conversation:
|
|
6
|
-
${p}`);else if(R)q(`Failed to restore the code:
|
|
7
|
-
${R}`);else H()}let Y0=$0(),$9=b.useCallback(()=>{if(A&&!G){F(void 0);return}g("tengu_message_selector_cancelled",{}),H()},[H,A,G]),j9=b.useCallback(()=>O((P)=>Math.max(0,P-1)),[]),F9=b.useCallback(()=>O((P)=>Math.min(U.length-1,P+1)),[U.length]),D9=b.useCallback(()=>O(0),[]),M9=b.useCallback(()=>O(U.length-1),[U.length]),E9=b.useCallback(()=>{let P=U[_];if(P)n(P)},[U,_,n]);y0("confirm:no",$9,{context:"Confirmation",isActive:!A}),P0({"messageSelector:up":j9,"messageSelector:down":F9,"messageSelector:top":D9,"messageSelector:bottom":M9,"messageSelector:select":E9},{context:"MessageSelector",isActive:!y&&!z&&!A&&I});let[Q0,W0]=b.useState({});b.useEffect(()=>{async function P(){if(!J)return;Promise.all(U.map(async(R,p)=>{if(R.uuid!==V){let m=E0(N,R.uuid),e=U.at(p+1),VZ=m?t9(Q,R.uuid,e?.uuid!==V?e?.uuid:void 0):void 0;if(VZ!==void 0)W0((i)=>({...i,[p]:VZ}));else W0((i)=>({...i,[p]:void 0}))}}))}P()},[U,Q,V,N,J]);let zZ=J&&$?.filesChanged&&$.filesChanged.length>0,b9=!z&&!A&&!G&&I;return B.jsxDEV(x,{flexDirection:"column",width:"100%",children:[B.jsxDEV(j0,{color:"suggestion"},void 0,!1,void 0,this),B.jsxDEV(x,{flexDirection:"column",marginX:1,gap:1,children:[B.jsxDEV(M,{bold:!0,color:"suggestion",children:"Rewind"},void 0,!1,void 0,this),z&&B.jsxDEV(B.Fragment,{children:B.jsxDEV(M,{color:"error",children:["Error: ",z]},void 0,!0,void 0,this)},void 0,!1,void 0,this),!I&&B.jsxDEV(B.Fragment,{children:B.jsxDEV(M,{children:"Nothing to rewind to yet."},void 0,!1,void 0,this)},void 0,!1,void 0,this),!z&&A&&I&&B.jsxDEV(B.Fragment,{children:[B.jsxDEV(M,{children:["Confirm you want to restore"," ",!$&&"the conversation ","to the point before you sent this message:"]},void 0,!0,void 0,this),B.jsxDEV(x,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[B.jsxDEV(H0,{userMessage:A,color:"text",isCurrent:!1},void 0,!1,void 0,this),B.jsxDEV(M,{dimColor:!0,children:["(",O0(new Date(A.timestamp)),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),B.jsxDEV(o9,{selectedRestoreOption:f,canRestoreCode:!!zZ,diffStatsForRestore:$},void 0,!1,void 0,this),y&&TZ(d)?B.jsxDEV(x,{flexDirection:"row",gap:1,children:[B.jsxDEV(D0,{},void 0,!1,void 0,this),B.jsxDEV(M,{children:"Summarizing…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):B.jsxDEV(F0,{isDisabled:y,options:T(!!zZ),defaultFocusValue:zZ?"both":"conversation",onFocus:(P)=>u(P),onChange:(P)=>o(P),onCancel:()=>G?H():F(void 0)},void 0,!1,void 0,this),zZ&&B.jsxDEV(x,{marginBottom:1,children:B.jsxDEV(M,{dimColor:!0,children:[qZ.warning," Rewinding does not affect files edited manually or via bash."]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),b9&&B.jsxDEV(B.Fragment,{children:[J?B.jsxDEV(M,{children:"Restore the code and/or conversation to the point before…"},void 0,!1,void 0,this):B.jsxDEV(M,{children:"Restore and fork the conversation to the point before…"},void 0,!1,void 0,this),B.jsxDEV(x,{width:"100%",flexDirection:"column",children:U.slice(j,j+EZ).map((P,R)=>{let p=j+R,m=p===_,e=P.uuid===V,VZ=p in Q0,i=Q0[p],MZ=i?.filesChanged&&i.filesChanged.length;return B.jsxDEV(x,{height:J?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[B.jsxDEV(x,{width:2,minWidth:2,children:m?B.jsxDEV(M,{color:"permission",bold:!0,children:[qZ.pointer," "]},void 0,!0,void 0,this):B.jsxDEV(M,{children:" "},void 0,!1,void 0,this)},void 0,!1,void 0,this),B.jsxDEV(x,{flexDirection:"column",children:[B.jsxDEV(x,{flexShrink:1,height:1,overflow:"hidden",children:B.jsxDEV(H0,{userMessage:P,color:m?"suggestion":void 0,isCurrent:e,paddingRight:10},void 0,!1,void 0,this)},void 0,!1,void 0,this),J&&VZ&&B.jsxDEV(x,{height:1,flexDirection:"row",children:i?B.jsxDEV(B.Fragment,{children:B.jsxDEV(M,{dimColor:!m,color:"inactive",children:MZ?B.jsxDEV(B.Fragment,{children:[MZ===1&&i.filesChanged[0]?`${ZZ.basename(i.filesChanged[0])} `:`${MZ} files changed `,B.jsxDEV(T0,{diffStats:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this):B.jsxDEV(B.Fragment,{children:"No code changes"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this):B.jsxDEV(M,{dimColor:!0,color:"warning",children:[qZ.warning," No code restore"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},P.uuid,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!A&&B.jsxDEV(M,{dimColor:!0,italic:!0,children:Y0.pending?B.jsxDEV(B.Fragment,{children:["Press ",Y0.keyName," again to exit"]},void 0,!0,void 0,this):B.jsxDEV(B.Fragment,{children:[!z&&I&&"Enter to continue · ","Esc to exit"]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function r9(Q){switch(Q){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function o9(Q){let Z=WZ.c(11),{selectedRestoreOption:W,canRestoreCode:X,diffStatsForRestore:K}=Q,H=X&&(W==="both"||W==="code"),G;if(Z[0]!==W)G=r9(W),Z[0]=W,Z[1]=G;else G=Z[1];let N;if(Z[2]!==G)N=B.jsxDEV(M,{dimColor:!0,children:G},void 0,!1,void 0,this),Z[2]=G,Z[3]=N;else N=Z[3];let z;if(Z[4]!==K||Z[5]!==W||Z[6]!==H)z=!TZ(W)&&(H?B.jsxDEV(s9,{diffStatsForRestore:K},void 0,!1,void 0,this):B.jsxDEV(M,{dimColor:!0,children:"The code will be unchanged."},void 0,!1,void 0,this)),Z[4]=K,Z[5]=W,Z[6]=H,Z[7]=z;else z=Z[7];let q;if(Z[8]!==N||Z[9]!==z)q=B.jsxDEV(x,{flexDirection:"column",children:[N,z]},void 0,!0,void 0,this),Z[8]=N,Z[9]=z,Z[10]=q;else q=Z[10];return q}function s9(Q){let Z=WZ.c(14),{diffStatsForRestore:W}=Q;if(W===void 0)return;if(!W.filesChanged||!W.filesChanged[0]){let N;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))N=B.jsxDEV(M,{dimColor:!0,children:"The code has not changed (nothing will be restored)."},void 0,!1,void 0,this),Z[0]=N;else N=Z[0];return N}let X=W.filesChanged.length,K;if(X===1){let N;if(Z[1]!==W.filesChanged[0])N=ZZ.basename(W.filesChanged[0]||""),Z[1]=W.filesChanged[0],Z[2]=N;else N=Z[2];K=N}else if(X===2){let N;if(Z[3]!==W.filesChanged[0])N=ZZ.basename(W.filesChanged[0]||""),Z[3]=W.filesChanged[0],Z[4]=N;else N=Z[4];let z=N,q;if(Z[5]!==W.filesChanged[1])q=ZZ.basename(W.filesChanged[1]||""),Z[5]=W.filesChanged[1],Z[6]=q;else q=Z[6];K=`${z} and ${q}`}else{let N;if(Z[7]!==W.filesChanged[0])N=ZZ.basename(W.filesChanged[0]||""),Z[7]=W.filesChanged[0],Z[8]=N;else N=Z[8];K=`${N} and ${W.filesChanged.length-1} other files`}let H;if(Z[9]!==W)H=B.jsxDEV(T0,{diffStats:W},void 0,!1,void 0,this),Z[9]=W,Z[10]=H;else H=Z[10];let G;if(Z[11]!==K||Z[12]!==H)G=B.jsxDEV(B.Fragment,{children:B.jsxDEV(M,{dimColor:!0,children:["The code will be restored"," ",H," in ",K,"."]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Z[11]=K,Z[12]=H,Z[13]=G;else G=Z[13];return G}function T0(Q){let Z=WZ.c(7),{diffStats:W}=Q;if(!W||!W.filesChanged)return;let X;if(Z[0]!==W.insertions)X=B.jsxDEV(M,{color:"diffAddedWord",children:["+",W.insertions," "]},void 0,!0,void 0,this),Z[0]=W.insertions,Z[1]=X;else X=Z[1];let K;if(Z[2]!==W.deletions)K=B.jsxDEV(M,{color:"diffRemovedWord",children:["-",W.deletions]},void 0,!0,void 0,this),Z[2]=W.deletions,Z[3]=K;else K=Z[3];let H;if(Z[4]!==X||Z[5]!==K)H=B.jsxDEV(B.Fragment,{children:[X,K]},void 0,!0,void 0,this),Z[4]=X,Z[5]=K,Z[6]=H;else H=Z[6];return H}function H0(Q){let Z=WZ.c(31),{userMessage:W,color:X,dimColor:K,isCurrent:H,paddingRight:G}=Q,{columns:N}=U0();if(H){let C;if(Z[0]!==X||Z[1]!==K)C=B.jsxDEV(x,{width:"100%",children:B.jsxDEV(M,{italic:!0,color:X,dimColor:K,children:"(current)"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z[0]=X,Z[1]=K,Z[2]=C;else C=Z[2];return C}let z=W.message.content,q=typeof z==="string"?null:z[z.length-1],J,V,U,_,O,j,I,A;if(Z[3]!==X||Z[4]!==N||Z[5]!==z||Z[6]!==K||Z[7]!==q||Z[8]!==G){A=Symbol.for("react.early_return_sentinel");Z:{let C=typeof z==="string"?z.trim():q&&C0(q)?q.text.trim():"(no prompt)",y=A0(C);if(b0(y)){let D;if(Z[17]!==X||Z[18]!==K)D=B.jsxDEV(x,{flexDirection:"row",width:"100%",children:B.jsxDEV(M,{italic:!0,color:X,dimColor:K,children:"((empty message))"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z[17]=X,Z[18]=K,Z[19]=D;else D=Z[19];A=D;break Z}if(y.includes("<bash-input>")){let D=QZ(y,"bash-input");if(D){let d;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))d=B.jsxDEV(M,{color:"bashBorder",children:"!"},void 0,!1,void 0,this),Z[20]=d;else d=Z[20];A=B.jsxDEV(x,{flexDirection:"row",width:"100%",children:[d,B.jsxDEV(M,{color:X,dimColor:K,children:[" ",D]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);break Z}}if(y.includes(`<${bZ}>`)){let D=QZ(y,bZ),d=QZ(y,"command-args"),l=QZ(y,"skill-format")==="true";if(D)if(l){A=B.jsxDEV(x,{flexDirection:"row",width:"100%",children:B.jsxDEV(M,{color:X,dimColor:K,children:["Skill(",D,")"]},void 0,!0,void 0,this)},void 0,!1,void 0,this);break Z}else{A=B.jsxDEV(x,{flexDirection:"row",width:"100%",children:B.jsxDEV(M,{color:X,dimColor:K,children:["/",D," ",d]},void 0,!0,void 0,this)},void 0,!1,void 0,this);break Z}}V=x,j="row",I="100%",J=M,U=X,_=K,O=G?w0(y,N-G,!0):y.slice(0,500).split(`
|
|
8
|
-
`).slice(0,4).join(`
|
|
9
|
-
`)}Z[3]=X,Z[4]=N,Z[5]=z,Z[6]=K,Z[7]=q,Z[8]=G,Z[9]=J,Z[10]=V,Z[11]=U,Z[12]=_,Z[13]=O,Z[14]=j,Z[15]=I,Z[16]=A}else J=Z[9],V=Z[10],U=Z[11],_=Z[12],O=Z[13],j=Z[14],I=Z[15],A=Z[16];if(A!==Symbol.for("react.early_return_sentinel"))return A;let F;if(Z[21]!==J||Z[22]!==U||Z[23]!==_||Z[24]!==O)F=B.jsxDEV(J,{color:U,dimColor:_,children:O},void 0,!1,void 0,this),Z[21]=J,Z[22]=U,Z[23]=_,Z[24]=O,Z[25]=F;else F=Z[25];let $;if(Z[26]!==V||Z[27]!==j||Z[28]!==I||Z[29]!==F)$=B.jsxDEV(V,{flexDirection:j,width:I,children:F},void 0,!1,void 0,this),Z[26]=V,Z[27]=j,Z[28]=I,Z[29]=F,Z[30]=$;else $=Z[30];return $}function t9(Q,Z,W){let X=Q.findIndex((z)=>z.uuid===Z);if(X===-1)return;let K=W?Q.findIndex((z)=>z.uuid===W):Q.length;if(K===-1)K=Q.length;let H=[],G=0,N=0;for(let z=X+1;z<K;z++){let q=Q[z];if(!q||!SZ(q))continue;let J=q.toolUseResult;if(!J||!J.filePath||!J.structuredPatch)continue;if(!H.includes(J.filePath))H.push(J.filePath);try{if("type"in J&&J.type==="create")G+=J.content.split(/\r?\n/).length;else for(let V of J.structuredPatch){let U=IZ(V.lines,(O)=>O.startsWith("+")),_=IZ(V.lines,(O)=>O.startsWith("-"));G+=U,N+=_}}catch{continue}}return{filesChanged:H,insertions:G,deletions:N}}function R0(Q){if(Q.type!=="user")return!1;if(Array.isArray(Q.message.content)&&Q.message.content[0]?.type==="tool_result")return!1;if(fZ(Q))return!1;if(Q.isMeta)return!1;if(Q.isCompactSummary||Q.isVisibleInTranscriptOnly)return!1;let Z=Q.message.content,W=typeof Z==="string"?null:Z[Z.length-1],X=typeof Z==="string"?Z.trim():W&&C0(W)?W.text.trim():"";if(X.indexOf(`<${L0}>`)!==-1||X.indexOf(`<${z0}>`)!==-1||X.indexOf(`<${N0}>`)!==-1||X.indexOf(`<${B0}>`)!==-1||X.indexOf(`<${q0}>`)!==-1||X.indexOf(`<${V0}>`)!==-1||X.indexOf(`<${v0}`)!==-1)return!1;return!0}function e9(Q,Z){for(let W=Z+1;W<Q.length;W++){let X=Q[W];if(!X)continue;if(fZ(X))continue;if(SZ(X))continue;if(X.type==="progress")continue;if(X.type==="system")continue;if(X.type==="attachment")continue;if(X.type==="user"&&X.isMeta)continue;if(X.type==="assistant"){let K=X.message.content;if(Array.isArray(K)){if(K.some((G)=>G.type==="text"&&G.text.trim()||G.type==="tool_use"))return!1}continue}if(X.type==="user")return!1}return!0}var WZ,b,B,EZ=7;var YQ=AZ(()=>{R9();_Z();a9();l9();_0();m9();x9();u9();T9();wZ();g9();d9();p9();C9();f9();S9();c9();WZ=vZ(k9(),1),b=vZ(h9(),1),B=vZ(J0(),1)});var YW={};RZ(YW,{getCronJitterConfig:()=>ZW});function ZW(){let Q=qY("tengu_kairos_cron_config",YZ,sQ),Z=eQ().safeParse(Q);return Z.success?Z.data:YZ}var sQ=60000,gZ=1800000,tQ=2592000000,eQ;var QW=AZ(()=>{KZ();oQ();vY();OZ();eQ=v(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(gZ),oneShotMaxMs:Y.number().int().min(0).max(gZ),oneShotFloorMs:Y.number().int().min(0).max(gZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max(tQ).default(YZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as GW,readFile as JW,unlink as yY,writeFile as aZ}from"fs/promises";import{dirname as HW,join as PY}from"path";function JZ(Q){return PY(Q??_Y(),NW)}async function $Y(Q){let Z;try{Z=await JW(JZ(Q),"utf8")}catch{return}let W=BW().safeParse(OY(Z,!1));return W.success?W.data:void 0}async function AY(Q,Z){let W=JZ(Z),X=t(Q);try{return await aZ(W,X,{flag:"wx"}),!0}catch(K){let H=lZ(K);if(H==="EEXIST")return!1;if(H==="ENOENT"){await GW(HW(W),{recursive:!0});try{return await aZ(W,X,{flag:"wx"}),!0}catch(G){if(lZ(G)==="EEXIST")return!1;throw G}}throw K}}function dZ(Q){jZ?.(),jZ=wY(async()=>{await BZ(Q)})}async function nZ(Q){let Z=Q?.dir,W=Q?.lockIdentity??HZ(),X={sessionId:W,pid:process.pid,acquiredAt:Date.now()};if(await AY(X,Z))return GZ=void 0,dZ(Q),E(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let K=await $Y(Z);if(K?.sessionId===W){if(K.pid!==process.pid)await aZ(JZ(Z),t(X)),dZ(Q);return!0}if(K&&UY(K.pid)){if(GZ!==K.sessionId)GZ=K.sessionId,E(`[ScheduledTasks] scheduler lock held by session ${K.sessionId} (PID ${K.pid})`);return!1}if(K)E(`[ScheduledTasks] recovering stale scheduler lock from PID ${K.pid}`);if(await yY(JZ(Z)).catch(()=>{}),await AY(X,Z))return GZ=void 0,dZ(Q),!0;return!1}async function BZ(Q){jZ?.(),jZ=void 0,GZ=void 0;let Z=Q?.dir,W=Q?.lockIdentity??HZ(),X=await $Y(Z);if(!X||X.sessionId!==W)return;try{await yY(JZ(Z)),E("[ScheduledTasks] released scheduler lock")}catch{}}var NW,BW,jZ,GZ;var jY=AZ(()=>{KZ();NZ();WW();XZ();cZ();KW();XW();OZ();$Z();NW=PY(".claude","scheduled_tasks.lock"),BW=v(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var vW={};RZ(vW,{isRecurringTaskAged:()=>SY,createCronScheduler:()=>qW,buildMissedTaskNotification:()=>hY});function SY(Q,Z,W){if(W===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=W)}function qW(Q){let{onFire:Z,isLoading:W,assistantMode:X=!1,onFireTask:K,onMissed:H,dir:G,lockIdentity:N,getJitterConfig:z,isKilled:q,filter:J}=Q,V=G||N?{dir:G,lockIdentity:N}:void 0,U=[],_=new Map,O=new Set,j=new Set,I=null,A=null,F=null,$=null,C=!1,y=!1;async function D(f){let u=await CY(G);if(C)return;if(U=u,!f)return;let c=Date.now(),k=fY(u,c).filter((w)=>!w.recurring&&!O.has(w.id)&&(!J||J(w)));if(k.length>0){for(let w of k)O.add(w.id),_.set(w.id,1/0);if(g("tengu_scheduled_task_missed",{count:k.length,taskIds:k.map((w)=>w.id).join(",")}),H)H(k);else Z(hY(k));iZ(k.map((w)=>w.id),G).catch((w)=>E(`[ScheduledTasks] failed to remove missed tasks: ${w}`)),E(`[ScheduledTasks] surfaced ${k.length} missed one-shot task(s)`)}}function d(){if(q?.())return;if(W()&&!X)return;let f=Date.now(),u=new Set,c=[],k=z?.()??YZ;function w(L,T){if(J&&!J(L))return;if(u.add(L.id),j.has(L.id))return;let S=_.get(L.id);if(S===void 0)S=L.recurring?rZ(L.cron,L.lastFiredAt??L.createdAt,L.id,k)??1/0:RY(L.cron,L.createdAt,L.id,k)??1/0,_.set(L.id,S),E(`[ScheduledTasks] scheduled ${L.id} for ${S===1/0?"never":new Date(S).toISOString()}`);if(f<S)return;if(E(`[ScheduledTasks] firing ${L.id}${L.recurring?" (recurring)":""}`),g("tengu_scheduled_task_fire",{recurring:L.recurring??!1,taskId:L.id}),K)K(L);else Z(L.prompt);let n=SY(L,f,k.recurringMaxAgeMs);if(n){let o=Math.floor((f-L.createdAt)/1000/60/60);E(`[ScheduledTasks] recurring task ${L.id} aged out (${o}h since creation), deleting after final fire`),g("tengu_scheduled_task_expired",{taskId:L.id,ageHours:o})}if(L.recurring&&!n){let o=rZ(L.cron,f,L.id,k)??1/0;if(_.set(L.id,o),!T)c.push(L.id)}else if(T)EY([L.id]),_.delete(L.id);else j.add(L.id),iZ([L.id],G).catch((o)=>E(`[ScheduledTasks] failed to remove task ${L.id}: ${o}`)).finally(()=>j.delete(L.id)),_.delete(L.id)}if(y){for(let L of U)w(L,!1);if(c.length>0){for(let L of c)j.add(L);TY(c,f,G).catch((L)=>E(`[ScheduledTasks] failed to persist lastFiredAt: ${L}`)).finally(()=>{for(let L of c)j.delete(L)})}}if(G===void 0)for(let L of MY())w(L,!0);if(u.size===0){_.clear();return}for(let L of _.keys())if(!u.has(L))_.delete(L)}async function l(){if(C)return;if(I)clearInterval(I),I=null;let{default:f}=await import("./index-0.1.10-80bh88yr.mjs");if(C)return;if(y=await nZ(V).catch(()=>!1),C){if(y)y=!1,BZ(V);return}if(!y)F=setInterval(()=>{nZ(V).then((c)=>{if(C){if(c)BZ(V);return}if(c){if(y=!0,F)clearInterval(F),F=null}}).catch((c)=>E(String(c),{level:"error"}))},VW),F.unref?.();D(!0);let u=IY(G);$=f.watch(u,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:zW},ignorePermissionErrors:!0}),$.on("add",()=>void D(!1)),$.on("change",()=>void D(!1)),$.on("unlink",()=>{if(!C)U=[],_.clear()}),A=setInterval(d,FY),A.unref?.()}return{start(){if(C=!1,G!==void 0){E(`[ScheduledTasks] scheduler start() — dir=${G}, hasTasks=${FZ(G)}`),l();return}if(E(`[ScheduledTasks] scheduler start() — enabled=${LZ()}, hasTasks=${FZ()}`),!LZ()&&(X||FZ()))DY(!0);if(LZ()){l();return}I=setInterval((f)=>{if(LZ())f()},FY,l),I.unref?.()},stop(){if(C=!0,I)clearInterval(I),I=null;if(A)clearInterval(A),A=null;if(F)clearInterval(F),F=null;if($?.close(),$=null,y)y=!1,BZ(V)},getNextFireTime(){let f=1/0;for(let u of _.values())if(u<f)f=u;return f===1/0?null:f}}}function hY(Q){let Z=Q.length>1,W=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claude/scheduled_tasks.json.
|
|
10
|
-
|
|
11
|
-
Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,X=Q.map((K)=>{let H=`[${bY(K.cron)}, created ${new Date(K.createdAt).toLocaleString()}]`,G=(K.prompt.match(/`+/g)??[]).reduce((z,q)=>Math.max(z,q.length),0),N="`".repeat(Math.max(3,G+1));return`${H}
|
|
12
|
-
${N}
|
|
13
|
-
${K.prompt}
|
|
14
|
-
${N}`});return`${W}
|
|
15
|
-
|
|
16
|
-
${X.join(`
|
|
17
|
-
|
|
18
|
-
`)}`}var FY=1000,zW=300,VW=5000;var AW=AZ(()=>{NZ();_Z();LW();vY();jY();XZ()});G0();function nW(Q){if(Q.type!=="user")return;let Z=Q.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let W="uuid"in Q&&typeof Q.uuid==="string"?Q.uuid:void 0;return{content:Array.isArray(Z)?I9(Z):Z,uuid:W}}function I9(Q){if(!Q.some(X0))return Q;return Q.map((Z)=>{if(!X0(Z))return Z;let W=Z.source,X=typeof W.mediaType==="string"&&W.mediaType?W.mediaType:K0(Z.source.data);return{...Z,source:{type:"base64",media_type:X,data:Z.source.data}}})}function X0(Q){if(Q.type!=="image"||Q.source?.type!=="base64")return!1;return!Q.source.media_type}KZ();XZ();OZ();f0();QQ();var w6=v(()=>h.object({tool_name:h.string().describe("The name of the tool requesting permission"),input:h.record(h.string(),h.unknown()).describe("The input for the tool"),tool_use_id:h.string().optional().describe("The unique tool use request ID")})),h0=v(()=>h.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),WQ=v(()=>h.object({behavior:h.literal("allow"),updatedInput:h.record(h.string(),h.unknown()),updatedPermissions:h.array(S0()).optional().catch((Q)=>{E(`Malformed updatedPermissions from SDK host ignored: ${Q.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:h.string().optional(),decisionClassification:h0()})),XQ=v(()=>h.object({behavior:h.literal("deny"),message:h.string(),interrupt:h.boolean().optional(),toolUseID:h.string().optional(),decisionClassification:h0()})),hZ=v(()=>h.union([WQ(),XQ()]));function PZ(Q,Z,W,X){let K={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Q};if(Q.behavior==="allow"){let H=Q.updatedPermissions;if(H)X.setAppState((N)=>({...N,toolPermissionContext:UZ(N.toolPermissionContext,H)})),yZ(H);let G=Object.keys(Q.updatedInput).length>0?Q.updatedInput:W;return{...Q,updatedInput:G,decisionReason:K}}else if(Q.behavior==="deny"&&Q.interrupt)E(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Q.message}`),X.abortController.abort();return{...Q,decisionReason:K}}import{randomUUID as mZ}from"crypto";KZ();OZ();KQ();var GQ=v(()=>Y.unknown()),JQ=v(()=>Y.object({matcher:Y.string().optional(),hookCallbackIds:Y.array(Y.string()),timeout:Y.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),HQ=v(()=>Y.object({subtype:Y.literal("initialize"),hooks:Y.record(u0(),Y.array(JQ())).optional(),sdkMcpServers:Y.array(Y.string()).optional(),jsonSchema:Y.record(Y.string(),Y.unknown()).optional(),systemPrompt:Y.string().optional(),appendSystemPrompt:Y.string().optional(),agents:Y.record(Y.string(),d0()).optional(),promptSuggestions:Y.boolean().optional(),agentProgressSummaries:Y.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),$6=v(()=>Y.object({commands:Y.array(xZ()),agents:Y.array(pZ()),output_style:Y.string(),available_output_styles:Y.array(Y.string()),models:Y.array(c0()),account:g0(),pid:Y.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:o0().optional()}).describe("Response from session initialization with available commands, models, and account info.")),NQ=v(()=>Y.object({subtype:Y.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),BQ=v(()=>Y.object({subtype:Y.literal("can_use_tool"),tool_name:Y.string(),input:Y.record(Y.string(),Y.unknown()),permission_suggestions:Y.array(x0()).optional(),blocked_path:Y.string().optional(),decision_reason:Y.string().optional(),title:Y.string().optional(),display_name:Y.string().optional(),tool_use_id:Y.string(),agent_id:Y.string().optional(),description:Y.string().optional()}).describe("Requests permission to use a tool with the given input.")),LQ=v(()=>Y.object({subtype:Y.literal("set_permission_mode"),mode:p0(),ultraplan:Y.boolean().optional().describe("@internal CCR ultraplan session marker.")}).describe("Sets the permission mode for tool execution handling.")),zQ=v(()=>Y.object({subtype:Y.literal("set_model"),model:Y.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),VQ=v(()=>Y.object({subtype:Y.literal("set_max_thinking_tokens"),max_thinking_tokens:Y.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),qQ=v(()=>Y.object({subtype:Y.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),j6=v(()=>Y.object({mcpServers:Y.array(kZ())}).describe("Response containing the current status of all MCP server connections.")),vQ=v(()=>Y.object({subtype:Y.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),AQ=v(()=>Y.object({name:Y.string(),tokens:Y.number(),color:Y.string(),isDeferred:Y.boolean().optional()})),_Q=v(()=>Y.object({color:Y.string(),isFilled:Y.boolean(),categoryName:Y.string(),tokens:Y.number(),percentage:Y.number(),squareFullness:Y.number()})),F6=v(()=>Y.object({categories:Y.array(AQ()),totalTokens:Y.number(),maxTokens:Y.number(),rawMaxTokens:Y.number(),percentage:Y.number(),gridRows:Y.array(Y.array(_Q())),model:Y.string(),memoryFiles:Y.array(Y.object({path:Y.string(),type:Y.string(),tokens:Y.number()})),mcpTools:Y.array(Y.object({name:Y.string(),serverName:Y.string(),tokens:Y.number(),isLoaded:Y.boolean().optional()})),deferredBuiltinTools:Y.array(Y.object({name:Y.string(),tokens:Y.number(),isLoaded:Y.boolean()})).optional(),systemTools:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),systemPromptSections:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),agents:Y.array(Y.object({agentType:Y.string(),source:Y.string(),tokens:Y.number()})),slashCommands:Y.object({totalCommands:Y.number(),includedCommands:Y.number(),tokens:Y.number()}).optional(),skills:Y.object({totalSkills:Y.number(),includedSkills:Y.number(),tokens:Y.number(),skillFrontmatter:Y.array(Y.object({name:Y.string(),source:Y.string(),tokens:Y.number()}))}).optional(),autoCompactThreshold:Y.number().optional(),isAutoCompactEnabled:Y.boolean(),messageBreakdown:Y.object({toolCallTokens:Y.number(),toolResultTokens:Y.number(),attachmentTokens:Y.number(),assistantMessageTokens:Y.number(),userMessageTokens:Y.number(),toolCallsByType:Y.array(Y.object({name:Y.string(),callTokens:Y.number(),resultTokens:Y.number()})),attachmentsByType:Y.array(Y.object({name:Y.string(),tokens:Y.number()}))}).optional(),apiUsage:Y.object({input_tokens:Y.number(),output_tokens:Y.number(),cache_creation_input_tokens:Y.number(),cache_read_input_tokens:Y.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),wQ=v(()=>Y.object({subtype:Y.literal("rewind_files"),user_message_id:Y.string(),dry_run:Y.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),D6=v(()=>Y.object({canRewind:Y.boolean(),error:Y.string().optional(),filesChanged:Y.array(Y.string()).optional(),insertions:Y.number().optional(),deletions:Y.number().optional()}).describe("Result of a rewindFiles operation.")),OQ=v(()=>Y.object({subtype:Y.literal("cancel_async_message"),message_uuid:Y.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),M6=v(()=>Y.object({cancelled:Y.boolean()}).describe("Result of a cancel_async_message operation. cancelled=false means the message was not in the queue (already dequeued or never enqueued).")),UQ=v(()=>Y.object({subtype:Y.literal("seed_read_state"),path:Y.string(),mtime:Y.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),yQ=v(()=>Y.object({subtype:Y.literal("hook_callback"),callback_id:Y.string(),input:m0(),tool_use_id:Y.string().optional()}).describe("Delivers a hook callback with its input data.")),PQ=v(()=>Y.object({subtype:Y.literal("mcp_message"),server_name:Y.string(),message:GQ()}).describe("Sends a JSON-RPC message to a specific MCP server.")),$Q=v(()=>Y.object({subtype:Y.literal("mcp_set_servers"),servers:Y.record(Y.string(),k0())}).describe("Replaces the set of dynamically managed MCP servers.")),E6=v(()=>Y.object({added:Y.array(Y.string()),removed:Y.array(Y.string()),errors:Y.record(Y.string(),Y.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),jQ=v(()=>Y.object({subtype:Y.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),b6=v(()=>Y.object({commands:Y.array(xZ()),agents:Y.array(pZ()),plugins:Y.array(Y.object({name:Y.string(),path:Y.string(),source:Y.string().optional()})),mcpServers:Y.array(kZ()),error_count:Y.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),FQ=v(()=>Y.object({subtype:Y.literal("mcp_reconnect"),serverName:Y.string()}).describe("Reconnects a disconnected or failed MCP server.")),DQ=v(()=>Y.object({subtype:Y.literal("mcp_toggle"),serverName:Y.string(),enabled:Y.boolean()}).describe("Enables or disables an MCP server.")),MQ=v(()=>Y.object({subtype:Y.literal("stop_task"),task_id:Y.string()}).describe("Stops a running task.")),EQ=v(()=>Y.object({subtype:Y.literal("apply_flag_settings"),settings:Y.record(Y.string(),Y.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),bQ=v(()=>Y.object({subtype:Y.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),I6=v(()=>Y.object({effective:Y.record(Y.string(),Y.unknown()),sources:Y.array(Y.object({source:Y.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Y.record(Y.string(),Y.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Y.object({model:Y.string(),effort:Y.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),IQ=v(()=>Y.object({subtype:Y.literal("elicitation"),mcp_server_name:Y.string(),message:Y.string(),mode:Y.enum(["form","url"]).optional(),url:Y.string().optional(),elicitation_id:Y.string().optional(),requested_schema:Y.record(Y.string(),Y.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),s0=v(()=>Y.object({action:Y.enum(["accept","decline","cancel"]),content:Y.record(Y.string(),Y.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),CQ=v(()=>Y.union([NQ(),BQ(),HQ(),LQ(),zQ(),VQ(),qQ(),vQ(),yQ(),PQ(),wQ(),OQ(),UQ(),$Q(),jQ(),FQ(),DQ(),MQ(),EQ(),bQ(),IQ()])),uZ=v(()=>Y.object({type:Y.literal("control_request"),request_id:Y.string(),request:CQ()})),TQ=v(()=>Y.object({subtype:Y.literal("success"),request_id:Y.string(),response:Y.record(Y.string(),Y.unknown()).optional()})),RQ=v(()=>Y.object({subtype:Y.literal("error"),request_id:Y.string(),error:Y.string(),pending_permission_requests:Y.array(Y.lazy(()=>uZ())).optional()})),t0=v(()=>Y.object({type:Y.literal("control_response"),response:Y.union([TQ(),RQ()])})),fQ=v(()=>Y.object({type:Y.literal("control_cancel_request"),request_id:Y.string()}).describe("Cancels a currently open control request.")),e0=v(()=>Y.object({type:Y.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),SQ=v(()=>Y.object({type:Y.literal("update_environment_variables"),variables:Y.record(Y.string(),Y.string())}).describe("Updates environment variables at runtime.")),C6=v(()=>Y.union([r0(),a0(),n0(),i0(),t0(),uZ(),fQ(),e0()])),T6=v(()=>Y.union([l0(),uZ(),t0(),e0(),SQ()]));gQ();XZ();pQ();cZ();cQ();xQ();$Z();KZ();uQ();LY();f0();$Z();mQ();$Z();var hQ=/\u2028|\u2029/g;function kQ(Q){return Q.replace(hQ,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function ZY(Q){return kQ(t(Q))}var dQ="SandboxNetworkAccess";function lQ(Q){if(!Q)return;if(Q.type==="classifier")return Q.reason;switch(Q.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Q.reason}}function aQ(Q,Z,W,X){let K;try{K=Q.getActivityDescription?.(Z)??Q.getToolUseSummary?.(Z)??Q.userFacingName(Z)}catch{K=Q.name}return{tool_name:Q.name,action_description:K,tool_use_id:W,request_id:X,input:Z}}var nQ=1000;class iQ{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new JY;constructor(Q,Z){this.input=Q;this.replayUserMessages=Z;this.input=Q,this.structuredInput=this.read()}trackResolvedToolUseId(Q){if(Q.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Q.request.tool_use_id),this.resolvedToolUseIds.size>nQ){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Q){this.prependedLines.push(t({type:"user",session_id:"",message:{role:"user",content:Q},parent_tool_use_id:null})+`
|
|
19
|
-
`)}async*read(){let Q="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Q=this.prependedLines.join("")+Q,this.prependedLines=[];let W=Q.indexOf(`
|
|
20
|
-
`);if(W===-1)break;let X=Q.slice(0,W);Q=Q.slice(W+1);let K=await this.processLine(X);if(K)KY("info","cli_stdin_message_parsed",{type:K.type}),yield K}}.bind(this);yield*Z();for await(let W of this.input)Q+=W,yield*Z();if(Q){let W=await this.processLine(Q);if(W)yield W}this.inputClosed=!0;for(let W of this.pendingRequests.values())W.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Q)=>Q.request).filter((Q)=>Q.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Q){this.unexpectedResponseCallback=Q}injectControlResponse(Q){let Z=Q.response?.request_id;if(!Z)return;let W=this.pendingRequests.get(Z);if(!W)return;if(this.trackResolvedToolUseId(W.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Q.response.subtype==="error")W.reject(Error(Q.response.error));else{let X=Q.response.response;if(W.schema)try{W.resolve(W.schema.parse(X))}catch(K){W.reject(K)}else W.resolve({})}}setOnControlRequestSent(Q){this.onControlRequestSent=Q}setOnControlRequestResolved(Q){this.onControlRequestResolved=Q}async processLine(Q){if(!Q)return;try{let Z=VY(WY(Q));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let W=Object.keys(Z.variables);for(let[X,K]of Object.entries(Z.variables))process.env[X]=K;E(`[structuredIO] applied update_environment_variables: ${W.join(", ")}`);return}if(Z.type==="control_response"){let W="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(W)GY(W,"completed");let X=this.pendingRequests.get(Z.response.request_id);if(!X){let G=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof G==="string"&&this.resolvedToolUseIds.has(G)){E(`Ignoring duplicate control_response for already-resolved toolUseID=${G} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(X.request),this.pendingRequests.delete(Z.response.request_id),X.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){X.reject(Error(Z.response.error));return}let K=Z.response.response;if(X.schema)try{X.resolve(X.schema.parse(K))}catch(H){X.reject(H)}else X.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){E(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)YY("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;if(Z.message.role!=="user")YY(`Error: Expected message role 'user', got '${Z.message.role}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Q}: ${Z}`),process.exit(1)}}async write(Q){XY(ZY(Q)+`
|
|
21
|
-
`)}async sendRequest(Q,Z,W,X=mZ()){let K={type:"control_request",request_id:X,request:Q};if(this.inputClosed)throw Error("Stream closed");if(W?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(K),Q.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(K);let H=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:X});let G=this.pendingRequests.get(X);if(G)this.trackResolvedToolUseId(G.request),G.reject(new QY)};if(W)W.addEventListener("abort",H,{once:!0});try{return await new Promise((G,N)=>{this.pendingRequests.set(X,{request:{type:"control_request",request_id:X,request:Q},resolve:(z)=>{G(z)},reject:N,schema:Z})})}finally{if(W)W.removeEventListener("abort",H);this.pendingRequests.delete(X)}}createCanUseTool(Q){return async(Z,W,X,K,H,G)=>{let N=G??await HY(Z,W,X,K,H);if(N.behavior==="allow"||N.behavior==="deny")return N;let z=new AbortController,q=X.abortController.signal,J=()=>z.abort();q.addEventListener("abort",J,{once:!0});try{let V=rQ(Z.name,H,W,X,N.suggestions).then((j)=>({source:"hook",decision:j})),U=mZ();Q?.(aQ(Z,W,H,U));let _=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:W,permission_suggestions:N.suggestions,blocked_path:N.blockedPath,decision_reason:lQ(N.decisionReason),tool_use_id:H,agent_id:X.agentId},hZ(),z.signal,U).then((j)=>({source:"sdk",result:j})),O=await Promise.race([V,_]);if(O.source==="hook"){if(O.decision)return _.catch(()=>{}),z.abort(),O.decision;let j=await _;return PZ(j.result,Z,W,X)}return PZ(O.result,Z,W,X)}catch(V){return PZ({behavior:"deny",message:`Tool permission request failed: ${V}`,toolUseID:H},Z,W,X)}finally{if(this.getPendingPermissionRequests().length===0)zY("running");q.removeEventListener("abort",J)}}}createHookCallback(Q,Z){return{type:"callback",timeout:Z,callback:async(W,X,K)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Q,input:W,tool_use_id:X||void 0},NY(),K)}catch(H){return console.error(`Error in hook callback ${Q}:`,H),{}}}}}async handleElicitation(Q,Z,W,X,K,H,G){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Q,message:Z,mode:K,url:H,elicitation_id:G,requested_schema:W},s0(),X)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Q)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:dQ,input:{host:Q.host},tool_use_id:mZ(),description:`Allow network connection to ${Q.host}?`},hZ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Q,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Q,message:Z},Y.object({mcp_response:Y.any()}))).mcp_response}}function YY(Q){console.error(Q),process.exit(1)}async function rQ(Q,Z,W,X,K){let G=X.getAppState().toolPermissionContext.mode,N=BY(Q,Z,W,X,G,K,X.abortController.signal);for await(let z of N)if(z.permissionRequestResult&&(z.permissionRequestResult.behavior==="allow"||z.permissionRequestResult.behavior==="deny")){let q=z.permissionRequestResult;if(q.behavior==="allow"){let J=q.updatedInput||W,V=q.updatedPermissions??[];if(V.length>0){yZ(V);let U=X.getAppState(),_=UZ(U.toolPermissionContext,V);X.setAppState((O)=>{if(O.toolPermissionContext===_)return O;return{...O,toolPermissionContext:_}})}return{behavior:"allow",updatedInput:J,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:q.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}NZ();PW();wW();yW();_W();UW();OW();import{randomUUID as $W}from"crypto";function jW(Q){return Q===pY?uY:Q}function TX(Q){let W=mY()?.outputStyle??dY,X={type:"system",subtype:"init",cwd:xY(),session_id:HZ(),tools:Q.tools.map((K)=>jW(K.name)),mcp_servers:Q.mcpClients.map((K)=>({name:K.name,status:K.type})),model:Q.model,permissionMode:Q.permissionMode,slash_commands:Q.commands.filter((K)=>K.userInvocable!==!1).map((K)=>K.name),apiKeySource:gY().source,betas:kY(),claude_code_version:"99.0.0",output_style:W,agents:Q.agents.map((K)=>K.agentType),skills:Q.skills.filter((K)=>K.userInvocable!==!1).map((K)=>K.name),plugins:Q.plugins.map((K)=>({name:K.name,path:K.path,source:K.source})),uuid:$W()};return X.fast_mode_state=cY(Q.model,Q.fastMode),X}var lY={"`":"`",'"':'"',"<":">","{":"}","[":"]","(":")","'":"'"};function FW(Q,Z){if(!new RegExp(Z,"i").test(Q))return[];if(Q.startsWith("/"))return[];let X=[],K=null,H=0,G=(J)=>!!J&&/[\p{L}\p{N}_]/u.test(J);for(let J=0;J<Q.length;J++){let V=Q[J];if(K){if(K==="["&&V==="["){H=J;continue}if(V!==lY[K])continue;if(K==="'"&&G(Q[J+1]))continue;X.push({start:H,end:J+1}),K=null}else if(V==="<"&&J+1<Q.length&&/[a-zA-Z/]/.test(Q[J+1])||V==="'"&&!G(Q[J-1])||V!=="<"&&V!=="'"&&V in lY)K=V,H=J}let N=[],z=new RegExp(`\\b${Z}\\b`,"gi"),q=Q.matchAll(z);for(let J of q){if(J.index===void 0)continue;let V=J.index,U=V+J[0].length;if(X.some((j)=>V>=j.start&&V<j.end))continue;let _=Q[V-1],O=Q[U];if(_==="/"||_==="\\"||_==="-")continue;if(O==="/"||O==="\\"||O==="-"||O==="?")continue;if(O==="."&&G(Q[U+1]))continue;N.push({word:J[0],start:V,end:U})}return N}function fX(Q){return FW(Q,"ultrareview")}_Z();wZ();SW();RW();fW();bW();LY();G0();IW();wZ();TW();CW();import{randomUUID as hW}from"crypto";NZ();_Z();wZ();DW();MW();import{randomUUID as EW}from"crypto";function aY(Q){let Z=Q.toLowerCase();return/\b(wtf|wth|ffs|omfg|shit(ty|tiest)?|dumbass|horrible|awful|piss(ed|ing)? off|piece of (shit|crap|junk)|what the (fuck|hell)|fucking? (broken|useless|terrible|awful|horrible)|fuck you|screw (this|you)|so frustrating|this sucks|damn it)\b/.test(Z)}function nY(Q){let Z=Q.toLowerCase().trim();if(Z==="continue")return!0;return/\b(keep going|go on)\b/.test(Z)}function tY(Q,Z,W,X,K,H,G){let N=EW();iY(N);let z=typeof Q==="string"?Q:Q.find((_)=>_.type==="text")?.text||"";sY(z);let q=typeof Q==="string"?Q:Q.findLast((_)=>_.type==="text")?.text||"";if(q)oY("user_prompt",{prompt_length:String(q.length),prompt:rY(q),"prompt.id":N});let J=aY(z),V=nY(z);if(g("tengu_input_prompt",{is_negative:J,is_keep_going:V}),Z.length>0){let _=typeof Q==="string"?Q.trim()?[{type:"text",text:Q}]:[]:Q;return{messages:[r({content:[..._,...Z],uuid:K,imagePasteIds:W.length>0?W:void 0,permissionMode:H,isMeta:G||void 0}),...X],shouldQuery:!0}}return{messages:[r({content:Q,uuid:K,permissionMode:H,isMeta:G||void 0}),...X],shouldQuery:!0}}async function H7({input:Q,preExpansionInput:Z,mode:W,setToolJSX:X,context:K,pastedContents:H,ideSelection:G,messages:N,setUserInputOnProcessing:z,uuid:q,isAlreadyProcessing:J,querySource:V,canUseTool:U,skipSlashCommands:_,bridgeOrigin:O,isMeta:j,skipAttachments:I}){let A=typeof Q==="string"?Q:null;if(W==="prompt"&&A!==null&&!j)z?.(A);a("query_process_user_input_base_start");let F=K.getAppState(),$=await kW(Q,W,X,K,H,G,N,q,J,V,U,F.toolPermissionContext.mode,_,O,j,I,Z);if(a("query_process_user_input_base_end"),!$.shouldQuery)return $;a("query_hooks_start");let C=G9(Q)||"";for await(let y of V9(C,F.toolPermissionContext.mode,K,K.requestPrompt)){if(y.message?.type==="progress")continue;if(y.blockingError){let D=z9(y.blockingError);return{messages:[J9(`${D}
|
|
22
|
-
|
|
23
|
-
Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:$.allowedTools}}if(y.preventContinuation){let D=y.stopReason?`Operation stopped by hook: ${y.stopReason}`:"Operation stopped by hook";return $.messages.push(r({content:D})),$.shouldQuery=!1,$}if(y.additionalContexts&&y.additionalContexts.length>0)$.messages.push(K9({type:"hook_additional_context",content:y.additionalContexts.map(eY),hookName:"UserPromptSubmit",toolUseID:`hook-${hW()}`,hookEvent:"UserPromptSubmit"}));if(y.message)switch(y.message.attachment.type){case"hook_success":if(!y.message.attachment.content)break;$.messages.push({...y.message,attachment:{...y.message.attachment,content:eY(y.message.attachment.content)}});break;default:$.messages.push(y.message);break}}return a("query_hooks_end"),$}var sZ=1e4;function eY(Q){if(Q.length>sZ)return`${Q.substring(0,sZ)}… [output truncated - exceeded ${sZ} characters]`;return Q}async function kW(Q,Z,W,X,K,H,G,N,z,q,J,V,U,_,O,j,I){let A=null,F=[],$=[],C=Q;if(typeof Q==="string")A=Q;else if(Q.length>0){a("query_image_processing_start");let w=[];for(let T of Q)if(T.type==="image"){let S=await eZ(T);if(S.dimensions){let n=DZ(S.dimensions);if(n)$.push(n)}w.push(S.block)}else w.push(T);C=w,a("query_image_processing_end");let L=w[w.length-1];if(L?.type==="text")A=L.text,F=w.slice(0,-1);else F=w}if(A===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let y=K?Object.values(K).filter(W9):[],D=y.map((w)=>w.id),d=K?await Y9(K):new Map;a("query_pasted_image_processing_start");let l=await Promise.all(y.map(async(w)=>{let L={type:"image",source:{type:"base64",media_type:w.mediaType||"image/png",data:w.content}};return g("tengu_pasted_image_resize_attempt",{original_size_bytes:w.content.length}),{resized:await eZ(L),originalDimensions:w.dimensions,sourcePath:w.sourcePath??d.get(w.id)}})),f=[];for(let{resized:w,originalDimensions:L,sourcePath:T}of l){if(w.dimensions){let S=DZ(w.dimensions,T);if(S)$.push(S)}else if(L){let S=DZ(L,T);if(S)$.push(S)}else if(T)$.push(`[Image source: ${T}]`);f.push(w.block)}a("query_pasted_image_processing_end");let u=U;if(_&&A!==null&&A.startsWith("/")){let w=Q9(A),L=w?L9(w.commandName,X.options.commands):void 0;if(L)if(B9(L))u=!1;else{let T=`/${N9(L)} isn't available over Remote Control.`;return{messages:[r({content:A,uuid:N}),H9(`<local-command-stdout>${T}</local-command-stdout>`)],shouldQuery:!1,resultText:T}}}let c=!j&&A!==null&&(Z!=="prompt"||u||!A.startsWith("/"));a("query_attachment_loading_start");let k=c?await Z9(X9(A,X,H??null,[],G,q)):[];if(a("query_attachment_loading_end"),A!==null&&Z==="bash"){let{processBashCommand:w}=await import("./processBashCommand-0.1.10-t1cdkkjx.mjs");return tZ(await w(A,F,k,X,W),$)}if(A!==null&&!u&&A.startsWith("/")){let{processSlashCommand:w}=await import("./processSlashCommand-0.1.10-pvndkc40.mjs"),L=await w(A,F,f,k,X,W,N,z,J);return tZ(L,$)}if(A!==null&&Z==="prompt"){let w=A.trim(),L=k.find((T)=>T.attachment.type==="agent_mention");if(L){let T=`@agent-${L.attachment.agentType}`,S=w===T,n=w.startsWith(T)&&!S;g("tengu_subagent_at_mention",{is_subagent_only:S,is_prefix:n})}}return tZ(tY(C,f,D,k,N,V,O),$)}function tZ(Q,Z){if(Z.length>0)Q.messages.push(r({content:Z.map((W)=>({type:"text",text:W})),isMeta:!0}));return Q}mW();NZ();XZ();cZ();pW();xW();_0();cW();uW();import{isAbsolute as gW,resolve as dW}from"path";function lW(Q,Z,W){let X=[],K=[],H=[];for(let[G,N]of Object.entries(Q)){let z=Z[G],q=P9(N.source,W?.projectRoot);if(!z)X.push(G);else if(N.sourceIsFallback)H.push(G);else if(!w9(q,z.source))K.push({name:G,declaredSource:q,materializedSource:z.source});else H.push(G)}return{missing:X,sourceChanged:K,upToDate:H}}async function U7(Q){let Z=O9();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let W;try{W=await U9()}catch(J){s(J),W={}}let X=lW(Z,W,{projectRoot:Z0()}),K=[...X.missing.map((J)=>({name:J,source:P9(Z[J].source),action:"install"})),...X.sourceChanged.map(({name:J,declaredSource:V})=>({name:J,source:V,action:"update"}))],H=[],G=[];for(let J of K){if(Q?.skip?.(J.name,J.source)){H.push(J.name);continue}if(J.action==="update"&&_9(J.source)&&!await A9(J.source.path)){E(`[reconcile] '${J.name}' declared path does not exist; keeping materialized entry`),H.push(J.name);continue}G.push(J)}if(G.length===0)return{installed:[],updated:[],failed:[],upToDate:X.upToDate,skipped:H};E(`[reconcile] ${G.length} marketplace(s): ${G.map((J)=>`${J.name}(${J.action})`).join(", ")}`);let N=[],z=[],q=[];for(let J=0;J<G.length;J++){let{name:V,source:U,action:_}=G[J];Q?.onProgress?.({type:"installing",name:V,action:_,index:J+1,total:G.length});try{let O=await y9(U);if(_==="install")N.push(V);else z.push(V);Q?.onProgress?.({type:"installed",name:V,alreadyMaterialized:O.alreadyMaterialized})}catch(O){let j=q9(O);q.push({name:V,error:j}),Q?.onProgress?.({type:"failed",name:V,error:j}),s(O)}}return{installed:N,updated:z,failed:q,upToDate:X.upToDate,skipped:H}}function P9(Q,Z){if((Q.source==="directory"||Q.source==="file")&&!gW(Q.path)){let W=Z??Z0(),X=v9(W);return{...Q,path:dW(X??W,Q.path)}}return Q}
|
|
24
|
-
export{nW as Z,jW as _,TX as $,i9 as aa,R0 as ba,e9 as ca,ZQ as da,YQ as ea,fX as fa,H7 as ga,hZ as ha,PZ as ia,ZY as ja,iQ as ka,lW as la,U7 as ma,ZW as na,YW as oa,QW as pa,qW as qa,vW as ra,AW as sa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{L7 as Y,N7 as H,Vca as w,Yca as G,nca as P,oca as b}from"./cli-0.1.10-mt6tj76h.mjs";import{dha as K,lha as k}from"./cli-0.1.10-y1bkenem.mjs";import{Kna as O}from"./cli-0.1.10-hyxg32sc.mjs";function f(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||D}function C(J){return new Promise(($)=>setTimeout($,J))}async function p(J){let $=J?.clientId??f();if(!$)throw new y("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let V=J?.fetchImpl??fetch,Z=J?.scope?.trim()||R,Q=Z===R?[Z]:[Z,R],W="Device code request failed.";for(let j of Q){let X=await V(F,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:$,scope:j})});if(!X.ok){let A=await X.text().catch(()=>"");W=`Device code request failed: ${X.status} ${A}`;let M=/invalid_scope/i.test(A);if(j!==R&&M)continue;throw new y(W)}let N=await X.json(),z=N.device_code,q=N.user_code,L=N.verification_uri;if(typeof z!=="string"||typeof q!=="string"||typeof L!=="string")throw new y("Malformed device code response from GitHub");return{device_code:z,user_code:q,verification_uri:L,expires_in:typeof N.expires_in==="number"?N.expires_in:900,interval:typeof N.interval==="number"?N.interval:5}}throw new y(W)}async function u(J,$){let V=$?.clientId??f();if(!V)throw new y("client_id required for polling");let Z=Math.max(1,$?.initialInterval??5),Q=$?.timeoutSeconds??900,W=$?.fetchImpl??fetch,j=Date.now();while((Date.now()-j)/1000<Q){let X=await W(m,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:V,device_code:J,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!X.ok){let q=await X.text().catch(()=>"");throw new y(`Token request failed: ${X.status} ${q}`)}let N=await X.json(),z=N.error;if(z==null){let q=N.access_token;if(typeof q==="string"&&q)return q;throw new y("No access_token in response")}if(z==="authorization_pending"){await C(Z*1000);continue}if(z==="slow_down"){Z=typeof N.interval==="number"?N.interval:Z+5,await C(Z*1000);continue}if(z==="expired_token")throw new y("Device code expired. Start the login flow again.");if(z==="access_denied")throw new y("Authorization was denied or cancelled.");throw new y(`GitHub OAuth error: ${z}`)}throw new y("Timed out waiting for authorization.")}async function c(J){try{if(process.platform==="darwin")await Y("open",[J],{useCwd:!1,timeout:5000});else if(process.platform==="win32")await Y("cmd",["/c","start","",J],{useCwd:!1,timeout:5000});else await Y("xdg-open",[J],{useCwd:!1,timeout:5000})}catch{}}async function x(J,$){let Z=await($??fetch)(g,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,..._}});if(!Z.ok){let z=await Z.text().catch(()=>"");throw new y(`Copilot token exchange failed: ${Z.status} ${z}`)}let Q=await Z.json(),W=Q.token,j=Q.expires_at,X=Q.refresh_in,N=Q.endpoints;if(typeof W!=="string"||typeof j!=="number"||typeof X!=="number"||!N||typeof N!=="object"||typeof N.api!=="string")throw new y("Malformed Copilot token response");return{token:W,expires_at:j,refresh_in:X,endpoints:N}}var D="Iv1.b507a08c87ecfe98",F="https://github.com/login/device/code",m="https://github.com/login/oauth/access_token",g="https://api.github.com/copilot_internal/v2/token",R="read:user",_,y;var B=O(()=>{H();_={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"};y=class y extends Error{constructor(J){super(J);this.name="GitHubDeviceFlowError"}}});function I(){return w()?.transport==="github_copilot"}function S(J){let $=J.match(/exp=(\d+)/);if($){let Q=Number($[1]);if(!Number.isNaN(Q))return Date.now()>=Q*1000?"expired":"valid"}let V=J.split(".");if(V.length===3&&V.every((Q)=>/^[A-Za-z0-9_-]+$/.test(Q)))try{let Q=V[1].replace(/-/g,"+").replace(/_/g,"/"),W=Q+"=".repeat((4-Q.length%4)%4),j=Buffer.from(W,"base64").toString("utf8"),X=JSON.parse(j);if(X&&typeof X==="object"&&X.exp)return Date.now()>=X.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function T(){if(K())return;try{return P().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function o(){if(K())return;try{return(await P().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function r(){if(!I())return;if(K())return;if(T())return}async function e(){if(!I())return!1;if(K())return!1;try{let V=P().read()?.githubModels,Z=V?.accessToken?.trim()||"",Q=V?.oauthAccessToken?.trim()||"";if(!Z&&!Q)return!1;if((Z?S(Z):"expired")==="valid")return!1;if(!Q)return!1;let j=await x(Q);if(!h(j.token,Q).success)return!1;return!0}catch{return!1}}function h(J,$){if(K())return{success:!1,warning:"Bare mode: secure storage is disabled."};let V=J.trim();if(!V)return{success:!1,warning:"Token is empty."};let Z=P(),Q=Z.read()||{},W=Q[U],j=$?.trim(),X={accessToken:V};if(j)X.oauthAccessToken=j;else if(W?.oauthAccessToken?.trim())X.oauthAccessToken=W.oauthAccessToken.trim();let N={...Q,[U]:X};return Z.update(N)}function JJ(){if(K())return{success:!0};let J=P(),V={...J.read()||{}};return delete V[U],J.update(V)}var U="githubModels",t="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED";var E=O(()=>{G();k();b();B()});
|
|
2
|
-
export{p as a0,u as b0,c as c0,x as d0,B as e0,U as f0,t as g0,T as h0,o as i0,r as j0,e as k0,h as l0,JJ as m0,E as n0};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Pc as j,Qc as E}from"./cli-0.1.10-c7bkm855.mjs";import{VF as X,XF as Y,eG as Z,gG as w,ik as W,kG as _,lk as v,nG as $,rG as f}from"./cli-0.1.10-y9mkzh11.mjs";import{D7 as T,Dba as V,Oba as N,i$ as S,v$ as A,y7 as Q}from"./cli-0.1.10-mt6tj76h.mjs";import{Cga as K,Wga as B,Zga as R,wga as L}from"./cli-0.1.10-e4qewc1p.mjs";import{Kna as y}from"./cli-0.1.10-hyxg32sc.mjs";function d(q){if(J=q,G!==null&&G.length>0)q(G),G=null;return()=>{J=null}}async function C(){let q=await Y(),D=X(),x=new Set;for(let[z,h]of Object.entries(q)){let F=D[z]?.autoUpdate;if(F!==void 0?F:S(z,h))x.add(z.toLowerCase())}return x}async function M(q,D){let x=!1;for(let{scope:z}of D)try{let h=await j(q,z);if(h.success&&!h.alreadyUpToDate)x=!0,B(`Plugin autoupdate: updated ${q} from ${h.oldVersion} to ${h.newVersion}`);else if(!h.alreadyUpToDate)B(`Plugin autoupdate: failed to update ${q}: ${h.message}`,{level:"warn"})}catch(h){B(`Plugin autoupdate: error updating ${q}: ${L(h)}`,{level:"warn"})}return x?q:null}async function P(q){let D=_(),x=Object.keys(D.plugins);if(x.length===0)return[];return(await Promise.allSettled(x.map(async(h)=>{let{marketplace:F}=W(h);if(!F||!q.has(F.toLowerCase()))return null;let H=D.plugins[h];if(!H||H.length===0)return null;let O=H.filter($);if(O.length===0)return null;return M(h,O)}))).filter((h)=>h.status==="fulfilled"&&h.value!==null).map((h)=>h.value)}async function m(q){return P(q)}function t(){(async()=>{if(V()){B("Plugin autoupdate: skipped (auto-updater disabled)");return}try{let q=await C();if(q.size===0)return;let x=(await Promise.allSettled(Array.from(q).map(async(h)=>{try{await Z(h,void 0,{disableCredentialHelper:!0})}catch(F){B(`Plugin autoupdate: failed to refresh marketplace ${h}: ${L(F)}`,{level:"warn"})}}))).filter((h)=>h.status==="rejected");if(x.length>0)B(`Plugin autoupdate: ${x.length} marketplace refresh(es) failed`,{level:"warn"});B("Plugin autoupdate: checking installed plugins");let z=await m(q);if(z.length>0)if(J)J(z);else G=z}catch(q){Q(q)}})()}var J=null,G=null;var U=y(()=>{E();N();R();K();T();f();w();v();A()});
|
|
2
|
-
export{d as lc,P as mc,t as nc,U as oc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{BG as c,cG as R,fk as L,gG as b,gk as D,hk as O,jG as w,kk as _,lk as S,qG as M,rG as P,wG as m,xG as h}from"./cli-0.1.10-y9mkzh11.mjs";import{D7 as T,Jaa as j,n$ as x,v$ as E,vaa as B,xaa as A,y7 as N,zaa as C}from"./cli-0.1.10-mt6tj76h.mjs";import{Vda as U,Wda as F}from"./cli-0.1.10-4n8p34vn.mjs";import{Wga as G,Zga as v}from"./cli-0.1.10-e4qewc1p.mjs";import{Kna as y}from"./cli-0.1.10-hyxg32sc.mjs";import{join as I}from"path";async function qq(){let q=C(),z=[],W=L();for(let[K,Q]of Object.entries(W))if(K.includes("@")&&Q)z.push(K);if(q.enabledPlugins)for(let[K,Q]of Object.entries(q.enabledPlugins)){if(!K.includes("@"))continue;let J=z.indexOf(K);if(Q){if(J===-1)z.push(K)}else if(J!==-1)z.splice(J,1)}return z}function zq(){let q=new Map,z=L();for(let[K,Q]of Object.entries(z)){if(!K.includes("@"))continue;if(Q===!0)q.set(K,"flag");else if(Q===!1)q.delete(K)}let W=[{scope:"managed",source:"policySettings"},{scope:"user",source:"userSettings"},{scope:"project",source:"projectSettings"},{scope:"local",source:"localSettings"},{scope:"flag",source:"flagSettings"}];for(let{scope:K,source:Q}of W){let J=B(Q);if(!J?.enabledPlugins)continue;for(let[V,Y]of Object.entries(J.enabledPlugins)){if(!V.includes("@"))continue;if(V in z&&z[V]!==Y)G(`Plugin ${V} from --add-dir (${z[V]}) overridden by ${Q} (${Y})`);if(Y===!0)q.set(V,K);else if(Y===!1)q.delete(V)}}return G(`Found ${q.size} enabled plugins with scopes: ${Array.from(q.entries()).map(([K,Q])=>`${K}(${Q})`).join(", ")}`),q}function Jq(q){return q!=="flag"}function Kq(q){return O[q]}async function p(){M().catch((W)=>{N(W)});let q=w(),z=Object.keys(q.plugins);return G(`Found ${z.length} installed plugins`),z}async function Qq(q){try{let z=await p(),W=q.filter((J)=>!z.includes(J));return(await Promise.all(W.map(async(J)=>{try{let V=await R(J);return{pluginId:J,found:V!==null&&V!==void 0}}catch(V){return G(`Failed to check plugin ${J} in marketplace: ${V}`),{pluginId:J,found:!1}}}))).filter(({found:J})=>J).map(({pluginId:J})=>J)}catch(z){return N(z),[]}}async function Vq(q,z,W="user"){let K=W!=="user"?U():void 0,Q=_(W),J=B(Q),V={...J?.enabledPlugins},Y=[],k=[];for(let H=0;H<q.length;H++){let X=q[H];if(!X)continue;if(z)z(X,H+1,q.length);try{let Z=await R(X);if(!Z){k.push({name:X,error:"Plugin not found in any marketplace"});continue}let{entry:$,marketplaceInstallLocation:f}=Z;if(!x($.source))await m(X,$,W,K);else h({pluginId:X,installPath:I(f,$.source),version:$.version},W,K);V[X]=!0,Y.push(X)}catch(Z){let $=Z instanceof Error?Z.message:String(Z);k.push({name:X,error:$}),N(Z)}}return A(Q,{...J,enabledPlugins:V}),{installed:Y,failed:k}}var a=y(()=>{F();v();T();j();D();P();b();S();c();E()});
|
|
2
|
-
export{qq as Rc,zq as Sc,Jq as Tc,Kq as Uc,p as Vc,Qq as Wc,Vq as Xc,a as Yc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ina as t,Lna as A}from"./cli-0.1.10-hyxg32sc.mjs";var o=t((b)=>{var i=(r)=>typeof ArrayBuffer==="function"&&r instanceof ArrayBuffer||Object.prototype.toString.call(r)==="[object ArrayBuffer]";b.isArrayBuffer=i});var y=t((g)=>{var m=o(),f=A("buffer"),B=(r,e=0,u=r.byteLength-e)=>{if(!m.isArrayBuffer(r))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof r} (${r})`);return f.Buffer.from(r,e,u)},a=(r,e)=>{if(typeof r!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof r} (${r})`);return e?f.Buffer.from(r,e):f.Buffer.from(r)};g.fromArrayBuffer=B;g.fromString=a});var x=t((w)=>{var n=y(),s=(r)=>{let e=n.fromString(r,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)},h=(r)=>{if(typeof r==="string")return s(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(r)},p=(r)=>{if(typeof r==="string")return r;if(typeof r!=="object"||typeof r.byteOffset!=="number"||typeof r.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return n.fromArrayBuffer(r.buffer,r.byteOffset,r.byteLength).toString("utf8")};w.fromUtf8=s;w.toUint8Array=h;w.toUtf8=p});
|
|
2
|
-
export{x as Fna};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import{$E as A,Bi as h,PH as u,Ph as $,Sh as m,_G as F,aF as p,aH as L,yu as k,zi as U,zu as I}from"./cli-0.1.10-y9mkzh11.mjs";import{Z0 as O,_0 as f}from"./cli-0.1.10-vrd90nhd.mjs";import{Aga as b,Cga as T,Mga as S,Qga as E}from"./cli-0.1.10-e4qewc1p.mjs";import{_ga as y,lha as C}from"./cli-0.1.10-y1bkenem.mjs";import{Kna as N}from"./cli-0.1.10-hyxg32sc.mjs";import{join as P}from"path";function D(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
|
|
2
|
-
|
|
3
|
-
Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
|
|
4
|
-
|
|
5
|
-
The file {{docPath}} has already been read for you. Here are its current contents:
|
|
6
|
-
<current_doc_content>
|
|
7
|
-
{{docContents}}
|
|
8
|
-
</current_doc_content>
|
|
9
|
-
|
|
10
|
-
Document title: {{docTitle}}
|
|
11
|
-
{{customInstructions}}
|
|
12
|
-
|
|
13
|
-
Your ONLY task is to use the Edit tool to update the documentation file if there is substantial new information to add, then stop. You can make multiple edits (update multiple sections as needed) - make all Edit tool calls in parallel in a single message. If there's nothing substantial to add, simply respond with a brief explanation and do not call any tools.
|
|
14
|
-
|
|
15
|
-
CRITICAL RULES FOR EDITING:
|
|
16
|
-
- Preserve the Magic Doc header exactly as-is: # MAGIC DOC: {{docTitle}}
|
|
17
|
-
- If there's an italicized line immediately after the header, preserve it exactly as-is
|
|
18
|
-
- Keep the document CURRENT with the latest state of the codebase - this is NOT a changelog or history
|
|
19
|
-
- Update information IN-PLACE to reflect the current state - do NOT append historical notes or track changes over time
|
|
20
|
-
- Remove or replace outdated information rather than adding "Previously..." or "Updated to..." notes
|
|
21
|
-
- Clean up or DELETE sections that are no longer relevant or don't align with the document's purpose
|
|
22
|
-
- Fix obvious errors: typos, grammar mistakes, broken formatting, incorrect information, or confusing statements
|
|
23
|
-
- Keep the document well organized: use clear headings, logical section order, consistent formatting, and proper nesting
|
|
24
|
-
|
|
25
|
-
DOCUMENTATION PHILOSOPHY - READ CAREFULLY:
|
|
26
|
-
- BE TERSE. High signal only. No filler words or unnecessary elaboration.
|
|
27
|
-
- Documentation is for OVERVIEWS, ARCHITECTURE, and ENTRY POINTS - not detailed code walkthroughs
|
|
28
|
-
- Do NOT duplicate information that's already obvious from reading the source code
|
|
29
|
-
- Do NOT document every function, parameter, or line number reference
|
|
30
|
-
- Focus on: WHY things exist, HOW components connect, WHERE to start reading, WHAT patterns are used
|
|
31
|
-
- Skip: detailed implementation steps, exhaustive API docs, play-by-play narratives
|
|
32
|
-
|
|
33
|
-
What TO document:
|
|
34
|
-
- High-level architecture and system design
|
|
35
|
-
- Non-obvious patterns, conventions, or gotchas
|
|
36
|
-
- Key entry points and where to start reading code
|
|
37
|
-
- Important design decisions and their rationale
|
|
38
|
-
- Critical dependencies or integration points
|
|
39
|
-
- References to related files, docs, or code (like a wiki) - help readers navigate to relevant context
|
|
40
|
-
|
|
41
|
-
What NOT to document:
|
|
42
|
-
- Anything obvious from reading the code itself
|
|
43
|
-
- Exhaustive lists of files, functions, or parameters
|
|
44
|
-
- Step-by-step implementation details
|
|
45
|
-
- Low-level code mechanics
|
|
46
|
-
- Information already in CLAUDE.md or other project docs
|
|
47
|
-
|
|
48
|
-
Use the Edit tool with file_path: {{docPath}}
|
|
49
|
-
|
|
50
|
-
REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function g(){let w=S(),z=P(y(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return D()}}function M(w,z){return w.replace(/\{\{(\w+)\}\}/g,(B,J)=>Object.prototype.hasOwnProperty.call(z,J)?z[J]:B)}async function R(w,z,B,J){let Y=await g(),K=J?`
|
|
51
|
-
|
|
52
|
-
DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
|
|
53
|
-
The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
|
|
54
|
-
|
|
55
|
-
"${J}"
|
|
56
|
-
|
|
57
|
-
These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return M(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var j=N(()=>{C();E()});function Xw(){G.clear()}function l(w){let z=w.match(r);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(d);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function i(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function s(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=U(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await A.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(b(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=l(q);if(!H){G.delete(w.path);return}let _=await R(q,w.path,H.title,H.instructions),x=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let v=W.file_path;if(typeof v==="string"&&v===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of k({agentDefinition:i(),promptMessages:[L({content:_})],toolUseContext:Z,canUseTool:x,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var r,d,G,Yw;var a=N(()=>{I();m();p();T();h();u();f();j();r=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,d=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=O(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(F(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await s(K,w)})});
|
|
58
|
-
export{Xw as yg,Zw as zg,a as Ag};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{AX as N,FX as $}from"./cli-0.1.10-227xyew7.mjs";import{D4 as M,K1 as L,N1 as Y,b5 as Z}from"./cli-0.1.10-vrd90nhd.mjs";import{i6 as K,z6 as X}from"./cli-0.1.10-s7s5bgrq.mjs";import{D7 as V,y7 as Q}from"./cli-0.1.10-mt6tj76h.mjs";import{Hea as J,Iea as W}from"./cli-0.1.10-594z8zdp.mjs";import{Cga as S,vga as P}from"./cli-0.1.10-e4qewc1p.mjs";import{Kna as R}from"./cli-0.1.10-hyxg32sc.mjs";async function C(){let F=M()?.accessToken;if(!F)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let y=await L();if(!y)throw Error("Unable to get organization UUID");let G=`${J().BASE_API_URL}/v1/environment_providers`;try{let B={...N(F),"x-organization-uuid":y},q=await K.get(G,{headers:B,timeout:15000});if(q.status!==200)throw Error(`Failed to fetch environments: ${q.status} ${q.statusText}`);return q.data.environments}catch(B){let q=P(B);throw Q(q),Error(`Failed to fetch environments: ${q.message}`)}}async function j(F){let y=M()?.accessToken;if(!y)throw Error("No access token available");let G=await L();if(!G)throw Error("Unable to get organization UUID");let B=`${J().BASE_API_URL}/v1/environment_providers/cloud/create`;return(await K.post(B,{name:F,kind:"anthropic_cloud",description:"",config:{environment_type:"anthropic",cwd:"/home/user",init_script:null,environment:{},languages:[{name:"python",version:"3.11"},{name:"node",version:"20"}],network_config:{allowed_hosts:[],allow_default_hosts:!0}}},{headers:{...N(y),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":G},timeout:15000})).data}var b=R(()=>{X();W();Y();Z();S();V();$()});
|
|
2
|
-
export{C as lR,j as mR,b as nR};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Kna as $}from"./cli-0.1.10-hyxg32sc.mjs";function w(z){return z>=48&&z<=126}var d,Y="\x1B",h="\x07",j=";",H;var L=$(()=>{d={NUL:0,SOH:1,STX:2,ETX:3,EOT:4,ENQ:5,ACK:6,BEL:7,BS:8,HT:9,LF:10,VT:11,FF:12,CR:13,SO:14,SI:15,DLE:16,DC1:17,DC2:18,DC3:19,DC4:20,NAK:21,SYN:22,ETB:23,CAN:24,EM:25,SUB:26,ESC:27,FS:28,GS:29,RS:30,US:31,DEL:127},H={CSI:91,OSC:93,DCS:80,APC:95,PM:94,SOS:88,ST:92}});function x(z){return z>=Z.PARAM_START&&z<=Z.PARAM_END}function A(z){return z>=Z.INTERMEDIATE_START&&z<=Z.INTERMEDIATE_END}function N(z){return z>=Z.FINAL_START&&z<=Z.FINAL_END}function J(...z){if(z.length===0)return B;if(z.length===1)return`${B}${z[0]}`;let Q=z.slice(0,-1),V=z[z.length-1];return`${B}${Q.join(j)}${V}`}function k(z=1){return z===0?"":J(z,"A")}function X(z=1){return z===0?"":J(z,"B")}function D(z=1){return z===0?"":J(z,"C")}function M(z=1){return z===0?"":J(z,"D")}function R(z){return J(z,"G")}function C(z,Q){return J(z,Q,"H")}function S(z,Q){let V="";if(z<0)V+=M(-z);else if(z>0)V+=D(z);if(Q<0)V+=k(-Q);else if(Q>0)V+=X(Q);return V}function E(z){if(z<=0)return"";let Q="";for(let V=0;V<z;V++)if(Q+=F,V<z-1)Q+=k(1);return Q+=W,Q}function y(z=1){return z===0?"":J(z,"S")}function a(z=1){return z===0?"":J(z,"T")}function n(z,Q){return J(z,Q,"r")}var B,Z,g,I,_,u,W,q,b,l,F,K,o,c,t,r,i,e,s,zz,Jz,Qz;var v=$(()=>{L();B=Y+String.fromCharCode(H.CSI),Z={PARAM_START:48,PARAM_END:63,INTERMEDIATE_START:32,INTERMEDIATE_END:47,FINAL_START:64,FINAL_END:126};g={CUU:65,CUD:66,CUF:67,CUB:68,CNL:69,CPL:70,CHA:71,CUP:72,CHT:73,VPA:100,HVP:102,ED:74,EL:75,ECH:88,IL:76,DL:77,ICH:64,DCH:80,SU:83,SD:84,SM:104,RM:108,SGR:109,DSR:110,DECSCUSR:113,DECSTBM:114,SCOSC:115,SCORC:117,CBT:90},I=["toEnd","toStart","all","scrollback"],_=["toEnd","toStart","all"],u=[{style:"block",blinking:!0},{style:"block",blinking:!0},{style:"block",blinking:!1},{style:"underline",blinking:!0},{style:"underline",blinking:!1},{style:"bar",blinking:!0},{style:"bar",blinking:!1}];W=J("G");q=J("H");b=J("s"),l=J("u"),F=J(2,"K"),K=J(2,"J"),o=J(3,"J");c=J("r"),t=J("200~"),r=J("201~"),i=J("I"),e=J("O"),s=J(">1u"),zz=J("<u"),Jz=J(">4;2m"),Qz=J(">4m")});function U(){return process.platform==="win32"&&!!process.env.WT_SESSION}function p(){if(process.env.TERM_PROGRAM==="mintty")return!0;if(process.platform==="win32"&&process.env.MSYSTEM)return!0;return!1}function G(){if(U())return!0;if(process.platform==="win32"&&process.env.TERM_PROGRAM==="vscode"&&process.env.TERM_PROGRAM_VERSION)return!0;if(p())return!0;return!1}function T(){if(process.platform==="win32"&&!G())return K+P;return K+q}var P,$z;var f=$(()=>{v();P=J(0,"f");$z=T()});
|
|
2
|
-
export{d as o0,Y as p0,h as q0,j as r0,H as s0,w as t0,L as u0,x as v0,A as w0,N as x0,J as y0,g as z0,I as A0,_ as B0,u as C0,R as D0,C as E0,q as F0,S as G0,K as H0,E as I0,y as J0,a as K0,n as L0,c as M0,t as N0,r as O0,i as P0,e as Q0,s as R0,zz as S0,Jz as T0,Qz as U0,v as V0,T as W0,$z as X0,f as Y0};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{MU as r,_S as s,pV as l}from"./cli-0.1.10-gms4557v.mjs";import{kX as c}from"./cli-0.1.10-v6gq9bxc.mjs";import{Gna as t,Kna as m}from"./cli-0.1.10-hyxg32sc.mjs";function u(){let o=i.c(1),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e=n.jsxDEV(r,{color:"permission",children:["Press ",n.jsxDEV(r,{bold:!0,children:"Enter"},void 0,!1,void 0,this)," to continue…"]},void 0,!0,void 0,this),o[0]=e;else e=o[0];return e}var i,n;var f=m(()=>{l();i=t(s(),1),n=t(c(),1)});
|
|
2
|
-
export{u as Pe,f as Qe};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{D7 as L,Oba as N,vba as B,y7 as A}from"./cli-0.1.10-mt6tj76h.mjs";import{Wga as z,Zga as K}from"./cli-0.1.10-e4qewc1p.mjs";import{Jna as I,Kna as J}from"./cli-0.1.10-hyxg32sc.mjs";var V={};I(V,{setCliTeammateModeOverride:()=>P,getTeammateModeFromSnapshot:()=>U,getCliTeammateModeOverride:()=>Q,clearCliTeammateModeOverride:()=>R,captureTeammateModeSnapshot:()=>H});function P(x){y=x}function Q(){return y}function R(x){y=null,q=x,z(`[TeammateModeSnapshot] CLI override cleared, new mode: ${x}`)}function H(){if(y)q=y,z(`[TeammateModeSnapshot] Captured from CLI override: ${q}`);else q=B().teammateMode??"auto",z(`[TeammateModeSnapshot] Captured from config: ${q}`)}function U(){if(q===null)A(Error("getTeammateModeFromSnapshot called before capture - this indicates an initialization bug")),H();return q??"auto"}var q=null,y=null;var W=J(()=>{N();K();L()});
|
|
2
|
-
export{P as oP,Q as pP,R as qP,H as rP,U as sP,V as tP,W as uP};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Kc as w,Lc as _,Mc as D,Nc as L,Oc as A,Pc as h,Qc as y}from"./cli-0.1.10-c7bkm855.mjs";import{Qu as j,Ru as I,ik as R,lk as b,qu as W,sG as X,tG as O,tu as V,vu as C}from"./cli-0.1.10-y9mkzh11.mjs";import{D7 as M,E7 as K,F7 as N,y7 as U}from"./cli-0.1.10-mt6tj76h.mjs";import{Yfa as Q,Zfa as S}from"./cli-0.1.10-f2jh6yv0.mjs";import{Cga as v,wga as B}from"./cli-0.1.10-e4qewc1p.mjs";import{nha as x,rha as F}from"./cli-0.1.10-pw67rrjr.mjs";N();v();I();M();O();b();F();C();S();y();function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${K.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=R(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...W(Y,$,X())}})():{};Q("tengu_plugin_command_failed",{command:J,error_category:V(z),...H}),process.exit(1)}async function g(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await w(z,J);if(!q.success)throw Error(q.message);console.log(`${K.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);Q("tengu_plugin_installed_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function a(z,J="user",q=!1){try{let G=await _(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${K.tick} ${G.message}`);let{name:H,marketplace:Y}=R(G.pluginId||z);Q("tengu_plugin_uninstalled_cli",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...W(H,Y,X())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function i(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${K.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);Q("tengu_plugin_enabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function u(z,J){try{let q=await L(z,J);if(!q.success)throw Error(q.message);console.log(`${K.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);Q("tengu_plugin_disabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function n(){try{let z=await A();if(!z.success)throw Error(z.message);console.log(`${K.tick} ${z.message}`),Q("tengu_plugin_disabled_all_cli",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function r(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope…
|
|
2
|
-
`);let q=await h(z,J);if(!q.success)throw Error(q.message);if(x(`${K.tick} ${q.message}
|
|
3
|
-
`),!q.alreadyUpToDate){let{name:G,marketplace:H}=R(q.pluginId||z);Q("tengu_plugin_updated_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},old_version:q.oldVersion||"unknown",new_version:q.newVersion||"unknown",...W(G,H,X())})}await j(0)}catch(q){Z(q,"update",z)}}
|
|
4
|
-
export{g as C,a as D,i as E,u as F,n as G,r as H};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{Ina as n}from"./cli-0.1.10-hyxg32sc.mjs";var w=n((p)=>{var r={warningEmitted:!1},a=(e)=>{if(e&&!r.warningEmitted&&parseInt(e.substring(1,e.indexOf(".")))<20)r.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
|
|
2
|
-
no longer support Node.js ${e} in January 2026.
|
|
3
|
-
|
|
4
|
-
To continue receiving updates to AWS services, bug fixes, and security
|
|
5
|
-
updates please upgrade to a supported Node.js LTS version.
|
|
6
|
-
|
|
7
|
-
More information can be found at: https://a.co/c895JFp`)};function o(e,t,s){if(!e.$source)e.$source={};return e.$source[t]=s,e}function u(e,t,s){if(!e.__aws_sdk_context)e.__aws_sdk_context={features:{}};else if(!e.__aws_sdk_context.features)e.__aws_sdk_context.features={};e.__aws_sdk_context.features[t]=s}function i(e,t,s){if(!e.$source)e.$source={};return e.$source[t]=s,e}p.emitWarningIfUnsupportedVersion=a;p.setCredentialFeature=o;p.setFeature=u;p.setTokenFeature=i;p.state=r});
|
|
8
|
-
export{w as Ana};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{G8 as _,q8 as Q}from"./cli-0.1.10-mt6tj76h.mjs";import{Vda as I,Wda as V}from"./cli-0.1.10-4n8p34vn.mjs";import{Wga as B,Zga as X}from"./cli-0.1.10-e4qewc1p.mjs";import{Kna as T}from"./cli-0.1.10-hyxg32sc.mjs";function j(){A.clear()}async function P(){let f=await Y();if(!f)return null;if(f.host!=="github.com")return null;return`${f.owner}/${f.name}`}async function Y(){let f=I();if(A.has(f))return A.get(f)??null;try{let q=await Q();if(B(`Git remote URL: ${q}`),!q)return B("No git remote URL found"),A.set(f,null),null;let x=O(q);return B(`Parsed repository: ${x?`${x.host}/${x.owner}/${x.name}`:null} from URL: ${q}`),A.set(f,x),x}catch(q){return B(`Error detecting repository: ${q}`),A.set(f,null),null}}function S(){let f=A.get(I());if(!f||f.host!=="github.com")return null;return`${f.owner}/${f.name}`}function O(f){let q=f.trim(),x=q.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(x?.[1]&&x[2]&&x[3]){if(!N(x[1]))return null;return{host:x[1],owner:x[2],name:x[3]}}let z=q.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(z?.[1]&&z[2]&&z[3]&&z[4]){let E=z[1],J=z[2],K=J.split(":")[0]??"";if(!N(K))return null;return{host:E==="https"||E==="http"?J:K,owner:z[3],name:z[4]}}return null}function D(f){let q=f.trim(),x=O(q);if(x){if(x.host!=="github.com")return null;return`${x.owner}/${x.name}`}if(!q.includes("://")&&!q.includes("@")&&q.includes("/")){let z=q.split("/");if(z.length===2&&z[0]&&z[1]){let E=z[1].replace(/\.git$/,"");return`${z[0]}/${E}`}}return B(`Could not parse repository from: ${q}`),null}function N(f){if(!f.includes("."))return!1;let q=f.split(".").pop();if(!q)return!1;return/^[a-zA-Z]+$/.test(q)}var A;var Z=T(()=>{V();X();_();A=new Map});
|
|
2
|
-
export{j as b6,P as c6,Y as d6,S as e6,O as f6,D as g6,Z as h6};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c6 as Z,g6 as _,h6 as w}from"./cli-0.1.10-7ydarbm4.mjs";import{G8 as T,N9 as D,Oba as j,W7 as Y,X7 as U,g8 as $,r9 as k,sba as W,vba as V}from"./cli-0.1.10-mt6tj76h.mjs";import{Wga as N,Zga as M}from"./cli-0.1.10-e4qewc1p.mjs";import{$ia as X,Oma as O}from"./cli-0.1.10-mqgz2v10.mjs";O();j();M();w();D();U();T();import{realpath as v}from"fs/promises";async function b(){try{let q=await Z();if(!q){N("Not in a GitHub repository, skipping path mapping update");return}let A=X(),z=$(A)??A,B;try{B=(await v(z)).normalize("NFC")}catch{B=z}let J=q.toLowerCase(),L=V().githubRepoPaths?.[J]??[];if(L[0]===B){N(`Path ${B} already tracked for repo ${J}`);return}let E=L.filter((S)=>S!==B),H=[B,...E];W((S)=>({...S,githubRepoPaths:{...S.githubRepoPaths,[J]:H}})),N(`Added ${B} to tracked paths for repo ${J}`)}catch(q){N(`Error updating repo path mapping: ${q}`)}}function y(q){let A=V(),I=q.toLowerCase();return A.githubRepoPaths?.[I]??[]}async function P(q){let A=await Promise.all(q.map(k));return q.filter((I,z)=>A[z])}async function d(q,A){try{let I=await Y(q);if(!I)return!1;let z=_(I);if(!z)return!1;return z.toLowerCase()===A.toLowerCase()}catch{return!1}}function c(q,A){let I=V(),z=q.toLowerCase(),B=I.githubRepoPaths?.[z]??[],J=B.filter((L)=>L!==A);if(J.length===B.length)return;let Q={...I.githubRepoPaths};if(J.length===0)delete Q[z];else Q[z]=J;W((L)=>({...L,githubRepoPaths:Q})),N(`Removed ${A} from tracked paths for repo ${z}`)}
|
|
2
|
-
export{b as K,y as L,P as M,d as N,c as O};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$d as R,be as d}from"./cli-0.1.10-d70y9y7x.mjs";import{jS as j,mS as c}from"./cli-0.1.10-be8dvtg8.mjs";import{Cga as h,Wga as K,Zga as D,wga as C}from"./cli-0.1.10-e4qewc1p.mjs";import{Kna as I,Lna as J}from"./cli-0.1.10-hyxg32sc.mjs";async function i({environmentId:X,title:Q,events:q,gitRepoUrl:$,branch:Y,signal:z,baseUrl:G,getAccessToken:L,permissionMode:W}){let{getClaudeAIOAuthTokens:B}=await import("./auth-0.1.10-ec2e3mg3.mjs"),{getOrganizationUUID:Z}=await import("./client-0.1.10-btm7zd17.mjs"),{getOauthConfig:V}=await import("./oauth-0.1.10-t6fn448z.mjs"),{getOAuthHeaders:P}=await import("./api-0.1.10-712k136n.mjs"),{parseGitHubRepository:N}=await import("./detectRepository-0.1.10-1kyc0kvc.mjs"),{getDefaultBranch:_}=await import("./git-0.1.10-ngvcytb0.mjs"),{getMainLoopModel:M}=await import("./model-0.1.10-9g2nyrq7.mjs"),{default:T}=await import("./index-0.1.10-ra4k3x9k.mjs"),x=L?.()??B()?.accessToken;if(!x)return K("[bridge] No access token for session creation"),null;let k=await Z();if(!k)return K("[bridge] No org UUID for session creation"),null;let E=null,v=null;if($){let{parseGitRemote:y}=await import("./detectRepository-0.1.10-1kyc0kvc.mjs"),O=y($);if(O){let{host:A,owner:S,name:f}=O,F=Y||await _()||void 0;E={type:"git_repository",url:`https://${A}/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}else{let A=N($);if(A){let[S,f]=A.split("/");if(S&&f){let F=Y||await _()||void 0;E={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}}}}let m={...Q!==void 0&&{title:Q},events:q,session_context:{sources:E?[E]:[],outcomes:v?[v]:[],model:M()},environment_id:X,source:"remote-control",...W&&{permission_mode:W}},U={...P(x),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":k},b=`${G??V().BASE_API_URL}/v1/sessions`,H;try{H=await T.post(b,m,{headers:U,signal:z,validateStatus:(y)=>y<500})}catch(y){return K(`[bridge] Session creation request failed: ${C(y)}`),null}if(!(H.status===200||H.status===201)){let y=R(H.data);return K(`[bridge] Session creation failed with status ${H.status}${y?`: ${y}`:""}`),null}let w=H.data;if(!w||typeof w!=="object"||!("id"in w)||typeof w.id!=="string")return K("[bridge] No session ID in response"),null;return w.id}async function r(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.1.10-ec2e3mg3.mjs"),{getOrganizationUUID:$}=await import("./client-0.1.10-btm7zd17.mjs"),{getOauthConfig:Y}=await import("./oauth-0.1.10-t6fn448z.mjs"),{getOAuthHeaders:z}=await import("./api-0.1.10-712k136n.mjs"),{default:G}=await import("./index-0.1.10-ra4k3x9k.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L)return K("[bridge] No access token for session fetch"),null;let W=await $();if(!W)return K("[bridge] No org UUID for session fetch"),null;let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}`,V=1e4;K(`[bridge] Fetching session ${X}`);let P;try{P=await G.get(Z,{headers:B,timeout:V,validateStatus:(N)=>N<500})}catch(N){if(G.isAxiosError(N)){let _=N.response?.status??"no-response",M=N.code??"unknown-code",T=N.config?.url??Z,x=N.config?.method?.toUpperCase()??"GET",k=N.message??C(N),E=N.config?.timeout??V;K(`[bridge] Session fetch request failed: status=${_} code=${M} method=${x} url=${T} timeout=${E} message=${k}`)}else K(`[bridge] Session fetch request failed: url=${Z} timeout=${V} message=${C(N)}`);return null}if(P.status!==200){let N=R(P.data);return K(`[bridge] Session fetch failed with status ${P.status} url=${Z}${N?`: ${N}`:""}`),null}return P.data}async function t(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.1.10-ec2e3mg3.mjs"),{getOrganizationUUID:$}=await import("./client-0.1.10-btm7zd17.mjs"),{getOauthConfig:Y}=await import("./oauth-0.1.10-t6fn448z.mjs"),{getOAuthHeaders:z}=await import("./api-0.1.10-712k136n.mjs"),{default:G}=await import("./index-0.1.10-ra4k3x9k.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L){K("[bridge] No access token for session archive");return}let W=await $();if(!W){K("[bridge] No org UUID for session archive");return}let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}/archive`;K(`[bridge] Archiving session ${X}`);let V=await G.post(Z,{},{headers:B,timeout:Q?.timeoutMs??1e4,validateStatus:(P)=>P<500});if(V.status===200)K(`[bridge] Session ${X} archived successfully`);else{let P=R(V.data);K(`[bridge] Session archive failed with status ${V.status}${P?`: ${P}`:""}`)}}async function o(X,Q,q){let{getClaudeAIOAuthTokens:$}=await import("./auth-0.1.10-ec2e3mg3.mjs"),{getOrganizationUUID:Y}=await import("./client-0.1.10-btm7zd17.mjs"),{getOauthConfig:z}=await import("./oauth-0.1.10-t6fn448z.mjs"),{getOAuthHeaders:G}=await import("./api-0.1.10-712k136n.mjs"),{default:L}=await import("./index-0.1.10-ra4k3x9k.mjs"),W=q?.getAccessToken?.()??$()?.accessToken;if(!W){K("[bridge] No access token for session title update");return}let B=await Y();if(!B){K("[bridge] No org UUID for session title update");return}let Z={...G(W),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},V=j(X),P=`${q?.baseUrl??z().BASE_API_URL}/v1/sessions/${V}`;K(`[bridge] Updating session title: ${V} → ${Q}`);try{let N=await L.patch(P,{title:Q},{headers:Z,timeout:1e4,validateStatus:(_)=>_<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let _=R(N.data);K(`[bridge] Session title update failed with status ${N.status}${_?`: ${_}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${C(N)}`)}}var p=I(()=>{D();h();d();c()});
|
|
2
|
-
export{i as Td,r as Ud,t as Vd,o as Wd,p as Xd};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$Z as p,WZ as N,XZ as k,YZ as F,_Z as U}from"./cli-0.1.10-2ahvbvra.mjs";import{e5 as L,f5 as M,i5 as O,k5 as P,s5 as x,u5 as H,v5 as V}from"./cli-0.1.10-y6a8q1t3.mjs";import{Aaa as Y,Jaa as D,Oba as K,b_ as I,d_ as b,vaa as X,vba as Z}from"./cli-0.1.10-mt6tj76h.mjs";import{bha as $,lha as G}from"./cli-0.1.10-y1bkenem.mjs";k();M();K();G();p();P();V();b();D();function A(q){if(!q||!process.env.ANTHROPIC_UNIX_SOCKET)return q||{};let{ANTHROPIC_UNIX_SOCKET:z,ANTHROPIC_BASE_URL:B,ANTHROPIC_API_KEY:Q,ANTHROPIC_AUTH_TOKEN:w,CLAUDE_CODE_OAUTH_TOKEN:j,...m}=q;return m}function R(q){if(!q)return{};if(!$(process.env.CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST))return q;let z={};for(let[B,Q]of Object.entries(q))if(!F(B))z[B]=Q;return z}var W;function _(q){if(!q||!W)return q||{};let z={};for(let[B,Q]of Object.entries(q))if(!W.has(B))z[B]=Q;return z}function J(q){return _(R(A(q)))}var h=["userSettings","flagSettings","policySettings"];function S(){if(W===void 0)W=process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"?new Set(Object.keys(process.env)):null;Object.assign(process.env,J(Z().env));for(let z of h){if(z==="policySettings")continue;if(!I(z))continue;Object.assign(process.env,J(X(z)?.env))}N(),Object.assign(process.env,J(X("policySettings")?.env));let q=J(Y()?.env);for(let[z,B]of Object.entries(q))if(U.has(z.toUpperCase()))process.env[z]=B}function o(){Object.assign(process.env,J(Z().env)),Object.assign(process.env,J(Y()?.env)),L(),O(),H(),x()}
|
|
2
|
-
export{S as TZ,o as UZ};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Kna as H}from"./cli-0.1.10-hyxg32sc.mjs";function F(){if(!A)A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return A}function K(b){if(!b)return"";return F().segment(b)[Symbol.iterator]().next().value?.segment??""}function M(b){if(!b)return"";let j="";for(let{segment:q}of F().segment(b))j=q;return j}function N(){if(!B)B=new Intl.Segmenter(void 0,{granularity:"word"});return B}function O(b,j){let q=`${b}:${j}`,z=E.get(q);if(!z)z=new Intl.RelativeTimeFormat("en",{style:b,numeric:j}),E.set(q,z);return z}function P(){if(!D)D=Intl.DateTimeFormat().resolvedOptions().timeZone;return D}var A=null,B=null,E,D=null;var J=H(()=>{E=new Map});
|
|
2
|
-
export{F as Rfa,K as Sfa,M as Tfa,N as Ufa,O as Vfa,P as Wfa,J as Xfa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ae as rG,Ge as iG,ze as bG}from"./cli-0.1.10-brfs5rdm.mjs";import{AI as DG,DI as aG,Dq as HG,Eq as KG,GI as v,Gq as dG,II as u,Iq as LG,JI as c,KI as r,KJ as n,LJ as _G,MI as d,MJ as UG,NI as i,NJ as sG,Nq as VG,OJ as $G,PJ as cG,QI as oG,Wq as mG,Yq as WG,Zq as qG,bo as uG,cr as a,eI as s,fI as lG,gr as kG,ir as R,jr as o,kr as pG}from"./cli-0.1.10-y9mkzh11.mjs";import{_S as JJ}from"./cli-0.1.10-gms4557v.mjs";import{GW as vG,kW as FG,nW as OG,sW as jG}from"./cli-0.1.10-gccb3gw8.mjs";import{kX as PG}from"./cli-0.1.10-v6gq9bxc.mjs";import{lX as BG}from"./cli-0.1.10-28zx3btb.mjs";import{A7 as E,B7 as D,D7 as CG,E$ as fG,z$ as YG}from"./cli-0.1.10-mt6tj76h.mjs";import{gfa as NG}from"./cli-0.1.10-w1hqcxj1.mjs";import{Yfa as x,Zfa as gG}from"./cli-0.1.10-f2jh6yv0.mjs";import{Cga as MG,Iga as TG,Wga as zG,Zga as SG,wga as w}from"./cli-0.1.10-e4qewc1p.mjs";import{Oma as ZG,Via as XG}from"./cli-0.1.10-mqgz2v10.mjs";import{Gna as M,Kna as l}from"./cli-0.1.10-hyxg32sc.mjs";var GG=l(()=>{TG();NG()});function JG(F){let B="plugin"in F?F.plugin:"no-plugin";return`${F.type}:${F.source}:${B}`}function QG(F,B){if(B.length===0)return;F((k)=>{let h=new Set(k.plugins.errors.map((K)=>JG(K))),P=B.filter((K)=>!h.has(JG(K)));if(P.length===0)return k;return{...k,plugins:{...k.plugins,errors:[...k.plugins.errors,...P]}}})}function IG(F,B=!1){let k=UG(),h=n((G)=>G.authVersion),P=n((G)=>G.mcp.pluginReconnectKey),K=_G(),L=q.useRef(new Map),N=q.useRef(new Set),C=q.useRef(null);q.useEffect(()=>{},[K]);let{addNotification:T}=$G(),RG=16,m=q.useRef([]),y=q.useRef(null),g=q.useCallback(()=>{y.current=null;let G=m.current;if(G.length===0)return;m.current=[],K((Y)=>{let z=Y.mcp;for(let V of G){let{tools:Q,commands:O,resources:W,...J}=V,j=J.type==="disabled"||J.type==="failed"?Q??[]:Q,X=J.type==="disabled"||J.type==="failed"?O??[]:O,Z=J.type==="disabled"||J.type==="failed"?W??[]:W,H=YG(J.name),f=z.clients.findIndex((I)=>I.name===J.name)===-1?[...z.clients,J]:z.clients.map((I)=>I.name===J.name?J:I),b=j===void 0?z.tools:[...s(z.tools,(I)=>I.name?.startsWith(H)),...j],p=X===void 0?z.commands:[...s(z.commands,(I)=>LG(I,J.name)),...X],hG=Z===void 0?z.resources:{...z.resources,...Z.length>0?{[J.name]:Z}:bG(z.resources,J.name)};z={...z,clients:f,tools:b,commands:p,resources:hG}}return{...Y,mcp:z}})},[K]),_=q.useCallback((G)=>{if(m.current.push(G),y.current===null)y.current=setTimeout(g,RG)},[g]),U=q.useCallback(({client:G,tools:Y,commands:z,resources:V})=>{switch(_({...G,tools:Y,commands:z,resources:V}),G.type){case"connected":{if(DG(G.client,G.name,K),G.client.onclose=()=>{let Q=G.config.type??"stdio";if(v(G.name,G.config).catch(()=>{zG(`Failed to invalidate the server cache: ${G.name}`)}),R(G.name)){D(G.name,"Server is disabled, skipping automatic reconnection");return}if(Q!=="stdio"&&Q!=="sdk"){let O=GJ(Q);D(G.name,`${O} transport closed/disconnected, attempting automatic reconnection`);let W=L.current.get(G.name);if(W)clearTimeout(W),L.current.delete(G.name);(async()=>{for(let j=1;j<=A;j++){if(R(G.name)){D(G.name,"Server disabled during reconnection, stopping retry"),L.current.delete(G.name);return}_({...G,type:"pending",reconnectAttempt:j,maxReconnectAttempts:A});let X=Date.now();try{let H=await d(G.name,G.config),$=Date.now()-X;if(H.client.type==="connected"){D(G.name,`${O} reconnection successful after ${$}ms (attempt ${j})`),L.current.delete(G.name),U(H);return}if(D(G.name,`${O} reconnection attempt ${j} completed with status: ${H.client.type}`),j===A){D(G.name,`Max reconnection attempts (${A}) reached, giving up`),L.current.delete(G.name),U(H);return}}catch(H){let $=Date.now()-X;if(E(G.name,`${O} reconnection attempt ${j} failed after ${$}ms: ${H}`),j===A){D(G.name,`Max reconnection attempts (${A}) reached, giving up`),L.current.delete(G.name),_({...G,type:"failed"});return}}let Z=Math.min(tG*Math.pow(2,j-1),eG);D(G.name,`Scheduling reconnection attempt ${j+1} in ${Z}ms`),await new Promise((H)=>{let $=setTimeout(H,Z);L.current.set(G.name,$)})}})()}else _({...G,type:"failed"})},!1)switch(Q.action){case"register":case"skip":}if(G.capabilities?.tools?.listChanged)G.client.setNotificationHandler(jG,async()=>{D(G.name,"Received tools/list_changed notification, refreshing tools");try{let Q=u.cache.get(G.name);u.cache.delete(G.name);let O=await u(G),W=O.length;if(Q)Q.then((J)=>{x("tengu_mcp_list_changed",{type:"tools",previousCount:J.length,newCount:W})},()=>{x("tengu_mcp_list_changed",{type:"tools",newCount:W})});else x("tengu_mcp_list_changed",{type:"tools",newCount:W});_({...G,tools:O})}catch(Q){E(G.name,`Failed to refresh tools after list_changed notification: ${w(Q)}`)}});if(G.capabilities?.prompts?.listChanged)G.client.setNotificationHandler(OG,async()=>{D(G.name,"Received prompts/list_changed notification, refreshing prompts"),x("tengu_mcp_list_changed",{type:"prompts"});try{r.cache.delete(G.name);let[Q,O]=await Promise.all([r(G),Promise.resolve([])]);_({...G,commands:[...Q,...O]}),nG?.()}catch(Q){E(G.name,`Failed to refresh prompts after list_changed notification: ${w(Q)}`)}});if(G.capabilities?.resources?.listChanged)G.client.setNotificationHandler(FG,async()=>{D(G.name,"Received resources/list_changed notification, refreshing resources"),x("tengu_mcp_list_changed",{type:"resources"});try{c.cache.delete(G.name);{let Q=await c(G);_({...G,resources:Q})}}catch(Q){E(G.name,`Failed to refresh resources after list_changed notification: ${w(Q)}`)}});break}case"needs-auth":case"failed":case"pending":case"disabled":break}},[_]),e=XG();q.useEffect(()=>{async function G(){let{servers:Y,errors:z}=B?{servers:{},errors:[]}:await a(F),V={...Y,...F};QG(K,z),K((Q)=>{let{stale:O,...W}=VG(Q.mcp,V);for(let X of O){let Z=L.current.get(X.name);if(Z)clearTimeout(Z),L.current.delete(X.name);if(X.type==="connected")X.client.onclose=void 0,v(X.name,X.config).catch(()=>{})}let J=new Set(W.clients.map((X)=>X.name)),j=Object.entries(V).filter(([X])=>!J.has(X)).map(([X,Z])=>({name:X,type:R(X)?"disabled":"pending",config:Z}));if(j.length===0&&O.length===0)return Q;return{...Q,mcp:{...Q.mcp,...W,clients:[...W.clients,...j]}}})}G().catch((Y)=>{E("useManageMCPConnections",`Failed to initialize servers as pending: ${w(Y)}`)})},[B,F,K,e,P]),q.useEffect(()=>{let G=!1;async function Y(){let z;if(B||kG())z=Promise.resolve({});else KG(),z=HG();let{servers:V,errors:Q}=B?{servers:{},errors:[]}:await a(F,z);if(G)return;QG(K,Q);let O={...V,...F},W=Object.fromEntries(Object.entries(O).filter(([Z])=>!R(Z)));i(U,W).catch((Z)=>{E("useManageMcpConnections",`Failed to get MCP resources: ${w(Z)}`)});let J={};if(!B){if(J=qG(await z).allowed,G)return;if(Object.keys(J).length>0){let{servers:Z}=WG(J,O);J=Z}if(Object.keys(J).length>0){K((H)=>{let $=new Set(H.mcp.clients.map((b)=>b.name)),f=Object.entries(J).filter(([b])=>!$.has(b)).map(([b,p])=>({name:b,type:R(b)?"disabled":"pending",config:p}));if(f.length===0)return H;return{...H,mcp:{...H.mcp,clients:[...H.mcp.clients,...f]}}});let Z=Object.fromEntries(Object.entries(J).filter(([H])=>!R(H)));i(U,Z).catch((H)=>{E("useManageMcpConnections",`Failed to get claude.ai MCP resources: ${w(H)}`)})}}let j={...O,...J},X={enterprise:0,global:0,project:0,user:0,plugin:0,claudeai:0};for(let Z of Object.values(j))if(Z.scope==="enterprise")X.enterprise++;else if(Z.scope==="user")X.global++;else if(Z.scope==="project")X.project++;else if(Z.scope==="local")X.user++;else if(Z.scope==="dynamic")X.plugin++;else if(Z.scope==="claudeai")X.claudeai++;x("tengu_mcp_servers",{...X})}return Y(),()=>{G=!0}},[B,F,U,K,h,e,P]),q.useEffect(()=>{let G=L.current;return()=>{for(let Y of G.values())clearTimeout(Y);if(G.clear(),y.current!==null)clearTimeout(y.current),y.current=null,g()}},[g]);let yG=q.useCallback(async(G)=>{let Y=k.getState().mcp.clients.find((Q)=>Q.name===G);if(!Y)throw Error(`MCP server ${G} not found`);let z=L.current.get(G);if(z)clearTimeout(z),L.current.delete(G);let V=await d(G,Y.config);return U(V),V},[k,U]),AG=q.useCallback(async(G)=>{let Y=k.getState().mcp.clients.find((V)=>V.name===G);if(!Y)throw Error(`MCP server ${G} not found`);if(Y.type!=="disabled"){let V=L.current.get(G);if(V)clearTimeout(V),L.current.delete(G);if(o(G,!1),Y.type==="connected")await v(G,Y.config);_({name:G,type:"disabled",config:Y.config})}else{o(G,!0),_({name:G,type:"pending",config:Y.config});let V=await d(G,Y.config);U(V)}},[k,_,U]);return{reconnectMcpServer:yG,toggleMcpServer:AG}}function GJ(F){switch(F){case"http":return"HTTP";case"ws":case"ws-ide":return"WebSocket";default:return"SSE"}}var q,nG=null,A=5,tG=1000,eG=30000;var EG=l(()=>{ZG();oG();vG();rG();lG();gG();pG();SG();ZG();cG();sG();MG();CG();uG();iG();GG();dG();aG();fG();mG();q=M(BG(),1)});function mJ(){let F=S.useContext(t);if(!F)throw Error("useMcpReconnect must be used within MCPConnectionManager");return F.reconnectMcpServer}function pJ(){let F=S.useContext(t);if(!F)throw Error("useMcpToggleEnabled must be used within MCPConnectionManager");return F.toggleMcpServer}function lJ(F){let B=wG.c(6),{children:k,dynamicMcpConfig:h,isStrictMcpConfig:P}=F,{reconnectMcpServer:K,toggleMcpServer:L}=IG(h,P),N;if(B[0]!==K||B[1]!==L)N={reconnectMcpServer:K,toggleMcpServer:L},B[0]=K,B[1]=L,B[2]=N;else N=B[2];let C=N,T;if(B[3]!==k||B[4]!==C)T=xG.jsxDEV(t.Provider,{value:C,children:k},void 0,!1,void 0,this),B[3]=k,B[4]=C,B[5]=T;else T=B[5];return T}var wG,S,xG,t;var QJ=l(()=>{EG();wG=M(JJ(),1),S=M(BG(),1),xG=M(PG(),1),t=S.createContext(null)});
|
|
2
|
-
export{GG as ue,mJ as ve,pJ as we,lJ as xe,QJ as ye};
|