@claudiolabs/claudin 1.1.4 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.1.6-x7n9ytww.mjs +1 -0
- package/dist/chunks/App-1.1.6-c6rweprc.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.6-6ftn2yne.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.6-sj9zmmtv.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.6-f6ddwjrx.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.6-k9tn0pj4.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.6-b6d7x0de.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.6-y50my4k1.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.6-f6qdk76y.mjs +7 -0
- package/dist/chunks/Doctor-1.1.6-qyx4qzdq.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.6-awsqgemk.mjs +6 -0
- package/dist/chunks/Grove-1.1.6-0vbvbtf9.mjs +1 -0
- package/dist/chunks/ITermBackend-1.1.6-jzgd98ar.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.6-z8tyzxq7.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.6-rgb0vr20.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.6-exfknbe3.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.6-hhchpr6n.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.6-ved8vv0y.mjs +1 -0
- package/dist/chunks/REPL-1.1.6-zgf6affr.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.6-sgk5jenb.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.6-vewcvzfk.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.6-45ejtamd.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.6-zpmyhte9.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.6-2fgj9d8c.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.6-k3acgnms.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.6-wm9edxm3.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.6-f5gagp9s.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.6-6zdk3xg9.mjs +1 -0
- package/dist/chunks/add-dir-1.1.6-6y5y18e6.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.6-x8wczn2w.mjs +1 -0
- package/dist/chunks/agents-1.1.6-fmrq78j4.mjs +110 -0
- package/dist/chunks/agents-1.1.6-zrjhvysw.mjs +3 -0
- package/dist/chunks/api-1.1.6-qc845wwh.mjs +1 -0
- package/dist/chunks/asciicast-1.1.6-sx36762w.mjs +1 -0
- package/dist/chunks/assistant-1.1.6-e1sg8hzr.mjs +1 -0
- package/dist/chunks/auth-1.1.6-mwxg5qqn.mjs +1 -0
- package/dist/chunks/auth-1.1.6-v1axwwg0.mjs +1 -0
- package/dist/chunks/autoMode-1.1.6-cda55b0q.mjs +48 -0
- package/dist/chunks/autoUpdater-1.1.6-mmxfdsn5.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.6-8k7ks7mv.mjs +1 -0
- package/dist/chunks/branch-1.1.6-a2650qeh.mjs +4 -0
- package/dist/chunks/bridge-1.1.6-q66r3557.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.6-rm4k81zg.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.6-mkvt3gef.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.6-bec2ff5f.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.6-ye36jn3c.mjs +1 -0
- package/dist/chunks/btw-1.1.6-39ecm53z.mjs +1 -0
- package/dist/chunks/buddy-1.1.6-8ae7998s.mjs +3 -0
- package/dist/chunks/cacache-1.1.6-x2qyv1zr.mjs +1 -0
- package/dist/chunks/cache-probe-1.1.6-bbs2wjce.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.6-8z470d9r.mjs +4 -0
- package/dist/chunks/caches-1.1.6-tyzqjw4d.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.1.6-c7kf2b1x.mjs +1 -0
- package/dist/chunks/claudemd-1.1.6-p1b608sq.mjs +1 -0
- package/dist/chunks/clear-1.1.6-dkjf4k5d.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.6-10knjhkd.mjs +1 -0
- package/dist/chunks/cli-1.1.6-01m0y5pz.mjs +4 -0
- package/dist/chunks/cli-1.1.6-03q6hzb7.mjs +6 -0
- package/dist/chunks/cli-1.1.6-0a0rct1w.mjs +2 -0
- package/dist/chunks/cli-1.1.6-0ah57p2z.mjs +2 -0
- package/dist/chunks/cli-1.1.6-0fp87j9f.mjs +2 -0
- package/dist/chunks/cli-1.1.6-0ge1d3cp.mjs +2 -0
- package/dist/chunks/cli-1.1.6-0jyg24vq.mjs +2 -0
- package/dist/chunks/cli-1.1.6-0kb90hx1.mjs +2 -0
- package/dist/chunks/cli-1.1.6-0xjp9jz6.mjs +2 -0
- package/dist/chunks/cli-1.1.6-19szys5x.mjs +2 -0
- package/dist/chunks/cli-1.1.6-1mjbd775.mjs +12 -0
- package/dist/chunks/cli-1.1.6-1sc3w33e.mjs +2 -0
- package/dist/chunks/cli-1.1.6-1tj2qv82.mjs +2 -0
- package/dist/chunks/cli-1.1.6-20kf1gk7.mjs +2 -0
- package/dist/chunks/cli-1.1.6-20yc7rgs.mjs +2 -0
- package/dist/chunks/cli-1.1.6-2dcm44zg.mjs +20 -0
- package/dist/chunks/cli-1.1.6-2kmx6xmk.mjs +3 -0
- package/dist/chunks/cli-1.1.6-30cxzm2b.mjs +2 -0
- package/dist/chunks/cli-1.1.6-31b4v7gz.mjs +25 -0
- package/dist/chunks/cli-1.1.6-33fpz8x7.mjs +2 -0
- package/dist/chunks/cli-1.1.6-38h340te.mjs +2 -0
- package/dist/chunks/cli-1.1.6-3key30vx.mjs +3 -0
- package/dist/chunks/cli-1.1.6-3q41k22r.mjs +2 -0
- package/dist/chunks/cli-1.1.6-3ry7rc5m.mjs +2 -0
- package/dist/chunks/cli-1.1.6-3rzrj8b1.mjs +2 -0
- package/dist/chunks/cli-1.1.6-3v7ddvyw.mjs +2 -0
- package/dist/chunks/cli-1.1.6-3vfjds47.mjs +3 -0
- package/dist/chunks/cli-1.1.6-40zqm9vv.mjs +17 -0
- package/dist/chunks/cli-1.1.6-41a0kjv6.mjs +2 -0
- package/dist/chunks/cli-1.1.6-43e69bmz.mjs +2 -0
- package/dist/chunks/cli-1.1.6-46emz4hv.mjs +2 -0
- package/dist/chunks/cli-1.1.6-486ywdzz.mjs +34 -0
- package/dist/chunks/cli-1.1.6-4cqcrvjd.mjs +59 -0
- package/dist/chunks/cli-1.1.6-4hcybe4h.mjs +18 -0
- package/dist/chunks/cli-1.1.6-4jgf1x2b.mjs +2 -0
- package/dist/chunks/cli-1.1.6-4npgtt47.mjs +4 -0
- package/dist/chunks/cli-1.1.6-4pykf467.mjs +5 -0
- package/dist/chunks/cli-1.1.6-4rhrh6wc.mjs +4 -0
- package/dist/chunks/cli-1.1.6-4xxms177.mjs +2 -0
- package/dist/chunks/cli-1.1.6-54ze8m08.mjs +2 -0
- package/dist/chunks/cli-1.1.6-5g7e8tag.mjs +8 -0
- package/dist/chunks/cli-1.1.6-5qc0271v.mjs +15 -0
- package/dist/chunks/cli-1.1.6-5qjzxazj.mjs +4 -0
- package/dist/chunks/cli-1.1.6-5qrpf10a.mjs +2 -0
- package/dist/chunks/cli-1.1.6-5sfks2z8.mjs +15 -0
- package/dist/chunks/cli-1.1.6-5t4djfy8.mjs +9 -0
- package/dist/chunks/cli-1.1.6-5wbzt7d4.mjs +2 -0
- package/dist/chunks/cli-1.1.6-5wjyk23t.mjs +2 -0
- package/dist/chunks/cli-1.1.6-65jzejgc.mjs +3 -0
- package/dist/chunks/cli-1.1.6-6asnf40m.mjs +1 -0
- package/dist/chunks/cli-1.1.6-6yyqhc13.mjs +25 -0
- package/dist/chunks/cli-1.1.6-74vm7ckx.mjs +6 -0
- package/dist/chunks/cli-1.1.6-76mvpwdf.mjs +2 -0
- package/dist/chunks/cli-1.1.6-7nfkb575.mjs +2 -0
- package/dist/chunks/cli-1.1.6-7t3befhs.mjs +67 -0
- package/dist/chunks/cli-1.1.6-7x719hyg.mjs +18 -0
- package/dist/chunks/cli-1.1.6-81cgzqdp.mjs +2 -0
- package/dist/chunks/cli-1.1.6-81cx55jz.mjs +2 -0
- package/dist/chunks/cli-1.1.6-87x1xfg6.mjs +2 -0
- package/dist/chunks/cli-1.1.6-8fta5jph.mjs +2 -0
- package/dist/chunks/cli-1.1.6-8he41vy5.mjs +2 -0
- package/dist/chunks/cli-1.1.6-8ne4jamj.mjs +2 -0
- package/dist/chunks/cli-1.1.6-8sm76jvw.mjs +2 -0
- package/dist/chunks/cli-1.1.6-8t3q96j9.mjs +2 -0
- package/dist/chunks/cli-1.1.6-93rtfb0q.mjs +2 -0
- package/dist/chunks/cli-1.1.6-9742qvjc.mjs +6 -0
- package/dist/chunks/cli-1.1.6-97ga1091.mjs +2 -0
- package/dist/chunks/cli-1.1.6-982yfp5a.mjs +2 -0
- package/dist/chunks/cli-1.1.6-9a5c9435.mjs +2 -0
- package/dist/chunks/cli-1.1.6-9crjy3pc.mjs +2 -0
- package/dist/chunks/cli-1.1.6-9nk20f3c.mjs +2 -0
- package/dist/chunks/cli-1.1.6-9ta3aynd.mjs +2 -0
- package/dist/chunks/cli-1.1.6-a1n79s5x.mjs +2 -0
- package/dist/chunks/cli-1.1.6-a44r4vht.mjs +24 -0
- package/dist/chunks/cli-1.1.6-a5mwjrkm.mjs +17 -0
- package/dist/chunks/cli-1.1.6-a5rqr2qe.mjs +2 -0
- package/dist/chunks/cli-1.1.6-ag09czr1.mjs +15 -0
- package/dist/chunks/cli-1.1.6-akzxyfxv.mjs +2 -0
- package/dist/chunks/cli-1.1.6-avthrr5w.mjs +2 -0
- package/dist/chunks/cli-1.1.6-ay4779jc.mjs +2 -0
- package/dist/chunks/cli-1.1.6-bd0v70jd.mjs +3 -0
- package/dist/chunks/cli-1.1.6-bfchr542.mjs +2 -0
- package/dist/chunks/cli-1.1.6-bm7xjqpq.mjs +2 -0
- package/dist/chunks/cli-1.1.6-bmskrghf.mjs +2 -0
- package/dist/chunks/cli-1.1.6-bqwv3wss.mjs +2 -0
- package/dist/chunks/cli-1.1.6-cam8a83k.mjs +4 -0
- package/dist/chunks/cli-1.1.6-cgszz7xc.mjs +24 -0
- package/dist/chunks/cli-1.1.6-ckg7fah6.mjs +5649 -0
- package/dist/chunks/cli-1.1.6-d1aef3g5.mjs +2 -0
- package/dist/chunks/cli-1.1.6-d1wgc2vg.mjs +21 -0
- package/dist/chunks/cli-1.1.6-d2pp9pa0.mjs +2 -0
- package/dist/chunks/cli-1.1.6-de79nefp.mjs +2 -0
- package/dist/chunks/cli-1.1.6-dey5k0n6.mjs +2 -0
- package/dist/chunks/cli-1.1.6-df94b7hs.mjs +2 -0
- package/dist/chunks/cli-1.1.6-dnehk6am.mjs +2 -0
- package/dist/chunks/cli-1.1.6-dsx3y9mh.mjs +2 -0
- package/dist/chunks/cli-1.1.6-e1q2xpwf.mjs +2 -0
- package/dist/chunks/cli-1.1.6-ea1sc7sa.mjs +2 -0
- package/dist/chunks/cli-1.1.6-ee36w2t8.mjs +2 -0
- package/dist/chunks/cli-1.1.6-ehy04hr0.mjs +2 -0
- package/dist/chunks/cli-1.1.6-eyrk5vjw.mjs +4 -0
- package/dist/chunks/cli-1.1.6-f5754mz3.mjs +2 -0
- package/dist/chunks/cli-1.1.6-f5z1d08s.mjs +18 -0
- package/dist/chunks/cli-1.1.6-f64yrj9v.mjs +2 -0
- package/dist/chunks/cli-1.1.6-f6bm23x3.mjs +2 -0
- package/dist/chunks/cli-1.1.6-f90g0cqz.mjs +39 -0
- package/dist/chunks/cli-1.1.6-fdgfprar.mjs +24 -0
- package/dist/chunks/cli-1.1.6-fe9m89qf.mjs +2 -0
- package/dist/chunks/cli-1.1.6-fgd52mbf.mjs +2 -0
- package/dist/chunks/cli-1.1.6-fjb1m1sm.mjs +2 -0
- package/dist/chunks/cli-1.1.6-fk2ggp7p.mjs +2 -0
- package/dist/chunks/cli-1.1.6-g7jsvjwq.mjs +12 -0
- package/dist/chunks/cli-1.1.6-gc4cmade.mjs +3 -0
- package/dist/chunks/cli-1.1.6-ghcyvb6h.mjs +3 -0
- package/dist/chunks/cli-1.1.6-gz7wve40.mjs +3 -0
- package/dist/chunks/cli-1.1.6-hc502eny.mjs +4 -0
- package/dist/chunks/cli-1.1.6-hhggf5vv.mjs +2 -0
- package/dist/chunks/cli-1.1.6-hkwgvwvj.mjs +2 -0
- package/dist/chunks/cli-1.1.6-hm146gsn.mjs +2 -0
- package/dist/chunks/cli-1.1.6-hn0crvf2.mjs +2 -0
- package/dist/chunks/cli-1.1.6-hq074xvz.mjs +2 -0
- package/dist/chunks/cli-1.1.6-hs257f9p.mjs +12 -0
- package/dist/chunks/cli-1.1.6-hsg23shn.mjs +2 -0
- package/dist/chunks/cli-1.1.6-j0a0gz8c.mjs +7 -0
- package/dist/chunks/cli-1.1.6-j4kwtpg1.mjs +2 -0
- package/dist/chunks/cli-1.1.6-j8ngkdcw.mjs +3 -0
- package/dist/chunks/cli-1.1.6-jf4c40zg.mjs +42 -0
- package/dist/chunks/cli-1.1.6-jf5kbdjm.mjs +2 -0
- package/dist/chunks/cli-1.1.6-jhcpddxn.mjs +2 -0
- package/dist/chunks/cli-1.1.6-jhyybymr.mjs +3 -0
- package/dist/chunks/cli-1.1.6-jjwhpfnp.mjs +2 -0
- package/dist/chunks/cli-1.1.6-jrbegmwv.mjs +2 -0
- package/dist/chunks/cli-1.1.6-jx50q0sg.mjs +2 -0
- package/dist/chunks/cli-1.1.6-k53tny07.mjs +6 -0
- package/dist/chunks/cli-1.1.6-k93n8vn6.mjs +50 -0
- package/dist/chunks/cli-1.1.6-knbv8711.mjs +4 -0
- package/dist/chunks/cli-1.1.6-m7j2d00d.mjs +2 -0
- package/dist/chunks/cli-1.1.6-mantfyp6.mjs +4 -0
- package/dist/chunks/cli-1.1.6-mas7f8cv.mjs +2 -0
- package/dist/chunks/cli-1.1.6-metnr539.mjs +2 -0
- package/dist/chunks/cli-1.1.6-mf4x6fdv.mjs +2 -0
- package/dist/chunks/cli-1.1.6-mtznq91n.mjs +2 -0
- package/dist/chunks/cli-1.1.6-mvnvwgf3.mjs +2 -0
- package/dist/chunks/cli-1.1.6-mvxjj1r6.mjs +2 -0
- package/dist/chunks/cli-1.1.6-mwbmfs2b.mjs +2 -0
- package/dist/chunks/cli-1.1.6-myrs2n90.mjs +2 -0
- package/dist/chunks/cli-1.1.6-n45gq9d8.mjs +2 -0
- package/dist/chunks/cli-1.1.6-n7p5sqsx.mjs +2 -0
- package/dist/chunks/cli-1.1.6-nhrgk95j.mjs +2 -0
- package/dist/chunks/cli-1.1.6-np5xkmje.mjs +2 -0
- package/dist/chunks/cli-1.1.6-nrzxwdbd.mjs +2 -0
- package/dist/chunks/cli-1.1.6-pfcwqc6w.mjs +2 -0
- package/dist/chunks/cli-1.1.6-pgv3skh2.mjs +2 -0
- package/dist/chunks/cli-1.1.6-pmr766bh.mjs +2 -0
- package/dist/chunks/cli-1.1.6-psfxpvvw.mjs +2 -0
- package/dist/chunks/cli-1.1.6-q3h6xhnn.mjs +2 -0
- package/dist/chunks/cli-1.1.6-q7s5rc60.mjs +4 -0
- package/dist/chunks/cli-1.1.6-q9srpsg7.mjs +2 -0
- package/dist/chunks/cli-1.1.6-qem2tnkw.mjs +202 -0
- package/dist/chunks/cli-1.1.6-qhzcv293.mjs +45 -0
- package/dist/chunks/cli-1.1.6-qnnerc4q.mjs +2 -0
- package/dist/chunks/cli-1.1.6-qv0e27w2.mjs +2 -0
- package/dist/chunks/cli-1.1.6-qwafs3e9.mjs +2 -0
- package/dist/chunks/cli-1.1.6-r7hh6n18.mjs +4 -0
- package/dist/chunks/cli-1.1.6-rbnb0fqm.mjs +2 -0
- package/dist/chunks/cli-1.1.6-rh4e5g6a.mjs +2 -0
- package/dist/chunks/cli-1.1.6-rvy9sw8e.mjs +6 -0
- package/dist/chunks/cli-1.1.6-skhrp917.mjs +2 -0
- package/dist/chunks/cli-1.1.6-smg65f0q.mjs +2 -0
- package/dist/chunks/cli-1.1.6-sqny5wf8.mjs +2 -0
- package/dist/chunks/cli-1.1.6-sw693n6v.mjs +2 -0
- package/dist/chunks/cli-1.1.6-t0t4f70r.mjs +2 -0
- package/dist/chunks/cli-1.1.6-tgfrtwj2.mjs +2 -0
- package/dist/chunks/cli-1.1.6-tgq92np6.mjs +12 -0
- package/dist/chunks/cli-1.1.6-tjhvveh6.mjs +9 -0
- package/dist/chunks/cli-1.1.6-tp1n5k71.mjs +5 -0
- package/dist/chunks/cli-1.1.6-tskpkzwj.mjs +2 -0
- package/dist/chunks/cli-1.1.6-txa283mq.mjs +2 -0
- package/dist/chunks/cli-1.1.6-v4rcg48d.mjs +2 -0
- package/dist/chunks/cli-1.1.6-vds1erg6.mjs +2 -0
- package/dist/chunks/cli-1.1.6-vgfrx9zz.mjs +2 -0
- package/dist/chunks/cli-1.1.6-vjv782dn.mjs +3 -0
- package/dist/chunks/cli-1.1.6-vvj4w9mq.mjs +133 -0
- package/dist/chunks/cli-1.1.6-w3r2012k.mjs +3 -0
- package/dist/chunks/cli-1.1.6-w4nw5yvg.mjs +16 -0
- package/dist/chunks/cli-1.1.6-w88sm78a.mjs +2 -0
- package/dist/chunks/cli-1.1.6-wbyqyqra.mjs +58 -0
- package/dist/chunks/cli-1.1.6-wce7z6cj.mjs +2 -0
- package/dist/chunks/cli-1.1.6-wg1zsvap.mjs +2 -0
- package/dist/chunks/cli-1.1.6-wh81pn41.mjs +2 -0
- package/dist/chunks/cli-1.1.6-wvfzbx8v.mjs +2 -0
- package/dist/chunks/cli-1.1.6-xc6fegry.mjs +2 -0
- package/dist/chunks/cli-1.1.6-xk9kbqjj.mjs +2 -0
- package/dist/chunks/cli-1.1.6-xr47dpcr.mjs +2 -0
- package/dist/chunks/cli-1.1.6-y1ef9wcz.mjs +2 -0
- package/dist/chunks/cli-1.1.6-y5sst8yn.mjs +2 -0
- package/dist/chunks/cli-1.1.6-y629c7ce.mjs +2 -0
- package/dist/chunks/cli-1.1.6-yqeznpw6.mjs +2 -0
- package/dist/chunks/cli-1.1.6-yqy3sf86.mjs +2 -0
- package/dist/chunks/cli-1.1.6-yztkt1v8.mjs +2 -0
- package/dist/chunks/cli-1.1.6-z39g71z3.mjs +2 -0
- package/dist/chunks/cli-1.1.6-zf2eh2hp.mjs +133 -0
- package/dist/chunks/cli-1.1.6-zfad1fbs.mjs +2 -0
- package/dist/chunks/client-1.1.6-mkz9k1b4.mjs +1 -0
- package/dist/chunks/color-1.1.6-a74e7c15.mjs +1 -0
- package/dist/chunks/compact-1.1.6-pfqqd4k1.mjs +3 -0
- package/dist/chunks/config-1.1.6-4a4h6yby.mjs +1 -0
- package/dist/chunks/config-1.1.6-cj6rdsn7.mjs +1 -0
- package/dist/chunks/constants-1.1.6-fth9gfja.mjs +1 -0
- package/dist/chunks/context-1.1.6-zj8xnjdz.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.6-fd13cdj6.mjs +1 -0
- package/dist/chunks/conversation-1.1.6-6tqbjb48.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.6-vp5s0ap6.mjs +1 -0
- package/dist/chunks/copy-1.1.6-kx6fygzk.mjs +9 -0
- package/dist/chunks/cost-1.1.6-hbeb6njn.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.6-zpnd7td2.mjs +1 -0
- package/dist/chunks/createSession-1.1.6-0x11qyv4.mjs +1 -0
- package/dist/chunks/debug-1.1.6-dmmf0z35.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.6-awhxj7xq.mjs +1446 -0
- package/dist/chunks/desktop-1.1.6-2gfyp9we.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.6-3fyxh3xk.mjs +1 -0
- package/dist/chunks/detection-1.1.6-faf39qph.mjs +1 -0
- package/dist/chunks/diff-1.1.6-33264egy.mjs +1 -0
- package/dist/chunks/doctor-1.1.6-nvrp802y.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.6-w7kzf528.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.6-5xc2vg5z.mjs +1 -0
- package/dist/chunks/effort-1.1.6-6cbcyqdk.mjs +13 -0
- package/dist/chunks/engine-1.1.6-tdfrzxcr.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.6-jatxh6m2.mjs +1 -0
- package/dist/chunks/envUtils-1.1.6-m9k7s3fw.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.6-pc4q1v3x.mjs +1 -0
- package/dist/chunks/environments-1.1.6-m8qj6rzb.mjs +1 -0
- package/dist/chunks/errors-1.1.6-w953w7jb.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.6-gs4fqq7g.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.6-c2jzb6a9.mjs +1 -0
- package/dist/chunks/exit-1.1.6-6t37q0td.mjs +1 -0
- package/dist/chunks/explorer-1.1.6-s8znafd6.mjs +1 -0
- package/dist/chunks/export-1.1.6-9y48q96m.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.6-pem0zs1k.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.6-9j6d1zrm.mjs +1 -0
- package/dist/chunks/fast-1.1.6-rw7jfy8x.mjs +1 -0
- package/dist/chunks/feedback-1.1.6-n2r6dz69.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.6-ynh9p0pa.mjs +1 -0
- package/dist/chunks/git-1.1.6-dmzq4r9j.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.6-y1rrmmjd.mjs +1 -0
- package/dist/chunks/goal-1.1.6-jstgq5mn.mjs +4 -0
- package/dist/chunks/grove-1.1.6-zaec0hcr.mjs +1 -0
- package/dist/chunks/growthbook-1.1.6-tg7gg2w1.mjs +1 -0
- package/dist/chunks/headless-1.1.6-kbhp9r32.mjs +2 -0
- package/dist/chunks/heapdump-1.1.6-y2trj2kf.mjs +6 -0
- package/dist/chunks/help-1.1.6-bffctqy8.mjs +1 -0
- package/dist/chunks/hookChains-1.1.6-3xjn2nz3.mjs +3 -0
- package/dist/chunks/hooks-1.1.6-qd6nqd1x.mjs +79 -0
- package/dist/chunks/hooks-1.1.6-zgz1tg7z.mjs +1 -0
- package/dist/chunks/ide-1.1.6-ds1w26yv.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.6-81b82bpc.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.1.6-0sybnqr5.mjs +1 -0
- package/dist/chunks/index-1.1.6-1as8yrj3.mjs +1 -0
- package/dist/chunks/index-1.1.6-77xmgpm9.mjs +2 -0
- package/dist/chunks/index-1.1.6-8er16qt9.mjs +1 -0
- package/dist/chunks/index-1.1.6-aqs218jc.mjs +1 -0
- package/dist/chunks/index-1.1.6-bp5ykp32.mjs +1 -0
- package/dist/chunks/index-1.1.6-dcz3x5f0.mjs +1 -0
- package/dist/chunks/index-1.1.6-dezs32mp.mjs +1 -0
- package/dist/chunks/index-1.1.6-e9dmdg4d.mjs +1 -0
- package/dist/chunks/index-1.1.6-kxgcs4jr.mjs +2 -0
- package/dist/chunks/index-1.1.6-n18eqfnp.mjs +1 -0
- package/dist/chunks/index-1.1.6-ncrqpack.mjs +17 -0
- package/dist/chunks/index-1.1.6-nfj2jf0j.mjs +9 -0
- package/dist/chunks/index-1.1.6-nnqd96xw.mjs +1 -0
- package/dist/chunks/index-1.1.6-q9zj36pw.mjs +1 -0
- package/dist/chunks/index-1.1.6-qmatppjr.mjs +1 -0
- package/dist/chunks/index-1.1.6-r1bmqay8.mjs +30 -0
- package/dist/chunks/index-1.1.6-sw2j9mqc.mjs +1 -0
- package/dist/chunks/index-1.1.6-tq6ss5ea.mjs +1 -0
- package/dist/chunks/index-1.1.6-vgm9924j.mjs +5 -0
- package/dist/chunks/index-1.1.6-vspc4xn7.mjs +1 -0
- package/dist/chunks/index-1.1.6-wm63hvx1.mjs +9 -0
- package/dist/chunks/index-1.1.6-xedyyfgd.mjs +1 -0
- package/dist/chunks/index-1.1.6-xz69gkvj.mjs +1 -0
- package/dist/chunks/init-1.1.6-hc2ca4dt.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.6-rf94v2mb.mjs +1 -0
- package/dist/chunks/ink-1.1.6-n63gvsds.mjs +1 -0
- package/dist/chunks/insights-1.1.6-f5g3mjjs.mjs +870 -0
- package/dist/chunks/install-1.1.6-9g5bvnbt.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.6-q742k1d8.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.6-2m0r94qq.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.6-ysyashvq.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.6-txkvfp2f.mjs +1 -0
- package/dist/chunks/keybindings-1.1.6-wdypqj1b.mjs +2 -0
- package/dist/chunks/knowledge-1.1.6-y954e8zr.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.6-3x744gm9.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.6-s7vq0hex.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.6-3brm7c6q.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.6-yjppjc3w.mjs +1 -0
- package/dist/chunks/log-1.1.6-wd96yvx0.mjs +1 -0
- package/dist/chunks/main-1.1.6-tszgcjw8.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.6-h7wrx977.mjs +1 -0
- package/dist/chunks/mcp-1.1.6-4jn435jj.mjs +1 -0
- package/dist/chunks/mcp-1.1.6-kttkg0aq.mjs +4 -0
- package/dist/chunks/mcp-1.1.6-w2pzn4yq.mjs +17 -0
- package/dist/chunks/mcpb-1.1.6-123k4ssd.mjs +1 -0
- package/dist/chunks/memory-1.1.6-zwnxw7r1.mjs +72 -0
- package/dist/chunks/model-1.1.6-cgt0wpc7.mjs +1 -0
- package/dist/chunks/model-1.1.6-f8jat8v6.mjs +2 -0
- package/dist/chunks/node-1.1.6-hydke02w.mjs +12 -0
- package/dist/chunks/oauth-1.1.6-e6mvmc8s.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.6-fpw7ztzc.mjs +14 -0
- package/dist/chunks/output-style-1.1.6-2jny7104.mjs +1 -0
- package/dist/chunks/package-2VNCXFNY-1.1.6-1d5w8e0d.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.6-0hz3530h.mjs +1 -0
- package/dist/chunks/parser-1.1.6-qmfc1zqp.mjs +1 -0
- package/dist/chunks/passes-1.1.6-1tvcc5w4.mjs +1 -0
- package/dist/chunks/permissions-1.1.6-53wetvk8.mjs +3 -0
- package/dist/chunks/permissions-1.1.6-q44j1e6z.mjs +1 -0
- package/dist/chunks/plan-1.1.6-n8400ecj.mjs +1 -0
- package/dist/chunks/plist-1.1.6-tkmbyyha.mjs +1 -0
- package/dist/chunks/plugin-1.1.6-3zyn5n3k.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.6-nhwvnpaw.mjs +1 -0
- package/dist/chunks/plugins-1.1.6-z5gj1xg2.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.6-0a6sda26.mjs +2 -0
- package/dist/chunks/print-1.1.6-c37g4fe5.mjs +57 -0
- package/dist/chunks/privacy-settings-1.1.6-yr53ykx0.mjs +1 -0
- package/dist/chunks/process-1.1.6-mvy7evbd.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.6-z74wmg31.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.6-98ma1epv.mjs +9 -0
- package/dist/chunks/prompt-1.1.6-q1tcweyb.mjs +1 -0
- package/dist/chunks/prompt-1.1.6-qfs7gmje.mjs +1 -0
- package/dist/chunks/prompts-1.1.6-7wbfe88q.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.6-4vqjdqs8.mjs +13 -0
- package/dist/chunks/provider-1.1.6-px8m07p1.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.6-qfcj6rna.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.6-zpc167c0.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.6-g969jwnk.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.6-hxpvccxn.mjs +34 -0
- package/dist/chunks/registry-1.1.6-phrxb4h5.mjs +1 -0
- package/dist/chunks/release-notes-1.1.6-8xjvckwx.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.6-m01jm3hm.mjs +2 -0
- package/dist/chunks/remote-env-1.1.6-e7dvbp33.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.6-xch4tnhm.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.6-889wgdvn.mjs +1 -0
- package/dist/chunks/rename-1.1.6-5gm06z0q.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.6-gee84nsm.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.6-p4kaptcr.mjs +1 -0
- package/dist/chunks/resume-1.1.6-dad8d44r.mjs +2 -0
- package/dist/chunks/rewind-1.1.6-ahd4a8a0.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.6-tnjw4cc8.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.6-d8khz20w.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.6-gvshrcnv.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.6-698zj2bb.mjs +1 -0
- package/dist/chunks/session-1.1.6-ygn8nthq.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.6-5tf3vq7n.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.6-qdcqxsyf.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.6-v8j65fxd.mjs +1 -0
- package/dist/chunks/settings-1.1.6-pqfqbqc8.mjs +1 -0
- package/dist/chunks/setup-1.1.6-8gpp5q84.mjs +5 -0
- package/dist/chunks/sinks-1.1.6-sgbft9nd.mjs +1 -0
- package/dist/chunks/skills-1.1.6-xec48gah.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.6-xc1znvwg.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.6-09npj0tz.mjs +1 -0
- package/dist/chunks/state-1.1.6-h6ayf7sc.mjs +1 -0
- package/dist/chunks/stats-1.1.6-4yrvq5x0.mjs +6 -0
- package/dist/chunks/status-1.1.6-xjmnjsf0.mjs +1 -0
- package/dist/chunks/stickers-1.1.6-feprt06h.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.6-v558v26d.mjs +1 -0
- package/dist/chunks/tasks-1.1.6-fpxxmwz3.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.6-pvj5v856.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.6-w15n2smy.mjs +1 -0
- package/dist/chunks/teleport-1.1.6-n8bvdqye.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.6-a7j2pxzn.mjs +1 -0
- package/dist/chunks/theme-1.1.6-6tqv5qg4.mjs +1 -0
- package/dist/chunks/thinkback-1.1.6-2ape1jwq.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.6-3mq1jb49.mjs +1 -0
- package/dist/chunks/toolPool-1.1.6-jkgfq8za.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.6-y0sb6bpz.mjs +1 -0
- package/dist/chunks/tools-1.1.6-rk47dxc1.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.6-vcnvxckf.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.6-jpzxj1ge.mjs +69 -0
- package/dist/chunks/types-1.1.6-vpfqv76z.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.6-qj0rj3n8.mjs +4 -0
- package/dist/chunks/update-1.1.6-1b0fwnqk.mjs +72 -0
- package/dist/chunks/upgrade-1.1.6-vwnszewt.mjs +1 -0
- package/dist/chunks/upload-1.1.6-y4dk84sr.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.6-rb6nathp.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.6-5tknhyb2.mjs +1 -0
- package/dist/chunks/usage-1.1.6-y17hrs2n.mjs +1 -0
- package/dist/chunks/util-1.1.6-jnjwsw36.mjs +1 -0
- package/dist/chunks/utils-1.1.6-v1ka47qy.mjs +1 -0
- package/dist/chunks/vim-1.1.6-a4e4tpt2.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.6-ka4q3f8n.mjs +13 -0
- package/dist/chunks/watcher-1.1.6-tbtsan22.mjs +1 -0
- package/dist/chunks/wiki-1.1.6-qj7bh0ea.mjs +132 -0
- package/dist/chunks/workflows-1.1.6-bsfhrn83.mjs +1 -0
- package/dist/chunks/worktree-1.1.6-dyrbeptb.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.6-j4mw0mtw.mjs +1 -0
- package/dist/chunks/wrapper-1.1.6-eck6m7db.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.4-3bagecge.mjs +0 -1
- package/dist/chunks/App-1.1.4-4g3dh0nx.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.4-jxeaz5zn.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.4-9w92vdx4.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.4-x17tymwk.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.4-7fg80a35.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.4-094y677a.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.4-y4jsq70q.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.4-wwr5yxnw.mjs +0 -7
- package/dist/chunks/Doctor-1.1.4-6z4qt6jr.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.4-e5w2phrt.mjs +0 -6
- package/dist/chunks/Grove-1.1.4-yj7xbcnq.mjs +0 -1
- package/dist/chunks/ITermBackend-1.1.4-rgme07qr.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.4-nyd8ja4h.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.4-899r2pfm.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.4-749tfrvg.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.4-f019rkkj.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.4-9239x3zp.mjs +0 -1
- package/dist/chunks/REPL-1.1.4-9nb68maq.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.4-7sr86ks3.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.4-av1tzhr1.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.4-s1g49h7t.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.4-xq8vmgey.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.4-nh55ntyd.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.4-5gtjmz82.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.4-wk88hvrf.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.4-zvk6f63e.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.4-3st8cbec.mjs +0 -1
- package/dist/chunks/add-dir-1.1.4-09gsa25v.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.4-ee7w7dt5.mjs +0 -1
- package/dist/chunks/agents-1.1.4-8k4mrjt7.mjs +0 -110
- package/dist/chunks/agents-1.1.4-w929h9g2.mjs +0 -3
- package/dist/chunks/api-1.1.4-p7hbrnd7.mjs +0 -1
- package/dist/chunks/asciicast-1.1.4-7e877hqq.mjs +0 -1
- package/dist/chunks/assistant-1.1.4-jq08j7n1.mjs +0 -1
- package/dist/chunks/auth-1.1.4-d8jp870f.mjs +0 -1
- package/dist/chunks/auth-1.1.4-pjxgyew6.mjs +0 -1
- package/dist/chunks/autoMode-1.1.4-ar2t9451.mjs +0 -48
- package/dist/chunks/autoUpdater-1.1.4-6ywqc8jc.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.4-ymj2akh8.mjs +0 -1
- package/dist/chunks/branch-1.1.4-m28a3gah.mjs +0 -4
- package/dist/chunks/bridge-1.1.4-n515vy2d.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.4-p3jq4sh0.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.4-0mda1at6.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.4-pya2apxm.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.4-qw0te2bm.mjs +0 -1
- package/dist/chunks/btw-1.1.4-fyx7t7q6.mjs +0 -1
- package/dist/chunks/buddy-1.1.4-hg600pq6.mjs +0 -3
- package/dist/chunks/cacache-1.1.4-ezqx7zp6.mjs +0 -1
- package/dist/chunks/cache-probe-1.1.4-zq67w2hp.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.4-w4g7f1sd.mjs +0 -4
- package/dist/chunks/caches-1.1.4-smgwny8k.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.4-09az178f.mjs +0 -1
- package/dist/chunks/claudemd-1.1.4-zkyggtev.mjs +0 -1
- package/dist/chunks/clear-1.1.4-jpcr7zvx.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.4-ncdjyhkh.mjs +0 -1
- package/dist/chunks/cli-1.1.4-081g3k6v.mjs +0 -2
- package/dist/chunks/cli-1.1.4-08dh9fvb.mjs +0 -2
- package/dist/chunks/cli-1.1.4-0a20jx5n.mjs +0 -18
- package/dist/chunks/cli-1.1.4-0earmzgk.mjs +0 -12
- package/dist/chunks/cli-1.1.4-0efkjzrt.mjs +0 -18
- package/dist/chunks/cli-1.1.4-0k0btfq4.mjs +0 -2
- package/dist/chunks/cli-1.1.4-0nxqjpe0.mjs +0 -133
- package/dist/chunks/cli-1.1.4-0r232fpm.mjs +0 -2
- package/dist/chunks/cli-1.1.4-0smy947g.mjs +0 -2
- package/dist/chunks/cli-1.1.4-0wp3qgzs.mjs +0 -2
- package/dist/chunks/cli-1.1.4-114zcxgj.mjs +0 -2
- package/dist/chunks/cli-1.1.4-17x2wrkx.mjs +0 -2
- package/dist/chunks/cli-1.1.4-181vbtfh.mjs +0 -2
- package/dist/chunks/cli-1.1.4-1bd9da9p.mjs +0 -4
- package/dist/chunks/cli-1.1.4-1f9d29qw.mjs +0 -2
- package/dist/chunks/cli-1.1.4-1gz31tm3.mjs +0 -2
- package/dist/chunks/cli-1.1.4-1kfdt9jy.mjs +0 -2
- package/dist/chunks/cli-1.1.4-2sdcr2b4.mjs +0 -2
- package/dist/chunks/cli-1.1.4-31av4ynk.mjs +0 -2
- package/dist/chunks/cli-1.1.4-3556r6d1.mjs +0 -2
- package/dist/chunks/cli-1.1.4-3d01w53d.mjs +0 -2
- package/dist/chunks/cli-1.1.4-3yy14yyg.mjs +0 -2
- package/dist/chunks/cli-1.1.4-3zzdhas7.mjs +0 -2
- package/dist/chunks/cli-1.1.4-40z19hth.mjs +0 -2
- package/dist/chunks/cli-1.1.4-4cg8jz3d.mjs +0 -2
- package/dist/chunks/cli-1.1.4-4esthaz8.mjs +0 -21
- package/dist/chunks/cli-1.1.4-4qsk7zj5.mjs +0 -2
- package/dist/chunks/cli-1.1.4-4tywpfrb.mjs +0 -3
- package/dist/chunks/cli-1.1.4-4yte7brd.mjs +0 -25
- package/dist/chunks/cli-1.1.4-50ktv3m1.mjs +0 -2
- package/dist/chunks/cli-1.1.4-53fvpymg.mjs +0 -6
- package/dist/chunks/cli-1.1.4-56nffz3p.mjs +0 -17
- package/dist/chunks/cli-1.1.4-5dc9c513.mjs +0 -3
- package/dist/chunks/cli-1.1.4-5ebh6981.mjs +0 -2
- package/dist/chunks/cli-1.1.4-5g0b74dj.mjs +0 -2
- package/dist/chunks/cli-1.1.4-5hz878ns.mjs +0 -2
- package/dist/chunks/cli-1.1.4-64y9aspn.mjs +0 -2
- package/dist/chunks/cli-1.1.4-6c3fshef.mjs +0 -202
- package/dist/chunks/cli-1.1.4-6c5tryej.mjs +0 -2
- package/dist/chunks/cli-1.1.4-6eacj91j.mjs +0 -2
- package/dist/chunks/cli-1.1.4-6f472s2j.mjs +0 -2
- package/dist/chunks/cli-1.1.4-6h6yt6jp.mjs +0 -2
- package/dist/chunks/cli-1.1.4-6raycx0k.mjs +0 -2
- package/dist/chunks/cli-1.1.4-6rkzmmby.mjs +0 -2
- package/dist/chunks/cli-1.1.4-6z69geef.mjs +0 -5649
- package/dist/chunks/cli-1.1.4-788c63fn.mjs +0 -7
- package/dist/chunks/cli-1.1.4-79y1pxkd.mjs +0 -4
- package/dist/chunks/cli-1.1.4-83vy9tsv.mjs +0 -2
- package/dist/chunks/cli-1.1.4-8hmaxd0s.mjs +0 -2
- package/dist/chunks/cli-1.1.4-8hr73xp2.mjs +0 -2
- package/dist/chunks/cli-1.1.4-8kx358k9.mjs +0 -2
- package/dist/chunks/cli-1.1.4-8rzb4wqq.mjs +0 -4
- package/dist/chunks/cli-1.1.4-99ept1n4.mjs +0 -2
- package/dist/chunks/cli-1.1.4-9cw2608s.mjs +0 -2
- package/dist/chunks/cli-1.1.4-9ms3b4tc.mjs +0 -2
- package/dist/chunks/cli-1.1.4-9tej4g5v.mjs +0 -2
- package/dist/chunks/cli-1.1.4-9x9a885k.mjs +0 -17
- package/dist/chunks/cli-1.1.4-a4fsxp91.mjs +0 -2
- package/dist/chunks/cli-1.1.4-aj4f4c5s.mjs +0 -24
- package/dist/chunks/cli-1.1.4-axp071a4.mjs +0 -2
- package/dist/chunks/cli-1.1.4-bhazhxsz.mjs +0 -1
- package/dist/chunks/cli-1.1.4-bnk38sjx.mjs +0 -2
- package/dist/chunks/cli-1.1.4-bx7r8yn5.mjs +0 -2
- package/dist/chunks/cli-1.1.4-bxd06hws.mjs +0 -2
- package/dist/chunks/cli-1.1.4-bxtvw0wr.mjs +0 -2
- package/dist/chunks/cli-1.1.4-c7a7aezt.mjs +0 -2
- package/dist/chunks/cli-1.1.4-cjw4z35m.mjs +0 -2
- package/dist/chunks/cli-1.1.4-ck3xhtdn.mjs +0 -2
- package/dist/chunks/cli-1.1.4-ckmk4b1r.mjs +0 -2
- package/dist/chunks/cli-1.1.4-cknrfh5p.mjs +0 -6
- package/dist/chunks/cli-1.1.4-cp707f4g.mjs +0 -2
- package/dist/chunks/cli-1.1.4-cst0a515.mjs +0 -3
- package/dist/chunks/cli-1.1.4-cwnt4by7.mjs +0 -2
- package/dist/chunks/cli-1.1.4-cyy7hkcy.mjs +0 -2
- package/dist/chunks/cli-1.1.4-d5vhgtz3.mjs +0 -2
- package/dist/chunks/cli-1.1.4-d8mes9hb.mjs +0 -2
- package/dist/chunks/cli-1.1.4-da50kprz.mjs +0 -2
- package/dist/chunks/cli-1.1.4-dapq2czd.mjs +0 -3
- package/dist/chunks/cli-1.1.4-dnypqpw6.mjs +0 -3
- package/dist/chunks/cli-1.1.4-dwez6b01.mjs +0 -2
- package/dist/chunks/cli-1.1.4-e73hv9nk.mjs +0 -4
- package/dist/chunks/cli-1.1.4-edegax48.mjs +0 -2
- package/dist/chunks/cli-1.1.4-ekbns70t.mjs +0 -2
- package/dist/chunks/cli-1.1.4-esw78wsd.mjs +0 -2
- package/dist/chunks/cli-1.1.4-etajychz.mjs +0 -2
- package/dist/chunks/cli-1.1.4-evye603x.mjs +0 -5
- package/dist/chunks/cli-1.1.4-ewczzrrj.mjs +0 -24
- package/dist/chunks/cli-1.1.4-f0ysrk67.mjs +0 -2
- package/dist/chunks/cli-1.1.4-f7y4b0px.mjs +0 -2
- package/dist/chunks/cli-1.1.4-fa18654s.mjs +0 -2
- package/dist/chunks/cli-1.1.4-fap2565a.mjs +0 -15
- package/dist/chunks/cli-1.1.4-fejb0548.mjs +0 -2
- package/dist/chunks/cli-1.1.4-ffgmpsez.mjs +0 -133
- package/dist/chunks/cli-1.1.4-fk420f57.mjs +0 -16
- package/dist/chunks/cli-1.1.4-g21fhx9n.mjs +0 -9
- package/dist/chunks/cli-1.1.4-g6nryz17.mjs +0 -2
- package/dist/chunks/cli-1.1.4-g8kh8f9a.mjs +0 -2
- package/dist/chunks/cli-1.1.4-gag1dbkn.mjs +0 -2
- package/dist/chunks/cli-1.1.4-gc3kgy7y.mjs +0 -2
- package/dist/chunks/cli-1.1.4-gey397p1.mjs +0 -2
- package/dist/chunks/cli-1.1.4-gfbktjpn.mjs +0 -2
- package/dist/chunks/cli-1.1.4-ghf3bx8w.mjs +0 -20
- package/dist/chunks/cli-1.1.4-gpskbg68.mjs +0 -2
- package/dist/chunks/cli-1.1.4-h2a0peqc.mjs +0 -18
- package/dist/chunks/cli-1.1.4-h3nq6gg2.mjs +0 -12
- package/dist/chunks/cli-1.1.4-h4pjzspp.mjs +0 -58
- package/dist/chunks/cli-1.1.4-ha2bfn8a.mjs +0 -2
- package/dist/chunks/cli-1.1.4-hbx9ye2g.mjs +0 -2
- package/dist/chunks/cli-1.1.4-hcp2cxz5.mjs +0 -25
- package/dist/chunks/cli-1.1.4-hdwdbbzk.mjs +0 -2
- package/dist/chunks/cli-1.1.4-hmg1r8h3.mjs +0 -12
- package/dist/chunks/cli-1.1.4-hzx821eq.mjs +0 -4
- package/dist/chunks/cli-1.1.4-j2khf9zj.mjs +0 -2
- package/dist/chunks/cli-1.1.4-ja9ebt3p.mjs +0 -2
- package/dist/chunks/cli-1.1.4-jbsj8fj7.mjs +0 -2
- package/dist/chunks/cli-1.1.4-je9x0pvr.mjs +0 -2
- package/dist/chunks/cli-1.1.4-jeyegjk6.mjs +0 -2
- package/dist/chunks/cli-1.1.4-jf48e5ft.mjs +0 -24
- package/dist/chunks/cli-1.1.4-jn9kbkbv.mjs +0 -2
- package/dist/chunks/cli-1.1.4-jscqx4px.mjs +0 -2
- package/dist/chunks/cli-1.1.4-k65j1mxk.mjs +0 -9
- package/dist/chunks/cli-1.1.4-k6ebhyp0.mjs +0 -2
- package/dist/chunks/cli-1.1.4-kcm529kx.mjs +0 -2
- package/dist/chunks/cli-1.1.4-m11fz0v8.mjs +0 -2
- package/dist/chunks/cli-1.1.4-m312ygm6.mjs +0 -2
- package/dist/chunks/cli-1.1.4-m3gsmnfa.mjs +0 -2
- package/dist/chunks/cli-1.1.4-m3hgkj60.mjs +0 -2
- package/dist/chunks/cli-1.1.4-memqhcjv.mjs +0 -2
- package/dist/chunks/cli-1.1.4-mjhchkyc.mjs +0 -50
- package/dist/chunks/cli-1.1.4-mjtadp4r.mjs +0 -2
- package/dist/chunks/cli-1.1.4-mkk6fe3z.mjs +0 -2
- package/dist/chunks/cli-1.1.4-mvy2zgjw.mjs +0 -3
- package/dist/chunks/cli-1.1.4-my1g33fn.mjs +0 -3
- package/dist/chunks/cli-1.1.4-mzzr964a.mjs +0 -67
- package/dist/chunks/cli-1.1.4-n1e8vyg8.mjs +0 -2
- package/dist/chunks/cli-1.1.4-ncmgrms7.mjs +0 -2
- package/dist/chunks/cli-1.1.4-nh3sscxn.mjs +0 -59
- package/dist/chunks/cli-1.1.4-nkf9c3yn.mjs +0 -5
- package/dist/chunks/cli-1.1.4-nmjtqjhh.mjs +0 -2
- package/dist/chunks/cli-1.1.4-p2223zcm.mjs +0 -2
- package/dist/chunks/cli-1.1.4-p7tcq8ah.mjs +0 -6
- package/dist/chunks/cli-1.1.4-p7xh8tgn.mjs +0 -2
- package/dist/chunks/cli-1.1.4-p81w8zaj.mjs +0 -8
- package/dist/chunks/cli-1.1.4-phjb22vy.mjs +0 -2
- package/dist/chunks/cli-1.1.4-phv78vpk.mjs +0 -2
- package/dist/chunks/cli-1.1.4-pq6xvrw7.mjs +0 -15
- package/dist/chunks/cli-1.1.4-q0acv376.mjs +0 -3
- package/dist/chunks/cli-1.1.4-q6cngbfg.mjs +0 -2
- package/dist/chunks/cli-1.1.4-qe35eyha.mjs +0 -6
- package/dist/chunks/cli-1.1.4-qecgken2.mjs +0 -2
- package/dist/chunks/cli-1.1.4-qf46ypfr.mjs +0 -2
- package/dist/chunks/cli-1.1.4-qjgn7a4a.mjs +0 -2
- package/dist/chunks/cli-1.1.4-rc28sjtd.mjs +0 -4
- package/dist/chunks/cli-1.1.4-rh4x4rv5.mjs +0 -2
- package/dist/chunks/cli-1.1.4-rhexcyth.mjs +0 -2
- package/dist/chunks/cli-1.1.4-rmpkkwfr.mjs +0 -42
- package/dist/chunks/cli-1.1.4-rqwqskb2.mjs +0 -2
- package/dist/chunks/cli-1.1.4-rv3se129.mjs +0 -2
- package/dist/chunks/cli-1.1.4-rwz7t3ph.mjs +0 -2
- package/dist/chunks/cli-1.1.4-s26ny46b.mjs +0 -4
- package/dist/chunks/cli-1.1.4-scm26s6m.mjs +0 -34
- package/dist/chunks/cli-1.1.4-shrznr3s.mjs +0 -2
- package/dist/chunks/cli-1.1.4-sm3xmtbn.mjs +0 -6
- package/dist/chunks/cli-1.1.4-smjkhzzj.mjs +0 -4
- package/dist/chunks/cli-1.1.4-ss2jxen1.mjs +0 -2
- package/dist/chunks/cli-1.1.4-te2372tc.mjs +0 -2
- package/dist/chunks/cli-1.1.4-tmrxfcjm.mjs +0 -2
- package/dist/chunks/cli-1.1.4-tsspgj1c.mjs +0 -2
- package/dist/chunks/cli-1.1.4-v67jx2fw.mjs +0 -2
- package/dist/chunks/cli-1.1.4-v85q5z49.mjs +0 -3
- package/dist/chunks/cli-1.1.4-vajq2dgc.mjs +0 -4
- package/dist/chunks/cli-1.1.4-vcg96p1c.mjs +0 -2
- package/dist/chunks/cli-1.1.4-vdd43cyp.mjs +0 -2
- package/dist/chunks/cli-1.1.4-vgk1xqxb.mjs +0 -2
- package/dist/chunks/cli-1.1.4-vjfpgnyr.mjs +0 -2
- package/dist/chunks/cli-1.1.4-vk7mw9e1.mjs +0 -39
- package/dist/chunks/cli-1.1.4-vpkm2gfp.mjs +0 -4
- package/dist/chunks/cli-1.1.4-vq2bkg07.mjs +0 -2
- package/dist/chunks/cli-1.1.4-vye1xark.mjs +0 -2
- package/dist/chunks/cli-1.1.4-w06xm7pk.mjs +0 -2
- package/dist/chunks/cli-1.1.4-w11nd4na.mjs +0 -2
- package/dist/chunks/cli-1.1.4-w4b4vhj9.mjs +0 -2
- package/dist/chunks/cli-1.1.4-wqxnhcfg.mjs +0 -2
- package/dist/chunks/cli-1.1.4-ws4wcqma.mjs +0 -2
- package/dist/chunks/cli-1.1.4-wt23b5bp.mjs +0 -2
- package/dist/chunks/cli-1.1.4-wtcyy8sp.mjs +0 -4
- package/dist/chunks/cli-1.1.4-wx5t4xvj.mjs +0 -3
- package/dist/chunks/cli-1.1.4-x6hb06sj.mjs +0 -2
- package/dist/chunks/cli-1.1.4-x8m7spde.mjs +0 -2
- package/dist/chunks/cli-1.1.4-x90d3r95.mjs +0 -2
- package/dist/chunks/cli-1.1.4-xdqj8a4v.mjs +0 -45
- package/dist/chunks/cli-1.1.4-xxe2ztwq.mjs +0 -2
- package/dist/chunks/cli-1.1.4-y94ewbpk.mjs +0 -2
- package/dist/chunks/cli-1.1.4-ymrjsf78.mjs +0 -2
- package/dist/chunks/cli-1.1.4-yncbc1sd.mjs +0 -2
- package/dist/chunks/cli-1.1.4-yprszvr2.mjs +0 -2
- package/dist/chunks/cli-1.1.4-yz3t1wmd.mjs +0 -2
- package/dist/chunks/cli-1.1.4-z6qrcsfa.mjs +0 -2
- package/dist/chunks/cli-1.1.4-z8f8hc8t.mjs +0 -12
- package/dist/chunks/cli-1.1.4-z9z0gn83.mjs +0 -15
- package/dist/chunks/cli-1.1.4-zavkgdrm.mjs +0 -2
- package/dist/chunks/cli-1.1.4-zc29khqe.mjs +0 -3
- package/dist/chunks/cli-1.1.4-zp0vvhas.mjs +0 -3
- package/dist/chunks/client-1.1.4-pb5ebapt.mjs +0 -1
- package/dist/chunks/color-1.1.4-f1seyygj.mjs +0 -1
- package/dist/chunks/compact-1.1.4-2a7cwaxp.mjs +0 -3
- package/dist/chunks/config-1.1.4-j2wjnxkk.mjs +0 -1
- package/dist/chunks/config-1.1.4-jb46a3qp.mjs +0 -1
- package/dist/chunks/constants-1.1.4-cspjb06k.mjs +0 -1
- package/dist/chunks/context-1.1.4-dmyt4w9f.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.4-ckp0m156.mjs +0 -1
- package/dist/chunks/conversation-1.1.4-2grxgxr1.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.4-chappesc.mjs +0 -1
- package/dist/chunks/copy-1.1.4-7hw0khh4.mjs +0 -9
- package/dist/chunks/cost-1.1.4-kqvvdsab.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.4-ezqvt66q.mjs +0 -1
- package/dist/chunks/createSession-1.1.4-739bg1q2.mjs +0 -1
- package/dist/chunks/debug-1.1.4-4v8k6t8p.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.4-07fhy4qs.mjs +0 -1446
- package/dist/chunks/desktop-1.1.4-z8nhvfc9.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.4-qs08vv7k.mjs +0 -1
- package/dist/chunks/detection-1.1.4-knvchyz7.mjs +0 -1
- package/dist/chunks/diff-1.1.4-9k603anv.mjs +0 -1
- package/dist/chunks/doctor-1.1.4-76x4k1e3.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.4-dw4gjch2.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.4-wmn2wrxh.mjs +0 -1
- package/dist/chunks/effort-1.1.4-2bfyta5f.mjs +0 -13
- package/dist/chunks/engine-1.1.4-ds4tzxqb.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.4-k2f2p556.mjs +0 -1
- package/dist/chunks/envUtils-1.1.4-h0e2k0kk.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.4-zgvjnc3b.mjs +0 -1
- package/dist/chunks/environments-1.1.4-vvw6w76p.mjs +0 -1
- package/dist/chunks/errors-1.1.4-k81rbfst.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.4-7d1r2j0f.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.4-txkdgph9.mjs +0 -1
- package/dist/chunks/exit-1.1.4-nmtqhsmh.mjs +0 -1
- package/dist/chunks/explorer-1.1.4-z2tjcn1k.mjs +0 -1
- package/dist/chunks/export-1.1.4-sqtrqjrr.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.4-9vjje6h3.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.4-x9nwrrw4.mjs +0 -1
- package/dist/chunks/fast-1.1.4-2jebnd2f.mjs +0 -1
- package/dist/chunks/feedback-1.1.4-axgmd5k0.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.4-ftjf0rjy.mjs +0 -1
- package/dist/chunks/git-1.1.4-ress16mq.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.4-dvpz9d06.mjs +0 -1
- package/dist/chunks/goal-1.1.4-d5hgcz3t.mjs +0 -4
- package/dist/chunks/grove-1.1.4-ag51yh4b.mjs +0 -1
- package/dist/chunks/growthbook-1.1.4-2khgq1sm.mjs +0 -1
- package/dist/chunks/headless-1.1.4-833q6qkz.mjs +0 -2
- package/dist/chunks/heapdump-1.1.4-d7hqys06.mjs +0 -6
- package/dist/chunks/help-1.1.4-35bcy608.mjs +0 -1
- package/dist/chunks/hookChains-1.1.4-fcp2d666.mjs +0 -3
- package/dist/chunks/hooks-1.1.4-h1zy1fdm.mjs +0 -1
- package/dist/chunks/hooks-1.1.4-mwnf6vn4.mjs +0 -79
- package/dist/chunks/ide-1.1.4-5bagw4sy.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.4-rfdtmnfq.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.4-kj5ne7t9.mjs +0 -1
- package/dist/chunks/index-1.1.4-0mcg1bj0.mjs +0 -1
- package/dist/chunks/index-1.1.4-0tamkcjt.mjs +0 -1
- package/dist/chunks/index-1.1.4-2czk0cj2.mjs +0 -2
- package/dist/chunks/index-1.1.4-4pzf6k4d.mjs +0 -1
- package/dist/chunks/index-1.1.4-5ff5qxrs.mjs +0 -1
- package/dist/chunks/index-1.1.4-6gmnecfx.mjs +0 -1
- package/dist/chunks/index-1.1.4-6xgr5zyz.mjs +0 -1
- package/dist/chunks/index-1.1.4-9yayje25.mjs +0 -1
- package/dist/chunks/index-1.1.4-ekp3k254.mjs +0 -1
- package/dist/chunks/index-1.1.4-g4bsry7f.mjs +0 -1
- package/dist/chunks/index-1.1.4-gfbrd9p0.mjs +0 -1
- package/dist/chunks/index-1.1.4-jk66219f.mjs +0 -30
- package/dist/chunks/index-1.1.4-m5859ars.mjs +0 -5
- package/dist/chunks/index-1.1.4-m5kxdznq.mjs +0 -1
- package/dist/chunks/index-1.1.4-mr07jhdc.mjs +0 -1
- package/dist/chunks/index-1.1.4-mw4k6wk5.mjs +0 -17
- package/dist/chunks/index-1.1.4-nx0c7851.mjs +0 -9
- package/dist/chunks/index-1.1.4-p4az8jd4.mjs +0 -9
- package/dist/chunks/index-1.1.4-s48qa1fv.mjs +0 -1
- package/dist/chunks/index-1.1.4-svjv72c1.mjs +0 -1
- package/dist/chunks/index-1.1.4-tjmw2wk0.mjs +0 -1
- package/dist/chunks/index-1.1.4-v1z11db7.mjs +0 -1
- package/dist/chunks/index-1.1.4-wkgybs2k.mjs +0 -2
- package/dist/chunks/init-1.1.4-gggf2npg.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.4-0sk4h8a1.mjs +0 -1
- package/dist/chunks/ink-1.1.4-vw46vbtt.mjs +0 -1
- package/dist/chunks/insights-1.1.4-vjtfwa5p.mjs +0 -870
- package/dist/chunks/install-1.1.4-2ckjxcbg.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.4-e0tfdyjj.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.4-j30f897r.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.4-3dd1n7rj.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.4-mz31r39t.mjs +0 -1
- package/dist/chunks/keybindings-1.1.4-3rx2vnv0.mjs +0 -2
- package/dist/chunks/knowledge-1.1.4-c30znbjx.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.4-ftdcy7g4.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.4-mqdb78s1.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.4-72qxyq0t.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.4-b0wchh9x.mjs +0 -1
- package/dist/chunks/log-1.1.4-2xexxfy0.mjs +0 -1
- package/dist/chunks/main-1.1.4-wapb45da.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.4-qyy8p7f2.mjs +0 -1
- package/dist/chunks/mcp-1.1.4-h54pt8v1.mjs +0 -1
- package/dist/chunks/mcp-1.1.4-rc4pdtng.mjs +0 -4
- package/dist/chunks/mcp-1.1.4-yfnk4mfe.mjs +0 -17
- package/dist/chunks/mcpb-1.1.4-cw5mvq0x.mjs +0 -1
- package/dist/chunks/memory-1.1.4-eqm9fevt.mjs +0 -72
- package/dist/chunks/model-1.1.4-v0jfcnn8.mjs +0 -2
- package/dist/chunks/model-1.1.4-x8a7yhj1.mjs +0 -1
- package/dist/chunks/node-1.1.4-zfc18psp.mjs +0 -12
- package/dist/chunks/oauth-1.1.4-8spjkywn.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.4-k4q3wjsg.mjs +0 -14
- package/dist/chunks/output-style-1.1.4-36tkstrg.mjs +0 -1
- package/dist/chunks/package-2VNCXFNY-1.1.4-b7m4p873.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.4-g49z58pt.mjs +0 -1
- package/dist/chunks/parser-1.1.4-f8fmbx75.mjs +0 -1
- package/dist/chunks/passes-1.1.4-fps8mejy.mjs +0 -1
- package/dist/chunks/permissions-1.1.4-38svh1zd.mjs +0 -3
- package/dist/chunks/permissions-1.1.4-4g141c3c.mjs +0 -1
- package/dist/chunks/plan-1.1.4-66evqh4y.mjs +0 -1
- package/dist/chunks/plist-1.1.4-fx2qbcnp.mjs +0 -1
- package/dist/chunks/plugin-1.1.4-jjtcjgyk.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.4-fhbmfyn5.mjs +0 -1
- package/dist/chunks/plugins-1.1.4-thxg4cdf.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.4-042npmm1.mjs +0 -2
- package/dist/chunks/print-1.1.4-fxrwvp78.mjs +0 -57
- package/dist/chunks/privacy-settings-1.1.4-mmhqzkda.mjs +0 -1
- package/dist/chunks/process-1.1.4-pjq03ry2.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.4-1f4rqd6y.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.4-rpcrfdgr.mjs +0 -9
- package/dist/chunks/prompt-1.1.4-29b0dwtk.mjs +0 -1
- package/dist/chunks/prompt-1.1.4-r7wxvh91.mjs +0 -1
- package/dist/chunks/prompts-1.1.4-26y972y6.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.4-7zfqar8j.mjs +0 -13
- package/dist/chunks/provider-1.1.4-g97havfk.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.4-v8yppf0j.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.4-sr2vhead.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.4-bndvfd35.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.4-abyv44kq.mjs +0 -34
- package/dist/chunks/registry-1.1.4-2dkk6scg.mjs +0 -1
- package/dist/chunks/release-notes-1.1.4-0aqxbex3.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.4-gat28fq4.mjs +0 -2
- package/dist/chunks/remote-env-1.1.4-sn5rdvx2.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.4-pd63jnee.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.4-0wk0yffw.mjs +0 -1
- package/dist/chunks/rename-1.1.4-r9a1zc1y.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.4-rb9fzpda.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.4-cvcyz94s.mjs +0 -1
- package/dist/chunks/resume-1.1.4-3qy136p1.mjs +0 -2
- package/dist/chunks/rewind-1.1.4-c9gdxp13.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.4-6zd74fce.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.4-mvj2fn0p.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.4-j6cfgrhj.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.4-4a59zac7.mjs +0 -1
- package/dist/chunks/session-1.1.4-5504ewv9.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.4-0jmcbvvb.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.4-bkw8bzvd.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.4-jrxy5nwv.mjs +0 -1
- package/dist/chunks/settings-1.1.4-x2nhddwq.mjs +0 -1
- package/dist/chunks/setup-1.1.4-kaet4ypb.mjs +0 -5
- package/dist/chunks/sinks-1.1.4-9g0pah73.mjs +0 -1
- package/dist/chunks/skills-1.1.4-0p66nwxp.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.4-8jnqyvyn.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.4-98n3b718.mjs +0 -1
- package/dist/chunks/state-1.1.4-rm5651xg.mjs +0 -1
- package/dist/chunks/stats-1.1.4-e1vedz6r.mjs +0 -6
- package/dist/chunks/status-1.1.4-v47t86mv.mjs +0 -1
- package/dist/chunks/stickers-1.1.4-5d457j1w.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.4-svxhss0m.mjs +0 -1
- package/dist/chunks/tasks-1.1.4-cvza9kpf.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.4-v21fjxgf.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.4-8075wryx.mjs +0 -1
- package/dist/chunks/teleport-1.1.4-6rxc18rz.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.4-sd7720mx.mjs +0 -1
- package/dist/chunks/theme-1.1.4-6pphnv8h.mjs +0 -1
- package/dist/chunks/thinkback-1.1.4-wd6fcgyw.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.4-ydvvq4y6.mjs +0 -1
- package/dist/chunks/toolPool-1.1.4-v050m5b8.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.4-wg2kk5a2.mjs +0 -1
- package/dist/chunks/tools-1.1.4-g181kv47.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.4-tdeqsy06.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.4-sj3ajz7z.mjs +0 -69
- package/dist/chunks/types-1.1.4-ggcwt1pq.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.4-nrnrb8c3.mjs +0 -4
- package/dist/chunks/update-1.1.4-z8g0pneq.mjs +0 -72
- package/dist/chunks/upgrade-1.1.4-e34ebc9z.mjs +0 -1
- package/dist/chunks/upload-1.1.4-2av9969z.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.4-e3t0n54y.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.4-hghknwdd.mjs +0 -1
- package/dist/chunks/usage-1.1.4-wc38b22t.mjs +0 -1
- package/dist/chunks/util-1.1.4-re2ggpra.mjs +0 -1
- package/dist/chunks/utils-1.1.4-xzem7sm6.mjs +0 -1
- package/dist/chunks/vim-1.1.4-ybw4ky04.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.4-mshcfcqq.mjs +0 -13
- package/dist/chunks/watcher-1.1.4-fbr5em87.mjs +0 -1
- package/dist/chunks/wiki-1.1.4-hddnvztx.mjs +0 -132
- package/dist/chunks/workflows-1.1.4-5zm6r9s5.mjs +0 -1
- package/dist/chunks/worktree-1.1.4-6xqk6k5z.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.4-axxnvhc8.mjs +0 -1
- package/dist/chunks/wrapper-1.1.4-y14g4zah.mjs +0 -7
- /package/dist/chunks/{cli-1.1.4-q1mcaeav.mjs → cli-1.1.6-0aspjywf.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.4-ez4xtmvg.mjs → cli-1.1.6-1192yjjf.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.4-gpvz5jfv.mjs → cli-1.1.6-32gxvr4y.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.4-tg5t7jrb.mjs → cli-1.1.6-gzsjjcf2.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.4-n0dzwv49.mjs → cli-1.1.6-p9y9z3vv.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.4-1f3p70jj.mjs → cli-1.1.6-phpnk311.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.4-gp99zrz4.mjs → cli-1.1.6-y9xnpn7x.mjs} +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import{bf as kZ,hf as XX}from"./cli-1.1.6-bm7xjqpq.mjs";import{lf as YZ,mf as gQ}from"./cli-1.1.6-3ry7rc5m.mjs";import{$R as iZ,Ak as u0,Bk as pJ,Bs as aZ,CI as pZ,Es as FX,FI as kJ,Fl as qQ,Fs as cJ,GI as JZ,Gs as LQ,HI as OJ,Hl as MX,II as WJ,JI as ZZ,JK as $0,Jk as dZ,Jn as HJ,KA as F0,KI as QZ,Kk as tQ,Kn as DQ,LA as i0,LI as XZ,MA as fJ,MK as FZ,Mq as MZ,NA as BX,NI as p0,Ns as U0,Ny as yZ,OI as _0,Oy as iQ,PI as PJ,Pk as r0,Pq as lQ,Pw as NQ,Rk as GZ,Sk as UJ,UA as mZ,VA as ZX,Vw as CX,WR as lZ,Xn as GQ,Xs as vQ,Yn as EX,Zn as l,_n as A0,at as d0,bo as Z0,co as B0,cy as WQ,dF as HQ,dt as hQ,dy as bX,eI as WZ,fI as RZ,fS as LZ,fo as n,gF as hX,gI as s0,go as I0,hk as VZ,iI as MJ,jy as zJ,ky as RQ,my as AX,mz as NZ,nz as rQ,oE as FQ,pE as vX,pt as VQ,qB as IX,qz as a0,rB as DX,rz as CZ,sG as OQ,st as KX,vG as gX,yG as j0,zG as QX}from"./cli-1.1.6-ckg7fah6.mjs";import{DY as q0,EY as g0,oY as QJ,pY as nZ}from"./cli-1.1.6-fjb1m1sm.mjs";import{EZ as R0,I1 as f0,NZ as l0,b1 as C,d1 as V,h1 as JJ,r1 as wZ}from"./cli-1.1.6-4cqcrvjd.mjs";import{E3 as hJ,L3 as yX}from"./cli-1.1.6-81cx55jz.mjs";import{o4 as o,p4 as f,q4 as W,r4 as $}from"./cli-1.1.6-a5rqr2qe.mjs";import{s4 as o0}from"./cli-1.1.6-5wjyk23t.mjs";import{D4 as mJ,N4 as MQ}from"./cli-1.1.6-pfcwqc6w.mjs";import{P4 as DJ,Q4 as JX}from"./cli-1.1.6-bd0v70jd.mjs";import{X7 as NJ,Y7 as wQ,c5 as tJ,d5 as IQ}from"./cli-1.1.6-w4nw5yvg.mjs";import{Aaa as CJ,E_ as t0,F_ as cZ,Rga as eJ,Yba as z0,Zba as w0,Zca as TZ,Zga as BQ,_ca as uZ,ada as eQ,dca as m0,nda as Q0,vda as IJ,xaa as fQ,yaa as M0}from"./cli-1.1.6-qem2tnkw.mjs";import{fha as y0,iha as b0,kha as oZ,mha as e0,nha as x0,uha as h0}from"./cli-1.1.6-eyrk5vjw.mjs";import{Zha as sJ,jia as AQ}from"./cli-1.1.6-81cgzqdp.mjs";import{Aja as _J,xja as t}from"./cli-1.1.6-0a0rct1w.mjs";import{Aka as D0,Dka as dJ,oka as $Z,qka as RX}from"./cli-1.1.6-rvy9sw8e.mjs";import{_ka as v0,fla as aJ}from"./cli-1.1.6-cam8a83k.mjs";import{Fsa as J0,Gsa as FJ,Isa as $J,Jsa as a}from"./cli-1.1.6-xc6fegry.mjs";function T0(Q){return typeof Q==="object"&&Q!==null&&"type"in Q&&Q.type==="local_agent"}function qJ(Q){return{...Q,retain:!1,messages:void 0,diskLoaded:!1,evictAfter:cJ(Q.status)?Date.now()+UQ:void 0}}function GJ(Q,J){t("tengu_transcript_view_enter",{}),J((Z)=>{let X=Z.tasks[Q],z=Z.viewingAgentTaskId,Y=z!==void 0?Z.tasks[z]:void 0,G=z!==void 0&&z!==Q&&T0(Y)&&Y.retain,q=T0(X)&&(!X.retain||X.evictAfter!==void 0),R=Z.viewingAgentTaskId!==Q||Z.viewSelectionMode!=="viewing-agent";if(!q&&!R&&!G)return Z;let F=Z.tasks;if(G||q){if(F={...Z.tasks},G)F[z]=qJ(Y);if(q)F[Q]={...X,retain:!0,evictAfter:void 0}}return{...Z,viewingAgentTaskId:Q,viewSelectionMode:"viewing-agent",tasks:F}})}function VJ(Q){t("tengu_transcript_view_exit",{}),Q((J)=>{let Z=J.viewingAgentTaskId,X={...J,viewingAgentTaskId:void 0,viewSelectionMode:"none"};if(Z===void 0)return J.viewSelectionMode==="none"?J:X;let z=J.tasks[Z];if(!T0(z)||!z.retain)return X;return{...X,tasks:{...J.tasks,[Z]:qJ(z)}}})}function xX(Q,J){J((Z)=>{let X=Z.tasks[Q];if(!T0(X))return Z;if(X.status==="running")return X.abortController?.abort(),Z;if(X.evictAfter===0)return Z;let z=Z.viewingAgentTaskId===Q;return{...Z,tasks:{...Z.tasks,[Q]:{...qJ(X),evictAfter:0}},...z&&{viewingAgentTaskId:void 0,viewSelectionMode:"none"}}})}var UQ=30000;var TJ=a(()=>{_J();LQ()});class xJ{exitPlanCalls=[];results=new Map;rejectedIds=new Set;terminated=null;rescanAfterRejection=!1;everSeenPending=!1;get rejectCount(){return this.rejectedIds.size}get hasPendingPlan(){let Q=this.exitPlanCalls.findLast((J)=>!this.rejectedIds.has(J));return Q!==void 0&&!this.results.has(Q)}ingest(Q){for(let X of Q)if(X.type==="assistant")for(let z of X.message.content){if(z.type!=="tool_use")continue;let Y=z;if(Y.name===u0)this.exitPlanCalls.push(Y.id)}else if(X.type==="user"){let z=X.message.content;if(!Array.isArray(z))continue;for(let Y of z)if(Y.type==="tool_result")this.results.set(Y.tool_use_id,Y)}else if(X.type==="result"&&X.subtype!=="success")this.terminated={subtype:X.subtype};let J=Q.length>0||this.rescanAfterRejection;this.rescanAfterRejection=!1;let Z=null;if(J){for(let X=this.exitPlanCalls.length-1;X>=0;X--){let z=this.exitPlanCalls[X];if(this.rejectedIds.has(z))continue;let Y=this.results.get(z);if(!Y)Z={kind:"pending"};else if(Y.is_error===!0){let G=KQ(Y.content);Z=G!==null?{kind:"teleport",plan:G}:{kind:"rejected",id:z}}else Z={kind:"approved",plan:CQ(Y.content)};break}if(Z?.kind==="approved"||Z?.kind==="teleport")return Z}if(Z?.kind==="rejected")this.rejectedIds.add(Z.id),this.rescanAfterRejection=!0;if(this.terminated)return{kind:"terminated",subtype:this.terminated.subtype};if(Z?.kind==="rejected")return Z;if(Z?.kind==="pending")return this.everSeenPending=!0,Z;return{kind:"unchanged"}}}async function rJ(Q,J,Z,X){let z=Date.now()+J,Y=new xJ,G=null,q=0,R="running";while(Date.now()<z){if(X?.())throw new W0("poll stopped by caller","stopped",Y.rejectCount);let F,O;try{let L=await kJ(Q,G);F=L.newEvents,G=L.lastEventId,O=L.sessionStatus,q=0}catch(L){if(!mJ(L)||++q>=yQ)throw new W0(L instanceof Error?L.message:String(L),"network_or_unknown",Y.rejectCount,{cause:L});await NJ(uJ);continue}let H;try{H=Y.ingest(F)}catch(L){throw new W0(L instanceof Error?L.message:String(L),"extract_marker_missing",Y.rejectCount)}if(H.kind==="approved")return{plan:H.plan,rejectCount:Y.rejectCount,executionTarget:"remote"};if(H.kind==="teleport")return{plan:H.plan,rejectCount:Y.rejectCount,executionTarget:"local"};if(H.kind==="terminated")throw new W0(`remote session ended (${H.subtype}) before plan approval`,"terminated",Y.rejectCount);let P=(O==="idle"||O==="requires_action")&&F.length===0,w=Y.hasPendingPlan?"plan_ready":P?"needs_input":"running";if(w!==R)D0(`[ultraplan] phase ${R} → ${w}`),R=w,Z?.(w);await NJ(uJ)}throw new W0(Y.everSeenPending?`no approval after ${J/1000}s`:`ExitPlanMode never reached after ${J/1000}s (the remote container failed to start, or session ID mismatch?)`,Y.everSeenPending?"timeout_pending":"timeout_no_plan",Y.rejectCount)}function lJ(Q){return typeof Q==="string"?Q:Array.isArray(Q)?Q.map((J)=>("text"in J)?J.text:"").join(""):""}function KQ(Q){let J=lJ(Q),Z=`${EQ}
|
|
2
|
+
`,X=J.indexOf(Z);if(X===-1)return null;return J.slice(X+Z.length).trimEnd()}function CQ(Q){let J=lJ(Q),Z=[`## Approved Plan (edited by user):
|
|
3
|
+
`,`## Approved Plan:
|
|
4
|
+
`];for(let X of Z){let z=J.indexOf(X);if(z!==-1)return J.slice(z+X.length).trimEnd()}throw Error(`ExitPlanMode approved but tool_result has no "## Approved Plan:" marker — remote may have hit the empty-plan or isAgent branch. Content preview: ${J.slice(0,200)}`)}var uJ=3000,yQ=5,W0,EQ="__ULTRAPLAN_TELEPORT_LOCAL__";var iJ=a(()=>{pJ();dJ();wQ();MQ();WJ();W0=class W0 extends Error{reason;rejectCount;constructor(Q,J,Z,X){super(Q,X);this.reason=J;this.rejectCount=Z;this.name="UltraplanPollError"}}});var oJ={};$J(oJ,{default:()=>bQ});var bQ=`This is a planning prompt stub.
|
|
5
|
+
`;var nJ=()=>{};function jQ(){return sJ("tengu_ultraplan_model",tJ.opus46.firstParty)}function TQ(Q,J){let Z=[];if(J)Z.push("Here is a draft plan to refine:","",J,"");if(Z.push(cQ),Q)Z.push("",Q);return Z.join(`
|
|
6
|
+
`)}function uQ(Q,J,Z,X,z){let Y=Date.now(),G=!1;(async()=>{try{let{plan:q,rejectCount:R,executionTarget:F}=await rJ(J,SQ,(O)=>{if(O==="needs_input")t("tengu_ultraplan_awaiting_input",{});d0(Q,z,(H)=>{if(H.status!=="running")return H;let P=O==="running"?void 0:O;return H.ultraplanPhase===P?H:{...H,ultraplanPhase:P}})},()=>X().tasks?.[Q]?.status!=="running");if(t("tengu_ultraplan_approved",{duration_ms:Date.now()-Y,plan_length:q.length,reject_count:R,execution_target:F}),F==="remote"){if(X().tasks?.[Q]?.status!=="running")return;d0(Q,z,(H)=>H.status!=="running"?H:{...H,status:"completed",endTime:Date.now()}),z((H)=>H.ultraplanSessionUrl===Z?{...H,ultraplanSessionUrl:void 0}:H),U0({value:[`Ultraplan approved — executing in Claude Code on the web. Follow along at: ${Z}`,"","Results will land as a pull request when the remote session finishes. There is nothing to do here."].join(`
|
|
7
|
+
`),mode:"task-notification"})}else z((O)=>{let H=O.tasks?.[Q];if(!H||H.status!=="running")return O;return{...O,ultraplanPendingChoice:{plan:q,sessionId:J,taskId:Q}}})}catch(q){if(X().tasks?.[Q]?.status!=="running")return;G=!0,t("tengu_ultraplan_failed",{duration_ms:Date.now()-Y,reason:q instanceof W0?q.reason:"network_or_unknown",reject_count:q instanceof W0?q.rejectCount:void 0}),U0({value:`Ultraplan failed: ${v0(q)}
|
|
8
|
+
|
|
9
|
+
Session: ${Z}`,mode:"task-notification"}),OJ(J).catch((F)=>D0(`ultraplan archive failed: ${String(F)}`)),z((F)=>F.ultraplanSessionUrl===Z?{...F,ultraplanSessionUrl:void 0}:F)}finally{if(G)d0(Q,z,(q)=>q.status!=="running"?q:{...q,status:"failed",endTime:Date.now()})}})()}function dQ(Q){let J=Q?`${YZ} `:"";return`${z0} ultraplan
|
|
10
|
+
${J}Starting Claude Code on the web…`}function mQ(Q){return`${z0} ultraplan · Monitor progress in Claude Code on the web ${Q}
|
|
11
|
+
You can continue working — when the ${z0} fills, press ↓ to view results`}function fZ(Q){return Q?`ultraplan: already polling. Open ${Q} to check status, or wait for the plan to land here.`:"ultraplan: already launching. Please wait for the session to start."}async function LJ(Q,J,Z){await p0.kill(Q,Z),Z((z)=>z.ultraplanSessionUrl||z.ultraplanPendingChoice||z.ultraplanLaunching?{...z,ultraplanSessionUrl:void 0,ultraplanPendingChoice:void 0,ultraplanLaunching:void 0}:z);let X=HJ(J,process.env.SESSION_INGRESS_URL);U0({value:`Ultraplan stopped.
|
|
12
|
+
|
|
13
|
+
Session: ${X}`,mode:"task-notification"}),U0({value:"The user stopped the ultraplan session above. Do not respond to the stop notification — wait for their next message.",mode:"task-notification",isMeta:!0})}async function pQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,disconnectedBridge:G,onSessionReady:q}=Q,{ultraplanSessionUrl:R,ultraplanLaunching:F}=X();if(R||F)return t("tengu_ultraplan_create_failed",{reason:R?"already_polling":"already_launching"}),fZ(R);if(!J&&!Z)return['Usage: /ultraplan \\<prompt\\>, or include "ultraplan" anywhere',"in your prompt","","Advanced multi-agent plan mode with our most powerful model","(Opus). Runs in Claude Code on the web. When the plan is ready,","you can execute it in the web session or send it back here.","Terminal stays free while the remote plans.","Requires /login.","",`Terms: ${zZ}`].join(`
|
|
14
|
+
`);return z((O)=>O.ultraplanLaunching?O:{...O,ultraplanLaunching:!0}),kQ({blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:q}),dQ(G)}async function kQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:G}=Q,q;try{let R=jQ(),F=await ZZ();if(!F.eligible){t("tengu_ultraplan_create_failed",{reason:"precondition",precondition_errors:F.errors.map((K)=>K.type).join(",")});let U=F.errors.map(QZ).join(`
|
|
15
|
+
`);U0({value:`ultraplan: cannot launch remote session —
|
|
16
|
+
${U}`,mode:"task-notification"});return}let O=TQ(J,Z),H,P=await JZ({initialMessage:O,description:J||"Refine local plan",model:R,permissionMode:"plan",ultraplan:!0,signal:Y,useDefaultEnvironment:!0,onBundleFail:(U)=>{H=U}});if(!P){t("tengu_ultraplan_create_failed",{reason:H?"bundle_fail":"teleport_null"}),U0({value:`ultraplan: session creation failed${H?` — ${H}`:""}. See --debug for details.`,mode:"task-notification"});return}q=P.id;let w=HJ(P.id,process.env.SESSION_INGRESS_URL);z((U)=>({...U,ultraplanSessionUrl:w,ultraplanLaunching:void 0})),G?.(mQ(w)),t("tengu_ultraplan_launched",{has_seed_plan:Boolean(Z),model:R});let{taskId:L}=XZ({remoteTaskType:"ultraplan",session:{id:P.id,title:J||"Ultraplan"},command:J,context:{abortController:new AbortController,getAppState:X,setAppState:z},isUltraplan:!0});uQ(L,P.id,w,X,z)}catch(R){if(eJ(R),t("tengu_ultraplan_create_failed",{reason:"unexpected_error"}),U0({value:`ultraplan: unexpected error — ${v0(R)}`,mode:"task-notification"}),q)OJ(q).catch((F)=>D0("ultraplan: failed to archive orphaned session",F)),z((F)=>F.ultraplanSessionUrl?{...F,ultraplanSessionUrl:void 0}:F)}finally{z((R)=>R.ultraplanLaunching?{...R,ultraplanLaunching:void 0}:R)}}var SQ=1800000,zZ="https://code.claude.com/docs/en/claude-code-on-the-web",RJ,_Q,cQ,xQ=async(Q,J,Z)=>{let X=Z.trim();if(!X){let G=await pQ({blurb:X,getAppState:J.getAppState,setAppState:J.setAppState,signal:J.abortController.signal});return Q(G,{display:"system"}),null}let{ultraplanSessionUrl:z,ultraplanLaunching:Y}=J.getAppState();if(z||Y)return t("tengu_ultraplan_create_failed",{reason:z?"already_polling":"already_launching"}),Q(fZ(z),{display:"system"}),null;return J.setAppState((G)=>({...G,ultraplanLaunchPending:{blurb:X}})),Q(void 0,{display:"skip"}),null},WY;var qZ=a(()=>{gQ();m0();DQ();AQ();_J();PJ();dJ();aJ();BQ();vQ();IQ();hQ();WJ();iJ();RJ=(nJ(),FJ(oJ)),_Q=(typeof RJ==="string"?RJ:RJ.default).trimEnd(),cQ=_Q;WY={type:"local-jsx",name:"ultraplan",description:`~10–30 min · Claude Code on the web drafts an advanced plan you can edit and approve. See ${zZ}`,argumentHint:"<prompt>",isEnabled:()=>!1,load:()=>Promise.resolve({call:xQ})}});function k0(Q,J,Z){let X=GZ(J,Q.toolName);if(!X)return Q.toolName;try{let z=X.inputSchema.safeParse(Q.input),Y=z.success?z.data:{},G=X.userFacingName(Y);if(!G)return Q.toolName;let q=X.renderToolUseMessage(Y,{theme:Z,verbose:!1});if(q)return W(V,{children:[G,"(",q,")"]});return G}catch{return Q.toolName}}var wJ=a(()=>{f0();UJ();$()});function OZ(Q){let J=HZ.c(54),{agent:Z,onDone:X,onKillAgent:z,onBack:Y}=Q,[G]=l0(),q;if(J[0]===Symbol.for("react.memo_cache_sentinel"))q=$0(r0()),J[0]=q;else q=J[0];let R=q,F=F0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),O;if(J[1]!==X)O={"confirm:yes":X},J[1]=X,J[2]=O;else O=J[2];let H;if(J[3]===Symbol.for("react.memo_cache_sentinel"))H={context:"Confirmation"},J[3]=H;else H=J[3];q0(O,H);let P;if(J[4]!==Z.status||J[5]!==Y||J[6]!==X||J[7]!==z)P=(g)=>{if(g.key===" ")g.preventDefault(),X();else if(g.key==="left"&&Y)g.preventDefault(),Y();else if(g.key==="x"&&Z.status==="running"&&z)g.preventDefault(),z()},J[4]=Z.status,J[5]=Y,J[6]=X,J[7]=z,J[8]=P;else P=J[8];let w=P,L;if(J[9]!==Z.prompt)L=VZ(Z.prompt,"plan"),J[9]=Z.prompt,J[10]=L;else L=J[10];let U=L,K=Z.prompt.length>300?Z.prompt.substring(0,297)+"…":Z.prompt,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,v=Z.selectedAgent?.agentType??"agent",D=Z.description||"Async agent",I;if(J[11]!==v||J[12]!==D)I=W(V,{children:[v," ›"," ",D]}),J[11]=v,J[12]=D,J[13]=I;else I=J[13];let y=I,B;if(J[14]!==Z.status)B=Z.status!=="running"&&W(V,{color:RZ(Z.status),children:[WZ(Z.status)," ",Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[14]=Z.status,J[15]=B;else B=J[15];let m;if(J[16]!==E)m=E!==void 0&&E>0&&W(o,{children:[" · ",x0(E)," tokens"]}),J[16]=E,J[17]=m;else m=J[17];let u;if(J[18]!==A)u=A!==void 0&&A>0&&W(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[18]=A,J[19]=u;else u=J[19];let S;if(J[20]!==F||J[21]!==m||J[22]!==u)S=W(V,{dimColor:!0,children:[F,m,u]}),J[20]=F,J[21]=m,J[22]=u,J[23]=S;else S=J[23];let x;if(J[24]!==S||J[25]!==B)x=W(V,{children:[B,S]}),J[24]=S,J[25]=B,J[26]=x;else x=J[26];let d=x,h;if(J[27]!==Z.status||J[28]!==Y||J[29]!==z)h=(g)=>g.pending?W(V,{children:["Press ",g.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"})]}),J[27]=Z.status,J[28]=Y,J[29]=z,J[30]=h;else h=J[30];let b;if(J[31]!==Z.progress||J[32]!==Z.status||J[33]!==G)b=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&W(C,{flexDirection:"column",children:[f(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((g,k)=>W(V,{dimColor:k<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[k===Z.progress.recentActivities.length-1?"› ":" ",k0(g,R,G)]},k))]}),J[31]=Z.progress,J[32]=Z.status,J[33]=G,J[34]=b;else b=J[34];let p;if(J[35]!==K||J[36]!==U)p=U?f(C,{marginTop:1,children:f(NZ,{addMargin:!1,planContent:U})}):W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,dimColor:!0,children:"Prompt"}),f(V,{wrap:"wrap",children:K})]}),J[35]=K,J[36]=U,J[37]=p;else p=J[37];let c;if(J[38]!==Z.error||J[39]!==Z.status)c=Z.status==="failed"&&Z.error&&W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,color:"error",children:"Error"}),f(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[38]=Z.error,J[39]=Z.status,J[40]=c;else c=J[40];let _;if(J[41]!==b||J[42]!==p||J[43]!==c)_=W(C,{flexDirection:"column",children:[b,p,c]}),J[41]=b,J[42]=p,J[43]=c,J[44]=_;else _=J[44];let j;if(J[45]!==X||J[46]!==d||J[47]!==h||J[48]!==_||J[49]!==y)j=f(n,{title:y,subtitle:d,onCancel:X,color:"background",inputGuide:h,children:_}),J[45]=X,J[46]=d,J[47]=h,J[48]=_,J[49]=y,J[50]=j;else j=J[50];let T;if(J[51]!==w||J[52]!==j)T=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:w,children:j}),J[51]=w,J[52]=j,J[53]=T;else T=J[53];return T}var HZ;var PZ=a(()=>{i0();f0();g0();UJ();FZ();h0();LZ();B0();I0();A0();rQ();wJ();MJ();$();HZ=J0(R0(),1)});function bJ(Q,J,Z,X){if(!Q)return`${J} found · ${Z} verified`;if(Q==="synthesizing"){let z=[`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.push("deduping"),z.join(" · ")}if(Q==="verifying"){let z=[`${J} found`,`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return J>0?`${J} found`:"finding"}function yJ(Q){let J=n0.c(5),{text:Z,phase:X}=Q,z=X===void 0?0:X,Y;if(J[0]!==Z)Y=[...Z],J[0]=Z,J[1]=Y;else Y=J[1];let G;if(J[2]!==z||J[3]!==Y)G=f(o,{children:Y.map((q,R)=>f(V,{color:MZ(R+z),children:q},R))}),J[2]=z,J[3]=Y,J[4]=G;else G=J[4];return G}function EJ(Q,J,Z){let X=KJ.useRef(Q),z=KJ.useRef(J);if(Z||Q<X.current)X.current=Q;else if(Q>X.current&&J!==z.current)X.current+=1,z.current=J;return X.current}function $Q(Q){let J=n0.c(15),{session:Z}=Q,z=yZ().prefersReducedMotion??!1,Y=Z.reviewProgress,G=Z.status==="running",[,q]=wZ(G&&!z?UZ:null),R=Y?.bugsFound??0,F=Y?.bugsVerified??0,O=Y?.bugsRefuted??0,H=z||!G,P=EJ(R,q,H),w=EJ(F,q,H),L=EJ(O,q,H),U=Math.floor(q/(UZ*3))%7;if(Z.status==="completed"){let B;if(J[0]===Symbol.for("react.memo_cache_sentinel"))B=W(o,{children:[W(V,{color:"background",children:[w0," "]}),f(yJ,{text:"ultrareview",phase:0}),f(V,{dimColor:!0,children:" ready · shift+↓ to view"})]}),J[0]=B;else B=J[0];return B}if(Z.status==="failed"){let B;if(J[1]===Symbol.for("react.memo_cache_sentinel"))B=W(o,{children:[W(V,{color:"background",children:[w0," "]}),f(yJ,{text:"ultrareview",phase:0}),W(V,{color:"error",dimColor:!0,children:[" · ","error"]})]}),J[1]=B;else B=J[1];return B}let K;if(J[2]!==P||J[3]!==Y||J[4]!==L||J[5]!==w)K=!Y?"setting up":bJ(Y.stage,P,w,L),J[2]=P,J[3]=Y,J[4]=L,J[5]=w,J[6]=K;else K=J[6];let E=K,A;if(J[7]===Symbol.for("react.memo_cache_sentinel"))A=W(V,{color:"background",children:[z0," "]}),J[7]=A;else A=J[7];let v=G?U:0,D;if(J[8]!==v)D=f(yJ,{text:"ultrareview",phase:v}),J[8]=v,J[9]=D;else D=J[9];let I;if(J[10]!==E)I=W(V,{dimColor:!0,children:[" · ",E]}),J[10]=E,J[11]=I;else I=J[11];let y;if(J[12]!==D||J[13]!==I)y=W(o,{children:[A,D,I]}),J[12]=D,J[13]=I,J[14]=y;else y=J[14];return y}function S0(Q){let J=n0.c(11),{session:Z}=Q;if(Z.isRemoteReview){let q;if(J[0]!==Z)q=f($Q,{session:Z}),J[0]=Z,J[1]=q;else q=J[1];return q}if(Z.status==="completed"){let q;if(J[2]===Symbol.for("react.memo_cache_sentinel"))q=f(V,{bold:!0,color:"success",dimColor:!0,children:"done"}),J[2]=q;else q=J[2];return q}if(Z.status==="failed"){let q;if(J[3]===Symbol.for("react.memo_cache_sentinel"))q=f(V,{bold:!0,color:"error",dimColor:!0,children:"error"}),J[3]=q;else q=J[3];return q}if(!Z.todoList.length){let q;if(J[4]!==Z.status)q=W(V,{dimColor:!0,children:[Z.status,"…"]}),J[4]=Z.status,J[5]=q;else q=J[5];return q}let X;if(J[6]!==Z.todoList)X=M0(Z.todoList,oQ),J[6]=Z.todoList,J[7]=X;else X=J[7];let z=X,Y=Z.todoList.length,G;if(J[8]!==z||J[9]!==Y)G=W(V,{dimColor:!0,children:[z,"/",Y]}),J[8]=z,J[9]=Y,J[10]=G;else G=J[10];return G}function oQ(Q){return Q.status==="completed"}var n0,KJ,UZ=80;var AJ=a(()=>{m0();iQ();f0();CJ();lQ();$();n0=J0(R0(),1),KJ=J0(o0(),1)});function H0(Q){let J=BJ.c(4),{status:Z,label:X,suffix:z}=Q,Y=X??Z,G=Z==="completed"?"success":Z==="failed"?"error":Z==="killed"?"warning":void 0,q;if(J[0]!==G||J[1]!==Y||J[2]!==z)q=W(V,{color:G,dimColor:!0,children:["(",Y,z,")"]}),J[0]=G,J[1]=Y,J[2]=z,J[3]=q;else q=J[3];return q}function EZ(Q){let J=BJ.c(4),{shell:Z}=Q;switch(Z.status){case"completed":{let X;if(J[0]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"completed",label:"done"}),J[0]=X;else X=J[0];return X}case"failed":{let X;if(J[1]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"failed",label:"error"}),J[1]=X;else X=J[1];return X}case"killed":{let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"killed",label:"stopped"}),J[2]=X;else X=J[2];return X}case"running":case"pending":{let X;if(J[3]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"running"}),J[3]=X;else X=J[3];return X}}}var BJ;var KZ=a(()=>{f0();$();BJ=J0(R0(),1)});function AZ(Q){let J=bZ.c(92),{task:Z,maxActivityWidth:X}=Q,z=X??40;switch(Z.type){case"local_bash":{let Y=Z.kind==="monitor"?Z.description:Z.command,G;if(J[0]!==z||J[1]!==Y)G=b0(Y,z,!0),J[0]=z,J[1]=Y,J[2]=G;else G=J[2];let q;if(J[3]!==Z)q=f(EZ,{shell:Z}),J[3]=Z,J[4]=q;else q=J[4];let R;if(J[5]!==G||J[6]!==q)R=W(V,{children:[G," ",q]}),J[5]=G,J[6]=q,J[7]=R;else R=J[7];return R}case"remote_agent":{if(Z.isRemoteReview){let P;if(J[8]!==Z)P=f(V,{children:f(S0,{session:Z})}),J[8]=Z,J[9]=P;else P=J[9];return P}let G=Z.status==="running"||Z.status==="pending"?z0:w0,q;if(J[10]!==G)q=W(V,{dimColor:!0,children:[G," "]}),J[10]=G,J[11]=q;else q=J[11];let R;if(J[12]!==z||J[13]!==Z.title)R=b0(Z.title,z,!0),J[12]=z,J[13]=Z.title,J[14]=R;else R=J[14];let F;if(J[15]===Symbol.for("react.memo_cache_sentinel"))F=f(V,{dimColor:!0,children:" · "}),J[15]=F;else F=J[15];let O;if(J[16]!==Z)O=f(S0,{session:Z}),J[16]=Z,J[17]=O;else O=J[17];let H;if(J[18]!==q||J[19]!==R||J[20]!==O)H=W(V,{children:[q,R,F,O]}),J[18]=q,J[19]=R,J[20]=O,J[21]=H;else H=J[21];return H}case"local_agent":{let Y;if(J[22]!==z||J[23]!==Z.description)Y=b0(Z.description,z,!0),J[22]=z,J[23]=Z.description,J[24]=Y;else Y=J[24];let G=Z.status==="completed"?"done":void 0,q=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[25]!==G||J[26]!==q||J[27]!==Z.status)R=f(H0,{status:Z.status,label:G,suffix:q}),J[25]=G,J[26]=q,J[27]=Z.status,J[28]=R;else R=J[28];let F;if(J[29]!==Y||J[30]!==R)F=W(V,{children:[Y," ",R]}),J[29]=Y,J[30]=R,J[31]=F;else F=J[31];return F}case"in_process_teammate":{let Y,G,q,R,F,O;if(J[32]!==z||J[33]!==Z){let w=s0(Z);G=V;let L;if(J[40]!==Z.identity.color)L=a0(Z.identity.color),J[40]=Z.identity.color,J[41]=L;else L=J[41];if(J[42]!==L||J[43]!==Z.identity.agentName)O=W(V,{color:L,children:["@",Z.identity.agentName]}),J[42]=L,J[43]=Z.identity.agentName,J[44]=O;else O=J[44];Y=V,q=!0,R=": ",F=b0(w,z,!0),J[32]=z,J[33]=Z,J[34]=Y,J[35]=G,J[36]=q,J[37]=R,J[38]=F,J[39]=O}else Y=J[34],G=J[35],q=J[36],R=J[37],F=J[38],O=J[39];let H;if(J[45]!==Y||J[46]!==q||J[47]!==R||J[48]!==F)H=W(Y,{dimColor:q,children:[R,F]}),J[45]=Y,J[46]=q,J[47]=R,J[48]=F,J[49]=H;else H=J[49];let P;if(J[50]!==G||J[51]!==O||J[52]!==H)P=W(G,{children:[O,H]}),J[50]=G,J[51]=O,J[52]=H,J[53]=P;else P=J[53];return P}case"local_workflow":{let Y=Z.workflowName??Z.summary??Z.description,G;if(J[54]!==z||J[55]!==Y)G=b0(Y,z,!0),J[54]=z,J[55]=Y,J[56]=G;else G=J[56];let q;if(J[57]!==Z.agentCount||J[58]!==Z.status)q=Z.status==="running"?`${Z.agentCount} ${Q0(Z.agentCount,"agent")}`:Z.status==="completed"?"done":void 0,J[57]=Z.agentCount,J[58]=Z.status,J[59]=q;else q=J[59];let R=Z.status==="completed"&&!Z.notified?", unread":void 0,F;if(J[60]!==q||J[61]!==R||J[62]!==Z.status)F=f(H0,{status:Z.status,label:q,suffix:R}),J[60]=q,J[61]=R,J[62]=Z.status,J[63]=F;else F=J[63];let O;if(J[64]!==G||J[65]!==F)O=W(V,{children:[G," ",F]}),J[64]=G,J[65]=F,J[66]=O;else O=J[66];return O}case"monitor_mcp":{let Y;if(J[67]!==z||J[68]!==Z.description)Y=b0(Z.description,z,!0),J[67]=z,J[68]=Z.description,J[69]=Y;else Y=J[69];let G=Z.status==="completed"?"done":void 0,q=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[70]!==G||J[71]!==q||J[72]!==Z.status)R=f(H0,{status:Z.status,label:G,suffix:q}),J[70]=G,J[71]=q,J[72]=Z.status,J[73]=R;else R=J[73];let F;if(J[74]!==Y||J[75]!==R)F=W(V,{children:[Y," ",R]}),J[74]=Y,J[75]=R,J[76]=F;else F=J[76];return F}case"dream":{let Y=Z.filesTouched.length,G;if(J[77]!==Y||J[78]!==Z.phase||J[79]!==Z.sessionsReviewing)G=Z.phase==="updating"&&Y>0?`${Y} ${Q0(Y,"file")}`:`${Z.sessionsReviewing} ${Q0(Z.sessionsReviewing,"session")}`,J[77]=Y,J[78]=Z.phase,J[79]=Z.sessionsReviewing,J[80]=G;else G=J[80];let q=G,R;if(J[81]!==q||J[82]!==Z.phase)R=W(V,{dimColor:!0,children:["· ",Z.phase," · ",q]}),J[81]=q,J[82]=Z.phase,J[83]=R;else R=J[83];let F=Z.status==="completed"?"done":void 0,O=Z.status==="completed"&&!Z.notified?", unread":void 0,H;if(J[84]!==F||J[85]!==O||J[86]!==Z.status)H=f(H0,{status:Z.status,label:F,suffix:O}),J[84]=F,J[85]=O,J[86]=Z.status,J[87]=H;else H=J[87];let P;if(J[88]!==R||J[89]!==H||J[90]!==Z.description)P=W(V,{children:[Z.description," ",R," ",H]}),J[88]=R,J[89]=H,J[90]=Z.description,J[91]=P;else P=J[91];return P}}}var bZ;var BZ=a(()=>{f0();h0();CZ();IJ();m0();AJ();KZ();MJ();$();bZ=J0(R0(),1)});function DZ(Q){let J=IZ.c(70),{task:Z,onDone:X,onBack:z,onKill:Y}=Q,G=F0(Z.startTime,Z.status==="running",1000,0),q;if(J[0]!==X)q={"confirm:yes":X},J[0]=X,J[1]=q;else q=J[1];let R;if(J[2]===Symbol.for("react.memo_cache_sentinel"))R={context:"Confirmation"},J[2]=R;else R=J[2];q0(q,R);let F;if(J[3]!==z||J[4]!==X||J[5]!==Y||J[6]!==Z.status)F=(b)=>{if(b.key===" ")b.preventDefault(),X();else if(b.key==="left"&&z)b.preventDefault(),z();else if(b.key==="x"&&Z.status==="running"&&Y)b.preventDefault(),Y()},J[3]=z,J[4]=X,J[5]=Y,J[6]=Z.status,J[7]=F;else F=J[7];let O=F,H,P,w,L,U,K,E,A,v,D,I,y,B,m,u,S;if(J[8]!==G||J[9]!==O||J[10]!==z||J[11]!==X||J[12]!==Y||J[13]!==Z.filesTouched.length||J[14]!==Z.sessionsReviewing||J[15]!==Z.status||J[16]!==Z.turns){let b=Z.turns.filter(sQ),p=b.slice(-nQ),c=b.length-p.length;w=C,E="column",A=0,v=!0,D=O,P=n,u="Memory consolidation";let _=Z.sessionsReviewing,j;if(J[33]!==Z.sessionsReviewing)j=Q0(Z.sessionsReviewing,"session"),J[33]=Z.sessionsReviewing,J[34]=j;else j=J[34];let T;if(J[35]!==Z.filesTouched.length)T=Z.filesTouched.length>0&&W(o,{children:[" ","· ",Z.filesTouched.length," ",Q0(Z.filesTouched.length,"file")," touched"]}),J[35]=Z.filesTouched.length,J[36]=T;else T=J[36];if(J[37]!==G||J[38]!==j||J[39]!==T||J[40]!==Z.sessionsReviewing)S=W(V,{dimColor:!0,children:[G," · reviewing ",_," ",j,T]}),J[37]=G,J[38]=j,J[39]=T,J[40]=Z.sessionsReviewing,J[41]=S;else S=J[41];if(L=X,U="background",J[42]!==z||J[43]!==Y||J[44]!==Z.status)K=(k)=>k.pending?W(V,{children:["Press ",k.keyName," again to exit"]}):W(Z0,{children:[z&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&Y&&f(l,{shortcut:"x",action:"stop"})]}),J[42]=z,J[43]=Y,J[44]=Z.status,J[45]=K;else K=J[45];H=C,I="column",y=1;let g;if(J[46]===Symbol.for("react.memo_cache_sentinel"))g=f(V,{bold:!0,children:"Status:"}),J[46]=g;else g=J[46];if(J[47]!==Z.status)B=W(V,{children:[g," ",Z.status==="running"?f(V,{color:"background",children:"running"}):Z.status==="completed"?f(V,{color:"success",children:Z.status}):f(V,{color:"error",children:Z.status})]}),J[47]=Z.status,J[48]=B;else B=J[48];m=p.length===0?f(V,{dimColor:!0,children:Z.status==="running"?"Starting…":"(no text output)"}):W(o,{children:[c>0&&W(V,{dimColor:!0,children:["(",c," earlier ",Q0(c,"turn"),")"]}),p.map(aQ)]}),J[8]=G,J[9]=O,J[10]=z,J[11]=X,J[12]=Y,J[13]=Z.filesTouched.length,J[14]=Z.sessionsReviewing,J[15]=Z.status,J[16]=Z.turns,J[17]=H,J[18]=P,J[19]=w,J[20]=L,J[21]=U,J[22]=K,J[23]=E,J[24]=A,J[25]=v,J[26]=D,J[27]=I,J[28]=y,J[29]=B,J[30]=m,J[31]=u,J[32]=S}else H=J[17],P=J[18],w=J[19],L=J[20],U=J[21],K=J[22],E=J[23],A=J[24],v=J[25],D=J[26],I=J[27],y=J[28],B=J[29],m=J[30],u=J[31],S=J[32];let x;if(J[49]!==H||J[50]!==I||J[51]!==y||J[52]!==B||J[53]!==m)x=W(H,{flexDirection:I,gap:y,children:[B,m]}),J[49]=H,J[50]=I,J[51]=y,J[52]=B,J[53]=m,J[54]=x;else x=J[54];let d;if(J[55]!==P||J[56]!==L||J[57]!==U||J[58]!==K||J[59]!==x||J[60]!==u||J[61]!==S)d=f(P,{title:u,subtitle:S,onCancel:L,color:U,inputGuide:K,children:x}),J[55]=P,J[56]=L,J[57]=U,J[58]=K,J[59]=x,J[60]=u,J[61]=S,J[62]=d;else d=J[62];let h;if(J[63]!==w||J[64]!==E||J[65]!==A||J[66]!==v||J[67]!==D||J[68]!==d)h=f(w,{flexDirection:E,tabIndex:A,autoFocus:v,onKeyDown:D,children:d}),J[63]=w,J[64]=E,J[65]=A,J[66]=v,J[67]=D,J[68]=d,J[69]=h;else h=J[69];return h}function aQ(Q,J){return W(C,{flexDirection:"column",children:[f(V,{wrap:"wrap",children:Q.text}),Q.toolUseCount>0&&W(V,{dimColor:!0,children:[" ","(",Q.toolUseCount," ",Q0(Q.toolUseCount,"tool"),")"]})]},J)}function sQ(Q){return Q.text!==""}var IZ,nQ=6;var vZ=a(()=>{i0();f0();g0();IJ();B0();I0();A0();$();IZ=J0(R0(),1)});function gZ(Q){let J=hZ.c(63),{teammate:Z,onDone:X,onKill:z,onBack:Y,onForeground:G}=Q,[q]=l0(),R;if(J[0]===Symbol.for("react.memo_cache_sentinel"))R=$0(r0()),J[0]=R;else R=J[0];let F=R,O=F0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),H;if(J[1]!==X)H={"confirm:yes":X},J[1]=X,J[2]=H;else H=J[2];let P;if(J[3]===Symbol.for("react.memo_cache_sentinel"))P={context:"Confirmation"},J[3]=P;else P=J[3];q0(H,P);let w;if(J[4]!==Y||J[5]!==X||J[6]!==G||J[7]!==z||J[8]!==Z.status)w=(M)=>{if(M.key===" ")M.preventDefault(),X();else if(M.key==="left"&&Y)M.preventDefault(),Y();else if(M.key==="x"&&Z.status==="running"&&z)M.preventDefault(),z();else if(M.key==="f"&&Z.status==="running"&&G)M.preventDefault(),G()},J[4]=Y,J[5]=X,J[6]=G,J[7]=z,J[8]=Z.status,J[9]=w;else w=J[9];let L=w,U;if(J[10]!==Z)U=s0(Z),J[10]=Z,J[11]=U;else U=J[11];let K=U,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,v;if(J[12]!==Z.prompt)v=y0(Z.prompt,300),J[12]=Z.prompt,J[13]=v;else v=J[13];let D=v,I;if(J[14]!==Z.identity.color)I=a0(Z.identity.color),J[14]=Z.identity.color,J[15]=I;else I=J[15];let y;if(J[16]!==I||J[17]!==Z.identity.agentName)y=W(V,{color:I,children:["@",Z.identity.agentName]}),J[16]=I,J[17]=Z.identity.agentName,J[18]=y;else y=J[18];let B;if(J[19]!==K)B=K&&W(V,{dimColor:!0,children:[" (",K,")"]}),J[19]=K,J[20]=B;else B=J[20];let m;if(J[21]!==y||J[22]!==B)m=W(V,{children:[y,B]}),J[21]=y,J[22]=B,J[23]=m;else m=J[23];let u=m,S;if(J[24]!==Z.status)S=Z.status!=="running"&&W(V,{color:Z.status==="completed"?"success":Z.status==="killed"?"warning":"error",children:[Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[24]=Z.status,J[25]=S;else S=J[25];let x;if(J[26]!==E)x=E!==void 0&&E>0&&W(o,{children:[" · ",x0(E)," tokens"]}),J[26]=E,J[27]=x;else x=J[27];let d;if(J[28]!==A)d=A!==void 0&&A>0&&W(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[28]=A,J[29]=d;else d=J[29];let h;if(J[30]!==O||J[31]!==x||J[32]!==d)h=W(V,{dimColor:!0,children:[O,x,d]}),J[30]=O,J[31]=x,J[32]=d,J[33]=h;else h=J[33];let b;if(J[34]!==S||J[35]!==h)b=W(V,{children:[S,h]}),J[34]=S,J[35]=h,J[36]=b;else b=J[36];let p=b,c;if(J[37]!==Y||J[38]!==G||J[39]!==z||J[40]!==Z.status)c=(M)=>M.pending?W(V,{children:["Press ",M.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"}),Z.status==="running"&&G&&f(l,{shortcut:"f",action:"foreground"})]}),J[37]=Y,J[38]=G,J[39]=z,J[40]=Z.status,J[41]=c;else c=J[41];let _;if(J[42]!==Z.progress||J[43]!==Z.status||J[44]!==q)_=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&W(C,{flexDirection:"column",children:[f(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((M,r)=>W(V,{dimColor:r<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[r===Z.progress.recentActivities.length-1?"› ":" ",k0(M,F,q)]},r))]}),J[42]=Z.progress,J[43]=Z.status,J[44]=q,J[45]=_;else _=J[45];let j;if(J[46]===Symbol.for("react.memo_cache_sentinel"))j=f(V,{bold:!0,dimColor:!0,children:"Prompt"}),J[46]=j;else j=J[46];let T;if(J[47]!==D)T=W(C,{flexDirection:"column",marginTop:1,children:[j,f(V,{wrap:"wrap",children:D})]}),J[47]=D,J[48]=T;else T=J[48];let g;if(J[49]!==Z.error||J[50]!==Z.status)g=Z.status==="failed"&&Z.error&&W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,color:"error",children:"Error"}),f(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[49]=Z.error,J[50]=Z.status,J[51]=g;else g=J[51];let k;if(J[52]!==X||J[53]!==p||J[54]!==c||J[55]!==_||J[56]!==T||J[57]!==g||J[58]!==u)k=W(n,{title:u,subtitle:p,onCancel:X,color:"background",inputGuide:c,children:[_,T,g]}),J[52]=X,J[53]=p,J[54]=c,J[55]=_,J[56]=T,J[57]=g,J[58]=u,J[59]=k;else k=J[59];let N;if(J[60]!==L||J[61]!==k)N=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:L,children:k}),J[60]=L,J[61]=k,J[62]=N;else N=J[62];return N}var hZ;var SZ=a(()=>{i0();f0();g0();UJ();FZ();h0();CZ();B0();I0();A0();wJ();MJ();$();hZ=J0(R0(),1)});function YX(Q,J){if(Q===u0)return"Review the plan in Claude Code on the web";if(!J||typeof J!=="object")return Q;if(Q===dZ&&"questions"in J){let Z=J.questions;if(Array.isArray(Z)&&Z[0]&&typeof Z[0]==="object"){let X="question"in Z[0]&&typeof Z[0].question==="string"&&Z[0].question?Z[0].question:("header"in Z[0])&&typeof Z[0].header==="string"?Z[0].header:null;if(X){let z=X.replace(/\s+/g," ").trim();return`Answer in browser: ${y0(z,50)}`}}}for(let Z of Object.values(J))if(typeof Z==="string"&&Z.trim()){let X=Z.replace(/\s+/g," ").trim();return`${Q} ${y0(X,60)}`}return Q}function qX(Q){let J=ZJ.c(70),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,G=Z.status==="running"||Z.status==="pending",q=Z.ultraplanPhase,R=G?q?zX[q]:"running":Z.status,F=F0(Z.startTime,G,1000,0,Z.endTime),O=0,H=0,P=null;for(let X0 of Z.log){if(X0.type!=="assistant")continue;for(let e of X0.message.content){if(e.type!=="tool_use")continue;if(H++,P=e,e.name===TZ||e.name===uZ)O++}}let w=1+O,L;if(J[0]!==P)L=P?YX(P.name,P.input):null,J[0]=P,J[1]=L;else L=J[1];let U;if(J[2]!==H||J[3]!==w||J[4]!==L)U={agentsWorking:w,toolCalls:H,lastToolCall:L},J[2]=H,J[3]=w,J[4]=L,J[5]=U;else U=J[5];let{agentsWorking:K,toolCalls:E,lastToolCall:A}=U,v;if(J[6]!==Z.sessionId)v=_0(Z.sessionId),J[6]=Z.sessionId,J[7]=v;else v=J[7];let D=v,I;if(J[8]!==z||J[9]!==X)I=z??(()=>X("Remote session details dismissed",{display:"system"})),J[8]=z,J[9]=X,J[10]=I;else I=J[10];let y=I,[B,m]=O0.useState(!1);if(B){let X0;if(J[11]===Symbol.for("react.memo_cache_sentinel"))X0=()=>m(!1),J[11]=X0;else X0=J[11];let e;if(J[12]===Symbol.for("react.memo_cache_sentinel"))e=f(V,{dimColor:!0,children:"This will terminate the Claude Code on the web session."}),J[12]=e;else e=J[12];let C0;if(J[13]===Symbol.for("react.memo_cache_sentinel"))C0={label:"Terminate session",value:"stop"},J[13]=C0;else C0=J[13];let i;if(J[14]===Symbol.for("react.memo_cache_sentinel"))i=[C0,{label:"Back",value:"back"}],J[14]=i;else i=J[14];let L0;if(J[15]!==y||J[16]!==Y)L0=f(n,{title:"Stop ultraplan?",onCancel:X0,color:"background",children:W(C,{flexDirection:"column",gap:1,children:[e,f(j0,{options:i,onChange:(c0)=>{if(c0==="stop")Y?.(),y();else m(!1)}})]})}),J[15]=y,J[16]=Y,J[17]=L0;else L0=J[17];return L0}let u=q==="plan_ready"?w0:z0,S;if(J[18]!==u)S=W(V,{color:"background",children:[u," "]}),J[18]=u,J[19]=S;else S=J[19];let x;if(J[20]===Symbol.for("react.memo_cache_sentinel"))x=f(V,{bold:!0,children:"ultraplan"}),J[20]=x;else x=J[20];let d;if(J[21]!==F||J[22]!==R)d=W(V,{dimColor:!0,children:[" · ",F," · ",R]}),J[21]=F,J[22]=R,J[23]=d;else d=J[23];let h;if(J[24]!==S||J[25]!==d)h=W(V,{children:[S,x,d]}),J[24]=S,J[25]=d,J[26]=h;else h=J[26];let b;if(J[27]!==q)b=q==="plan_ready"&&W(V,{color:"success",children:[t0.tick," "]}),J[27]=q,J[28]=b;else b=J[28];let p;if(J[29]!==K)p=Q0(K,"agent"),J[29]=K,J[30]=p;else p=J[30];let c=q?fX[q]:"working",_;if(J[31]!==E)_=Q0(E,"call"),J[31]=E,J[32]=_;else _=J[32];let j;if(J[33]!==K||J[34]!==b||J[35]!==p||J[36]!==c||J[37]!==_||J[38]!==E)j=W(V,{children:[b,K," ",p," ",c," · ",E," tool"," ",_]}),J[33]=K,J[34]=b,J[35]=p,J[36]=c,J[37]=_,J[38]=E,J[39]=j;else j=J[39];let T;if(J[40]!==A)T=A&&f(V,{dimColor:!0,children:A}),J[40]=A,J[41]=T;else T=J[41];let g;if(J[42]!==D)g=f(V,{dimColor:!0,children:D}),J[42]=D,J[43]=g;else g=J[43];let k;if(J[44]!==D||J[45]!==g)k=f(JJ,{url:D,children:g}),J[44]=D,J[45]=g,J[46]=k;else k=J[46];let N;if(J[47]===Symbol.for("react.memo_cache_sentinel"))N={label:"Review in Claude Code on the web",value:"open"},J[47]=N;else N=J[47];let M;if(J[48]!==Y||J[49]!==G)M=Y&&G?[{label:"Stop ultraplan",value:"stop"}]:[],J[48]=Y,J[49]=G,J[50]=M;else M=J[50];let r;if(J[51]===Symbol.for("react.memo_cache_sentinel"))r={label:"Back",value:"back"},J[51]=r;else r=J[51];let s;if(J[52]!==M)s=[N,...M,r],J[52]=M,J[53]=s;else s=J[53];let Y0;if(J[54]!==y||J[55]!==X||J[56]!==D)Y0=(X0)=>{switch(X0){case"open":{DJ(D),X();return}case"stop":{m(!0);return}case"back":{y();return}}},J[54]=y,J[55]=X,J[56]=D,J[57]=Y0;else Y0=J[57];let V0;if(J[58]!==s||J[59]!==Y0)V0=f(j0,{options:s,onChange:Y0}),J[58]=s,J[59]=Y0,J[60]=V0;else V0=J[60];let N0;if(J[61]!==j||J[62]!==T||J[63]!==k||J[64]!==V0)N0=W(C,{flexDirection:"column",gap:1,children:[j,T,k,V0]}),J[61]=j,J[62]=T,J[63]=k,J[64]=V0,J[65]=N0;else N0=J[65];let K0;if(J[66]!==y||J[67]!==h||J[68]!==N0)K0=f(n,{title:h,onCancel:y,color:"background",children:N0}),J[66]=y,J[67]=h,J[68]=N0,J[69]=K0;else K0=J[69];return K0}function GX(Q){let J=ZJ.c(15),{stage:Z,completed:X,hasProgress:z}=Q,Y;if(J[0]!==Z)Y=Z?jZ.indexOf(Z):-1,J[0]=Z,J[1]=Y;else Y=J[1];let G=Y,q=!X&&!z,R;if(J[2]!==q)R=q?f(V,{color:"background",children:"Setup"}):f(V,{dimColor:!0,children:"Setup"}),J[2]=q,J[3]=R;else R=J[3];let F;if(J[4]===Symbol.for("react.memo_cache_sentinel"))F=f(V,{dimColor:!0,children:" → "}),J[4]=F;else F=J[4];let O;if(J[5]!==X||J[6]!==G||J[7]!==q)O=jZ.map((w,L)=>{let U=!X&&!q&&L===G;return W(O0.default.Fragment,{children:[L>0&&f(V,{dimColor:!0,children:" → "}),U?f(V,{color:"background",children:_Z[w]}):f(V,{dimColor:!0,children:_Z[w]})]},w)}),J[5]=X,J[6]=G,J[7]=q,J[8]=O;else O=J[8];let H;if(J[9]!==X)H=X&&f(V,{color:"success",children:" ✓"}),J[9]=X,J[10]=H;else H=J[10];let P;if(J[11]!==R||J[12]!==O||J[13]!==H)P=W(V,{children:[R,F,O,H]}),J[11]=R,J[12]=O,J[13]=H,J[14]=P;else P=J[14];return P}function VX(Q){let J=Q.reviewProgress;if(!J)return Q.status==="completed"?"done":"setting up";let Z=J.bugsVerified,X=J.bugsRefuted??0;if(Q.status==="completed"){let z=[`${Z} ${Q0(Z,"finding")}`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return bJ(J.stage,J.bugsFound,Z,X)}function NX(Q){let J=ZJ.c(56),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,G=Z.status==="completed",q=Z.status==="running"||Z.status==="pending",[R,F]=O0.useState(!1),O=F0(Z.startTime,q,1000,0,Z.endTime),H;if(J[0]!==X)H=()=>X("Remote session details dismissed",{display:"system"}),J[0]=X,J[1]=H;else H=J[1];let P=H,w=z??P,L;if(J[2]!==Z.sessionId)L=_0(Z.sessionId),J[2]=Z.sessionId,J[3]=L;else L=J[3];let U=L,K=G?"ready":q?"running":Z.status;if(R){let k;if(J[4]===Symbol.for("react.memo_cache_sentinel"))k=()=>F(!1),J[4]=k;else k=J[4];let N;if(J[5]===Symbol.for("react.memo_cache_sentinel"))N=f(V,{dimColor:!0,children:"This archives the remote session and stops local tracking. The review will not complete and any findings so far are discarded."}),J[5]=N;else N=J[5];let M;if(J[6]===Symbol.for("react.memo_cache_sentinel"))M={label:"Stop ultrareview",value:"stop"},J[6]=M;else M=J[6];let r;if(J[7]===Symbol.for("react.memo_cache_sentinel"))r=[M,{label:"Back",value:"back"}],J[7]=r;else r=J[7];let s;if(J[8]!==w||J[9]!==Y)s=f(n,{title:"Stop ultrareview?",onCancel:k,color:"background",children:W(C,{flexDirection:"column",gap:1,children:[N,f(j0,{options:r,onChange:(Y0)=>{if(Y0==="stop")Y?.(),w();else F(!1)}})]})}),J[8]=w,J[9]=Y,J[10]=s;else s=J[10];return s}let E;if(J[11]!==G||J[12]!==Y||J[13]!==q)E=G?[{label:"Open in Claude Code on the web",value:"open"},{label:"Dismiss",value:"dismiss"}]:[{label:"Open in Claude Code on the web",value:"open"},...Y&&q?[{label:"Stop ultrareview",value:"stop"}]:[],{label:"Back",value:"back"}],J[11]=G,J[12]=Y,J[13]=q,J[14]=E;else E=J[14];let A=E,v;if(J[15]!==w||J[16]!==P||J[17]!==X||J[18]!==U)v=(k)=>{J:switch(k){case"open":{DJ(U),X();break J}case"stop":{F(!0);break J}case"back":{w();break J}case"dismiss":P()}},J[15]=w,J[16]=P,J[17]=X,J[18]=U,J[19]=v;else v=J[19];let D=v,I=G?w0:z0,y;if(J[20]!==I)y=W(V,{color:"background",children:[I," "]}),J[20]=I,J[21]=y;else y=J[21];let B;if(J[22]===Symbol.for("react.memo_cache_sentinel"))B=f(V,{bold:!0,children:"ultrareview"}),J[22]=B;else B=J[22];let m;if(J[23]!==O||J[24]!==K)m=W(V,{dimColor:!0,children:[" · ",O," · ",K]}),J[23]=O,J[24]=K,J[25]=m;else m=J[25];let u;if(J[26]!==y||J[27]!==m)u=W(V,{children:[y,B,m]}),J[26]=y,J[27]=m,J[28]=u;else u=J[28];let S=Z.reviewProgress?.stage,x=!!Z.reviewProgress,d;if(J[29]!==G||J[30]!==S||J[31]!==x)d=f(GX,{stage:S,completed:G,hasProgress:x}),J[29]=G,J[30]=S,J[31]=x,J[32]=d;else d=J[32];let h;if(J[33]!==Z)h=VX(Z),J[33]=Z,J[34]=h;else h=J[34];let b;if(J[35]!==h)b=f(V,{children:h}),J[35]=h,J[36]=b;else b=J[36];let p;if(J[37]!==U)p=f(V,{dimColor:!0,children:U}),J[37]=U,J[38]=p;else p=J[38];let c;if(J[39]!==U||J[40]!==p)c=f(JJ,{url:U,children:p}),J[39]=U,J[40]=p,J[41]=c;else c=J[41];let _;if(J[42]!==b||J[43]!==c)_=W(C,{flexDirection:"column",children:[b,c]}),J[42]=b,J[43]=c,J[44]=_;else _=J[44];let j;if(J[45]!==D||J[46]!==A)j=f(j0,{options:A,onChange:D}),J[45]=D,J[46]=A,J[47]=j;else j=J[47];let T;if(J[48]!==d||J[49]!==_||J[50]!==j)T=W(C,{flexDirection:"column",gap:1,children:[d,_,j]}),J[48]=d,J[49]=_,J[50]=j,J[51]=T;else T=J[51];let g;if(J[52]!==w||J[53]!==T||J[54]!==u)g=f(n,{title:u,onCancel:w,color:"background",inputGuide:WX,children:T}),J[52]=w,J[53]=T,J[54]=u,J[55]=g;else g=J[55];return g}function WX(Q){return Q.pending?W(V,{children:["Press ",Q.keyName," again to exit"]}):W(Z0,{children:[f(l,{shortcut:"Enter",action:"select"}),f(l,{shortcut:"Esc",action:"go back"})]})}function xZ({session:Q,toolUseContext:J,onDone:Z,onBack:X,onKill:z}){let[Y,G]=O0.useState(!1),[q,R]=O0.useState(null),F=O0.useMemo(()=>{if(Q.isUltraplan||Q.isRemoteReview)return[];return lZ(kZ(Q.log)).filter((U)=>U.type!=="progress").slice(-3)},[Q]);if(Q.isUltraplan)return f(qX,{session:Q,onDone:Z,onBack:X,onKill:z});if(Q.isRemoteReview)return f(NX,{session:Q,onDone:Z,onBack:X,onKill:z});let O=()=>Z("Remote session details dismissed",{display:"system"}),H=(U)=>{if(U.key===" ")U.preventDefault(),Z("Remote session details dismissed",{display:"system"});else if(U.key==="left"&&X)U.preventDefault(),X();else if(U.key==="t"&&!Y)U.preventDefault(),P();else if(U.key==="return")U.preventDefault(),O()};async function P(){G(!0),R(null);try{await pZ(Q.sessionId)}catch(U){R(v0(U))}finally{G(!1)}}let w=y0(Q.title,50),L=Q.status==="pending"?"starting":Q.status;return f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:H,children:W(n,{title:"Remote session details",onCancel:O,color:"background",inputGuide:(U)=>U.pending?W(V,{children:["Press ",U.keyName," again to exit"]}):W(Z0,{children:[X&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),!Y&&f(l,{shortcut:"t",action:"teleport"})]}),children:[W(C,{flexDirection:"column",children:[W(V,{children:[f(V,{bold:!0,children:"Status"}),":"," ",L==="running"||L==="starting"?f(V,{color:"background",children:L}):L==="completed"?f(V,{color:"success",children:L}):f(V,{color:"error",children:L})]}),W(V,{children:[f(V,{bold:!0,children:"Runtime"}),":"," ",e0((Q.endTime??Date.now())-Q.startTime)]}),W(V,{wrap:"truncate-end",children:[f(V,{bold:!0,children:"Title"}),": ",w]}),W(V,{children:[f(V,{bold:!0,children:"Progress"}),":"," ",f(S0,{session:Q})]}),W(V,{children:[f(V,{bold:!0,children:"Session URL"}),":"," ",f(JJ,{url:_0(Q.sessionId),children:f(V,{dimColor:!0,children:_0(Q.sessionId)})})]})]}),Q.log.length>0&&W(C,{flexDirection:"column",marginTop:1,children:[W(V,{children:[f(V,{bold:!0,children:"Recent messages"}),":"]}),f(C,{flexDirection:"column",height:10,overflowY:"hidden",children:F.map((U,K)=>f(mZ,{message:U,lookups:iZ,addMargin:K>0,tools:J.options.tools,commands:J.options.commands,verbose:J.options.verbose,inProgressToolUseIDs:new Set,progressMessagesForMessage:[],shouldAnimate:!1,shouldShowDot:!1,style:"condensed",isTranscriptMode:!1,isStatic:!0},K))}),f(C,{marginTop:1,children:W(V,{dimColor:!0,italic:!0,children:["Showing last ",F.length," of ",Q.log.length," ","messages"]})})]}),q&&f(C,{marginTop:1,children:W(V,{color:"error",children:["Teleport failed: ",q]})}),Y&&f(V,{color:"background",children:"Teleporting to session…"})]})})}var ZJ,O0,zX,fX,jZ,_Z;var rZ=a(()=>{cZ();m0();i0();f0();PJ();eQ();tQ();pJ();JX();aJ();h0();XX();LZ();IJ();WJ();QX();B0();I0();A0();ZX();AJ();$();ZJ=J0(R0(),1),O0=J0(o0(),1);zX={needs_input:"input required",plan_ready:"ready"},fX={needs_input:"waiting",plan_ready:"done"};jZ=["finding","verifying","synthesizing"],_Z={finding:"Find",verifying:"Verify",synthesizing:"Dedupe"}});async function sZ(Q){let J=aZ(Q.id);try{let Z=await $Z(J,HX);return{content:Z.content,bytesTotal:Z.bytesTotal}}catch{return{content:"",bytesTotal:0}}}function eZ(Q){let J=vJ.c(57),{shell:Z,onDone:X,onKillShell:z,onBack:Y}=Q,{columns:G}=QJ(),q;if(J[0]!==Z)q=()=>sZ(Z),J[0]=Z,J[1]=q;else q=J[1];let[R,F]=G0.useState(q),O=G0.useDeferredValue(R),H;if(J[2]!==Z)H=()=>{if(Z.status!=="running")return;let r=setInterval(OX,1000,F,Z);return()=>clearInterval(r)},J[2]=Z,J[3]=H;else H=J[3];let P;if(J[4]!==Z.id||J[5]!==Z.status)P=[Z.id,Z.status],J[4]=Z.id,J[5]=Z.status,J[6]=P;else P=J[6];G0.useEffect(H,P);let w;if(J[7]!==X)w=()=>X("Shell details dismissed",{display:"system"}),J[7]=X,J[8]=w;else w=J[8];let L=w,U;if(J[9]!==L)U={"confirm:yes":L},J[9]=L,J[10]=U;else U=J[10];let K;if(J[11]===Symbol.for("react.memo_cache_sentinel"))K={context:"Confirmation"},J[11]=K;else K=J[11];q0(U,K);let E;if(J[12]!==Y||J[13]!==X||J[14]!==z||J[15]!==Z.status)E=(r)=>{if(r.key===" ")r.preventDefault(),X("Shell details dismissed",{display:"system"});else if(r.key==="left"&&Y)r.preventDefault(),Y();else if(r.key==="x"&&Z.status==="running"&&z)r.preventDefault(),z()},J[12]=Y,J[13]=X,J[14]=z,J[15]=Z.status,J[16]=E;else E=J[16];let A=E,v=Z.kind==="monitor",D;if(J[17]!==Z.command)D=y0(Z.command,280),J[17]=Z.command,J[18]=D;else D=J[18];let I=D,y=v?"Monitor details":"Shell details",B;if(J[19]!==Y||J[20]!==z||J[21]!==Z.status)B=(r)=>r.pending?W(V,{children:["Press ",r.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"})]}),J[19]=Y,J[20]=z,J[21]=Z.status,J[22]=B;else B=J[22];let m;if(J[23]===Symbol.for("react.memo_cache_sentinel"))m=f(V,{bold:!0,children:"Status:"}),J[23]=m;else m=J[23];let u;if(J[24]!==Z.result||J[25]!==Z.status)u=W(V,{children:[m," ",Z.status==="running"?W(V,{color:"background",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):Z.status==="completed"?W(V,{color:"success",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):W(V,{color:"error",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]})]}),J[24]=Z.result,J[25]=Z.status,J[26]=u;else u=J[26];let S;if(J[27]===Symbol.for("react.memo_cache_sentinel"))S=f(V,{bold:!0,children:"Runtime:"}),J[27]=S;else S=J[27];let x;if(J[28]!==Z.endTime)x=Z.endTime??Date.now(),J[28]=Z.endTime,J[29]=x;else x=J[29];let d=x-Z.startTime,h;if(J[30]!==d)h=e0(d),J[30]=d,J[31]=h;else h=J[31];let b;if(J[32]!==h)b=W(V,{children:[S," ",h]}),J[32]=h,J[33]=b;else b=J[33];let p=v?"Script:":"Command:",c;if(J[34]!==p)c=f(V,{bold:!0,children:p}),J[34]=p,J[35]=c;else c=J[35];let _;if(J[36]!==I||J[37]!==c)_=W(V,{wrap:"wrap",children:[c," ",I]}),J[36]=I,J[37]=c,J[38]=_;else _=J[38];let j;if(J[39]!==u||J[40]!==b||J[41]!==_)j=W(C,{flexDirection:"column",children:[u,b,_]}),J[39]=u,J[40]=b,J[41]=_,J[42]=j;else j=J[42];let T;if(J[43]===Symbol.for("react.memo_cache_sentinel"))T=f(V,{bold:!0,children:"Output:"}),J[43]=T;else T=J[43];let g;if(J[44]===Symbol.for("react.memo_cache_sentinel"))g=f(V,{dimColor:!0,children:"Loading output…"}),J[44]=g;else g=J[44];let k;if(J[45]!==G||J[46]!==O)k=W(C,{flexDirection:"column",children:[T,f(G0.Suspense,{fallback:g,children:f(PX,{outputPromise:O,columns:G})})]}),J[45]=G,J[46]=O,J[47]=k;else k=J[47];let N;if(J[48]!==L||J[49]!==B||J[50]!==j||J[51]!==k||J[52]!==y)N=W(n,{title:y,onCancel:L,color:"background",inputGuide:B,children:[j,k]}),J[48]=L,J[49]=B,J[50]=j,J[51]=k,J[52]=y,J[53]=N;else N=J[53];let M;if(J[54]!==A||J[55]!==N)M=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:A,children:N}),J[54]=A,J[55]=N,J[56]=M;else M=J[56];return M}function OX(Q,J){return Q(sZ(J))}function PX(Q){let J=vJ.c(19),{outputPromise:Z,columns:X}=Q,{content:z,bytesTotal:Y}=G0.use(Z);if(!z){let U;if(J[0]===Symbol.for("react.memo_cache_sentinel"))U=f(V,{dimColor:!0,children:"No output available"}),J[0]=U;else U=J[0];return U}let G,q;if(J[1]!==Y||J[2]!==z){let U=[],K=z.length;for(let E=0;E<10&&K>0;E++){let A=z.lastIndexOf(`
|
|
17
|
+
`,K-1);U.push(A+1),K=A}U.reverse(),G=Y>z.length,q=[];for(let E=0;E<U.length;E++){let A=U[E],v=E<U.length-1?U[E+1]-1:z.length,D=z.slice(A,v);if(D)q.push(D)}J[1]=Y,J[2]=z,J[3]=G,J[4]=q}else G=J[3],q=J[4];let R=X-6,F;if(J[5]!==q)F=q.map(LX),J[5]=q,J[6]=F;else F=J[6];let O;if(J[7]!==R||J[8]!==F)O=f(C,{borderStyle:"round",paddingX:1,flexDirection:"column",height:12,maxWidth:R,children:F}),J[7]=R,J[8]=F,J[9]=O;else O=J[9];let H=`Showing ${q.length} lines`,P;if(J[10]!==Y||J[11]!==G)P=G?` of ${oZ(Y)}`:"",J[10]=Y,J[11]=G,J[12]=P;else P=J[12];let w;if(J[13]!==H||J[14]!==P)w=W(V,{dimColor:!0,italic:!0,children:[H,P]}),J[13]=H,J[14]=P,J[15]=w;else w=J[15];let L;if(J[16]!==O||J[17]!==w)L=W(o,{children:[O,w]}),J[16]=O,J[17]=w,J[18]=L;else L=J[18];return L}function LX(Q,J){return f(V,{wrap:"truncate-end",children:Q},J)}var vJ,G0,HX=8192;var tZ=a(()=>{nZ();f0();g0();h0();RX();FX();B0();I0();A0();$();vJ=J0(R0(),1),G0=J0(o0(),1)});var JQ={};$J(JQ,{default:()=>wX});var UX=()=>null,wX;var ZQ=a(()=>{wX=UX});function jX(Q,J){return Object.values(Q??{}).filter(fJ).filter((X)=>!(X.type==="local_agent"&&X.id===J))}function Sf({onDone:Q,toolUseContext:J,initialDetailTaskId:Z}){let X=zJ((N)=>N.tasks),z=zJ((N)=>N.foregroundedTaskId),Y=zJ((N)=>N.expandedView)==="teammates",G=RQ(),q=GQ("chat:killAgents","Chat","ctrl+x ctrl+k"),R=X,F=P0.useRef(!1),[O,H]=P0.useState(()=>{if(Z)return F.current=!0,{mode:"detail",itemId:Z};let N=jX(R,z);if(N.length===1)return F.current=!0,{mode:"detail",itemId:N[0].id};return{mode:"list"}}),[P,w]=P0.useState(0);OQ("background-tasks-dialog");let{bashTasks:L,remoteSessions:U,agentTasks:K,teammateTasks:E,workflowTasks:A,mcpMonitors:v,dreamTasks:D,allSelectableItems:I}=P0.useMemo(()=>{let r=Object.values(R??{}).filter(fJ).map(_X).sort((i,L0)=>{let c0=i.status,jJ=L0.status;if(c0==="running"&&jJ!=="running")return-1;if(c0!=="running"&&jJ==="running")return 1;let PQ="task"in i?i.task.startTime:0;return("task"in L0?L0.task.startTime:0)-PQ}),s=r.filter((i)=>i.type==="local_bash"),Y0=r.filter((i)=>i.type==="remote_agent"),V0=r.filter((i)=>i.type==="local_agent"&&i.id!==z),N0=r.filter((i)=>i.type==="local_workflow"),K0=r.filter((i)=>i.type==="monitor_mcp"),X0=r.filter((i)=>i.type==="dream"),e=Y?[]:r.filter((i)=>i.type==="in_process_teammate"),C0=e.length>0?[{id:"__leader__",type:"leader",label:`@${hJ}`,status:"running"}]:[];return{bashTasks:s,remoteSessions:Y0,agentTasks:V0,workflowTasks:N0,mcpMonitors:K0,dreamTasks:X0,teammateTasks:[...C0,...e],allSelectableItems:[...C0,...e,...s,...K0,...Y0,...V0,...N0,...X0]}},[R,z,Y]),y=I[P]??null;q0({"confirm:previous":()=>w((N)=>Math.max(0,N-1)),"confirm:next":()=>w((N)=>Math.min(I.length-1,N+1)),"confirm:yes":()=>{let N=I[P];if(N)if(N.type==="leader")VJ(G),Q("Viewing leader",{display:"system"});else H({mode:"detail",itemId:N.id})}},{context:"Confirmation",isActive:O.mode==="list"});let B=(N)=>{if(O.mode!=="list")return;if(N.key==="left"){N.preventDefault(),Q("Background tasks dialog dismissed",{display:"system"});return}let M=I[P];if(!M)return;if(N.key==="x"){if(N.preventDefault(),M.type==="local_bash"&&M.status==="running")m(M.id);else if(M.type==="local_agent"&&M.status==="running")u(M.id);else if(M.type==="in_process_teammate"&&M.status==="running")S(M.id);else if(M.type==="local_workflow"&&M.status==="running"&&XJ)XJ(M.id,G);else if(M.type==="monitor_mcp"&&M.status==="running"&&YJ)YJ(M.id,G);else if(M.type==="dream"&&M.status==="running")x(M.id);else if(M.type==="remote_agent"&&M.status==="running")if(M.task.isUltraplan)LJ(M.id,M.task.sessionId,G);else d(M.id)}if(N.key==="f"){if(M.type==="in_process_teammate"&&M.status==="running")N.preventDefault(),GJ(M.id,G),Q("Viewing teammate",{display:"system"});else if(M.type==="leader")N.preventDefault(),VJ(G),Q("Viewing leader",{display:"system"})}};async function m(N){await VQ.kill(N,G)}async function u(N){await HQ.kill(N,G)}async function S(N){await NQ.kill(N,G)}async function x(N){await FQ.kill(N,G)}async function d(N){await p0.kill(N,G)}let h=WQ(Q);P0.useEffect(()=>{if(O.mode!=="list"){let M=(R??{})[O.itemId];if(!M||M.type!=="local_workflow"&&!fJ(M))if(F.current)h("Background tasks dialog dismissed",{display:"system"});else H({mode:"list"})}let N=I.length;if(P>=N&&N>0)w(N-1)},[O,R,P,I,h]);let b=()=>{if(F.current&&I.length<=1)Q("Background tasks dialog dismissed",{display:"system"});else F.current=!1,H({mode:"list"})};if(O.mode!=="list"&&R){let N=R[O.itemId];if(!N)return null;switch(N.type){case"local_bash":return f(eZ,{shell:N,onDone:Q,onKillShell:()=>void m(N.id),onBack:b},`shell-${N.id}`);case"local_agent":return f(OZ,{agent:N,onDone:Q,onKillAgent:()=>void u(N.id),onBack:b},`agent-${N.id}`);case"remote_agent":return f(xZ,{session:N,onDone:Q,toolUseContext:J,onBack:b,onKill:N.status!=="running"?void 0:N.isUltraplan?()=>void LJ(N.id,N.sessionId,G):()=>void d(N.id)},`session-${N.id}`);case"in_process_teammate":return f(gZ,{teammate:N,onDone:Q,onKill:N.status==="running"?()=>void S(N.id):void 0,onBack:b,onForeground:N.status==="running"?()=>{GJ(N.id,G),Q("Viewing teammate",{display:"system"})}:void 0},`teammate-${N.id}`);case"local_workflow":if(!QQ)return null;return f(QQ,{workflow:N,onDone:Q,onKill:N.status==="running"&&XJ?()=>XJ(N.id,G):void 0,onSkipAgent:N.status==="running"&&XQ?(M)=>XQ(N.id,M,G):void 0,onRetryAgent:N.status==="running"&&YQ?(M)=>YQ(N.id,M,G):void 0,onBack:b},`workflow-${N.id}`);case"monitor_mcp":if(!zQ)return null;return f(zQ,{task:N,onKill:N.status==="running"&&YJ?()=>YJ(N.id,G):void 0,onBack:b},`monitor-mcp-${N.id}`);case"dream":return f(DZ,{task:N,onDone:()=>Q("Background tasks dialog dismissed",{display:"system"}),onBack:b,onKill:N.status==="running"?()=>void x(N.id):void 0},`dream-${N.id}`)}}let p=M0(L,(N)=>N.status==="running"),c=M0(U,(N)=>N.status==="running"||N.status==="pending")+M0(K,(N)=>N.status==="running"),_=M0(E,(N)=>N.status==="running"),j=fQ([..._>0?[W(V,{children:[_," ",_!==1?"agents":"agent"]},"teammates")]:[],...p>0?[W(V,{children:[p," ",p!==1?"active shells":"active shell"]},"shells")]:[],...c>0?[W(V,{children:[c," ",c!==1?"active agents":"active agent"]},"agents")]:[]],(N)=>f(V,{children:" · "},`separator-${N}`)),T=[f(l,{shortcut:"↑/↓",action:"select"},"upDown"),f(l,{shortcut:"Enter",action:"view"},"enter"),...y?.type==="in_process_teammate"&&y.status==="running"?[f(l,{shortcut:"f",action:"foreground"},"foreground")]:[],...(y?.type==="local_bash"||y?.type==="local_agent"||y?.type==="in_process_teammate"||y?.type==="local_workflow"||y?.type==="monitor_mcp"||y?.type==="dream"||y?.type==="remote_agent")&&y.status==="running"?[f(l,{shortcut:"x",action:"stop"},"kill")]:[],...K.some((N)=>N.status==="running")?[f(l,{shortcut:q,action:"stop all agents"},"kill-all")]:[],f(l,{shortcut:"←/Esc",action:"close"},"esc")],g=()=>Q("Background tasks dialog dismissed",{display:"system"});function k(N){if(N.pending)return W(V,{children:["Press ",N.keyName," again to exit"]});return f(Z0,{children:T})}return f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:B,children:f(n,{title:"Background tasks",subtitle:f(o,{children:j}),onCancel:g,color:"background",inputGuide:k,children:I.length===0?f(V,{dimColor:!0,children:"No tasks currently running"}):W(C,{flexDirection:"column",children:[E.length>0&&W(C,{flexDirection:"column",children:[(L.length>0||U.length>0||K.length>0)&&W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Agents"]})," (",M0(E,(N)=>N.type!=="leader"),")"]}),f(C,{flexDirection:"column",children:f(cX,{teammateTasks:E,currentSelectionId:y?.id})})]}),L.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0?1:0,children:[(E.length>0||U.length>0||K.length>0)&&W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Shells"]})," (",L.length,")"]}),f(C,{flexDirection:"column",children:L.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),v.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Monitors"]})," (",v.length,")"]}),f(C,{flexDirection:"column",children:v.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),U.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Remote agents"]})," (",U.length,")"]}),f(C,{flexDirection:"column",children:U.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),K.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Local agents"]})," (",K.length,")"]}),f(C,{flexDirection:"column",children:K.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),A.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0||K.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Workflows"]})," (",A.length,")"]}),f(C,{flexDirection:"column",children:A.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),D.length>0&&f(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0||K.length>0||A.length>0?1:0,children:f(C,{flexDirection:"column",children:D.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})})]})})})}function _X(Q){switch(Q.type){case"local_bash":return{id:Q.id,type:"local_bash",label:Q.kind==="monitor"?Q.description:Q.command,status:Q.status,task:Q};case"remote_agent":return{id:Q.id,type:"remote_agent",label:Q.title,status:Q.status,task:Q};case"local_agent":return{id:Q.id,type:"local_agent",label:Q.description,status:Q.status,task:Q};case"in_process_teammate":return{id:Q.id,type:"in_process_teammate",label:`@${Q.identity.agentName}`,status:Q.status,task:Q};case"local_workflow":return{id:Q.id,type:"local_workflow",label:Q.summary??Q.description,status:Q.status,task:Q};case"monitor_mcp":return{id:Q.id,type:"monitor_mcp",label:Q.description,status:Q.status,task:Q};case"dream":return{id:Q.id,type:"dream",label:Q.description,status:Q.status,task:Q}}}function E0(Q){let J=gJ.c(14),{item:Z,isSelected:X}=Q,{columns:z}=QJ(),Y=Math.max(30,z-26),G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=qQ(),J[0]=G;else G=J[0];let q=G,R=q&&X,F=X?t0.pointer+" ":" ",O;if(J[1]!==R||J[2]!==F)O=f(V,{dimColor:R,children:F}),J[1]=R,J[2]=F,J[3]=O;else O=J[3];let H=X&&!q?"suggestion":void 0,P;if(J[4]!==Z.task||J[5]!==Z.type||J[6]!==Y)P=Z.type==="leader"?W(V,{children:["@",hJ]}):f(AZ,{task:Z.task,maxActivityWidth:Y}),J[4]=Z.task,J[5]=Z.type,J[6]=Y,J[7]=P;else P=J[7];let w;if(J[8]!==H||J[9]!==P)w=f(V,{color:H,children:P}),J[8]=H,J[9]=P,J[10]=w;else w=J[10];let L;if(J[11]!==O||J[12]!==w)L=W(C,{flexDirection:"row",children:[O,w]}),J[11]=O,J[12]=w,J[13]=L;else L=J[13];return L}function cX(Q){let J=gJ.c(3),{teammateTasks:Z,currentSelectionId:X}=Q,z;if(J[0]!==X||J[1]!==Z){let Y=Z.filter(uX),G=Z.filter(TX),q=new Map;for(let F of G){let O=F.task.identity.teamName,H=q.get(O);if(H)H.push(F);else q.set(O,[F])}let R=[...q.entries()];z=f(o,{children:R.map((F)=>{let[O,H]=F,P=H.length+Y.length;return W(C,{flexDirection:"column",children:[W(V,{dimColor:!0,children:[" ","Team: ",O," (",P,")"]}),Y.map((w)=>f(E0,{item:w,isSelected:w.id===X},`${w.id}-${O}`)),H.map((w)=>f(E0,{item:w,isSelected:w.id===X},w.id))]},O)})}),J[0]=X,J[1]=Z,J[2]=z}else z=J[2];return z}function TX(Q){return Q.type==="in_process_teammate"}function uX(Q){return Q.type==="leader"}var gJ,P0,QQ=null,SJ=null,XJ,XQ,YQ,SX,YJ,zQ;var dX=a(()=>{cZ();MX();bX();nZ();AX();TJ();vX();CX();hX();KX();PJ();BX();CJ();yX();qZ();gX();f0();g0();EX();CJ();B0();I0();A0();PZ();BZ();vZ();SZ();rZ();tZ();$();gJ=J0(R0(),1),P0=J0(o0(),1),XJ=SJ?.killWorkflowTask??null,XQ=SJ?.skipWorkflowAgent??null,YQ=SJ?.retryWorkflowAgent??null,SX=(DX(),FJ(IX)),YJ=SX?.killMonitorMcp??null,zQ=(ZQ(),FJ(JQ)).MonitorMcpDetailDialog});
|
|
18
|
+
export{GJ as Ue,VJ as Ve,xX as We,TJ as Xe,LJ as Ye,pQ as Ze,qZ as _e,Sf as $e,dX as af};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Sc as k,Tc as P}from"./cli-1.1.6-hn0crvf2.mjs";import{$c as f,Zc as O,_c as A}from"./cli-1.1.6-wvfzbx8v.mjs";import{b9 as E,m8 as U,q8 as V,v8 as j}from"./cli-1.1.6-w4nw5yvg.mjs";import{Pfa as h,Rga as K,Vea as N,Yea as J,Zga as b,dfa as Y,hca as X,ica as H,oca as x,rfa as G,yfa as I}from"./cli-1.1.6-qem2tnkw.mjs";import{Zka as F,fla as L}from"./cli-1.1.6-cam8a83k.mjs";import{_qa as T,ooa as W}from"./cli-1.1.6-dsx3y9mh.mjs";import{Jsa as y}from"./cli-1.1.6-xc6fegry.mjs";function d(){Z=!0}function m(){if(!Z)return!1;return Z=!1,!0}function l(q){return(B)=>({...B,...typeof q.permission_mode==="string"?{toolPermissionContext:{...B.toolPermissionContext,mode:H(q.permission_mode)}}:{},...typeof q.is_ultraplan_mode==="boolean"?{isUltraplanMode:q.is_ultraplan_mode}:{}})}function S({newState:q,oldState:B}){let _=m(),$=B.toolPermissionContext.mode,Q=q.toolPermissionContext.mode;if($!==Q){let z=X($),D=X(Q);if(z!==D){let R=D==="plan"&&q.isUltraplanMode&&!B.isUltraplanMode?!0:null;O({permission_mode:D,is_ultraplan_mode:R})}A(Q)}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel===null){if(W(null),!_)Y((z)=>({...z,activeModelForProject:void 0,activeModelForProjectProfileId:void 0}))}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel!==null){if(W(q.mainLoopModel),!_){let z=I()?.id;Y((D)=>({...D,activeModelForProject:q.mainLoopModel??void 0,activeModelForProjectProfileId:z}))}}if(q.expandedView!==B.expandedView){let z=q.expandedView==="tasks",D=q.expandedView==="teammates";if(J().showExpandedTodos!==z||J().showSpinnerTree!==D)N((R)=>({...R,showExpandedTodos:z,showSpinnerTree:D}))}if(q.verbose!==B.verbose&&J().verbose!==q.verbose){let z=q.verbose;N((D)=>({...D,verbose:z}))}if(q.collapseSubagentProgress!==B.collapseSubagentProgress&&J().collapseSubagentProgress!==q.collapseSubagentProgress){let z=q.collapseSubagentProgress;N((D)=>({...D,collapseSubagentProgress:z}))}if(q.settings!==B.settings)try{if(U(),V(),j(),q.settings.env!==B.settings.env)k()}catch(z){K(F(z))}}var Z=!1;var u=y(()=>{T();E();G();L();b();P();h();x();f()});
|
|
2
|
+
export{d as Nc,l as Oc,S as Pc,u as Qc};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{bV as W,cV as P}from"./cli-1.1.6-ehy04hr0.mjs";import{Gba as A,Iba as y,Rga as O,T$ as _,W_ as K,X_ as I,Zga as F,cfa as B,dfa as G,rfa as S,v$ as M,w$ as R}from"./cli-1.1.6-qem2tnkw.mjs";import{Jia as D,Lia as x}from"./cli-1.1.6-a1n79s5x.mjs";import{xra as $,yra as z}from"./cli-1.1.6-mf4x6fdv.mjs";z();x();S();y();I();_();F();P();var T=[/(?:^|\/)(?:package-lock\.json|yarn\.lock|bun\.lock|bun\.lockb|pnpm-lock\.yaml|Pipfile\.lock|poetry\.lock|Cargo\.lock|Gemfile\.lock|go\.sum|composer\.lock|uv\.lock)$/,/\.generated\./,/(?:^|\/)(?:dist|build|out|target|node_modules|\.next|__pycache__)\//,/\.(?:min\.js|min\.css|map|pyc|pyo)$/,/\.(?:json|ya?ml|toml|xml|ini|cfg|conf|env|lock|txt|md|mdx|rst|csv|log|svg)$/i,/(?:^|\/)\.?(?:eslintrc|prettierrc|babelrc|editorconfig|gitignore|gitattributes|dockerignore|npmrc)/,/(?:^|\/)(?:tsconfig|jsconfig|biome|vitest\.config|jest\.config|webpack\.config|vite\.config|rollup\.config)\.[a-z]+$/,/(?:^|\/)\.(?:github|vscode|idea|claude)\//,/(?:^|\/)(?:CHANGELOG|LICENSE|CONTRIBUTING|CODEOWNERS|README)(?:\.[a-z]+)?$/i];function k(L){return!T.some((U)=>U.test(L))}function d(L,U=20){let H=new Map;for(let V of L)H.set(V,(H.get(V)||0)+1);return Array.from(H.entries()).sort((V,Q)=>Q[1]-V[1]).slice(0,U).map(([V,Q])=>`${Q.toString().padStart(6)} ${V}`).join(`
|
|
2
|
+
`)}function E(L,U){let H=[],V=new Set,Q=new Map;for(let J=1;H.length<U&&J<=U;J++)for(let X of L){if(H.length>=U)break;if(!k(X))continue;let Y=Math.max(X.lastIndexOf("/"),X.lastIndexOf("\\")),Z=Y>=0?X.slice(Y+1):X;if(!Z||V.has(Z))continue;let q=Y>=0?X.slice(0,Y):".";if((Q.get(q)??0)>=J)continue;H.push(Z),V.add(Z),Q.set(q,(Q.get(q)??0)+1)}return H.length>=U?H:[]}async function N(){if(A.platform==="win32")return[];if(!await R())return[];try{let L=await W(),U=["log","-n","1000","--pretty=format:","--name-only","--diff-filter=M"],H=new Map,V=(J)=>{for(let X of J.split(`
|
|
3
|
+
`)){let Y=X.trim();if(Y)H.set(Y,(H.get(Y)??0)+1)}};if(L){let{stdout:J}=await K("git",[...U,`--author=${L}`],{cwd:D()});V(J)}if(H.size<10){let{stdout:J}=await K(M(),U,{cwd:D()});V(J)}let Q=Array.from(H.entries()).sort((J,X)=>X[1]-J[1]).map(([J])=>J);return E(Q,5)}catch(L){return O(L),[]}}var b=604800000;function v(L){let U=B(),H=U.exampleFiles?.length?U.exampleFiles:["<filepath>"],Q=[...["fix lint errors","fix typecheck errors",`how does ${H[0]} work?`,`refactor ${H[Math.floor(H.length/2)]}`,"how do I log an error?",`edit ${H[H.length-1]} to...`,`write a test for ${H[0]}`,"create a util logging.py that..."]];for(let J=Q.length-1;J>0;J--){let X=Math.floor(Math.random()*(J+1));[Q[J],Q[X]]=[Q[X],Q[J]]}return Q.slice(0,L).map((J)=>`Try "${J}"`)}var p=$(()=>{return v(1)[0]??'Try "fix lint errors"'}),c=$((L)=>{return v(L)}),r=$(async()=>{let L=B(),U=Date.now(),H=L.exampleFilesGeneratedAt??0;if(U-H>b)L.exampleFiles=[];if(!L.exampleFiles?.length)N().then((V)=>{if(V.length)G((Q)=>({...Q,exampleFiles:V,exampleFilesGeneratedAt:Date.now()}))})});
|
|
4
|
+
export{d as Ia,E as Ja,p as Ka,c as La,r as Ma};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{Bo as o,MF as y,NF as S,QF as C,WF as s,xo as F}from"./cli-1.1.6-ckg7fah6.mjs";import{sZ as D,tZ as r,uZ as z,vZ as j}from"./cli-1.1.6-4cqcrvjd.mjs";import{l$ as R,m$ as l,o$ as b,p$ as u}from"./cli-1.1.6-qem2tnkw.mjs";import{Aka as N,Dka as g,gka as O,ika as c,mka as L,qka as d}from"./cli-1.1.6-rvy9sw8e.mjs";import{xra as T,yra as I}from"./cli-1.1.6-mf4x6fdv.mjs";import{Jsa as _}from"./cli-1.1.6-xc6fegry.mjs";import{spawn as G,spawnSync as w}from"child_process";import{basename as k}from"path";function h(q){return!!b(q)}function V(q){let H=k(q.split(" ")[0]??"");return P.find((B)=>H.includes(B))}function p(q,H,B){if(!B)return[H];if(m.has(q))return["-g",`${H}:${B}`];if(q==="subl")return[`${H}:${B}`];return[H]}function Qq(q,H){let B=v();if(!B)return!1;let J=B.split(" "),X=J[0]??B,K=J.slice(1),Q=V(B);if(Q){let W=p(Q,q,H),Z={detached:!0,stdio:"ignore"},M;if(process.platform==="win32"){let U=W.map((E)=>`"${E}"`).join(" ");M=G(`${B} ${U}`,{...Z,shell:!0})}else M=G(X,[...K,...W],Z);return M.on("error",(U)=>N(`editor spawn failed: ${U}`,{level:"error"})),M.unref(),!0}let $=z.get(process.stdout);if(!$)return!1;let Y=H&&f.test(k(X));$.enterAlternateScreen();try{let W={stdio:"inherit"},Z;if(process.platform==="win32"){let M=Y?`+${H} `:"";Z=w(`${B} ${M}"${q}"`,{...W,shell:!0})}else{let M=[...K,...Y?[`+${H}`,q]:[q]];Z=w(X,M,W)}if(Z.error)return N(`editor spawn failed: ${Z.error}`,{level:"error"}),!1;return!0}finally{$.exitAlternateScreen()}}var P,f,m,v;var x=_(()=>{I();j();g();u();P=["code","cursor","windsurf","codium","subl","atom","gedit","notepad++","notepad"],f=/\b(vi|vim|nvim|nano|emacs|pico|micro|helix|hx)\b/,m=new Set(["code","cursor","windsurf","codium"]);v=T(()=>{if(process.env.VISUAL?.trim())return process.env.VISUAL.trim();if(process.env.EDITOR?.trim())return process.env.EDITOR.trim();if(process.platform==="win32")return"start /wait notepad";return["code","vi","nano"].find((H)=>h(H))})});function a(q){return V(q)!==void 0}function i(q){let H=L(),B=z.get(process.stdout);if(!B)throw Error("Ink instance not found - cannot pause rendering");let J=v();if(!J)return{content:null};try{H.statSync(q)}catch{return{content:null}}let X=!a(J);if(X)B.enterAlternateScreen();else B.pause(),B.suspendStdin();try{let K=Object.hasOwn(A,J)?A[J]:J;return R(`${K} "${q}"`,{stdio:"inherit"}),{content:H.readFileSync(q,{encoding:"utf-8"})}}catch(K){if(typeof K==="object"&&K!==null&&"status"in K&&typeof K.status==="number"){let Q=K.status;if(Q!==0)return{content:null,error:`${F(J)} exited with code ${Q}`}}return{content:null}}finally{if(X)B.exitAlternateScreen();else B.resumeStdin(),B.resume()}}function n(q,H,B){let J=q;for(let[X,K]of Object.entries(B))if(K.type==="text"){let Q=parseInt(X),$=K.content,Y=J.indexOf($);if(Y!==-1){let W=y($),Z=S(Q,W);J=J.slice(0,Y)+Z+J.slice(Y+$.length)}}return J}function Vq(q,H){let B=L(),J=D();try{let X=H?C(q,H):q;O(J,X,{encoding:"utf-8",flush:!0});let K=i(J);if(K.content===null)return K;let Q=K.content;if(Q.endsWith(`
|
|
2
|
+
`)&&!Q.endsWith(`
|
|
3
|
+
|
|
4
|
+
`))Q=Q.slice(0,-1);if(H)Q=n(Q,q,H);return{content:Q}}finally{try{B.unlinkSync(J)}catch{}}}var A;var t=_(()=>{s();j();x();l();d();o();c();r();A={code:"code -w",subl:"subl --wait"}});
|
|
5
|
+
export{Qq as Fg,v as Gg,x as Hg,i as Ig,Vq as Jg,t as Kg};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{HS as jJ,IS as $V,To as IJ,Vo as cJ,dj as pJ,iL as DJ,iS as UJ,jL as BJ,kL as lJ}from"./cli-1.1.6-ckg7fah6.mjs";import{Rga as G,T$ as mJ,W_ as c,X_ as fJ,Xda as m,Yea as YJ,Zga as dJ,aaa as NJ,eaa as gJ,fea as uJ,q$ as WJ,rfa as hJ,v$ as l}from"./cli-1.1.6-qem2tnkw.mjs";import{Jia as U,Lia as PJ}from"./cli-1.1.6-a1n79s5x.mjs";import{Aja as SJ,xja as f}from"./cli-1.1.6-0a0rct1w.mjs";import{Aka as Q,Dka as kJ,mka as VJ,qka as bJ}from"./cli-1.1.6-rvy9sw8e.mjs";import{_ka as JJ,fla as yJ}from"./cli-1.1.6-cam8a83k.mjs";import{Xma as qJ,Yma as zJ}from"./cli-1.1.6-dsx3y9mh.mjs";import{Fsa as wJ,Jsa as _J}from"./cli-1.1.6-xc6fegry.mjs";class p{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let $=0;$<J.length;$++){let _=J[$];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if(($&255)===255&&performance.now()-Y>4)await b(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let X=!0;for(let $=0;$<V.length;$++)if(this.indexPath($),($&255)===255&&performance.now()-Y>4){if(this.readyCount=$+1,X)W(),X=!1;await b(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=LJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let X=W.charCodeAt(Y);if(X>=97&&X<=122)V|=1<<X-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),X=Array(Y),$=0;for(let M=0;M<Y;M++){let B=V.charAt(M);X[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)$|=1<<E-97}let _=Y*24+8+32,H=[],N=-1/0,{paths:I,lowerPaths:q,charBits:x,pathLens:j,readyCount:g}=this;J:for(let M=0;M<g;M++){if((x[M]&$)!==$)continue;let B=Z?I[M]:q[M],E=B.indexOf(X[0]);if(E===-1)continue;y[0]=E;let C=0,u=0,h=E;for(let A=1;A<Y;A++){if(E=B.indexOf(X[A],h+1),E===-1)continue J;y[A]=E;let F=E-h-1;if(F===0)u+=4;else C+=3+F*1;h=E}if(H.length===W&&_+u-C<=N)continue;let S=I[M],vJ=j[M],T=Y*16+u-C;T+=HJ(S,y[0],!0);for(let A=1;A<Y;A++)T+=HJ(S,y[A],!1);if(T+=Math.max(0,32-(vJ>>2)),H.length<W){if(H.push({path:S,fuzzScore:T}),H.length===W)H.sort((A,F)=>A.fuzzScore-F.fuzzScore),N=H[0].fuzzScore}else if(T>N){let A=0,F=H.length;while(A<F){let d=A+F>>1;if(H[d].fuzzScore<T)A=d+1;else F=d}H.splice(A,0,{path:S,fuzzScore:T}),H.shift(),N=H[0].fuzzScore}}H.sort((M,B)=>B.fuzzScore-M.fuzzScore);let D=H.length,w=Math.max(D,1),z=Array(D);for(let M=0;M<D;M++){let B=H[M].path,E=M/w,C=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:C}}return z}}function HJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(RJ(V))return 8;if(GJ(V)&&CJ(J.charCodeAt(W)))return 6;return 0}function RJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function CJ(J){return J>=65&&J<=90}function b(){return new Promise((J)=>setImmediate(J))}function LJ(J,W){let Z=new Set;for(let Y of J){let X=Y.length;for(let _=0;_<Y.length;_++){let H=Y.charCodeAt(_);if(H===47||H===92){X=_;break}}let $=Y.slice(0,X);if($.length>0){if(Z.add($),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,X)=>{let $=Y.length-X.length;if($!==0)return $;return Y<X?-1:Y>X?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var QJ=4,y;var MJ=_J(()=>{y=new Int32Array(64)});import{statSync as nJ}from"fs";import*as O from"path";function n(){if(!K)K=new p;return K}function vV(){K=null,v=null,R++,k=null,L=[],$J=[],XJ=[],ZJ.clear(),s=null,o=null,a=0,i=null,r=null,P=null}function xJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let X=J[Y];for(let $=0;$<X.length;$++)V=(V^X.charCodeAt($))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let X=0;X<Y.length;X++)V=(V^Y.charCodeAt(X))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function sJ(){let J=WJ(U());if(!J)return null;try{return nJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function OJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function oJ(J){if(J.length===0)return;if(!K||L.length===0)return;let W=await FJ(J),Z=[...L,...$J,...XJ,...J,...W],V=xJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await K.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${L.length} tracked + ${J.length} untracked files`)}async function EJ(J,W){let Z=`${J}:${W}`;if(o===Z)return s;let V=VJ(),Y=[".ignore",".rgignore"],X=[...new Set([J,W])],$=KJ.default(),_=!1,H=X.flatMap((q)=>Y.map((x)=>O.join(q,x))),N=await Promise.all(H.map((q)=>V.readFile(q,{encoding:"utf8"}).catch(()=>null)));for(let[q,x]of N.entries()){if(x===null)continue;$.add(x),_=!0,Q(`[FileIndex] loaded ignore patterns from ${H[q]}`)}let I=_?$:null;return s=I,o=Z,I}async function aJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=WJ(U());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=U(),X=Date.now(),$=await c(l(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-X}ms`),$.code!==0)return Q(`[FileIndex] git ls-files failed (code=${$.code}, stderr=${$.stderr}), falling back to ripgrep`),null;let _=$.stdout.trim().split(`
|
|
2
|
+
`).filter(Boolean),H=OJ(_,V,Y),N=await EJ(V,Y);if(N){let q=H.length;H=N.filter(H),Q(`[FileIndex] applied ignore patterns: ${q} -> ${H.length} files`)}L=H;let I=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${H.length} tracked files in ${I}ms`),f("tengu_file_suggestions_git_ls_files",{file_count:H.length,tracked_count:H.length,untracked_count:0,duration_ms:I}),!k){let q=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],x=R;k=c(l(),q,{timeout:1e4,cwd:V}).then(async(j)=>{if(x!==R)return;if(j.code===0){let g=j.stdout.trim().split(`
|
|
3
|
+
`).filter(Boolean),D=OJ(g,V,Y),w=await EJ(V,Y);if(w&&D.length>0){let z=D.length;D=w.filter(D),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${D.length} files`)}Q(`[FileIndex] background untracked fetch: ${D.length} files`),oJ(D)}}).catch((j)=>{Q(`[FileIndex] background untracked fetch failed: ${j}`)}).finally(()=>{k=null})}return H}catch(Y){return Q(`[FileIndex] git ls-files error: ${JJ(Y)}`),null}}async function FJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(iJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>QJ)await b(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function iJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let X=O.dirname(J[Y]);while(X!=="."&&!V.has(X)){let $=O.dirname(X);if($===X)break;V.add(X),X=$}}}async function rJ(J){return(await Promise.all(DJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function tJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await aJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;return Q("[FileIndex] git ls-files returned null, falling back to ripgrep"),TJ(J,W)}async function TJ(J,W){let Z=Date.now(),V=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)V.push("--no-ignore-vcs");let Y=U(),$=(await IJ(V,Y,J)).map((H)=>O.relative(Y,H)),_=Date.now()-Z;return Q(`[FileIndex] ripgrep: ${$.length} files in ${_}ms`),f("tengu_file_suggestions_ripgrep",{file_count:$.length,duration_ms:_}),$}async function RV(){let J=AbortSignal.timeout(1e4),W=m(),Z=YJ(),V=W.respectGitignore??Z.respectGitignore??!0;try{return await TJ(J,V)}catch(Y){return G(Y),[]}}async function eJ(){let J=AbortSignal.timeout(1e4),W=n();try{let Z=m(),V=YJ(),Y=Z.respectGitignore??V.respectGitignore??!0,X=U(),[$,_]=await Promise.all([tJ(J,Y),rJ(X)]);$J=_;let H=[...$,..._],N=await FJ(H);XJ=N;let I=[...N,...H],q=xJ(I);if(q!==r)await W.loadFromFileListAsync(I).done,r=q,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){G(Z)}return W}function JV(J,W){let Z=Math.min(J.length,W.length),V=0;while(V<Z&&J[V]===W[V])V++;return J.substring(0,V)}function GV(J){if(J.length===0)return"";let W=J.map((V)=>V.displayText),Z=W[0];for(let V=1;V<W.length;V++){let Y=W[V];if(Z=JV(Z,Y),Z==="")return""}return Z}function t(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function VV(J,W){return J.search(W,e).map((V)=>t(V.path,V.score))}function AJ(){if(v)return;let J=sJ();if(K){if(!(J!==null&&J!==i)&&Date.now()-a<WV)return}let W=R,Z=Date.now();n(),v=eJ().then((V)=>{if(W!==R)return V;return v=null,ZJ.emit(),i=J,a=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${JJ(V)}`),G(V),W===R)v=null;return n()})}async function YV(){let J=VJ(),W=U();try{let Z=await J.readdir(W);return Z.sort((V,Y)=>{let X=V.isDirectory(),$=Y.isDirectory();if(X!==$)return X?-1:1;let _=V.name.startsWith("."),H=Y.name.startsWith(".");if(_!==H)return _?-1:1;return V.name.toLowerCase().localeCompare(Y.name.toLowerCase())}),Z.map((V)=>{let Y=O.join(W,V.name),X=O.relative(W,Y);return V.isDirectory()?X+O.sep:X})}catch(Z){return G(Z),[]}}async function CV(J,W=!1){if(!J&&!W)return[];if(m().fileSuggestion?.type==="command"){let V={...UJ(),query:J};return(await jJ(V)).slice(0,e).map(t)}if(J===""||J==="."||J==="./"){let V=await YV();return AJ(),V.slice(0,e).map(t)}let Z=Date.now();try{let V=v!==null;AJ();let Y=J,X="."+O.sep;if(J.startsWith(X))Y=J.substring(2);if(Y.startsWith("~"))Y=NJ(Y);let $=K?VV(K,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${$.length} results in ${_}ms (${V?"partial":"full"} index)`),f("tengu_file_suggestions_query",{duration_ms:_,cache_hit:!V,result_count:$.length,query_length:J.length}),$}catch(V){return G(V),[]}}function LV(J,W,Z,V,Y,X){let $=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+$+W.substring(V+Z.length);Y(_);let H=V+$.length;X(H)}var KJ,K=null,v=null,ZJ,jV,R=0,k=null,L,$J,XJ,s=null,o=null,a=0,i=null,r=null,P=null,e=100,WV=5000;var ZV=_J(()=>{lJ();MJ();SJ();hJ();PJ();kJ();yJ();fJ();bJ();mJ();$V();dJ();gJ();cJ();uJ();zJ();KJ=wJ(pJ(),1);ZJ=qJ(),jV=ZJ.subscribe,L=[],$J=[],XJ=[]});
|
|
4
|
+
export{p as ji,MJ as ki,jV as li,vV as mi,RV as ni,GV as oi,AJ as pi,CV as qi,LV as ri,ZV as si};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Go as E,Ho as m,Hp as l,Io as Xq,Jp as Rq,Kp as i,Lp as Aq,bp as S,gp as Zq}from"./cli-1.1.6-ckg7fah6.mjs";import{Dca as u,Fca as g,Ica as h,Jca as n,Oca as vq,Rga as D,Zga as Qq}from"./cli-1.1.6-qem2tnkw.mjs";import{Cia as d,Eia as Uq}from"./cli-1.1.6-7t3befhs.mjs";import{Aka as V,Dka as e,dka as P,eka as v,ika as f,mka as M,qka as y}from"./cli-1.1.6-rvy9sw8e.mjs";import{$ka as O,_ka as W,ala as C,fla as _}from"./cli-1.1.6-cam8a83k.mjs";import{Ura as p,ksa as qq}from"./cli-1.1.6-7x719hyg.mjs";import{Jsa as N}from"./cli-1.1.6-xc6fegry.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(J){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let K=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:K,ref:X}:{source:"git",url:K}}}return{source:"url",url:G}}let x=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||x){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=N(()=>{_();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as Jq}from"fs/promises";import{join as Kq}from"path";function c(){return Kq(S(),xq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==L)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${L})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=S();await M().mkdir(Q);let B=P(Z,null,2);await Jq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){D(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${I}`);let Z=performance.now();try{let q=await p.get(I,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return E("install_counts",I,"success",performance.now()-Z),q.data.plugins}catch(q){throw E("install_counts",I,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),E("install_counts",I,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:L,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return D(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var L=1,xq="install-counts-cache.json",I="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=N(()=>{qq();e();_();y();Qq();f();Xq();Zq()});import{readdir as Iq,readFile as A,stat as wq}from"fs/promises";import*as H from"path";function Eq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function w(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Nq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function j(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(x&&typeof x==="object"){let X=x;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((J,K)=>{if(typeof J==="string")w(J,`commands[${K}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((J,K)=>{if(typeof J==="string")w(J,`agents[${K}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((J,K)=>{if(typeof J==="string")w(J,`skills[${K}]`,q)})}let z=x;if(typeof x==="object"&&x!==null){let X=x,Y=Object.keys(X).filter((J)=>Mq.has(J));if(Y.length>0){let J={...X};for(let K of Y)delete J[K],$.push({path:K,message:`Field '${K}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claude Code "+"ignores it at load time."});z=J}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claude Code accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(x&&typeof x==="object"){let X=x;if(Array.isArray(X.plugins))X.plugins.forEach((Y,J)=>{if(Y&&typeof Y==="object"&&"source"in Y){let K=Y.source;if(typeof K==="string")w(K,`plugins[${J}].source`,q,Nq(K));if(K&&typeof K==="object"&&"path"in K&&typeof K.path==="string")w(K.path,`plugins[${J}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(x);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((K,U)=>{if(X.plugins.filter((R)=>R.name===K.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${K.name}" found in marketplace`})});let Y=H.dirname(Q),J=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[K,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(J,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${K}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function _q(Z,q,$){let Q=[],B=[],x=q.match(i);if(!x)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=x[1]||"",G;try{G=l(z)}catch(K){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(K)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let K=X.description;if(typeof K!=="string"&&typeof K!=="number"&&typeof K!=="boolean"&&K!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(K)?"array":typeof K}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((K)=>typeof K!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let J=X.shell;if(J!==void 0&&J!==null)if(typeof J!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof J}.`});else{let K=J.trim().toLowerCase();if(K!=="bash"&&K!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${J}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function Lq(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await Iq(Z,{withFileTypes:!0})}catch(B){let x=O(B);if(x==="ENOENT"||x==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let x=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(x,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(x)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,x]of $){let z=await o(x,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(J){if(C(J))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(J)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=_q(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await Lq(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await wq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),x=await k(B);if(x.errors[0]?.code!=="ENOENT")return x;let z=H.join(q,".claude-plugin","plugin.json"),G=await j(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(Eq(Z)){case"plugin":return j(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),x=v(B);if(Array.isArray(x.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return j(Z)}}}var Mq;var Dq=N(()=>{Uq();_();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
|
|
2
|
+
export{Fq as qd,r as rd,nq as sd,lq as td,Oq as ud,QQ as vd,XQ as wd,Dq as xd};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{AG as I,fo as g,go as k,yG as h}from"./cli-1.1.6-ckg7fah6.mjs";import{EZ as S,I1 as _,d1 as s}from"./cli-1.1.6-4cqcrvjd.mjs";import{p4 as c,q4 as m,r4 as T}from"./cli-1.1.6-a5rqr2qe.mjs";import{Vea as b,rfa as P}from"./cli-1.1.6-qem2tnkw.mjs";import{Fsa as D}from"./cli-1.1.6-xc6fegry.mjs";_();P();I();k();T();var v=D(S(),1);function E(C){let e=v.c(17),{customApiKeyTruncated:o,onDone:p}=C,r;if(e[0]!==o||e[1]!==p)r=function(R){e:switch(R){case"yes":{b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,approved:[...n.customApiKeyResponses?.approved??[],o]}})),p(!0);break e}case"no":b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,rejected:[...n.customApiKeyResponses?.rejected??[],o]}})),p(!1)}},e[0]=o,e[1]=p,e[2]=r;else r=e[2];let t=r,l;if(e[3]!==t)l=()=>t("no"),e[3]=t,e[4]=l;else l=e[4];let f;if(e[5]===Symbol.for("react.memo_cache_sentinel"))f=c(s,{bold:!0,children:"ANTHROPIC_API_KEY"}),e[5]=f;else f=e[5];let i;if(e[6]!==o)i=m(s,{children:[f,m(s,{children:[": sk-ant-...",o]})]}),e[6]=o,e[7]=i;else i=e[7];let u;if(e[8]===Symbol.for("react.memo_cache_sentinel"))u=c(s,{children:"Do you want to use this API key?"}),e[8]=u;else u=e[8];let y;if(e[9]===Symbol.for("react.memo_cache_sentinel"))y={label:"Yes",value:"yes"},e[9]=y;else y=e[9];let d;if(e[10]===Symbol.for("react.memo_cache_sentinel"))d=[y,{label:m(s,{children:["No (",c(s,{bold:!0,children:"recommended"}),")"]}),value:"no"}],e[10]=d;else d=e[10];let a;if(e[11]!==t)a=c(h,{defaultValue:"no",defaultFocusValue:"no",options:d,onChange:(K)=>t(K),onCancel:()=>t("no")}),e[11]=t,e[12]=a;else a=e[12];let A;if(e[13]!==l||e[14]!==i||e[15]!==a)A=m(g,{title:"Detected a custom API key in your environment",color:"warning",onCancel:l,children:[i,u,a]}),e[13]=l,e[14]=i,e[15]=a,e[16]=A;else A=e[16];return A}
|
|
2
|
+
export{E as B};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{gb as b}from"./cli-1.1.6-gzsjjcf2.mjs";import{of as QK,tf as gK}from"./cli-1.1.6-ghcyvb6h.mjs";import{$K as Pz,$o as x,HQ as yK,IM as KK,KM as uK,Ym as oz,_m as fK,ap as SK,cp as sz,gp as hK,hL as wK,lB as tz,lU as j,nB as ez,nU as aK,oB as mK,pJ as pK,pv as jz,qJ as dK,sM as zK,tM as cK,wv as FK,yQ as bz}from"./cli-1.1.6-ckg7fah6.mjs";import{mZ as Kz,rZ as AK,sZ as Qz,tZ as GK}from"./cli-1.1.6-4cqcrvjd.mjs";import{$6 as rz,F7 as iz,J7 as vK,P8 as Mz,R8 as wz,S6 as Uz,T8 as R,W6 as Iz,_6 as Dz,b9 as Fz,g7 as Oz,h5 as U,l7 as A,n5 as G,n7 as _z,s7 as P}from"./cli-1.1.6-w4nw5yvg.mjs";import{x9 as O,y9 as UK}from"./cli-1.1.6-03q6hzb7.mjs";import{$da as Jz,Bba as OK,I_ as Zz,J_ as xK,M$ as gz,Pea as lz,Q_ as T,Rga as V,S_ as jK,Sda as q,T$ as bK,Uda as H,Vea as $,Wda as az,Xda as f,Yda as Cz,Yea as W,Zga as D,cba as t,cfa as Wz,dfa as Bz,efa as nz,fea as _,hba as IK,n$ as $z,nba as e,p$ as MK,rba as DK,rfa as N,w$ as uz,yba as zz}from"./cli-1.1.6-qem2tnkw.mjs";import{Eha as CK,zha as E}from"./cli-1.1.6-eyrk5vjw.mjs";import{Jia as cz,Lia as EK}from"./cli-1.1.6-a1n79s5x.mjs";import{Aja as L,xja as Z}from"./cli-1.1.6-0a0rct1w.mjs";import{gka as r,ika as LK,jka as i,mka as o,qka as _K}from"./cli-1.1.6-rvy9sw8e.mjs";import{Ika as s,Jka as NK}from"./cli-1.1.6-yqy3sf86.mjs";import{_ka as y,ala as n,fla as BK}from"./cli-1.1.6-cam8a83k.mjs";import{kla as C,lla as v,nla as pz,tla as dz,vla as kK}from"./cli-1.1.6-d1aef3g5.mjs";import{Apa as l,Qoa as hz,Sma as w,Wma as WK,_qa as F,apa as mz,hpa as a,moa as Rz,noa as fz,ooa as Tz,qoa as Sz}from"./cli-1.1.6-dsx3y9mh.mjs";import{Gsa as PK}from"./cli-1.1.6-xc6fegry.mjs";UK();AK();F();OK();BK();_K();IK();D();NK();DK();WK();LK();GK();import{readFileSync as RK}from"node:fs";var TK=/--inspect(-brk)?/,g=/--inspect(-brk)?|--debug(-brk)?/;function qQ(){let z=zz()?TK:g,Q=process.execArgv.some((Y)=>z.test(Y)),X=!!process.env.NODE_OPTIONS&&g.test(process.env.NODE_OPTIONS);try{return!!global.require("inspector").url()||Q||X}catch{return Q||X}}function HQ(){(process.stderr.isTTY?process.stderr:process.stdout.isTTY?process.stdout:void 0)?.write(Kz)}function JQ(K){if(typeof K!=="object"||K===null)return{};let z=K,Q=z.teammateMode;return{agentId:typeof z.agentId==="string"?z.agentId:void 0,agentName:typeof z.agentName==="string"?z.agentName:void 0,teamName:typeof z.teamName==="string"?z.teamName:void 0,agentColor:typeof z.agentColor==="string"?z.agentColor:void 0,planModeRequired:typeof z.planModeRequired==="boolean"?z.planModeRequired:void 0,parentSessionId:typeof z.parentSessionId==="string"?z.parentSessionId:void 0,teammateMode:Q==="auto"||Q==="tmux"||Q==="in-process"?Q:void 0,agentType:typeof z.agentType==="string"?z.agentType:void 0}}function Xz(K){try{let z=K.trim(),Q=z.startsWith("{")&&z.endsWith("}"),X;if(Q){if(!t(z))process.stderr.write(O.red(`Error: Invalid JSON provided to --settings
|
|
2
|
+
`)),process.exit(1);X=Qz("claude-settings",".json",{contentHash:z}),r(X,z,"utf8")}else{let{resolvedPath:Y}=i(o(),K);try{RK(Y,"utf8")}catch(J){if(n(J))process.stderr.write(O.red(`Error: Settings file not found: ${Y}
|
|
3
|
+
`)),process.exit(1);throw J}X=Y}a(X),w()}catch(z){if(z instanceof Error)V(z);process.stderr.write(O.red(`Error processing settings: ${y(z)}
|
|
4
|
+
`)),process.exit(1)}}function Yz(K){try{let z=e(K);l(z),w()}catch(z){if(z instanceof Error)V(z);process.stderr.write(O.red(`Error processing --setting-sources: ${y(z)}
|
|
5
|
+
`)),process.exit(1)}}async function VQ(K,z){if(!process.stdin.isTTY&&!process.argv.includes("mcp")){if(z==="stream-json")return process.stdin;process.stdin.setEncoding("utf8");let Q="",X=(J)=>{Q+=J};process.stdin.on("data",X);let Y=await s(process.stdin,3000);if(process.stdin.off("data",X),Y)process.stderr.write(`Warning: no stdin data received in 3s, proceeding without it. If piping from a slow command, redirect stdin explicitly: < /dev/null to skip, or wait longer.
|
|
6
|
+
`);return[K,Q].filter(Boolean).join(`
|
|
7
|
+
`)}return K}CK();aK();L();fK();N();vK();jK();kK();bK();xK();MK();async function qz(){if(!await $z("gh"))return"not_installed";let{exitCode:z}=await Zz("gh",["auth","token"],{stdout:"ignore",stderr:"ignore",timeout:5000,reject:!1});return z===0?"authenticated":"not_authenticated"}D();P();cK();hK();uK();L();N();D();_();function Hz(){let K=W();if(K.autoUpdates!==!1||K.autoUpdatesProtectedForNative===!0)return;try{let z=q("userSettings")||{};H("userSettings",{...z,env:{...z.env,DISABLE_AUTOUPDATER:"1"}}),Z("tengu_migrate_autoupdates_to_settings",{was_user_preference:!0,already_had_env_var:!!z.env?.DISABLE_AUTOUPDATER}),process.env.DISABLE_AUTOUPDATER="1",$((Q)=>{let{autoUpdates:X,autoUpdatesProtectedForNative:Y,...J}=Q;return J})}catch(z){V(Error(`Failed to migrate auto-updates: ${z}`)),Z("tengu_migrate_autoupdates_error",{has_error:!0})}}L();N();D();_();function Vz(){if(!W().bypassPermissionsModeAccepted)return;try{if(!Jz())H("userSettings",{skipDangerousModePermissionPrompt:!0});Z("tengu_migrate_bypass_permissions_accepted",{}),$((z)=>{if(!("bypassPermissionsModeAccepted"in z))return z;let{bypassPermissionsModeAccepted:Q,...X}=z;return X})}catch(z){V(Error(`Failed to migrate bypass permissions accepted: ${z}`))}}L();N();D();_();function Lz(){let K=Wz(),z=K.enableAllProjectMcpServers!==void 0,Q=K.enabledMcpjsonServers&&K.enabledMcpjsonServers.length>0,X=K.disabledMcpjsonServers&&K.disabledMcpjsonServers.length>0;if(!z&&!Q&&!X)return;try{let Y=q("localSettings")||{},J={},B=[];if(z&&Y.enableAllProjectMcpServers===void 0)J.enableAllProjectMcpServers=K.enableAllProjectMcpServers,B.push("enableAllProjectMcpServers");else if(z)B.push("enableAllProjectMcpServers");if(Q&&K.enabledMcpjsonServers){let I=Y.enabledMcpjsonServers||[];J.enabledMcpjsonServers=[...new Set([...I,...K.enabledMcpjsonServers])],B.push("enabledMcpjsonServers")}if(X&&K.disabledMcpjsonServers){let I=Y.disabledMcpjsonServers||[];J.disabledMcpjsonServers=[...new Set([...I,...K.disabledMcpjsonServers])],B.push("disabledMcpjsonServers")}if(Object.keys(J).length>0)H("localSettings",J);if(B.includes("enableAllProjectMcpServers")||B.includes("enabledMcpjsonServers")||B.includes("disabledMcpjsonServers"))Bz((I)=>{let{enableAllProjectMcpServers:S,enabledMcpjsonServers:h,disabledMcpjsonServers:m,...M}=I;return M});Z("tengu_migrate_mcp_approval_fields_success",{migratedCount:B.length})}catch(Y){V(Y),Z("tengu_migrate_mcp_approval_fields_error",{})}}L();N();P();G();_();function Nz(){if(U()!=="firstParty")return;if(!_z())return;let K=q("userSettings")?.model;if(K!=="claude-opus-4-20250514"&&K!=="claude-opus-4-1-20250805"&&K!=="claude-opus-4-0"&&K!=="claude-opus-4-1")return;H("userSettings",{model:"opus"}),$((z)=>({...z,legacyOpusMigrationTimestamp:Date.now()})),Z("tengu_legacy_opus_migration",{from_model:K})}L();P();_();function Az(){if(!Oz())return;if(q("userSettings")?.model!=="opus")return;if(Uz(Iz()))return;let z="opus[1m]",Q=A(z)===A(Dz())?void 0:z;H("userSettings",{model:Q}),Z("tengu_opus_to_opus1m_migration",{})}N();function Gz(){$((K)=>{let z=K.replBridgeEnabled;if(z===void 0)return K;if(K.remoteControlAtStartup!==void 0)return K;let Q={...K,remoteControlAtStartup:Boolean(z)};return delete Q.replBridgeEnabled,Q})}F();N();G();_();function xz(){if(U()!=="firstParty")return;if(W().sonnet1m45MigrationComplete)return;if(q("userSettings")?.model==="sonnet[1m]")H("userSettings",{model:"sonnet-4-5-20250929[1m]"});if(Rz()==="sonnet[1m]")Tz("sonnet-4-5-20250929[1m]");$((X)=>({...X,sonnet1m45MigrationComplete:!0}))}L();Fz();N();G();_();function yz(){if(U()!=="firstParty")return;if(!R()&&!Mz()&&!wz())return;let K=q("userSettings")?.model;if(K!=="claude-sonnet-4-5-20250929"&&K!=="claude-sonnet-4-5-20250929[1m]"&&K!=="sonnet-4-5-20250929"&&K!=="sonnet-4-5-20250929[1m]")return;let z=K.endsWith("[1m]");if(H("userSettings",{model:z?"sonnet[1m]":"sonnet"}),W().numStartups>1)$((X)=>({...X,sonnet45To46MigrationTimestamp:Date.now()}));Z("tengu_sonnet45_to_46_migration",{from_model:K,has_1m:z})}L();N();D();wK();_();function kz(){if(W().hasResetAutoModeOptInForDefaultOffer)return;if(Pz()!=="enabled")return;try{let z=q("userSettings");if(z?.skipAutoPermissionPrompt&&z?.permissions?.defaultMode!=="auto")H("userSettings",{skipAutoPermissionPrompt:void 0}),Z("tengu_migrate_reset_auto_opt_in_for_default_offer",{});$((Q)=>{if(Q.hasResetAutoModeOptInForDefaultOffer)return Q;return{...Q,hasResetAutoModeOptInForDefaultOffer:!0}})}catch(z){V(Error(`Failed to reset auto mode opt-in: ${z}`))}}L();Fz();N();G();_();function Ez(){if(W().opusProMigrationComplete)return;if(U()!=="firstParty"||!R()){$((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!0});return}if(Cz()?.model===void 0){let X=Date.now();$((Y)=>({...Y,opusProMigrationComplete:!0,opusProMigrationTimestamp:X})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!1})}else $((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!0})}gK();SK();F();EK();_();yK();L();FK();async function vz(K,z){let Q=await bz(K),X=jz(z);for(let Y of Q){if(Y.type!=="prompt")continue;Z("tengu_skill_loaded",{_PROTO_skill_name:Y.name,skill_source:Y.source,skill_loaded_from:Y.loadedFrom,skill_budget:X,...Y.kind&&{skill_kind:Y.kind}})}}mK();function iX(){try{let K=q("policySettings");if(K){let z=az(K);Z("tengu_managed_settings_loaded",{keyCount:z.length,keys:z.join(",")})}}catch{}}function oX(){let K=A(fz()??rz());vz(cz(),iz(K,Sz())),KK().then(({enabled:z,errors:Q})=>{let X=zK();tz(z,X,sz()),ez(Q,X)}).catch((z)=>V(z))}function lK(){let K={};if(process.env.NODE_EXTRA_CA_CERTS)K.has_node_extra_ca_certs=!0;if(process.env.CLAUDE_CODE_CLIENT_CERT)K.has_client_cert=!0;if(C("--use-system-ca"))K.has_use_system_ca=!0;if(C("--use-openssl-ca"))K.has_use_openssl_ca=!0;return K}async function sX(){if(oz())return;let[K,z,Q]=await Promise.all([uz(),gz(),qz()]);Z("tengu_startup_telemetry",{is_git:K,worktree_count:z,gh_auth_status:Q,sandbox_enabled:x.isSandboxingEnabled(),are_unsandboxed_commands_allowed:x.areUnsandboxedCommandsAllowed(),is_auto_bash_allowed_if_sandbox_enabled:x.isAutoAllowBashIfSandboxedEnabled(),auto_updater_disabled:nz(),prefers_reduced_motion:f().prefersReducedMotion??!1,...lK()})}var k=11;function tX(){if(W().migrationVersion!==k)Hz(),Vz(),Lz(),Ez(),xz(),Nz(),yz(),Az(),Gz(),kz(),$((K)=>K.migrationVersion===k?K:{...K,migrationVersion:k});QK().catch(()=>{})}function eX(){if(hz()){T("info","prefetch_system_context_non_interactive"),j();return}if(lz())T("info","prefetch_system_context_has_trust"),j();else T("info","prefetch_system_context_skipped_no_trust")}function zY(){E("eagerLoadSettings_start");let K=b("--settings");if(K)Xz(K);let z=b("--setting-sources");if(z!==void 0)Yz(z);E("eagerLoadSettings_end")}function KY(K){if(process.env.CLAUDE_CODE_ENTRYPOINT)return;let z=process.argv.slice(2),Q=z.indexOf("mcp");if(Q!==-1&&z[Q+1]==="serve"){process.env.CLAUDE_CODE_ENTRYPOINT="mcp";return}if(v(process.env.CLAUDE_CODE_ACTION)){process.env.CLAUDE_CODE_ENTRYPOINT="claude-code-github-action";return}process.env.CLAUDE_CODE_ENTRYPOINT=K?"sdk-cli":"cli"}async function QY({hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:I,numAllowedTools:S,numDisallowedTools:h,mcpClientCount:m,worktreeEnabled:M,skipWebFetchPreflight:XK,githubActionInputs:p,dangerouslySkipPermissionsPassed:YK,permissionMode:ZK,modeIsBypass:$K,allowDangerouslySkipPermissionsPassed:qK,systemPromptFlag:d,appendSystemPromptFlag:c,thinkingConfig:HK,assistantActivationPath:u,isCoordinator:JK}){try{Z("tengu_init",{entrypoint:"claude",hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:I,numAllowedTools:S,numDisallowedTools:h,mcpClientCount:m,worktree:M,skipWebFetchPreflight:XK,...p&&{githubActionInputs:p},dangerouslySkipPermissionsPassed:YK,permissionMode:ZK,modeIsBypass:$K,inProtectedNamespace:dz(),allowDangerouslySkipPermissionsPassed:qK,thinkingType:HK.type,...d&&{systemPromptFlag:d},...c&&{appendSystemPromptFlag:c},is_simple:pz()||void 0,is_coordinator:JK||void 0,...u&&{assistantActivationPath:u},autoUpdatesChannel:f().autoUpdatesChannel??"latest"})}catch(VK){V(VK)}}function XY(K){}function YY(K){return}
|
|
8
|
+
export{qQ as N,HQ as O,JQ as P,VQ as Q,iX as R,oX as S,sX as T,tX as U,eX as V,zY as W,KY as X,QY as Y,XY as Z,YY as _};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{Hx as L,Ix as k,fS as _,ok as J,wO as f,yO as z}from"./cli-1.1.6-ckg7fah6.mjs";import{cba as F,hba as A}from"./cli-1.1.6-qem2tnkw.mjs";import{Cia as Y,Eia as h,Fia as H,Gia as X}from"./cli-1.1.6-7t3befhs.mjs";import{Aja as M,xja as W}from"./cli-1.1.6-0a0rct1w.mjs";import{Aka as D,Dka as R}from"./cli-1.1.6-rvy9sw8e.mjs";import{Qoa as q,_qa as C}from"./cli-1.1.6-dsx3y9mh.mjs";import{Jsa as V}from"./cli-1.1.6-xc6fegry.mjs";function S(U){let Q=[];for(let w of U){if(w.type!=="user"&&w.type!=="assistant")continue;if("isMeta"in w&&w.isMeta)continue;if("origin"in w&&w.origin&&w.origin.kind!=="human")continue;let K=w.message.content;if(typeof K==="string")Q.push(K);else if(Array.isArray(K)){for(let B of K)if("type"in B&&B.type==="text"&&"text"in B)Q.push(B.text)}}let G=Q.join(`
|
|
2
|
+
`);return G.length>$?G.slice(-$):G}async function T(U,Q){let G=U.trim();if(!G)return null;try{let w=await f({systemPrompt:L([P]),userPrompt:G,outputFormat:{type:"json_schema",schema:{type:"object",properties:{title:{type:"string"}},required:["title"],additionalProperties:!1}},signal:Q,options:{querySource:"generate_session_title",agents:[],isNonInteractiveSession:q(),hasAppendSystemPrompt:!1,mcpTools:[]}}),K=J(w.message.content),B=v().safeParse(F(K)),Z=B.success?B.data.title.trim()||null:null;return W("tengu_session_title_generated",{success:Z!==null}),Z}catch(w){return D(`generateSessionTitle failed: ${w}`,{level:"error"}),W("tengu_session_title_generated",{success:!1}),"Claudin"}}var $=1000,P=`Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.
|
|
3
|
+
|
|
4
|
+
Return JSON with a single "title" field.
|
|
5
|
+
|
|
6
|
+
Good examples:
|
|
7
|
+
{"title": "Fix login button on mobile"}
|
|
8
|
+
{"title": "Add OAuth authentication"}
|
|
9
|
+
{"title": "Debug failing CI tests"}
|
|
10
|
+
{"title": "Refactor API client error handling"}
|
|
11
|
+
|
|
12
|
+
Bad (too vague): {"title": "Code changes"}
|
|
13
|
+
Bad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}
|
|
14
|
+
Bad (wrong case): {"title": "Fix Login Button On Mobile"}`,v;var I=V(()=>{h();C();M();z();R();A();X();_();k();v=H(()=>Y.object({title:Y.string()}))});
|
|
15
|
+
export{S as xe,T as ye,I as ze};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Rg as rq,Sg as ZX}from"./cli-1.1.6-8ne4jamj.mjs";import{Tg as sq,Ug as tq,Vg as tZ,Xg as QX}from"./cli-1.1.6-3rzrj8b1.mjs";import{Zg as tX}from"./cli-1.1.6-jhcpddxn.mjs";import{kh as sZ,lh as tY,mh as nq,nh as eY}from"./cli-1.1.6-ee36w2t8.mjs";import{oh as lq,ph as sY}from"./cli-1.1.6-y629c7ce.mjs";import{qh as oq,rh as JX,sh as aq,th as qX}from"./cli-1.1.6-bfchr542.mjs";import{uh as WY,vh as DZ,xh as uq,yh as dq}from"./cli-1.1.6-sw693n6v.mjs";import{Vi as YY,Wi as aX}from"./cli-1.1.6-33fpz8x7.mjs";import{$n as T,AG as lJ,AH as AY,Am as nX,Bo as iY,Dm as QY,Em as rX,Jj as gQ,KT as yY,Kv as PJ,Lv as _0,Mj as FJ,Nv as oX,Op as vq,Pp as lY,Rj as jX,SI as cq,TI as rY,VT as qQ,Zn as L0,_P as mQ,_n as dY,_y as sX,ao as c0,bo as J0,co as EZ,dQ as _X,dU as QQ,eU as YQ,fo as d0,gL as aZ,go as gZ,hL as oY,iU as GX,jy as E0,ky as gq,lL as BZ,ly as mq,mL as sJ,mo as oZ,my as TJ,nL as tJ,nT as iJ,oG as Qq,oL as eJ,pG as wY,qH as $J,qo as _q,rH as bJ,sH as wJ,tH as jJ,uH as _J,vH as vJ,wH as gJ,wN as s0,xH as mJ,xN as YJ,yG as i0,yH as pJ,zG as TY,zH as xJ,zm as qY}from"./cli-1.1.6-ckg7fah6.mjs";import{eV as pq,fV as xq,jV as nY}from"./cli-1.1.6-jx50q0sg.mjs";import{$W as iq,hX as aY}from"./cli-1.1.6-vjv782dn.mjs";import{CY as _,DY as jq,EY as l0,HY as VY,IY as qG,KY as u0,LY as TZ,NY as UZ,QY as KY,RY as QG,oY as A0,pY as XZ}from"./cli-1.1.6-fjb1m1sm.mjs";import{EZ as b0,H0 as wq,I1 as S0,NZ as x0,OZ as $q,TZ as hZ,VZ as lX,a0 as rZ,b0 as bq,b1 as B,d1 as K,f0 as uY,n1 as JY}from"./cli-1.1.6-4cqcrvjd.mjs";import{o4 as H0,p4 as G,q4 as z,r4 as x}from"./cli-1.1.6-a5rqr2qe.mjs";import{s4 as F0}from"./cli-1.1.6-5wjyk23t.mjs";import{A4 as SQ,B4 as EX}from"./cli-1.1.6-jjwhpfnp.mjs";import{C6 as cY,O8 as ZY,R5 as n0,S5 as xY,b7 as NJ,b9 as iX,g7 as yq,h5 as eQ,i6 as YZ,j6 as lZ,l6 as Sq,m6 as nZ,n5 as dX,o6 as fq,o7 as kZ,s7 as Tq,t6 as hq}from"./cli-1.1.6-w4nw5yvg.mjs";import{x9 as K0,y9 as Fq}from"./cli-1.1.6-03q6hzb7.mjs";import{Cga as w0,E_ as C0,F_ as vZ,Fga as Cq,Rga as U0,Sda as dZ,Uda as Z0,Vea as y,Xda as iZ,Yea as h,Zea as Rq,Zga as IZ,cfa as Bq,cga as VQ,fea as pY,fga as KQ,gca as Nq,gfa as kq,gga as VX,hca as Pq,hfa as Iq,ica as Uq,iga as WQ,jca as Aq,oca as mY,pga as HQ,rfa as Eq,rga as zQ,vga as OQ,zga as KX}from"./cli-1.1.6-qem2tnkw.mjs";import{mha as OZ,nha as P0,oha as tQ,tha as SZ,uha as QJ}from"./cli-1.1.6-eyrk5vjw.mjs";import{Oha as Lq}from"./cli-1.1.6-akzxyfxv.mjs";import{Zha as Mq,jia as gY}from"./cli-1.1.6-81cgzqdp.mjs";import{Jia as PZ,Lia as yJ}from"./cli-1.1.6-a1n79s5x.mjs";import{Aja as vY,xja as S}from"./cli-1.1.6-0a0rct1w.mjs";import{Aka as j0,Dka as qJ,ika as uX}from"./cli-1.1.6-rvy9sw8e.mjs";import{dla as DJ,fla as wX}from"./cli-1.1.6-cam8a83k.mjs";import{lla as Oq,nla as GQ,sla as uZ,vla as Dq}from"./cli-1.1.6-d1aef3g5.mjs";import{$ma as fJ,$na as LJ,$oa as cZ,Ona as oQ,Pna as aQ,_qa as hJ,apa as zq,koa as sQ,qna as lQ,rna as nQ,una as rQ}from"./cli-1.1.6-dsx3y9mh.mjs";import{Fsa as u,Jsa as r}from"./cli-1.1.6-xc6fegry.mjs";function RY(){let J=fJ(),Q=iJ(J)??G(K,{dimColor:!0,children:"/rename to add a name"});return[{label:"Version",value:"1.1.6"},{label:"Session name",value:Q},{label:"Session ID",value:J},{label:"cwd",value:PZ()},...mJ(),...pJ()]}function BY({mainLoopModel:J,mcp:Z,theme:Q,context:Y}){return[{label:"Model",value:xJ(J)},...bJ(Z.clients,Y.options.ideInstallationStatus,Q),...wJ(Z.clients,Q),...$J(),..._J()]}async function cJ(){return[...await vJ(),...await gJ(),...await jJ()]}function kY(J){let Z=AZ.c(8),{value:Q}=J;if(Array.isArray(Q)){let Y;if(Z[0]!==Q){let H;if(Z[2]!==Q.length)H=(O,F)=>z(K,{children:[O,F<Q.length-1?",":""]},F),Z[2]=Q.length,Z[3]=H;else H=Z[3];Y=Q.map(H),Z[0]=Q,Z[1]=Y}else Y=Z[1];let V;if(Z[4]!==Y)V=G(B,{flexWrap:"wrap",columnGap:1,flexShrink:99,children:Y}),Z[4]=Y,Z[5]=V;else V=Z[5];return V}if(typeof Q==="string"){let Y;if(Z[6]!==Q)Y=G(K,{children:Q}),Z[6]=Q,Z[7]=Y;else Y=Z[7];return Y}return Q}function uJ(J){let Z=AZ.c(20),{context:Q,diagnosticsPromise:Y}=J,V=E0(SY),H=E0(CY),[O]=x0(),F;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))F=RY(),Z[0]=F;else F=Z[0];let P;if(Z[1]!==Q||Z[2]!==V||Z[3]!==H||Z[4]!==O)P=BY({mainLoopModel:V,mcp:H,theme:O,context:Q}),Z[1]=Q,Z[2]=V,Z[3]=H,Z[4]=O,Z[5]=P;else P=Z[5];let U;if(Z[6]!==P)U=[F,P],Z[6]=P,Z[7]=U;else U=Z[7];let W=U,D=u0()?1:void 0,M;if(Z[8]!==W)M=W.map(IY),Z[8]=W,Z[9]=M;else M=Z[9];let N;if(Z[10]!==Y)N=G(RZ.Suspense,{fallback:null,children:G(fY,{promise:Y})}),Z[10]=Y,Z[11]=N;else N=Z[11];let A;if(Z[12]!==D||Z[13]!==M||Z[14]!==N)A=z(B,{flexDirection:"column",gap:1,flexGrow:D,children:[M,N]}),Z[12]=D,Z[13]=M,Z[14]=N,Z[15]=A;else A=Z[15];let I;if(Z[16]===Symbol.for("react.memo_cache_sentinel"))I=G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})}),Z[16]=I;else I=Z[16];let k;if(Z[17]!==D||Z[18]!==A)k=z(B,{flexDirection:"column",flexGrow:D,children:[A,I]}),Z[17]=D,Z[18]=A,Z[19]=k;else k=Z[19];return k}function IY(J,Z){return J.length>0&&G(B,{flexDirection:"column",children:J.map(EY)},Z)}function EY(J,Z){let{label:Q,value:Y}=J;return z(B,{flexDirection:"row",gap:1,flexShrink:0,children:[Q!==void 0&&z(K,{bold:!0,children:[Q,":"]}),G(kY,{value:Y})]},Z)}function CY(J){return J.mcp}function SY(J){return J.mainLoopModel}function fY(J){let Z=AZ.c(5),{promise:Q}=J,Y=RZ.use(Q);if(Y.length===0)return null;let V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=G(K,{bold:!0,children:"System Diagnostics"}),Z[0]=V;else V=Z[0];let H;if(Z[1]!==Y)H=Y.map(hY),Z[1]=Y,Z[2]=H;else H=Z[2];let O;if(Z[3]!==H)O=z(B,{flexDirection:"column",paddingBottom:1,children:[V,H]}),Z[3]=H,Z[4]=O;else O=Z[4];return O}function hY(J,Z){return z(B,{flexDirection:"row",gap:1,paddingX:1,children:[G(K,{color:"error",children:C0.warning}),typeof J==="string"?G(K,{wrap:"wrap",children:J}):J]},Z)}var AZ,RZ;var dJ=r(()=>{vZ();hJ();UZ();S0();TJ();yJ();yY();AY();c0();x();AZ=u(b0(),1),RZ=u(F0(),1)});function rJ(J){let Z=nJ.c(17),{currentVersion:Q,onChoice:Y}=J,V;if(Z[0]!==Y)V=function(k){Y(k)},Z[0]=Y,Z[1]=V;else V=Z[1];let H=V,O;if(Z[2]!==Y)O=function(){Y("cancel")},Z[2]=Y,Z[3]=O;else O=Z[3];let F=O,P;if(Z[4]!==Q)P=z(K,{children:["The stable channel may have an older version than what you're currently running (",Q,")."]}),Z[4]=Q,Z[5]=P;else P=Z[5];let U;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))U=G(K,{dimColor:!0,children:"How would you like to handle this?"}),Z[6]=U;else U=Z[6];let W;if(Z[7]===Symbol.for("react.memo_cache_sentinel"))W={label:"Allow possible downgrade to stable version",value:"downgrade"},Z[7]=W;else W=Z[7];let D=`Stay on current version (${Q}) until stable catches up`,M;if(Z[8]!==D)M=[W,{label:D,value:"stay"}],Z[8]=D,Z[9]=M;else M=Z[9];let N;if(Z[10]!==H||Z[11]!==M)N=G(i0,{options:M,onChange:H}),Z[10]=H,Z[11]=M,Z[12]=N;else N=Z[12];let A;if(Z[13]!==F||Z[14]!==P||Z[15]!==N)A=z(d0,{title:"Switch to Stable Channel",onCancel:F,color:"permission",hideBorder:!0,hideInputGuide:!0,children:[P,U,N]}),Z[13]=F,Z[14]=P,Z[15]=N,Z[16]=A;else A=Z[16];return A}var nJ;var oJ=r(()=>{S0();lJ();gZ();x();nJ=u(b0(),1)});function aJ(J){return Object.entries(J).map(([Z,Q])=>({label:Q?.name??$Y,value:Z,description:Q?.description??bY}))}function Jq(J){let Z=Zq.c(16),{initialStyle:Q,onComplete:Y,onCancel:V,isStandaloneCommand:H}=J,O;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))O=[],Z[0]=O;else O=Z[0];let[F,P]=JZ.useState(O),[U,W]=JZ.useState(!0),D,M;if(Z[1]===Symbol.for("react.memo_cache_sentinel"))D=()=>{tJ(PZ()).then((d)=>{let m=aJ(d);P(m),W(!1)}).catch(()=>{let d=aJ(sJ);P(d),W(!1)})},M=[],Z[1]=D,Z[2]=M;else D=Z[1],M=Z[2];JZ.useEffect(D,M);let N;if(Z[3]!==Y)N=(d)=>{Y(d)},Z[3]=Y,Z[4]=N;else N=Z[4];let A=N,I=!H,k=!H,j;if(Z[5]===Symbol.for("react.memo_cache_sentinel"))j=G(B,{marginTop:1,children:G(K,{dimColor:!0,children:"This changes how Claudin communicates with you"})}),Z[5]=j;else j=Z[5];let t;if(Z[6]!==A||Z[7]!==Q||Z[8]!==U||Z[9]!==F)t=z(B,{flexDirection:"column",gap:1,children:[j,U?G(K,{dimColor:!0,children:"Loading output styles…"}):G(i0,{options:F,onChange:A,visibleOptionCount:10,defaultValue:Q})]}),Z[6]=A,Z[7]=Q,Z[8]=U,Z[9]=F,Z[10]=t;else t=Z[10];let w;if(Z[11]!==V||Z[12]!==I||Z[13]!==k||Z[14]!==t)w=G(d0,{title:"Preferred output style",onCancel:V,hideInputGuide:I,hideBorder:k,children:t}),Z[11]=V,Z[12]=I,Z[13]=k,Z[14]=t,Z[15]=w;else w=Z[15];return w}var Zq,JZ,$Y="Default",bY="Claudin completes coding tasks efficiently and provides concise responses";var qq=r(()=>{eJ();S0();yJ();TY();gZ();x();Zq=u(b0(),1),JZ=u(F0(),1)});function Xq(J){let Z=Yq.c(13),{initialLanguage:Q,onComplete:Y,onCancel:V}=J,[H,O]=mZ.useState(Q),[F,P]=mZ.useState((Q??"").length),U;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))U={context:"Settings"},Z[0]=U;else U=Z[0];_("confirm:no",V,U);let W;if(Z[1]!==H||Z[2]!==Y)W=function(){let w=H?.trim();Y(w||void 0)},Z[1]=H,Z[2]=Y,Z[3]=W;else W=Z[3];let D=W,M;if(Z[4]===Symbol.for("react.memo_cache_sentinel"))M=G(K,{children:"Enter your preferred response and voice language:"}),Z[4]=M;else M=Z[4];let N;if(Z[5]===Symbol.for("react.memo_cache_sentinel"))N=G(K,{children:C0.pointer}),Z[5]=N;else N=Z[5];let A=H??"",I;if(Z[6]!==F||Z[7]!==D||Z[8]!==A)I=z(B,{flexDirection:"row",gap:1,children:[N,G(Qq,{value:A,onChange:O,onSubmit:D,focus:!0,showCursor:!0,placeholder:`e.g., Japanese, 日本語, Español${C0.ellipsis}`,columns:60,cursorOffset:F,onChangeCursorOffset:P})]}),Z[6]=F,Z[7]=D,Z[8]=A,Z[9]=I;else I=Z[9];let k;if(Z[10]===Symbol.for("react.memo_cache_sentinel"))k=G(K,{dimColor:!0,children:"Leave empty for default (English)"}),Z[10]=k;else k=Z[10];let j;if(Z[11]!==I)j=z(B,{flexDirection:"column",gap:1,children:[M,I,k]}),Z[11]=I,Z[12]=j;else j=Z[12];return j}var Yq,mZ;var Gq=r(()=>{vZ();S0();l0();wY();x();Yq=u(b0(),1),mZ=u(F0(),1)});function Vq(J,{grouped:Z=!0}={}){if(!Z)return J.map((H)=>({kind:"setting",id:H.id,item:H}));let Q=new Map;for(let H of J){let O=Q.get(H.id);if(O)O.push(H);else Q.set(H.id,[H])}let Y=[],V=(H,O)=>{if(O.length===0)return;if(Y.length>0)Y.push({kind:"spacer",id:`spacer:${H.id}`});Y.push({kind:"header",id:`header:${H.id}`,label:H.label});for(let F of O)Y.push({kind:"setting",id:F.id,item:F})};for(let H of jY){let O=[];for(let F of H.settingIds){let P=Q.get(F);if(!P)continue;O.push(...P),Q.delete(F)}V(H,O)}return V(_Y,[...Q.values()].flat()),Y}function f0(J){return J?.kind==="setting"}function QZ(J){return J.findIndex((Z)=>f0(Z))}function pZ(J){for(let Z=J.length-1;Z>=0;Z--)if(f0(J[Z]))return Z;return-1}function qZ(J,Z,Q){for(let Y=Z+Q;Y>=0&&Y<J.length;Y+=Q)if(f0(J[Y]))return Y;return f0(J[Z])?Z:QZ(J)}function Kq(J,Z,Q){if(Q===1){for(let V=Z+1;V<J.length;V++)if(J[V]?.kind==="header")return qZ(J,V,1);return pZ(J)}let Y=-1;for(let V=Z-1;V>=0;V--)if(J[V]?.kind==="header"){Y=V;break}for(let V=Y-1;V>=0;V--)if(J[V]?.kind==="header")return qZ(J,V,1);return QZ(J)}function xZ(J){return J.reduce((Z,Q)=>f0(Q)?Z+1:Z,0)}var jY,_Y;var Wq=r(()=>{jY=[{id:"model",label:"Model & thinking",settingIds:["model","thinkingEnabled","fastMode","outputStyle","language","autoCompactEnabled"]},{id:"agents",label:"Agents & workflows",settingIds:["autoBackgroundAgentsEnabled","workflowsDefaultBackground","teammateMode","teammateDefaultModel"]},{id:"tools",label:"Tools & permissions",settingIds:["defaultPermissionMode","useAutoModeDuringPlan","bashOutputFilterEnabled","toolResultSummarizerEnabled","repeatedFailureHintEnabled","fileCheckpointingEnabled","respectGitignore"]},{id:"interface",label:"Interface",settingIds:["theme","defaultView","verbose","showTurnDuration","showCacheStats","spinnerTipsEnabled","prefersReducedMotion","prStatusFooterEnabled","promptSuggestionEnabled","editorMode","inlineImagesMode"]},{id:"terminal",label:"Terminal",settingIds:["terminalRenderer","frameRate","terminalProgressBarEnabled","showStatusInTerminalTab","copyOnSelect","copyFullResponse"]},{id:"notifications",label:"Notifications",settingIds:["notifChannel","taskCompleteNotifEnabled","inputNeededNotifEnabled","agentPushNotifEnabled"]},{id:"integrations",label:"Integrations",settingIds:["diffTool","autoConnectIde","autoInstallIdeExtension","remoteControlAtStartup"]},{id:"context",label:"Context & privacy",settingIds:["thinkingHistoryRedactionEnabled","narrationHistoryRedactionEnabled","showExternalIncludesDialog"]},{id:"updates",label:"Updates & account",settingIds:["autoUpdatesChannel","apiKey"]}],_Y={id:"other",label:"Other",settingIds:[]}});function ZQ({onClose:J,context:Z,setTabsHidden:Q,onIsSearchModeChange:Y,contentHeight:V}){let{headerFocused:H,focusHeader:O}=uq(),F=u0(),[,P]=x0(),U=$q(),[W,D]=v.useState(h()),M=l.useRef(h()),[N,A]=v.useState(iZ()),I=l.useRef(iZ()),[k,j]=v.useState(N?.outputStyle||BZ),t=l.useRef(k),[w,d]=v.useState(N?.language),m=l.useRef(w),[$,Q0]=v.useState(0),[o,Y0]=v.useState(0),[n,z0]=v.useState(!0),$0=wq(),[e]=v.useState(()=>rZ()),{rows:v0,columns:X0}=A0(),FZ=Math.max(24,Math.min(44,X0-18)),C=V??Math.min(Math.floor(v0*0.8),30),p=Math.max(5,C-10),R0=E0((q)=>q.mainLoopModel),MZ=E0((q)=>q.verbose),g0=E0((q)=>q.thinkingEnabled),m0=E0((q)=>YZ()?q.fastMode:!1),p0=E0((q)=>q.promptSuggestionEnabled),$Z=!1,G0=gq(),[t0,E]=v.useState({}),b=l.useRef(g0),[a]=v.useState(()=>dZ("localSettings")),[V0]=v.useState(()=>dZ("userSettings")),W0=l.useRef(U),e0=mq(),[B0]=v.useState(()=>{let q=e0.getState();return{mainLoopModel:q.mainLoopModel,mainLoopModelForSession:q.mainLoopModelForSession,verbose:q.verbose,thinkingEnabled:q.thinkingEnabled,fastMode:q.fastMode,promptSuggestionEnabled:q.promptSuggestionEnabled,isBriefOnly:q.isBriefOnly,replBridgeEnabled:q.replBridgeEnabled,replBridgeOutboundOnly:q.replBridgeOutboundOnly,settings:q.settings}}),[bZ]=v.useState(()=>cZ()),M0=l.useRef(!1),[zY,ZZ]=v.useState(!1),[i,g]=v.useState(null),{query:k0,setQuery:LZ,cursorOffset:OY}=aq({isActive:n&&i===null&&!H,onExit:()=>z0(!1),onExitUp:O,passthroughCtrlKeys:["c","d"]}),AJ=n&&!H;l.useEffect(()=>{Y?.(AJ)},[AJ,Y]);let DY=_q(Z.options.mcpClients),FY=!Oq(process.env.CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING),RJ=l.use(qQ(!0)),MY=YQ(RJ),I0=Iq();function BJ(q){S("tengu_config_model_changed",{from_model:R0,to_model:q}),G0((L)=>({...L,mainLoopModel:q,mainLoopModelForSession:null})),E((L)=>{let R=kZ(q)+(nq(q,!1,yq())?" · Billed as extra usage":"");if("model"in L){let{model:f,...O0}=L;return{...O0,model:R}}return{...L,model:R}})}function LY(q){y((X)=>({...X,verbose:q})),D({...h(),verbose:q}),G0((X)=>({...X,verbose:q})),E((X)=>{if("verbose"in X){let{verbose:L,...R}=X;return R}return{...X,verbose:q}})}let wZ=[{id:"autoCompactEnabled",label:"Auto-compact",value:W.autoCompactEnabled,type:"boolean",onChange(q){y((X)=>({...X,autoCompactEnabled:q})),D({...h(),autoCompactEnabled:q}),S("tengu_auto_compact_setting_changed",{enabled:q})}},{id:"thinkingHistoryRedactionEnabled",label:"Thinking history redaction",value:W.thinkingHistoryRedactionEnabled,type:"boolean",onChange(q){y((X)=>({...X,thinkingHistoryRedactionEnabled:q})),D({...h(),thinkingHistoryRedactionEnabled:q}),S("claudin_thinking_history_redaction_setting_changed",{enabled:q})}},{id:"narrationHistoryRedactionEnabled",label:"Narration history redaction",value:W.narrationHistoryRedactionEnabled,type:"boolean",onChange(q){y((X)=>({...X,narrationHistoryRedactionEnabled:q})),D({...h(),narrationHistoryRedactionEnabled:q}),S("claudin_narration_history_redaction_setting_changed",{enabled:q})}},{id:"showCacheStats",label:"Cache stats display",value:W.showCacheStats,options:["off","compact","full"],type:"enum",onChange(q){let X=q==="off"||q==="compact"||q==="full"?q:"compact";y((L)=>({...L,showCacheStats:X})),D({...h(),showCacheStats:X}),S("tengu_show_cache_stats_setting_changed",{mode:X})}},{id:"toolResultSummarizerEnabled",label:"Tool result summarizer",value:W.toolResultSummarizerEnabled,type:"boolean",onChange(q){y((X)=>({...X,toolResultSummarizerEnabled:q})),D({...h(),toolResultSummarizerEnabled:q}),S("claudin_tool_result_summarizer_setting_changed",{enabled:q})}},{id:"bashOutputFilterEnabled",label:"Bash output filter",value:W.bashOutputFilterEnabled!==!1,type:"boolean",onChange(q){y((X)=>({...X,bashOutputFilterEnabled:q})),D({...h(),bashOutputFilterEnabled:q}),S("claudin_bash_output_filter_setting_changed",{enabled:q})}},{id:"autoBackgroundAgentsEnabled",label:"Auto-background agents",value:W.autoBackgroundAgentsEnabled===!0,type:"boolean",onChange(q){y((X)=>({...X,autoBackgroundAgentsEnabled:q})),D({...h(),autoBackgroundAgentsEnabled:q}),S("claudin_auto_background_agents_setting_changed",{enabled:q})}},{id:"repeatedFailureHintEnabled",label:"Repeated-failure hint",value:W.repeatedFailureHintEnabled!==!1,type:"boolean",onChange(q){y((X)=>({...X,repeatedFailureHintEnabled:q})),D({...h(),repeatedFailureHintEnabled:q}),S("claudin_repeated_failure_hint_setting_changed",{enabled:q})}},{id:"workflowsDefaultBackground",label:"Workflows run in background",value:W.workflowsDefaultBackground===!0,type:"boolean",onChange(q){y((X)=>({...X,workflowsDefaultBackground:q})),D({...h(),workflowsDefaultBackground:q})}},{id:"inlineImagesMode",label:"Inline terminal images",value:W.inlineImagesMode??"auto",options:["auto","enable","disable"],type:"enum",onChange(q){let X=q==="auto"||q==="enable"||q==="disable"?q:"auto";y((L)=>({...L,inlineImagesMode:X})),D({...h(),inlineImagesMode:X}),S("claudin_inline_images_setting_changed",{mode:X})}},{id:"spinnerTipsEnabled",label:"Show tips",value:N?.spinnerTipsEnabled??!0,type:"boolean",onChange(q){Z0("localSettings",{spinnerTipsEnabled:q}),A((X)=>({...X,spinnerTipsEnabled:q})),S("tengu_tips_setting_changed",{enabled:q})}},{id:"prefersReducedMotion",label:"Reduce motion",value:N?.prefersReducedMotion??!1,type:"boolean",onChange(q){Z0("localSettings",{prefersReducedMotion:q}),A((X)=>({...X,prefersReducedMotion:q})),G0((X)=>({...X,settings:{...X.settings,prefersReducedMotion:q}})),S("tengu_reduce_motion_setting_changed",{enabled:q})}},{id:"thinkingEnabled",label:"Thinking mode",value:g0??!0,type:"boolean",onChange(q){G0((X)=>({...X,thinkingEnabled:q})),Z0("userSettings",{alwaysThinkingEnabled:q?void 0:!1}),S("tengu_thinking_toggled",{enabled:q})}},...YZ()&&lZ()?[{id:"fastMode",label:`Fast mode (${Sq} only)`,value:!!m0,type:"boolean",onChange(q){if(hq(),Z0("userSettings",{fastMode:q?!0:void 0}),q)G0((X)=>({...X,mainLoopModel:nZ(),mainLoopModelForSession:null,fastMode:!0})),E((X)=>({...X,model:nZ(),"Fast mode":"ON"}));else G0((X)=>({...X,fastMode:!1})),E((X)=>({...X,"Fast mode":"OFF"}))}}]:[],{id:"promptSuggestionEnabled",label:"Prompt suggestions",value:p0,type:"boolean",onChange(q){G0((X)=>({...X,promptSuggestionEnabled:q})),Z0("userSettings",{promptSuggestionEnabled:q?void 0:!1})}},...FY?[{id:"fileCheckpointingEnabled",label:"Rewind code (checkpoints)",value:W.fileCheckpointingEnabled,type:"boolean",onChange(q){y((X)=>({...X,fileCheckpointingEnabled:q})),D({...h(),fileCheckpointingEnabled:q}),S("tengu_file_history_snapshots_setting_changed",{enabled:q})}}]:[],{id:"verbose",label:"Verbose output",value:MZ,type:"boolean",onChange:LY},{id:"terminalProgressBarEnabled",label:"Terminal progress bar",value:W.terminalProgressBarEnabled,type:"boolean",onChange(q){y((X)=>({...X,terminalProgressBarEnabled:q})),D({...h(),terminalProgressBarEnabled:q}),S("tengu_terminal_progress_bar_setting_changed",{enabled:q})}},...Mq("tengu_terminal_sidebar",!1)?[{id:"showStatusInTerminalTab",label:"Show status in terminal tab",value:W.showStatusInTerminalTab??!1,type:"boolean",onChange(q){y((X)=>({...X,showStatusInTerminalTab:q})),D({...h(),showStatusInTerminalTab:q}),S("tengu_terminal_tab_status_setting_changed",{enabled:q})}}]:[],{id:"showTurnDuration",label:"Show turn duration",value:W.showTurnDuration,type:"boolean",onChange(q){y((X)=>({...X,showTurnDuration:q})),D({...h(),showTurnDuration:q}),S("tengu_show_turn_duration_setting_changed",{enabled:q})}},{id:"defaultPermissionMode",label:"Default permission mode",value:N?.permissions?.defaultMode||"default",options:(()=>{let q=["default","plan"],X=Lq,L=["bypassPermissions"];return[...q,...X.filter((R)=>!q.includes(R)&&!L.includes(R))]})(),type:"enum",onChange(q){let X=Uq(q),L=Nq(X)?Pq(X):X,R=Z0("userSettings",{permissions:{...N?.permissions,defaultMode:L}});if(R.error){U0(R.error);return}A((f)=>({...f,permissions:{...f?.permissions,defaultMode:L}})),E((f)=>({...f,defaultPermissionMode:q})),S("tengu_config_changed",{setting:"defaultPermissionMode",value:q})}},{id:"useAutoModeDuringPlan",label:"Use auto mode during plan",value:N?.useAutoModeDuringPlan??!0,type:"boolean",onChange(q){Z0("userSettings",{useAutoModeDuringPlan:q}),A((X)=>({...X,useAutoModeDuringPlan:q})),G0((X)=>{let L=aZ(X.toolPermissionContext);if(L===X.toolPermissionContext)return X;return{...X,toolPermissionContext:L}}),E((X)=>({...X,"Use auto mode during plan":q}))}},{id:"respectGitignore",label:"Respect .gitignore in file picker",value:W.respectGitignore,type:"boolean",onChange(q){y((X)=>({...X,respectGitignore:q})),D({...h(),respectGitignore:q}),S("tengu_respect_gitignore_setting_changed",{enabled:q})}},{id:"copyFullResponse",label:"Always copy full response (skip /copy)",searchText:"Always copy full response skip /copy picker",value:W.copyFullResponse,type:"boolean",onChange(q){y((X)=>({...X,copyFullResponse:q})),D({...h(),copyFullResponse:q}),S("tengu_config_changed",{setting:"copyFullResponse",value:String(q)})}},...e?[{id:"copyOnSelect",label:"Copy on select",value:W.copyOnSelect??!0,type:"boolean",onChange(q){y((X)=>({...X,copyOnSelect:q})),D({...h(),copyOnSelect:q}),S("tengu_config_changed",{setting:"copyOnSelect",value:String(q)})}}]:[],{id:"terminalRenderer",label:bq()?"Terminal UI renderer (env)":"Terminal UI renderer",searchText:"terminal ui renderer fullscreen flicker-free alt-screen",value:rZ()?"fullscreen":"default",options:["default","fullscreen"],type:"enum",onChange(q){let X=q==="fullscreen";y((L)=>({...L,flickerFreeMode:X})),D({...h(),flickerFreeMode:X}),S("tengu_config_changed",{setting:"flickerFreeMode",value:String(X)})}},{id:"frameRate",label:tq()?`Frame rate (env, ${tZ()}fps)`:`Frame rate (${tZ()}fps)`,searchText:"frame rate fps animation smoothness gpu terminal refresh",value:W.renderFrameRate??"auto",options:[...sq],type:"enum",onChange(q){y((X)=>({...X,renderFrameRate:q})),D({...h(),renderFrameRate:q}),S("tengu_config_changed",{setting:"renderFrameRate",value:String(q)})}},I0?{id:"autoUpdatesChannel",label:"Auto-update channel",value:"disabled",type:"managedEnum",onChange(){}}:{id:"autoUpdatesChannel",label:"Auto-update channel",value:N?.autoUpdatesChannel??"latest",type:"managedEnum",onChange(){}},{id:"theme",label:"Theme",value:U,type:"managedEnum",onChange:P},{id:"notifChannel",label:"Notifications",value:W.preferredNotifChannel,options:["auto","iterm2","terminal_bell","iterm2_with_bell","kitty","ghostty","os_native","notifications_disabled"],type:"enum",onChange(q){y((X)=>({...X,preferredNotifChannel:q})),D({...h(),preferredNotifChannel:q})}},{id:"outputStyle",label:"Output style",value:k,type:"managedEnum",onChange:()=>{}},{id:"language",label:"Language",value:w??"Default (English)",type:"managedEnum",onChange:()=>{}},{id:"editorMode",label:"Editor mode",value:W.editorMode==="emacs"?"normal":W.editorMode||"normal",options:["normal","vim"],type:"enum",onChange(q){y((X)=>({...X,editorMode:q})),D({...h(),editorMode:q}),S("tengu_editor_mode_changed",{mode:q,source:"config_panel"})}},{id:"prStatusFooterEnabled",label:"Show PR/MR status footer",value:W.prStatusFooterEnabled??!0,type:"boolean",onChange(q){y((X)=>{if(X.prStatusFooterEnabled===q)return X;return{...X,prStatusFooterEnabled:q}}),D({...h(),prStatusFooterEnabled:q}),S("tengu_pr_status_footer_setting_changed",{enabled:q})}},{id:"model",label:"Model",value:R0===null?"Default (recommended)":R0,type:"managedEnum",onChange:BJ},...DY?[{id:"diffTool",label:"Diff tool",value:W.diffTool??"auto",options:["terminal","auto"],type:"enum",onChange(q){y((X)=>({...X,diffTool:q})),D({...h(),diffTool:q}),S("tengu_diff_tool_changed",{tool:q,source:"config_panel"})}}]:[],...!oZ()?[{id:"autoConnectIde",label:"Auto-connect to IDE (external terminal)",value:W.autoConnectIde??!1,type:"boolean",onChange(q){y((X)=>({...X,autoConnectIde:q})),D({...h(),autoConnectIde:q}),S("tengu_auto_connect_ide_changed",{enabled:q,source:"config_panel"})}}]:[],...oZ()?[{id:"autoInstallIdeExtension",label:"Auto-install IDE extension",value:W.autoInstallIdeExtension??!0,type:"boolean",onChange(q){y((X)=>({...X,autoInstallIdeExtension:q})),D({...h(),autoInstallIdeExtension:q}),S("tengu_auto_install_ide_extension_changed",{enabled:q,source:"config_panel"})}}]:[],...vq()?(()=>{let q=pq();return[{id:"teammateMode",label:q?`Teammate mode [overridden: ${q}]`:"Teammate mode",value:W.teammateMode??"auto",options:["auto","tmux","in-process"],type:"enum",onChange(L){if(L!=="auto"&&L!=="tmux"&&L!=="in-process")return;xq(L),y((R)=>({...R,teammateMode:L})),D({...h(),teammateMode:L}),S("tengu_teammate_mode_changed",{mode:L})}},{id:"teammateDefaultModel",label:"Default teammate model",value:Hq(W.teammateDefaultModel),type:"managedEnum",onChange(){}}]})():[],...iq()?[{id:"remoteControlAtStartup",label:"Enable Remote Control for all sessions",value:W.remoteControlAtStartup===void 0?"default":String(W.remoteControlAtStartup),options:["true","false","default"],type:"enum",onChange(q){if(q==="default")y((L)=>{if(L.remoteControlAtStartup===void 0)return L;let R={...L};return delete R.remoteControlAtStartup,R}),D({...h(),remoteControlAtStartup:void 0});else{let L=q==="true";y((R)=>{if(R.remoteControlAtStartup===L)return R;return{...R,remoteControlAtStartup:L}}),D({...h(),remoteControlAtStartup:L})}let X=Rq();G0((L)=>{if(L.replBridgeEnabled===X&&!L.replBridgeOutboundOnly)return L;return{...L,replBridgeEnabled:X,replBridgeOutboundOnly:!1}})}}]:[],...MY?[{id:"showExternalIncludesDialog",label:"External CLAUDE.md includes",value:(()=>{if(Bq().hasClaudeMdExternalIncludesApproved)return"true";else return"false"})(),type:"managedEnum",onChange(){}}]:[],...(()=>{let q=w0(),X=q?.transport==="anthropic"?q.apiKey?.trim():void 0;if(!X||uZ())return[];return[{id:"apiKey",label:z(K,{children:["Use custom API key:"," ",G(K,{bold:!0,children:n0(X)})]}),searchText:"Use custom API key",value:Boolean(W.customApiKeyResponses?.approved?.includes(n0(X))),type:"boolean",onChange(L){y((R)=>{let f={...R};if(!f.customApiKeyResponses)f.customApiKeyResponses={approved:[],rejected:[]};if(!f.customApiKeyResponses.approved)f.customApiKeyResponses={...f.customApiKeyResponses,approved:[]};if(!f.customApiKeyResponses.rejected)f.customApiKeyResponses={...f.customApiKeyResponses,rejected:[]};{let O0=n0(X);if(L)f.customApiKeyResponses={...f.customApiKeyResponses,approved:[...(f.customApiKeyResponses.approved??[]).filter((D0)=>D0!==O0),O0],rejected:(f.customApiKeyResponses.rejected??[]).filter((D0)=>D0!==O0)};else f.customApiKeyResponses={...f.customApiKeyResponses,approved:(f.customApiKeyResponses.approved??[]).filter((D0)=>D0!==O0),rejected:[...(f.customApiKeyResponses.rejected??[]).filter((D0)=>D0!==O0),O0]}}return f}),D(h())}}]})()],kJ=l.useMemo(()=>{if(!k0)return wZ;let q=k0.toLowerCase();return wZ.filter((X)=>{if(X.id.toLowerCase().includes(q))return!0;return("searchText"in X?X.searchText:X.label).toLowerCase().includes(q)})},[wZ,k0]),s=l.useMemo(()=>Vq(kJ,{grouped:k0===""}),[kJ,k0]),IJ=xZ(s.slice(0,o)),EJ=xZ(s.slice(o+p));l.useEffect(()=>{if($>=s.length){let q=Math.max(0,pZ(s));Q0(q),Y0(Math.max(0,q-p+1));return}if(!f0(s[$])){let q=Math.max(0,qZ(s,$,1));Q0(q),Y0((X)=>q>=X+p?q-p+1:X);return}Y0((q)=>{if($<q)return $;if($>=q+p)return $-p+1;return q})},[s,$,p]);let jZ=v.useCallback((q)=>{Y0((X)=>{if(q<X)return q;if(q>=X+p)return q-p+1;return X})},[p]),NY=v.useCallback(()=>{if(i!==null)return;let q=Object.entries(t0).map(([D0,SJ])=>{return S("tengu_config_changed",{key:D0,value:SJ}),`Set ${D0} to ${K0.bold(SJ)}`}),X=w0(),L=X?.transport==="anthropic"?X.apiKey?.trim():void 0,R=uZ()?void 0:L,f=Boolean(R&&M.current.customApiKeyResponses?.approved?.includes(n0(R))),O0=Boolean(R&&W.customApiKeyResponses?.approved?.includes(n0(R)));if(f!==O0)q.push(`${O0?"Enabled":"Disabled"} custom API key`),S("tengu_config_changed",{key:"env.ANTHROPIC_API_KEY",value:O0});if(W.theme!==M.current.theme)q.push(`Set theme to ${K0.bold(W.theme)}`);if(W.preferredNotifChannel!==M.current.preferredNotifChannel)q.push(`Set notifications to ${K0.bold(W.preferredNotifChannel)}`);if(k!==t.current)q.push(`Set output style to ${K0.bold(k)}`);if(w!==m.current)q.push(`Set response language to ${K0.bold(w??"Default (English)")}`);if(W.editorMode!==M.current.editorMode)q.push(`Set editor mode to ${K0.bold(W.editorMode||"emacs")}`);if(W.diffTool!==M.current.diffTool)q.push(`Set diff tool to ${K0.bold(W.diffTool)}`);if(W.autoConnectIde!==M.current.autoConnectIde)q.push(`${W.autoConnectIde?"Enabled":"Disabled"} auto-connect to IDE`);if(W.autoInstallIdeExtension!==M.current.autoInstallIdeExtension)q.push(`${W.autoInstallIdeExtension?"Enabled":"Disabled"} auto-install IDE extension`);if(W.autoCompactEnabled!==M.current.autoCompactEnabled)q.push(`${W.autoCompactEnabled?"Enabled":"Disabled"} auto-compact`);if(W.thinkingHistoryRedactionEnabled!==M.current.thinkingHistoryRedactionEnabled)q.push(`${W.thinkingHistoryRedactionEnabled?"Enabled":"Disabled"} thinking history redaction`);if(W.narrationHistoryRedactionEnabled!==M.current.narrationHistoryRedactionEnabled)q.push(`${W.narrationHistoryRedactionEnabled?"Enabled":"Disabled"} narration history redaction`);if(W.toolResultSummarizerEnabled!==M.current.toolResultSummarizerEnabled)q.push(`${W.toolResultSummarizerEnabled?"Enabled":"Disabled"} tool result summarizer`);if(W.autoBackgroundAgentsEnabled!==M.current.autoBackgroundAgentsEnabled)q.push(`${W.autoBackgroundAgentsEnabled===!0?"Enabled":"Disabled"} auto-background agents`);if(W.workflowsDefaultBackground!==M.current.workflowsDefaultBackground)q.push(`${W.workflowsDefaultBackground===!0?"Enabled":"Disabled"} workflows run in background`);if(W.bashOutputFilterEnabled!==M.current.bashOutputFilterEnabled)q.push(`${W.bashOutputFilterEnabled!==!1?"Enabled":"Disabled"} bash output filter`);if(W.repeatedFailureHintEnabled!==M.current.repeatedFailureHintEnabled)q.push(`${W.repeatedFailureHintEnabled!==!1?"Enabled":"Disabled"} repeated-failure hint`);if(W.respectGitignore!==M.current.respectGitignore)q.push(`${W.respectGitignore?"Enabled":"Disabled"} respect .gitignore in file picker`);if(W.copyFullResponse!==M.current.copyFullResponse)q.push(`${W.copyFullResponse?"Enabled":"Disabled"} always copy full response`);if(W.copyOnSelect!==M.current.copyOnSelect)q.push(`${W.copyOnSelect?"Enabled":"Disabled"} copy on select`);if(W.flickerFreeMode!==M.current.flickerFreeMode)q.push(`Set terminal UI renderer to ${K0.bold(W.flickerFreeMode?"fullscreen":"default")}`);if(W.renderFrameRate!==M.current.renderFrameRate)q.push(`Set frame rate to ${K0.bold(W.renderFrameRate??"auto")} (applies on restart)`);if(W.terminalProgressBarEnabled!==M.current.terminalProgressBarEnabled)q.push(`${W.terminalProgressBarEnabled?"Enabled":"Disabled"} terminal progress bar`);if(W.showStatusInTerminalTab!==M.current.showStatusInTerminalTab)q.push(`${W.showStatusInTerminalTab?"Enabled":"Disabled"} terminal tab status`);if(W.showTurnDuration!==M.current.showTurnDuration)q.push(`${W.showTurnDuration?"Enabled":"Disabled"} turn duration`);if(W.remoteControlAtStartup!==M.current.remoteControlAtStartup){let D0=W.remoteControlAtStartup===void 0?"Reset Remote Control to default":`${W.remoteControlAtStartup?"Enabled":"Disabled"} Remote Control for all sessions`;q.push(D0)}if(N?.autoUpdatesChannel!==I.current?.autoUpdatesChannel)q.push(`Set auto-update channel to ${K0.bold(N?.autoUpdatesChannel??"latest")}`);if(q.length>0)J(q.join(`
|
|
2
|
+
`));else J("Config dialog dismissed",{display:"system"})},[i,t0,W,R0,k,w,N?.autoUpdatesChannel,YZ()?N?.fastMode:void 0,J]),CJ=v.useCallback(()=>{if(U!==W0.current)P(W0.current);y(()=>M.current);let q=a;Z0("localSettings",{spinnerTipsEnabled:q?.spinnerTipsEnabled,prefersReducedMotion:q?.prefersReducedMotion,defaultView:q?.defaultView,outputStyle:q?.outputStyle});let X=V0;Z0("userSettings",{alwaysThinkingEnabled:X?.alwaysThinkingEnabled,fastMode:X?.fastMode,promptSuggestionEnabled:X?.promptSuggestionEnabled,autoUpdatesChannel:X?.autoUpdatesChannel,minimumVersion:X?.minimumVersion,language:X?.language,...{useAutoModeDuringPlan:X?.useAutoModeDuringPlan},syntaxHighlightingDisabled:X?.syntaxHighlightingDisabled,permissions:X?.permissions===void 0?void 0:{...X.permissions,defaultMode:X.permissions.defaultMode}});let L=B0;if(G0((R)=>({...R,mainLoopModel:L.mainLoopModel,mainLoopModelForSession:L.mainLoopModelForSession,verbose:L.verbose,thinkingEnabled:L.thinkingEnabled,fastMode:L.fastMode,promptSuggestionEnabled:L.promptSuggestionEnabled,isBriefOnly:L.isBriefOnly,replBridgeEnabled:L.replBridgeEnabled,replBridgeOutboundOnly:L.replBridgeOutboundOnly,settings:L.settings,toolPermissionContext:aZ(R.toolPermissionContext)})),cZ()!==bZ)zq(bZ)},[U,P,a,V0,B0,bZ,G0]),PY=v.useCallback(()=>{if(i!==null)return;if(M0.current)CJ();J("Config dialog dismissed",{display:"system"})},[i,CJ,J]);_("confirm:no",PY,{context:"Settings",isActive:i===null&&!n&&!H}),_("settings:close",NY,{context:"Settings",isActive:i===null&&!n&&!H});let _Z=v.useCallback(()=>{let q=s[$];if(!f0(q))return;let X=q.item;if(!X.onChange)return;if(X.type==="boolean"){if(M0.current=!0,X.onChange(!X.value),X.id==="thinkingEnabled"){if(!X.value===b.current)ZZ(!1);else if(Z.messages.some((f)=>f.type==="assistant"))ZZ(!0)}return}if(X.id==="theme"||X.id==="model"||X.id==="teammateDefaultModel"||X.id==="showExternalIncludesDialog"||X.id==="outputStyle"||X.id==="language")switch(X.id){case"theme":g("Theme"),Q(!0);return;case"model":g("Model"),Q(!0);return;case"teammateDefaultModel":g("TeammateModel"),Q(!0);return;case"showExternalIncludesDialog":g("ExternalIncludes"),Q(!0);return;case"outputStyle":g("OutputStyle"),Q(!0);return;case"language":g("Language"),Q(!0);return}if(X.id==="autoUpdatesChannel"){if(I0){g("EnableAutoUpdates"),Q(!0);return}if((N?.autoUpdatesChannel??"latest")==="latest")g("ChannelDowngrade"),Q(!0);else M0.current=!0,Z0("userSettings",{autoUpdatesChannel:"latest",minimumVersion:void 0}),A((R)=>({...R,autoUpdatesChannel:"latest",minimumVersion:void 0})),S("tengu_autoupdate_channel_changed",{channel:"latest"});return}if(X.type==="enum"){M0.current=!0;let R=(X.options.indexOf(X.value)+1)%X.options.length;X.onChange(X.options[R]);return}},[I0,s,$,N?.autoUpdatesChannel,Q]),NZ=(q)=>{ZZ(!1);let X=qZ(s,$,q);if(X<0)return;Q0(X),jZ(X)};jq({"select:previous":()=>{let q=QZ(s);if(q<0||$<=q)ZZ(!1),z0(!0),Y0(0);else NZ(-1)},"select:next":()=>NZ(1),"scroll:lineUp":()=>NZ(-1),"scroll:lineDown":()=>NZ(1),"select:accept":_Z,"settings:search":()=>{z0(!0),LZ("")}},{context:"Settings",isActive:i===null&&!n&&!H});let UY=v.useCallback((q)=>{if(i!==null)return;if(H)return;if(n){if(q.key==="escape"){if(q.preventDefault(),k0.length>0)LZ("");else z0(!1);return}if(q.key==="return"||q.key==="down"||q.key==="wheeldown")q.preventDefault(),z0(!1),Q0(Math.max(0,QZ(s))),Y0(0);return}if(q.key==="left"||q.key==="right"||q.key==="tab"){q.preventDefault(),_Z();return}if(q.key==="["||q.key==="]"){q.preventDefault();let X=Kq(s,$,q.key==="["?-1:1);if(X>=0)ZZ(!1),Q0(X),jZ(X);return}if(q.ctrl||q.meta)return;if(q.key==="j"||q.key==="k"||q.key==="/")return;if(q.key.length===1&&q.key!==" ")q.preventDefault(),z0(!0),LZ(q.key)},[i,H,n,k0,LZ,_Z,s,$,jZ]);return G(B,{flexDirection:"column",width:"100%",tabIndex:0,autoFocus:!0,onKeyDown:UY,children:i==="Theme"?z(H0,{children:[G(lq,{onThemeSelect:(q)=>{M0.current=!0,P(q),g(null),Q(!1)},onCancel:()=>{g(null),Q(!1)},hideEscToCancel:!0,skipExitHandling:!0}),G(B,{children:G(K,{dimColor:!0,italic:!0,children:z(J0,{children:[G(L0,{shortcut:"Enter",action:"select"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})})]}):i==="Model"?z(H0,{children:[G(sZ,{initial:R0,onSelect:(q,X)=>{M0.current=!0,BJ(q),g(null),Q(!1)},onCancel:()=>{g(null),Q(!1)},showFastModeNotice:YZ()?m0&&fq(R0)&&lZ():!1}),G(K,{dimColor:!0,children:z(J0,{children:[G(L0,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):i==="TeammateModel"?z(H0,{children:[G(sZ,{initial:W.teammateDefaultModel??null,skipSettingsWrite:!0,headerText:"Default model for newly spawned teammates. The leader can override via the tool call's model parameter.",onSelect:(q,X)=>{if(g(null),Q(!1),W.teammateDefaultModel===void 0&&q===null)return;M0.current=!0,y((L)=>L.teammateDefaultModel===q?L:{...L,teammateDefaultModel:q}),D({...h(),teammateDefaultModel:q}),E((L)=>({...L,teammateDefaultModel:Hq(q)})),S("tengu_teammate_default_model_changed",{model:q})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(J0,{children:[G(L0,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):i==="ExternalIncludes"?z(H0,{children:[G(rq,{onDone:()=>{g(null),Q(!1)},externalIncludes:QQ(RJ)}),G(K,{dimColor:!0,children:z(J0,{children:[G(L0,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"disable external includes"})]})})]}):i==="OutputStyle"?z(H0,{children:[G(Jq,{initialStyle:k,onComplete:(q)=>{M0.current=!0,j(q??BZ),g(null),Q(!1),Z0("localSettings",{outputStyle:q}),S("tengu_output_style_changed",{style:q??BZ,source:"config_panel",settings_source:"localSettings"})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(J0,{children:[G(L0,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):i==="Language"?z(H0,{children:[G(Xq,{initialLanguage:w,onComplete:(q)=>{M0.current=!0,d(q),g(null),Q(!1),Z0("userSettings",{language:q}),S("tengu_language_changed",{language:q??"default",source:"config_panel"})},onCancel:()=>{g(null),Q(!1)}}),G(K,{dimColor:!0,children:z(J0,{children:[G(L0,{shortcut:"Enter",action:"confirm"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]}):i==="EnableAutoUpdates"?G(d0,{title:"Enable Auto-Updates",onCancel:()=>{g(null),Q(!1)},hideBorder:!0,hideInputGuide:!0,children:I0?.type!=="config"?z(H0,{children:[G(K,{children:I0?.type==="env"?"Auto-updates are controlled by an environment variable and cannot be changed here.":"Auto-updates are disabled in development builds."}),I0?.type==="env"&&z(K,{dimColor:!0,children:["Unset ",I0.envVar," to re-enable auto-updates."]})]}):G(i0,{options:[{label:"Enable with latest channel",value:"latest"},{label:"Enable with stable channel",value:"stable"}],onChange:(q)=>{M0.current=!0,g(null),Q(!1),y((X)=>({...X,autoUpdates:!0})),D({...h(),autoUpdates:!0}),Z0("userSettings",{autoUpdatesChannel:q,minimumVersion:void 0}),A((X)=>({...X,autoUpdatesChannel:q,minimumVersion:void 0})),S("tengu_autoupdate_enabled",{channel:q})}})}):i==="ChannelDowngrade"?G(rJ,{currentVersion:"99.0.0",onChoice:(q)=>{if(g(null),Q(!1),q==="cancel")return;M0.current=!0;let X={autoUpdatesChannel:"stable"};if(q==="stay")X.minimumVersion="99.0.0";Z0("userSettings",X),A((L)=>({...L,...X})),S("tengu_autoupdate_channel_changed",{channel:"stable",minimum_version_set:q==="stay"})}}):z(B,{flexDirection:"column",gap:1,marginY:F?void 0:1,children:[G(oq,{query:k0,isFocused:n&&!H,isTerminalFocused:$0,cursorOffset:OY,placeholder:"Search settings…"}),G(B,{flexDirection:"column",children:s.length===0?z(K,{dimColor:!0,italic:!0,children:['No settings match "',k0,'"']}):z(H0,{children:[IJ>0&&z(K,{dimColor:!0,children:[C0.arrowUp," ",IJ," more above"]}),s.slice(o,o+p).map((q,X)=>{let L=o+X;if(q.kind==="spacer")return G(K,{children:" "},q.id);if(q.kind==="header")return z(K,{dimColor:!0,children:[" ",q.label]},q.id);let R=q.item,f=L===$&&!H&&!n;return G(l.Fragment,{children:z(B,{children:[G(B,{width:FZ,flexShrink:0,paddingRight:1,children:z(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:[f?C0.pointer:" "," ",R.label]})}),G(B,{children:R.type==="boolean"?z(H0,{children:[G(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:R.value.toString()}),zY&&R.id==="thinkingEnabled"&&z(K,{color:"warning",children:[" ","Changing thinking mode mid-conversation will increase latency and may reduce quality."]})]}):R.id==="theme"?G(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:YX[R.value.toString()]??R.value.toString()}):R.id==="notifChannel"?G(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:G(XX,{value:R.value.toString()})}):R.id==="defaultPermissionMode"?G(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:Aq(R.value)}):R.id==="autoUpdatesChannel"&&I0?z(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:["disabled"," ",z(K,{dimColor:!0,children:["(",kq(I0),")"]})]}):G(K,{color:f?"suggestion":void 0,wrap:"truncate-end",children:R.value.toString()})},f?"selected":"unselected")]})},R.id)}),EJ>0&&z(K,{dimColor:!0,children:[C0.arrowDown," ",EJ," more below"]})]})}),H?G(K,{dimColor:!0,children:z(J0,{children:[G(L0,{shortcut:"←/→ tab",action:"switch"}),G(L0,{shortcut:"↓",action:"return"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"close"})]})}):n?G(K,{dimColor:!0,children:z(J0,{children:[G(K,{children:"Type to filter"}),G(L0,{shortcut:"Enter/↓",action:"select"}),G(L0,{shortcut:"↑",action:"tabs"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"clear"})]})}):G(K,{dimColor:!0,children:z(J0,{children:[G(T,{action:"select:accept",context:"Settings",fallback:"Space",description:"change"}),G(T,{action:"settings:close",context:"Settings",fallback:"Enter",description:"save"}),G(T,{action:"settings:search",context:"Settings",fallback:"/",description:"search"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]})})}function Hq(J){if(J===void 0)return kZ(cq());if(J===null)return"Default (leader's model)";return kZ(J)}function XX(J){let Z=eq.c(4),{value:Q}=J;switch(Q){case"auto":return"Auto";case"iterm2":{let Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["iTerm2 ",G(K,{dimColor:!0,children:"(OSC 9)"})]}),Z[0]=Y;else Y=Z[0];return Y}case"terminal_bell":{let Y;if(Z[1]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["Terminal Bell ",G(K,{dimColor:!0,children:"(\\a)"})]}),Z[1]=Y;else Y=Z[1];return Y}case"kitty":{let Y;if(Z[2]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["Kitty ",G(K,{dimColor:!0,children:"(OSC 99)"})]}),Z[2]=Y;else Y=Z[2];return Y}case"ghostty":{let Y;if(Z[3]===Symbol.for("react.memo_cache_sentinel"))Y=z(K,{children:["Ghostty ",G(K,{dimColor:!0,children:"(OSC 777)"})]}),Z[3]=Y;else Y=Z[3];return Y}case"iterm2_with_bell":return"iTerm2 w/ Bell";case"notifications_disabled":return"Disabled";default:return Q}}var eq,l,v,YX;var JQ=r(()=>{S0();l0();vZ();Eq();xY();Cq();Eq();Fq();mY();oY();IZ();vY();aY();sY();TJ();tY();Tq();eY();ZX();oJ();gZ();lJ();qq();Gq();GX();dY();c0();EZ();dq();UZ();JX();iY();pY();hJ();eJ();Dq();gY();lY();nY();rY();qX();XZ();cY();uY();QX();Wq();x();eq=u(b0(),1),l=u(F0(),1),v=u(F0(),1);YX={auto:"Auto (match terminal)",dark:"Dark mode",light:"Light mode","dark-daltonized":"Dark mode (colorblind-friendly)","light-daltonized":"Light mode (colorblind-friendly)","dark-ansi":"Dark mode (ANSI colors only)","light-ansi":"Light mode (ANSI colors only)",terminal:"Terminal default (inherit colors)",dracula:"Dracula","catppuccin-mocha":"Catppuccin Mocha (dark)","catppuccin-latte":"Catppuccin Latte (light)","tokyo-night":"Tokyo Night",nord:"Nord","gruvbox-dark":"Gruvbox Dark"}});function VZ(J){return typeof J==="object"&&J!==null}function N0(J){return typeof J==="string"&&J.trim()?J.trim():void 0}function r0(J){return typeof J==="number"&&Number.isFinite(J)?J:void 0}function eZ(J){return typeof J==="boolean"?J:void 0}function ZJ(J){let Z=r0(J);if(Z===void 0)return;return new Date(Z*1000).toISOString()}function CZ(J){if(!VZ(J))return;let Z=r0(J.used_percent)??r0(J.usedPercent);if(Z===void 0)return;let Q=r0(J.window_minutes)??r0(J.windowDurationMins)??(()=>{let V=r0(J.limit_window_seconds);return V===void 0?void 0:Math.round(V/60)})(),Y=ZJ(J.resets_at)??ZJ(J.resetsAt)??ZJ(J.reset_at);return{usedPercent:Z,windowMinutes:Q,resetsAt:Y}}function DQ(J){if(!VZ(J))return;let Z=eZ(J.has_credits)??eZ(J.hasCredits)??!1,Q=eZ(J.unlimited)??!1,Y=N0(J.balance);if(!Z&&!Q&&!Y)return;return{hasCredits:Z,unlimited:Q,balance:Y}}function GZ(J,Z){if(!VZ(J))return;let Q=N0(J.limit_name)??N0(J.limitName)??N0(J.limit_id)??N0(J.limitId)??Z,Y=CZ(J.primary)??CZ(J.primary_window),V=CZ(J.secondary)??CZ(J.secondary_window),H=DQ(J.credits);if(!Y&&!V&&!H)return;return{limitName:Q,primary:Y,secondary:V,credits:H}}function JJ(J,Z="codex"){if(Array.isArray(J))return J.map((Q,Y)=>GZ(Q,Y===0?Z:`${Z}-${Y+1}`)).filter((Q)=>Q!==void 0);if(!VZ(J))return[];return Object.entries(J).map(([Q,Y])=>GZ(Y,Q)).filter((Q)=>Q!==void 0)}function WX(J){let Z=N0(J.plan_type)??N0(J.planType),Q=[],Y=DQ(J.credits),V=GZ(J.rate_limit,"codex");if(V)V.credits??=Y,Q.push(V);else if(Y)Q.push({limitName:"codex",credits:Y});let H=GZ(J.code_review_rate_limit,"code review");if(H)Q.push(H);return Q.push(...JJ(J.additional_rate_limits??J.additionalRateLimits,"additional")),{planType:Z,snapshots:Q}}function HX(J){if(Array.isArray(J))return{snapshots:JJ(J)};if(!VZ(J))return{snapshots:[]};if("rate_limit"in J||"code_review_rate_limit"in J||"additional_rate_limits"in J||"credits"in J)return WX(J);let Z=J.rate_limits??J.rateLimits??J.rate_limits_by_limit_id??J.rateLimitsByLimitId;if(Z!==void 0)return{planType:N0(J.plan_type)??N0(J.planType),snapshots:JJ(Z)};let Q=GZ(J,"codex");return{planType:N0(J.plan_type)??N0(J.planType),snapshots:Q?[Q]:[]}}function o0(J){if(!J)return J;return J[0].toUpperCase()+J.slice(1)}function XQ(J,Z){if(J===void 0||J<=0)return Z;if(J===10080)return"weekly";if(J%1440===0)return`${J/1440}d`;if(J%60===0)return`${J/60}h`;return`${J}m`}function zX(J){let Z=J?.trim();if(!Z)return;let Q=Number.parseInt(Z,10);if(Number.isFinite(Q)&&`${Q}`===Z&&Q>0)return`${Q}`;let Y=Number.parseFloat(Z);if(Number.isFinite(Y)&&Y>0)return`${Math.round(Y)}`;return}function OX(J){if(!J?.hasCredits)return;if(J.unlimited)return{kind:"text",label:"Credits",value:"Unlimited"};let Z=zX(J.balance);if(!Z)return;return{kind:"text",label:"Credits",value:`${Z} credits`}}function FQ(J){let Z=[];for(let Q of J){let Y=Q.limitName.trim()||"codex",V=OX(Q.credits);if(!(Q.primary!==void 0||Q.secondary!==void 0||V!==void 0))continue;let O=Y.toLowerCase()!=="codex",F=Number(Q.primary!==void 0)+Number(Q.secondary!==void 0),P=O&&F===1;if(O&&!P)Z.push({kind:"text",label:`${o0(Y)} limit`,value:""});if(Q.primary){let U=o0(XQ(Q.primary.windowMinutes,"5h"));Z.push({kind:"window",label:P?`${o0(Y)} ${U} limit`:`${U} limit`,usedPercent:Q.primary.usedPercent,resetsAt:Q.primary.resetsAt})}if(Q.secondary){let U=o0(XQ(Q.secondary.windowMinutes,"weekly"));Z.push({kind:"window",label:P?`${o0(Y)} ${U} limit`:`${U} limit`,usedPercent:Q.secondary.usedPercent,resetsAt:Q.secondary.resetsAt})}if(V)Z.push(V)}return Z}function MQ(J){if(!J)return;return J.split(/[_\s-]+/).filter(Boolean).map((Z)=>o0(Z.toLowerCase())).join(" ")}function DX(J=WQ){return new URL("/backend-api/wham/usage",J).toString()}async function LQ(){let J=await KQ().catch(async(V)=>{return j0(`[codex] access token refresh failed before usage fetch: ${V instanceof Error?V.message:String(V)}`,{level:"warn"}),{refreshed:!1,credentials:await VQ()}}),Z=zQ();if(!HQ(Z.baseUrl))throw Error("Codex usage is only available with the official ChatGPT Codex backend.");let Q=OQ({storedCredentials:J.credentials});if(!Q.apiKey){let V=GQ()?"":", choose Codex OAuth in /provider",H=Q.authPath?`${V} or place a Codex auth.json at ${Q.authPath}`:V;throw Error(`Codex auth is required. Set CODEX_API_KEY${H}.`)}if(!Q.accountId)throw Error("Codex auth is missing chatgpt_account_id. Re-login with Codex OAuth, the Codex CLI, or set CHATGPT_ACCOUNT_ID/CODEX_ACCOUNT_ID.");let Y=await fetch(DX(Z.baseUrl),{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${Q.apiKey}`,"chatgpt-account-id":Q.accountId,originator:"claudin"},signal:AbortSignal.timeout(5000)});if(!Y.ok){let V=await Y.text().catch(()=>"unknown error");throw Error(`Codex usage error ${Y.status}: ${V}`)}return HX(await Y.json())}var NQ=r(()=>{VX();qJ();Dq();KX()});function FX({label:J,usedPercent:Z,resetsAt:Q,maxWidth:Y}){let V=Math.max(0,Math.min(100,Z)),H=`${Math.floor(V)}% used`,O=Q?`Resets ${SZ(Q,!0,!0)}`:void 0;if(Y>=62)return z(B,{flexDirection:"column",children:[G(K,{bold:!0,children:J}),z(B,{flexDirection:"row",gap:1,children:[G(s0,{ratio:V/100,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),G(K,{children:H})]}),O?G(K,{dimColor:!0,children:O}):null]});return z(B,{flexDirection:"column",children:[z(K,{children:[G(K,{bold:!0,children:J}),O?z(H0,{children:[G(K,{children:" "}),z(K,{dimColor:!0,children:["· ",O]})]}):null]}),G(s0,{ratio:V/100,width:Y,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),G(K,{children:H})]})}function MX({label:J,value:Z}){if(!Z)return G(K,{bold:!0,children:J});return z(K,{children:[G(K,{bold:!0,children:J}),z(K,{dimColor:!0,children:[" · ",Z]})]})}function UQ(){let[J,Z]=a0.useState(null),[Q,Y]=a0.useState(null),[V,H]=a0.useState(!0),{columns:O}=A0(),F=O-2,P=Math.min(F,80),U=PQ.useCallback(async()=>{H(!0),Y(null);try{Z(await LQ())}catch(M){U0(M),Y(M instanceof Error?M.message:"Failed to load Codex usage")}finally{H(!1)}},[]);if(a0.useEffect(()=>{U()},[U]),_("settings:retry",()=>{U()},{context:"Settings",isActive:!!Q&&!V}),Q)return z(B,{flexDirection:"column",gap:1,children:[z(K,{color:"error",children:["Error: ",Q]}),G(K,{dimColor:!0,children:z(J0,{children:[G(T,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!J)return z(B,{flexDirection:"column",gap:1,children:[G(K,{dimColor:!0,children:"Loading Codex usage data…"}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let W=FQ(J.snapshots),D=MQ(J.planType);return z(B,{flexDirection:"column",gap:1,width:"100%",children:[D?z(K,{dimColor:!0,children:["Plan: ",D]}):null,W.length===0?G(K,{dimColor:!0,children:"Codex usage data is not available for this account."}):null,W.map((M,N)=>M.kind==="window"?G(FX,{label:M.label,usedPercent:M.usedPercent,resetsAt:M.resetsAt,maxWidth:P},`${M.label}-${N}`):G(MX,{label:M.label,value:M.value},`${M.label}-${N}`)),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var PQ,a0;var AQ=r(()=>{XZ();S0();l0();NQ();QJ();IZ();c0();EZ();YJ();x();PQ=u(F0(),1),a0=u(F0(),1)});var KZ="https://api.minimax.io/v1",WZ="Usage details are not available for this MiniMax account. This plan or MiniMax endpoint may not expose quota status.";var XJ=()=>{};function h0(J){return typeof J==="object"&&J!==null}function q0(J){return typeof J==="string"&&J.trim()?J.trim():void 0}function VJ(J){if(typeof J==="number"&&Number.isFinite(J))return J;if(typeof J==="string"&&J.trim()){let Z=Number.parseFloat(J);if(Number.isFinite(Z))return Z}return}function fZ(J){return Math.max(0,Math.min(100,Math.round(J)))}function LX(J){if(typeof J==="string"){let Y=Date.parse(J);return Number.isNaN(Y)?J:new Date(Y).toISOString()}let Z=VJ(J);if(Z===void 0)return;let Q=Z>1000000000000?Z:Z*1000;return new Date(Q).toISOString()}function NX(J,Z){let Q=VJ(J);if(/remains?_time/i.test(Z)&&Q!==void 0){let Y=Q>604800?Q:Q*1000;return new Date(Date.now()+Y).toISOString()}return LX(J)}function HZ(J,Z){for(let Q of Z){let Y=VJ(J[Q]);if(Y!==void 0)return Y}return}function PX(J,Z){for(let Q of Z)if(J[Q]!==void 0)return NX(J[Q],Q);return}function zZ(J,Z){return Z.some((Q)=>J[Q]!==void 0)}function kQ(J){return J?J[0].toUpperCase()+J.slice(1):J}function UX(J){if(!J)return"MiniMax";let Z=J.trim();if(!Z)return"MiniMax";if(/[A-Z]/.test(Z))return Z;return Z.split(/[_\s-]+/).filter(Boolean).map((Q)=>kQ(Q.toLowerCase())).join(" ")}function AX(J){if(!J)return;return J.split(/[_\s-]+/).filter(Boolean).map((Z)=>kQ(Z.toLowerCase())).join(" ")}function IQ(J,Z){let Q=HZ(J,Z.percentKeys),Y=HZ(J,Z.remainingPercentKeys),V=HZ(J,Z.totalKeys),H=HZ(J,Z.remainingKeys),O=HZ(J,Z.usedKeys),F=V!==void 0&&O!==void 0?V-O:H,P;if(V!==void 0&&V>0&&O!==void 0)P=fZ(O/V*100);else if(V!==void 0&&V>0&&H!==void 0)P=fZ((V-H)/V*100);else if(Q!==void 0)P=fZ(Q);else if(Y!==void 0)P=fZ(100-Y);if(P===void 0)return;return{label:Z.label,usedPercent:P,remaining:F,total:V,resetsAt:PX(J,Z.resetKeys)}}function RX(J){let Z=q0(J.label)??q0(J.name)??q0(J.window_name)??q0(J.windowName)??"Limit";return IQ(J,{label:Z,percentKeys:["used_percent","usedPercent","utilization","usage_percentage","usagePercentage"],remainingPercentKeys:["usage_percent","usagePercent","remaining_percent","remainingPercent","percent_remaining","percentRemaining"],totalKeys:["total","quota","limit","max","entitlement"],remainingKeys:["remaining","remain","remains","left"],usedKeys:["used","usage","consumed"],resetKeys:["resets_at","reset_at","resetsAt","resetAt"]})}function kX(J){if(zZ(J,BX))return!0;return EQ.some((Z)=>zZ(J,Z.totalKeys)||zZ(J,Z.remainingKeys)||zZ(J,Z.usedKeys)||zZ(J,Z.percentKeys))}function GJ(J,Z){if(!h0(J))return;let Q=EQ.map((V)=>IQ(J,V)).filter((V)=>V!==void 0);if(Q.length===0){let V=RX(J);if(V)Q.push(V)}if(Q.length===0)return;return{limitName:q0(J.limit_name)??q0(J.limitName)??q0(J.model_name)??q0(J.modelName)??q0(J.name)??Z,windows:Q}}function RQ(J,Z="MiniMax"){if(Array.isArray(J))return J.map((Q,Y)=>GJ(Q,Y===0?Z:`${Z}-${Y+1}`)).filter((Q)=>Q!==void 0);if(!h0(J))return[];if(kX(J)){let Q=GJ(J,Z);return Q?[Q]:[]}return Object.entries(J).map(([Q,Y])=>GJ(Y,Q)).filter((Q)=>Q!==void 0)}function BQ(J=WZ,Z){return{availability:"unknown",planType:Z,snapshots:[],message:J}}function KJ(J){if(!h0(J))return BQ();let Z=AX(q0(J.plan_type)??q0(J.planType)??q0(J.subscription_type)??q0(J.subscriptionType)??q0(J.plan_name)??q0(J.planName)),Y=[J.data,J.result,J.model_remains,J.modelRemains,J.remains,J.usage,J.quotas,J.models,h0(J.data)?J.data.model_remains:void 0,h0(J.data)?J.data.modelRemains:void 0,h0(J.data)?J.data.models:void 0,h0(J.data)?J.data.quotas:void 0,h0(J.data)?J.data.remains:void 0].flatMap((H)=>RQ(H)).filter((H,O,F)=>{let P=`${H.limitName}:${H.windows.map((U)=>U.label).join("|")}`;return F.findIndex((U)=>`${U.limitName}:${U.windows.map((W)=>W.label).join("|")}`===P)===O});if(Y.length>0)return{availability:"available",planType:Z,snapshots:Y};let V=RQ(J);if(V.length>0)return{availability:"available",planType:Z,snapshots:V};return BQ(void 0,Z)}function IX(J){if(J.remaining===void 0||J.total===void 0||J.total<=0)return;return`${J.remaining}/${J.total} remaining`}function WJ(J){let Z=[];for(let Q of J){let Y=UX(Q.limitName),V=Y.toLowerCase()!=="minimax",H=V&&Q.windows.length===1;if(V&&!H)Z.push({kind:"text",label:`${Y} quota`,value:""});for(let O of Q.windows)Z.push({kind:"window",label:H?`${Y} ${O.label}`:O.label,usedPercent:O.usedPercent,resetsAt:O.resetsAt,extraSubtext:IX(O)})}return Z}var EQ,BX;var HJ=r(()=>{XJ();EQ=[{label:"5h limit",percentKeys:["interval_used_percent","intervalUsedPercent"],remainingPercentKeys:["usage_percent","usagePercent","interval_remaining_percent","intervalRemainingPercent"],totalKeys:["current_interval_total_count","currentIntervalTotalCount","max_interval_usage_count","maxIntervalUsageCount","interval_quota","intervalQuota","interval_limit","intervalLimit"],remainingKeys:["current_interval_remaining_count","currentIntervalRemainingCount","current_interval_remains_count","currentIntervalRemainsCount","interval_remaining","intervalRemaining","remaining_interval_usage_count","remainingIntervalUsageCount"],usedKeys:["current_interval_usage_count","currentIntervalUsageCount","interval_used","intervalUsed","current_interval_used_count","currentIntervalUsedCount","used_interval_usage_count","usedIntervalUsageCount"],resetKeys:["end_time","endTime","interval_resets_at","intervalResetsAt","interval_reset_at","intervalResetAt","remains_time","remainsTime"]},{label:"Weekly limit",percentKeys:["weekly_used_percent","weeklyUsedPercent"],remainingPercentKeys:["weekly_remaining_percent","weeklyRemainingPercent"],totalKeys:["max_weekly_usage_count","maxWeeklyUsageCount","weekly_quota","weeklyQuota","weekly_limit","weeklyLimit"],remainingKeys:["weekly_remaining","weeklyRemaining","remaining_weekly_usage_count","remainingWeeklyUsageCount"],usedKeys:["current_weekly_usage_count","currentWeeklyUsageCount","weekly_used","weeklyUsed","used_weekly_usage_count","usedWeeklyUsageCount"],resetKeys:["weekly_resets_at","weeklyResetsAt","weekly_reset_at","weeklyResetAt"]},{label:"Daily limit",percentKeys:["daily_used_percent","dailyUsedPercent"],remainingPercentKeys:["daily_remaining_percent","dailyRemainingPercent"],totalKeys:["max_daily_usage_count","maxDailyUsageCount","daily_quota","dailyQuota","daily_limit","dailyLimit"],remainingKeys:["daily_remaining","dailyRemaining","remaining_daily_usage_count","remainingDailyUsageCount"],usedKeys:["current_daily_usage_count","currentDailyUsageCount","daily_used","dailyUsed","used_daily_usage_count","usedDailyUsageCount"],resetKeys:["daily_resets_at","dailyResetsAt","daily_reset_at","dailyResetAt"]}],BX=["used_percent","usedPercent","utilization","usage_percentage","usagePercentage","total","quota","limit","max","entitlement","remaining","remain","remains","left","usage_percent","usagePercent","current_interval_total_count","current_interval_usage_count","current_interval_remaining_count","current_interval_remains_count","max_interval_usage_count","current_weekly_usage_count","max_weekly_usage_count","current_daily_usage_count","max_daily_usage_count"]});function CX(J){return J.replace(/\/+$/,"")}function fQ(J=w0()?.baseUrl??KZ){let Z=J.trim();return Z?CX(Z):KZ}function SX(J){let Z=J??w0()?.baseUrl;if(!Z?.trim())return{baseUrl:KZ,usedDefault:!0};return{baseUrl:fQ(Z),usedDefault:!1}}function CQ(J){return{availability:"unknown",snapshots:[],message:J}}function hQ(J){let{baseUrl:Z,usedDefault:Q}=SX(J);try{let Y=new URL(`${Z}/`);return[new URL("token_plan/remains",Y).toString(),new URL("api/openplatform/coding_plan/remains",Y).toString()]}catch{if(Q){let Y=new URL(`${KZ}/`);return[new URL("token_plan/remains",Y).toString(),new URL("api/openplatform/coding_plan/remains",Y).toString()]}throw Error(`MiniMax usage base URL is invalid: ${Z}`)}}async function zJ(){let J=w0()?.apiKey;if(!J)throw Error("MiniMax auth is required. Run /provider and configure a MiniMax profile.");let Z=hQ(),Q=[],Y=null;for(let V of Z){let H;try{H=await fetch(V,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,"Content-Type":"application/json","User-Agent":SQ()},signal:AbortSignal.timeout(5000)})}catch(F){j0(`[minimax] usage request failed for ${V}: ${F instanceof Error?F.message:String(F)}`,{level:"warn"}),Y=F instanceof Error?F:Error(String(F));continue}if(!H.ok){let F=await H.text().catch(()=>"");if([400,401,403,404].includes(H.status)){Q.push({status:H.status,body:F});continue}Y=Error(`MiniMax usage error ${H.status}: ${F||"unknown error"}`);continue}let O=KJ(await H.json());if(O.availability==="available")return O}if(Q.length>0){let V=Q[Q.length-1];return j0(`[minimax] usage endpoint returned non-fatal status ${V.status}: ${V.body}`,{level:"warn"}),CQ(WZ)}if(Y)throw Y;return CQ(WZ)}var yQ=r(()=>{Cq();qJ();EX();XJ();HJ()});var TQ=r(()=>{HJ();yQ()});function yX(J){let Z=Math.max(1,Math.ceil(J/60000)),Q=Math.floor(Z/1440),Y=Math.floor(Z%1440/60),V=Z%60;if(Q>0)return Y>0?`${Q}d ${Y}h`:`${Q}d`;if(Y>0)return V>0?`${Y}h ${V}m`:`${Y}h`;return`${V}m`}function TX(J,Z){if(!J)return;let Q=Date.parse(J);if(!Number.isFinite(Q))return;let Y=Q-Z;if(Y<=0)return"Resetting now";return`Resets in ${yX(Y)}`}function $X({label:J,usedPercent:Z,resetsAt:Q,extraSubtext:Y,maxWidth:V,nowMs:H}){let O=Math.max(0,Math.min(100,Z)),F=`${Math.floor(O)}% used`,P=TX(Q,H),U=[F,Y].filter((W)=>Boolean(W));return z(B,{flexDirection:"column",children:[z(K,{children:[G(K,{bold:!0,children:J}),P?z(K,{dimColor:!0,children:[" · ",P]}):null]}),z(B,{flexDirection:"row",gap:1,children:[G(s0,{ratio:O/100,width:Math.min(hX,Math.max(1,V)),fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),U.length>0?G(K,{dimColor:!0,children:U.join(" · ")}):null]})]})}function bX({label:J,value:Z}){if(!Z)return G(K,{bold:!0,children:J});return z(K,{children:[G(K,{bold:!0,children:J}),z(K,{dimColor:!0,children:[" · ",Z]})]})}function bQ(){let[J,Z]=y0.useState(null),[Q,Y]=y0.useState(null),[V,H]=y0.useState(!0),[O,F]=y0.useState(()=>Date.now()),{columns:P}=A0(),U=P-2,W=Math.min(U,80),D=$Q.useCallback(async()=>{H(!0),Y(null);try{Z(await zJ())}catch(N){U0(N),Y(N instanceof Error?N.message:"Failed to load MiniMax usage")}finally{H(!1)}},[]);if(y0.useEffect(()=>{D()},[D]),y0.useEffect(()=>{let N=setInterval(()=>{F(Date.now())},fX);return()=>clearInterval(N)},[]),_("settings:retry",()=>{D()},{context:"Settings",isActive:!!Q&&!V}),Q)return z(B,{flexDirection:"column",gap:1,children:[z(K,{color:"error",children:["Error: ",Q]}),G(K,{dimColor:!0,children:z(J0,{children:[G(T,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!J)return z(B,{flexDirection:"column",gap:1,children:[G(K,{dimColor:!0,children:"Loading MiniMax usage data…"}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let M=J.availability==="available"?WJ(J.snapshots):[];return z(B,{flexDirection:"column",gap:1,width:"100%",children:[J.planType?z(K,{dimColor:!0,children:["Plan: ",J.planType]}):null,J.availability==="unknown"?G(K,{dimColor:!0,children:J.message}):M.length===0?G(K,{dimColor:!0,children:"No MiniMax usage windows were returned for this account."}):null,M.map((N,A)=>N.kind==="window"?G($X,{label:N.label,usedPercent:N.usedPercent,resetsAt:N.resetsAt,extraSubtext:N.extraSubtext,maxWidth:W,nowMs:O},`${N.label}-${A}`):G(bX,{label:N.label,value:N.value},`${N.label}-${A}`)),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var $Q,y0,fX=30000,hX=18;var wQ=r(()=>{XZ();S0();l0();TQ();IZ();c0();EZ();YJ();x();$Q=u(F0(),1),y0=u(F0(),1)});function jQ({providerLabel:J}){return z(B,{flexDirection:"column",gap:1,children:[z(K,{dimColor:!0,children:["Usage details are not currently available for ",J,"."]}),G(K,{dimColor:!0,children:G(T,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var _Q=r(()=>{S0();c0();x()});import{readdir as pQ,readFile as xQ}from"fs/promises";import{join as OJ}from"path";async function vQ(J,Z){let Q;try{Q=await xQ(J,"utf-8")}catch(V){if(!DJ(V))j0(`usageContribution: skip ${J}: ${String(V)}`);return 0}if(Q.length>FJ)return 0;let Y=0;for(let V of Q.split(`
|
|
3
|
+
`)){if(!V)continue;let H;try{H=JSON.parse(V)}catch{continue}if(H.type!=="assistant")continue;if(!H.timestamp)continue;let O=Date.parse(H.timestamp);if(Number.isNaN(O)||O<Z)continue;let F=H.message?.usage;if(!F)continue;Y+=(F.input_tokens??0)+(F.output_tokens??0)+(F.cache_creation_input_tokens??0)+(F.cache_read_input_tokens??0)}return Y}async function cQ(J){let Z;try{Z=await pQ(J,{withFileTypes:!0})}catch(Y){if(DJ(Y))return[];throw Y}let Q=[];for(let Y of Z){let V=OJ(J,Y.name);if(Y.isDirectory())Q.push(...await cQ(V));else if(Y.isFile()&&xX.test(Y.name))Q.push(V)}return Q}async function cX(J){let Z=J.replace(/\.jsonl$/,".meta.json");try{let Q=await xQ(Z,"utf-8");return JSON.parse(Q).agentType||"subagent"}catch{return"subagent"}}async function MJ(J){let Z=Date.now()-vX[J],Q={window:J,totalTokens:0,sessionCount:0,subagentHeavyPct:0,agentBreakdown:[]},Y=gQ(),V;try{V=await pQ(Y,{withFileTypes:!0})}catch{return Q}let H=V.filter((D)=>D.isDirectory()).map((D)=>OJ(Y,D.name)),O=0,F=0,P=0,U=new Map;for(let D=0;D<H.length;D++){let M=H[D],N=await mQ(M);for(let[A,I]of N){if(I.mtime<Z)continue;let k=I.size>FJ?0:await vQ(I.path,Z),j=0,t=OJ(M,A,"subagents");for(let d of await cQ(t)){let m=await vQ(d,Z);if(m<=0)continue;j+=m;let $=await cX(d);U.set($,(U.get($)??0)+m)}let w=k+j;if(w<=0)continue;if(P++,O+=w,j/w>gX)F+=w}if(D%10===9)await new Promise((A)=>setImmediate(A))}if(O===0)return Q;let W=[...U.entries()].map(([D,M])=>({agentType:D,tokens:M,pct:M/O*100})).filter((D)=>D.tokens/O>=mX).sort((D,M)=>M.tokens-D.tokens).slice(0,pX);return{window:J,totalTokens:O,sessionCount:P,subagentHeavyPct:F/O*100,agentBreakdown:W}}var vX,gX=0.5,mX=0.05,pX=5,xX;var uQ=r(()=>{qJ();wX();jX();_X();vX={day:86400000,week:604800000},xX=/^agent-.*\.jsonl$/});function dQ(J){let{title:Z,totalCost:Q,apiDuration:Y,wallDuration:V,linesAdded:H,linesRemoved:O,modelUsage:F,unknownCost:P,bytesSaved:U}=J,W=Object.entries(F);if(Q===0&&W.length===0&&H===0&&O===0)return null;let D={};for(let[N,A]of W){let I=NJ(N);if(!D[I])D[I]={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};let k=D[I];k.inputTokens+=A.inputTokens,k.outputTokens+=A.outputTokens,k.cacheReadInputTokens+=A.cacheReadInputTokens,k.cacheCreationInputTokens+=A.cacheCreationInputTokens,k.webSearchRequests+=A.webSearchRequests,k.costUSD+=A.costUSD}let M=Object.entries(D);return z(B,{flexDirection:"column",children:[G(K,{bold:!0,children:Z}),z(K,{children:[G(K,{children:"Total cost: "}),G(K,{children:_0(Q)}),P&&G(K,{dimColor:!0,children:" (costs may be inaccurate due to usage of unknown models)"})]}),z(K,{children:["Total duration (API): ",OZ(Y)]}),z(K,{children:["Total duration (wall): ",OZ(V)]}),z(K,{children:["Total code changes: ",H," ",H===1?"line":"lines"," added, ",O," ",O===1?"line":"lines"," removed"]}),U!==void 0&&U>0&&z(K,{children:["Context tokens saved: ~",tQ(U/qY)," tokens"]}),M.length>0&&G(K,{children:"Usage by model:"}),M.map(([N,A])=>{let I=`${P0(A.inputTokens)} input, ${P0(A.outputTokens)} output`;if(A.cacheReadInputTokens>0)I+=`, ${P0(A.cacheReadInputTokens)} cache read`;if(A.cacheCreationInputTokens>0)I+=`, ${P0(A.cacheCreationInputTokens)} cache write`;if(A.webSearchRequests>0)I+=`, ${P0(A.webSearchRequests)} web search`;return I+=` (${_0(A.costUSD)})`,z(K,{children:[`${N}:`.padStart(21)," ",I]},N)})]})}function iQ(J={}){let Z=J.view??"global",[,Q]=c.useReducer((O)=>O+1,0);c.useEffect(()=>{let O=setInterval(()=>Q(),1000);return()=>clearInterval(O)},[]);let Y=LJ();if(Z==="session"){let O=lQ(),F=sQ(),P=oQ(),U=aQ();return G(dQ,{title:"Current session",totalCost:O,apiDuration:nQ(),wallDuration:rQ(),linesAdded:P,linesRemoved:U,modelUsage:F,unknownCost:Y,bytesSaved:QY()})}let V=PJ();if(!(V.totalCost!==0||Object.keys(V.modelUsage).length>0||V.totalLinesAdded!==0||V.totalLinesRemoved!==0))return null;return z(B,{flexDirection:"column",gap:1,children:[G(dQ,{title:"Project total (all sessions)",totalCost:V.totalCost,apiDuration:V.totalAPIDuration,wallDuration:V.totalDuration,linesAdded:V.totalLinesAdded,linesRemoved:V.totalLinesRemoved,modelUsage:V.modelUsage,unknownCost:Y}),G(K,{dimColor:!0,children:"Aggregated across all sessions in this project — includes the current session live."})]})}function UJ(J={}){if((J.view??"global")==="session")return G(B,{flexDirection:"column",gap:1,width:"100%",children:G(iQ,{view:"session"})});let Q=eQ();if(Q==="firstParty")return G(JG,{});let Y;if(Q==="codex")Y=G(UQ,{});else if(Q==="minimax")Y=G(bQ,{});else{let V={openai:"this OpenAI-compatible provider",gemini:"Google Gemini",github:"GitHub Copilot",mistral:"Mistral","nvidia-nim":"NVIDIA NIM",bedrock:"AWS Bedrock",vertex:"Google Vertex AI",foundry:"Microsoft Foundry"}[Q]??"this provider";Y=G(jQ,{providerLabel:V})}return z(B,{flexDirection:"column",gap:1,width:"100%",children:[G(iQ,{view:"global"}),Y,G(ZG,{})]})}function ZG(){let[J,Z]=c.useState("day"),[Q,Y]=c.useState(null),[V,H]=c.useState(!0),O=yZ.useCallback(async(U)=>{H(!0);try{Y(await MJ(U))}catch(W){U0(W),Y(null)}finally{H(!1)}},[]);c.useEffect(()=>{O(J)},[O,J]),_("settings:usageDay",()=>Z("day"),{context:"Settings",isActive:!0}),_("settings:usageWeek",()=>Z("week"),{context:"Settings",isActive:!0});let F=J==="day"?"last 24h":"last week",P=Q?.agentBreakdown[0];return z(B,{flexDirection:"column",width:"100%",children:[G(K,{bold:!0,children:"What's driving your token usage?"}),G(K,{dimColor:!0,children:"Approximate, based on local sessions on this machine — does not include other devices."}),G(K,{dimColor:!0,children:`${F[0].toUpperCase()}${F.slice(1)} · a characteristic of your usage, not a full breakdown`}),V&&!Q?G(K,{dimColor:!0,children:"Analyzing local sessions…"}):!Q||Q.totalTokens===0?G(K,{dimColor:!0,children:`No local session activity in the ${F}.`}):z(B,{flexDirection:"column",marginTop:1,children:[Q.subagentHeavyPct>=5&&z(B,{flexDirection:"column",children:[G(K,{children:`${Math.round(Q.subagentHeavyPct)}% of your token usage came from subagent-heavy sessions.`}),G(K,{dimColor:!0,children:XY})]}),P&&G(B,{flexDirection:"column",marginTop:Q.subagentHeavyPct>=5?1:0,children:G(K,{children:`${Math.round(P.pct)}% of your token usage came from subagents under '${P.agentType}'.`})}),Q.agentBreakdown.length>0&&z(B,{flexDirection:"column",marginTop:1,children:[z(K,{children:[G(K,{children:"Subagents".padEnd(24)}),G(K,{children:"% of usage"})]}),Q.agentBreakdown.map((U)=>z(K,{children:[G(K,{children:U.agentType.padEnd(24)}),G(K,{children:`${Math.round(U.pct)}%`})]},U.agentType))]})]}),G(K,{dimColor:!0,children:"d to day · w to week"})]})}function JG(){let J=x0(),Z=A0(),{columns:Q}=Z,{rows:Y}=TZ(Z),V=Math.min(Math.max(20,Q-2),80),H=Math.min(50,Math.max(20,V-14)),O=Math.max(15,Math.min(Math.floor(Y*0.8),30)),F=Math.max(5,O-3),[P,U]=c.useState(null),[W,D]=c.useState(null),[M,N]=c.useState(!0),[A,I]=c.useState("day"),[k,j]=c.useState(null),[t,w]=c.useState(!0),[d,m]=c.useState(0),[,$]=c.useReducer((E)=>E+1,0),Q0=yZ.useCallback(async()=>{N(!0),D(null);try{U(await YY())}catch(E){U0(E),D(E?.message||"Failed to load usage data")}finally{N(!1)}},[]),o=yZ.useCallback(async(E)=>{w(!0);try{j(await MJ(E))}catch(b){U0(b),j(null)}finally{w(!1)}},[]);c.useEffect(()=>{Q0()},[Q0]),c.useEffect(()=>{o(A)},[o,A]),c.useEffect(()=>{let E=setInterval(()=>$(),1000);return()=>clearInterval(E)},[]);let Y0=()=>m((E)=>Math.max(0,E-1)),n=()=>m((E)=>E+1),z0=()=>m((E)=>Math.max(0,E-F)),$0=()=>m((E)=>E+F),e={context:"Settings",isActive:!0};_("select:previous",Y0,e),_("select:next",n,e),_("scroll:lineUp",Y0,e),_("scroll:lineDown",n,e),_("scroll:pageUp",z0,e),_("scroll:pageDown",$0,e),_("settings:usageDay",()=>I("day"),e),_("settings:usageWeek",()=>I("week"),e),_("settings:retry",()=>{Q0(),o(A)},{context:"Settings",isActive:!!W&&!M});let v0=(E)=>K0.bold(E),X0=(E)=>K0.dim(E),FZ=(E)=>{let b=Math.min(1,Math.max(0,E)),a=Math.floor(b*H),V0="█".repeat(a),W0=" ".repeat(Math.max(0,H-a));return hZ(V0,J.rate_limit_fill,"foreground")+hZ(W0,J.rate_limit_empty,"background")},C=[],p=PJ();C.push(v0("Project total (all sessions)")),C.push("Total cost: "+_0(p.totalCost)+(LJ()?X0(" (costs may be inaccurate)"):"")),C.push("Total duration (API): "+OZ(p.totalAPIDuration)),C.push("Total duration (wall): "+OZ(p.totalDuration)),C.push(`Total code changes: ${p.totalLinesAdded} ${p.totalLinesAdded===1?"line":"lines"} added, ${p.totalLinesRemoved} ${p.totalLinesRemoved===1?"line":"lines"} removed`);let R0={};for(let[E,b]of Object.entries(p.modelUsage)){let a=NJ(E),V0=R0[a]??={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};V0.inputTokens+=b.inputTokens,V0.outputTokens+=b.outputTokens,V0.cacheReadInputTokens+=b.cacheReadInputTokens,V0.cacheCreationInputTokens+=b.cacheCreationInputTokens,V0.webSearchRequests+=b.webSearchRequests,V0.costUSD+=b.costUSD}let MZ=Object.entries(R0);if(MZ.length>0)C.push("Usage by model:");for(let[E,b]of MZ){let a=`${P0(b.inputTokens)} input, ${P0(b.outputTokens)} output`;if(b.cacheReadInputTokens>0)a+=`, ${P0(b.cacheReadInputTokens)} cache read`;if(b.cacheCreationInputTokens>0)a+=`, ${P0(b.cacheCreationInputTokens)} cache write`;if(b.webSearchRequests>0)a+=`, ${P0(b.webSearchRequests)} web search`;a+=` (${_0(b.costUSD)})`,C.push(`${`${E}:`.padStart(21)} ${a}`)}if(C.push(X0("Aggregated across all sessions in this project — includes the current session live.")),C.push(""),M&&!P)C.push(X0("Loading usage data…"));else if(W)C.push(hZ(`Could not load rate-limit data: ${W}`,J.error,"foreground")),C.push(X0("(cost/usage totals above are unaffected) · r to retry"));else if(P){let E=ZY(),b=E==="max"||E==="team"||E===null,a=[["Current session",P.five_hour],["Current week (all models)",P.seven_day],...b?[["Current week (Sonnet only)",P.seven_day_sonnet]]:[]];if(!a.some(([,e0])=>e0))C.push(X0("/usage is only available for subscription plans."));let V0=!0;for(let[e0,B0]of a){if(!B0||B0.utilization===null)continue;if(!V0)C.push("");if(V0=!1,C.push(v0(e0)),C.push(`${FZ(B0.utilization/100)} ${Math.floor(B0.utilization)}% used`),B0.resets_at)C.push(X0(`Resets ${SZ(B0.resets_at,!0,!0)}`))}let W0=P.extra_usage;if(W0?.is_enabled&&typeof W0.used_credits==="number"&&typeof W0.utilization==="number"&&W0.monthly_limit!=null)C.push(""),C.push(v0("Extra usage")),C.push(`${FZ(W0.utilization/100)} ${Math.floor(W0.utilization)}% used`),C.push(X0(`${_0(W0.used_credits/100,2)} / ${_0(W0.monthly_limit/100,2)} spent`))}C.push("");let g0=A==="day"?"last 24h":"last week";if(C.push(v0("What's driving your token usage?")),C.push(X0("Approximate, based on local sessions on this machine — does not include other devices.")),C.push(X0(`${g0[0].toUpperCase()}${g0.slice(1)} · a characteristic of your usage, not a full breakdown`)),t&&!k)C.push(X0("Analyzing local sessions…"));else if(!k||k.totalTokens===0)C.push(X0(`No local session activity in the ${g0}.`));else{if(k.subagentHeavyPct>=5)C.push(""),C.push(`${Math.round(k.subagentHeavyPct)}% of your token usage came from subagent-heavy sessions.`),C.push(X0(XY));let E=k.agentBreakdown[0];if(E)C.push(""),C.push(`${Math.round(E.pct)}% of your token usage came from subagents under '${E.agentType}'.`);if(k.agentBreakdown.length>0){C.push(""),C.push("Subagents".padEnd(24)+"% of usage");for(let b of k.agentBreakdown)C.push(b.agentType.padEnd(24)+`${Math.round(b.pct)}%`)}}let m0=Math.max(0,C.length-F);if(d>m0)m(m0);let p0=Math.min(d,m0),$Z=C.slice(p0,p0+F),G0=p0,t0=C.length-(p0+$Z.length);return z(B,{flexDirection:"column",width:"100%",children:[G(K,{dimColor:!0,children:G0>0?`↑ ${G0} more above`:" "}),G(JY,{lines:$Z,width:V}),G(K,{dimColor:!0,children:t0>0?`↓ ${t0} more below`:" "}),G(K,{dimColor:!0,children:"↑↓ scroll · d to day · w to week · Esc to close"})]})}var eX,yZ,c,XY="Each subagent runs its own requests. Be deliberate about spawning them — and consider a cheaper model for simpler subagents.";var GY=r(()=>{sX();oX();Tq();QJ();rX();nX();iX();Fq();XZ();S0();lX();UZ();l0();aX();QJ();IZ();dX();uX();c0();EZ();YJ();tX();AQ();wQ();_Q();uQ();x();eX=u(b0(),1),yZ=u(F0(),1),c=u(F0(),1)});function LK(J){let Z=HY.c(25),{onClose:Q,context:Y,defaultTab:V}=J,[H,O]=T0.useState(V),[F,P]=T0.useState(!1),[U,W]=T0.useState(!1),[D,M]=T0.useState(!1),N=u0(),{rows:A}=TZ(A0()),I=N?A+1:Math.max(15,Math.min(Math.floor(A*0.8),30)),[k]=T0.useState(YG);VY();let j;if(Z[0]!==Q||Z[1]!==F)j=()=>{if(F)return;Q("Status dialog dismissed",{display:"system"})},Z[0]=Q,Z[1]=F,Z[2]=j;else j=Z[2];let t=j,w=!F&&!(H==="Config"&&U)&&!(H==="Gates"&&D),d;if(Z[3]!==w)d={context:"Settings",isActive:w},Z[3]=w,Z[4]=d;else d=Z[4];_("confirm:no",t,d);let m;if(Z[5]!==Y||Z[6]!==k)m=G(DZ,{title:"Status",children:G(uJ,{context:Y,diagnosticsPromise:k})},"status"),Z[5]=Y,Z[6]=k,Z[7]=m;else m=Z[7];let $;if(Z[8]!==I||Z[9]!==Y||Z[10]!==Q)$=G(DZ,{title:"Config",children:G(T0.Suspense,{fallback:null,children:G(ZQ,{context:Y,onClose:Q,setTabsHidden:P,onIsSearchModeChange:W,contentHeight:I})})},"config"),Z[8]=I,Z[9]=Y,Z[10]=Q,Z[11]=$;else $=Z[11];let Q0;if(Z[12]===Symbol.for("react.memo_cache_sentinel"))Q0=[G(DZ,{title:"Usage",children:G(UJ,{view:"global"})},"usage"),G(DZ,{title:"Session",children:G(UJ,{view:"session"})},"session")],Z[12]=Q0;else Q0=Z[12];let o;if(Z[13]!==I)o=[],Z[13]=I,Z[14]=o;else o=Z[14];let Y0;if(Z[15]!==m||Z[16]!==$||Z[17]!==o)Y0=[m,$,...Q0,...o],Z[15]=m,Z[16]=$,Z[17]=o,Z[18]=Y0;else Y0=Z[18];let n=Y0,z0=V!=="Config"&&V!=="Gates",$0=F||N?void 0:I,e;if(Z[19]!==H||Z[20]!==$0||Z[21]!==z0||Z[22]!==n||Z[23]!==F)e=G(KY,{color:"permission",children:G(WY,{color:"permission",selectedTab:H,onTabChange:O,hidden:F,initialHeaderFocused:z0,contentHeight:$0,children:n})}),Z[19]=H,Z[20]=$0,Z[21]=z0,Z[22]=n,Z[23]=F,Z[24]=e;else e=Z[24];return e}function YG(){return cJ().catch(XG)}function XG(){return[]}var HY,T0;var GG=r(()=>{l0();qG();XZ();UZ();QG();dq();dJ();JQ();GY();x();HY=u(b0(),1),T0=u(F0(),1)});
|
|
4
|
+
export{LK as Pg,GG as Qg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{HQ as r,IS as i,bD as K,dD as I,eD as _,gD as p,kC as P,qC as b,wC as j,wQ as f,xQ as L,xv as T}from"./cli-1.1.6-ckg7fah6.mjs";import{qW as A,rW as n}from"./cli-1.1.6-skhrp917.mjs";import{Aja as C,xja as E}from"./cli-1.1.6-0a0rct1w.mjs";import{Aka as Z,Dja as F,Dka as u,Fja as S,mka as M,qka as m}from"./cli-1.1.6-rvy9sw8e.mjs";import{Cqa as v,Xma as Y,Yma as k,_qa as c}from"./cli-1.1.6-dsx3y9mh.mjs";n();c();r();C();p();P();S();u();m();i();k();import*as H from"path";var d=1000,o=500,l=300,e=2000,h=typeof Bun<"u",x=null,y=null,Q=new Set,B=!1,D=!1,V=!1,X=null,W=Y(),U=null;async function t(){if(B||D)return;if(B=!0,!V)V=!0,_(()=>{f(),W.emit()});let q=await a();if(q.length===0)return;Z(`Watching for changes in skill/command directories: ${q.join(", ")}...`),x=A.watch(q,{persistent:!1,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:U?.stabilityThreshold??d,pollInterval:U?.pollInterval??o},ignored:(w,z)=>{if(z&&!z.isFile()&&!z.isDirectory())return!0;return w.split(H.sep).some((J)=>J===".git")},ignorePermissionErrors:!0,usePolling:h,interval:U?.chokidarInterval??e,atomic:!0}),x.on("add",$),x.on("change",$),x.on("unlink",$),X=F(async()=>{await g()})}function g(){if(D=!0,X)X(),X=null;let q=Promise.resolve();if(x)q=x.close(),x=null;if(y)clearTimeout(y),y=null;return Q.clear(),W.clear(),q}var s=W.subscribe;async function a(){let q=M(),w=[],z=K("userSettings","skills");if(z)try{await q.stat(z),w.push(z)}catch{}let J=K("userSettings","commands");if(J)try{await q.stat(J),w.push(J)}catch{}let N=K("projectSettings","skills");if(N)try{let G=H.resolve(N);await q.stat(G),w.push(G)}catch{}let O=K("projectSettings","commands");if(O)try{let G=H.resolve(O);await q.stat(G),w.push(G)}catch{}for(let G of v()){let R=H.join(G,".claudin","skills");try{await q.stat(R),w.push(R)}catch{}}return w}function $(q){Z(`Detected skill change: ${q}`),E("tengu_skill_file_changed",{source:"chokidar"}),qq(q)}function qq(q){if(Q.add(q),y)clearTimeout(y);y=setTimeout(async()=>{y=null;let w=[...Q];Q.clear();let z=await j("skills",w[0]);if(b(z)){Z(`ConfigChange hook blocked skill reload (${w.length} paths)`);return}I(),L(),T(),W.emit()},U?.reloadDebounce??l)}async function wq(q){if(x)await x.close(),x=null;if(y)clearTimeout(y),y=null;Q.clear(),W.clear(),B=!1,D=!1,U=q??null}var Zq={initialize:t,dispose:g,subscribe:s,resetForTesting:wq};
|
|
2
|
+
export{Zq as fb};
|