@claudiolabs/claudin 1.1.16 → 1.1.17
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.17-c0szwp8n.mjs +1 -0
- package/dist/chunks/App-1.1.17-02e9gv69.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.17-jxfbym1r.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.17-6yp2beyh.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.17-w9xsetq9.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.17-84z0pr68.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.17-q46af0nw.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.17-ew4a8tt8.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.17-rmqcdxg8.mjs +6 -0
- package/dist/chunks/Doctor-1.1.17-hg2xast7.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.17-9bpc3q6s.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.17-k5e62crs.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.17-dsnkhped.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.17-kvhxeef5.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.17-a4rrxzp6.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.17-4rfmem0t.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.17-e9mp9qde.mjs +1 -0
- package/dist/chunks/REPL-1.1.17-4wy9nbxj.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.17-yqrt4v79.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.17-3sr5b9tz.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.17-dkwbndzq.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.17-f8qa4fjm.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.17-21kb50xj.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.17-0kmr0pvg.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.17-8beq3avk.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.17-z786dzeg.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.17-x2aq5sx0.mjs +1 -0
- package/dist/chunks/add-dir-1.1.17-2s13eqzw.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.17-ct1sy6xb.mjs +1 -0
- package/dist/chunks/agents-1.1.17-550b7p8x.mjs +110 -0
- package/dist/chunks/agents-1.1.17-r5c8tpkr.mjs +3 -0
- package/dist/chunks/api-1.1.17-75x5tmes.mjs +1 -0
- package/dist/chunks/asciicast-1.1.17-79trcjfv.mjs +1 -0
- package/dist/chunks/assistant-1.1.17-dbbtqfan.mjs +1 -0
- package/dist/chunks/auth-1.1.17-8f3fach8.mjs +1 -0
- package/dist/chunks/auth-1.1.17-m8h26316.mjs +1 -0
- package/dist/chunks/autoMode-1.1.17-qc59qrkd.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.17-eget172p.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.17-hn3tt3zt.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.17-v11kpga8.mjs +1 -0
- package/dist/chunks/branch-1.1.17-w3zktkvs.mjs +4 -0
- package/dist/chunks/bridge-1.1.17-x5r3w789.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.17-kce97mnv.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.17-75j54src.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.17-4mqk6cqv.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.17-tnq9hpp2.mjs +1 -0
- package/dist/chunks/btw-1.1.17-45g5jhjr.mjs +1 -0
- package/dist/chunks/buddy-1.1.17-axejc0a1.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.17-x0n3bj9h.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.17-54ab6ndm.mjs +4 -0
- package/dist/chunks/caches-1.1.17-tqxvw7fb.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.1.17-rrzswj35.mjs +1 -0
- package/dist/chunks/claudemd-1.1.17-y5mkq5gq.mjs +1 -0
- package/dist/chunks/clear-1.1.17-6eyrsqrw.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.17-22ezdweq.mjs +1 -0
- package/dist/chunks/cli-1.1.17-0511dy9y.mjs +2 -0
- package/dist/chunks/cli-1.1.17-06mdd80y.mjs +2 -0
- package/dist/chunks/cli-1.1.17-09c1vkqx.mjs +2 -0
- package/dist/chunks/cli-1.1.17-0d7fthp5.mjs +58 -0
- package/dist/chunks/cli-1.1.17-0p0ak3zs.mjs +2 -0
- package/dist/chunks/cli-1.1.17-18k7783y.mjs +20 -0
- package/dist/chunks/cli-1.1.17-1fvh83yv.mjs +7 -0
- package/dist/chunks/cli-1.1.17-1nxc4dk2.mjs +12 -0
- package/dist/chunks/cli-1.1.17-1v8knfbw.mjs +2 -0
- package/dist/chunks/cli-1.1.17-1w1dgmsf.mjs +5 -0
- package/dist/chunks/cli-1.1.17-2b4keqra.mjs +4 -0
- package/dist/chunks/cli-1.1.17-2bc3gqw5.mjs +6 -0
- package/dist/chunks/cli-1.1.17-2jv9761d.mjs +2 -0
- package/dist/chunks/cli-1.1.17-2pvpn49s.mjs +3 -0
- package/dist/chunks/cli-1.1.17-2spbpwrx.mjs +2 -0
- package/dist/chunks/cli-1.1.17-2szs1chw.mjs +2 -0
- package/dist/chunks/cli-1.1.17-2z1g2hjb.mjs +4 -0
- package/dist/chunks/cli-1.1.17-3bkjnp3z.mjs +25 -0
- package/dist/chunks/cli-1.1.17-3jqe0rga.mjs +3 -0
- package/dist/chunks/cli-1.1.17-3mtgr9ch.mjs +3 -0
- package/dist/chunks/cli-1.1.17-3r1p3ddm.mjs +2 -0
- package/dist/chunks/cli-1.1.17-3sy6b0hb.mjs +4 -0
- package/dist/chunks/cli-1.1.17-3v5m3zqf.mjs +2 -0
- package/dist/chunks/cli-1.1.17-3z8hnad1.mjs +2 -0
- package/dist/chunks/cli-1.1.17-40gj2tc0.mjs +2 -0
- package/dist/chunks/cli-1.1.17-40w0wha0.mjs +2 -0
- package/dist/chunks/cli-1.1.17-44fk8h9v.mjs +6 -0
- package/dist/chunks/cli-1.1.17-4cxy3tsf.mjs +2 -0
- package/dist/chunks/cli-1.1.17-4egkrc4y.mjs +2 -0
- package/dist/chunks/cli-1.1.17-4yvz970v.mjs +2 -0
- package/dist/chunks/cli-1.1.17-545688c0.mjs +2 -0
- package/dist/chunks/cli-1.1.17-5bbnw0z1.mjs +2 -0
- package/dist/chunks/cli-1.1.17-5ckk64dj.mjs +3 -0
- package/dist/chunks/cli-1.1.17-5eapymd7.mjs +25 -0
- package/dist/chunks/cli-1.1.17-5h6k67gj.mjs +39 -0
- package/dist/chunks/cli-1.1.17-5rfxkg0q.mjs +2 -0
- package/dist/chunks/cli-1.1.17-5ytk3hr5.mjs +2 -0
- package/dist/chunks/cli-1.1.17-60mezybh.mjs +2 -0
- package/dist/chunks/cli-1.1.17-62yjss1h.mjs +2 -0
- package/dist/chunks/cli-1.1.17-66c4sw6g.mjs +2 -0
- package/dist/chunks/cli-1.1.17-6e7rvf1a.mjs +2 -0
- package/dist/chunks/cli-1.1.17-6ee0nqae.mjs +2 -0
- package/dist/chunks/cli-1.1.17-6gfvdt7y.mjs +8 -0
- package/dist/chunks/cli-1.1.17-6jzph4h7.mjs +3 -0
- package/dist/chunks/cli-1.1.17-6rx20w90.mjs +2 -0
- package/dist/chunks/cli-1.1.17-6wdwjtdj.mjs +7 -0
- package/dist/chunks/cli-1.1.17-6xnsg3vj.mjs +2 -0
- package/dist/chunks/cli-1.1.17-6yqbrqsj.mjs +4 -0
- package/dist/chunks/cli-1.1.17-787fk73v.mjs +3 -0
- package/dist/chunks/cli-1.1.17-7n4s8n50.mjs +6 -0
- package/dist/chunks/cli-1.1.17-83bggr64.mjs +3 -0
- package/dist/chunks/cli-1.1.17-848t1b19.mjs +2 -0
- package/dist/chunks/cli-1.1.17-85fga8dq.mjs +2 -0
- package/dist/chunks/cli-1.1.17-85mcc9n7.mjs +2 -0
- package/dist/chunks/cli-1.1.17-86a50dqm.mjs +2 -0
- package/dist/chunks/cli-1.1.17-8ae45qsd.mjs +6 -0
- package/dist/chunks/cli-1.1.17-8pkspqzx.mjs +2 -0
- package/dist/chunks/cli-1.1.17-8yryp8zt.mjs +2 -0
- package/dist/chunks/cli-1.1.17-91shm790.mjs +2 -0
- package/dist/chunks/cli-1.1.17-937ws80k.mjs +2 -0
- package/dist/chunks/cli-1.1.17-95kegjhq.mjs +2 -0
- package/dist/chunks/cli-1.1.17-9bq6vj3x.mjs +2 -0
- package/dist/chunks/cli-1.1.17-9dv8cb2e.mjs +2 -0
- package/dist/chunks/cli-1.1.17-9nvn8chy.mjs +21 -0
- package/dist/chunks/cli-1.1.17-9pb21bzq.mjs +2 -0
- package/dist/chunks/cli-1.1.17-9pv5wym1.mjs +2 -0
- package/dist/chunks/cli-1.1.17-9q30wadt.mjs +17 -0
- package/dist/chunks/cli-1.1.17-9rtpxyk6.mjs +2 -0
- package/dist/chunks/cli-1.1.17-9wgw338h.mjs +2 -0
- package/dist/chunks/cli-1.1.17-adz6qec3.mjs +2 -0
- package/dist/chunks/cli-1.1.17-amta49a1.mjs +2 -0
- package/dist/chunks/cli-1.1.17-amvnbvkb.mjs +66 -0
- package/dist/chunks/cli-1.1.17-arwr4e36.mjs +2 -0
- package/dist/chunks/cli-1.1.17-av45k1a0.mjs +15 -0
- package/dist/chunks/cli-1.1.17-avc9ck1v.mjs +2 -0
- package/dist/chunks/cli-1.1.17-b1g8n716.mjs +2 -0
- package/dist/chunks/cli-1.1.17-b5btm8nn.mjs +5 -0
- package/dist/chunks/cli-1.1.17-b6178p3e.mjs +2 -0
- package/dist/chunks/cli-1.1.17-bg6qdrwm.mjs +2 -0
- package/dist/chunks/cli-1.1.17-bj81ampw.mjs +3 -0
- package/dist/chunks/cli-1.1.17-brvf3613.mjs +3 -0
- package/dist/chunks/cli-1.1.17-bw27qnmm.mjs +2 -0
- package/dist/chunks/cli-1.1.17-bw4gf7se.mjs +2 -0
- package/dist/chunks/cli-1.1.17-bzw849yw.mjs +2 -0
- package/dist/chunks/cli-1.1.17-c4wdrmzx.mjs +3 -0
- package/dist/chunks/cli-1.1.17-c858dzpc.mjs +2 -0
- package/dist/chunks/cli-1.1.17-cddbmrdk.mjs +2 -0
- package/dist/chunks/cli-1.1.17-cek6be4z.mjs +15 -0
- package/dist/chunks/cli-1.1.17-chsbt03k.mjs +2 -0
- package/dist/chunks/cli-1.1.17-cnp784zh.mjs +2 -0
- package/dist/chunks/cli-1.1.17-ct0r352g.mjs +2 -0
- package/dist/chunks/cli-1.1.17-cvtpmgr1.mjs +16 -0
- package/dist/chunks/cli-1.1.17-d24yw7cv.mjs +50 -0
- package/dist/chunks/cli-1.1.17-d8zh7smn.mjs +3 -0
- package/dist/chunks/cli-1.1.17-d9y6k8vc.mjs +2 -0
- package/dist/chunks/cli-1.1.17-db7epgkw.mjs +2 -0
- package/dist/chunks/cli-1.1.17-dhbj7k9k.mjs +2 -0
- package/dist/chunks/cli-1.1.17-dp5q3hgg.mjs +2 -0
- package/dist/chunks/cli-1.1.17-e8bd5mhc.mjs +2 -0
- package/dist/chunks/cli-1.1.17-egp0jwn1.mjs +6 -0
- package/dist/chunks/cli-1.1.17-ete62cd3.mjs +2 -0
- package/dist/chunks/cli-1.1.17-evytxpaj.mjs +4 -0
- package/dist/chunks/cli-1.1.17-f0f3ww1e.mjs +2 -0
- package/dist/chunks/cli-1.1.17-f29ngxbd.mjs +2 -0
- package/dist/chunks/cli-1.1.17-f4eghwer.mjs +2 -0
- package/dist/chunks/cli-1.1.17-fc8raa73.mjs +2 -0
- package/dist/chunks/cli-1.1.17-fc9ah2rx.mjs +2 -0
- package/dist/chunks/cli-1.1.17-fn3aawry.mjs +2 -0
- package/dist/chunks/cli-1.1.17-fpt9fhj3.mjs +2 -0
- package/dist/chunks/cli-1.1.17-frwjbpkz.mjs +12 -0
- package/dist/chunks/cli-1.1.17-fzsavwtg.mjs +133 -0
- package/dist/chunks/cli-1.1.17-g02c88z9.mjs +2 -0
- package/dist/chunks/cli-1.1.17-g0r7knn3.mjs +9 -0
- package/dist/chunks/cli-1.1.17-g8x1ae0n.mjs +2 -0
- package/dist/chunks/cli-1.1.17-gbx2evhw.mjs +2 -0
- package/dist/chunks/cli-1.1.17-gjjv9pf2.mjs +2 -0
- package/dist/chunks/cli-1.1.17-grwds6h6.mjs +2 -0
- package/dist/chunks/cli-1.1.17-gy86radb.mjs +6 -0
- package/dist/chunks/cli-1.1.17-gz7gazer.mjs +2 -0
- package/dist/chunks/cli-1.1.17-h68j8yr4.mjs +2 -0
- package/dist/chunks/cli-1.1.17-h899gx3g.mjs +59 -0
- package/dist/chunks/cli-1.1.17-hk50rvfx.mjs +2 -0
- package/dist/chunks/cli-1.1.17-hv7vtr92.mjs +2 -0
- package/dist/chunks/cli-1.1.17-j0rsgbr3.mjs +2 -0
- package/dist/chunks/cli-1.1.17-j7w7vk9q.mjs +4 -0
- package/dist/chunks/cli-1.1.17-ja7d18ym.mjs +2 -0
- package/dist/chunks/cli-1.1.17-jbg9ze8v.mjs +26 -0
- package/dist/chunks/cli-1.1.17-jbmze4s1.mjs +3 -0
- package/dist/chunks/cli-1.1.17-jd6hwz1t.mjs +18 -0
- package/dist/chunks/cli-1.1.17-jfrmnvzh.mjs +42 -0
- package/dist/chunks/cli-1.1.17-jmhry9pe.mjs +2 -0
- package/dist/chunks/cli-1.1.17-jyzpxwq4.mjs +2 -0
- package/dist/chunks/cli-1.1.17-k2ygh79g.mjs +24 -0
- package/dist/chunks/cli-1.1.17-k4cv7tcx.mjs +2 -0
- package/dist/chunks/cli-1.1.17-k6xg5a3t.mjs +2 -0
- package/dist/chunks/cli-1.1.17-kasvn1wv.mjs +2 -0
- package/dist/chunks/cli-1.1.17-kdycyp8n.mjs +4 -0
- package/dist/chunks/cli-1.1.17-kjk1ddpc.mjs +2 -0
- package/dist/chunks/cli-1.1.17-kk19mmhc.mjs +17 -0
- package/dist/chunks/cli-1.1.17-krb62aen.mjs +2 -0
- package/dist/chunks/cli-1.1.17-mc6hgzsa.mjs +4 -0
- package/dist/chunks/cli-1.1.17-mvgrc9gx.mjs +2 -0
- package/dist/chunks/cli-1.1.17-n2dct122.mjs +2 -0
- package/dist/chunks/cli-1.1.17-n4xn5c5m.mjs +34 -0
- package/dist/chunks/cli-1.1.17-nes161na.mjs +2 -0
- package/dist/chunks/cli-1.1.17-nhn5qa9g.mjs +45 -0
- package/dist/chunks/cli-1.1.17-nr1fn5ws.mjs +2 -0
- package/dist/chunks/cli-1.1.17-p7mq618q.mjs +2 -0
- package/dist/chunks/cli-1.1.17-phaqkjy5.mjs +3 -0
- package/dist/chunks/cli-1.1.17-pmner0m4.mjs +206 -0
- package/dist/chunks/cli-1.1.17-q6fve29k.mjs +2 -0
- package/dist/chunks/cli-1.1.17-q7f9amqd.mjs +2 -0
- package/dist/chunks/cli-1.1.17-qr727b7j.mjs +18 -0
- package/dist/chunks/cli-1.1.17-qwkbwe37.mjs +2 -0
- package/dist/chunks/cli-1.1.17-r47egjp3.mjs +2 -0
- package/dist/chunks/cli-1.1.17-rak849bn.mjs +3 -0
- package/dist/chunks/cli-1.1.17-rgzfxape.mjs +2 -0
- package/dist/chunks/cli-1.1.17-rpac3qey.mjs +2 -0
- package/dist/chunks/cli-1.1.17-rv9n4f0j.mjs +2 -0
- package/dist/chunks/cli-1.1.17-ry9v8zr7.mjs +2 -0
- package/dist/chunks/cli-1.1.17-s0w3hc9t.mjs +4 -0
- package/dist/chunks/cli-1.1.17-s6rzrasx.mjs +2 -0
- package/dist/chunks/cli-1.1.17-s9617g9k.mjs +2 -0
- package/dist/chunks/cli-1.1.17-sa6xwtgz.mjs +1 -0
- package/dist/chunks/cli-1.1.17-sekbxc10.mjs +24 -0
- package/dist/chunks/cli-1.1.17-sf4te5vd.mjs +2 -0
- package/dist/chunks/cli-1.1.17-sh93pnws.mjs +2 -0
- package/dist/chunks/cli-1.1.17-spygywkr.mjs +2 -0
- package/dist/chunks/cli-1.1.17-sqnbm5cb.mjs +2 -0
- package/dist/chunks/cli-1.1.17-ss5f6ezq.mjs +2 -0
- package/dist/chunks/cli-1.1.17-ssjqqbnv.mjs +2 -0
- package/dist/chunks/cli-1.1.17-sx4yg7br.mjs +2 -0
- package/dist/chunks/cli-1.1.17-sxvjn3ne.mjs +2 -0
- package/dist/chunks/cli-1.1.17-t059h154.mjs +2 -0
- package/dist/chunks/cli-1.1.17-tcxq0ah8.mjs +2 -0
- package/dist/chunks/cli-1.1.17-tjtarhk9.mjs +5408 -0
- package/dist/chunks/cli-1.1.17-tkz7x0rj.mjs +2 -0
- package/dist/chunks/cli-1.1.17-v5nv0awt.mjs +2 -0
- package/dist/chunks/cli-1.1.17-vecw37vp.mjs +2 -0
- package/dist/chunks/cli-1.1.17-vewrwcsz.mjs +2 -0
- package/dist/chunks/cli-1.1.17-vj9h10jw.mjs +2 -0
- package/dist/chunks/cli-1.1.17-vpgxna04.mjs +2 -0
- package/dist/chunks/cli-1.1.17-vya6g1gj.mjs +2 -0
- package/dist/chunks/cli-1.1.17-vzhs0tcz.mjs +2 -0
- package/dist/chunks/cli-1.1.17-w70hp8av.mjs +2 -0
- package/dist/chunks/cli-1.1.17-w8ycz611.mjs +4 -0
- package/dist/chunks/cli-1.1.17-w9jr2baa.mjs +2 -0
- package/dist/chunks/cli-1.1.17-wmy7x7p1.mjs +3 -0
- package/dist/chunks/cli-1.1.17-wpw25vs3.mjs +2 -0
- package/dist/chunks/cli-1.1.17-wraax29e.mjs +2 -0
- package/dist/chunks/cli-1.1.17-xmwmqrg5.mjs +2 -0
- package/dist/chunks/cli-1.1.17-xpxk1a24.mjs +2 -0
- package/dist/chunks/cli-1.1.17-xqsq5e1g.mjs +2 -0
- package/dist/chunks/cli-1.1.17-xr6d85ak.mjs +24 -0
- package/dist/chunks/cli-1.1.17-xyvhfz5c.mjs +133 -0
- package/dist/chunks/cli-1.1.17-y590316j.mjs +2 -0
- package/dist/chunks/cli-1.1.17-y9v9t43m.mjs +2 -0
- package/dist/chunks/cli-1.1.17-yc5h2t8c.mjs +2 -0
- package/dist/chunks/cli-1.1.17-yexr9jg1.mjs +2 -0
- package/dist/chunks/cli-1.1.17-ymeaeqf8.mjs +15 -0
- package/dist/chunks/cli-1.1.17-ys4xrvjv.mjs +2 -0
- package/dist/chunks/cli-1.1.17-yzm3tm0n.mjs +2 -0
- package/dist/chunks/cli-1.1.17-z3nzbxwq.mjs +24 -0
- package/dist/chunks/cli-1.1.17-z8hph2r6.mjs +2 -0
- package/dist/chunks/cli-1.1.17-zeqbjpg8.mjs +2 -0
- package/dist/chunks/cli-1.1.17-zhbqhsnh.mjs +2 -0
- package/dist/chunks/cli-1.1.17-znjf3r1w.mjs +2 -0
- package/dist/chunks/cli-1.1.17-zs8ffrtz.mjs +9 -0
- package/dist/chunks/cli-1.1.17-zsygz35e.mjs +2 -0
- package/dist/chunks/client-1.1.17-nagqj7bf.mjs +1 -0
- package/dist/chunks/color-1.1.17-p6y05fhc.mjs +1 -0
- package/dist/chunks/compact-1.1.17-pzzrynbb.mjs +3 -0
- package/dist/chunks/config-1.1.17-m2ajzt0e.mjs +1 -0
- package/dist/chunks/config-1.1.17-wmdy8158.mjs +1 -0
- package/dist/chunks/constants-1.1.17-v8sj602z.mjs +1 -0
- package/dist/chunks/context-1.1.17-7e2bk0as.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.17-e84cts6x.mjs +1 -0
- package/dist/chunks/conversation-1.1.17-9xvxk3r2.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.17-fqvd03w0.mjs +1 -0
- package/dist/chunks/copy-1.1.17-easn9kr0.mjs +9 -0
- package/dist/chunks/cost-1.1.17-nxtewzxf.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.17-6ewgn22a.mjs +1 -0
- package/dist/chunks/createSession-1.1.17-86r1zzgv.mjs +1 -0
- package/dist/chunks/debug-1.1.17-z47bgb2r.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.17-jf0axhv5.mjs +1534 -0
- package/dist/chunks/desktop-1.1.17-a995qrj4.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.17-a8w7dp77.mjs +1 -0
- package/dist/chunks/detection-1.1.17-rm57w2ve.mjs +1 -0
- package/dist/chunks/diff-1.1.17-nhrc58mf.mjs +1 -0
- package/dist/chunks/doctor-1.1.17-fbcrp14n.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.17-e8d49da2.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.17-tb2wa4gd.mjs +1 -0
- package/dist/chunks/effort-1.1.17-exyt2hn8.mjs +13 -0
- package/dist/chunks/engine-1.1.17-amrae3h8.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.17-cxcxqyr2.mjs +1 -0
- package/dist/chunks/envUtils-1.1.17-74s3e3r7.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.17-r6fm53e4.mjs +1 -0
- package/dist/chunks/environments-1.1.17-eefk71xc.mjs +1 -0
- package/dist/chunks/errors-1.1.17-f3hxdv36.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.17-fq7g2dra.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.17-b5j6ewkj.mjs +1 -0
- package/dist/chunks/exit-1.1.17-69eys61s.mjs +1 -0
- package/dist/chunks/explorer-1.1.17-9rnyanfh.mjs +1 -0
- package/dist/chunks/export-1.1.17-ftdkrgt6.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.17-4d5r749p.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.17-pfnqg70z.mjs +1 -0
- package/dist/chunks/fast-1.1.17-6fhr21cx.mjs +1 -0
- package/dist/chunks/feedback-1.1.17-xsv4a0hk.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.17-ysw58c2m.mjs +1 -0
- package/dist/chunks/git-1.1.17-1t4mvmwy.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.17-em3pctn6.mjs +1 -0
- package/dist/chunks/goal-1.1.17-b6r6rv34.mjs +4 -0
- package/dist/chunks/growthbook-1.1.17-d41p6v8e.mjs +1 -0
- package/dist/chunks/headless-1.1.17-3gds2arn.mjs +2 -0
- package/dist/chunks/heapdump-1.1.17-42928w6t.mjs +6 -0
- package/dist/chunks/help-1.1.17-1ex6d9m1.mjs +1 -0
- package/dist/chunks/hookChains-1.1.17-4trtr6n3.mjs +3 -0
- package/dist/chunks/hooks-1.1.17-brmzj93f.mjs +1 -0
- package/dist/chunks/hooks-1.1.17-tmmp968z.mjs +79 -0
- package/dist/chunks/ide-1.1.17-7bswgmqh.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.17-f4q4ze0f.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.1.17-bqseg6s7.mjs +1 -0
- package/dist/chunks/index-1.1.17-1cxekw2k.mjs +2 -0
- package/dist/chunks/index-1.1.17-3bhv85t6.mjs +2 -0
- package/dist/chunks/index-1.1.17-3kw30gq5.mjs +1 -0
- package/dist/chunks/index-1.1.17-41dwzfym.mjs +1 -0
- package/dist/chunks/index-1.1.17-58sa6nbn.mjs +1 -0
- package/dist/chunks/index-1.1.17-5vmgm515.mjs +9 -0
- package/dist/chunks/index-1.1.17-72ghmm5v.mjs +1 -0
- package/dist/chunks/index-1.1.17-9zas5tn3.mjs +23 -0
- package/dist/chunks/index-1.1.17-c7n4hj5n.mjs +1 -0
- package/dist/chunks/index-1.1.17-dg0mbe1h.mjs +1 -0
- package/dist/chunks/index-1.1.17-dzt8xwy0.mjs +1 -0
- package/dist/chunks/index-1.1.17-gwp2t0ev.mjs +5 -0
- package/dist/chunks/index-1.1.17-j516ern1.mjs +1 -0
- package/dist/chunks/index-1.1.17-j5qnmjd0.mjs +30 -0
- package/dist/chunks/index-1.1.17-m909k4gz.mjs +1 -0
- package/dist/chunks/index-1.1.17-mvtaa82m.mjs +1 -0
- package/dist/chunks/index-1.1.17-nntqe0vr.mjs +1 -0
- package/dist/chunks/index-1.1.17-nq9tejwj.mjs +1 -0
- package/dist/chunks/index-1.1.17-pfzch1bc.mjs +1 -0
- package/dist/chunks/index-1.1.17-q2g4m637.mjs +9 -0
- package/dist/chunks/index-1.1.17-s5nfh7xr.mjs +1 -0
- package/dist/chunks/index-1.1.17-tq1x9mdy.mjs +1 -0
- package/dist/chunks/index-1.1.17-vjbktr0m.mjs +1 -0
- package/dist/chunks/init-1.1.17-ezhe261a.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.17-bsr4ggsa.mjs +1 -0
- package/dist/chunks/ink-1.1.17-hnhzzxr4.mjs +1 -0
- package/dist/chunks/insights-1.1.17-8rkjk3qx.mjs +870 -0
- package/dist/chunks/install-1.1.17-bveeekwq.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.17-s7qpq92h.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.17-6p1tq8es.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.17-2n85eb8r.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.17-2qdgnemg.mjs +1 -0
- package/dist/chunks/keybindings-1.1.17-e93j288w.mjs +2 -0
- package/dist/chunks/knowledge-1.1.17-wzqw3mat.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.17-kpebzzy5.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.17-rwrehzjk.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.17-z6xentgs.mjs +1 -0
- package/dist/chunks/log-1.1.17-teh0b8bj.mjs +1 -0
- package/dist/chunks/main-1.1.17-4drs7spn.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.17-01msjcq4.mjs +1 -0
- package/dist/chunks/mcp-1.1.17-c212g273.mjs +17 -0
- package/dist/chunks/mcp-1.1.17-fmad2143.mjs +4 -0
- package/dist/chunks/mcp-1.1.17-vkg3yyj4.mjs +1 -0
- package/dist/chunks/mcpb-1.1.17-2qj85kf9.mjs +1 -0
- package/dist/chunks/memory-1.1.17-xxzfp6m3.mjs +72 -0
- package/dist/chunks/model-1.1.17-6wangfaf.mjs +1 -0
- package/dist/chunks/model-1.1.17-phx3mpre.mjs +2 -0
- package/dist/chunks/node-1.1.17-vwaj3hha.mjs +12 -0
- package/dist/chunks/oauth-1.1.17-2h7zc57g.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.17-x7d7rtnw.mjs +14 -0
- package/dist/chunks/output-style-1.1.17-4dwyxd9d.mjs +1 -0
- package/dist/chunks/package-KQCMZM5L-1.1.17-hz04t8ab.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.17-47ed65x0.mjs +1 -0
- package/dist/chunks/parser-1.1.17-tsm4t6zj.mjs +1 -0
- package/dist/chunks/passes-1.1.17-kvh566r0.mjs +1 -0
- package/dist/chunks/permissions-1.1.17-2s1jj12g.mjs +1 -0
- package/dist/chunks/permissions-1.1.17-b96tjxsb.mjs +3 -0
- package/dist/chunks/plan-1.1.17-fphg1taz.mjs +1 -0
- package/dist/chunks/plist-1.1.17-be3b59s7.mjs +1 -0
- package/dist/chunks/plugin-1.1.17-wjwcjxt0.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.17-y7rehbdx.mjs +1 -0
- package/dist/chunks/plugins-1.1.17-pvbs8x2d.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.17-sz5peb61.mjs +2 -0
- package/dist/chunks/print-1.1.17-2tqpqffd.mjs +57 -0
- package/dist/chunks/process-1.1.17-edae57bn.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.17-8x8av07q.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.17-p2hph3mq.mjs +9 -0
- package/dist/chunks/prompt-1.1.17-33ecsyvx.mjs +1 -0
- package/dist/chunks/prompt-1.1.17-pcxqswhq.mjs +1 -0
- package/dist/chunks/prompts-1.1.17-9s5a4vj5.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.17-eypg73tv.mjs +13 -0
- package/dist/chunks/provider-1.1.17-cq38y5y0.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.17-3mapa580.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.17-v4be9pkn.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.17-7akz78zn.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.17-d8515h81.mjs +26 -0
- package/dist/chunks/registry-1.1.17-vmxj31fp.mjs +1 -0
- package/dist/chunks/release-notes-1.1.17-qfx2ydx0.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.17-bxmeccet.mjs +2 -0
- package/dist/chunks/remote-env-1.1.17-5zk7dhta.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.17-dyyd9gpp.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.17-2w7c374e.mjs +1 -0
- package/dist/chunks/rename-1.1.17-m9npwq9e.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.17-f73jbyc4.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.17-89bw7egj.mjs +1 -0
- package/dist/chunks/resume-1.1.17-zcepac5h.mjs +2 -0
- package/dist/chunks/rewind-1.1.17-sz9gnvjb.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.17-cz7wggw6.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.17-mv4m2dgh.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.17-mzhxrhy6.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.17-0055tx31.mjs +1 -0
- package/dist/chunks/session-1.1.17-58155tdb.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.17-jesa43e4.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.17-v63nh4eq.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.17-db6eb6a0.mjs +1 -0
- package/dist/chunks/settings-1.1.17-r420yrj6.mjs +1 -0
- package/dist/chunks/setup-1.1.17-2c169kta.mjs +12 -0
- package/dist/chunks/sinks-1.1.17-qy1xy52h.mjs +1 -0
- package/dist/chunks/skills-1.1.17-179vy7j6.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.17-2jre48fe.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.17-18vwb94e.mjs +1 -0
- package/dist/chunks/state-1.1.17-jj648yt9.mjs +1 -0
- package/dist/chunks/stats-1.1.17-87688vm6.mjs +6 -0
- package/dist/chunks/status-1.1.17-qfgx5stw.mjs +1 -0
- package/dist/chunks/stickers-1.1.17-6qwzrjbk.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.17-agk55s1k.mjs +1 -0
- package/dist/chunks/tasks-1.1.17-kbw9ds53.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.17-4adaqsmb.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.17-9ts2pfkc.mjs +1 -0
- package/dist/chunks/teleport-1.1.17-bzmdxawh.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.17-dqhqjty9.mjs +1 -0
- package/dist/chunks/theme-1.1.17-85pv1732.mjs +1 -0
- package/dist/chunks/thinkback-1.1.17-hepbvmjv.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.17-v9aftsq7.mjs +1 -0
- package/dist/chunks/toolPool-1.1.17-9czwnxh0.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.17-16zef2se.mjs +1 -0
- package/dist/chunks/tools-1.1.17-k9mnpc70.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.17-jh3tsws1.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.17-nccrmbyj.mjs +69 -0
- package/dist/chunks/types-1.1.17-h1a2dqs3.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.17-qcn2523f.mjs +4 -0
- package/dist/chunks/update-1.1.17-qrbvhrw3.mjs +72 -0
- package/dist/chunks/upgrade-1.1.17-5r2kvcht.mjs +1 -0
- package/dist/chunks/upload-1.1.17-9wg0zeh8.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.17-g55vw948.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.17-3z57zpg6.mjs +1 -0
- package/dist/chunks/usage-1.1.17-fpqbestm.mjs +1 -0
- package/dist/chunks/util-1.1.17-afkkcjd2.mjs +1 -0
- package/dist/chunks/utils-1.1.17-pmry0sgf.mjs +1 -0
- package/dist/chunks/vim-1.1.17-favcd60m.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.17-8xwhaj6s.mjs +13 -0
- package/dist/chunks/watcher-1.1.17-1jrrt63m.mjs +1 -0
- package/dist/chunks/wiki-1.1.17-gsgtzkbe.mjs +132 -0
- package/dist/chunks/workflows-1.1.17-d88y5b3p.mjs +1 -0
- package/dist/chunks/worktree-1.1.17-aym2veht.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.17-e80q0zp5.mjs +1 -0
- package/dist/chunks/wrapper-1.1.17-mqzzgw84.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.16-d8xg1846.mjs +0 -1
- package/dist/chunks/App-1.1.16-1qyat349.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.16-gphm4kr9.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.16-ae0771hz.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.16-ntf57kwj.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.16-z8km64vb.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.16-9c1nen0b.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.16-e52dm35b.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.16-frav7jtc.mjs +0 -6
- package/dist/chunks/Doctor-1.1.16-rnr2zeqm.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.16-32sa07f8.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.16-wcn0wvqj.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.16-ptpv0yby.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.16-2c80150t.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.16-xf5ytnvw.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.16-mq6axxmv.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.16-df81g99v.mjs +0 -1
- package/dist/chunks/REPL-1.1.16-67e78vej.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.16-nfz9vfxh.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.16-nmypjs9s.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.16-8xp4cat6.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.16-b873egjf.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.16-p12j7gbz.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.16-wfj4hbxa.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.16-t59p4sqb.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.16-6gnr1pgn.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.16-pz7hzyed.mjs +0 -1
- package/dist/chunks/add-dir-1.1.16-whsjbedt.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.16-7fxyjypa.mjs +0 -1
- package/dist/chunks/agents-1.1.16-1d6y0xda.mjs +0 -3
- package/dist/chunks/agents-1.1.16-s5e41ewr.mjs +0 -110
- package/dist/chunks/api-1.1.16-k1mytgsx.mjs +0 -1
- package/dist/chunks/asciicast-1.1.16-bxvyntn8.mjs +0 -1
- package/dist/chunks/assistant-1.1.16-acqmddet.mjs +0 -1
- package/dist/chunks/auth-1.1.16-7nwthv6n.mjs +0 -1
- package/dist/chunks/auth-1.1.16-c46k0chb.mjs +0 -1
- package/dist/chunks/autoMode-1.1.16-t7thnrw0.mjs +0 -48
- package/dist/chunks/autoUpdater-1.1.16-5k3bxrjz.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.16-nhb6p8p3.mjs +0 -1
- package/dist/chunks/branch-1.1.16-72eesr6a.mjs +0 -4
- package/dist/chunks/bridge-1.1.16-8n6h1b8c.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.16-jmz78ab3.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.16-nwrn0y9j.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.16-04vqwa21.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.16-krkxjxkj.mjs +0 -1
- package/dist/chunks/btw-1.1.16-h0jqrzph.mjs +0 -1
- package/dist/chunks/buddy-1.1.16-k6dwkrbz.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.16-rk6d7v9j.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.16-f3tggvs4.mjs +0 -4
- package/dist/chunks/caches-1.1.16-kxkg6hxt.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.16-jggzvahb.mjs +0 -1
- package/dist/chunks/claudemd-1.1.16-7dtnkedr.mjs +0 -1
- package/dist/chunks/clear-1.1.16-qrpawrqq.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.16-hcv9w964.mjs +0 -1
- package/dist/chunks/cli-1.1.16-00hws7wd.mjs +0 -15
- package/dist/chunks/cli-1.1.16-02ynr76s.mjs +0 -2
- package/dist/chunks/cli-1.1.16-06f5zq2n.mjs +0 -3
- package/dist/chunks/cli-1.1.16-07smcaht.mjs +0 -2
- package/dist/chunks/cli-1.1.16-08mt7pd3.mjs +0 -26
- package/dist/chunks/cli-1.1.16-0chc168e.mjs +0 -2
- package/dist/chunks/cli-1.1.16-0w56n0k6.mjs +0 -2
- package/dist/chunks/cli-1.1.16-11vm4ckb.mjs +0 -3
- package/dist/chunks/cli-1.1.16-14fn34eq.mjs +0 -2
- package/dist/chunks/cli-1.1.16-14qj3fgz.mjs +0 -2
- package/dist/chunks/cli-1.1.16-16cpmrsq.mjs +0 -2
- package/dist/chunks/cli-1.1.16-1p0006m7.mjs +0 -2
- package/dist/chunks/cli-1.1.16-1rw7f88z.mjs +0 -2
- package/dist/chunks/cli-1.1.16-21rqtmb8.mjs +0 -2
- package/dist/chunks/cli-1.1.16-2c672gb7.mjs +0 -12
- package/dist/chunks/cli-1.1.16-2mzk1cmm.mjs +0 -2
- package/dist/chunks/cli-1.1.16-2ssqta47.mjs +0 -2
- package/dist/chunks/cli-1.1.16-2v8aceee.mjs +0 -2
- package/dist/chunks/cli-1.1.16-2xgcx2pv.mjs +0 -2
- package/dist/chunks/cli-1.1.16-3ha615b6.mjs +0 -2
- package/dist/chunks/cli-1.1.16-3k3hzdbv.mjs +0 -9
- package/dist/chunks/cli-1.1.16-3wey4s8m.mjs +0 -2
- package/dist/chunks/cli-1.1.16-48pfhgz1.mjs +0 -2
- package/dist/chunks/cli-1.1.16-49bqpfq6.mjs +0 -16
- package/dist/chunks/cli-1.1.16-4azerbgs.mjs +0 -2
- package/dist/chunks/cli-1.1.16-4eszpnge.mjs +0 -2
- package/dist/chunks/cli-1.1.16-4kbzs997.mjs +0 -2
- package/dist/chunks/cli-1.1.16-4pr1991p.mjs +0 -8
- package/dist/chunks/cli-1.1.16-4qysqchs.mjs +0 -24
- package/dist/chunks/cli-1.1.16-4v9hjjtt.mjs +0 -3
- package/dist/chunks/cli-1.1.16-50vqanyq.mjs +0 -4
- package/dist/chunks/cli-1.1.16-54087k9r.mjs +0 -2
- package/dist/chunks/cli-1.1.16-5a4a2nqs.mjs +0 -2
- package/dist/chunks/cli-1.1.16-5bx6tpmw.mjs +0 -2
- package/dist/chunks/cli-1.1.16-5dtt0nsq.mjs +0 -15
- package/dist/chunks/cli-1.1.16-5hfex73v.mjs +0 -2
- package/dist/chunks/cli-1.1.16-5vc6gf8n.mjs +0 -2
- package/dist/chunks/cli-1.1.16-5wsywzcq.mjs +0 -2
- package/dist/chunks/cli-1.1.16-65skb0g1.mjs +0 -2
- package/dist/chunks/cli-1.1.16-67hp7vy9.mjs +0 -2
- package/dist/chunks/cli-1.1.16-67yh08z2.mjs +0 -2
- package/dist/chunks/cli-1.1.16-69ma6qdv.mjs +0 -2
- package/dist/chunks/cli-1.1.16-6fekr49f.mjs +0 -2
- package/dist/chunks/cli-1.1.16-6ptafg83.mjs +0 -59
- package/dist/chunks/cli-1.1.16-72wxrwg0.mjs +0 -2
- package/dist/chunks/cli-1.1.16-7aatqp3z.mjs +0 -2
- package/dist/chunks/cli-1.1.16-7c9cj19v.mjs +0 -2
- package/dist/chunks/cli-1.1.16-7j9fntrz.mjs +0 -2
- package/dist/chunks/cli-1.1.16-7k62y2m1.mjs +0 -45
- package/dist/chunks/cli-1.1.16-7k7w1py7.mjs +0 -39
- package/dist/chunks/cli-1.1.16-7xaxs3ra.mjs +0 -18
- package/dist/chunks/cli-1.1.16-7z989ymx.mjs +0 -24
- package/dist/chunks/cli-1.1.16-892pqd2m.mjs +0 -3
- package/dist/chunks/cli-1.1.16-8azzqa5w.mjs +0 -2
- package/dist/chunks/cli-1.1.16-8brzp1nw.mjs +0 -6
- package/dist/chunks/cli-1.1.16-8efk3qjx.mjs +0 -2
- package/dist/chunks/cli-1.1.16-8pms22dq.mjs +0 -2
- package/dist/chunks/cli-1.1.16-90p1j6wj.mjs +0 -3
- package/dist/chunks/cli-1.1.16-9bvj95e0.mjs +0 -2
- package/dist/chunks/cli-1.1.16-9gc3v32k.mjs +0 -2
- package/dist/chunks/cli-1.1.16-9mjvq93j.mjs +0 -2
- package/dist/chunks/cli-1.1.16-9vaffwrt.mjs +0 -2
- package/dist/chunks/cli-1.1.16-9wfv4nx7.mjs +0 -2
- package/dist/chunks/cli-1.1.16-9zybbj79.mjs +0 -2
- package/dist/chunks/cli-1.1.16-a09ca16c.mjs +0 -2
- package/dist/chunks/cli-1.1.16-a2heems6.mjs +0 -2
- package/dist/chunks/cli-1.1.16-a6z5s072.mjs +0 -58
- package/dist/chunks/cli-1.1.16-aae4w645.mjs +0 -42
- package/dist/chunks/cli-1.1.16-acbajet0.mjs +0 -2
- package/dist/chunks/cli-1.1.16-amvj9fsw.mjs +0 -3
- package/dist/chunks/cli-1.1.16-b06spwrg.mjs +0 -21
- package/dist/chunks/cli-1.1.16-b7t8n05k.mjs +0 -2
- package/dist/chunks/cli-1.1.16-b80x5mp6.mjs +0 -2
- package/dist/chunks/cli-1.1.16-c6ydw1c8.mjs +0 -2
- package/dist/chunks/cli-1.1.16-c839tmen.mjs +0 -2
- package/dist/chunks/cli-1.1.16-c9b05x0s.mjs +0 -2
- package/dist/chunks/cli-1.1.16-cc5chgna.mjs +0 -2
- package/dist/chunks/cli-1.1.16-cddsh2r4.mjs +0 -25
- package/dist/chunks/cli-1.1.16-cmfztzmq.mjs +0 -2
- package/dist/chunks/cli-1.1.16-cmw3ar20.mjs +0 -2
- package/dist/chunks/cli-1.1.16-cnwnk7gb.mjs +0 -2
- package/dist/chunks/cli-1.1.16-cs3aeka5.mjs +0 -12
- package/dist/chunks/cli-1.1.16-d6tf8dzn.mjs +0 -20
- package/dist/chunks/cli-1.1.16-df44y8yq.mjs +0 -3
- package/dist/chunks/cli-1.1.16-dfr9axye.mjs +0 -2
- package/dist/chunks/cli-1.1.16-dh0eqfrb.mjs +0 -25
- package/dist/chunks/cli-1.1.16-dn98cknd.mjs +0 -6
- package/dist/chunks/cli-1.1.16-dqwre8s7.mjs +0 -2
- package/dist/chunks/cli-1.1.16-dqxwanh1.mjs +0 -2
- package/dist/chunks/cli-1.1.16-dtwt84pe.mjs +0 -6
- package/dist/chunks/cli-1.1.16-dtyn1qwz.mjs +0 -2
- package/dist/chunks/cli-1.1.16-dxyq8q3t.mjs +0 -18
- package/dist/chunks/cli-1.1.16-e0fmjnmt.mjs +0 -2
- package/dist/chunks/cli-1.1.16-e15bgq0q.mjs +0 -2
- package/dist/chunks/cli-1.1.16-eabt3s19.mjs +0 -2
- package/dist/chunks/cli-1.1.16-eatavqvn.mjs +0 -2
- package/dist/chunks/cli-1.1.16-eg2wh4gb.mjs +0 -2
- package/dist/chunks/cli-1.1.16-egxjzfe2.mjs +0 -34
- package/dist/chunks/cli-1.1.16-ejy0gvv1.mjs +0 -2
- package/dist/chunks/cli-1.1.16-f3tex0kv.mjs +0 -24
- package/dist/chunks/cli-1.1.16-f6arq2qw.mjs +0 -3
- package/dist/chunks/cli-1.1.16-f9d79a6c.mjs +0 -2
- package/dist/chunks/cli-1.1.16-fd7yx131.mjs +0 -2
- package/dist/chunks/cli-1.1.16-g0z56bnb.mjs +0 -2
- package/dist/chunks/cli-1.1.16-g2m8cf2k.mjs +0 -2
- package/dist/chunks/cli-1.1.16-gqgat9ps.mjs +0 -2
- package/dist/chunks/cli-1.1.16-gtw5ckd8.mjs +0 -2
- package/dist/chunks/cli-1.1.16-gyw71nnw.mjs +0 -2
- package/dist/chunks/cli-1.1.16-gze584gt.mjs +0 -2
- package/dist/chunks/cli-1.1.16-h1rfrt5t.mjs +0 -1
- package/dist/chunks/cli-1.1.16-haqxs2zy.mjs +0 -2
- package/dist/chunks/cli-1.1.16-hbzd5k64.mjs +0 -2
- package/dist/chunks/cli-1.1.16-hd541yqt.mjs +0 -5
- package/dist/chunks/cli-1.1.16-hf9kpgyk.mjs +0 -2
- package/dist/chunks/cli-1.1.16-hq7j37g9.mjs +0 -2
- package/dist/chunks/cli-1.1.16-htk59n0r.mjs +0 -2
- package/dist/chunks/cli-1.1.16-hwr77b8n.mjs +0 -5469
- package/dist/chunks/cli-1.1.16-hyxvna5x.mjs +0 -2
- package/dist/chunks/cli-1.1.16-j1hg5tkr.mjs +0 -3
- package/dist/chunks/cli-1.1.16-jcye29qq.mjs +0 -202
- package/dist/chunks/cli-1.1.16-k7hg3739.mjs +0 -2
- package/dist/chunks/cli-1.1.16-kf5fv5t0.mjs +0 -2
- package/dist/chunks/cli-1.1.16-kndxajhc.mjs +0 -2
- package/dist/chunks/cli-1.1.16-kpxhnxpz.mjs +0 -2
- package/dist/chunks/cli-1.1.16-kxckvss5.mjs +0 -4
- package/dist/chunks/cli-1.1.16-kz0jkcdc.mjs +0 -2
- package/dist/chunks/cli-1.1.16-m0b6tw88.mjs +0 -3
- package/dist/chunks/cli-1.1.16-m68wgnx0.mjs +0 -50
- package/dist/chunks/cli-1.1.16-manqzza5.mjs +0 -2
- package/dist/chunks/cli-1.1.16-mbr5p7h4.mjs +0 -2
- package/dist/chunks/cli-1.1.16-n37yee4e.mjs +0 -5
- package/dist/chunks/cli-1.1.16-n9r7jwvf.mjs +0 -4
- package/dist/chunks/cli-1.1.16-nbxzev2y.mjs +0 -3
- package/dist/chunks/cli-1.1.16-nh0pt7e0.mjs +0 -2
- package/dist/chunks/cli-1.1.16-njacmwr1.mjs +0 -4
- package/dist/chunks/cli-1.1.16-p0fj6fyd.mjs +0 -2
- package/dist/chunks/cli-1.1.16-pdga6t1k.mjs +0 -133
- package/dist/chunks/cli-1.1.16-pj3sbyjh.mjs +0 -2
- package/dist/chunks/cli-1.1.16-pzq1a8yw.mjs +0 -2
- package/dist/chunks/cli-1.1.16-q827fp1q.mjs +0 -2
- package/dist/chunks/cli-1.1.16-qh481y6y.mjs +0 -2
- package/dist/chunks/cli-1.1.16-qwgc24yv.mjs +0 -2
- package/dist/chunks/cli-1.1.16-qy3897dn.mjs +0 -2
- package/dist/chunks/cli-1.1.16-qyhfqd1t.mjs +0 -4
- package/dist/chunks/cli-1.1.16-r0tgqw2k.mjs +0 -4
- package/dist/chunks/cli-1.1.16-r102pkgg.mjs +0 -3
- package/dist/chunks/cli-1.1.16-r2q5qzd6.mjs +0 -2
- package/dist/chunks/cli-1.1.16-r3n44d17.mjs +0 -2
- package/dist/chunks/cli-1.1.16-r41v96xz.mjs +0 -6
- package/dist/chunks/cli-1.1.16-rb7paxmn.mjs +0 -2
- package/dist/chunks/cli-1.1.16-rmn7pfkz.mjs +0 -2
- package/dist/chunks/cli-1.1.16-rvyqa9q1.mjs +0 -2
- package/dist/chunks/cli-1.1.16-s404wy1x.mjs +0 -6
- package/dist/chunks/cli-1.1.16-s73aeg9m.mjs +0 -3
- package/dist/chunks/cli-1.1.16-sbck6gp1.mjs +0 -2
- package/dist/chunks/cli-1.1.16-sk0nvcb8.mjs +0 -2
- package/dist/chunks/cli-1.1.16-sk5cfvaa.mjs +0 -2
- package/dist/chunks/cli-1.1.16-t0vza3m9.mjs +0 -2
- package/dist/chunks/cli-1.1.16-t3hq60ht.mjs +0 -2
- package/dist/chunks/cli-1.1.16-t52j6pb6.mjs +0 -6
- package/dist/chunks/cli-1.1.16-t7jxtkz8.mjs +0 -2
- package/dist/chunks/cli-1.1.16-the4daty.mjs +0 -17
- package/dist/chunks/cli-1.1.16-tjqwb7e1.mjs +0 -2
- package/dist/chunks/cli-1.1.16-tjzxdkkt.mjs +0 -17
- package/dist/chunks/cli-1.1.16-tpxwx276.mjs +0 -2
- package/dist/chunks/cli-1.1.16-tv4kjnwq.mjs +0 -24
- package/dist/chunks/cli-1.1.16-tv97myza.mjs +0 -7
- package/dist/chunks/cli-1.1.16-v2e4pd3g.mjs +0 -2
- package/dist/chunks/cli-1.1.16-vchwnr3f.mjs +0 -2
- package/dist/chunks/cli-1.1.16-vf5x3nc4.mjs +0 -2
- package/dist/chunks/cli-1.1.16-vhwypfn6.mjs +0 -2
- package/dist/chunks/cli-1.1.16-vkc2wbwd.mjs +0 -2
- package/dist/chunks/cli-1.1.16-vngrsrs8.mjs +0 -3
- package/dist/chunks/cli-1.1.16-vq6g4ncg.mjs +0 -2
- package/dist/chunks/cli-1.1.16-vra6hr5d.mjs +0 -2
- package/dist/chunks/cli-1.1.16-vzv60xz8.mjs +0 -4
- package/dist/chunks/cli-1.1.16-w4zy236d.mjs +0 -2
- package/dist/chunks/cli-1.1.16-w5ns6t4b.mjs +0 -2
- package/dist/chunks/cli-1.1.16-way1d0g7.mjs +0 -2
- package/dist/chunks/cli-1.1.16-wbzh2wm5.mjs +0 -2
- package/dist/chunks/cli-1.1.16-wpgdph2x.mjs +0 -7
- package/dist/chunks/cli-1.1.16-wv6e57r1.mjs +0 -2
- package/dist/chunks/cli-1.1.16-wxyxm2zp.mjs +0 -2
- package/dist/chunks/cli-1.1.16-wysnfmek.mjs +0 -4
- package/dist/chunks/cli-1.1.16-wzzrc1xq.mjs +0 -2
- package/dist/chunks/cli-1.1.16-x0gywt7y.mjs +0 -2
- package/dist/chunks/cli-1.1.16-x1r7521q.mjs +0 -133
- package/dist/chunks/cli-1.1.16-x4k8bzvc.mjs +0 -2
- package/dist/chunks/cli-1.1.16-x9m0y8t1.mjs +0 -2
- package/dist/chunks/cli-1.1.16-xaye0g9z.mjs +0 -2
- package/dist/chunks/cli-1.1.16-xe8wmqtk.mjs +0 -15
- package/dist/chunks/cli-1.1.16-xfke0ngj.mjs +0 -2
- package/dist/chunks/cli-1.1.16-xqk1znpb.mjs +0 -2
- package/dist/chunks/cli-1.1.16-y11gejtr.mjs +0 -9
- package/dist/chunks/cli-1.1.16-y1vrwcq4.mjs +0 -2
- package/dist/chunks/cli-1.1.16-y4qp7bb2.mjs +0 -2
- package/dist/chunks/cli-1.1.16-ynvgphfk.mjs +0 -2
- package/dist/chunks/cli-1.1.16-yqaq6eek.mjs +0 -2
- package/dist/chunks/cli-1.1.16-yv8wazsp.mjs +0 -2
- package/dist/chunks/cli-1.1.16-yymrc4dd.mjs +0 -2
- package/dist/chunks/cli-1.1.16-yzrxqdz1.mjs +0 -4
- package/dist/chunks/cli-1.1.16-z56ew2eh.mjs +0 -66
- package/dist/chunks/cli-1.1.16-z93174n6.mjs +0 -2
- package/dist/chunks/cli-1.1.16-zedxs5mz.mjs +0 -2
- package/dist/chunks/cli-1.1.16-zgwt3v22.mjs +0 -2
- package/dist/chunks/cli-1.1.16-ztv6fvbq.mjs +0 -4
- package/dist/chunks/cli-1.1.16-zx2pqyak.mjs +0 -2
- package/dist/chunks/cli-1.1.16-zy1hy3m7.mjs +0 -3
- package/dist/chunks/cli-1.1.16-zzc307e7.mjs +0 -2
- package/dist/chunks/client-1.1.16-mxfnn25v.mjs +0 -1
- package/dist/chunks/color-1.1.16-kxb5k02m.mjs +0 -1
- package/dist/chunks/compact-1.1.16-zn3r524w.mjs +0 -3
- package/dist/chunks/config-1.1.16-866900pg.mjs +0 -1
- package/dist/chunks/config-1.1.16-pnqk3e4x.mjs +0 -1
- package/dist/chunks/constants-1.1.16-y8q2q4nx.mjs +0 -1
- package/dist/chunks/context-1.1.16-g23rxjdc.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.16-cccdk7gt.mjs +0 -1
- package/dist/chunks/conversation-1.1.16-b3c8ysvx.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.16-n2gqvrz3.mjs +0 -1
- package/dist/chunks/copy-1.1.16-evtbz4pr.mjs +0 -9
- package/dist/chunks/cost-1.1.16-je2dhky8.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.16-7bjctayt.mjs +0 -1
- package/dist/chunks/createSession-1.1.16-q7ezgde2.mjs +0 -1
- package/dist/chunks/debug-1.1.16-rwekwqaz.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.16-drefjcq7.mjs +0 -1534
- package/dist/chunks/desktop-1.1.16-s5p2s8z1.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.16-0mj2v70d.mjs +0 -1
- package/dist/chunks/detection-1.1.16-a6g1ea8w.mjs +0 -1
- package/dist/chunks/diff-1.1.16-5c3cx6ex.mjs +0 -1
- package/dist/chunks/doctor-1.1.16-41p56y0f.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.16-w0td1z7t.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.16-fb3qxbjk.mjs +0 -1
- package/dist/chunks/effort-1.1.16-9gw3x1mz.mjs +0 -13
- package/dist/chunks/engine-1.1.16-35cg9rmx.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.16-1d34y7k2.mjs +0 -1
- package/dist/chunks/envUtils-1.1.16-4t6p0jjh.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.16-63yqca4b.mjs +0 -1
- package/dist/chunks/environments-1.1.16-zg1cebes.mjs +0 -1
- package/dist/chunks/errors-1.1.16-5ry90xtn.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.16-gctdwyey.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.16-ja5wfnqk.mjs +0 -1
- package/dist/chunks/exit-1.1.16-gp3attw5.mjs +0 -1
- package/dist/chunks/explorer-1.1.16-ksz2kh3r.mjs +0 -1
- package/dist/chunks/export-1.1.16-4q6eppsd.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.16-gtvkswnt.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.16-y936p9yp.mjs +0 -1
- package/dist/chunks/fast-1.1.16-9d3xqrpf.mjs +0 -1
- package/dist/chunks/feedback-1.1.16-3va6ar52.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.16-rzm5ms2c.mjs +0 -1
- package/dist/chunks/git-1.1.16-wxjpazsv.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.16-8db65cwz.mjs +0 -1
- package/dist/chunks/goal-1.1.16-n6zn5hv0.mjs +0 -4
- package/dist/chunks/growthbook-1.1.16-595crq4b.mjs +0 -1
- package/dist/chunks/headless-1.1.16-ngrfttd2.mjs +0 -2
- package/dist/chunks/heapdump-1.1.16-xeq6wdmt.mjs +0 -6
- package/dist/chunks/help-1.1.16-cr6p1e9d.mjs +0 -1
- package/dist/chunks/hookChains-1.1.16-9h14zpb6.mjs +0 -3
- package/dist/chunks/hooks-1.1.16-1g8bmj2c.mjs +0 -79
- package/dist/chunks/hooks-1.1.16-n1gmh33c.mjs +0 -1
- package/dist/chunks/ide-1.1.16-9vtwyzje.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.16-xs3s51me.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.16-c6drgpf3.mjs +0 -1
- package/dist/chunks/index-1.1.16-18yhpv52.mjs +0 -23
- package/dist/chunks/index-1.1.16-2rsmxhr2.mjs +0 -30
- package/dist/chunks/index-1.1.16-2xc5zjwe.mjs +0 -5
- package/dist/chunks/index-1.1.16-3cscsx0v.mjs +0 -1
- package/dist/chunks/index-1.1.16-3vpat7c1.mjs +0 -9
- package/dist/chunks/index-1.1.16-3zhbr1qd.mjs +0 -1
- package/dist/chunks/index-1.1.16-54nbfa3c.mjs +0 -1
- package/dist/chunks/index-1.1.16-6f495kq6.mjs +0 -1
- package/dist/chunks/index-1.1.16-82gx3ah5.mjs +0 -1
- package/dist/chunks/index-1.1.16-ap17zed0.mjs +0 -1
- package/dist/chunks/index-1.1.16-b07w4tdb.mjs +0 -1
- package/dist/chunks/index-1.1.16-cca87zba.mjs +0 -9
- package/dist/chunks/index-1.1.16-dxjx9gq8.mjs +0 -1
- package/dist/chunks/index-1.1.16-ehk0dpk3.mjs +0 -1
- package/dist/chunks/index-1.1.16-g6p5h9x8.mjs +0 -1
- package/dist/chunks/index-1.1.16-hsmqsx4f.mjs +0 -2
- package/dist/chunks/index-1.1.16-n1gyvm02.mjs +0 -1
- package/dist/chunks/index-1.1.16-ppkq03k8.mjs +0 -1
- package/dist/chunks/index-1.1.16-qpdm2q81.mjs +0 -1
- package/dist/chunks/index-1.1.16-qww85f6n.mjs +0 -1
- package/dist/chunks/index-1.1.16-s5e31nps.mjs +0 -1
- package/dist/chunks/index-1.1.16-v1zrqah7.mjs +0 -2
- package/dist/chunks/index-1.1.16-vbj2a5jp.mjs +0 -1
- package/dist/chunks/init-1.1.16-6wdrdz2r.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.16-6bhkywe8.mjs +0 -1
- package/dist/chunks/ink-1.1.16-e7whmjxf.mjs +0 -1
- package/dist/chunks/insights-1.1.16-s2czmsxt.mjs +0 -870
- package/dist/chunks/install-1.1.16-hm3j0jqe.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.16-xmkdh35y.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.16-1a8z176x.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.16-5tqqjvsb.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.16-49sn5m39.mjs +0 -1
- package/dist/chunks/keybindings-1.1.16-c6n8k84r.mjs +0 -2
- package/dist/chunks/knowledge-1.1.16-08yzaswd.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.16-a0dks1p1.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.16-jbfc3ync.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.16-0pym4ad2.mjs +0 -1
- package/dist/chunks/log-1.1.16-yahqz556.mjs +0 -1
- package/dist/chunks/main-1.1.16-2egj6bns.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.16-tgd635vq.mjs +0 -1
- package/dist/chunks/mcp-1.1.16-fkx2awnj.mjs +0 -17
- package/dist/chunks/mcp-1.1.16-n7sgsh7q.mjs +0 -1
- package/dist/chunks/mcp-1.1.16-ry6g2t33.mjs +0 -4
- package/dist/chunks/mcpb-1.1.16-74c05aj3.mjs +0 -1
- package/dist/chunks/memory-1.1.16-6jbqggnn.mjs +0 -72
- package/dist/chunks/model-1.1.16-3bvzfbem.mjs +0 -2
- package/dist/chunks/model-1.1.16-sjpwhja7.mjs +0 -1
- package/dist/chunks/node-1.1.16-gsj0fpm7.mjs +0 -12
- package/dist/chunks/oauth-1.1.16-bt9x98w7.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.16-8gems3mz.mjs +0 -14
- package/dist/chunks/output-style-1.1.16-embrry9v.mjs +0 -1
- package/dist/chunks/package-KQCMZM5L-1.1.16-d3m1d21p.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.16-zffe39j3.mjs +0 -1
- package/dist/chunks/parser-1.1.16-3ps9dtdr.mjs +0 -1
- package/dist/chunks/passes-1.1.16-n0a3pvdf.mjs +0 -1
- package/dist/chunks/permissions-1.1.16-jk4pmrmf.mjs +0 -3
- package/dist/chunks/permissions-1.1.16-wnz2vr3h.mjs +0 -1
- package/dist/chunks/plan-1.1.16-rtkh7eh3.mjs +0 -1
- package/dist/chunks/plist-1.1.16-t71wt7sc.mjs +0 -1
- package/dist/chunks/plugin-1.1.16-t9jaj1gv.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.16-c6cf7tmk.mjs +0 -1
- package/dist/chunks/plugins-1.1.16-73hwgvfk.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.16-nthzxbp9.mjs +0 -2
- package/dist/chunks/print-1.1.16-armgf1aq.mjs +0 -57
- package/dist/chunks/process-1.1.16-3ct2vh70.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.16-89y7gsbx.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.16-1kjtbhx2.mjs +0 -9
- package/dist/chunks/prompt-1.1.16-0386v4at.mjs +0 -1
- package/dist/chunks/prompt-1.1.16-k5y0dpf7.mjs +0 -1
- package/dist/chunks/prompts-1.1.16-xsnbw92m.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.16-yx039y6v.mjs +0 -13
- package/dist/chunks/provider-1.1.16-m0kk3yhs.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.16-2v2pwv6d.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.16-282tqjjx.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.16-avgds6pk.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.16-mzwjj9v6.mjs +0 -26
- package/dist/chunks/registry-1.1.16-n34j5qfk.mjs +0 -1
- package/dist/chunks/release-notes-1.1.16-8q4sx928.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.16-7znfn6r1.mjs +0 -2
- package/dist/chunks/remote-env-1.1.16-pv7edzf2.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.16-jv7q72cp.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.16-mmf3btpt.mjs +0 -1
- package/dist/chunks/rename-1.1.16-m3xv2hvc.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.16-0vph2kjs.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.16-g5z9jade.mjs +0 -1
- package/dist/chunks/resume-1.1.16-40c9ahqr.mjs +0 -2
- package/dist/chunks/rewind-1.1.16-tpy93a43.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.16-3apcbhbp.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.16-ejyeyghc.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.16-xb7gb62s.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.16-pm4wkyc5.mjs +0 -1
- package/dist/chunks/session-1.1.16-vrf7bvfv.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.16-e919fb36.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.16-6sbxmck5.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.16-1pd52qxc.mjs +0 -1
- package/dist/chunks/settings-1.1.16-0twvg2yc.mjs +0 -1
- package/dist/chunks/setup-1.1.16-mhj053ej.mjs +0 -12
- package/dist/chunks/sinks-1.1.16-10wxx1a3.mjs +0 -1
- package/dist/chunks/skills-1.1.16-r7v633j2.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.16-mmrhkw7p.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.16-8tj1n7gt.mjs +0 -1
- package/dist/chunks/state-1.1.16-8zy52d2r.mjs +0 -1
- package/dist/chunks/stats-1.1.16-mrmhzc8j.mjs +0 -6
- package/dist/chunks/status-1.1.16-qpanvb67.mjs +0 -1
- package/dist/chunks/stickers-1.1.16-0d4zm7x4.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.16-3pz224am.mjs +0 -1
- package/dist/chunks/tasks-1.1.16-cv8bsqt6.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.16-yrkqrc58.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.16-xgaxxh5q.mjs +0 -1
- package/dist/chunks/teleport-1.1.16-rhtckzvp.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.16-fptwmgph.mjs +0 -1
- package/dist/chunks/theme-1.1.16-4tskjw6p.mjs +0 -1
- package/dist/chunks/thinkback-1.1.16-d1x5jsx0.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.16-54xyd092.mjs +0 -1
- package/dist/chunks/toolPool-1.1.16-ga5s9f1k.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.16-xw1xa379.mjs +0 -1
- package/dist/chunks/tools-1.1.16-h2yhp23r.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.16-nrdjhk2z.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.16-4yvp9q16.mjs +0 -69
- package/dist/chunks/types-1.1.16-47y90s0f.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.16-ej1e8hkt.mjs +0 -4
- package/dist/chunks/update-1.1.16-rtkcq95j.mjs +0 -72
- package/dist/chunks/upgrade-1.1.16-52bm5sf9.mjs +0 -1
- package/dist/chunks/upload-1.1.16-m2wyhzek.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.16-vwczyqak.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.16-qa109pxx.mjs +0 -1
- package/dist/chunks/usage-1.1.16-yqk04de2.mjs +0 -1
- package/dist/chunks/util-1.1.16-5f2kcd2a.mjs +0 -1
- package/dist/chunks/utils-1.1.16-pgvxvt37.mjs +0 -1
- package/dist/chunks/vim-1.1.16-9pd3j7qj.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.16-wdxk66eb.mjs +0 -13
- package/dist/chunks/watcher-1.1.16-cd9fad12.mjs +0 -1
- package/dist/chunks/wiki-1.1.16-8290ftnh.mjs +0 -132
- package/dist/chunks/workflows-1.1.16-f4k926bs.mjs +0 -1
- package/dist/chunks/worktree-1.1.16-4s4hp83q.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.16-je59whhd.mjs +0 -1
- package/dist/chunks/wrapper-1.1.16-dfsehczs.mjs +0 -7
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{Pe as kZ,Ve as XX}from"./cli-1.1.16-07smcaht.mjs";import{Ze as YZ,_e as SQ}from"./cli-1.1.16-69ma6qdv.mjs";import{$n as EX,Ak as mJ,CI as kJ,DI as JZ,EI as OJ,El as GQ,FI as NJ,Fw as yX,GI as ZZ,Gl as MX,HI as QZ,Hs as aZ,II as XZ,IK as $0,Ik as cZ,Jk as tQ,KI as m0,Ks as RX,LI as _0,LK as RZ,Ls as TJ,MA as R0,MI as UJ,Mn as PJ,Ms as fQ,NA as i0,NB as IX,Nn as DQ,OA as qJ,OB as DX,Ok as r0,Ox as NQ,PA as BX,PR as lZ,Pq as MZ,Px as bX,Qk as VZ,Rk as LJ,Sq as lQ,Ts as L0,UR as iZ,Vx as zJ,Wx as FQ,Yx as AX,Yy as HZ,Zy as rQ,_R as fZ,_n as VQ,ao as l,az as a0,bI as NZ,bo as A0,bt as hQ,bz as yZ,cI as FZ,dI as s0,eo as Z0,fI as MJ,fo as B0,gk as WZ,gt as c0,iF as PQ,io as n,jo as I0,jt as vQ,lF as vX,pG as OQ,sG as SX,tE as RQ,uB as pZ,uE as hX,vB as ZX,vG as g0,vt as WQ,wG as QX,xy as KZ,yt as CX,yy as iQ,zI as mZ,zk as d0,zw as HQ}from"./cli-1.1.16-hwr77b8n.mjs";import{hY as QJ,iY as nZ,wY as G0,xY as S0}from"./cli-1.1.16-cnwnk7gb.mjs";import{B1 as q0,GZ as l0,W0 as y,Y0 as W,a1 as JJ,k1 as wZ,xZ as F0}from"./cli-1.1.16-6ptafg83.mjs";import{m3 as vJ,t3 as KX}from"./cli-1.1.16-x9m0y8t1.mjs";import{$3 as $,Y3 as o,Z3 as q,_3 as N}from"./cli-1.1.16-72wxrwg0.mjs";import{a4 as o0}from"./cli-1.1.16-2mzk1cmm.mjs";import{n4 as pJ,x4 as MQ}from"./cli-1.1.16-vra6hr5d.mjs";import{A4 as JX,z4 as DJ}from"./cli-1.1.16-s73aeg9m.mjs";import{E7 as HJ,F7 as wQ,O4 as tJ,P4 as IQ}from"./cli-1.1.16-49bqpfq6.mjs";import{Dga as eJ,Lba as z0,Lga as BQ,Mba as w0,Mca as uZ,Nca as dZ,Pca as eQ,Sba as p0,ada as Q0,ida as IJ,kaa as qQ,laa as M0,naa as yJ,r_ as t0,s_ as TZ}from"./cli-1.1.16-jcye29qq.mjs";import{$ga as x0,Tga as K0,Wga as b0,Yga as oZ,_ga as e0,gha as v0}from"./cli-1.1.16-r0tgqw2k.mjs";import{Jha as sJ,Vha as AQ}from"./cli-1.1.16-way1d0g7.mjs";import{Fja as t,Ija as _J}from"./cli-1.1.16-5a4a2nqs.mjs";import{Ika as D0,Lka as cJ,wka as $Z,yka as FX}from"./cli-1.1.16-s404wy1x.mjs";import{gla as h0,nla as aJ}from"./cli-1.1.16-njacmwr1.mjs";import{Osa as J0,Psa as RJ,Rsa as $J,Ssa as a}from"./cli-1.1.16-w5ns6t4b.mjs";function u0(Q){return typeof Q==="object"&&Q!==null&&"type"in Q&&Q.type==="local_agent"}function GJ(Q){return{...Q,retain:!1,messages:void 0,diskLoaded:!1,evictAfter:TJ(Q.status)?Date.now()+LQ:void 0}}function VJ(Q,J){t("",{}),J((Z)=>{let X=Z.tasks[Q],z=Z.viewingAgentTaskId,Y=z!==void 0?Z.tasks[z]:void 0,V=z!==void 0&&z!==Q&&u0(Y)&&Y.retain,G=u0(X)&&(!X.retain||X.evictAfter!==void 0),F=Z.viewingAgentTaskId!==Q||Z.viewSelectionMode!=="viewing-agent";if(!G&&!F&&!V)return Z;let R=Z.tasks;if(V||G){if(R={...Z.tasks},V)R[z]=GJ(Y);if(G)R[Q]={...X,retain:!0,evictAfter:void 0}}return{...Z,viewingAgentTaskId:Q,viewSelectionMode:"viewing-agent",tasks:R}})}function WJ(Q){t("",{}),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(!u0(z)||!z.retain)return X;return{...X,tasks:{...J.tasks,[Z]:GJ(z)}}})}function xX(Q,J){J((Z)=>{let X=Z.tasks[Q];if(!u0(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]:{...GJ(X),evictAfter:0}},...z&&{viewingAgentTaskId:void 0,viewSelectionMode:"none"}}})}var LQ=30000;var uJ=a(()=>{_J();fQ()});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===d0)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 V=CQ(Y.content);Z=V!==null?{kind:"teleport",plan:V}:{kind:"rejected",id:z}}else Z={kind:"approved",plan:yQ(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,V=null,G=0,F="running";while(Date.now()<z){if(X?.())throw new N0("poll stopped by caller","stopped",Y.rejectCount);let R,O;try{let f=await kJ(Q,V);R=f.newEvents,V=f.lastEventId,O=f.sessionStatus,G=0}catch(f){if(!pJ(f)||++G>=KQ)throw new N0(f instanceof Error?f.message:String(f),"network_or_unknown",Y.rejectCount,{cause:f});await HJ(dJ);continue}let P;try{P=Y.ingest(R)}catch(f){throw new N0(f instanceof Error?f.message:String(f),"extract_marker_missing",Y.rejectCount)}if(P.kind==="approved")return{plan:P.plan,rejectCount:Y.rejectCount,executionTarget:"remote"};if(P.kind==="teleport")return{plan:P.plan,rejectCount:Y.rejectCount,executionTarget:"local"};if(P.kind==="terminated")throw new N0(`remote session ended (${P.subtype}) before plan approval`,"terminated",Y.rejectCount);let U=(O==="idle"||O==="requires_action")&&R.length===0,w=Y.hasPendingPlan?"plan_ready":U?"needs_input":"running";if(w!==F)D0(`[ultraplan] phase ${F} → ${w}`),F=w,Z?.(w);await HJ(dJ)}throw new N0(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 CQ(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 yQ(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 dJ=3000,KQ=5,N0,EQ="__ULTRAPLAN_TELEPORT_LOCAL__";var iJ=a(()=>{mJ();cJ();wQ();MQ();NJ();N0=class N0 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 gQ(){return sJ("tengu_ultraplan_model",tJ.opus46.firstParty)}function uQ(Q,J){let Z=[];if(J)Z.push("Here is a draft plan to refine:","",J,"");if(Z.push(TQ),Q)Z.push("",Q);return Z.join(`
|
|
6
|
-
`)}function dQ(Q,J,Z,X,z){let Y=Date.now(),V=!1;(async()=>{try{let{plan:G,rejectCount:F,executionTarget:R}=await rJ(J,jQ,(O)=>{if(O==="needs_input")t("",{});c0(Q,z,(P)=>{if(P.status!=="running")return P;let U=O==="running"?void 0:O;return P.ultraplanPhase===U?P:{...P,ultraplanPhase:U}})},()=>X().tasks?.[Q]?.status!=="running");if(t("",{duration_ms:Date.now()-Y,plan_length:G.length,reject_count:F,execution_target:R}),R==="remote"){if(X().tasks?.[Q]?.status!=="running")return;c0(Q,z,(P)=>P.status!=="running"?P:{...P,status:"completed",endTime:Date.now()}),z((P)=>P.ultraplanSessionUrl===Z?{...P,ultraplanSessionUrl:void 0}:P),L0({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 P=O.tasks?.[Q];if(!P||P.status!=="running")return O;return{...O,ultraplanPendingChoice:{plan:G,sessionId:J,taskId:Q}}})}catch(G){if(X().tasks?.[Q]?.status!=="running")return;V=!0,t("",{duration_ms:Date.now()-Y,reason:G instanceof N0?G.reason:"network_or_unknown",reject_count:G instanceof N0?G.rejectCount:void 0}),L0({value:`Ultraplan failed: ${h0(G)}
|
|
8
|
-
|
|
9
|
-
Session: ${Z}`,mode:"task-notification"}),OJ(J).catch((R)=>D0(`ultraplan archive failed: ${String(R)}`)),z((R)=>R.ultraplanSessionUrl===Z?{...R,ultraplanSessionUrl:void 0}:R)}finally{if(V)c0(Q,z,(G)=>G.status!=="running"?G:{...G,status:"failed",endTime:Date.now()})}})()}function cQ(Q){let J=Q?`${YZ} `:"";return`${z0} ultraplan
|
|
10
|
-
${J}Starting Claude Code on the web…`}function pQ(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 qZ(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 fJ(Q,J,Z){await m0.kill(Q,Z),Z((z)=>z.ultraplanSessionUrl||z.ultraplanPendingChoice||z.ultraplanLaunching?{...z,ultraplanSessionUrl:void 0,ultraplanPendingChoice:void 0,ultraplanLaunching:void 0}:z);let X=PJ(J,process.env.SESSION_INGRESS_URL);L0({value:`Ultraplan stopped.
|
|
12
|
-
|
|
13
|
-
Session: ${X}`,mode:"task-notification"}),L0({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 mQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,disconnectedBridge:V,onSessionReady:G}=Q,{ultraplanSessionUrl:F,ultraplanLaunching:R}=X();if(F||R)return t("",{reason:F?"already_polling":"already_launching"}),qZ(F);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:G}),cQ(V)}async function kQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:V}=Q,G;try{let F=gQ(),R=await ZZ();if(!R.eligible){t("",{reason:"precondition",precondition_errors:R.errors.map((C)=>C.type).join(",")});let L=R.errors.map(QZ).join(`
|
|
15
|
-
`);L0({value:`ultraplan: cannot launch remote session —
|
|
16
|
-
${L}`,mode:"task-notification"});return}let O=uQ(J,Z),P,U=await JZ({initialMessage:O,description:J||"Refine local plan",model:F,permissionMode:"plan",ultraplan:!0,signal:Y,useDefaultEnvironment:!0,onBundleFail:(L)=>{P=L}});if(!U){t("",{reason:P?"bundle_fail":"teleport_null"}),L0({value:`ultraplan: session creation failed${P?` — ${P}`:""}. See --debug for details.`,mode:"task-notification"});return}G=U.id;let w=PJ(U.id,process.env.SESSION_INGRESS_URL);z((L)=>({...L,ultraplanSessionUrl:w,ultraplanLaunching:void 0})),V?.(pQ(w)),t("",{has_seed_plan:Boolean(Z),model:F});let{taskId:f}=XZ({remoteTaskType:"ultraplan",session:{id:U.id,title:J||"Ultraplan"},command:J,context:{abortController:new AbortController,getAppState:X,setAppState:z},isUltraplan:!0});dQ(f,U.id,w,X,z)}catch(F){if(eJ(F),t("",{reason:"unexpected_error"}),L0({value:`ultraplan: unexpected error — ${h0(F)}`,mode:"task-notification"}),G)OJ(G).catch((R)=>D0("ultraplan: failed to archive orphaned session",R)),z((R)=>R.ultraplanSessionUrl?{...R,ultraplanSessionUrl:void 0}:R)}finally{z((F)=>F.ultraplanLaunching?{...F,ultraplanLaunching:void 0}:F)}}var jQ=1800000,zZ="https://code.claude.com/docs/en/claude-code-on-the-web",FJ,_Q,TQ,xQ=async(Q,J,Z)=>{let X=Z.trim();if(!X){let V=await mQ({blurb:X,getAppState:J.getAppState,setAppState:J.setAppState,signal:J.abortController.signal});return Q(V,{display:"system"}),null}let{ultraplanSessionUrl:z,ultraplanLaunching:Y}=J.getAppState();if(z||Y)return t("",{reason:z?"already_polling":"already_launching"}),Q(qZ(z),{display:"system"}),null;return J.setAppState((V)=>({...V,ultraplanLaunchPending:{blurb:X}})),Q(void 0,{display:"skip"}),null},NY;var GZ=a(()=>{SQ();p0();DQ();AQ();_J();UJ();cJ();aJ();BQ();hQ();IQ();vQ();NJ();iJ();FJ=(nJ(),RJ(oJ)),_Q=(typeof FJ==="string"?FJ:FJ.default).trimEnd(),TQ=_Q;NY={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=VZ(J,Q.toolName);if(!X)return Q.toolName;try{let z=X.inputSchema.safeParse(Q.input),Y=z.success?z.data:{},V=X.userFacingName(Y);if(!V)return Q.toolName;let G=X.renderToolUseMessage(Y,{theme:Z,verbose:!1});if(G)return N(W,{children:[V,"(",G,")"]});return V}catch{return Q.toolName}}var wJ=a(()=>{q0();LJ();$()});function OZ(Q){let J=PZ.c(54),{agent:Z,onDone:X,onKillAgent:z,onBack:Y}=Q,[V]=l0(),G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=$0(r0()),J[0]=G;else G=J[0];let F=G,R=R0(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 P;if(J[3]===Symbol.for("react.memo_cache_sentinel"))P={context:"Confirmation"},J[3]=P;else P=J[3];G0(O,P);let U;if(J[4]!==Z.status||J[5]!==Y||J[6]!==X||J[7]!==z)U=(S)=>{if(S.key===" ")S.preventDefault(),X();else if(S.key==="left"&&Y)S.preventDefault(),Y();else if(S.key==="x"&&Z.status==="running"&&z)S.preventDefault(),z()},J[4]=Z.status,J[5]=Y,J[6]=X,J[7]=z,J[8]=U;else U=J[8];let w=U,f;if(J[9]!==Z.prompt)f=WZ(Z.prompt,"plan"),J[9]=Z.prompt,J[10]=f;else f=J[10];let L=f,C=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,h=Z.selectedAgent?.agentType??"agent",D=Z.description||"Async agent",I;if(J[11]!==h||J[12]!==D)I=N(W,{children:[h," ›"," ",D]}),J[11]=h,J[12]=D,J[13]=I;else I=J[13];let K=I,B;if(J[14]!==Z.status)B=Z.status!=="running"&&N(W,{color:FZ(Z.status),children:[NZ(Z.status)," ",Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[14]=Z.status,J[15]=B;else B=J[15];let p;if(J[16]!==E)p=E!==void 0&&E>0&&N(o,{children:[" · ",x0(E)," tokens"]}),J[16]=E,J[17]=p;else p=J[17];let d;if(J[18]!==A)d=A!==void 0&&A>0&&N(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[18]=A,J[19]=d;else d=J[19];let j;if(J[20]!==R||J[21]!==p||J[22]!==d)j=N(W,{dimColor:!0,children:[R,p,d]}),J[20]=R,J[21]=p,J[22]=d,J[23]=j;else j=J[23];let x;if(J[24]!==j||J[25]!==B)x=N(W,{children:[B,j]}),J[24]=j,J[25]=B,J[26]=x;else x=J[26];let c=x,v;if(J[27]!==Z.status||J[28]!==Y||J[29]!==z)v=(S)=>S.pending?N(W,{children:["Press ",S.keyName," again to exit"]}):N(Z0,{children:[Y&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&q(l,{shortcut:"x",action:"stop"})]}),J[27]=Z.status,J[28]=Y,J[29]=z,J[30]=v;else v=J[30];let b;if(J[31]!==Z.progress||J[32]!==Z.status||J[33]!==V)b=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&N(y,{flexDirection:"column",children:[q(W,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((S,k)=>N(W,{dimColor:k<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[k===Z.progress.recentActivities.length-1?"› ":" ",k0(S,F,V)]},k))]}),J[31]=Z.progress,J[32]=Z.status,J[33]=V,J[34]=b;else b=J[34];let m;if(J[35]!==C||J[36]!==L)m=L?q(y,{marginTop:1,children:q(HZ,{addMargin:!1,planContent:L})}):N(y,{flexDirection:"column",marginTop:1,children:[q(W,{bold:!0,dimColor:!0,children:"Prompt"}),q(W,{wrap:"wrap",children:C})]}),J[35]=C,J[36]=L,J[37]=m;else m=J[37];let T;if(J[38]!==Z.error||J[39]!==Z.status)T=Z.status==="failed"&&Z.error&&N(y,{flexDirection:"column",marginTop:1,children:[q(W,{bold:!0,color:"error",children:"Error"}),q(W,{color:"error",wrap:"wrap",children:Z.error})]}),J[38]=Z.error,J[39]=Z.status,J[40]=T;else T=J[40];let _;if(J[41]!==b||J[42]!==m||J[43]!==T)_=N(y,{flexDirection:"column",children:[b,m,T]}),J[41]=b,J[42]=m,J[43]=T,J[44]=_;else _=J[44];let g;if(J[45]!==X||J[46]!==c||J[47]!==v||J[48]!==_||J[49]!==K)g=q(n,{title:K,subtitle:c,onCancel:X,color:"background",inputGuide:v,children:_}),J[45]=X,J[46]=c,J[47]=v,J[48]=_,J[49]=K,J[50]=g;else g=J[50];let u;if(J[51]!==w||J[52]!==g)u=q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:w,children:g}),J[51]=w,J[52]=g,J[53]=u;else u=J[53];return u}var PZ;var UZ=a(()=>{i0();q0();S0();LJ();RZ();v0();fZ();B0();I0();A0();rQ();wJ();MJ();$();PZ=J0(F0(),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 KJ(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 V;if(J[2]!==z||J[3]!==Y)V=q(o,{children:Y.map((G,F)=>q(W,{color:MZ(F+z),children:G},F))}),J[2]=z,J[3]=Y,J[4]=V;else V=J[4];return V}function EJ(Q,J,Z){let X=CJ.useRef(Q),z=CJ.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=KZ().prefersReducedMotion??!1,Y=Z.reviewProgress,V=Z.status==="running",[,G]=wZ(V&&!z?LZ:null),F=Y?.bugsFound??0,R=Y?.bugsVerified??0,O=Y?.bugsRefuted??0,P=z||!V,U=EJ(F,G,P),w=EJ(R,G,P),f=EJ(O,G,P),L=Math.floor(G/(LZ*3))%7;if(Z.status==="completed"){let B;if(J[0]===Symbol.for("react.memo_cache_sentinel"))B=N(o,{children:[N(W,{color:"background",children:[w0," "]}),q(KJ,{text:"ultrareview",phase:0}),q(W,{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=N(o,{children:[N(W,{color:"background",children:[w0," "]}),q(KJ,{text:"ultrareview",phase:0}),N(W,{color:"error",dimColor:!0,children:[" · ","error"]})]}),J[1]=B;else B=J[1];return B}let C;if(J[2]!==U||J[3]!==Y||J[4]!==f||J[5]!==w)C=!Y?"setting up":bJ(Y.stage,U,w,f),J[2]=U,J[3]=Y,J[4]=f,J[5]=w,J[6]=C;else C=J[6];let E=C,A;if(J[7]===Symbol.for("react.memo_cache_sentinel"))A=N(W,{color:"background",children:[z0," "]}),J[7]=A;else A=J[7];let h=V?L:0,D;if(J[8]!==h)D=q(KJ,{text:"ultrareview",phase:h}),J[8]=h,J[9]=D;else D=J[9];let I;if(J[10]!==E)I=N(W,{dimColor:!0,children:[" · ",E]}),J[10]=E,J[11]=I;else I=J[11];let K;if(J[12]!==D||J[13]!==I)K=N(o,{children:[A,D,I]}),J[12]=D,J[13]=I,J[14]=K;else K=J[14];return K}function j0(Q){let J=n0.c(11),{session:Z}=Q;if(Z.isRemoteReview){let G;if(J[0]!==Z)G=q($Q,{session:Z}),J[0]=Z,J[1]=G;else G=J[1];return G}if(Z.status==="completed"){let G;if(J[2]===Symbol.for("react.memo_cache_sentinel"))G=q(W,{bold:!0,color:"success",dimColor:!0,children:"done"}),J[2]=G;else G=J[2];return G}if(Z.status==="failed"){let G;if(J[3]===Symbol.for("react.memo_cache_sentinel"))G=q(W,{bold:!0,color:"error",dimColor:!0,children:"error"}),J[3]=G;else G=J[3];return G}if(!Z.todoList.length){let G;if(J[4]!==Z.status)G=N(W,{dimColor:!0,children:[Z.status,"…"]}),J[4]=Z.status,J[5]=G;else G=J[5];return G}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,V;if(J[8]!==z||J[9]!==Y)V=N(W,{dimColor:!0,children:[z,"/",Y]}),J[8]=z,J[9]=Y,J[10]=V;else V=J[10];return V}function oQ(Q){return Q.status==="completed"}var n0,CJ,LZ=80;var AJ=a(()=>{p0();iQ();q0();yJ();lQ();$();n0=J0(F0(),1),CJ=J0(o0(),1)});function P0(Q){let J=BJ.c(4),{status:Z,label:X,suffix:z}=Q,Y=X??Z,V=Z==="completed"?"success":Z==="failed"?"error":Z==="killed"?"warning":void 0,G;if(J[0]!==V||J[1]!==Y||J[2]!==z)G=N(W,{color:V,dimColor:!0,children:["(",Y,z,")"]}),J[0]=V,J[1]=Y,J[2]=z,J[3]=G;else G=J[3];return G}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=q(P0,{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=q(P0,{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=q(P0,{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=q(P0,{status:"running"}),J[3]=X;else X=J[3];return X}}}var BJ;var CZ=a(()=>{q0();$();BJ=J0(F0(),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,V;if(J[0]!==z||J[1]!==Y)V=b0(Y,z,!0),J[0]=z,J[1]=Y,J[2]=V;else V=J[2];let G;if(J[3]!==Z)G=q(EZ,{shell:Z}),J[3]=Z,J[4]=G;else G=J[4];let F;if(J[5]!==V||J[6]!==G)F=N(W,{children:[V," ",G]}),J[5]=V,J[6]=G,J[7]=F;else F=J[7];return F}case"remote_agent":{if(Z.isRemoteReview){let U;if(J[8]!==Z)U=q(W,{children:q(j0,{session:Z})}),J[8]=Z,J[9]=U;else U=J[9];return U}let V=Z.status==="running"||Z.status==="pending"?z0:w0,G;if(J[10]!==V)G=N(W,{dimColor:!0,children:[V," "]}),J[10]=V,J[11]=G;else G=J[11];let F;if(J[12]!==z||J[13]!==Z.title)F=b0(Z.title,z,!0),J[12]=z,J[13]=Z.title,J[14]=F;else F=J[14];let R;if(J[15]===Symbol.for("react.memo_cache_sentinel"))R=q(W,{dimColor:!0,children:" · "}),J[15]=R;else R=J[15];let O;if(J[16]!==Z)O=q(j0,{session:Z}),J[16]=Z,J[17]=O;else O=J[17];let P;if(J[18]!==G||J[19]!==F||J[20]!==O)P=N(W,{children:[G,F,R,O]}),J[18]=G,J[19]=F,J[20]=O,J[21]=P;else P=J[21];return P}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 V=Z.status==="completed"?"done":void 0,G=Z.status==="completed"&&!Z.notified?", unread":void 0,F;if(J[25]!==V||J[26]!==G||J[27]!==Z.status)F=q(P0,{status:Z.status,label:V,suffix:G}),J[25]=V,J[26]=G,J[27]=Z.status,J[28]=F;else F=J[28];let R;if(J[29]!==Y||J[30]!==F)R=N(W,{children:[Y," ",F]}),J[29]=Y,J[30]=F,J[31]=R;else R=J[31];return R}case"in_process_teammate":{let Y,V,G,F,R,O;if(J[32]!==z||J[33]!==Z){let w=s0(Z);V=W;let f;if(J[40]!==Z.identity.color)f=a0(Z.identity.color),J[40]=Z.identity.color,J[41]=f;else f=J[41];if(J[42]!==f||J[43]!==Z.identity.agentName)O=N(W,{color:f,children:["@",Z.identity.agentName]}),J[42]=f,J[43]=Z.identity.agentName,J[44]=O;else O=J[44];Y=W,G=!0,F=": ",R=b0(w,z,!0),J[32]=z,J[33]=Z,J[34]=Y,J[35]=V,J[36]=G,J[37]=F,J[38]=R,J[39]=O}else Y=J[34],V=J[35],G=J[36],F=J[37],R=J[38],O=J[39];let P;if(J[45]!==Y||J[46]!==G||J[47]!==F||J[48]!==R)P=N(Y,{dimColor:G,children:[F,R]}),J[45]=Y,J[46]=G,J[47]=F,J[48]=R,J[49]=P;else P=J[49];let U;if(J[50]!==V||J[51]!==O||J[52]!==P)U=N(V,{children:[O,P]}),J[50]=V,J[51]=O,J[52]=P,J[53]=U;else U=J[53];return U}case"local_workflow":{let Y=Z.workflowName??Z.summary??Z.description,V;if(J[54]!==z||J[55]!==Y)V=b0(Y,z,!0),J[54]=z,J[55]=Y,J[56]=V;else V=J[56];let G;if(J[57]!==Z.agentCount||J[58]!==Z.status)G=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]=G;else G=J[59];let F=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[60]!==G||J[61]!==F||J[62]!==Z.status)R=q(P0,{status:Z.status,label:G,suffix:F}),J[60]=G,J[61]=F,J[62]=Z.status,J[63]=R;else R=J[63];let O;if(J[64]!==V||J[65]!==R)O=N(W,{children:[V," ",R]}),J[64]=V,J[65]=R,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 V=Z.status==="completed"?"done":void 0,G=Z.status==="completed"&&!Z.notified?", unread":void 0,F;if(J[70]!==V||J[71]!==G||J[72]!==Z.status)F=q(P0,{status:Z.status,label:V,suffix:G}),J[70]=V,J[71]=G,J[72]=Z.status,J[73]=F;else F=J[73];let R;if(J[74]!==Y||J[75]!==F)R=N(W,{children:[Y," ",F]}),J[74]=Y,J[75]=F,J[76]=R;else R=J[76];return R}case"dream":{let Y=Z.filesTouched.length,V;if(J[77]!==Y||J[78]!==Z.phase||J[79]!==Z.sessionsReviewing)V=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]=V;else V=J[80];let G=V,F;if(J[81]!==G||J[82]!==Z.phase)F=N(W,{dimColor:!0,children:["· ",Z.phase," · ",G]}),J[81]=G,J[82]=Z.phase,J[83]=F;else F=J[83];let R=Z.status==="completed"?"done":void 0,O=Z.status==="completed"&&!Z.notified?", unread":void 0,P;if(J[84]!==R||J[85]!==O||J[86]!==Z.status)P=q(P0,{status:Z.status,label:R,suffix:O}),J[84]=R,J[85]=O,J[86]=Z.status,J[87]=P;else P=J[87];let U;if(J[88]!==F||J[89]!==P||J[90]!==Z.description)U=N(W,{children:[Z.description," ",F," ",P]}),J[88]=F,J[89]=P,J[90]=Z.description,J[91]=U;else U=J[91];return U}}}var bZ;var BZ=a(()=>{q0();v0();yZ();IJ();p0();AJ();CZ();MJ();$();bZ=J0(F0(),1)});function DZ(Q){let J=IZ.c(70),{task:Z,onDone:X,onBack:z,onKill:Y}=Q,V=R0(Z.startTime,Z.status==="running",1000,0),G;if(J[0]!==X)G={"confirm:yes":X},J[0]=X,J[1]=G;else G=J[1];let F;if(J[2]===Symbol.for("react.memo_cache_sentinel"))F={context:"Confirmation"},J[2]=F;else F=J[2];G0(G,F);let R;if(J[3]!==z||J[4]!==X||J[5]!==Y||J[6]!==Z.status)R=(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]=R;else R=J[7];let O=R,P,U,w,f,L,C,E,A,h,D,I,K,B,p,d,j;if(J[8]!==V||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),m=b.slice(-nQ),T=b.length-m.length;w=y,E="column",A=0,h=!0,D=O,U=n,d="Memory consolidation";let _=Z.sessionsReviewing,g;if(J[33]!==Z.sessionsReviewing)g=Q0(Z.sessionsReviewing,"session"),J[33]=Z.sessionsReviewing,J[34]=g;else g=J[34];let u;if(J[35]!==Z.filesTouched.length)u=Z.filesTouched.length>0&&N(o,{children:[" ","· ",Z.filesTouched.length," ",Q0(Z.filesTouched.length,"file")," touched"]}),J[35]=Z.filesTouched.length,J[36]=u;else u=J[36];if(J[37]!==V||J[38]!==g||J[39]!==u||J[40]!==Z.sessionsReviewing)j=N(W,{dimColor:!0,children:[V," · reviewing ",_," ",g,u]}),J[37]=V,J[38]=g,J[39]=u,J[40]=Z.sessionsReviewing,J[41]=j;else j=J[41];if(f=X,L="background",J[42]!==z||J[43]!==Y||J[44]!==Z.status)C=(k)=>k.pending?N(W,{children:["Press ",k.keyName," again to exit"]}):N(Z0,{children:[z&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&Y&&q(l,{shortcut:"x",action:"stop"})]}),J[42]=z,J[43]=Y,J[44]=Z.status,J[45]=C;else C=J[45];P=y,I="column",K=1;let S;if(J[46]===Symbol.for("react.memo_cache_sentinel"))S=q(W,{bold:!0,children:"Status:"}),J[46]=S;else S=J[46];if(J[47]!==Z.status)B=N(W,{children:[S," ",Z.status==="running"?q(W,{color:"background",children:"running"}):Z.status==="completed"?q(W,{color:"success",children:Z.status}):q(W,{color:"error",children:Z.status})]}),J[47]=Z.status,J[48]=B;else B=J[48];p=m.length===0?q(W,{dimColor:!0,children:Z.status==="running"?"Starting…":"(no text output)"}):N(o,{children:[T>0&&N(W,{dimColor:!0,children:["(",T," earlier ",Q0(T,"turn"),")"]}),m.map(aQ)]}),J[8]=V,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]=P,J[18]=U,J[19]=w,J[20]=f,J[21]=L,J[22]=C,J[23]=E,J[24]=A,J[25]=h,J[26]=D,J[27]=I,J[28]=K,J[29]=B,J[30]=p,J[31]=d,J[32]=j}else P=J[17],U=J[18],w=J[19],f=J[20],L=J[21],C=J[22],E=J[23],A=J[24],h=J[25],D=J[26],I=J[27],K=J[28],B=J[29],p=J[30],d=J[31],j=J[32];let x;if(J[49]!==P||J[50]!==I||J[51]!==K||J[52]!==B||J[53]!==p)x=N(P,{flexDirection:I,gap:K,children:[B,p]}),J[49]=P,J[50]=I,J[51]=K,J[52]=B,J[53]=p,J[54]=x;else x=J[54];let c;if(J[55]!==U||J[56]!==f||J[57]!==L||J[58]!==C||J[59]!==x||J[60]!==d||J[61]!==j)c=q(U,{title:d,subtitle:j,onCancel:f,color:L,inputGuide:C,children:x}),J[55]=U,J[56]=f,J[57]=L,J[58]=C,J[59]=x,J[60]=d,J[61]=j,J[62]=c;else c=J[62];let v;if(J[63]!==w||J[64]!==E||J[65]!==A||J[66]!==h||J[67]!==D||J[68]!==c)v=q(w,{flexDirection:E,tabIndex:A,autoFocus:h,onKeyDown:D,children:c}),J[63]=w,J[64]=E,J[65]=A,J[66]=h,J[67]=D,J[68]=c,J[69]=v;else v=J[69];return v}function aQ(Q,J){return N(y,{flexDirection:"column",children:[q(W,{wrap:"wrap",children:Q.text}),Q.toolUseCount>0&&N(W,{dimColor:!0,children:[" ","(",Q.toolUseCount," ",Q0(Q.toolUseCount,"tool"),")"]})]},J)}function sQ(Q){return Q.text!==""}var IZ,nQ=6;var hZ=a(()=>{i0();q0();S0();IJ();B0();I0();A0();$();IZ=J0(F0(),1)});function SZ(Q){let J=vZ.c(63),{teammate:Z,onDone:X,onKill:z,onBack:Y,onForeground:V}=Q,[G]=l0(),F;if(J[0]===Symbol.for("react.memo_cache_sentinel"))F=$0(r0()),J[0]=F;else F=J[0];let R=F,O=R0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),P;if(J[1]!==X)P={"confirm:yes":X},J[1]=X,J[2]=P;else P=J[2];let U;if(J[3]===Symbol.for("react.memo_cache_sentinel"))U={context:"Confirmation"},J[3]=U;else U=J[3];G0(P,U);let w;if(J[4]!==Y||J[5]!==X||J[6]!==V||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"&&V)M.preventDefault(),V()},J[4]=Y,J[5]=X,J[6]=V,J[7]=z,J[8]=Z.status,J[9]=w;else w=J[9];let f=w,L;if(J[10]!==Z)L=s0(Z),J[10]=Z,J[11]=L;else L=J[11];let C=L,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,h;if(J[12]!==Z.prompt)h=K0(Z.prompt,300),J[12]=Z.prompt,J[13]=h;else h=J[13];let D=h,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 K;if(J[16]!==I||J[17]!==Z.identity.agentName)K=N(W,{color:I,children:["@",Z.identity.agentName]}),J[16]=I,J[17]=Z.identity.agentName,J[18]=K;else K=J[18];let B;if(J[19]!==C)B=C&&N(W,{dimColor:!0,children:[" (",C,")"]}),J[19]=C,J[20]=B;else B=J[20];let p;if(J[21]!==K||J[22]!==B)p=N(W,{children:[K,B]}),J[21]=K,J[22]=B,J[23]=p;else p=J[23];let d=p,j;if(J[24]!==Z.status)j=Z.status!=="running"&&N(W,{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]=j;else j=J[25];let x;if(J[26]!==E)x=E!==void 0&&E>0&&N(o,{children:[" · ",x0(E)," tokens"]}),J[26]=E,J[27]=x;else x=J[27];let c;if(J[28]!==A)c=A!==void 0&&A>0&&N(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[28]=A,J[29]=c;else c=J[29];let v;if(J[30]!==O||J[31]!==x||J[32]!==c)v=N(W,{dimColor:!0,children:[O,x,c]}),J[30]=O,J[31]=x,J[32]=c,J[33]=v;else v=J[33];let b;if(J[34]!==j||J[35]!==v)b=N(W,{children:[j,v]}),J[34]=j,J[35]=v,J[36]=b;else b=J[36];let m=b,T;if(J[37]!==Y||J[38]!==V||J[39]!==z||J[40]!==Z.status)T=(M)=>M.pending?N(W,{children:["Press ",M.keyName," again to exit"]}):N(Z0,{children:[Y&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&q(l,{shortcut:"x",action:"stop"}),Z.status==="running"&&V&&q(l,{shortcut:"f",action:"foreground"})]}),J[37]=Y,J[38]=V,J[39]=z,J[40]=Z.status,J[41]=T;else T=J[41];let _;if(J[42]!==Z.progress||J[43]!==Z.status||J[44]!==G)_=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&N(y,{flexDirection:"column",children:[q(W,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((M,r)=>N(W,{dimColor:r<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[r===Z.progress.recentActivities.length-1?"› ":" ",k0(M,R,G)]},r))]}),J[42]=Z.progress,J[43]=Z.status,J[44]=G,J[45]=_;else _=J[45];let g;if(J[46]===Symbol.for("react.memo_cache_sentinel"))g=q(W,{bold:!0,dimColor:!0,children:"Prompt"}),J[46]=g;else g=J[46];let u;if(J[47]!==D)u=N(y,{flexDirection:"column",marginTop:1,children:[g,q(W,{wrap:"wrap",children:D})]}),J[47]=D,J[48]=u;else u=J[48];let S;if(J[49]!==Z.error||J[50]!==Z.status)S=Z.status==="failed"&&Z.error&&N(y,{flexDirection:"column",marginTop:1,children:[q(W,{bold:!0,color:"error",children:"Error"}),q(W,{color:"error",wrap:"wrap",children:Z.error})]}),J[49]=Z.error,J[50]=Z.status,J[51]=S;else S=J[51];let k;if(J[52]!==X||J[53]!==m||J[54]!==T||J[55]!==_||J[56]!==u||J[57]!==S||J[58]!==d)k=N(n,{title:d,subtitle:m,onCancel:X,color:"background",inputGuide:T,children:[_,u,S]}),J[52]=X,J[53]=m,J[54]=T,J[55]=_,J[56]=u,J[57]=S,J[58]=d,J[59]=k;else k=J[59];let H;if(J[60]!==f||J[61]!==k)H=q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:f,children:k}),J[60]=f,J[61]=k,J[62]=H;else H=J[62];return H}var vZ;var jZ=a(()=>{i0();q0();S0();LJ();RZ();v0();yZ();B0();I0();A0();wJ();MJ();$();vZ=J0(F0(),1)});function YX(Q,J){if(Q===d0)return"Review the plan in Claude Code on the web";if(!J||typeof J!=="object")return Q;if(Q===cZ&&"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: ${K0(z,50)}`}}}for(let Z of Object.values(J))if(typeof Z==="string"&&Z.trim()){let X=Z.replace(/\s+/g," ").trim();return`${Q} ${K0(X,60)}`}return Q}function GX(Q){let J=ZJ.c(70),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,V=Z.status==="running"||Z.status==="pending",G=Z.ultraplanPhase,F=V?G?zX[G]:"running":Z.status,R=R0(Z.startTime,V,1000,0,Z.endTime),O=0,P=0,U=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(P++,U=e,e.name===uZ||e.name===dZ)O++}}let w=1+O,f;if(J[0]!==U)f=U?YX(U.name,U.input):null,J[0]=U,J[1]=f;else f=J[1];let L;if(J[2]!==P||J[3]!==w||J[4]!==f)L={agentsWorking:w,toolCalls:P,lastToolCall:f},J[2]=P,J[3]=w,J[4]=f,J[5]=L;else L=J[5];let{agentsWorking:C,toolCalls:E,lastToolCall:A}=L,h;if(J[6]!==Z.sessionId)h=_0(Z.sessionId),J[6]=Z.sessionId,J[7]=h;else h=J[7];let D=h,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 K=I,[B,p]=O0.useState(!1);if(B){let X0;if(J[11]===Symbol.for("react.memo_cache_sentinel"))X0=()=>p(!1),J[11]=X0;else X0=J[11];let e;if(J[12]===Symbol.for("react.memo_cache_sentinel"))e=q(W,{dimColor:!0,children:"This will terminate the Claude Code on the web session."}),J[12]=e;else e=J[12];let y0;if(J[13]===Symbol.for("react.memo_cache_sentinel"))y0={label:"Terminate session",value:"stop"},J[13]=y0;else y0=J[13];let i;if(J[14]===Symbol.for("react.memo_cache_sentinel"))i=[y0,{label:"Back",value:"back"}],J[14]=i;else i=J[14];let f0;if(J[15]!==K||J[16]!==Y)f0=q(n,{title:"Stop ultraplan?",onCancel:X0,color:"background",children:N(y,{flexDirection:"column",gap:1,children:[e,q(g0,{options:i,onChange:(T0)=>{if(T0==="stop")Y?.(),K();else p(!1)}})]})}),J[15]=K,J[16]=Y,J[17]=f0;else f0=J[17];return f0}let d=G==="plan_ready"?w0:z0,j;if(J[18]!==d)j=N(W,{color:"background",children:[d," "]}),J[18]=d,J[19]=j;else j=J[19];let x;if(J[20]===Symbol.for("react.memo_cache_sentinel"))x=q(W,{bold:!0,children:"ultraplan"}),J[20]=x;else x=J[20];let c;if(J[21]!==R||J[22]!==F)c=N(W,{dimColor:!0,children:[" · ",R," · ",F]}),J[21]=R,J[22]=F,J[23]=c;else c=J[23];let v;if(J[24]!==j||J[25]!==c)v=N(W,{children:[j,x,c]}),J[24]=j,J[25]=c,J[26]=v;else v=J[26];let b;if(J[27]!==G)b=G==="plan_ready"&&N(W,{color:"success",children:[t0.tick," "]}),J[27]=G,J[28]=b;else b=J[28];let m;if(J[29]!==C)m=Q0(C,"agent"),J[29]=C,J[30]=m;else m=J[30];let T=G?qX[G]:"working",_;if(J[31]!==E)_=Q0(E,"call"),J[31]=E,J[32]=_;else _=J[32];let g;if(J[33]!==C||J[34]!==b||J[35]!==m||J[36]!==T||J[37]!==_||J[38]!==E)g=N(W,{children:[b,C," ",m," ",T," · ",E," tool"," ",_]}),J[33]=C,J[34]=b,J[35]=m,J[36]=T,J[37]=_,J[38]=E,J[39]=g;else g=J[39];let u;if(J[40]!==A)u=A&&q(W,{dimColor:!0,children:A}),J[40]=A,J[41]=u;else u=J[41];let S;if(J[42]!==D)S=q(W,{dimColor:!0,children:D}),J[42]=D,J[43]=S;else S=J[43];let k;if(J[44]!==D||J[45]!==S)k=q(JJ,{url:D,children:S}),J[44]=D,J[45]=S,J[46]=k;else k=J[46];let H;if(J[47]===Symbol.for("react.memo_cache_sentinel"))H={label:"Review in Claude Code on the web",value:"open"},J[47]=H;else H=J[47];let M;if(J[48]!==Y||J[49]!==V)M=Y&&V?[{label:"Stop ultraplan",value:"stop"}]:[],J[48]=Y,J[49]=V,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=[H,...M,r],J[52]=M,J[53]=s;else s=J[53];let Y0;if(J[54]!==K||J[55]!==X||J[56]!==D)Y0=(X0)=>{switch(X0){case"open":{DJ(D),X();return}case"stop":{p(!0);return}case"back":{K();return}}},J[54]=K,J[55]=X,J[56]=D,J[57]=Y0;else Y0=J[57];let W0;if(J[58]!==s||J[59]!==Y0)W0=q(g0,{options:s,onChange:Y0}),J[58]=s,J[59]=Y0,J[60]=W0;else W0=J[60];let H0;if(J[61]!==g||J[62]!==u||J[63]!==k||J[64]!==W0)H0=N(y,{flexDirection:"column",gap:1,children:[g,u,k,W0]}),J[61]=g,J[62]=u,J[63]=k,J[64]=W0,J[65]=H0;else H0=J[65];let C0;if(J[66]!==K||J[67]!==v||J[68]!==H0)C0=q(n,{title:v,onCancel:K,color:"background",children:H0}),J[66]=K,J[67]=v,J[68]=H0,J[69]=C0;else C0=J[69];return C0}function VX(Q){let J=ZJ.c(15),{stage:Z,completed:X,hasProgress:z}=Q,Y;if(J[0]!==Z)Y=Z?gZ.indexOf(Z):-1,J[0]=Z,J[1]=Y;else Y=J[1];let V=Y,G=!X&&!z,F;if(J[2]!==G)F=G?q(W,{color:"background",children:"Setup"}):q(W,{dimColor:!0,children:"Setup"}),J[2]=G,J[3]=F;else F=J[3];let R;if(J[4]===Symbol.for("react.memo_cache_sentinel"))R=q(W,{dimColor:!0,children:" → "}),J[4]=R;else R=J[4];let O;if(J[5]!==X||J[6]!==V||J[7]!==G)O=gZ.map((w,f)=>{let L=!X&&!G&&f===V;return N(O0.default.Fragment,{children:[f>0&&q(W,{dimColor:!0,children:" → "}),L?q(W,{color:"background",children:_Z[w]}):q(W,{dimColor:!0,children:_Z[w]})]},w)}),J[5]=X,J[6]=V,J[7]=G,J[8]=O;else O=J[8];let P;if(J[9]!==X)P=X&&q(W,{color:"success",children:" ✓"}),J[9]=X,J[10]=P;else P=J[10];let U;if(J[11]!==F||J[12]!==O||J[13]!==P)U=N(W,{children:[F,R,O,P]}),J[11]=F,J[12]=O,J[13]=P,J[14]=U;else U=J[14];return U}function WX(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 HX(Q){let J=ZJ.c(56),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,V=Z.status==="completed",G=Z.status==="running"||Z.status==="pending",[F,R]=O0.useState(!1),O=R0(Z.startTime,G,1000,0,Z.endTime),P;if(J[0]!==X)P=()=>X("Remote session details dismissed",{display:"system"}),J[0]=X,J[1]=P;else P=J[1];let U=P,w=z??U,f;if(J[2]!==Z.sessionId)f=_0(Z.sessionId),J[2]=Z.sessionId,J[3]=f;else f=J[3];let L=f,C=V?"ready":G?"running":Z.status;if(F){let k;if(J[4]===Symbol.for("react.memo_cache_sentinel"))k=()=>R(!1),J[4]=k;else k=J[4];let H;if(J[5]===Symbol.for("react.memo_cache_sentinel"))H=q(W,{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]=H;else H=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=q(n,{title:"Stop ultrareview?",onCancel:k,color:"background",children:N(y,{flexDirection:"column",gap:1,children:[H,q(g0,{options:r,onChange:(Y0)=>{if(Y0==="stop")Y?.(),w();else R(!1)}})]})}),J[8]=w,J[9]=Y,J[10]=s;else s=J[10];return s}let E;if(J[11]!==V||J[12]!==Y||J[13]!==G)E=V?[{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&&G?[{label:"Stop ultrareview",value:"stop"}]:[],{label:"Back",value:"back"}],J[11]=V,J[12]=Y,J[13]=G,J[14]=E;else E=J[14];let A=E,h;if(J[15]!==w||J[16]!==U||J[17]!==X||J[18]!==L)h=(k)=>{J:switch(k){case"open":{DJ(L),X();break J}case"stop":{R(!0);break J}case"back":{w();break J}case"dismiss":U()}},J[15]=w,J[16]=U,J[17]=X,J[18]=L,J[19]=h;else h=J[19];let D=h,I=V?w0:z0,K;if(J[20]!==I)K=N(W,{color:"background",children:[I," "]}),J[20]=I,J[21]=K;else K=J[21];let B;if(J[22]===Symbol.for("react.memo_cache_sentinel"))B=q(W,{bold:!0,children:"ultrareview"}),J[22]=B;else B=J[22];let p;if(J[23]!==O||J[24]!==C)p=N(W,{dimColor:!0,children:[" · ",O," · ",C]}),J[23]=O,J[24]=C,J[25]=p;else p=J[25];let d;if(J[26]!==K||J[27]!==p)d=N(W,{children:[K,B,p]}),J[26]=K,J[27]=p,J[28]=d;else d=J[28];let j=Z.reviewProgress?.stage,x=!!Z.reviewProgress,c;if(J[29]!==V||J[30]!==j||J[31]!==x)c=q(VX,{stage:j,completed:V,hasProgress:x}),J[29]=V,J[30]=j,J[31]=x,J[32]=c;else c=J[32];let v;if(J[33]!==Z)v=WX(Z),J[33]=Z,J[34]=v;else v=J[34];let b;if(J[35]!==v)b=q(W,{children:v}),J[35]=v,J[36]=b;else b=J[36];let m;if(J[37]!==L)m=q(W,{dimColor:!0,children:L}),J[37]=L,J[38]=m;else m=J[38];let T;if(J[39]!==L||J[40]!==m)T=q(JJ,{url:L,children:m}),J[39]=L,J[40]=m,J[41]=T;else T=J[41];let _;if(J[42]!==b||J[43]!==T)_=N(y,{flexDirection:"column",children:[b,T]}),J[42]=b,J[43]=T,J[44]=_;else _=J[44];let g;if(J[45]!==D||J[46]!==A)g=q(g0,{options:A,onChange:D}),J[45]=D,J[46]=A,J[47]=g;else g=J[47];let u;if(J[48]!==c||J[49]!==_||J[50]!==g)u=N(y,{flexDirection:"column",gap:1,children:[c,_,g]}),J[48]=c,J[49]=_,J[50]=g,J[51]=u;else u=J[51];let S;if(J[52]!==w||J[53]!==u||J[54]!==d)S=q(n,{title:d,onCancel:w,color:"background",inputGuide:NX,children:u}),J[52]=w,J[53]=u,J[54]=d,J[55]=S;else S=J[55];return S}function NX(Q){return Q.pending?N(W,{children:["Press ",Q.keyName," again to exit"]}):N(Z0,{children:[q(l,{shortcut:"Enter",action:"select"}),q(l,{shortcut:"Esc",action:"go back"})]})}function xZ({session:Q,toolUseContext:J,onDone:Z,onBack:X,onKill:z}){let[Y,V]=O0.useState(!1),[G,F]=O0.useState(null),R=O0.useMemo(()=>{if(Q.isUltraplan||Q.isRemoteReview)return[];return lZ(kZ(Q.log)).filter((L)=>L.type!=="progress").slice(-3)},[Q]);if(Q.isUltraplan)return q(GX,{session:Q,onDone:Z,onBack:X,onKill:z});if(Q.isRemoteReview)return q(HX,{session:Q,onDone:Z,onBack:X,onKill:z});let O=()=>Z("Remote session details dismissed",{display:"system"}),P=(L)=>{if(L.key===" ")L.preventDefault(),Z("Remote session details dismissed",{display:"system"});else if(L.key==="left"&&X)L.preventDefault(),X();else if(L.key==="t"&&!Y)L.preventDefault(),U();else if(L.key==="return")L.preventDefault(),O()};async function U(){V(!0),F(null);try{await mZ(Q.sessionId)}catch(L){F(h0(L))}finally{V(!1)}}let w=K0(Q.title,50),f=Q.status==="pending"?"starting":Q.status;return q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:P,children:N(n,{title:"Remote session details",onCancel:O,color:"background",inputGuide:(L)=>L.pending?N(W,{children:["Press ",L.keyName," again to exit"]}):N(Z0,{children:[X&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),!Y&&q(l,{shortcut:"t",action:"teleport"})]}),children:[N(y,{flexDirection:"column",children:[N(W,{children:[q(W,{bold:!0,children:"Status"}),":"," ",f==="running"||f==="starting"?q(W,{color:"background",children:f}):f==="completed"?q(W,{color:"success",children:f}):q(W,{color:"error",children:f})]}),N(W,{children:[q(W,{bold:!0,children:"Runtime"}),":"," ",e0((Q.endTime??Date.now())-Q.startTime)]}),N(W,{wrap:"truncate-end",children:[q(W,{bold:!0,children:"Title"}),": ",w]}),N(W,{children:[q(W,{bold:!0,children:"Progress"}),":"," ",q(j0,{session:Q})]}),N(W,{children:[q(W,{bold:!0,children:"Session URL"}),":"," ",q(JJ,{url:_0(Q.sessionId),children:q(W,{dimColor:!0,children:_0(Q.sessionId)})})]})]}),Q.log.length>0&&N(y,{flexDirection:"column",marginTop:1,children:[N(W,{children:[q(W,{bold:!0,children:"Recent messages"}),":"]}),q(y,{flexDirection:"column",height:10,overflowY:"hidden",children:R.map((L,C)=>q(pZ,{message:L,lookups:iZ,addMargin:C>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},C))}),q(y,{marginTop:1,children:N(W,{dimColor:!0,italic:!0,children:["Showing last ",R.length," of ",Q.log.length," ","messages"]})})]}),G&&q(y,{marginTop:1,children:N(W,{color:"error",children:["Teleport failed: ",G]})}),Y&&q(W,{color:"background",children:"Teleporting to session…"})]})})}var ZJ,O0,zX,qX,gZ,_Z;var rZ=a(()=>{TZ();p0();i0();q0();UJ();eQ();tQ();mJ();JX();aJ();v0();XX();fZ();IJ();NJ();QX();B0();I0();A0();ZX();AJ();$();ZJ=J0(F0(),1),O0=J0(o0(),1);zX={needs_input:"input required",plan_ready:"ready"},qX={needs_input:"waiting",plan_ready:"done"};gZ=["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,PX);return{content:Z.content,bytesTotal:Z.bytesTotal}}catch{return{content:"",bytesTotal:0}}}function eZ(Q){let J=hJ.c(57),{shell:Z,onDone:X,onKillShell:z,onBack:Y}=Q,{columns:V}=QJ(),G;if(J[0]!==Z)G=()=>sZ(Z),J[0]=Z,J[1]=G;else G=J[1];let[F,R]=V0.useState(G),O=V0.useDeferredValue(F),P;if(J[2]!==Z)P=()=>{if(Z.status!=="running")return;let r=setInterval(OX,1000,R,Z);return()=>clearInterval(r)},J[2]=Z,J[3]=P;else P=J[3];let U;if(J[4]!==Z.id||J[5]!==Z.status)U=[Z.id,Z.status],J[4]=Z.id,J[5]=Z.status,J[6]=U;else U=J[6];V0.useEffect(P,U);let w;if(J[7]!==X)w=()=>X("Shell details dismissed",{display:"system"}),J[7]=X,J[8]=w;else w=J[8];let f=w,L;if(J[9]!==f)L={"confirm:yes":f},J[9]=f,J[10]=L;else L=J[10];let C;if(J[11]===Symbol.for("react.memo_cache_sentinel"))C={context:"Confirmation"},J[11]=C;else C=J[11];G0(L,C);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,h=Z.kind==="monitor",D;if(J[17]!==Z.command)D=K0(Z.command,280),J[17]=Z.command,J[18]=D;else D=J[18];let I=D,K=h?"Monitor details":"Shell details",B;if(J[19]!==Y||J[20]!==z||J[21]!==Z.status)B=(r)=>r.pending?N(W,{children:["Press ",r.keyName," again to exit"]}):N(Z0,{children:[Y&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&q(l,{shortcut:"x",action:"stop"})]}),J[19]=Y,J[20]=z,J[21]=Z.status,J[22]=B;else B=J[22];let p;if(J[23]===Symbol.for("react.memo_cache_sentinel"))p=q(W,{bold:!0,children:"Status:"}),J[23]=p;else p=J[23];let d;if(J[24]!==Z.result||J[25]!==Z.status)d=N(W,{children:[p," ",Z.status==="running"?N(W,{color:"background",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):Z.status==="completed"?N(W,{color:"success",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):N(W,{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]=d;else d=J[26];let j;if(J[27]===Symbol.for("react.memo_cache_sentinel"))j=q(W,{bold:!0,children:"Runtime:"}),J[27]=j;else j=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 c=x-Z.startTime,v;if(J[30]!==c)v=e0(c),J[30]=c,J[31]=v;else v=J[31];let b;if(J[32]!==v)b=N(W,{children:[j," ",v]}),J[32]=v,J[33]=b;else b=J[33];let m=h?"Script:":"Command:",T;if(J[34]!==m)T=q(W,{bold:!0,children:m}),J[34]=m,J[35]=T;else T=J[35];let _;if(J[36]!==I||J[37]!==T)_=N(W,{wrap:"wrap",children:[T," ",I]}),J[36]=I,J[37]=T,J[38]=_;else _=J[38];let g;if(J[39]!==d||J[40]!==b||J[41]!==_)g=N(y,{flexDirection:"column",children:[d,b,_]}),J[39]=d,J[40]=b,J[41]=_,J[42]=g;else g=J[42];let u;if(J[43]===Symbol.for("react.memo_cache_sentinel"))u=q(W,{bold:!0,children:"Output:"}),J[43]=u;else u=J[43];let S;if(J[44]===Symbol.for("react.memo_cache_sentinel"))S=q(W,{dimColor:!0,children:"Loading output…"}),J[44]=S;else S=J[44];let k;if(J[45]!==V||J[46]!==O)k=N(y,{flexDirection:"column",children:[u,q(V0.Suspense,{fallback:S,children:q(UX,{outputPromise:O,columns:V})})]}),J[45]=V,J[46]=O,J[47]=k;else k=J[47];let H;if(J[48]!==f||J[49]!==B||J[50]!==g||J[51]!==k||J[52]!==K)H=N(n,{title:K,onCancel:f,color:"background",inputGuide:B,children:[g,k]}),J[48]=f,J[49]=B,J[50]=g,J[51]=k,J[52]=K,J[53]=H;else H=J[53];let M;if(J[54]!==A||J[55]!==H)M=q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:A,children:H}),J[54]=A,J[55]=H,J[56]=M;else M=J[56];return M}function OX(Q,J){return Q(sZ(J))}function UX(Q){let J=hJ.c(19),{outputPromise:Z,columns:X}=Q,{content:z,bytesTotal:Y}=V0.use(Z);if(!z){let L;if(J[0]===Symbol.for("react.memo_cache_sentinel"))L=q(W,{dimColor:!0,children:"No output available"}),J[0]=L;else L=J[0];return L}let V,G;if(J[1]!==Y||J[2]!==z){let L=[],C=z.length;for(let E=0;E<10&&C>0;E++){let A=z.lastIndexOf(`
|
|
17
|
-
`,C-1);L.push(A+1),C=A}L.reverse(),V=Y>z.length,G=[];for(let E=0;E<L.length;E++){let A=L[E],h=E<L.length-1?L[E+1]-1:z.length,D=z.slice(A,h);if(D)G.push(D)}J[1]=Y,J[2]=z,J[3]=V,J[4]=G}else V=J[3],G=J[4];let F=X-6,R;if(J[5]!==G)R=G.map(fX),J[5]=G,J[6]=R;else R=J[6];let O;if(J[7]!==F||J[8]!==R)O=q(y,{borderStyle:"round",paddingX:1,flexDirection:"column",height:12,maxWidth:F,children:R}),J[7]=F,J[8]=R,J[9]=O;else O=J[9];let P=`Showing ${G.length} lines`,U;if(J[10]!==Y||J[11]!==V)U=V?` of ${oZ(Y)}`:"",J[10]=Y,J[11]=V,J[12]=U;else U=J[12];let w;if(J[13]!==P||J[14]!==U)w=N(W,{dimColor:!0,italic:!0,children:[P,U]}),J[13]=P,J[14]=U,J[15]=w;else w=J[15];let f;if(J[16]!==O||J[17]!==w)f=N(o,{children:[O,w]}),J[16]=O,J[17]=w,J[18]=f;else f=J[18];return f}function fX(Q,J){return q(W,{wrap:"truncate-end",children:Q},J)}var hJ,V0,PX=8192;var tZ=a(()=>{nZ();q0();S0();v0();FX();RX();B0();I0();A0();$();hJ=J0(F0(),1),V0=J0(o0(),1)});var JQ={};$J(JQ,{default:()=>wX});var LX=()=>null,wX;var ZQ=a(()=>{wX=LX});function gX(Q,J){return Object.values(Q??{}).filter(qJ).filter((X)=>!(X.type==="local_agent"&&X.id===J))}function jq({onDone:Q,toolUseContext:J,initialDetailTaskId:Z}){let X=zJ((H)=>H.tasks),z=zJ((H)=>H.foregroundedTaskId),Y=zJ((H)=>H.expandedView)==="teammates",V=FQ(),G=VQ("chat:killAgents","Chat","ctrl+x ctrl+k"),F=X,R=U0.useRef(!1),[O,P]=U0.useState(()=>{if(Z)return R.current=!0,{mode:"detail",itemId:Z};let H=gX(F,z);if(H.length===1)return R.current=!0,{mode:"detail",itemId:H[0].id};return{mode:"list"}}),[U,w]=U0.useState(0);OQ("background-tasks-dialog");let{bashTasks:f,remoteSessions:L,agentTasks:C,teammateTasks:E,workflowTasks:A,mcpMonitors:h,dreamTasks:D,allSelectableItems:I}=U0.useMemo(()=>{let r=Object.values(F??{}).filter(qJ).map(_X).sort((i,f0)=>{let T0=i.status,gJ=f0.status;if(T0==="running"&&gJ!=="running")return-1;if(T0!=="running"&&gJ==="running")return 1;let UQ="task"in i?i.task.startTime:0;return("task"in f0?f0.task.startTime:0)-UQ}),s=r.filter((i)=>i.type==="local_bash"),Y0=r.filter((i)=>i.type==="remote_agent"),W0=r.filter((i)=>i.type==="local_agent"&&i.id!==z),H0=r.filter((i)=>i.type==="local_workflow"),C0=r.filter((i)=>i.type==="monitor_mcp"),X0=r.filter((i)=>i.type==="dream"),e=Y?[]:r.filter((i)=>i.type==="in_process_teammate"),y0=e.length>0?[{id:"__leader__",type:"leader",label:`@${vJ}`,status:"running"}]:[];return{bashTasks:s,remoteSessions:Y0,agentTasks:W0,workflowTasks:H0,mcpMonitors:C0,dreamTasks:X0,teammateTasks:[...y0,...e],allSelectableItems:[...y0,...e,...s,...C0,...Y0,...W0,...H0,...X0]}},[F,z,Y]),K=I[U]??null;G0({"confirm:previous":()=>w((H)=>Math.max(0,H-1)),"confirm:next":()=>w((H)=>Math.min(I.length-1,H+1)),"confirm:yes":()=>{let H=I[U];if(H)if(H.type==="leader")WJ(V),Q("Viewing leader",{display:"system"});else P({mode:"detail",itemId:H.id})}},{context:"Confirmation",isActive:O.mode==="list"});let B=(H)=>{if(O.mode!=="list")return;if(H.key==="left"){H.preventDefault(),Q("Background tasks dialog dismissed",{display:"system"});return}let M=I[U];if(!M)return;if(H.key==="x"){if(H.preventDefault(),M.type==="local_bash"&&M.status==="running")p(M.id);else if(M.type==="local_agent"&&M.status==="running")d(M.id);else if(M.type==="in_process_teammate"&&M.status==="running")j(M.id);else if(M.type==="local_workflow"&&M.status==="running"&&XJ)XJ(M.id,V);else if(M.type==="monitor_mcp"&&M.status==="running"&&YJ)YJ(M.id,V);else if(M.type==="dream"&&M.status==="running")x(M.id);else if(M.type==="remote_agent"&&M.status==="running")if(M.task.isUltraplan)fJ(M.id,M.task.sessionId,V);else c(M.id)}if(H.key==="f"){if(M.type==="in_process_teammate"&&M.status==="running")H.preventDefault(),VJ(M.id,V),Q("Viewing teammate",{display:"system"});else if(M.type==="leader")H.preventDefault(),WJ(V),Q("Viewing leader",{display:"system"})}};async function p(H){await WQ.kill(H,V)}async function d(H){await PQ.kill(H,V)}async function j(H){await HQ.kill(H,V)}async function x(H){await RQ.kill(H,V)}async function c(H){await m0.kill(H,V)}let v=NQ(Q);U0.useEffect(()=>{if(O.mode!=="list"){let M=(F??{})[O.itemId];if(!M||M.type!=="local_workflow"&&!qJ(M))if(R.current)v("Background tasks dialog dismissed",{display:"system"});else P({mode:"list"})}let H=I.length;if(U>=H&&H>0)w(H-1)},[O,F,U,I,v]);let b=()=>{if(R.current&&I.length<=1)Q("Background tasks dialog dismissed",{display:"system"});else R.current=!1,P({mode:"list"})};if(O.mode!=="list"&&F){let H=F[O.itemId];if(!H)return null;switch(H.type){case"local_bash":return q(eZ,{shell:H,onDone:Q,onKillShell:()=>void p(H.id),onBack:b},`shell-${H.id}`);case"local_agent":return q(OZ,{agent:H,onDone:Q,onKillAgent:()=>void d(H.id),onBack:b},`agent-${H.id}`);case"remote_agent":return q(xZ,{session:H,onDone:Q,toolUseContext:J,onBack:b,onKill:H.status!=="running"?void 0:H.isUltraplan?()=>void fJ(H.id,H.sessionId,V):()=>void c(H.id)},`session-${H.id}`);case"in_process_teammate":return q(SZ,{teammate:H,onDone:Q,onKill:H.status==="running"?()=>void j(H.id):void 0,onBack:b,onForeground:H.status==="running"?()=>{VJ(H.id,V),Q("Viewing teammate",{display:"system"})}:void 0},`teammate-${H.id}`);case"local_workflow":if(!QQ)return null;return q(QQ,{workflow:H,onDone:Q,onKill:H.status==="running"&&XJ?()=>XJ(H.id,V):void 0,onSkipAgent:H.status==="running"&&XQ?(M)=>XQ(H.id,M,V):void 0,onRetryAgent:H.status==="running"&&YQ?(M)=>YQ(H.id,M,V):void 0,onBack:b},`workflow-${H.id}`);case"monitor_mcp":if(!zQ)return null;return q(zQ,{task:H,onKill:H.status==="running"&&YJ?()=>YJ(H.id,V):void 0,onBack:b},`monitor-mcp-${H.id}`);case"dream":return q(DZ,{task:H,onDone:()=>Q("Background tasks dialog dismissed",{display:"system"}),onBack:b,onKill:H.status==="running"?()=>void x(H.id):void 0},`dream-${H.id}`)}}let m=M0(f,(H)=>H.status==="running"),T=M0(L,(H)=>H.status==="running"||H.status==="pending")+M0(C,(H)=>H.status==="running"),_=M0(E,(H)=>H.status==="running"),g=qQ([..._>0?[N(W,{children:[_," ",_!==1?"agents":"agent"]},"teammates")]:[],...m>0?[N(W,{children:[m," ",m!==1?"active shells":"active shell"]},"shells")]:[],...T>0?[N(W,{children:[T," ",T!==1?"active agents":"active agent"]},"agents")]:[]],(H)=>q(W,{children:" · "},`separator-${H}`)),u=[q(l,{shortcut:"↑/↓",action:"select"},"upDown"),q(l,{shortcut:"Enter",action:"view"},"enter"),...K?.type==="in_process_teammate"&&K.status==="running"?[q(l,{shortcut:"f",action:"foreground"},"foreground")]:[],...(K?.type==="local_bash"||K?.type==="local_agent"||K?.type==="in_process_teammate"||K?.type==="local_workflow"||K?.type==="monitor_mcp"||K?.type==="dream"||K?.type==="remote_agent")&&K.status==="running"?[q(l,{shortcut:"x",action:"stop"},"kill")]:[],...C.some((H)=>H.status==="running")?[q(l,{shortcut:G,action:"stop all agents"},"kill-all")]:[],q(l,{shortcut:"←/Esc",action:"close"},"esc")],S=()=>Q("Background tasks dialog dismissed",{display:"system"});function k(H){if(H.pending)return N(W,{children:["Press ",H.keyName," again to exit"]});return q(Z0,{children:u})}return q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:B,children:q(n,{title:"Background tasks",subtitle:q(o,{children:g}),onCancel:S,color:"background",inputGuide:k,children:I.length===0?q(W,{dimColor:!0,children:"No tasks currently running"}):N(y,{flexDirection:"column",children:[E.length>0&&N(y,{flexDirection:"column",children:[(f.length>0||L.length>0||C.length>0)&&N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Agents"]})," (",M0(E,(H)=>H.type!=="leader"),")"]}),q(y,{flexDirection:"column",children:q(TX,{teammateTasks:E,currentSelectionId:K?.id})})]}),f.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0?1:0,children:[(E.length>0||L.length>0||C.length>0)&&N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Shells"]})," (",f.length,")"]}),q(y,{flexDirection:"column",children:f.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),h.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0||f.length>0?1:0,children:[N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Monitors"]})," (",h.length,")"]}),q(y,{flexDirection:"column",children:h.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),L.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0||f.length>0||h.length>0?1:0,children:[N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Remote agents"]})," (",L.length,")"]}),q(y,{flexDirection:"column",children:L.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),C.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0||f.length>0||h.length>0||L.length>0?1:0,children:[N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Local agents"]})," (",C.length,")"]}),q(y,{flexDirection:"column",children:C.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),A.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0||f.length>0||h.length>0||L.length>0||C.length>0?1:0,children:[N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Workflows"]})," (",A.length,")"]}),q(y,{flexDirection:"column",children:A.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),D.length>0&&q(y,{flexDirection:"column",marginTop:E.length>0||f.length>0||h.length>0||L.length>0||C.length>0||A.length>0?1:0,children:q(y,{flexDirection:"column",children:D.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.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};default:throw Error(`toListItem: unhandled task type ${String(Q.type)}`)}}function E0(Q){let J=SJ.c(14),{item:Z,isSelected:X}=Q,{columns:z}=QJ(),Y=Math.max(30,z-26),V;if(J[0]===Symbol.for("react.memo_cache_sentinel"))V=GQ(),J[0]=V;else V=J[0];let G=V,F=G&&X,R=X?t0.pointer+" ":" ",O;if(J[1]!==F||J[2]!==R)O=q(W,{dimColor:F,children:R}),J[1]=F,J[2]=R,J[3]=O;else O=J[3];let P=X&&!G?"suggestion":void 0,U;if(J[4]!==Z.task||J[5]!==Z.type||J[6]!==Y)U=Z.type==="leader"?N(W,{children:["@",vJ]}):q(AZ,{task:Z.task,maxActivityWidth:Y}),J[4]=Z.task,J[5]=Z.type,J[6]=Y,J[7]=U;else U=J[7];let w;if(J[8]!==P||J[9]!==U)w=q(W,{color:P,children:U}),J[8]=P,J[9]=U,J[10]=w;else w=J[10];let f;if(J[11]!==O||J[12]!==w)f=N(y,{flexDirection:"row",children:[O,w]}),J[11]=O,J[12]=w,J[13]=f;else f=J[13];return f}function TX(Q){let J=SJ.c(3),{teammateTasks:Z,currentSelectionId:X}=Q,z;if(J[0]!==X||J[1]!==Z){let Y=Z.filter(dX),V=Z.filter(uX),G=new Map;for(let R of V){let O=R.task.identity.teamName,P=G.get(O);if(P)P.push(R);else G.set(O,[R])}let F=[...G.entries()];z=q(o,{children:F.map((R)=>{let[O,P]=R,U=P.length+Y.length;return N(y,{flexDirection:"column",children:[N(W,{dimColor:!0,children:[" ","Team: ",O," (",U,")"]}),Y.map((w)=>q(E0,{item:w,isSelected:w.id===X},`${w.id}-${O}`)),P.map((w)=>q(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 uX(Q){return Q.type==="in_process_teammate"}function dX(Q){return Q.type==="leader"}var SJ,U0,QQ=null,jJ=null,XJ,XQ,YQ,jX,YJ,zQ;var cX=a(()=>{TZ();MX();bX();nZ();AX();uJ();hX();yX();vX();CX();UJ();BX();yJ();KX();GZ();SX();q0();S0();EX();yJ();B0();I0();A0();UZ();BZ();hZ();jZ();rZ();tZ();$();SJ=J0(F0(),1),U0=J0(o0(),1),XJ=jJ?.killWorkflowTask??null,XQ=jJ?.skipWorkflowAgent??null,YQ=jJ?.retryWorkflowAgent??null,jX=(DX(),RJ(IX)),YJ=jX?.killMonitorMcp??null,zQ=(ZQ(),RJ(JQ)).MonitorMcpDetailDialog});
|
|
18
|
-
export{VJ as Ge,WJ as He,xX as Ie,uJ as Je,fJ as Ke,mQ as Le,GZ as Me,jq as Ne,cX as Oe};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$d as _,be as P}from"./cli-1.1.16-a09ca16c.mjs";import{Ce as Z,De as y}from"./cli-1.1.16-2c672gb7.mjs";import{Ux as X,Yx as K,gy as Y,iy as A}from"./cli-1.1.16-hwr77b8n.mjs";import{rY as V,uY as C}from"./cli-1.1.16-cnwnk7gb.mjs";import{$3 as Q,Z3 as H}from"./cli-1.1.16-72wxrwg0.mjs";import{a4 as W}from"./cli-1.1.16-2mzk1cmm.mjs";import{Oga as L,Pga as M}from"./cli-1.1.16-r0tgqw2k.mjs";import{Osa as T,Ssa as U}from"./cli-1.1.16-w5ns6t4b.mjs";function b({children:q}){let{bindings:D}=Y(),F=J.useRef(null),E=J.useRef(new Map),G=J.useRef(new Set).current;return H(V,{bindings:D,pendingChordRef:F,pendingChord:null,setPendingChord:()=>{},activeContexts:G,registerActiveContext:()=>{},unregisterActiveContext:()=>{},handlerRegistryRef:E,children:q})}function j(q){if(!("message"in q))return 1;let D=q.message.content;return Array.isArray(D)?D.length:1}async function v(q,D,F,{columns:E,verbose:G=!1,chunkSize:I=40,onProgress:$}={}){let B=(w)=>_(H(X,{children:H(b,{children:H(Z,{messages:q,tools:D,commands:[],verbose:G,toolJSX:null,toolUseConfirmQueue:[],inProgressToolUseIDs:new Set,isMessageSelectorVisible:!1,conversationId:"export",screen:"prompt",streamingToolUses:[],showAllInTranscript:!0,isLoading:!1,renderRange:w})})}),E),N=I;for(let w of q)N+=j(w);for(let w=0;w<N;w+=I){let O=await B([w,w+I]);if(L(O).trim()==="")break;await F(O),$?.(w+I)}}async function l(q,D=[],F){let E=[];return await v(q,D,(G)=>void E.push(L(G)),{columns:F}),E.join("")}var J;var x=U(()=>{M();y();C();A();K();P();Q();J=T(W(),1)});
|
|
2
|
-
export{l as lc,x as mc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ts as Hq,us as pq,uz as Uq,vz as mq}from"./cli-1.1.16-hwr77b8n.mjs";import{k4 as Bq,m4 as dq}from"./cli-1.1.16-vq6g4ncg.mjs";import{E7 as Nq,F7 as yq,K8 as gq,T4 as Lq,Y4 as jq,Z4 as Sq,k8 as i,o8 as S}from"./cli-1.1.16-49bqpfq6.mjs";import{C$ as b,G$ as $q,laa as Gq,naa as Pq,nea as Yq,oea as Dq,pea as k,rea as Wq,uea as Xq}from"./cli-1.1.16-jcye29qq.mjs";import{Kia as N,Mia as Mq,Nia as E,Oia as Cq}from"./cli-1.1.16-z56ew2eh.mjs";import{Dja as Zq,Eja as Rq,wja as Kq,xja as Qq,yja as Vq}from"./cli-1.1.16-3wey4s8m.mjs";import{Fja as _,Ija as e}from"./cli-1.1.16-5a4a2nqs.mjs";import{Ika as Y,Lja as Fq,Lka as Jq,Nja as $J,lka as m,qka as Eq}from"./cli-1.1.16-s404wy1x.mjs";import{gla as C,mla as P,nla as qq}from"./cli-1.1.16-njacmwr1.mjs";import{_ra as z,qsa as kq}from"./cli-1.1.16-4qysqchs.mjs";import{Rsa as ZJ,Ssa as d,Tsa as Tq}from"./cli-1.1.16-w5ns6t4b.mjs";var fq,r,s;var t=d(()=>{Mq();Cq();fq=E(()=>N.object({entries:N.record(N.string(),N.string()),entryChecksums:N.record(N.string(),N.string()).optional()})),r=E(()=>N.object({organizationId:N.string(),repo:N.string(),version:N.number(),lastModified:N.string(),checksum:N.string(),content:fq()})),s=E(()=>N.object({error:N.object({details:N.object({error_code:N.literal("team_memory_too_many_entries"),max_entries:N.number().int().positive(),received_entries:N.number().int().positive()})})}))});import{createHash as hq}from"crypto";import{mkdir as iq,readdir as cq,readFile as Oq,stat as nq,writeFile as lq}from"fs/promises";import{join as uq,relative as oq,sep as aq}from"path";function wq(){return{lastKnownChecksum:null,serverChecksums:new Map,serverMaxEntries:null}}function sq(q){return"sha256:"+hq("sha256").update(q,"utf8").digest("hex")}function xq(q){return q instanceof Error&&"code"in q&&typeof q.code==="string"}function n(){if(Lq()!=="firstParty"||!jq())return!1;let q=i();return Boolean(q?.accessToken&&q.scopes?.includes(Kq)&&q.scopes.includes(Qq))}function l(q){return`${process.env.TEAM_MEMORY_SYNC_URL||Zq().BASE_API_URL}/api/claude_code/team_memory?repo=${encodeURIComponent(q)}`}function u(){let q=i();if(q?.accessToken)return{headers:{Authorization:`Bearer ${q.accessToken}`,"anthropic-beta":Vq,"User-Agent":Bq()}};return{error:"No OAuth token available for team memory sync"}}async function tq(q,K,$){try{await S();let V=u();if(V.error)return{success:!1,error:V.error,skipRetry:!0,errorType:"auth"};let Q={...V.headers};if($)Q["If-None-Match"]=`"${$.replace(/"/g,"")}"`;let G=l(K),J=await z.get(G,{headers:Q,timeout:c,validateStatus:(X)=>X===200||X===304||X===404});if(J.status===304)return Y("team-memory-sync: not modified (304)",{level:"debug"}),{success:!0,notModified:!0,checksum:$??void 0};if(J.status===404)return Y("team-memory-sync: no remote data (404)",{level:"debug"}),q.lastKnownChecksum=null,{success:!0,isEmpty:!0};let Z=r().safeParse(J.data);if(!Z.success)return Y("team-memory-sync: invalid response format",{level:"warn"}),{success:!1,error:"Invalid team memory response format",skipRetry:!0,errorType:"parse"};let W=Z.data.checksum||J.headers.etag?.replace(/^"|"$/g,"")||void 0;if(W)q.lastKnownChecksum=W;return Y(`team-memory-sync: fetched successfully (checksum: ${W??"none"})`,{level:"debug"}),{success:!0,data:Z.data,isEmpty:!1,checksum:W}}catch(V){let{kind:Q,status:G,message:J}=P(V),Z=z.isAxiosError(V)?JSON.stringify(V.response?.data??""):"";if(Q!=="other")Y(`team-memory-sync: fetch error ${G}: ${Z}`,{level:"warn"});switch(Q){case"auth":return{success:!1,error:`Not authorized for team memory sync: ${Z}`,skipRetry:!0,errorType:"auth",httpStatus:G};case"timeout":return{success:!1,error:"Team memory sync request timeout",errorType:"timeout"};case"network":return{success:!1,error:"Cannot connect to server",errorType:"network"};default:return{success:!1,error:J,errorType:"unknown",httpStatus:G}}}}async function eq(q,K){try{await S();let $=u();if($.error)return{success:!1,error:$.error,errorType:"auth"};let V=l(K)+"&view=hashes",Q=await z.get(V,{headers:$.headers,timeout:c,validateStatus:(Z)=>Z===200||Z===404});if(Q.status===404)return q.lastKnownChecksum=null,{success:!0,entryChecksums:{}};let G=Q.data?.checksum||Q.headers.etag?.replace(/^"|"$/g,""),J=Q.data?.entryChecksums;if(!J||typeof J!=="object")return{success:!1,error:"Server did not return entryChecksums (?view=hashes unsupported)",errorType:"parse"};if(G)q.lastKnownChecksum=G;return{success:!0,version:Q.data?.version,checksum:G,entryChecksums:J}}catch($){let{kind:V,status:Q,message:G}=P($);switch(V){case"auth":return{success:!1,error:"Not authorized",errorType:"auth",httpStatus:Q};case"timeout":return{success:!1,error:"Timeout",errorType:"timeout"};case"network":return{success:!1,error:"Network error",errorType:"network"};default:return{success:!1,error:G,errorType:"unknown",httpStatus:Q}}}}async function qJ(q,K,$){let V=null;for(let Q=1;Q<=p+1;Q++){if(V=await tq(q,K,$),V.success||V.skipRetry)return V;if(Q>p)return V;let G=Hq(Q);Y(`team-memory-sync: retry ${Q}/${p}`,{level:"debug"}),await Nq(G)}return V}function JJ(q){let K=Object.keys(q).sort();if(K.length===0)return[];let $=Buffer.byteLength('{"entries":{}}',"utf8"),V=(Z,W)=>Buffer.byteLength(m(Z),"utf8")+Buffer.byteLength(m(W),"utf8")+2,Q=[],G={},J=$;for(let Z of K){let W=V(Z,q[Z]);if(J+W>rq&&Object.keys(G).length>0)Q.push(G),G={},J=$;G[Z]=q[Z],J+=W}return Q.push(G),Q}async function KJ(q,K,$,V){try{await S();let Q=u();if(Q.error)return{success:!1,error:Q.error,errorType:"auth"};let G={...Q.headers,"Content-Type":"application/json"};if(V)G["If-Match"]=`"${V.replace(/"/g,"")}"`;let J=l(K),Z=await z.put(J,{entries:$},{headers:G,timeout:c,validateStatus:(X)=>X===200||X===412});if(Z.status===412)return Y("team-memory-sync: conflict (412 Precondition Failed)",{level:"info"}),{success:!1,conflict:!0,error:"ETag mismatch"};let W=Z.data?.checksum;if(W)q.lastKnownChecksum=W;return Y(`team-memory-sync: uploaded ${Object.keys($).length} entries (checksum: ${W??"none"})`,{level:"debug"}),{success:!0,checksum:W,lastModified:Z.data?.lastModified}}catch(Q){let G=z.isAxiosError(Q)?JSON.stringify(Q.response?.data??""):"";Y(`team-memory-sync: upload failed: ${Q instanceof Error?Q.message:""} ${G}`,{level:"warn"});let{kind:J,status:Z,message:W}=P(Q),X=J==="http"||J==="other"?"unknown":J,j,O,B;if(Z===413&&z.isAxiosError(Q)){let H=s().safeParse(Q.response?.data);if(H.success)j=H.data.error.details.error_code,O=H.data.error.details.max_entries,B=H.data.error.details.received_entries}return{success:!1,error:W,errorType:X,httpStatus:Z,...j!==void 0&&{serverErrorCode:j},...O!==void 0&&{serverMaxEntries:O},...B!==void 0&&{serverReceivedEntries:B}}}}async function QJ(q){let K=k(),$={},V=[];async function Q(J){try{let Z=await cq(J,{withFileTypes:!0});await Promise.all(Z.map(async(W)=>{let X=uq(J,W.name);if(W.isDirectory())await Q(X);else if(W.isFile())try{let j=await nq(X);if(j.size>h){Y(`team-memory-sync: skipping oversized file ${W.name} (${j.size} > ${h} bytes)`,{level:"info"});return}let O=await Oq(X,"utf8"),B=oq(K,X).replaceAll("\\","/"),H=Uq(O);if(H.length>0){let L=H[0];V.push({path:B,ruleId:L.ruleId,label:L.label}),Y(`team-memory-sync: skipping "${B}" — detected ${L.label}`,{level:"warn"});return}$[B]=O}catch{}}))}catch(Z){if(xq(Z)){if(Z.code!=="ENOENT"&&Z.code!=="EACCES"&&Z.code!=="EPERM")throw Z}else throw Z}}await Q(K);let G=Object.keys($).sort();if(q!==null&&G.length>q){let J=G.slice(q);Y(`team-memory-sync: ${G.length} local entries exceeds server cap of ${q}; ${J.length} file(s) will NOT sync: ${J.join(", ")}. Consider consolidating or removing some team memory files.`,{level:"warn"}),_("",{total_entries:G.length,dropped_count:J.length,max_entries:q});let Z={};for(let W of G.slice(0,q))Z[W]=$[W];return{entries:Z,skippedSecrets:V}}return{entries:$,skippedSecrets:V}}async function VJ(q){let K=await Promise.all(Object.entries(q).map(async([$,V])=>{let Q;try{Q=await Wq($)}catch(J){if(J instanceof Yq)return Y(`team-memory-sync: ${J.message}`,{level:"warn"}),!1;throw J}if(Buffer.byteLength(V,"utf8")>h)return Y(`team-memory-sync: skipping oversized remote entry "${$}"`,{level:"info"}),!1;try{if(await Oq(Q,"utf8")===V)return!1}catch(J){if(xq(J)&&J.code!=="ENOENT"&&J.code!=="ENOTDIR")Y(`team-memory-sync: unexpected read error for "${$}": ${J.code}`,{level:"debug"})}try{let J=Q.substring(0,Q.lastIndexOf(aq));return await iq(J,{recursive:!0}),await lq(Q,V,"utf8"),!0}catch(J){return Y(`team-memory-sync: failed to write "${$}": ${J}`,{level:"warn"}),!1}}));return Gq(K,Boolean)}function _q(){return n()}async function Iq(q,K){let $=K?.skipEtagCache??!1,V=Date.now();if(!n())return A(V,{success:!1,errorType:"no_oauth"}),{success:!1,filesWritten:0,entryCount:0,error:"OAuth not available"};let Q=await b();if(!Q)return A(V,{success:!1,errorType:"no_repo"}),{success:!1,filesWritten:0,entryCount:0,error:"No git remote found"};let G=$?null:q.lastKnownChecksum,J=await qJ(q,Q,G);if(!J.success)return A(V,{success:!1,errorType:J.errorType,status:J.httpStatus}),{success:!1,filesWritten:0,entryCount:0,error:J.error};if(J.notModified)return A(V,{success:!0,notModified:!0}),{success:!0,filesWritten:0,entryCount:0,notModified:!0};if(J.isEmpty||!J.data)return q.serverChecksums.clear(),A(V,{success:!0}),{success:!0,filesWritten:0,entryCount:0};let Z=J.data.content.entries,W=J.data.content.entryChecksums;if(q.serverChecksums.clear(),W)for(let[j,O]of Object.entries(W))q.serverChecksums.set(j,O);else Y("team-memory-sync: server response missing entryChecksums (pre-#283027 deploy) — next push will be full, not delta",{level:"debug"});let X=await VJ(Z);if(X>0){let{clearMemoryFileCaches:j}=await import("./claudemd-1.1.16-7dtnkedr.mjs");j()}return Y(`team-memory-sync: pulled ${X} files`,{level:"info"}),A(V,{success:!0,filesWritten:X}),{success:!0,filesWritten:X,entryCount:Object.keys(Z).length}}async function o(q){let K=Date.now(),$=0;if(!n())return x(K,{success:!1,errorType:"no_oauth"}),{success:!1,filesUploaded:0,error:"OAuth not available",errorType:"no_oauth"};let V=await b();if(!V)return x(K,{success:!1,errorType:"no_repo"}),{success:!1,filesUploaded:0,error:"No git remote found",errorType:"no_repo"};let Q=await QJ(q.serverMaxEntries),G=Q.entries,J=Q.skippedSecrets;if(J.length>0){let X=J.map((j)=>`"${j.path}" (${j.label})`).join(", ");Y(`team-memory-sync: ${J.length} file(s) skipped due to detected secrets: ${X}. Remove the secret(s) to enable sync for these files.`,{level:"warn"}),_("",{file_count:J.length,rule_ids:J.map((j)=>j.ruleId).join(",")})}let Z=new Map;for(let[X,j]of Object.entries(G))Z.set(X,sq(j));let W=!1;for(let X=0;X<=R;X++){let j={};for(let[w,D]of Z)if(q.serverChecksums.get(w)!==D)j[w]=G[w];if(Object.keys(j).length===0)return x(K,{success:!0,conflict:W,conflictRetries:$}),{success:!0,filesUploaded:0,...J.length>0&&{skippedSecrets:J}};let B=JJ(j),H=0,L;for(let w of B){if(L=await KJ(q,V,w,q.lastKnownChecksum),!L.success)break;for(let D of Object.keys(w))q.serverChecksums.set(D,Z.get(D));H+=Object.keys(w).length}if(L=L,L.success)return Y(B.length>1?`team-memory-sync: pushed ${H} of ${Z.size} files in ${B.length} batches`:`team-memory-sync: pushed ${H} of ${Z.size} files (delta)`,{level:"info"}),x(K,{success:!0,filesUploaded:H,conflict:W,conflictRetries:$,putBatches:B.length>1?B.length:void 0}),{success:!0,filesUploaded:H,checksum:L.checksum,...J.length>0&&{skippedSecrets:J}};if(!L.conflict){if(L.serverMaxEntries!==void 0)q.serverMaxEntries=L.serverMaxEntries,Y(`team-memory-sync: learned server max_entries=${L.serverMaxEntries} from 413; next push will truncate to this`,{level:"warn"});return x(K,{success:!1,filesUploaded:H,conflictRetries:$,putBatches:B.length>1?B.length:void 0,errorType:L.errorType,status:L.httpStatus,errorCode:L.serverErrorCode,serverMaxEntries:L.serverMaxEntries,serverReceivedEntries:L.serverReceivedEntries}),{success:!1,filesUploaded:H,error:L.error,errorType:L.errorType,httpStatus:L.httpStatus}}if(W=!0,X>=R)return Y(`team-memory-sync: giving up after ${R} conflict retries`,{level:"warn"}),x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:"Conflict resolution failed after retries"};$++,Y(`team-memory-sync: conflict (412), probing server hashes (attempt ${X+1}/${R})`,{level:"info"});let T=await eq(q,V);if(!T.success||!T.entryChecksums)return x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:`Conflict resolution hashes probe failed: ${T.error}`};q.serverChecksums.clear();for(let[w,D]of Object.entries(T.entryChecksums))q.serverChecksums.set(w,D)}return x(K,{success:!1,conflictRetries:$}),{success:!1,filesUploaded:0,error:"Unexpected end of conflict resolution loop"}}function A(q,K){_("",{success:K.success,files_written:K.filesWritten??0,not_modified:K.notModified??!1,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status}})}function x(q,K){_("",{success:K.success,files_uploaded:K.filesUploaded??0,conflict:K.conflict??!1,conflict_retries:K.conflictRetries??0,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status},...K.putBatches&&{put_batches:K.putBatches},...K.errorCode&&{error_code:K.errorCode},...K.serverMaxEntries!==void 0&&{server_max_entries:K.serverMaxEntries},...K.serverReceivedEntries!==void 0&&{server_received_entries:K.serverReceivedEntries}})}var c=30000,h=250000,rq=200000,p=3,R=2;var zq=d(()=>{kq();Rq();Xq();Pq();gq();Jq();qq();$q();Sq();yq();Eq();dq();e();pq();mq();t()});var OJ={};ZJ(OJ,{stopTeamMemoryWatcher:()=>bq,startTeamMemoryWatcher:()=>NJ,notifyTeamMemoryWrite:()=>BJ,isPermanentFailure:()=>Aq,_startFileWatcherForTesting:()=>UJ,_resetWatcherStateForTesting:()=>HJ});import{watch as GJ}from"fs";import{mkdir as YJ,stat as WJ}from"fs/promises";import{join as XJ}from"path";function Aq(q){if(q.errorType==="no_oauth"||q.errorType==="no_repo")return!0;if(q.httpStatus!==void 0&&q.httpStatus>=400&&q.httpStatus<500&&q.httpStatus!==409&&q.httpStatus!==429)return!0;return!1}async function jJ(){if(!I)return;y=!0;try{let q=await o(I);if(q.success)g=!1;if(q.success&&q.filesUploaded>0)Y(`team-memory-watcher: pushed ${q.filesUploaded} files`,{level:"info"});else if(!q.success){if(Y(`team-memory-watcher: push failed: ${q.error}`,{level:"warn"}),Aq(q)&&U===null)U=q.httpStatus!==void 0?`http_${q.httpStatus}`:q.errorType??"unknown",Y(`team-memory-watcher: suppressing retry until next unlink or session restart (${U})`,{level:"warn"}),_("",{reason:U,...q.httpStatus&&{status:q.httpStatus}})}}catch(q){Y(`team-memory-watcher: push error: ${C(q)}`,{level:"warn"})}finally{y=!1,f=null}}function M(){if(U!==null)return;if(g=!0,F)clearTimeout(F);F=setTimeout(()=>{if(y){M();return}f=jJ()},LJ)}async function vq(q){if(a)return;a=!0;try{await YJ(q,{recursive:!0}),v=GJ(q,{persistent:!1,recursive:!0},(K,$)=>{if($===null){M();return}if(U!==null){WJ(XJ(q,$)).catch((V)=>{if(V.code!=="ENOENT")return;if(U!==null)Y(`team-memory-watcher: unlink cleared suppression (was: ${U})`,{level:"info"}),U=null;M()});return}M()}),v.on("error",(K)=>{Y(`team-memory-watcher: fs.watch error: ${C(K)}`,{level:"warn"})}),Y(`team-memory-watcher: watching ${q}`,{level:"debug"})}catch(K){Y(`team-memory-watcher: failed to watch ${q}: ${C(K)}`,{level:"warn"})}Fq(async()=>bq())}async function NJ(){if(!Dq()||!_q())return;if(!await b()){Y("team-memory-watcher: no github.com remote, skipping sync",{level:"debug"});return}I=wq();let K=!1,$=0,V=!1;try{let Q=await Iq(I);if(K=Q.success,V=Q.entryCount>0,Q.success&&Q.filesWritten>0)$=Q.filesWritten,Y(`team-memory-watcher: initial pull got ${Q.filesWritten} files`,{level:"info"})}catch(Q){Y(`team-memory-watcher: initial pull failed: ${C(Q)}`,{level:"warn"})}await vq(k()),_("",{initial_pull_success:K,initial_files_pulled:$,watcher_started:!0,server_has_content:V})}async function BJ(){if(!I)return;M()}async function bq(){if(F)clearTimeout(F),F=null;if(v)v.close(),v=null;if(f)try{await f}catch{}if(g&&I&&U===null)try{await o(I)}catch{}}function HJ(q){v=null,F=null,y=!1,g=!1,f=null,a=q?.skipWatcher??!1,U=q?.pushSuppressedReason??null,I=q?.syncState??null}function UJ(q){return vq(q)}var LJ=2000,v=null,F=null,y=!1,g=!1,f=null,a=!1,U=null,I=null;var wJ=d(()=>{Xq();$J();Jq();qq();$q();e();zq()});
|
|
2
|
-
export{Aq as n,NJ as o,BJ as p,bq as q,HJ as r,UJ as s,OJ as t,wJ as u};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ara as WQ,Bra as o,Cra as xQ,Dra as l5,Era as UY,fra as CQ,gra as YJ,hra as v,ira as P1,jra as J5,kra as w8,lra as D,mra as y,nra as m,ora as _Q,pra as L,qra as a,rra as h5,sra as e8,tra as F5,ura as _8,vra as E,wra as h8,xra as P,yra as x1,zra as d}from"./cli-1.1.16-vhwypfn6.mjs";import{Rsa as sQ,Ssa as X}from"./cli-1.1.16-w5ns6t4b.mjs";function h$(){this.__data__=new v,this.size=0}var e1;var QQ=X(()=>{P1();e1=h$});function n$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var $Q;var JQ=X(()=>{$Q=n$});function b$(Q){return this.__data__.get(Q)}var YQ;var ZQ=X(()=>{YQ=b$});function i$(Q){return this.__data__.has(Q)}var XQ;var HQ=X(()=>{XQ=i$});function l$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<u$-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new o(Z)}return Y.set(Q,J),this.size=Y.size,this}var u$=200,UQ;var KQ=X(()=>{P1();WQ();xQ();UQ=l$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var I1=X(()=>{P1();QQ();JQ();ZQ();HQ();KQ();g.prototype.clear=e1;g.prototype.delete=$Q;g.prototype.get=YQ;g.prototype.has=XQ;g.prototype.set=UQ;p=g});function c$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",GQ;var BQ=X(()=>{GQ=c$});function o$(Q){return this.__data__.has(Q)}var NQ;var wQ=X(()=>{NQ=o$});function r(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new o;while(++J<Y)this.add(Q[J])}var zQ;var FQ=X(()=>{xQ();BQ();wQ();r.prototype.add=r.prototype.push=GQ;r.prototype.has=NQ;zQ=r});function r$(Q,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(Q[Y],Y,Q))return!0;return!1}var RQ;var DQ=X(()=>{RQ=r$});function s$(Q,J){return Q.has(J)}var qQ;var OQ=X(()=>{qQ=s$});function e$(Q,J,Y,Z,H,W){var x=Y&a$,U=Q.length,B=J.length;if(U!=B&&!(x&&B>U))return!1;var K=W.get(Q),F=W.get(J);if(K&&F)return K==J&&F==Q;var z=-1,N=!0,V=Y&t$?new zQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],q=J[z];if(Z)var f=x?Z(q,R,z,J,Q,W):Z(R,q,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!RQ(J,function(C,_){if(!qQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===q||H(R,q,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var a$=1,t$=2,s;var C1=X(()=>{FQ();DQ();OQ();s=e$});var QJ,_1;var VQ=X(()=>{y();QJ=D.Uint8Array,_1=QJ});function $J(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var MQ;var LQ=X(()=>{MQ=$J});function JJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var fQ;var PQ=X(()=>{fQ=JJ});function RJ(Q,J,Y,Z,H,W,x){switch(Y){case FJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case zJ:if(Q.byteLength!=J.byteLength||!W(new _1(Q),new _1(J)))return!1;return!0;case HJ:case WJ:case KJ:return CQ(+Q,+J);case xJ:return Q.name==J.name&&Q.message==J.message;case GJ:case NJ:return Q==J+"";case UJ:var U=MQ;case BJ:var B=Z&ZJ;if(U||(U=fQ),Q.size!=J.size&&!B)return!1;var K=x.get(Q);if(K)return K==J;Z|=XJ,x.set(Q,J);var F=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case wJ:if(k1)return k1.call(Q)==k1.call(J)}return!1}var ZJ=1,XJ=2,HJ="[object Boolean]",WJ="[object Date]",xJ="[object Error]",UJ="[object Map]",KJ="[object Number]",GJ="[object RegExp]",BJ="[object Set]",NJ="[object String]",wJ="[object Symbol]",zJ="[object ArrayBuffer]",FJ="[object DataView]",IQ,k1,kQ;var EQ=X(()=>{_Q();VQ();YJ();C1();LQ();PQ();IQ=m?m.prototype:void 0,k1=IQ?IQ.valueOf:void 0;kQ=RJ});function DJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var vQ;var dQ=X(()=>{vQ=DJ});var qJ,w;var M=X(()=>{qJ=Array.isArray,w=qJ});function OJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:vQ(Z,Y(Q))}var gQ;var pQ=X(()=>{dQ();M();gQ=OJ});function VJ(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var yQ;var mQ=X(()=>{yQ=VJ});function MJ(){return[]}var SQ;var AQ=X(()=>{SQ=MJ});var LJ,fJ,jQ,PJ,hQ;var nQ=X(()=>{mQ();AQ();LJ=Object.prototype,fJ=LJ.propertyIsEnumerable,jQ=Object.getOwnPropertySymbols,PJ=!jQ?SQ:function(Q){if(Q==null)return[];return Q=Object(Q),yQ(jQ(Q),function(J){return fJ.call(Q,J)})},hQ=PJ});function IJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var bQ;var iQ=X(()=>{bQ=IJ});function CJ(Q){return Q!=null&&typeof Q=="object"}var O;var S=X(()=>{O=CJ});function kJ(Q){return O(Q)&&L(Q)==_J}var _J="[object Arguments]",E1;var uQ=X(()=>{a();S();E1=kJ});var lQ,EJ,vJ,dJ,t;var v1=X(()=>{uQ();S();lQ=Object.prototype,EJ=lQ.hasOwnProperty,vJ=lQ.propertyIsEnumerable,dJ=E1(function(){return arguments}())?E1:function(Q){return O(Q)&&EJ.call(Q,"callee")&&!vJ.call(Q,"callee")},t=dJ});function gJ(){return!1}var TQ;var cQ=X(()=>{TQ=gJ});var Q1={};sQ(Q1,{default:()=>A});var aQ,oQ,pJ,rQ,yJ,mJ,A;var d1=X(()=>{y();cQ();aQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,oQ=aQ&&typeof e=="object"&&e&&!e.nodeType&&e,pJ=oQ&&oQ.exports===aQ,rQ=pJ?D.Buffer:void 0,yJ=rQ?rQ.isBuffer:void 0,mJ=yJ||TQ,A=mJ});function jJ(Q,J){var Y=typeof Q;return J=J==null?SJ:J,!!J&&(Y=="number"||Y!="symbol"&&AJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var SJ=9007199254740991,AJ,$1;var g1=X(()=>{AJ=/^(?:0|[1-9]\d*)$/;$1=jJ});function nJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=hJ}var hJ=9007199254740991,j;var J1=X(()=>{j=nJ});function B8(Q){return O(Q)&&j(Q.length)&&!!G[L(Q)]}var bJ="[object Arguments]",iJ="[object Array]",uJ="[object Boolean]",lJ="[object Date]",TJ="[object Error]",cJ="[object Function]",oJ="[object Map]",rJ="[object Number]",sJ="[object Object]",aJ="[object RegExp]",tJ="[object Set]",eJ="[object String]",Q8="[object WeakMap]",$8="[object ArrayBuffer]",J8="[object DataView]",Y8="[object Float32Array]",Z8="[object Float64Array]",X8="[object Int8Array]",H8="[object Int16Array]",W8="[object Int32Array]",x8="[object Uint8Array]",U8="[object Uint8ClampedArray]",K8="[object Uint16Array]",G8="[object Uint32Array]",G,tQ;var eQ=X(()=>{a();J1();S();G={};G[Y8]=G[Z8]=G[X8]=G[H8]=G[W8]=G[x8]=G[U8]=G[K8]=G[G8]=!0;G[bJ]=G[iJ]=G[$8]=G[uJ]=G[J8]=G[lJ]=G[TJ]=G[cJ]=G[oJ]=G[rJ]=G[sJ]=G[aJ]=G[tJ]=G[eJ]=G[Q8]=!1;tQ=B8});function N8(Q){return function(J){return Q(J)}}var Q5;var $5=X(()=>{Q5=N8});var Z1={};sQ(Z1,{default:()=>X1});var Y5,i,z8,p1,F8,X1;var Z5=X(()=>{w8();Y5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Y5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,z8=i&&i.exports===Y5,p1=z8&&J5.process,F8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return p1&&p1.binding&&p1.binding("util")}catch(J){}}(),X1=F8});var X5,R8,H1;var y1=X(()=>{eQ();$5();Z5();X5=X1&&X1.isTypedArray,R8=X5?Q5(X5):tQ,H1=R8});function O8(Q,J){var Y=w(Q),Z=!Y&&t(Q),H=!Y&&!Z&&A(Q),W=!Y&&!Z&&!H&&H1(Q),x=Y||Z||H||W,U=x?bQ(Q.length,String):[],B=U.length;for(var K in Q)if((J||q8.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||$1(K,B))))U.push(K);return U}var D8,q8,H5;var W5=X(()=>{iQ();v1();M();d1();g1();y1();D8=Object.prototype,q8=D8.hasOwnProperty;H5=O8});function M8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||V8;return Q===Y}var V8,x5;var U5=X(()=>{V8=Object.prototype;x5=M8});function L8(Q,J){return function(Y){return Q(J(Y))}}var K5;var G5=X(()=>{K5=L8});var f8,B5;var N5=X(()=>{G5();f8=K5(Object.keys,Object),B5=f8});function C8(Q){if(!x5(Q))return B5(Q);var J=[];for(var Y in Object(Q))if(I8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var P8,I8,w5;var z5=X(()=>{U5();N5();P8=Object.prototype,I8=P8.hasOwnProperty;w5=C8});function k8(Q){return Q!=null&&j(Q.length)&&!F5(Q)}var R5;var D5=X(()=>{_8();J1();R5=k8});function E8(Q){return R5(Q)?H5(Q):w5(Q)}var W1;var m1=X(()=>{W5();z5();D5();W1=E8});function v8(Q){return gQ(Q,W1,hQ)}var S1;var q5=X(()=>{pQ();nQ();m1();S1=v8});function y8(Q,J,Y,Z,H,W){var x=Y&d8,U=S1(Q),B=U.length,K=S1(J),F=K.length;if(B!=F&&!x)return!1;var z=B;while(z--){var N=U[z];if(!(x?N in J:p8.call(J,N)))return!1}var V=W.get(Q),R=W.get(J);if(V&&R)return V==J&&R==Q;var q=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<B){N=U[z];var C=Q[N],_=J[N];if(Z)var t1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(t1===void 0?C===_||H(C,_,Y,Z,W):t1)){q=!1;break}f||(f=N=="constructor")}if(q&&!f){var T=Q.constructor,c=J.constructor;if(T!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof T=="function"&&T instanceof T&&typeof c=="function"&&c instanceof c))q=!1}return W.delete(Q),W.delete(J),q}var d8=1,g8,p8,O5;var V5=X(()=>{q5();g8=Object.prototype,p8=g8.hasOwnProperty;O5=y8});var m8,U1;var M5=X(()=>{x1();y();m8=P(D,"DataView"),U1=m8});var S8,K1;var L5=X(()=>{x1();y();S8=P(D,"Promise"),K1=S8});var A8,G1;var f5=X(()=>{x1();y();A8=P(D,"Set"),G1=A8});var j8,B1;var P5=X(()=>{x1();y();j8=P(D,"WeakMap"),B1=j8});var I5="[object Map]",n8="[object Object]",C5="[object Promise]",_5="[object Set]",k5="[object WeakMap]",E5="[object DataView]",b8,i8,u8,l8,T8,k,A1;var v5=X(()=>{M5();WQ();L5();f5();P5();a();h8();b8=E(U1),i8=E(d),u8=E(K1),l8=E(G1),T8=E(B1),k=L;if(U1&&k(new U1(new ArrayBuffer(1)))!=E5||d&&k(new d)!=I5||K1&&k(K1.resolve())!=C5||G1&&k(new G1)!=_5||B1&&k(new B1)!=k5)k=function(Q){var J=L(Q),Y=J==n8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case b8:return E5;case i8:return I5;case u8:return C5;case l8:return _5;case T8:return k5}return J};A1=k});function r8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),B=x?g5:A1(Q),K=U?g5:A1(J);B=B==d5?N1:B,K=K==d5?N1:K;var F=B==N1,z=K==N1,N=B==K;if(N&&A(Q)){if(!A(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new p),x||H1(Q)?s(Q,J,Y,Z,H,W):kQ(Q,J,B,Y,Z,H,W);if(!(Y&c8)){var V=F&&p5.call(Q,"__wrapped__"),R=z&&p5.call(J,"__wrapped__");if(V||R){var q=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(q,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),O5(Q,J,Y,Z,H,W)}var c8=1,d5="[object Arguments]",g5="[object Array]",N1="[object Object]",o8,p5,y5;var m5=X(()=>{I1();C1();EQ();V5();v5();M();d1();y1();o8=Object.prototype,p5=o8.hasOwnProperty;y5=r8});function S5(Q,J,Y,Z,H){if(Q===J)return!0;if(Q==null||J==null||!O(Q)&&!O(J))return Q!==Q&&J!==J;return y5(Q,J,Y,Z,S5,H)}var w1;var j1=X(()=>{m5();S();w1=S5});function t8(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var B=U[0],K=Q[B],F=U[1];if(x&&U[2]){if(K===void 0&&!(B in Q))return!1}else{var z=new p;if(Z)var N=Z(K,F,B,Q,J,z);if(!(N===void 0?w1(F,K,s8|a8,Z,z):N))return!1}}return!0}var s8=1,a8=2,A5;var j5=X(()=>{I1();j1();A5=t8});function QY(Q){return Q===Q&&!h5(Q)}var z1;var h1=X(()=>{e8();z1=QY});function $Y(Q){var J=W1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,z1(H)]}return J}var n5;var b5=X(()=>{h1();m1();n5=$Y});function JY(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var F1;var n1=X(()=>{F1=JY});function YY(Q){var J=n5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||A5(Y,Q,J)}}var i5;var u5=X(()=>{j5();b5();n1();i5=YY});function XY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==ZY}var ZY="[object Symbol]",h;var R1=X(()=>{a();S();h=XY});function xY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||h(Q))return!0;return WY.test(Q)||!HY.test(Q)||J!=null&&Q in Object(J)}var HY,WY,n;var D1=X(()=>{M();R1();HY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WY=/^\w*$/;n=xY});function GY(Q){var J=l5(Q,function(Z){if(Y.size===KY)Y.clear();return Z}),Y=J.cache;return J}var KY=500,T5;var c5=X(()=>{UY();T5=GY});var BY,NY,wY,o5;var r5=X(()=>{c5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NY=/\\(\\)?/g,wY=T5(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(BY,function(Y,Z,H,W){J.push(H?W.replace(NY,"$1"):Z||Y)}),J}),o5=wY});function zY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var s5;var a5=X(()=>{s5=zY});function Q$(Q){if(typeof Q=="string")return Q;if(w(Q))return s5(Q,Q$)+"";if(h(Q))return e5?e5.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-FY?"-0":J}var FY=1/0,t5,e5,$$;var J$=X(()=>{_Q();a5();M();R1();t5=m?m.prototype:void 0,e5=t5?t5.toString:void 0;$$=Q$});function RY(Q){return Q==null?"":$$(Q)}var Y$;var Z$=X(()=>{J$();Y$=RY});function DY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:o5(Y$(Q))}var q1;var b1=X(()=>{M();D1();r5();Z$();q1=DY});function OY(Q){if(typeof Q=="string"||h(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-qY?"-0":J}var qY=1/0,I;var u=X(()=>{R1();I=OY});function VY(Q,J){J=q1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var O1;var i1=X(()=>{b1();u();O1=VY});function MY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var X$;var H$=X(()=>{i1();X$=MY});function LY(Q,J){return Q!=null&&J in Object(Q)}var W$;var x$=X(()=>{W$=LY});function fY(Q,J,Y){J=q1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&j(H)&&$1(x,H)&&(w(Q)||t(Q))}var U$;var K$=X(()=>{b1();v1();M();g1();J1();u();U$=fY});function PY(Q,J){return Q!=null&&U$(Q,J,W$)}var G$;var B$=X(()=>{x$();K$();G$=PY});function _Y(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=X$(Y,Q);return Z===void 0&&Z===J?G$(Y,Q):w1(J,Z,IY|CY)}}var IY=1,CY=2,N$;var w$=X(()=>{j1();H$();B$();D1();h1();n1();u();N$=_Y});function kY(Q){return Q}var z$;var F$=X(()=>{z$=kY});function EY(Q){return function(J){return J==null?void 0:J[Q]}}var R$;var D$=X(()=>{R$=EY});function vY(Q){return function(J){return O1(J,Q)}}var q$;var O$=X(()=>{i1();q$=vY});function dY(Q){return n(Q)?R$(I(Q)):q$(Q)}var V$;var M$=X(()=>{D$();O$();D1();u();V$=dY});function gY(Q){if(typeof Q=="function")return Q;if(Q==null)return z$;if(typeof Q=="object")return w(Q)?N$(Q[0],Q[1]):i5(Q);return V$(Q)}var L$;var f$=X(()=>{u5();w$();F$();M();M$();L$=gY});function pY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var P$;var I$=X(()=>{P$=pY});function yY(Q,J){return Q&&Q.length?P$(Q,L$(J,2)):0}var b;var C$=X(()=>{f$();I$();b=yY});import{randomUUID as u1}from"crypto";var _$=()=>{};function nX(){return l1}function bX(Q){l1=Q}function iX(Q){return V1.has(Q)?V1.get(Q):void 0}function uX(Q,J){V1.set(Q,J)}function lX(Q){return T1.get(Q)}function TX(Q,J){T1.set(Q,J)}function k$(){l1=null,V1.clear(),T1.clear()}function cX(){return c1}function oX(Q){c1=Q}function rX(){c1=void 0}var l1=null,V1,T1,c1;var E$=X(()=>{V1=new Map;T1=new Map});function v$(){let Q=new Set;return{subscribe(J){return Q.add(J),()=>{Q.delete(J)}},emit(...J){for(let Y of Q)Y(...J)},clear(){Q.clear()}}}var d$=()=>{};import{realpathSync as g$}from"fs";import{cwd as mY}from"process";function Z9(Q){return o1.add(Q),()=>o1.delete(Q)}function X9(){L1()}function L1(){for(let Q of o1)try{Q()}catch{}}function p$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof g$==="function"){let Y=mY();try{Q=g$(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),activeDurationMs:0,turnActiveSince:null,lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:u1(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],pendingSessionWakeup:null,sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,lspDeferLatchedTools:null,deferredDeltaLegacySession:!1,sessionEpochMs:Date.now()-process.uptime()*1000,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function H9(){return $.sessionId}function W9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=u1(),$.sessionProjectDir=null,m$($.sessionId),$.sessionId}function x9(){return $.parentSessionId}function U9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,m$(Q)}function m$(Q){$.pendingSessionWakeup=null,jY(),$.sessionEpochMs=Date.now(),y$.emit(Q)}function G9(){return $.sessionProjectDir}function B9(){return $.originalCwd}function N9(){return $.projectRoot}function w9(Q){$.originalCwd=Q.normalize("NFC")}function z9(Q){$.projectRoot=Q.normalize("NFC")}function F9(){return $.cwd}function R9(Q){$.cwd=Q.normalize("NFC")}function D9(){return $.directConnectServerUrl}function q9(Q){$.directConnectServerUrl=Q}function O9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function V9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function M9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function L9(){return $.totalCostUSD}function f9(){return $.totalAPIDuration}function P9(){if($.turnActiveSince==null)$.turnActiveSince=Date.now()}function I9(){if($.turnActiveSince!=null)$.activeDurationMs+=Date.now()-$.turnActiveSince,$.turnActiveSince=null}function C9(){return $.activeDurationMs+($.turnActiveSince!=null?Date.now()-$.turnActiveSince:0)}function _9(){return $.totalAPIDurationWithoutRetries}function k9(){return $.totalToolDuration}function E9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function v9(){return $.turnHookDurationMs}function d9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function g9(){$.turnHookDurationMs=0,$.turnHookCount=0}function p9(){return $.turnHookCount}function y9(){return $.turnToolDurationMs}function m9(){$.turnToolDurationMs=0,$.turnToolCount=0}function S9(){return $.turnToolCount}function A9(){return $.turnClassifierDurationMs}function j9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function h9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function n9(){return $.turnClassifierCount}function b9(){return $.statsStore}function i9(Q){$.statsStore=Q}function u9(Q){if(Q)S$();else r1=!0}function l9(){if(r1)S$()}function S$(){$.lastInteractionTime=Date.now(),r1=!1}function T9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function c9(){return $.totalLinesAdded}function o9(){return $.totalLinesRemoved}function r9(){return b(Object.values($.modelUsage),"inputTokens")}function A$(){return b(Object.values($.modelUsage),"outputTokens")}function s9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function a9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function t9(){return b(Object.values($.modelUsage),"webSearchRequests")}function e9(){return A$()-s1}function QH(){return a1}function $H(Q){s1=A$(),a1=Q,f1=0}function JH(){return f1}function YH(){f1++}function ZH(){$.hasUnknownModelCost=!0}function XH(){return $.hasUnknownModelCost}function HH(){return $.lastMainRequestId}function WH(Q){$.lastMainRequestId=Q}function xH(){return $.lastApiCompletionTimestamp}function UH(Q){$.lastApiCompletionTimestamp=Q}function KH(){$.pendingPostCompaction=!0}function GH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function BH(){return $.lastInteractionTime}function NH(){if(M1=!0,l)clearTimeout(l);l=setTimeout(()=>{M1=!1,l=void 0},j$),l.unref?.()}function wH(){return M1}async function zH(){while(M1)await new Promise((Q)=>setTimeout(Q,j$).unref?.())}function FH(){return $.modelUsage}function RH(Q){return $.modelUsage[Q]}function DH(){return $.mainLoopModelOverride}function qH(){return $.initialMainLoopModel}function OH(Q){$.mainLoopModelOverride=Q}function VH(Q){$.initialMainLoopModel=Q}function MH(){return $.sdkBetas}function LH(Q){$.sdkBetas=Q}function fH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.activeDurationMs=0,$.turnActiveSince=null,$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function PH({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;$.activeDurationMs=x??0,$.turnActiveSince=null}function IH(){throw Error("resetStateForTests can only be called in tests")}function CH(){return $.modelStrings}function _H(Q){$.modelStrings=Q}function kH(){$.modelStrings=null}function EH(Q,J){$.meter=Q,$.sessionCounter=J("claude_code.session.count",{description:"Count of CLI sessions started"}),$.locCounter=J("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),$.prCounter=J("claude_code.pull_request.count",{description:"Number of pull requests created"}),$.commitCounter=J("claude_code.commit.count",{description:"Number of git commits created"}),$.costCounter=J("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),$.tokenCounter=J("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),$.codeEditToolDecisionCounter=J("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),$.activeTimeCounter=J("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function vH(){return $.meter}function dH(){return $.sessionCounter}function gH(){return $.locCounter}function pH(){return $.prCounter}function yH(){return $.commitCounter}function mH(){return $.costCounter}function SH(){return $.tokenCounter}function AH(){return $.codeEditToolDecisionCounter}function jH(){return $.activeTimeCounter}function hH(){return $.loggerProvider}function nH(Q){$.loggerProvider=Q}function bH(){return $.eventLogger}function iH(Q){$.eventLogger=Q}function uH(){return $.meterProvider}function lH(Q){$.meterProvider=Q}function TH(){return $.tracerProvider}function cH(Q){$.tracerProvider=Q}function SY(){return!$.isInteractive}function oH(){return $.isInteractive}function rH(Q){$.isInteractive=Q}function sH(){return $.clientType}function aH(Q){$.clientType=Q}function tH(){return $.sdkAgentProgressSummariesEnabled}function eH(Q){$.sdkAgentProgressSummariesEnabled=Q}function Q4(){return $.kairosActive}function $4(Q){$.kairosActive=Q,L1()}function J4(){return $.strictToolResultPairing}function Y4(Q){$.strictToolResultPairing=Q}function Z4(){return $.userMsgOptIn}function X4(Q){$.userMsgOptIn=Q,L1()}function H4(){return $.sessionSource}function W4(Q){$.sessionSource=Q}function x4(){return $.questionPreviewFormat}function U4(Q){$.questionPreviewFormat=Q}function K4(){return $.agentColorMap}function G4(){return $.flagSettingsPath}function B4(Q){$.flagSettingsPath=Q}function N4(){return $.flagSettingsInline}function w4(Q){$.flagSettingsInline=Q}function z4(){return $.sessionIngressToken}function F4(Q){$.sessionIngressToken=Q}function R4(){return $.oauthTokenFromFd}function D4(Q){$.oauthTokenFromFd=Q}function q4(){return $.apiKeyFromFd}function O4(Q){$.apiKeyFromFd=Q}function V4(Q){$.lastAPIRequest=Q}function M4(){return $.lastAPIRequest}function L4(Q){$.lastAPIRequestMessages=Q}function f4(){return $.lastAPIRequestMessages}function P4(Q){$.lastClassifierRequests=Q}function I4(){return $.lastClassifierRequests}function C4(Q){$.cachedClaudeMdContent=Q}function _4(){return $.cachedClaudeMdContent}function k4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function E4(){return $.allowedSettingSources}function v4(Q){$.allowedSettingSources=Q}function d4(){return SY()&&$.clientType!=="claude-vscode"}function g4(Q){$.inlinePlugins=Q}function p4(){return $.inlinePlugins}function y4(Q){$.useCoworkPlugins=Q,k$()}function m4(){return $.useCoworkPlugins}function S4(Q){$.sessionBypassPermissionsMode=Q}function A4(){return $.sessionBypassPermissionsMode}function j4(Q){$.scheduledTasksEnabled=Q}function h4(){return $.scheduledTasksEnabled}function n4(){return $.sessionCronTasks}function b4(Q){$.sessionCronTasks.push(Q)}function i4(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function u4(){return $.pendingSessionWakeup}function l4(Q){let J=$.pendingSessionWakeup!==null;return $.pendingSessionWakeup=Q,J}function T4(){$.pendingSessionWakeup=null}function c4(Q){$.sessionTrustAccepted=Q}function o4(){return $.sessionTrustAccepted}function r4(Q){$.sessionPersistenceDisabled=Q}function s4(){return $.sessionPersistenceDisabled}function a4(){return $.hasExitedPlanMode}function t4(Q){$.hasExitedPlanMode=Q}function e4(){return $.needsPlanModeExitAttachment}function Q3(Q){$.needsPlanModeExitAttachment=Q}function $3(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function J3(){return $.needsAutoModeExitAttachment}function Y3(Q){$.needsAutoModeExitAttachment=Q}function Z3(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function X3(Q){$.initJsonSchema=Q}function H3(){return $.initJsonSchema}function W3(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function x3(){return $.registeredHooks}function U3(){$.registeredHooks=null}function K3(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function G3(){$.initJsonSchema=null,$.registeredHooks=null}function B3(){return $.planSlugCache}function N3(){return $.sessionCreatedTeams}function w3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function z3(){return $.teleportedSessionInfo}function F3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function R3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function D3(){return $.invokedSkills}function q3(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function O3(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function V3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function M3(Q,J){}function L3(){return AY}function f3(){return $.mainThreadAgentType}function P3(Q){$.mainThreadAgentType=Q}function I3(){return $.isRemoteMode}function C3(Q){$.isRemoteMode=Q}function _3(){return $.systemPromptSectionCache}function k3(Q,J){$.systemPromptSectionCache.set(Q,J)}function E3(){$.systemPromptSectionCache.clear()}function v3(){return $.lastEmittedDate}function d3(Q){$.lastEmittedDate=Q}function g3(){return $.additionalDirectoriesForClaudeMd}function p3(Q){$.additionalDirectoriesForClaudeMd=Q}function y3(){return $.allowedChannels}function m3(Q){$.allowedChannels=Q,L1()}function S3(){return $.hasDevChannels}function A3(Q){$.hasDevChannels=Q}function j3(){return $.largeSystemPromptDetected}function h3(Q){$.largeSystemPromptDetected=Q}function n3(){return $.afkModeHeaderLatched}function b3(Q){$.afkModeHeaderLatched=Q}function i3(){return $.fastModeHeaderLatched}function u3(Q){$.fastModeHeaderLatched=Q}function l3(){return $.thinkingClearLatched}function T3(Q){$.thinkingClearLatched=Q}function c3(Q){return $.lspDeferLatchedTools?.has(Q)??!1}function o3(Q){if(!$.lspDeferLatchedTools)$.lspDeferLatchedTools=new Set;$.lspDeferLatchedTools.add(Q)}function r3(){return $.deferredDeltaLegacySession}function s3(Q){$.deferredDeltaLegacySession=Q}function jY(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null,$.lspDeferLatchedTools=null,$.deferredDeltaLegacySession=!1}function a3(){return $.sessionEpochMs}function t3(){return $.promptId}function e3(Q){$.promptId=Q}function QW(){return!1}function $W(){return null}var o1,$,y$,K9,r1=!1,s1=0,a1=null,f1=0,M1=!1,l,j$=150,AY;var hY=X(()=>{C$();_$();E$();d$();o1=new Set;$=p$();y$=v$();K9=y$.subscribe;AY=[]});
|
|
2
|
-
export{p as Cla,I1 as Dla,zQ as Ela,FQ as Fla,qQ as Gla,OQ as Hla,_1 as Ila,VQ as Jla,fQ as Kla,PQ as Lla,vQ as Mla,dQ as Nla,w as Ola,M as Pla,gQ as Qla,pQ as Rla,yQ as Sla,mQ as Tla,SQ as Ula,AQ as Vla,hQ as Wla,nQ as Xla,O as Yla,S as Zla,t as _la,v1 as $la,A as ama,d1 as bma,$1 as cma,g1 as dma,Q5 as ema,$5 as fma,X1 as gma,Z5 as hma,H1 as ima,y1 as jma,H5 as kma,W5 as lma,x5 as mma,U5 as nma,K5 as oma,G5 as pma,R5 as qma,D5 as rma,W1 as sma,m1 as tma,S1 as uma,q5 as vma,G1 as wma,f5 as xma,A1 as yma,v5 as zma,w1 as Ama,j1 as Bma,h as Cma,R1 as Dma,s5 as Ema,a5 as Fma,Y$ as Gma,Z$ as Hma,q1 as Ima,b1 as Jma,I as Kma,u as Lma,O1 as Mma,i1 as Nma,z$ as Oma,F$ as Pma,L$ as Qma,f$ as Rma,nX as Sma,bX as Tma,iX as Uma,uX as Vma,lX as Wma,TX as Xma,k$ as Yma,cX as Zma,oX as _ma,rX as $ma,E$ as ana,v$ as bna,d$ as cna,Z9 as dna,X9 as ena,H9 as fna,W9 as gna,x9 as hna,U9 as ina,K9 as jna,G9 as kna,B9 as lna,N9 as mna,w9 as nna,z9 as ona,F9 as pna,R9 as qna,D9 as rna,q9 as sna,O9 as tna,V9 as una,M9 as vna,L9 as wna,f9 as xna,P9 as yna,I9 as zna,C9 as Ana,_9 as Bna,k9 as Cna,E9 as Dna,v9 as Ena,d9 as Fna,g9 as Gna,p9 as Hna,y9 as Ina,m9 as Jna,S9 as Kna,A9 as Lna,j9 as Mna,h9 as Nna,n9 as Ona,b9 as Pna,i9 as Qna,u9 as Rna,l9 as Sna,T9 as Tna,c9 as Una,o9 as Vna,r9 as Wna,A$ as Xna,s9 as Yna,a9 as Zna,t9 as _na,e9 as $na,QH as aoa,$H as boa,JH as coa,YH as doa,ZH as eoa,XH as foa,HH as goa,WH as hoa,xH as ioa,UH as joa,KH as koa,GH as loa,BH as moa,NH as noa,wH as ooa,zH as poa,FH as qoa,RH as roa,DH as soa,qH as toa,OH as uoa,VH as voa,MH as woa,LH as xoa,fH as yoa,PH as zoa,IH as Aoa,CH as Boa,_H as Coa,kH as Doa,EH as Eoa,vH as Foa,dH as Goa,gH as Hoa,pH as Ioa,yH as Joa,mH as Koa,SH as Loa,AH as Moa,jH as Noa,hH as Ooa,nH as Poa,bH as Qoa,iH as Roa,uH as Soa,lH as Toa,TH as Uoa,cH as Voa,SY as Woa,oH as Xoa,rH as Yoa,sH as Zoa,aH as _oa,tH as $oa,eH as apa,Q4 as bpa,$4 as cpa,J4 as dpa,Y4 as epa,Z4 as fpa,X4 as gpa,H4 as hpa,W4 as ipa,x4 as jpa,U4 as kpa,K4 as lpa,G4 as mpa,B4 as npa,N4 as opa,w4 as ppa,z4 as qpa,F4 as rpa,R4 as spa,D4 as tpa,q4 as upa,O4 as vpa,V4 as wpa,M4 as xpa,L4 as ypa,f4 as zpa,P4 as Apa,I4 as Bpa,C4 as Cpa,_4 as Dpa,k4 as Epa,E4 as Fpa,v4 as Gpa,d4 as Hpa,g4 as Ipa,p4 as Jpa,y4 as Kpa,m4 as Lpa,S4 as Mpa,A4 as Npa,j4 as Opa,h4 as Ppa,n4 as Qpa,b4 as Rpa,i4 as Spa,u4 as Tpa,l4 as Upa,T4 as Vpa,c4 as Wpa,o4 as Xpa,r4 as Ypa,s4 as Zpa,a4 as _pa,t4 as $pa,e4 as aqa,Q3 as bqa,$3 as cqa,J3 as dqa,Y3 as eqa,Z3 as fqa,X3 as gqa,H3 as hqa,W3 as iqa,x3 as jqa,U3 as kqa,K3 as lqa,G3 as mqa,B3 as nqa,N3 as oqa,w3 as pqa,z3 as qqa,F3 as rqa,R3 as sqa,D3 as tqa,q3 as uqa,O3 as vqa,V3 as wqa,M3 as xqa,L3 as yqa,f3 as zqa,P3 as Aqa,I3 as Bqa,C3 as Cqa,_3 as Dqa,k3 as Eqa,E3 as Fqa,v3 as Gqa,d3 as Hqa,g3 as Iqa,p3 as Jqa,y3 as Kqa,m3 as Lqa,S3 as Mqa,A3 as Nqa,j3 as Oqa,h3 as Pqa,n3 as Qqa,b3 as Rqa,i3 as Sqa,u3 as Tqa,l3 as Uqa,T3 as Vqa,c3 as Wqa,o3 as Xqa,r3 as Yqa,s3 as Zqa,jY as _qa,a3 as $qa,t3 as ara,e3 as bra,QW as cra,$W as dra,hY as era};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{io as T,jo as j,vG as I,xG as _}from"./cli-1.1.16-hwr77b8n.mjs";import{B1 as g,W0 as P,Y0 as J,a1 as C,xZ as S}from"./cli-1.1.16-6ptafg83.mjs";import{$3 as R,Z3 as G,_3 as H}from"./cli-1.1.16-72wxrwg0.mjs";import{a4 as v}from"./cli-1.1.16-2mzk1cmm.mjs";import{Rea as B,dfa as h}from"./cli-1.1.16-jcye29qq.mjs";import{Fja as W,Ija as D}from"./cli-1.1.16-5a4a2nqs.mjs";import{Osa as f,Ssa as p}from"./cli-1.1.16-w5ns6t4b.mjs";function l(q){let b=E.c(18),{onDone:X,isStandaloneDialog:L,externalIncludes:F}=q,K;if(b[0]===Symbol.for("react.memo_cache_sentinel"))K=[],b[0]=K;else K=b[0];m.default.useEffect(i,K);let M;if(b[1]!==X)M=(y)=>{if(y==="no")W("",{}),B(x);else W("",{}),B(d);X()},b[1]=X,b[2]=M;else M=b[2];let w=M,N;if(b[3]!==w)N=()=>{w("no")},b[3]=w,b[4]=N;else N=b[4];let Y=N,Z=!L,k=!L,O;if(b[5]===Symbol.for("react.memo_cache_sentinel"))O=G(J,{children:"This project's CLAUDE.md imports files outside the current working directory. Never allow this for third-party repositories."}),b[5]=O;else O=b[5];let z;if(b[6]!==F)z=F&&F.length>0&&H(P,{flexDirection:"column",children:[G(J,{dimColor:!0,children:"External imports:"}),F.map(u)]}),b[6]=F,b[7]=z;else z=b[7];let Q;if(b[8]===Symbol.for("react.memo_cache_sentinel"))Q=H(J,{dimColor:!0,children:["Important: Only use Claudin with files you trust. Accessing untrusted files may pose security risks"," ",G(C,{url:"https://code.claude.com/docs/en/security"})," "]}),b[8]=Q;else Q=b[8];let U;if(b[9]===Symbol.for("react.memo_cache_sentinel"))U=[{label:"Yes, allow external imports",value:"yes"},{label:"No, disable external imports",value:"no"}],b[9]=U;else U=b[9];let A;if(b[10]!==w)A=G(I,{options:U,onChange:(y)=>w(y)}),b[10]=w,b[11]=A;else A=b[11];let V;if(b[12]!==Y||b[13]!==A||b[14]!==Z||b[15]!==k||b[16]!==z)V=H(T,{title:"Allow external CLAUDE.md file imports?",color:"warning",onCancel:Y,hideBorder:Z,hideInputGuide:k,children:[O,z,Q,A]}),b[12]=Y,b[13]=A,b[14]=Z,b[15]=k,b[16]=z,b[17]=V;else V=b[17];return V}function u(q,b){return H(J,{dimColor:!0,children:[" ",q.path]},b)}function d(q){return{...q,hasClaudeMdExternalIncludesApproved:!0,hasClaudeMdExternalIncludesWarningShown:!0}}function x(q){return{...q,hasClaudeMdExternalIncludesApproved:!1,hasClaudeMdExternalIncludesWarningShown:!0}}function i(){W("",{})}var E,m;var r=p(()=>{D();g();h();_();j();R();E=f(S(),1),m=f(v(),1)});
|
|
2
|
-
export{l as Pg,r as Qg};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import{$0 as xq,B1 as Aq,U0 as z,_0 as Bq}from"./cli-1.1.16-6ptafg83.mjs";import{e9 as H,f9 as Rq}from"./cli-1.1.16-dtwt84pe.mjs";import{Dga as v,Gaa as p,Hea as _,I$ as Yq,I_ as G,J$ as wq,K_ as o,Kea as R,Lga as a,Naa as zq,Qea as N,Rea as m,Saa as Zq,Vaa as $q,Waa as Mq,dfa as b,iea as l,kea as Gq,tba as W,vba as jq}from"./cli-1.1.16-jcye29qq.mjs";import{Ria as T,Tia as Wq}from"./cli-1.1.16-kz0jkcdc.mjs";import{lka as Qq,mka as Xq,qka as _q,uka as c,yka as Hq}from"./cli-1.1.16-s404wy1x.mjs";import{lla as E,nla as Uq}from"./cli-1.1.16-njacmwr1.mjs";import{Dra as s,Era as Lq}from"./cli-1.1.16-vhwypfn6.mjs";import{Ssa as A}from"./cli-1.1.16-w5ns6t4b.mjs";function h(){let q=l(T(),c().existsSync)!==null,J=p(T());return[{key:"workspace",text:"Ask Claude to create a new app or clone a repository",isComplete:!1,isCompletable:!0,isEnabled:J},{key:"claudemd",text:"Set up repo instructions (/init creates AGENTS.md or updates existing CLAUDE.md; either file counts)",isComplete:q,isCompletable:!0,isEnabled:!J}]}function I(){return h().filter(({isCompletable:q,isEnabled:J})=>q&&J).every(({isComplete:q})=>q)}var y=A(()=>{Wq();zq();Hq();Gq()});function i(){if(N().hasCompletedProjectOnboarding)return;if(I())m((q)=>({...q,hasCompletedProjectOnboarding:!0}))}var lq;var n=A(()=>{Lq();b();y();y();lq=s(()=>{let q=N();if(q.hasCompletedProjectOnboarding||q.projectOnboardingSeenCount>=4||process.env.IS_DEMO)return!1;return!I()})});import{stat as r}from"fs/promises";import{homedir as Vq}from"os";import{join as vq}from"path";function Oq(q){_((J)=>({...J,appleTerminalSetupInProgress:!0,appleTerminalBackupPath:q}))}function U(){_((q)=>({...q,appleTerminalSetupInProgress:!1}))}function Fq(){let q=R();return{inProgress:q.appleTerminalSetupInProgress??!1,backupPath:q.appleTerminalBackupPath||null}}function w(){return vq(Vq(),"Library","Preferences","com.apple.Terminal.plist")}async function t(){let q=w(),J=`${q}.bak`;try{let{code:K}=await G("defaults",["export","com.apple.Terminal",q]);if(K!==0)return null;try{await r(q)}catch{return null}return await G("defaults",["export","com.apple.Terminal",J]),Oq(J),J}catch(K){return v(K),null}}async function e(){let{inProgress:q,backupPath:J}=Fq();if(!q)return{status:"no_backup"};if(!J)return U(),{status:"no_backup"};try{await r(J)}catch{return U(),{status:"no_backup"}}try{let{code:K}=await G("defaults",["import","com.apple.Terminal",J]);if(K!==0)return{status:"failed",backupPath:J};return await G("killall",["cfprefsd"]),U(),{status:"restored"}}catch(K){return v(Error(`Failed to restore Terminal.app settings with: ${K}`)),U(),{status:"failed",backupPath:J}}}var qq=A(()=>{b();o();a()});import{randomBytes as k}from"crypto";import{copyFile as g,mkdir as f,readFile as u,writeFile as P}from"fs/promises";import{homedir as d,platform as S}from"os";import{dirname as Iq,join as O}from"path";import{pathToFileURL as Sq}from"url";function Dq(){let q=process.env.VSCODE_GIT_ASKPASS_MAIN??"",J=process.env.PATH??"";return q.includes(".vscode-server")||q.includes(".cursor-server")||q.includes(".windsurf-server")||J.includes(".vscode-server")||J.includes(".cursor-server")||J.includes(".windsurf-server")}function FJ(){if(!W.terminal||!(W.terminal in D))return null;return D[W.terminal]??null}function L(q){if(!Bq())return q;return`\x1B]8;;${Sq(q).href}\x07${q}\x1B]8;;\x07`}function Eq(){return S()==="darwin"&&W.terminal==="Apple_Terminal"||W.terminal==="vscode"||W.terminal==="cursor"||W.terminal==="windsurf"||W.terminal==="alacritty"||W.terminal==="zed"}async function Tq(q){let J="";switch(W.terminal){case"Apple_Terminal":J=await yq(q);break;case"vscode":J=await C("VSCode",q);break;case"cursor":J=await C("Cursor",q);break;case"windsurf":J=await C("Windsurf",q);break;case"alacritty":J=await Nq(q);break;case"zed":J=await bq(q);break;case null:break}return _((K)=>{if(["vscode","cursor","windsurf","alacritty","zed"].includes(W.terminal??"")){if(K.shiftEnterKeyBindingInstalled===!0)return K;return{...K,shiftEnterKeyBindingInstalled:!0}}else if(W.terminal==="Apple_Terminal"){if(K.optionAsMetaKeyInstalled===!0)return K;return{...K,optionAsMetaKeyInstalled:!0}}return K}),i(),J}function UJ(){return R().shiftEnterKeyBindingInstalled===!0}function _J(){return R().hasUsedBackslashReturn===!0}function RJ(){if(!R().hasUsedBackslashReturn)_((J)=>({...J,hasUsedBackslashReturn:!0}))}async function wJ(q,J,K){if(W.terminal&&W.terminal in D){let X=`Shift+Enter is natively supported in ${D[W.terminal]}.
|
|
2
|
-
|
|
3
|
-
No configuration needed. Just use Shift+Enter to add newlines.`;return q(X),null}if(!Eq()){let X=W.terminal||"your current terminal",Y=Yq(),B="";if(Y==="macos")B=` • macOS: Apple Terminal
|
|
4
|
-
`;else if(Y==="windows")B=` • Windows: Windows Terminal
|
|
5
|
-
`;let Z=`Terminal setup cannot be run from ${X}.
|
|
6
|
-
|
|
7
|
-
This command configures a convenient Shift+Enter shortcut for multi-line prompts.
|
|
8
|
-
${H.dim("Note: You can already use backslash (\\\\) + return to add newlines.")}
|
|
9
|
-
|
|
10
|
-
To set up the shortcut (optional):
|
|
11
|
-
1. Exit tmux/screen temporarily
|
|
12
|
-
2. Run /terminal-setup directly in one of these terminals:
|
|
13
|
-
${B} • IDE: VSCode, Cursor, Windsurf, Zed
|
|
14
|
-
• Other: Alacritty
|
|
15
|
-
3. Return to tmux/screen - settings will persist
|
|
16
|
-
|
|
17
|
-
${H.dim("Note: iTerm2, WezTerm, Ghostty, Kitty, and Warp support Shift+Enter natively.")}`;return q(Z),null}let $=await Tq(J.options.theme);return q($),null}async function C(q="VSCode",J){if(Dq())return`${z("warning",J)(`Cannot install keybindings from a remote ${q} session.`)}${Q}${Q}${q} keybindings must be installed on your local machine, not the remote server.${Q}${Q}To install the Shift+Enter keybinding:${Q}1. Open ${q} on your local machine (not connected to remote)${Q}2. Open the Command Palette (Cmd/Ctrl+Shift+P) → "Preferences: Open Keyboard Shortcuts (JSON)"${Q}3. Add this keybinding (the file must be a JSON array):${Q}${Q}${H.dim(`[
|
|
18
|
-
{
|
|
19
|
-
"key": "shift+enter",
|
|
20
|
-
"command": "workbench.action.terminal.sendSequence",
|
|
21
|
-
"args": { "text": "\\u001b\\r" },
|
|
22
|
-
"when": "terminalFocus"
|
|
23
|
-
}
|
|
24
|
-
]`)}${Q}`;let K=q==="VSCode"?"Code":q,$=O(d(),S()==="win32"?O("AppData","Roaming",K,"User"):S()==="darwin"?O("Library","Application Support",K,"User"):O(".config",K,"User")),X=O($,"keybindings.json");try{await f($,{recursive:!0});let Y="[]",B=[],Z=!1;try{Y=await u(X,{encoding:"utf-8"}),Z=!0,B=Zq(Y)??[]}catch(V){if(!E(V))throw V}if(Z){let V=k(4).toString("hex"),x=`${X}.${V}.bak`;try{await g(X,x)}catch{return`${z("warning",J)(`Error backing up existing ${q} terminal keybindings. Bailing out.`)}${Q}${H.dim(`See ${L(X)}`)}${Q}${H.dim(`Backup path: ${L(x)}`)}${Q}`}}if(B.find((V)=>V.key==="shift+enter"&&V.command==="workbench.action.terminal.sendSequence"&&V.when==="terminalFocus"))return`${z("warning",J)(`Found existing ${q} terminal Shift+Enter key binding. Remove it to continue.`)}${Q}${H.dim(`See ${L(X)}`)}${Q}`;let j=$q(Y,{key:"shift+enter",command:"workbench.action.terminal.sendSequence",args:{text:"\x1B\r"},when:"terminalFocus"});return await P(X,j,{encoding:"utf-8"}),`${z("success",J)(`Installed ${q} terminal Shift+Enter key binding`)}${Q}${H.dim(`See ${L(X)}`)}${Q}`}catch(Y){throw v(Y),Error(`Failed to install ${q} terminal Shift+Enter key binding`)}}async function Jq(q){let{code:J}=await G("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${q}':useOptionAsMetaKey bool true`,w()]);if(J!==0){let{code:K}=await G("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${q}':useOptionAsMetaKey true`,w()]);if(K!==0)return v(Error(`Failed to enable Option as Meta key for Terminal.app profile: ${q}`)),!1}return!0}async function Kq(q){let{code:J}=await G("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${q}':Bell bool false`,w()]);if(J!==0){let{code:K}=await G("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${q}':Bell false`,w()]);if(K!==0)return v(Error(`Failed to disable audio bell for Terminal.app profile: ${q}`)),!1}return!0}async function yq(q){try{if(!await t())throw Error("Failed to create backup of Terminal.app preferences, bailing out");let{stdout:K,code:$}=await G("defaults",["read","com.apple.Terminal","Default Window Settings"]);if($!==0||!K.trim())throw Error("Failed to read default Terminal.app profile");let{stdout:X,code:Y}=await G("defaults",["read","com.apple.Terminal","Startup Window Settings"]);if(Y!==0||!X.trim())throw Error("Failed to read startup Terminal.app profile");let B=!1,Z=K.trim(),F=await Jq(Z),M=await Kq(Z);if(F||M)B=!0;let j=X.trim();if(j!==Z){let V=await Jq(j),x=await Kq(j);if(V||x)B=!0}if(!B)throw Error("Failed to enable Option as Meta key or disable audio bell for any Terminal.app profile");return await G("killall",["cfprefsd"]),U(),`${z("success",q)("Configured Terminal.app settings:")}${Q}${z("success",q)('- Enabled "Use Option as Meta key"')}${Q}${z("success",q)("- Switched to visual bell")}${Q}${H.dim("Option+Enter will now enter a newline.")}${Q}${H.dim("You must restart Terminal.app for changes to take effect.",q)}${Q}`}catch(J){v(J);let K=await e(),$="Failed to enable Option as Meta key for Terminal.app.";if(K.status==="restored")throw Error(`${$} Your settings have been restored from backup.`);else if(K.status==="failed")throw Error(`${$} Restoring from backup failed, try manually with: defaults import com.apple.Terminal ${K.backupPath}`);else throw Error(`${$} No backup was available to restore from.`)}}async function Nq(q){let K=[],$=process.env.XDG_CONFIG_HOME;if($)K.push(O($,"alacritty","alacritty.toml"));else K.push(O(d(),".config","alacritty","alacritty.toml"));if(S()==="win32"){let Z=process.env.APPDATA;if(Z)K.push(O(Z,"alacritty","alacritty.toml"))}let X=null,Y="",B=!1;for(let Z of K)try{Y=await u(Z,{encoding:"utf-8"}),X=Z,B=!0;break}catch(F){if(!E(F))throw F}if(!X)X=K[0]??null;if(!X)throw Error("No valid config path found for Alacritty");try{if(B){if(Y.includes('mods = "Shift"')&&Y.includes('key = "Return"'))return`${z("warning",q)("Found existing Alacritty Shift+Enter key binding. Remove it to continue.")}${Q}${H.dim(`See ${L(X)}`)}${Q}`;let F=k(4).toString("hex"),M=`${X}.${F}.bak`;try{await g(X,M)}catch{return`${z("warning",q)("Error backing up existing Alacritty config. Bailing out.")}${Q}${H.dim(`See ${L(X)}`)}${Q}${H.dim(`Backup path: ${L(M)}`)}${Q}`}}else await f(Iq(X),{recursive:!0});let Z=Y;if(Y&&!Y.endsWith(`
|
|
25
|
-
`))Z+=`
|
|
26
|
-
`;return Z+=`
|
|
27
|
-
[[keyboard.bindings]]
|
|
28
|
-
key = "Return"
|
|
29
|
-
mods = "Shift"
|
|
30
|
-
chars = "\\u001B\\r"
|
|
31
|
-
`,await P(X,Z,{encoding:"utf-8"}),`${z("success",q)("Installed Alacritty Shift+Enter key binding")}${Q}${z("success",q)("You may need to restart Alacritty for changes to take effect")}${Q}${H.dim(`See ${L(X)}`)}${Q}`}catch(Z){throw v(Z),Error("Failed to install Alacritty Shift+Enter key binding")}}async function bq(q){let J=O(d(),".config","zed"),K=O(J,"keymap.json");try{await f(J,{recursive:!0});let $="[]",X=!1;try{$=await u(K,{encoding:"utf-8"}),X=!0}catch(B){if(!E(B))throw B}if(X){if($.includes("shift-enter"))return`${z("warning",q)("Found existing Zed Shift+Enter key binding. Remove it to continue.")}${Q}${H.dim(`See ${L(K)}`)}${Q}`;let B=k(4).toString("hex"),Z=`${K}.${B}.bak`;try{await g(K,Z)}catch{return`${z("warning",q)("Error backing up existing Zed keymap. Bailing out.")}${Q}${H.dim(`See ${L(K)}`)}${Q}${H.dim(`Backup path: ${L(Z)}`)}${Q}`}}let Y;try{if(Y=Xq($),!Array.isArray(Y))Y=[]}catch{Y=[]}return Y.push({context:"Terminal",bindings:{"shift-enter":["terminal::SendText","\x1B\r"]}}),await P(K,Qq(Y,null,2)+`
|
|
32
|
-
`,{encoding:"utf-8"}),`${z("success",q)("Installed Zed Shift+Enter key binding")}${Q}${H.dim(`See ${L(K)}`)}${Q}`}catch($){throw v($),Error("Failed to install Zed Shift+Enter key binding")}}var Q=`
|
|
33
|
-
`,D;var Cq=A(()=>{Rq();xq();Aq();n();qq();b();jq();Uq();o();Mq();a();wq();_q();D={ghostty:"Ghostty",kitty:"Kitty","iTerm.app":"iTerm2",WezTerm:"WezTerm",WarpTerminal:"Warp"}});
|
|
34
|
-
export{i as TY,n as UY,e as VY,qq as WY,FJ as XY,Eq as YY,Tq as ZY,UJ as _Y,_J as $Y,RJ as aZ,wJ as bZ,Cq as cZ};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{Pb as qY}from"./cli-1.1.16-y4qp7bb2.mjs";import{Nc as LY,Qc as rQ}from"./cli-1.1.16-7aatqp3z.mjs";import{di as X0,ei as p6}from"./cli-1.1.16-7xaxs3ra.mjs";import{Fi as IY,Gi as J6}from"./cli-1.1.16-4eszpnge.mjs";import{$D as NY,$v as a0,AB as MY,Au as GQ,BC as RY,BK as fY,BS as vY,Bu as JY,CB as G6,CC as N6,Cu as lQ,Du as FY,FR as kZ,Gt as F0,Hq as iZ,Ip as $9,Iq as cY,JR as xZ,Jp as r6,Jq as FZ,Jt as b0,Kq as PY,Kt as fZ,Ot as i9,Rv as x0,Sv as u0,Tv as p0,UL as P9,Uv as c0,VA as jY,Vv as m0,Vx as M0,WA as OY,WL as F9,Wm as UZ,Wv as d0,XA as X6,Xv as pZ,Yv as cZ,Yx as r9,Zm as EZ,Zv as g0,_L as b9,_R as OZ,_m as h0,_v as l0,aE as nQ,aw as n0,bw as i0,cw as r0,dw as o0,ew as s0,fM as o6,fl as L9,fw as t0,gB as HY,gk as KZ,gl as u6,gw as NQ,gz as bY,hB as aQ,hl as z9,iI as C0,iQ as hY,il as v9,jI as s9,jk as O0,jl as MZ,jz as K6,kE as n,kL as rY,kl as Z0,lS as xY,ll as q9,mB as yY,mE as B6,ml as XZ,nL as O6,nl as Y0,oB as V6,oK as s,ok as $Y,ol as D9,pl as A9,ql as sY,rQ as SY,tC as CY,tQ as kY,uC as H6,uK as TY,uS as uY,vG as I0,wG as o9,xO as BY,xQ as L6,yS as zY,zO as iQ,zu as S0}from"./cli-1.1.16-hwr77b8n.mjs";import{CX as Q9,GX as T6}from"./cli-1.1.16-tv4kjnwq.mjs";import{AY as $0,BY as a9,HY as P0,IY as n9,hY as y0,iY as g9,vY as U0,wY as E0,xY as l9}from"./cli-1.1.16-cnwnk7gb.mjs";import{B1 as d9,W0 as p,Y0 as b,xZ as m9}from"./cli-1.1.16-6ptafg83.mjs";import{$3 as G0,Y3 as a,Z3 as y,_3 as M}from"./cli-1.1.16-72wxrwg0.mjs";import{a4 as c9}from"./cli-1.1.16-2mzk1cmm.mjs";import{K8 as j6,N7 as iY,f6 as nY,j6 as w6}from"./cli-1.1.16-49bqpfq6.mjs";import{Bca as i6,D_ as GY,Dga as e,F_ as gQ,G$ as a6,Kda as aY,Lga as j0,Mca as gY,Naa as n6,Nca as lY,Pca as A6,Raa as Y9,Tda as _6,Waa as R6,e$ as y9,laa as RZ,naa as x9,qaa as U9,r_ as _Z,s_ as k9,uca as E9,wga as w0,zga as p9}from"./cli-1.1.16-jcye29qq.mjs";import{Wga as N0,cha as B0,gha as S9}from"./cli-1.1.16-r0tgqw2k.mjs";import{Kha as oY,Vha as E6}from"./cli-1.1.16-way1d0g7.mjs";import{Kia as Y,Lia as S,Mia as HZ,Nia as D,Oia as yZ}from"./cli-1.1.16-z56ew2eh.mjs";import{$ia as q0,Ria as dY,Tia as D6,Via as TZ,Yia as L0,Zia as z0,_ia as v0,bja as D0,cja as A0,oja as _0,uja as u9}from"./cli-1.1.16-kz0jkcdc.mjs";import{Fja as g,Ija as jZ}from"./cli-1.1.16-5a4a2nqs.mjs";import{Ika as I,Lja as Z9,Lka as JZ,Nja as C6,lka as ZZ,mka as WY,qka as PZ}from"./cli-1.1.16-s404wy1x.mjs";import{Nka as KY,Rka as dQ}from"./cli-1.1.16-cmw3ar20.mjs";import{Uka as VY,gla as O9,hla as sZ,nla as gZ}from"./cli-1.1.16-njacmwr1.mjs";import{Opa as J9,Ppa as qZ,Qpa as H9,Spa as N9,Tpa as Q0,Vpa as B9,bra as wY,era as NZ,fna as BZ,lna as V0,mna as eY,woa as mY}from"./cli-1.1.16-eabt3s19.mjs";import{Osa as H0,Rsa as SZ,Ssa as wZ,Tsa as nZ}from"./cli-1.1.16-w5ns6t4b.mjs";var WQ={};SZ(WQ,{selectableUserMessagesFilter:()=>f0,messagesAfterAreOnlySynthetic:()=>VQ,MessageSelector:()=>e9});import{randomUUID as t9}from"crypto";import*as QZ from"path";function R0(Q){return Q.type==="text"}function hZ(Q){return Q==="summarize"||Q==="summarize_up_to"}function e9({messages:Q,onPreRestore:Z,onRestoreMessage:X,onRestoreCode:W,onSummarize:V,onClose:H,preselectedMessage:G}){let K=M0((j)=>j.fileHistory),[B,z]=R.useState(void 0),J=F0(),L=R.useMemo(t9,[]),_=R.useMemo(()=>[...Q.filter(f0),{...s({content:""}),uuid:L}],[Q,L]),[O,q]=R.useState(_.length-1),P=Math.max(0,Math.min(O-Math.floor(CZ/2),_.length-CZ)),f=_.length>1,[v,F]=R.useState(G),[U,h]=R.useState(void 0);R.useEffect(()=>{if(!G||!J)return;let j=!1;return fZ(K,G.uuid).then((T)=>{if(!j)h(T)}),()=>{j=!0}},[G,J,K]);let[E,w]=R.useState(!1),[c,r]=R.useState(null),[o,C]=R.useState("both"),[k,x]=R.useState(""),[A,$]=R.useState("");function N(j){let T=j?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],m={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return T.push({value:"summarize",label:"Summarize from here",...m,onChange:x}),T.push({value:"nevermind",label:"Never mind"}),T}R.useEffect(()=>{g("",{})},[]);async function u(j){Z(),w(!0);try{await X(j),w(!1),H()}catch(T){e(T),w(!1),z(`Failed to restore the conversation:
|
|
2
|
-
${T}`)}}async function l(j){let T=Q.indexOf(j),m=Q.length-1-T;if(g("",{index_from_end:m,message_type:j.type,is_current_prompt:!1}),!Q.includes(j)){H();return}if(!J){await u(j);return}let d=await fZ(K,j.uuid);F(j),h(d)}async function VZ(j){if(g("",{option:j}),!v){z("Message not found.");return}if(j==="nevermind"){if(G)H();else F(void 0);return}if(hZ(j)){Z(),w(!0),r(j),z(void 0);try{let d=j==="summarize_up_to"?"up_to":"from",YZ=(d==="up_to"?A:k).trim()||void 0;await V(v,YZ,d),w(!1),r(null),F(void 0),H()}catch(d){e(d),w(!1),r(null),F(void 0),z(`Failed to summarize:
|
|
3
|
-
${d}`)}return}Z(),w(!0),z(void 0);let T=null,m=null;if(j==="code"||j==="both")try{await W(v)}catch(d){T=d,e(T)}if(j==="conversation"||j==="both")try{await X(v)}catch(d){m=d,e(m)}if(w(!1),F(void 0),m&&T)z(`Failed to restore the conversation and code:
|
|
4
|
-
${m}
|
|
5
|
-
${T}`);else if(m)z(`Failed to restore the conversation:
|
|
6
|
-
${m}`);else if(T)z(`Failed to restore the code:
|
|
7
|
-
${T}`);else H()}let WZ=$0(),t=R.useCallback(()=>{if(v&&!G){F(void 0);return}g("",{}),H()},[H,v,G]),I9=R.useCallback(()=>q((j)=>Math.max(0,j-1)),[]),C9=R.useCallback(()=>q((j)=>Math.min(_.length-1,j+1)),[_.length]),R9=R.useCallback(()=>q(0),[]),T9=R.useCallback(()=>q(_.length-1),[_.length]),f9=R.useCallback(()=>{let j=_[O];if(j)l(j)},[_,O,l]);U0("confirm:no",t,{context:"Confirmation",isActive:!v}),E0({"messageSelector:up":I9,"messageSelector:down":C9,"messageSelector:top":R9,"messageSelector:bottom":T9,"messageSelector:select":f9},{context:"MessageSelector",isActive:!E&&!B&&!v&&f});let[W0,K0]=R.useState({});R.useEffect(()=>{async function j(){if(!J)return;Promise.all(_.map(async(T,m)=>{if(T.uuid!==L){let d=b0(K,T.uuid),YZ=_.at(m+1),AZ=d?XQ(Q,T.uuid,YZ?.uuid!==L?YZ?.uuid:void 0):void 0;if(AZ!==void 0)K0((i)=>({...i,[m]:AZ}));else K0((i)=>({...i,[m]:void 0}))}}))}j()},[_,Q,L,K,J]);let DZ=J&&U?.filesChanged&&U.filesChanged.length>0,h9=!B&&!v&&!G&&f;return M(p,{flexDirection:"column",width:"100%",children:[y(P0,{color:"suggestion"}),M(p,{flexDirection:"column",marginX:1,gap:1,children:[y(b,{bold:!0,color:"suggestion",children:"Rewind"}),B&&y(a,{children:M(b,{color:"error",children:["Error: ",B]})}),!f&&y(a,{children:y(b,{children:"Nothing to rewind to yet."})}),!B&&v&&f&&M(a,{children:[M(b,{children:["Confirm you want to restore"," ",!U&&"the conversation ","to the point before you sent this message:"]}),M(p,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[y(J0,{userMessage:v,color:"text",isCurrent:!1}),M(b,{dimColor:!0,children:["(",B0(new Date(v.timestamp)),")"]})]}),y(YQ,{selectedRestoreOption:o,canRestoreCode:!!DZ,diffStatsForRestore:U}),E&&hZ(c)?M(p,{flexDirection:"row",gap:1,children:[y(C0,{}),y(b,{children:"Summarizing…"})]}):y(I0,{isDisabled:E,options:N(!!DZ),defaultFocusValue:DZ?"both":"conversation",onFocus:(j)=>C(j),onChange:(j)=>VZ(j),onCancel:()=>G?H():F(void 0)}),DZ&&y(p,{marginBottom:1,children:M(b,{dimColor:!0,children:[_Z.warning," Rewinding does not affect files edited manually or via bash."]})})]}),h9&&M(a,{children:[J?y(b,{children:"Restore the code and/or conversation to the point before…"}):y(b,{children:"Restore and fork the conversation to the point before…"}),y(p,{width:"100%",flexDirection:"column",children:_.slice(P,P+CZ).map((j,T)=>{let m=P+T,d=m===O,YZ=j.uuid===L,AZ=m in W0,i=W0[m],IZ=i?.filesChanged&&i.filesChanged.length;return M(p,{height:J?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[y(p,{width:2,minWidth:2,children:d?M(b,{color:"permission",bold:!0,children:[_Z.pointer," "]}):y(b,{children:" "})}),M(p,{flexDirection:"column",children:[y(p,{flexShrink:1,height:1,overflow:"hidden",children:y(J0,{userMessage:j,color:d?"suggestion":void 0,isCurrent:YZ,paddingRight:10})}),J&&AZ&&y(p,{height:1,flexDirection:"row",children:i?y(a,{children:y(b,{dimColor:!d,color:"inactive",children:IZ?M(a,{children:[IZ===1&&i.filesChanged[0]?`${QZ.basename(i.filesChanged[0])} `:`${IZ} files changed `,y(T0,{diffStats:i})]}):y(a,{children:"No code changes"})})}):M(b,{dimColor:!0,color:"warning",children:[_Z.warning," No code restore"]})})]})]},j.uuid)})})]}),!v&&y(b,{dimColor:!0,italic:!0,children:WZ.pending?M(a,{children:["Press ",WZ.keyName," again to exit"]}):M(a,{children:[!B&&f&&"Enter to continue · ","Esc to exit"]})})]})]})}function ZQ(Q){switch(Q){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function YQ(Q){let Z=GZ.c(11),{selectedRestoreOption:X,canRestoreCode:W,diffStatsForRestore:V}=Q,H=W&&(X==="both"||X==="code"),G;if(Z[0]!==X)G=ZQ(X),Z[0]=X,Z[1]=G;else G=Z[1];let K;if(Z[2]!==G)K=y(b,{dimColor:!0,children:G}),Z[2]=G,Z[3]=K;else K=Z[3];let B;if(Z[4]!==V||Z[5]!==X||Z[6]!==H)B=!hZ(X)&&(H?y(QQ,{diffStatsForRestore:V}):y(b,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=V,Z[5]=X,Z[6]=H,Z[7]=B;else B=Z[7];let z;if(Z[8]!==K||Z[9]!==B)z=M(p,{flexDirection:"column",children:[K,B]}),Z[8]=K,Z[9]=B,Z[10]=z;else z=Z[10];return z}function QQ(Q){let Z=GZ.c(14),{diffStatsForRestore:X}=Q;if(X===void 0)return;if(!X.filesChanged||!X.filesChanged[0]){let K;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))K=y(b,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=K;else K=Z[0];return K}let W=X.filesChanged.length,V;if(W===1){let K;if(Z[1]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[1]=X.filesChanged[0],Z[2]=K;else K=Z[2];V=K}else if(W===2){let K;if(Z[3]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[3]=X.filesChanged[0],Z[4]=K;else K=Z[4];let B=K,z;if(Z[5]!==X.filesChanged[1])z=QZ.basename(X.filesChanged[1]||""),Z[5]=X.filesChanged[1],Z[6]=z;else z=Z[6];V=`${B} and ${z}`}else{let K;if(Z[7]!==X.filesChanged[0])K=QZ.basename(X.filesChanged[0]||""),Z[7]=X.filesChanged[0],Z[8]=K;else K=Z[8];V=`${K} and ${X.filesChanged.length-1} other files`}let H;if(Z[9]!==X)H=y(T0,{diffStats:X}),Z[9]=X,Z[10]=H;else H=Z[10];let G;if(Z[11]!==V||Z[12]!==H)G=y(a,{children:M(b,{dimColor:!0,children:["The code will be restored"," ",H," in ",V,"."]})}),Z[11]=V,Z[12]=H,Z[13]=G;else G=Z[13];return G}function T0(Q){let Z=GZ.c(7),{diffStats:X}=Q;if(!X||!X.filesChanged)return;let W;if(Z[0]!==X.insertions)W=M(b,{color:"diffAddedWord",children:["+",X.insertions," "]}),Z[0]=X.insertions,Z[1]=W;else W=Z[1];let V;if(Z[2]!==X.deletions)V=M(b,{color:"diffRemovedWord",children:["-",X.deletions]}),Z[2]=X.deletions,Z[3]=V;else V=Z[3];let H;if(Z[4]!==W||Z[5]!==V)H=M(a,{children:[W,V]}),Z[4]=W,Z[5]=V,Z[6]=H;else H=Z[6];return H}function J0(Q){let Z=GZ.c(31),{userMessage:X,color:W,dimColor:V,isCurrent:H,paddingRight:G}=Q,{columns:K}=y0();if(H){let h;if(Z[0]!==W||Z[1]!==V)h=y(p,{width:"100%",children:y(b,{italic:!0,color:W,dimColor:V,children:"(current)"})}),Z[0]=W,Z[1]=V,Z[2]=h;else h=Z[2];return h}let B=X.message.content,z=typeof B==="string"?null:B[B.length-1],J,L,_,O,q,P,f,v;if(Z[3]!==W||Z[4]!==K||Z[5]!==B||Z[6]!==V||Z[7]!==z||Z[8]!==G){v=Symbol.for("react.early_return_sentinel");Z:{let h=typeof B==="string"?B.trim():z&&R0(z)?z.text.trim():"(no prompt)",E=w0(h);if(O0(E)){let w;if(Z[17]!==W||Z[18]!==V)w=y(p,{flexDirection:"row",width:"100%",children:y(b,{italic:!0,color:W,dimColor:V,children:"((empty message))"})}),Z[17]=W,Z[18]=V,Z[19]=w;else w=Z[19];v=w;break Z}if(E.includes("<bash-input>")){let w=KZ(E,"bash-input");if(w){let c;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))c=y(b,{color:"bashBorder",children:"!"}),Z[20]=c;else c=Z[20];v=M(p,{flexDirection:"row",width:"100%",children:[c,M(b,{color:W,dimColor:V,children:[" ",w]})]});break Z}}if(E.includes(`<${TZ}>`)){let w=KZ(E,TZ),c=KZ(E,"command-args"),r=KZ(E,"skill-format")==="true";if(w)if(r){v=y(p,{flexDirection:"row",width:"100%",children:M(b,{color:W,dimColor:V,children:["Skill(",w,")"]})});break Z}else{v=y(p,{flexDirection:"row",width:"100%",children:M(b,{color:W,dimColor:V,children:["/",w," ",c]})});break Z}}L=p,P="row",f="100%",J=b,_=W,O=V,q=G?N0(E,K-G,!0):E.slice(0,500).split(`
|
|
8
|
-
`).slice(0,4).join(`
|
|
9
|
-
`)}Z[3]=W,Z[4]=K,Z[5]=B,Z[6]=V,Z[7]=z,Z[8]=G,Z[9]=J,Z[10]=L,Z[11]=_,Z[12]=O,Z[13]=q,Z[14]=P,Z[15]=f,Z[16]=v}else J=Z[9],L=Z[10],_=Z[11],O=Z[12],q=Z[13],P=Z[14],f=Z[15],v=Z[16];if(v!==Symbol.for("react.early_return_sentinel"))return v;let F;if(Z[21]!==J||Z[22]!==_||Z[23]!==O||Z[24]!==q)F=y(J,{color:_,dimColor:O,children:q}),Z[21]=J,Z[22]=_,Z[23]=O,Z[24]=q,Z[25]=F;else F=Z[25];let U;if(Z[26]!==L||Z[27]!==P||Z[28]!==f||Z[29]!==F)U=y(L,{flexDirection:P,width:f,children:F}),Z[26]=L,Z[27]=P,Z[28]=f,Z[29]=F,Z[30]=U;else U=Z[30];return U}function XQ(Q,Z,X){let W=Q.findIndex((B)=>B.uuid===Z);if(W===-1)return;let V=X?Q.findIndex((B)=>B.uuid===X):Q.length;if(V===-1)V=Q.length;let H=[],G=0,K=0;for(let B=W+1;B<V;B++){let z=Q[B];if(!z||!xZ(z))continue;let J=z.toolUseResult;if(!J||!J.filePath||!J.structuredPatch)continue;if(!H.includes(J.filePath))H.push(J.filePath);try{if("type"in J&&J.type==="create")G+=J.content.split(/\r?\n/).length;else for(let L of J.structuredPatch){let _=RZ(L.lines,(q)=>q.startsWith("+")),O=RZ(L.lines,(q)=>q.startsWith("-"));G+=_,K+=O}}catch{continue}}return{filesChanged:H,insertions:G,deletions:K}}function f0(Q){if(Q.type!=="user")return!1;if(Array.isArray(Q.message.content)&&Q.message.content[0]?.type==="tool_result")return!1;if(kZ(Q))return!1;if(Q.isMeta)return!1;if(Q.isCompactSummary||Q.isVisibleInTranscriptOnly)return!1;let Z=Q.message.content,X=typeof Z==="string"?null:Z[Z.length-1],W=typeof Z==="string"?Z.trim():X&&R0(X)?X.text.trim():"";if(W.indexOf(`<${v0}>`)!==-1||W.indexOf(`<${q0}>`)!==-1||W.indexOf(`<${L0}>`)!==-1||W.indexOf(`<${z0}>`)!==-1||W.indexOf(`<${A0}>`)!==-1||W.indexOf(`<${D0}>`)!==-1||W.indexOf(`<${_0}`)!==-1)return!1;return!0}function VQ(Q,Z){for(let X=Z+1;X<Q.length;X++){let W=Q[X];if(!W)continue;if(kZ(W))continue;if(xZ(W))continue;if(W.type==="progress")continue;if(W.type==="system")continue;if(W.type==="attachment")continue;if(W.type==="user"&&W.isMeta)continue;if(W.type==="assistant"){let V=W.message.content;if(Array.isArray(V)){if(V.some((G)=>G.type==="text"&&G.text.trim()||G.type==="tool_use"))return!1}continue}if(W.type==="user")return!1}return!0}var GZ,R,CZ=7;var KQ=wZ(()=>{k9();jZ();r9();i9();j0();a9();d9();l9();p9();OZ();o9();s9();g9();u9();x9();S9();n9();G0();GZ=H0(m9(),1),R=H0(c9(),1)});var M6={};SZ(M6,{getCronJitterConfig:()=>b6});function b6(){let Q=oY("tengu_kairos_cron_config",XZ,$6),Z=F6().safeParse(Q);return Z.success?Z.data:XZ}var $6=60000,rZ=1800000,P6=2592000000,F6;var I6=wZ(()=>{HZ();E6();sY();yZ();F6=D(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(rZ),oneShotMaxMs:Y.number().int().min(0).max(rZ),oneShotFloorMs:Y.number().int().min(0).max(rZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max(P6).default(XZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as f6,readFile as h6,unlink as X9,writeFile as tZ}from"fs/promises";import{dirname as S6,join as V9}from"path";function zZ(Q){return V9(Q??eY(),k6)}async function W9(Q){let Z;try{Z=await h6(zZ(Q),"utf8")}catch{return}let X=x6().safeParse(Y9(Z,!1));return X.success?X.data:void 0}async function tY(Q,Z){let X=zZ(Z),W=ZZ(Q);try{return await tZ(X,W,{flag:"wx"}),!0}catch(V){let H=sZ(V);if(H==="EEXIST")return!1;if(H==="ENOENT"){await f6(S6(X),{recursive:!0});try{return await tZ(X,W,{flag:"wx"}),!0}catch(G){if(sZ(G)==="EEXIST")return!1;throw G}}throw V}}function oZ(Q){bZ?.(),bZ=Z9(async()=>{await vZ(Q)})}async function eZ(Q){let Z=Q?.dir,X=Q?.lockIdentity??BZ(),W={sessionId:X,pid:process.pid,acquiredAt:Date.now()};if(await tY(W,Z))return LZ=void 0,oZ(Q),I(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let V=await W9(Z);if(V?.sessionId===X){if(V.pid!==process.pid)await tZ(zZ(Z),ZZ(W)),oZ(Q);return!0}if(V&&Q9(V.pid)){if(LZ!==V.sessionId)LZ=V.sessionId,I(`[ScheduledTasks] scheduler lock held by session ${V.sessionId} (PID ${V.pid})`);return!1}if(V)I(`[ScheduledTasks] recovering stale scheduler lock from PID ${V.pid}`);if(await X9(zZ(Z)).catch(()=>{}),await tY(W,Z))return LZ=void 0,oZ(Q),!0;return!1}async function vZ(Q){bZ?.(),bZ=void 0,LZ=void 0;let Z=Q?.dir,X=Q?.lockIdentity??BZ(),W=await W9(Z);if(!W||W.sessionId!==X)return;try{await X9(zZ(Z)),I("[ScheduledTasks] released scheduler lock")}catch{}}var k6,x6,bZ,LZ;var K9=wZ(()=>{HZ();NZ();C6();JZ();gZ();T6();R6();yZ();PZ();k6=V9(".claudin","scheduled_tasks.lock"),x6=D(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var g6={};SZ(g6,{takeDueSessionWakeup:()=>w9,isRecurringTaskAged:()=>_9,createCronScheduler:()=>d6,buildMissedTaskNotification:()=>j9});function _9(Q,Z,X){if(X===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=X)}function w9(Q){let Z=Q0();if(!Z||Q<Z.fireAtMs)return null;return B9(),{prompt:X0(Z.prompt),reason:Z.reason}}function d6(Q){let{onFire:Z,isLoading:X,assistantMode:W=!1,onFireTask:V,onMissed:H,onWakeupFire:G,dir:K,lockIdentity:B,getJitterConfig:z,isKilled:J,filter:L}=Q,_=K||B?{dir:K,lockIdentity:B}:void 0,O=[],q=new Map,P=new Set,f=new Set,v=null,F=null,U=null,h=null,E=!1,w=!1;async function c(C){let k=await v9(K);if(E)return;if(O=k,!C)return;let x=Date.now(),A=A9(k,x).filter(($)=>!$.recurring&&!P.has($.id)&&(!L||L($)));if(A.length>0){for(let $ of A)P.add($.id),q.set($.id,1/0);if(g("",{count:A.length,taskIds:A.map(($)=>$.id).join(",")}),H)H(A);else Z(j9(A));Z0(A.map(($)=>$.id),K).catch(($)=>I(`[ScheduledTasks] failed to remove missed tasks: ${$}`)),I(`[ScheduledTasks] surfaced ${A.length} missed one-shot task(s)`)}}function r(){if(J?.())return;if(X()&&!W)return;let C=Date.now(),k=new Set,x=[],A=z?.()??XZ;function $(N,u){if(L&&!L(N))return;if(k.add(N.id),f.has(N.id))return;let l=q.get(N.id);if(l===void 0)l=N.recurring?Y0(N.cron,N.lastFiredAt??N.createdAt,N.id,A)??1/0:D9(N.cron,N.createdAt,N.id,A)??1/0,q.set(N.id,l),I(`[ScheduledTasks] scheduled ${N.id} for ${l===1/0?"never":new Date(l).toISOString()}`);if(C<l)return;I(`[ScheduledTasks] firing ${N.id}${N.recurring?" (recurring)":""}`),g("",{recurring:N.recurring??!1,taskId:N.id});let VZ=K===void 0?X0(N.prompt,void 0,N.agentId):N.prompt;if(V)V(VZ===N.prompt?N:{...N,prompt:VZ});else Z(VZ);let WZ=_9(N,C,A.recurringMaxAgeMs);if(WZ){let t=Math.floor((C-N.createdAt)/1000/60/60);I(`[ScheduledTasks] recurring task ${N.id} aged out (${t}h since creation), deleting after final fire`),g("",{taskId:N.id,ageHours:t})}if(N.recurring&&!WZ){let t=Y0(N.cron,C,N.id,A)??1/0;if(q.set(N.id,t),!u)x.push(N.id)}else if(u)N9([N.id]),q.delete(N.id);else f.add(N.id),Z0([N.id],K).catch((t)=>I(`[ScheduledTasks] failed to remove task ${N.id}: ${t}`)).finally(()=>f.delete(N.id)),q.delete(N.id)}if(w){for(let N of O)$(N,!1);if(x.length>0){for(let N of x)f.add(N);q9(x,C,K).catch((N)=>I(`[ScheduledTasks] failed to persist lastFiredAt: ${N}`)).finally(()=>{for(let N of x)f.delete(N)})}}if(K===void 0){for(let u of H9())$(u,!0);let N=w9(C);if(N!==null)if(I("[ScheduledTasks] firing pending ScheduleWakeup"),g("",{}),G)G(N.prompt,N.reason);else Z(N.prompt)}if(k.size===0){q.clear();return}for(let N of q.keys())if(!k.has(N))q.delete(N)}async function o(){if(E)return;if(v)clearInterval(v),v=null;let{default:C}=await import("./index-1.1.16-dxjx9gq8.mjs");if(E)return;if(w=await eZ(_).catch(()=>!1),E){if(w)w=!1,vZ(_);return}if(!w)U=setInterval(()=>{eZ(_).then((x)=>{if(E){if(x)vZ(_);return}if(x){if(w=!0,U)clearInterval(U),U=null}}).catch((x)=>I(String(x),{level:"error"}))},m6),U.unref?.();c(!0);let k=z9(K);h=C.watch(k,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:c6},ignorePermissionErrors:!0}),h.on("add",()=>void c(!1)),h.on("change",()=>void c(!1)),h.on("unlink",()=>{if(!E)O=[],q.clear()}),F=setInterval(r,G9),F.unref?.()}return{start(){if(E=!1,K!==void 0){I(`[ScheduledTasks] scheduler start() — dir=${K}, hasTasks=${MZ(K)}`),o();return}if(I(`[ScheduledTasks] scheduler start() — enabled=${qZ()}, hasTasks=${MZ()}`),!qZ()&&(W||MZ()))J9(!0);if(qZ()){o();return}v=setInterval((C)=>{if(qZ())C()},G9,o),v.unref?.()},stop(){if(E=!0,v)clearInterval(v),v=null;if(F)clearInterval(F),F=null;if(U)clearInterval(U),U=null;if(h?.close(),h=null,w)w=!1,vZ(_)},getNextFireTime(){let C=1/0;for(let k of q.values())if(k<C)C=k;if(K===void 0){let k=Q0();if(k&&k.fireAtMs<C)C=k.fireAtMs}return C===1/0?null:C}}}function j9(Q){let Z=Q.length>1,X=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claudin/scheduled_tasks.json.
|
|
10
|
-
|
|
11
|
-
Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,W=Q.map((V)=>{let H=`[${L9(V.cron)}, created ${new Date(V.createdAt).toLocaleString()}]`,G=(V.prompt.match(/`+/g)??[]).reduce((B,z)=>Math.max(B,z.length),0),K="`".repeat(Math.max(3,G+1));return`${H}
|
|
12
|
-
${K}
|
|
13
|
-
${V.prompt}
|
|
14
|
-
${K}`});return`${X}
|
|
15
|
-
|
|
16
|
-
${W.join(`
|
|
17
|
-
|
|
18
|
-
`)}`}var G9=1000,c6=300,m6=5000;var l6=wZ(()=>{NZ();jZ();u6();sY();K9();JZ();p6()});HZ();JZ();yZ();h0();GQ();var EX=D(()=>S.object({tool_name:S.string().describe("The name of the tool requesting permission"),input:S.record(S.string(),S.unknown()).describe("The input for the tool"),tool_use_id:S.string().optional().describe("The unique tool use request ID")})),k0=D(()=>S.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),JQ=D(()=>S.object({behavior:S.literal("allow"),updatedInput:S.record(S.string(),S.unknown()),updatedPermissions:S.array(S0()).optional().catch((Q)=>{I(`Malformed updatedPermissions from SDK host ignored: ${Q.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:S.string().optional(),decisionClassification:k0()})),HQ=D(()=>S.object({behavior:S.literal("deny"),message:S.string(),interrupt:S.boolean().optional(),toolUseID:S.string().optional(),decisionClassification:k0()})),uZ=D(()=>S.union([JQ(),HQ()]));function $Z(Q,Z,X,W){let V={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Q};if(Q.behavior==="allow"){let H=Q.updatedPermissions;if(H)W.setAppState((K)=>({...K,toolPermissionContext:UZ(K.toolPermissionContext,H)})),EZ(H);let G=Object.keys(Q.updatedInput).length>0?Q.updatedInput:X;return{...Q,updatedInput:G,decisionReason:V}}else if(Q.behavior==="deny"&&Q.interrupt)I(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Q.message}`),W.abortController.abort();return{...Q,decisionReason:V}}import{randomUUID as dZ}from"crypto";HZ();yZ();NQ();var BQ=D(()=>Y.unknown()),LQ=D(()=>Y.object({matcher:Y.string().optional(),hookCallbackIds:Y.array(Y.string()),timeout:Y.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),zQ=D(()=>Y.object({subtype:Y.literal("initialize"),hooks:Y.record(m0(),Y.array(LQ())).optional(),sdkMcpServers:Y.array(Y.string()).optional(),jsonSchema:Y.record(Y.string(),Y.unknown()).optional(),systemPrompt:Y.string().optional(),appendSystemPrompt:Y.string().optional(),agents:Y.record(Y.string(),a0()).optional(),promptSuggestions:Y.boolean().optional(),agentProgressSummaries:Y.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),MX=D(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(cZ()),output_style:Y.string(),available_output_styles:Y.array(Y.string()),models:Y.array(g0()),account:l0(),pid:Y.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:t0().optional()}).describe("Response from session initialization with available commands, models, and account info.")),vQ=D(()=>Y.object({subtype:Y.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),qQ=D(()=>Y.object({subtype:Y.literal("can_use_tool"),tool_name:Y.string(),input:Y.record(Y.string(),Y.unknown()),permission_suggestions:Y.array(p0()).optional(),blocked_path:Y.string().optional(),decision_reason:Y.string().optional(),title:Y.string().optional(),display_name:Y.string().optional(),tool_use_id:Y.string(),agent_id:Y.string().optional(),description:Y.string().optional()}).describe("Requests permission to use a tool with the given input.")),DQ=D(()=>Y.object({subtype:Y.literal("set_permission_mode"),mode:c0(),ultraplan:Y.boolean().optional().describe("@internal CCR ultraplan session marker.")}).describe("Sets the permission mode for tool execution handling.")),AQ=D(()=>Y.object({subtype:Y.literal("set_model"),model:Y.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),_Q=D(()=>Y.object({subtype:Y.literal("set_max_thinking_tokens"),max_thinking_tokens:Y.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),wQ=D(()=>Y.object({subtype:Y.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),jQ=D(()=>Y.object({subtype:Y.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),OQ=D(()=>Y.object({name:Y.string(),tokens:Y.number(),color:Y.string(),isDeferred:Y.boolean().optional()})),yQ=D(()=>Y.object({color:Y.string(),isFilled:Y.boolean(),categoryName:Y.string(),tokens:Y.number(),percentage:Y.number(),squareFullness:Y.number()})),IX=D(()=>Y.object({categories:Y.array(OQ()),totalTokens:Y.number(),maxTokens:Y.number(),rawMaxTokens:Y.number(),percentage:Y.number(),gridRows:Y.array(Y.array(yQ())),model:Y.string(),memoryFiles:Y.array(Y.object({path:Y.string(),type:Y.string(),tokens:Y.number()})),mcpTools:Y.array(Y.object({name:Y.string(),serverName:Y.string(),tokens:Y.number(),isLoaded:Y.boolean().optional()})),deferredBuiltinTools:Y.array(Y.object({name:Y.string(),tokens:Y.number(),isLoaded:Y.boolean()})).optional(),systemTools:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),systemPromptSections:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),agents:Y.array(Y.object({agentType:Y.string(),source:Y.string(),tokens:Y.number()})),slashCommands:Y.object({totalCommands:Y.number(),includedCommands:Y.number(),tokens:Y.number()}).optional(),skills:Y.object({totalSkills:Y.number(),includedSkills:Y.number(),tokens:Y.number(),skillFrontmatter:Y.array(Y.object({name:Y.string(),source:Y.string(),tokens:Y.number()}))}).optional(),autoCompactThreshold:Y.number().optional(),isAutoCompactEnabled:Y.boolean(),messageBreakdown:Y.object({toolCallTokens:Y.number(),toolResultTokens:Y.number(),attachmentTokens:Y.number(),assistantMessageTokens:Y.number(),userMessageTokens:Y.number(),toolCallsByType:Y.array(Y.object({name:Y.string(),callTokens:Y.number(),resultTokens:Y.number()})),attachmentsByType:Y.array(Y.object({name:Y.string(),tokens:Y.number()}))}).optional(),apiUsage:Y.object({input_tokens:Y.number(),output_tokens:Y.number(),cache_creation_input_tokens:Y.number(),cache_read_input_tokens:Y.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),UQ=D(()=>Y.object({subtype:Y.literal("rewind_files"),user_message_id:Y.string(),dry_run:Y.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),EQ=D(()=>Y.object({subtype:Y.literal("cancel_async_message"),message_uuid:Y.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),$Q=D(()=>Y.object({subtype:Y.literal("seed_read_state"),path:Y.string(),mtime:Y.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),PQ=D(()=>Y.object({subtype:Y.literal("hook_callback"),callback_id:Y.string(),input:d0(),tool_use_id:Y.string().optional()}).describe("Delivers a hook callback with its input data.")),FQ=D(()=>Y.object({subtype:Y.literal("mcp_message"),server_name:Y.string(),message:BQ()}).describe("Sends a JSON-RPC message to a specific MCP server.")),bQ=D(()=>Y.object({subtype:Y.literal("mcp_set_servers"),servers:Y.record(Y.string(),x0())}).describe("Replaces the set of dynamically managed MCP servers.")),CX=D(()=>Y.object({added:Y.array(Y.string()),removed:Y.array(Y.string()),errors:Y.record(Y.string(),Y.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),MQ=D(()=>Y.object({subtype:Y.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),RX=D(()=>Y.object({commands:Y.array(pZ()),agents:Y.array(cZ()),plugins:Y.array(Y.object({name:Y.string(),path:Y.string(),source:Y.string().optional()})),mcpServers:Y.array(u0()),error_count:Y.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),IQ=D(()=>Y.object({subtype:Y.literal("mcp_reconnect"),serverName:Y.string()}).describe("Reconnects a disconnected or failed MCP server.")),CQ=D(()=>Y.object({subtype:Y.literal("mcp_toggle"),serverName:Y.string(),enabled:Y.boolean()}).describe("Enables or disables an MCP server.")),RQ=D(()=>Y.object({subtype:Y.literal("stop_task"),task_id:Y.string()}).describe("Stops a running task.")),TQ=D(()=>Y.object({subtype:Y.literal("apply_flag_settings"),settings:Y.record(Y.string(),Y.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),fQ=D(()=>Y.object({subtype:Y.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),TX=D(()=>Y.object({effective:Y.record(Y.string(),Y.unknown()),sources:Y.array(Y.object({source:Y.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Y.record(Y.string(),Y.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Y.object({model:Y.string(),effort:Y.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),hQ=D(()=>Y.object({subtype:Y.literal("elicitation"),mcp_server_name:Y.string(),message:Y.string(),mode:Y.enum(["form","url"]).optional(),url:Y.string().optional(),elicitation_id:Y.string().optional(),requested_schema:Y.record(Y.string(),Y.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),e0=D(()=>Y.object({action:Y.enum(["accept","decline","cancel"]),content:Y.record(Y.string(),Y.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),SQ=D(()=>Y.union([vQ(),qQ(),zQ(),DQ(),AQ(),_Q(),wQ(),jQ(),PQ(),FQ(),UQ(),EQ(),$Q(),bQ(),MQ(),IQ(),CQ(),RQ(),TQ(),fQ(),hQ()])),mZ=D(()=>Y.object({type:Y.literal("control_request"),request_id:Y.string(),request:SQ()})),kQ=D(()=>Y.object({subtype:Y.literal("success"),request_id:Y.string(),response:Y.record(Y.string(),Y.unknown()).optional()})),xQ=D(()=>Y.object({subtype:Y.literal("error"),request_id:Y.string(),error:Y.string(),pending_permission_requests:Y.array(Y.lazy(()=>mZ())).optional()})),ZY=D(()=>Y.object({type:Y.literal("control_response"),response:Y.union([kQ(),xQ()])})),uQ=D(()=>Y.object({type:Y.literal("control_cancel_request"),request_id:Y.string()}).describe("Cancels a currently open control request.")),YY=D(()=>Y.object({type:Y.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),pQ=D(()=>Y.object({type:Y.literal("update_environment_variables"),variables:Y.record(Y.string(),Y.string())}).describe("Updates environment variables at runtime.")),fX=D(()=>Y.union([s0(),i0(),r0(),o0(),ZY(),mZ(),uQ(),YY()])),hX=D(()=>Y.union([n0(),mZ(),ZY(),YY(),pQ()]));lQ();JZ();gQ();gZ();iQ();dQ();PZ();HZ();nQ();vY();h0();rQ();PZ();aQ();PZ();var cQ=/\u2028|\u2029/g;function mQ(Q){return Q.replace(cQ,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function QY(Q){return mQ(ZZ(Q))}var oQ="SandboxNetworkAccess";function sQ(Q){if(!Q)return;if(Q.type==="classifier")return Q.reason;switch(Q.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Q.reason}}function tQ(Q,Z,X,W){let V;try{V=Q.getActivityDescription?.(Z)??Q.getToolUseSummary?.(Z)??Q.userFacingName(Z)}catch{V=Q.name}return{tool_name:Q.name,action_description:V,tool_use_id:X,request_id:W,input:Z}}var eQ=1000;class Z6{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new HY;constructor(Q,Z){this.input=Q;this.replayUserMessages=Z;this.input=Q,this.structuredInput=this.read()}trackResolvedToolUseId(Q){if(Q.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Q.request.tool_use_id),this.resolvedToolUseIds.size>eQ){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Q){this.prependedLines.push(ZZ({type:"user",session_id:"",message:{role:"user",content:Q},parent_tool_use_id:null})+`
|
|
19
|
-
`)}async*read(){let Q="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Q=this.prependedLines.join("")+Q,this.prependedLines=[];let X=Q.indexOf(`
|
|
20
|
-
`);if(X===-1)break;let W=Q.slice(0,X);Q=Q.slice(X+1);let V=await this.processLine(W);if(V)GY("info","cli_stdin_message_parsed",{type:V.type}),yield V}}.bind(this);yield*Z();for await(let X of this.input)Q+=X,yield*Z();if(Q){let X=await this.processLine(Q);if(X)yield X}this.inputClosed=!0;for(let X of this.pendingRequests.values())X.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Q)=>Q.request).filter((Q)=>Q.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Q){this.unexpectedResponseCallback=Q}injectControlResponse(Q){let Z=Q.response?.request_id;if(!Z)return;let X=this.pendingRequests.get(Z);if(!X)return;if(this.trackResolvedToolUseId(X.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Q.response.subtype==="error")X.reject(Error(Q.response.error));else{let W=Q.response.response;if(X.schema)try{X.resolve(X.schema.parse(W))}catch(V){X.reject(V)}else X.resolve({})}}setOnControlRequestSent(Q){this.onControlRequestSent=Q}setOnControlRequestResolved(Q){this.onControlRequestResolved=Q}async processLine(Q){if(!Q)return;try{let Z=qY(WY(Q));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let W=Object.keys(Z.variables);for(let[V,H]of Object.entries(Z.variables))process.env[V]=H;I(`[structuredIO] applied update_environment_variables: ${W.join(", ")}`);return}if(Z.type==="control_response"){let W="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(W)NY(W,"completed");let V=this.pendingRequests.get(Z.response.request_id);if(!V){let K=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof K==="string"&&this.resolvedToolUseIds.has(K)){I(`Ignoring duplicate control_response for already-resolved toolUseID=${K} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(V.request),this.pendingRequests.delete(Z.response.request_id),V.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){V.reject(Error(Z.response.error));return}let H=Z.response.response;if(V.schema)try{V.resolve(V.schema.parse(H))}catch(G){V.reject(G)}else V.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){I(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)XY("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;let X=Z.message;if(X.role!=="user")XY(`Error: Expected message role 'user', got '${String(X.role)}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Q}: ${Z}`),process.exit(1)}}async write(Q){KY(QY(Q)+`
|
|
21
|
-
`)}async sendRequest(Q,Z,X,W=dZ()){let V={type:"control_request",request_id:W,request:Q};if(this.inputClosed)throw Error("Stream closed");if(X?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(V),Q.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(V);let H=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:W});let G=this.pendingRequests.get(W);if(G)this.trackResolvedToolUseId(G.request),G.reject(new VY)};if(X)X.addEventListener("abort",H,{once:!0});try{return await new Promise((G,K)=>{this.pendingRequests.set(W,{request:{type:"control_request",request_id:W,request:Q},resolve:(B)=>{G(B)},reject:K,schema:Z})})}finally{if(X)X.removeEventListener("abort",H);this.pendingRequests.delete(W)}}createCanUseTool(Q){return async(Z,X,W,V,H,G)=>{let K=G??await BY(Z,X,W,V,H);if(K.behavior==="allow"||K.behavior==="deny")return K;let B=new AbortController,z=W.abortController.signal,J=()=>B.abort();z.addEventListener("abort",J,{once:!0});try{let L=Y6(Z.name,H,X,W,K.suggestions).then((P)=>({source:"hook",decision:P})),_=dZ();Q?.(tQ(Z,X,H,_));let O=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:X,permission_suggestions:K.suggestions,blocked_path:K.blockedPath,decision_reason:sQ(K.decisionReason),tool_use_id:H,agent_id:W.agentId},uZ(),B.signal,_).then((P)=>({source:"sdk",result:P})),q=await Promise.race([L,O]);if(q.source==="hook"){if(q.decision)return O.catch(()=>{}),B.abort(),q.decision;let P=await O;return $Z(P.result,Z,X,W)}return $Z(q.result,Z,X,W)}catch(L){return $Z({behavior:"deny",message:`Tool permission request failed: ${L}`,toolUseID:H},Z,X,W)}finally{if(this.getPendingPermissionRequests().length===0)LY("running");z.removeEventListener("abort",J)}}}createHookCallback(Q,Z){return{type:"callback",timeout:Z,callback:async(X,W,V)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Q,input:X,tool_use_id:W||void 0},JY(),V)}catch(H){return console.error(`Error in hook callback ${Q}:`,H),{}}}}}async handleElicitation(Q,Z,X,W,V,H,G){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Q,message:Z,mode:V,url:H,elicitation_id:G,requested_schema:X},e0(),W)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Q)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:oQ,input:{host:Q.host},tool_use_id:dZ(),description:`Allow network connection to ${Q.host}?`},uZ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Q,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Q,message:Z},Y.object({mcp_response:Y.any()}))).mcp_response}}function XY(Q){console.error(Q),process.exit(1)}async function Y6(Q,Z,X,W,V){let G=W.getAppState().toolPermissionContext.mode,K=zY(Q,Z,X,W,G,V,W.abortController.signal);for await(let B of K)if(B.permissionRequestResult&&(B.permissionRequestResult.behavior==="allow"||B.permissionRequestResult.behavior==="deny")){let z=B.permissionRequestResult;if(z.behavior==="allow"){let J=z.updatedInput||X,L=z.updatedPermissions??[];if(L.length>0){EZ(L);let _=W.getAppState(),O=UZ(_.toolPermissionContext,L);W.setAppState((q)=>{if(q.toolPermissionContext===O)return q;return{...q,toolPermissionContext:O}})}return{behavior:"allow",updatedInput:J,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:z.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}var DY={"`":"`",'"':'"',"<":">","{":"}","[":"]","(":")","'":"'"};function Q6(Q,Z){if(!new RegExp(Z,"i").test(Q))return[];if(Q.startsWith("/"))return[];let W=[],V=null,H=0,G=(J)=>!!J&&/[\p{L}\p{N}_]/u.test(J);for(let J=0;J<Q.length;J++){let L=Q[J];if(V){if(V==="["&&L==="["){H=J;continue}if(L!==DY[V])continue;if(V==="'"&&G(Q[J+1]))continue;W.push({start:H,end:J+1}),V=null}else if(L==="<"&&J+1<Q.length&&/[a-zA-Z/]/.test(Q[J+1])||L==="'"&&!G(Q[J-1])||L!=="<"&&L!=="'"&&L in DY)V=L,H=J}let K=[],B=new RegExp(`\\b${Z}\\b`,"gi"),z=Q.matchAll(B);for(let J of z){if(J.index===void 0)continue;let L=J.index,_=L+J[0].length;if(W.some((P)=>L>=P.start&&L<P.end))continue;let O=Q[L-1],q=Q[_];if(O==="/"||O==="\\"||O==="-")continue;if(q==="/"||q==="\\"||q==="-"||q==="?")continue;if(q==="."&&G(Q[_+1]))continue;K.push({word:J[0],start:L,end:_})}return K}function WV(Q){return Q6(Q,"ultrareview")}jZ();OZ();L6();H6();N6();G6();vY();PY();K6();OZ();B6();J6();import{randomUUID as z6}from"crypto";NZ();jZ();OZ();X6();V6();import{randomUUID as W6}from"crypto";function AY(Q){let Z=Q.toLowerCase();return/\b(wtf|wth|ffs|omfg|shit(ty|tiest)?|dumbass|horrible|awful|piss(ed|ing)? off|piece of (shit|crap|junk)|what the (fuck|hell)|fucking? (broken|useless|terrible|awful|horrible)|fuck you|screw (this|you)|so frustrating|this sucks|damn it)\b/.test(Z)}function _Y(Q){let Z=Q.toLowerCase().trim();if(Z==="continue")return!0;return/\b(keep going|go on)\b/.test(Z)}function UY(Q,Z,X,W,V,H,G){let K=W6();wY(K);let B=typeof Q==="string"?Q:Q.find((O)=>O.type==="text")?.text||"";yY(B);let z=typeof Q==="string"?Q:Q.findLast((O)=>O.type==="text")?.text||"";if(z)OY("user_prompt",{prompt_length:String(z.length),prompt:jY(z),"prompt.id":K});let J=AY(B),L=_Y(B);if(g("",{is_negative:J,is_keep_going:L}),Z.length>0){let O=typeof Q==="string"?Q.trim()?[{type:"text",text:Q}]:[]:Q;return{messages:[s({content:[...O,...Z],uuid:V,imagePasteIds:X.length>0?X:void 0,permissionMode:H,isMeta:G||void 0}),...W],shouldQuery:!0}}return{messages:[s({content:Q,uuid:V,permissionMode:H,isMeta:G||void 0}),...W],shouldQuery:!0}}async function TV({input:Q,preExpansionInput:Z,mode:X,setToolJSX:W,context:V,pastedContents:H,ideSelection:G,messages:K,setUserInputOnProcessing:B,uuid:z,isAlreadyProcessing:J,querySource:L,canUseTool:_,skipSlashCommands:O,bridgeOrigin:q,isMeta:P,skipAttachments:f}){let v=typeof Q==="string"?Q:null;if(X==="prompt"&&v!==null&&!P)B?.(v);n("query_process_user_input_base_start");let F=V.getAppState(),U=await v6(Q,X,W,V,H,G,K,z,J,L,_,F.toolPermissionContext.mode,O,q,P,f,Z);if(n("query_process_user_input_base_end"),!U.shouldQuery)return U;n("query_hooks_start");let h=$Y(Q)||"";for await(let E of uY(h,F.toolPermissionContext.mode,V,V.requestPrompt)){if(E.message?.type==="progress")continue;if(E.blockingError){let c=xY(E.blockingError);return{messages:[TY(`${c}
|
|
22
|
-
|
|
23
|
-
Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:U.allowedTools}}if(E.preventContinuation){let c=E.stopReason?`Operation stopped by hook: ${E.stopReason}`:"Operation stopped by hook";return U.messages.push(s({content:c})),U.shouldQuery=!1,U}if(E.additionalContexts&&E.additionalContexts.length>0)U.messages.push(FY({type:"hook_additional_context",content:E.additionalContexts.map(EY),hookName:"UserPromptSubmit",toolUseID:`hook-${z6()}`,hookEvent:"UserPromptSubmit"}));let w=E.message;if(w&&w.type==="attachment")switch(w.attachment.type){case"hook_success":if(!w.attachment.content)break;U.messages.push({...w,attachment:{...w.attachment,content:EY(w.attachment.content)}});break;default:U.messages.push(w);break}else if(w)U.messages.push(w)}return n("query_hooks_end"),U}var lZ=1e4;function EY(Q){if(Q.length>lZ)return`${Q.substring(0,lZ)}… [output truncated - exceeded ${lZ} characters]`;return Q}async function v6(Q,Z,X,W,V,H,G,K,B,z,J,L,_,O,q,P,f){let v=null,F=[],U=[],h=Q;if(typeof Q==="string")v=Q;else if(Q.length>0){n("query_image_processing_start");let A=[];for(let N of Q)if(N.type==="image"){let u=await iZ(N);if(u.dimensions){let l=FZ(u.dimensions);if(l)U.push(l)}A.push(u.block)}else A.push(N);h=A,n("query_image_processing_end");let $=A[A.length-1];if($?.type==="text")v=$.text,F=A.slice(0,-1);else F=A}if(v===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let E=V?Object.values(V).filter(CY):[],w=E.map((A)=>A.id),c=V?await bY(V):new Map;n("query_pasted_image_processing_start");let r=await Promise.all(E.map(async(A)=>{let $={type:"image",source:{type:"base64",media_type:A.mediaType||"image/png",data:A.content}};return g("",{original_size_bytes:A.content.length}),{resized:await iZ($),originalDimensions:A.dimensions,sourcePath:A.sourcePath??c.get(A.id)}})),o=[];for(let{resized:A,originalDimensions:$,sourcePath:N}of r){if(A.dimensions){let u=FZ(A.dimensions,N);if(u)U.push(u)}else if($){let u=FZ($,N);if(u)U.push(u)}else if(N)U.push(`[Image source: ${N}]`);o.push(A.block)}n("query_pasted_image_processing_end");let C=_;if(O&&v!==null&&v.startsWith("/")){let A=IY(v),$=A?kY(A.commandName,W.options.commands):void 0;if($)if(SY($))C=!1;else{let N=`/${hY($)} isn't available over Remote Control.`;return{messages:[s({content:v,uuid:K}),fY(`<local-command-stdout>${N}</local-command-stdout>`)],shouldQuery:!1,resultText:N}}}let k=!P&&v!==null&&(Z!=="prompt"||C||!v.startsWith("/"));n("query_attachment_loading_start");let x=k?await MY(RY(v,W,H??null,[],G,z)):[];if(n("query_attachment_loading_end"),v!==null&&Z==="bash"){let{processBashCommand:A}=await import("./processBashCommand-1.1.16-89y7gsbx.mjs");return aZ(await A(v,F,x,W,X),U)}if(v!==null&&!C&&v.startsWith("/")){let{processSlashCommand:A}=await import("./processSlashCommand-1.1.16-1kjtbhx2.mjs"),$=await A(v,F,o,x,W,X,K,B,J);return aZ($,U)}if(v!==null&&Z==="prompt"){let A=v.trim(),$=x.find((N)=>N.attachment.type==="agent_mention");if($){let N=`@agent-${$.attachment.agentType}`,u=A===N,l=A.startsWith(N)&&!u;g("",{is_subagent_only:u,is_prefix:l})}}return aZ(UY(h,o,w,x,K,L,q),U)}function aZ(Q,Z){if(Z.length>0)Q.messages.push(s({content:Z.map((X)=>({type:"text",text:X})),isMeta:!0}));return Q}PY();function SV(Q){if(Q.type!=="user")return;let Z=Q.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let X="uuid"in Q&&typeof Q.uuid==="string"?Q.uuid:void 0;return{content:Array.isArray(Z)?q6(Z):Z,uuid:X}}function q6(Q){if(!Q.some(pY))return Q;return Q.map((Z)=>{if(!pY(Z))return Z;let X=Z.source,W=typeof X.mediaType==="string"&&X.mediaType?X.mediaType:cY(Z.source.data);return{...Z,source:{type:"base64",media_type:W,data:Z.source.data}}})}function pY(Q){if(Q.type!=="image"||Q.source?.type!=="base64")return!1;return!Q.source.media_type}NZ();O6();A6();j6();D6();w6();_6();import{randomUUID as y6}from"crypto";function U6(Q){return Q===gY?lY:Q}function aV(Q){let X=aY()?.outputStyle??rY,W={type:"system",subtype:"init",cwd:dY(),session_id:BZ(),tools:Q.tools.map((V)=>U6(V.name)),mcp_servers:Q.mcpClients.map((V)=>({name:V.name,status:V.type})),model:Q.model,permissionMode:Q.permissionMode,slash_commands:Q.commands.filter((V)=>V.userInvocable!==!1).map((V)=>V.name),apiKeySource:iY().source,betas:mY(),claude_code_version:"99.0.0",output_style:X,agents:Q.agents.map((V)=>V.agentType),skills:Q.skills.filter((V)=>V.userInvocable!==!1).map((V)=>V.name),plugins:Q.plugins.map((V)=>({name:V.name,path:V.path,source:V.source})),uuid:y6()};return W.fast_mode_state=nY(Q.model,Q.fastMode),W}r6();NZ();JZ();gZ();n6();a6();j0();o6();i6();import{isAbsolute as s6,resolve as t6}from"path";function e6(Q,Z,X){let W=[],V=[],H=[];for(let[G,K]of Object.entries(Q)){let B=Z[G],z=M9(K.source,X?.projectRoot);if(!B)W.push(G);else if(K.sourceIsFallback)H.push(G);else if(!$9(z,B.source))V.push({name:G,declaredSource:z,materializedSource:B.source});else H.push(G)}return{missing:W,sourceChanged:V,upToDate:H}}async function FW(Q){let Z=P9();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let X;try{X=await F9()}catch(J){e(J),X={}}let W=e6(Z,X,{projectRoot:V0()}),V=[...W.missing.map((J)=>({name:J,source:M9(Z[J].source),action:"install"})),...W.sourceChanged.map(({name:J,declaredSource:L})=>({name:J,source:L,action:"update"}))],H=[],G=[];for(let J of V){if(Q?.skip?.(J.name,J.source)){H.push(J.name);continue}if(J.action==="update"&&E9(J.source)&&!await U9(J.source.path)){I(`[reconcile] '${J.name}' declared path does not exist; keeping materialized entry`),H.push(J.name);continue}G.push(J)}if(G.length===0)return{installed:[],updated:[],failed:[],upToDate:W.upToDate,skipped:H};I(`[reconcile] ${G.length} marketplace(s): ${G.map((J)=>`${J.name}(${J.action})`).join(", ")}`);let K=[],B=[],z=[];for(let J=0;J<G.length;J++){let{name:L,source:_,action:O}=G[J];Q?.onProgress?.({type:"installing",name:L,action:O,index:J+1,total:G.length});try{let q=await b9(_);if(O==="install")K.push(L);else B.push(L);Q?.onProgress?.({type:"installed",name:L,alreadyMaterialized:q.alreadyMaterialized})}catch(q){let P=O9(q);z.push({name:L,error:P}),Q?.onProgress?.({type:"failed",name:L,error:P}),e(q)}}return{installed:K,updated:B,failed:z,upToDate:W.upToDate,skipped:H}}function M9(Q,Z){if((Q.source==="directory"||Q.source==="file")&&!s6(Q.path)){let X=Z??V0(),W=y9(X);return{...Q,path:t6(W??X,Q.path)}}return Q}
|
|
24
|
-
export{uZ as ka,$Z as la,QY as ma,oQ as na,Z6 as oa,e9 as pa,f0 as qa,VQ as ra,WQ as sa,KQ as ta,WV as ua,TV as va,SV as wa,U6 as xa,aV as ya,e6 as za,FW as Aa,b6 as Ba,M6 as Ca,I6 as Da,d6 as Ea,g6 as Fa,l6 as Ga};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{F as x0}from"./cli-1.1.16-kpxhnxpz.mjs";import{$ as d0}from"./cli-1.1.16-892pqd2m.mjs";import{fb as c0}from"./cli-1.1.16-qh481y6y.mjs";import{Sb as u0}from"./cli-1.1.16-hf9kpgyk.mjs";import{Bc as Vf,zc as y0}from"./cli-1.1.16-02ynr76s.mjs";import{Ec as $,Fc as Uf}from"./cli-1.1.16-nh0pt7e0.mjs";import{Hc as O0,Ic as Lf}from"./cli-1.1.16-vf5x3nc4.mjs";import{bd as q0,cd as o0}from"./cli-1.1.16-qy3897dn.mjs";import{Ug as m0,Vg as Rf}from"./cli-1.1.16-htk59n0r.mjs";import{$T as Yf,CG as m,DG as Q0,DS as A0,EG as P0,FG as Jf,FS as D0,HS as Xf,NT as _0,TM as R0,Ux as E,XT as C0,Yx as J0,ZT as b0,ao as p,bN as a0,bo as g0,cU as N0,co as f0,do as S0,eU as Zf,eo as F0,fo as $0,io as _,jo as a,lH as E0,mH as Qf,pN as U0,rN as n0,tG as T0,uG as l0,vG as n,xG as i0}from"./cli-1.1.16-hwr77b8n.mjs";import{B1 as o,PZ as K0,UZ as zf,W0 as e,Y0 as A,a1 as l,xZ as u}from"./cli-1.1.16-6ptafg83.mjs";import{$3 as w,Y3 as t,Z3 as q,_3 as G}from"./cli-1.1.16-72wxrwg0.mjs";import{U4 as I0,Z4 as Tf,y5 as k0,z5 as qf}from"./cli-1.1.16-49bqpfq6.mjs";import{Bea as H0,Hda as H,Hea as j,Kda as K,Kea as i,Mea as B0,Nda as w0,Pda as G0,Tda as d,dfa as X0,oga as M0,rga as Ff}from"./cli-1.1.16-jcye29qq.mjs";import{lha as W,pha as e0}from"./cli-1.1.16-r0tgqw2k.mjs";import{Hha as W0,Pha as h0,Vha as ff}from"./cli-1.1.16-way1d0g7.mjs";import{Fja as I,Ija as c}from"./cli-1.1.16-5a4a2nqs.mjs";import{Lka as s0}from"./cli-1.1.16-s404wy1x.mjs";import{Bla as t0,tla as S}from"./cli-1.1.16-b80x5mp6.mjs";import{Qna as Y0,Wpa as Z0,era as r0}from"./cli-1.1.16-eabt3s19.mjs";import{Osa as x,Tsa as B}from"./cli-1.1.16-w5ns6t4b.mjs";c();Xf();r0();import{appendFileSync as Wf}from"fs";Zf();zf();Q0();ff();Ff();c();d();i0();a();var s=x(u(),1);o();w();var v=x(u(),1);function D(){let T=v.c(1),f;if(T[0]===Symbol.for("react.memo_cache_sentinel"))f=G(A,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",q(l,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"}),"."]}),T[0]=f;else f=T[0];return f}w();function r(T){let f=s.c(13),{serverName:F,onDone:L}=T,U;if(f[0]!==L||f[1]!==F)U=function(h){I("",{choice:h});f:switch(h){case"yes":case"yes_all":{let M=(K()||{}).enabledMcpjsonServers||[];if(!M.includes(F))H("localSettings",{enabledMcpjsonServers:[...M,F]});if(h==="yes_all")H("localSettings",{enableAllProjectMcpServers:!0});L();break f}case"no":{let M=(K()||{}).disabledMcpjsonServers||[];if(!M.includes(F))H("localSettings",{disabledMcpjsonServers:[...M,F]});L()}}},f[0]=L,f[1]=F,f[2]=U;else U=f[2];let J=U,V=`New MCP server found in .mcp.json: ${F}`,Q;if(f[3]!==J)Q=()=>J("no"),f[3]=J,f[4]=Q;else Q=f[4];let z;if(f[5]===Symbol.for("react.memo_cache_sentinel"))z=q(D,{}),f[5]=z;else z=f[5];let R;if(f[6]===Symbol.for("react.memo_cache_sentinel"))R=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],f[6]=R;else R=f[6];let X;if(f[7]!==J)X=q(n,{options:R,onChange:(Z)=>J(Z),onCancel:()=>J("no")}),f[7]=J,f[8]=X;else X=f[8];let Y;if(f[9]!==V||f[10]!==Q||f[11]!==X)Y=G(_,{title:V,color:"warning",onCancel:Q,children:[z,X]}),f[9]=V,f[10]=Q,f[11]=X,f[12]=Y;else Y=f[12];return Y}o0();c();o();d();S0();l0();$0();a();g0();var L0=x(u(),1);w();function z0(T){let f=L0.c(21),{serverNames:F,onDone:L}=T,U;if(f[0]!==L||f[1]!==F)U=function(C){let y=K()||{},p0=y.enabledMcpjsonServers||[],j0=y.disabledMcpjsonServers||[],[b,N]=q0(F,(P)=>C.includes(P));if(I("",{approved:b.length,rejected:N.length}),b.length>0){let P=[...new Set([...p0,...b])];H("localSettings",{enabledMcpjsonServers:P})}if(N.length>0){let P=[...new Set([...j0,...N])];H("localSettings",{disabledMcpjsonServers:P})}L()},f[0]=L,f[1]=F,f[2]=U;else U=f[2];let J=U,V;if(f[3]!==L||f[4]!==F)V=()=>{let C=(K()||{}).disabledMcpjsonServers||[],y=[...new Set([...C,...F])];H("localSettings",{disabledMcpjsonServers:y}),L()},f[3]=L,f[4]=F,f[5]=V;else V=f[5];let Q=V,z=`${F.length} new MCP servers found in .mcp.json`,R;if(f[6]===Symbol.for("react.memo_cache_sentinel"))R=q(D,{}),f[6]=R;else R=f[6];let X;if(f[7]!==F)X=F.map(v0),f[7]=F,f[8]=X;else X=f[8];let Y;if(f[9]!==Q||f[10]!==J||f[11]!==F||f[12]!==X)Y=q(T0,{options:X,defaultValue:F,onSubmit:J,onCancel:Q,hideIndexes:!0}),f[9]=Q,f[10]=J,f[11]=F,f[12]=X,f[13]=Y;else Y=f[13];let Z;if(f[14]!==Q||f[15]!==z||f[16]!==Y)Z=G(_,{title:z,subtitle:"Select any you wish to enable.",color:"warning",onCancel:Q,hideInputGuide:!0,children:[R,Y]}),f[14]=Q,f[15]=z,f[16]=Y,f[17]=Z;else Z=f[17];let h;if(f[18]===Symbol.for("react.memo_cache_sentinel"))h=q(e,{paddingX:1,children:q(A,{dimColor:!0,italic:!0,children:G(F0,{children:[q(p,{shortcut:"Space",action:"select"}),q(p,{shortcut:"Enter",action:"confirm"}),q(f0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"})]})})}),f[18]=h;else h=f[18];let O;if(f[19]!==Z)O=G(t,{children:[Z,h]}),f[19]=Z,f[20]=O;else O=f[20];return O}function v0(T){return{label:T,value:T}}Q0();J0();a0();n0();w();async function V0(T){let{servers:f}=R0("project"),F=Object.keys(f).filter((L)=>U0(L)==="pending");if(F.length===0)return;await new Promise((L)=>{let U=()=>void L();if(F.length===1&&F[0]!==void 0){let J=F[0];T.render(q(E,{children:q(m,{children:q(r,{serverName:J,onDone:U})})}))}else T.render(q(E,{children:q(m,{children:q(z0,{serverNames:F,onDone:U})})}))})}J0();Uf();qf();Yf();X0();Vf();X0();s0();t0();class g{frameDurations=[];firstRenderTime;lastRenderTime;record(T){let f=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=f;this.lastRenderTime=f,this.frameDurations.push(T)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let T=this.lastRenderTime-this.firstRenderTime;if(T<=0)return;let F=this.frameDurations.length/(T/1000),L=this.frameDurations.slice().sort((Q,z)=>z-Q),U=Math.max(0,Math.ceil(L.length*0.01)-1),J=L[U],V=J>0?1000/J:0;return{averageFps:Math.round(F*100)/100,low1PctFps:Math.round(V*100)/100}}}Lf();Tf();Jf();Rf();Qf();d();e0();w();function hf(){j((T)=>({...T,hasCompletedOnboarding:!0,lastOnboardingVersion:"99.0.0"}))}function wf(T,f){return new Promise((F)=>{let L=(U)=>void F(U);T.render(f(L))})}async function x9(T,f,F){return Gf(T,f,{color:"error",beforeExit:F})}async function Gf(T,f,F){let{Text:L}=await import("./ink-1.1.16-e7whmjxf.mjs"),U=F?.color,J=F?.exitCode??1;T.render(U?q(L,{color:U,children:f}):q(L,{children:f})),T.unmount(),await F?.beforeExit?.(),process.exit(J)}function k(T,f,F){return wf(T,(L)=>q(E,{onChangeAppState:F?.onChangeAppState,children:q(m,{children:f(L)})}))}async function u9(T,f){T.render(f),x0(),await T.waitUntilExit(),await D0(0)}async function c9(T,f,F,L,U){if(S(!1)||process.env.IS_DEMO)return!1;W("setupScreens_start");let J=I0(),V=!1;if(y0()){let{MigrationDialog:z}=await import("./MigrationDialog-1.1.16-xf5ytnvw.mjs");await k(T,(R)=>q(z,{onDone:()=>void R()}))}let Q=i();if(J&&(!Q.theme||!Q.hasCompletedOnboarding)){V=!0;let{Onboarding:z}=await import("./Onboarding-1.1.16-mq6axxmv.mjs");await k(T,(R)=>q(z,{onDone:()=>{hf(),R()}}),{onChangeAppState:$})}if(!S(process.env.CLAUBBIT)){if(J&&!H0()){let{TrustDialog:z}=await import("./TrustDialog-1.1.16-6gnr1pgn.mjs");await k(T,(R)=>q(z,{commands:L,onDone:R}))}if(Z0(!0),W("setupScreens_after_trust_accepted"),h0(),W0(),N0(),W("setupScreens_after_growthbook_kick"),J){let{errors:z}=E0();if(z.length===0)await V0(T);W("setupScreens_after_mcp_approvals");let R=await b0();if(W("setupScreens_after_claudemd_check"),R){let X=C0(await _0(!0)),{ClaudeMdExternalIncludesDialog:Y}=await import("./ClaudeMdExternalIncludesDialog-1.1.16-9c1nen0b.mjs");await k(T,(Z)=>q(Y,{onDone:Z,isStandaloneDialog:!0,externalIncludes:X}))}}}u0(),O0(),W("setupScreens_after_env_applied"),setImmediate(()=>d0());{let z=M0();W("setupScreens_after_tryGetActiveProvider");let R=z?.transport==="anthropic"?z.apiKey?.trim():void 0;if(R){let X=k0(R),Y=B0(X);if(W("setupScreens_after_keyStatus"),Y==="new"){let{ApproveApiKey:Z}=await import("./ApproveApiKey-1.1.16-gphm4kr9.mjs");await k(T,(h)=>q(Z,{customApiKeyTruncated:X,onDone:h}),{onChangeAppState:$})}}}if(W("setupScreens_after_custom_api_key"),(f==="bypassPermissions"||F)&&!w0()){let{BypassPermissionsModeDialog:z}=await import("./BypassPermissionsModeDialog-1.1.16-z8km64vb.mjs");await k(T,(R)=>q(z,{onAccept:R}))}if(f==="auto"&&!G0()){let{AutoModeOptInDialog:z}=await import("./AutoModeOptInDialog-1.1.16-ntf57kwj.mjs");await k(T,(R)=>q(z,{onAccept:R,onDecline:()=>A0(1),declineExits:!0}))}return W("setupScreens_end"),V}function d9(T){m0();let f=0,F=P0(T);if(F.stdin)I("",{});let L=new g,U=c0();Y0(U);let J=process.env.CLAUDIN_FRAME_TIMING_LOG;return{getFpsMetrics:()=>L.getMetrics(),stats:U,renderOptions:{...F,onFrame:(V)=>{if(L.record(V.durationMs),U.observe("frame_duration_ms",V.durationMs),J&&V.phases){let Q=JSON.stringify({total:V.durationMs,...V.phases,rss:process.memoryUsage.rss(),cpu:process.cpuUsage()})+`
|
|
2
|
-
`;Wf(J,Q)}if(K0())return;for(let Q of V.flickers){if(Q.reason==="resize")continue;let z=Date.now();if(z-f<1000)I("",{desiredHeight:Q.desiredHeight,actualHeight:Q.availableHeight,reason:Q.reason});f=z}}}}}
|
|
3
|
-
export{hf as x,wf as y,x9 as z,Gf as A,k as B,u9 as C,c9 as D,d9 as E};
|