@claudiolabs/claudin 1.1.18 → 1.1.19
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.19-ap09svyk.mjs +1 -0
- package/dist/chunks/App-1.1.19-k77n3357.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.19-tcembk4t.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.19-m4nrahdt.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.19-taks8xn7.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.19-yme7vhwa.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.19-tfvmz7pe.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.19-zkq642rw.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.19-2d75g9t9.mjs +6 -0
- package/dist/chunks/Doctor-1.1.19-0h26y250.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.19-664kb4w5.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.19-yebbvfbc.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.19-69vb23j7.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.19-xd8y62c2.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.19-1629rwte.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.19-jpbdr4ek.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.19-gsjnpy2f.mjs +1 -0
- package/dist/chunks/REPL-1.1.19-pqppw8hp.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.19-gvqa5kzm.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.19-jqd47gb8.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.19-m9xykegt.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.19-4x4m771g.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.19-4ywpbgq0.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.19-znn3cy0j.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.19-z4htsqk6.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.19-fqjjhqxh.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.19-sgb7b5wy.mjs +1 -0
- package/dist/chunks/add-dir-1.1.19-y55kbgfe.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.19-cfvc6wt9.mjs +1 -0
- package/dist/chunks/agents-1.1.19-hc4xvq4r.mjs +110 -0
- package/dist/chunks/agents-1.1.19-k8kx3pej.mjs +3 -0
- package/dist/chunks/api-1.1.19-gbh2sz3k.mjs +1 -0
- package/dist/chunks/asciicast-1.1.19-6mnps2vx.mjs +1 -0
- package/dist/chunks/assistant-1.1.19-vmkknmbc.mjs +1 -0
- package/dist/chunks/auth-1.1.19-h46w2e1a.mjs +1 -0
- package/dist/chunks/auth-1.1.19-s68ybx6f.mjs +1 -0
- package/dist/chunks/autoMode-1.1.19-qpevvt9x.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.19-63yyncht.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.19-vxn3t7f7.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.19-tg6rqb4x.mjs +1 -0
- package/dist/chunks/branch-1.1.19-e4gkb2sb.mjs +4 -0
- package/dist/chunks/bridge-1.1.19-zwf5vbc6.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.19-wc27ha2s.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.19-6gq8j1d7.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.19-yzzr33jg.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.19-xdqatsm3.mjs +1 -0
- package/dist/chunks/btw-1.1.19-qkfvd0ms.mjs +1 -0
- package/dist/chunks/buddy-1.1.19-08xe7ppf.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.19-w4a9xacm.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.19-exn70h4b.mjs +4 -0
- package/dist/chunks/caches-1.1.19-d4jfvwhp.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.1.19-kxx2an1b.mjs +1 -0
- package/dist/chunks/claudemd-1.1.19-xsbhz7tg.mjs +1 -0
- package/dist/chunks/clear-1.1.19-a1znba6q.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.19-ahv4wsvx.mjs +1 -0
- package/dist/chunks/cli-1.1.19-00q9c51a.mjs +2 -0
- package/dist/chunks/cli-1.1.19-00zv4s06.mjs +2 -0
- package/dist/chunks/cli-1.1.19-0cyysv3s.mjs +2 -0
- package/dist/chunks/cli-1.1.19-0m8cwm30.mjs +2 -0
- package/dist/chunks/cli-1.1.19-0n5vcvqz.mjs +2 -0
- package/dist/chunks/cli-1.1.19-0s56yqjm.mjs +2 -0
- package/dist/chunks/cli-1.1.19-0zq6911y.mjs +2 -0
- package/dist/chunks/cli-1.1.19-10jx9qt3.mjs +2 -0
- package/dist/chunks/cli-1.1.19-126eyddd.mjs +2 -0
- package/dist/chunks/cli-1.1.19-1mqhgz4n.mjs +2 -0
- package/dist/chunks/cli-1.1.19-25szxvwt.mjs +2 -0
- package/dist/chunks/cli-1.1.19-29wgse8t.mjs +2 -0
- package/dist/chunks/cli-1.1.19-2cb4p1hk.mjs +2 -0
- package/dist/chunks/cli-1.1.19-2jkn8w89.mjs +2 -0
- package/dist/chunks/cli-1.1.19-2rbw0277.mjs +2 -0
- package/dist/chunks/cli-1.1.19-2rnpr99c.mjs +1 -0
- package/dist/chunks/cli-1.1.19-2xxxjdpp.mjs +2 -0
- package/dist/chunks/cli-1.1.19-35evt5gy.mjs +2 -0
- package/dist/chunks/cli-1.1.19-38ya9kd8.mjs +2 -0
- package/dist/chunks/cli-1.1.19-3e9krkhy.mjs +2 -0
- package/dist/chunks/cli-1.1.19-3ep6p0sf.mjs +2 -0
- package/dist/chunks/cli-1.1.19-3jjgtf8t.mjs +2 -0
- package/dist/chunks/cli-1.1.19-3q0sj4zp.mjs +3 -0
- package/dist/chunks/cli-1.1.19-3tzh16np.mjs +4 -0
- package/dist/chunks/cli-1.1.19-3wwc3q32.mjs +2 -0
- package/dist/chunks/cli-1.1.19-3xpqyp64.mjs +7 -0
- package/dist/chunks/cli-1.1.19-48a6gxnh.mjs +2 -0
- package/dist/chunks/cli-1.1.19-4ba4a8jg.mjs +9 -0
- package/dist/chunks/cli-1.1.19-4dp1vkze.mjs +2 -0
- package/dist/chunks/cli-1.1.19-4hek4kyb.mjs +2 -0
- package/dist/chunks/cli-1.1.19-4n6cth1a.mjs +2 -0
- package/dist/chunks/cli-1.1.19-53hanqff.mjs +2 -0
- package/dist/chunks/cli-1.1.19-5a8wm97m.mjs +2 -0
- package/dist/chunks/cli-1.1.19-5eb8a4wn.mjs +2 -0
- package/dist/chunks/cli-1.1.19-5kaw3aa5.mjs +2 -0
- package/dist/chunks/cli-1.1.19-5xy2q2yt.mjs +2 -0
- package/dist/chunks/cli-1.1.19-5z5xyy4e.mjs +34 -0
- package/dist/chunks/cli-1.1.19-61nar796.mjs +4 -0
- package/dist/chunks/cli-1.1.19-61tem8qm.mjs +2 -0
- package/dist/chunks/cli-1.1.19-6jvzyjts.mjs +3 -0
- package/dist/chunks/cli-1.1.19-6mq64vhw.mjs +3 -0
- package/dist/chunks/cli-1.1.19-6pp1614z.mjs +4 -0
- package/dist/chunks/cli-1.1.19-6smqyzzn.mjs +50 -0
- package/dist/chunks/cli-1.1.19-779zeaga.mjs +2 -0
- package/dist/chunks/cli-1.1.19-7djbq218.mjs +3 -0
- package/dist/chunks/cli-1.1.19-7rmk4fz4.mjs +2 -0
- package/dist/chunks/cli-1.1.19-7s1yy832.mjs +2 -0
- package/dist/chunks/cli-1.1.19-7sfdatrg.mjs +12 -0
- package/dist/chunks/cli-1.1.19-7v3pjgvw.mjs +5 -0
- package/dist/chunks/cli-1.1.19-7zdwszrb.mjs +2 -0
- package/dist/chunks/cli-1.1.19-82vfm05a.mjs +2 -0
- package/dist/chunks/cli-1.1.19-89n0ppp5.mjs +2 -0
- package/dist/chunks/cli-1.1.19-8dpft679.mjs +2 -0
- package/dist/chunks/cli-1.1.19-8zwh2ky5.mjs +2 -0
- package/dist/chunks/cli-1.1.19-93bb0mpz.mjs +2 -0
- package/dist/chunks/cli-1.1.19-946kz0h0.mjs +2 -0
- package/dist/chunks/cli-1.1.19-96rdwb5m.mjs +2 -0
- package/dist/chunks/cli-1.1.19-99dfxebe.mjs +2 -0
- package/dist/chunks/cli-1.1.19-9a8d2pxp.mjs +2 -0
- package/dist/chunks/cli-1.1.19-9dkavmxz.mjs +2 -0
- package/dist/chunks/cli-1.1.19-9kbnb3tc.mjs +2 -0
- package/dist/chunks/cli-1.1.19-9nfxc159.mjs +3 -0
- package/dist/chunks/cli-1.1.19-9vf7tt9g.mjs +2 -0
- package/dist/chunks/cli-1.1.19-a26wdy1v.mjs +24 -0
- package/dist/chunks/cli-1.1.19-a32dnq28.mjs +2 -0
- package/dist/chunks/cli-1.1.19-a5hfs685.mjs +45 -0
- package/dist/chunks/cli-1.1.19-a6e1antc.mjs +15 -0
- package/dist/chunks/cli-1.1.19-a75p9zey.mjs +2 -0
- package/dist/chunks/cli-1.1.19-ac73knxp.mjs +2 -0
- package/dist/chunks/cli-1.1.19-acez5n0m.mjs +24 -0
- package/dist/chunks/cli-1.1.19-aj7yfbb6.mjs +2 -0
- package/dist/chunks/cli-1.1.19-awkva6qc.mjs +24 -0
- package/dist/chunks/cli-1.1.19-b7fbqawk.mjs +2 -0
- package/dist/chunks/cli-1.1.19-bg1d8zv9.mjs +2 -0
- package/dist/chunks/cli-1.1.19-bmy2183w.mjs +2 -0
- package/dist/chunks/cli-1.1.19-bxvvef3z.mjs +2 -0
- package/dist/chunks/cli-1.1.19-c8xs9vjb.mjs +2 -0
- package/dist/chunks/cli-1.1.19-cb7496nq.mjs +5 -0
- package/dist/chunks/cli-1.1.19-cfgdvk8n.mjs +12 -0
- package/dist/chunks/cli-1.1.19-cjq368e9.mjs +24 -0
- package/dist/chunks/cli-1.1.19-cma77m08.mjs +2 -0
- package/dist/chunks/cli-1.1.19-cq5hegwz.mjs +6 -0
- package/dist/chunks/cli-1.1.19-csfx7v0e.mjs +2 -0
- package/dist/chunks/cli-1.1.19-d00hzr89.mjs +2 -0
- package/dist/chunks/cli-1.1.19-d1qdwt16.mjs +2 -0
- package/dist/chunks/cli-1.1.19-d2x1fpvn.mjs +3 -0
- package/dist/chunks/cli-1.1.19-d7wb13f8.mjs +2 -0
- package/dist/chunks/cli-1.1.19-dq0a7g9x.mjs +2 -0
- package/dist/chunks/cli-1.1.19-dt84yfk2.mjs +206 -0
- package/dist/chunks/cli-1.1.19-dw8jwdzq.mjs +3 -0
- package/dist/chunks/cli-1.1.19-dzbss10b.mjs +3 -0
- package/dist/chunks/cli-1.1.19-e4krk6kp.mjs +2 -0
- package/dist/chunks/cli-1.1.19-e5k83shq.mjs +17 -0
- package/dist/chunks/cli-1.1.19-ec5kkxdm.mjs +2 -0
- package/dist/chunks/cli-1.1.19-edv500a7.mjs +25 -0
- package/dist/chunks/cli-1.1.19-esk8qemt.mjs +3 -0
- package/dist/chunks/cli-1.1.19-eyhpgp73.mjs +4 -0
- package/dist/chunks/cli-1.1.19-f1g12hnb.mjs +2 -0
- package/dist/chunks/cli-1.1.19-f1vb0eyp.mjs +2 -0
- package/dist/chunks/cli-1.1.19-f6m8mqsf.mjs +2 -0
- package/dist/chunks/cli-1.1.19-fgfwa8xc.mjs +2 -0
- package/dist/chunks/cli-1.1.19-fqwvhznj.mjs +2 -0
- package/dist/chunks/cli-1.1.19-ftnf2s7k.mjs +6 -0
- package/dist/chunks/cli-1.1.19-g1bp4mfb.mjs +2 -0
- package/dist/chunks/cli-1.1.19-g70qb326.mjs +2 -0
- package/dist/chunks/cli-1.1.19-grvgykf5.mjs +58 -0
- package/dist/chunks/cli-1.1.19-gvdrxej7.mjs +6 -0
- package/dist/chunks/cli-1.1.19-gw9jb8fv.mjs +2 -0
- package/dist/chunks/cli-1.1.19-h5psdt4j.mjs +2 -0
- package/dist/chunks/cli-1.1.19-h6a1zywh.mjs +2 -0
- package/dist/chunks/cli-1.1.19-h6nqzwdx.mjs +8 -0
- package/dist/chunks/cli-1.1.19-hdmxb06r.mjs +2 -0
- package/dist/chunks/cli-1.1.19-hph7gbkv.mjs +42 -0
- package/dist/chunks/cli-1.1.19-hqbspnvc.mjs +5419 -0
- package/dist/chunks/cli-1.1.19-hr45csak.mjs +3 -0
- package/dist/chunks/cli-1.1.19-j9kyrhvv.mjs +3 -0
- package/dist/chunks/cli-1.1.19-jn7xm69z.mjs +2 -0
- package/dist/chunks/cli-1.1.19-k4gwmyp2.mjs +17 -0
- package/dist/chunks/cli-1.1.19-k5svbvzd.mjs +2 -0
- package/dist/chunks/cli-1.1.19-kc4rvbe3.mjs +18 -0
- package/dist/chunks/cli-1.1.19-kjbxevhz.mjs +2 -0
- package/dist/chunks/cli-1.1.19-kjhw0mpy.mjs +6 -0
- package/dist/chunks/cli-1.1.19-kxz28gf8.mjs +21 -0
- package/dist/chunks/cli-1.1.19-m8w4as34.mjs +16 -0
- package/dist/chunks/cli-1.1.19-m9vwd2bt.mjs +2 -0
- package/dist/chunks/cli-1.1.19-mam509fm.mjs +2 -0
- package/dist/chunks/cli-1.1.19-mn9sb0en.mjs +2 -0
- package/dist/chunks/cli-1.1.19-mqs96k5w.mjs +4 -0
- package/dist/chunks/cli-1.1.19-mrft54r6.mjs +2 -0
- package/dist/chunks/cli-1.1.19-n24w651m.mjs +3 -0
- package/dist/chunks/cli-1.1.19-n5xxe310.mjs +133 -0
- package/dist/chunks/cli-1.1.19-nb1256fg.mjs +4 -0
- package/dist/chunks/cli-1.1.19-nqznsj8y.mjs +2 -0
- package/dist/chunks/cli-1.1.19-nrpwj6d0.mjs +3 -0
- package/dist/chunks/cli-1.1.19-p1nzrjj5.mjs +25 -0
- package/dist/chunks/cli-1.1.19-p8pd4mmb.mjs +2 -0
- package/dist/chunks/cli-1.1.19-pdmgnq2h.mjs +39 -0
- package/dist/chunks/cli-1.1.19-pn1pyg9c.mjs +2 -0
- package/dist/chunks/cli-1.1.19-q2b2zy0e.mjs +2 -0
- package/dist/chunks/cli-1.1.19-q5kbe656.mjs +2 -0
- package/dist/chunks/cli-1.1.19-q7cjyz1z.mjs +2 -0
- package/dist/chunks/cli-1.1.19-qb3sg611.mjs +2 -0
- package/dist/chunks/cli-1.1.19-qvzf4mzn.mjs +2 -0
- package/dist/chunks/cli-1.1.19-qw2a73hz.mjs +2 -0
- package/dist/chunks/cli-1.1.19-r3km7nzk.mjs +2 -0
- package/dist/chunks/cli-1.1.19-r4qc48rf.mjs +2 -0
- package/dist/chunks/cli-1.1.19-rk4mqvc5.mjs +2 -0
- package/dist/chunks/cli-1.1.19-rkxy1dsw.mjs +2 -0
- package/dist/chunks/cli-1.1.19-ry92fd54.mjs +7 -0
- package/dist/chunks/cli-1.1.19-s3zhxkk4.mjs +2 -0
- package/dist/chunks/cli-1.1.19-sbrpsrtp.mjs +4 -0
- package/dist/chunks/cli-1.1.19-shgmqysk.mjs +2 -0
- package/dist/chunks/cli-1.1.19-shgqfcam.mjs +2 -0
- package/dist/chunks/cli-1.1.19-snq43w01.mjs +6 -0
- package/dist/chunks/cli-1.1.19-swfswrx1.mjs +2 -0
- package/dist/chunks/cli-1.1.19-t7yahhjv.mjs +4 -0
- package/dist/chunks/cli-1.1.19-t87ew64x.mjs +2 -0
- package/dist/chunks/cli-1.1.19-t9xz3682.mjs +20 -0
- package/dist/chunks/cli-1.1.19-tar53fbc.mjs +15 -0
- package/dist/chunks/cli-1.1.19-tefbgf43.mjs +2 -0
- package/dist/chunks/cli-1.1.19-tm3821yd.mjs +2 -0
- package/dist/chunks/cli-1.1.19-tqv8yds0.mjs +2 -0
- package/dist/chunks/cli-1.1.19-tw6zn01k.mjs +2 -0
- package/dist/chunks/cli-1.1.19-v35x8svk.mjs +15 -0
- package/dist/chunks/cli-1.1.19-v619rbr5.mjs +59 -0
- package/dist/chunks/cli-1.1.19-vbq3h0rr.mjs +2 -0
- package/dist/chunks/cli-1.1.19-vfed8ert.mjs +2 -0
- package/dist/chunks/cli-1.1.19-vgfqexte.mjs +4 -0
- package/dist/chunks/cli-1.1.19-vpabfve5.mjs +6 -0
- package/dist/chunks/cli-1.1.19-vr8jf7k6.mjs +2 -0
- package/dist/chunks/cli-1.1.19-vv09y4gs.mjs +2 -0
- package/dist/chunks/cli-1.1.19-vx87jjbs.mjs +18 -0
- package/dist/chunks/cli-1.1.19-vyqgdds6.mjs +2 -0
- package/dist/chunks/cli-1.1.19-w9tb5j4s.mjs +2 -0
- package/dist/chunks/cli-1.1.19-wrgbrnhw.mjs +9 -0
- package/dist/chunks/cli-1.1.19-wtkads83.mjs +2 -0
- package/dist/chunks/cli-1.1.19-wzm0j7nd.mjs +133 -0
- package/dist/chunks/cli-1.1.19-x1grwt9b.mjs +2 -0
- package/dist/chunks/cli-1.1.19-x522f12c.mjs +2 -0
- package/dist/chunks/cli-1.1.19-x6xnsxay.mjs +2 -0
- package/dist/chunks/cli-1.1.19-x86k1gy8.mjs +2 -0
- package/dist/chunks/cli-1.1.19-x8set46s.mjs +2 -0
- package/dist/chunks/cli-1.1.19-x9jccx03.mjs +4 -0
- package/dist/chunks/cli-1.1.19-xnas5w2g.mjs +2 -0
- package/dist/chunks/cli-1.1.19-xst2kbax.mjs +2 -0
- package/dist/chunks/cli-1.1.19-xvrj0zyj.mjs +2 -0
- package/dist/chunks/cli-1.1.19-y6p80wj3.mjs +3 -0
- package/dist/chunks/cli-1.1.19-ybe27dz9.mjs +66 -0
- package/dist/chunks/cli-1.1.19-ykspd2ax.mjs +2 -0
- package/dist/chunks/cli-1.1.19-ykvwaeht.mjs +2 -0
- package/dist/chunks/cli-1.1.19-yrjfmdg0.mjs +2 -0
- package/dist/chunks/cli-1.1.19-ys9280nx.mjs +2 -0
- package/dist/chunks/cli-1.1.19-yw33djbn.mjs +2 -0
- package/dist/chunks/cli-1.1.19-z9t89h8r.mjs +2 -0
- package/dist/chunks/cli-1.1.19-zcbfxmsm.mjs +2 -0
- package/dist/chunks/cli-1.1.19-zdb14mt2.mjs +2 -0
- package/dist/chunks/cli-1.1.19-zebz0x46.mjs +2 -0
- package/dist/chunks/cli-1.1.19-zg8m3n8n.mjs +2 -0
- package/dist/chunks/cli-1.1.19-zm9nhjfe.mjs +2 -0
- package/dist/chunks/cli-1.1.19-ztvzhgye.mjs +2 -0
- package/dist/chunks/cli-1.1.19-ztxdhvw3.mjs +2 -0
- package/dist/chunks/cli-1.1.19-zv4hb0hf.mjs +2 -0
- package/dist/chunks/client-1.1.19-rydegw5h.mjs +1 -0
- package/dist/chunks/color-1.1.19-p5265vaz.mjs +1 -0
- package/dist/chunks/compact-1.1.19-7c9mxrm8.mjs +3 -0
- package/dist/chunks/config-1.1.19-2wsgrxvp.mjs +1 -0
- package/dist/chunks/config-1.1.19-d62j9tgx.mjs +1 -0
- package/dist/chunks/constants-1.1.19-cyxrtszj.mjs +1 -0
- package/dist/chunks/context-1.1.19-mtt1t5p4.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.19-xry25hh6.mjs +1 -0
- package/dist/chunks/conversation-1.1.19-y6cahyhg.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.19-esh8mxyx.mjs +1 -0
- package/dist/chunks/copy-1.1.19-tyf8daxj.mjs +9 -0
- package/dist/chunks/cost-1.1.19-pvrac5v6.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.19-8jd28zhc.mjs +1 -0
- package/dist/chunks/createSession-1.1.19-88gw4fqs.mjs +1 -0
- package/dist/chunks/debug-1.1.19-xz3040cz.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.19-x39zq6wr.mjs +1534 -0
- package/dist/chunks/desktop-1.1.19-a40h3fh1.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.19-g0rbffr6.mjs +1 -0
- package/dist/chunks/detection-1.1.19-kzpx83pk.mjs +1 -0
- package/dist/chunks/diff-1.1.19-g76zmzb1.mjs +1 -0
- package/dist/chunks/doctor-1.1.19-03zspk7d.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.19-df18kr26.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.19-n9y2y9sm.mjs +1 -0
- package/dist/chunks/effort-1.1.19-503r3dqe.mjs +13 -0
- package/dist/chunks/engine-1.1.19-0ad61bvx.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.19-qf1fj44h.mjs +1 -0
- package/dist/chunks/envUtils-1.1.19-8en4zy66.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.19-91hc6n75.mjs +1 -0
- package/dist/chunks/environments-1.1.19-tfjfkh09.mjs +1 -0
- package/dist/chunks/errors-1.1.19-fs48fz9y.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.19-pbb6kk50.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.19-m6am19yr.mjs +1 -0
- package/dist/chunks/exit-1.1.19-mqpwd363.mjs +1 -0
- package/dist/chunks/explorer-1.1.19-epqv5k1e.mjs +1 -0
- package/dist/chunks/export-1.1.19-t8tpvak9.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.19-r9kte59s.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.19-xnxm4sqt.mjs +1 -0
- package/dist/chunks/fast-1.1.19-c4n0rr8a.mjs +1 -0
- package/dist/chunks/feedback-1.1.19-7k5rya63.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.19-5bjmyd6a.mjs +1 -0
- package/dist/chunks/git-1.1.19-1njw7gwq.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.19-k4csmysh.mjs +1 -0
- package/dist/chunks/goal-1.1.19-e08g4net.mjs +4 -0
- package/dist/chunks/growthbook-1.1.19-gw9m906y.mjs +1 -0
- package/dist/chunks/headless-1.1.19-gckc9qf1.mjs +2 -0
- package/dist/chunks/heapdump-1.1.19-cy0bczwr.mjs +6 -0
- package/dist/chunks/help-1.1.19-bbfsbt36.mjs +1 -0
- package/dist/chunks/hookChains-1.1.19-n01ssw8c.mjs +3 -0
- package/dist/chunks/hooks-1.1.19-488gkyjk.mjs +1 -0
- package/dist/chunks/hooks-1.1.19-b2x6yc66.mjs +79 -0
- package/dist/chunks/ide-1.1.19-zf9hpj81.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.19-1m270wr0.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.1.19-h4bsnn75.mjs +1 -0
- package/dist/chunks/index-1.1.19-06ccpd87.mjs +1 -0
- package/dist/chunks/index-1.1.19-263v6qeb.mjs +1 -0
- package/dist/chunks/index-1.1.19-2d944pv5.mjs +1 -0
- package/dist/chunks/index-1.1.19-7ngy3yfc.mjs +9 -0
- package/dist/chunks/index-1.1.19-apzfwtnm.mjs +1 -0
- package/dist/chunks/index-1.1.19-efdm8cp5.mjs +30 -0
- package/dist/chunks/index-1.1.19-exbss9tj.mjs +1 -0
- package/dist/chunks/index-1.1.19-f53qyqj8.mjs +2 -0
- package/dist/chunks/index-1.1.19-fae0sgd8.mjs +5 -0
- package/dist/chunks/index-1.1.19-g4rv8gvj.mjs +2 -0
- package/dist/chunks/index-1.1.19-ha3e4f70.mjs +1 -0
- package/dist/chunks/index-1.1.19-ht9s8yra.mjs +9 -0
- package/dist/chunks/index-1.1.19-j9awq55c.mjs +1 -0
- package/dist/chunks/index-1.1.19-jdvmsx9x.mjs +1 -0
- package/dist/chunks/index-1.1.19-ks262nbe.mjs +1 -0
- package/dist/chunks/index-1.1.19-mppepmze.mjs +23 -0
- package/dist/chunks/index-1.1.19-nthw1gda.mjs +1 -0
- package/dist/chunks/index-1.1.19-rs8fazy9.mjs +1 -0
- package/dist/chunks/index-1.1.19-sze2q9g5.mjs +1 -0
- package/dist/chunks/index-1.1.19-vkfm4msr.mjs +1 -0
- package/dist/chunks/index-1.1.19-vs2nyqte.mjs +1 -0
- package/dist/chunks/index-1.1.19-z8fcr2ec.mjs +1 -0
- package/dist/chunks/index-1.1.19-zy7mntdp.mjs +1 -0
- package/dist/chunks/init-1.1.19-8d53tmw6.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.19-p00njb6f.mjs +1 -0
- package/dist/chunks/ink-1.1.19-vr4g8jdg.mjs +1 -0
- package/dist/chunks/insights-1.1.19-6ag4d7qh.mjs +870 -0
- package/dist/chunks/install-1.1.19-74g8qyvc.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.19-3nj645m2.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.19-sw02tcfh.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.19-fshq5kr2.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.19-npmh2sbc.mjs +1 -0
- package/dist/chunks/keybindings-1.1.19-xy665r7j.mjs +2 -0
- package/dist/chunks/knowledge-1.1.19-e4pdfkhx.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.19-fktnyx5h.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.19-j4732ykz.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.19-99a4nfjq.mjs +1 -0
- package/dist/chunks/log-1.1.19-y3spcye6.mjs +1 -0
- package/dist/chunks/main-1.1.19-06jy3aye.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.19-19k3jdqh.mjs +1 -0
- package/dist/chunks/mcp-1.1.19-833sdc7d.mjs +17 -0
- package/dist/chunks/mcp-1.1.19-x0sfjzjt.mjs +1 -0
- package/dist/chunks/mcp-1.1.19-z5x59bca.mjs +4 -0
- package/dist/chunks/mcpb-1.1.19-bbswp853.mjs +1 -0
- package/dist/chunks/memory-1.1.19-d1ke4kha.mjs +72 -0
- package/dist/chunks/model-1.1.19-sm0ftpna.mjs +1 -0
- package/dist/chunks/model-1.1.19-v68fjcdh.mjs +2 -0
- package/dist/chunks/node-1.1.19-nj9qe6mk.mjs +12 -0
- package/dist/chunks/oauth-1.1.19-y016e4dk.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.19-njr80kze.mjs +14 -0
- package/dist/chunks/output-style-1.1.19-rj9tfcg1.mjs +1 -0
- package/dist/chunks/package-KQCMZM5L-1.1.19-4f1z2hmg.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.19-qtk1xf04.mjs +1 -0
- package/dist/chunks/parser-1.1.19-sfrfy1dm.mjs +1 -0
- package/dist/chunks/passes-1.1.19-nhfrcsrb.mjs +1 -0
- package/dist/chunks/permissions-1.1.19-bfjnq5mz.mjs +1 -0
- package/dist/chunks/permissions-1.1.19-vzcjg874.mjs +3 -0
- package/dist/chunks/plan-1.1.19-qzr3m454.mjs +1 -0
- package/dist/chunks/plist-1.1.19-19wsvxjw.mjs +1 -0
- package/dist/chunks/plugin-1.1.19-p0h9mbar.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.19-7pvtzbb1.mjs +1 -0
- package/dist/chunks/plugins-1.1.19-xrbe4y5a.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.19-wfp4vavy.mjs +2 -0
- package/dist/chunks/print-1.1.19-rzw2njmz.mjs +57 -0
- package/dist/chunks/process-1.1.19-k7h4qsz0.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.19-p1ffejkb.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.19-gy6nfdzs.mjs +9 -0
- package/dist/chunks/prompt-1.1.19-9aq4jr0c.mjs +1 -0
- package/dist/chunks/prompt-1.1.19-kkwb835d.mjs +1 -0
- package/dist/chunks/prompts-1.1.19-qq19kp1k.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.19-6n3sh10m.mjs +13 -0
- package/dist/chunks/provider-1.1.19-46f6x4wt.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.19-xxzvjngj.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.19-t3qsn8f5.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.19-j7xrp805.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.19-v2jjs3tt.mjs +26 -0
- package/dist/chunks/registry-1.1.19-7chtcyjj.mjs +1 -0
- package/dist/chunks/release-notes-1.1.19-pbbxph7n.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.19-qgvazhrx.mjs +2 -0
- package/dist/chunks/remote-env-1.1.19-4ftd6zk8.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.19-w92h77yd.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.19-e5nd7ypy.mjs +1 -0
- package/dist/chunks/rename-1.1.19-zmextayk.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.19-4vqnj6br.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.19-s2btrsvw.mjs +1 -0
- package/dist/chunks/resume-1.1.19-jn7pe69d.mjs +2 -0
- package/dist/chunks/rewind-1.1.19-rahxdd24.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.19-hjwkw6vt.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.19-hjwsqxd5.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.19-4aqxxq3m.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.19-x2n1fkv0.mjs +1 -0
- package/dist/chunks/session-1.1.19-je5j810m.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.19-t595d3pg.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.19-bng1xsd6.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.19-6agd7cfq.mjs +1 -0
- package/dist/chunks/settings-1.1.19-cpxbjwr6.mjs +1 -0
- package/dist/chunks/setup-1.1.19-11b5cjgj.mjs +12 -0
- package/dist/chunks/sinks-1.1.19-m4ce6s8b.mjs +1 -0
- package/dist/chunks/skills-1.1.19-scwgh73s.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.19-j0kpxw4n.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.19-k05gx3h1.mjs +1 -0
- package/dist/chunks/state-1.1.19-r1dtdp9g.mjs +1 -0
- package/dist/chunks/stats-1.1.19-zwc97973.mjs +6 -0
- package/dist/chunks/status-1.1.19-8m7tf3e1.mjs +1 -0
- package/dist/chunks/stickers-1.1.19-51p3tyxv.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.19-bq634ryk.mjs +1 -0
- package/dist/chunks/tasks-1.1.19-xtpcttgb.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.19-37de1g3x.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.19-0zaw34nq.mjs +1 -0
- package/dist/chunks/teleport-1.1.19-1yrce0fg.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.19-n3qgcbse.mjs +1 -0
- package/dist/chunks/theme-1.1.19-qfd87sgp.mjs +1 -0
- package/dist/chunks/thinkback-1.1.19-gss5am06.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.19-7j20scs3.mjs +1 -0
- package/dist/chunks/toolPool-1.1.19-tmtwkgcj.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.19-01pt7axx.mjs +1 -0
- package/dist/chunks/tools-1.1.19-1y8gx9m2.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.19-d1avnq7v.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.19-q8rxrnz3.mjs +69 -0
- package/dist/chunks/types-1.1.19-3n28bh66.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.19-vhhfbsfg.mjs +4 -0
- package/dist/chunks/update-1.1.19-xzwgsapn.mjs +72 -0
- package/dist/chunks/upgrade-1.1.19-5ydc5rb9.mjs +1 -0
- package/dist/chunks/upload-1.1.19-evxky0ry.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.19-6t7vnxjf.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.19-zgpfdrf1.mjs +1 -0
- package/dist/chunks/usage-1.1.19-f61vnt3h.mjs +1 -0
- package/dist/chunks/util-1.1.19-yqzpdqqe.mjs +1 -0
- package/dist/chunks/utils-1.1.19-hhq6836h.mjs +1 -0
- package/dist/chunks/vim-1.1.19-k2aqex53.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.19-e3ar1gjj.mjs +13 -0
- package/dist/chunks/watcher-1.1.19-09ahtfef.mjs +1 -0
- package/dist/chunks/wiki-1.1.19-h6tfdmnw.mjs +132 -0
- package/dist/chunks/workflows-1.1.19-kgd61yya.mjs +1 -0
- package/dist/chunks/worktree-1.1.19-8vn5pmy9.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.19-je6hz46c.mjs +1 -0
- package/dist/chunks/wrapper-1.1.19-dn4wk1mg.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.18-8r539yq1.mjs +0 -1
- package/dist/chunks/App-1.1.18-9qegazdp.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.18-75srd2ah.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.18-8s0prsvd.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.18-8908as3d.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.18-hzr5qznb.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.18-11b01q4g.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.18-gdmxhc4c.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.18-0ve87kmt.mjs +0 -6
- package/dist/chunks/Doctor-1.1.18-bm9y9hp0.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.18-s5gycf8y.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.18-ck22r980.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.18-k4rxj60y.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.18-7jtsdcvz.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.18-79c4xptb.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.18-at9smz0c.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.18-fmn6pds0.mjs +0 -1
- package/dist/chunks/REPL-1.1.18-ethctbw9.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.18-7jny2tma.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.18-4tt9s4sx.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.18-9y6kadd2.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.18-0zp920qr.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.18-ywhxqdw4.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.18-cfmzwnnw.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.18-7czxxmxn.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.18-q46q6gnr.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.18-0s9sbdx0.mjs +0 -1
- package/dist/chunks/add-dir-1.1.18-2v7nqdda.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.18-5tbxn6cp.mjs +0 -1
- package/dist/chunks/agents-1.1.18-1zj1bttk.mjs +0 -110
- package/dist/chunks/agents-1.1.18-n28gzp6b.mjs +0 -3
- package/dist/chunks/api-1.1.18-kb26phxt.mjs +0 -1
- package/dist/chunks/asciicast-1.1.18-q0418p4r.mjs +0 -1
- package/dist/chunks/assistant-1.1.18-ky0pcnme.mjs +0 -1
- package/dist/chunks/auth-1.1.18-4de9sj97.mjs +0 -1
- package/dist/chunks/auth-1.1.18-6yqhszf3.mjs +0 -1
- package/dist/chunks/autoMode-1.1.18-63jx6p2w.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.18-bk6w4529.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.18-bg5z208x.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.18-3m48d47f.mjs +0 -1
- package/dist/chunks/branch-1.1.18-sgfz4w61.mjs +0 -4
- package/dist/chunks/bridge-1.1.18-ewtwajff.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.18-6aeg22kg.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.18-2ybc4ee8.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.18-pt5dztgy.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.18-w72zdv7w.mjs +0 -1
- package/dist/chunks/btw-1.1.18-w43t3mem.mjs +0 -1
- package/dist/chunks/buddy-1.1.18-zfhza9df.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.18-ap6m4e42.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.18-gcvx2d6q.mjs +0 -4
- package/dist/chunks/caches-1.1.18-warrda1f.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.18-v3ghw0k9.mjs +0 -1
- package/dist/chunks/claudemd-1.1.18-b6tnjsjw.mjs +0 -1
- package/dist/chunks/clear-1.1.18-8abstaz1.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.18-wgv6q897.mjs +0 -1
- package/dist/chunks/cli-1.1.18-018bk764.mjs +0 -2
- package/dist/chunks/cli-1.1.18-049a81dd.mjs +0 -25
- package/dist/chunks/cli-1.1.18-0aakxjsk.mjs +0 -2
- package/dist/chunks/cli-1.1.18-0h118vrj.mjs +0 -2
- package/dist/chunks/cli-1.1.18-0tg14dph.mjs +0 -2
- package/dist/chunks/cli-1.1.18-0xknnw9q.mjs +0 -2
- package/dist/chunks/cli-1.1.18-0y6qt71a.mjs +0 -2
- package/dist/chunks/cli-1.1.18-0yhfm17h.mjs +0 -2
- package/dist/chunks/cli-1.1.18-0z5526z3.mjs +0 -4
- package/dist/chunks/cli-1.1.18-12tzkcxz.mjs +0 -2
- package/dist/chunks/cli-1.1.18-18rbpjbc.mjs +0 -2
- package/dist/chunks/cli-1.1.18-1c8pr80a.mjs +0 -2
- package/dist/chunks/cli-1.1.18-1spz0azv.mjs +0 -3
- package/dist/chunks/cli-1.1.18-1t3rb5a8.mjs +0 -2
- package/dist/chunks/cli-1.1.18-251zfmjp.mjs +0 -5
- package/dist/chunks/cli-1.1.18-27b82jjj.mjs +0 -3
- package/dist/chunks/cli-1.1.18-2ach0t0d.mjs +0 -7
- package/dist/chunks/cli-1.1.18-2gvrr93b.mjs +0 -2
- package/dist/chunks/cli-1.1.18-2k96kgmz.mjs +0 -2
- package/dist/chunks/cli-1.1.18-2qvvz2tv.mjs +0 -2
- package/dist/chunks/cli-1.1.18-2vdwwm5f.mjs +0 -3
- package/dist/chunks/cli-1.1.18-2w9274tq.mjs +0 -59
- package/dist/chunks/cli-1.1.18-2wsf8n3w.mjs +0 -3
- package/dist/chunks/cli-1.1.18-3b5j4jfq.mjs +0 -2
- package/dist/chunks/cli-1.1.18-3pn5knk8.mjs +0 -2
- package/dist/chunks/cli-1.1.18-3rm83ba2.mjs +0 -2
- package/dist/chunks/cli-1.1.18-3rxhxwbk.mjs +0 -4
- package/dist/chunks/cli-1.1.18-3s03nva1.mjs +0 -2
- package/dist/chunks/cli-1.1.18-3w57qes2.mjs +0 -2
- package/dist/chunks/cli-1.1.18-3y4pftxb.mjs +0 -206
- package/dist/chunks/cli-1.1.18-3z65nz4z.mjs +0 -2
- package/dist/chunks/cli-1.1.18-417wb57s.mjs +0 -2
- package/dist/chunks/cli-1.1.18-462kn9pt.mjs +0 -2
- package/dist/chunks/cli-1.1.18-4c3jqppx.mjs +0 -2
- package/dist/chunks/cli-1.1.18-4f2ncqzp.mjs +0 -45
- package/dist/chunks/cli-1.1.18-4h2r40da.mjs +0 -2
- package/dist/chunks/cli-1.1.18-4jy396p1.mjs +0 -6
- package/dist/chunks/cli-1.1.18-553zzrge.mjs +0 -2
- package/dist/chunks/cli-1.1.18-56vce0gb.mjs +0 -2
- package/dist/chunks/cli-1.1.18-5dw1bb8m.mjs +0 -2
- package/dist/chunks/cli-1.1.18-5fhws40c.mjs +0 -2
- package/dist/chunks/cli-1.1.18-5mr13yxz.mjs +0 -2
- package/dist/chunks/cli-1.1.18-5pa0bk59.mjs +0 -2
- package/dist/chunks/cli-1.1.18-5s8f8gd5.mjs +0 -3
- package/dist/chunks/cli-1.1.18-6hjdcw80.mjs +0 -2
- package/dist/chunks/cli-1.1.18-6nxyz9v3.mjs +0 -2
- package/dist/chunks/cli-1.1.18-6w9m5m4s.mjs +0 -2
- package/dist/chunks/cli-1.1.18-6wrbe4ft.mjs +0 -4
- package/dist/chunks/cli-1.1.18-703emt7y.mjs +0 -16
- package/dist/chunks/cli-1.1.18-70jytem3.mjs +0 -2
- package/dist/chunks/cli-1.1.18-70ktef72.mjs +0 -2
- package/dist/chunks/cli-1.1.18-71zz07m4.mjs +0 -3
- package/dist/chunks/cli-1.1.18-7g6xwfbz.mjs +0 -2
- package/dist/chunks/cli-1.1.18-7nsrr2k0.mjs +0 -2
- package/dist/chunks/cli-1.1.18-7pcfwrhj.mjs +0 -2
- package/dist/chunks/cli-1.1.18-7set7d4d.mjs +0 -3
- package/dist/chunks/cli-1.1.18-7wccrsx9.mjs +0 -2
- package/dist/chunks/cli-1.1.18-7xc4d1d9.mjs +0 -2
- package/dist/chunks/cli-1.1.18-86jznh5v.mjs +0 -2
- package/dist/chunks/cli-1.1.18-8fpwak2g.mjs +0 -4
- package/dist/chunks/cli-1.1.18-8thyc5yy.mjs +0 -2
- package/dist/chunks/cli-1.1.18-8vxrthte.mjs +0 -4
- package/dist/chunks/cli-1.1.18-8zrm4yfd.mjs +0 -2
- package/dist/chunks/cli-1.1.18-948h21gh.mjs +0 -2
- package/dist/chunks/cli-1.1.18-99wvb94x.mjs +0 -2
- package/dist/chunks/cli-1.1.18-9cpcw7fg.mjs +0 -2
- package/dist/chunks/cli-1.1.18-9jkqy8de.mjs +0 -2
- package/dist/chunks/cli-1.1.18-9zvacjd0.mjs +0 -2
- package/dist/chunks/cli-1.1.18-a888prq4.mjs +0 -6
- package/dist/chunks/cli-1.1.18-aek1gddg.mjs +0 -2
- package/dist/chunks/cli-1.1.18-af7txyky.mjs +0 -133
- package/dist/chunks/cli-1.1.18-aj93qvyc.mjs +0 -3
- package/dist/chunks/cli-1.1.18-avas0dtp.mjs +0 -2
- package/dist/chunks/cli-1.1.18-avhbxgh1.mjs +0 -2
- package/dist/chunks/cli-1.1.18-awvejq1d.mjs +0 -2
- package/dist/chunks/cli-1.1.18-b4azpwk0.mjs +0 -18
- package/dist/chunks/cli-1.1.18-b5h22srd.mjs +0 -2
- package/dist/chunks/cli-1.1.18-bfzft69m.mjs +0 -2
- package/dist/chunks/cli-1.1.18-c9h4ga5f.mjs +0 -2
- package/dist/chunks/cli-1.1.18-cahfd7zp.mjs +0 -15
- package/dist/chunks/cli-1.1.18-ccbh77pf.mjs +0 -2
- package/dist/chunks/cli-1.1.18-cd5r9mfb.mjs +0 -2
- package/dist/chunks/cli-1.1.18-cj8tr93q.mjs +0 -2
- package/dist/chunks/cli-1.1.18-cjkn7t4k.mjs +0 -2
- package/dist/chunks/cli-1.1.18-cphcr3xr.mjs +0 -15
- package/dist/chunks/cli-1.1.18-cqmjby3t.mjs +0 -24
- package/dist/chunks/cli-1.1.18-crpxak5f.mjs +0 -2
- package/dist/chunks/cli-1.1.18-cxg522yt.mjs +0 -4
- package/dist/chunks/cli-1.1.18-cy0ypdkd.mjs +0 -2
- package/dist/chunks/cli-1.1.18-dcrg5hwd.mjs +0 -2
- package/dist/chunks/cli-1.1.18-ddreb78e.mjs +0 -2
- package/dist/chunks/cli-1.1.18-dq2vate5.mjs +0 -2
- package/dist/chunks/cli-1.1.18-dvyh5qzn.mjs +0 -2
- package/dist/chunks/cli-1.1.18-dzbn08g2.mjs +0 -2
- package/dist/chunks/cli-1.1.18-e107yrwx.mjs +0 -2
- package/dist/chunks/cli-1.1.18-e8stczm5.mjs +0 -2
- package/dist/chunks/cli-1.1.18-ecds9fxm.mjs +0 -2
- package/dist/chunks/cli-1.1.18-ek85fj6n.mjs +0 -2
- package/dist/chunks/cli-1.1.18-erjpjwnr.mjs +0 -4
- package/dist/chunks/cli-1.1.18-esvp6n4e.mjs +0 -66
- package/dist/chunks/cli-1.1.18-ezpyhrzw.mjs +0 -133
- package/dist/chunks/cli-1.1.18-f2j32mha.mjs +0 -2
- package/dist/chunks/cli-1.1.18-f5ggv7be.mjs +0 -2
- package/dist/chunks/cli-1.1.18-f6m259he.mjs +0 -2
- package/dist/chunks/cli-1.1.18-f7jag2rr.mjs +0 -2
- package/dist/chunks/cli-1.1.18-f8sy5pe3.mjs +0 -3
- package/dist/chunks/cli-1.1.18-fh3h37zy.mjs +0 -8
- package/dist/chunks/cli-1.1.18-fr4nmsgv.mjs +0 -3
- package/dist/chunks/cli-1.1.18-fst0kx9m.mjs +0 -24
- package/dist/chunks/cli-1.1.18-gdvh8p4h.mjs +0 -2
- package/dist/chunks/cli-1.1.18-gnd39prj.mjs +0 -18
- package/dist/chunks/cli-1.1.18-gvzkraze.mjs +0 -2
- package/dist/chunks/cli-1.1.18-gz2c86d2.mjs +0 -2
- package/dist/chunks/cli-1.1.18-hbv881pn.mjs +0 -2
- package/dist/chunks/cli-1.1.18-heh8xz6x.mjs +0 -2
- package/dist/chunks/cli-1.1.18-hg5srcxb.mjs +0 -7
- package/dist/chunks/cli-1.1.18-hgn94jwm.mjs +0 -2
- package/dist/chunks/cli-1.1.18-hjp96a36.mjs +0 -2
- package/dist/chunks/cli-1.1.18-hphxdvpd.mjs +0 -17
- package/dist/chunks/cli-1.1.18-hsqq1hdd.mjs +0 -9
- package/dist/chunks/cli-1.1.18-j1ryg6qv.mjs +0 -2
- package/dist/chunks/cli-1.1.18-j372h4fv.mjs +0 -4
- package/dist/chunks/cli-1.1.18-j461dthr.mjs +0 -2
- package/dist/chunks/cli-1.1.18-j5zh2pdx.mjs +0 -17
- package/dist/chunks/cli-1.1.18-jcqz5j7y.mjs +0 -2
- package/dist/chunks/cli-1.1.18-jgwwkx62.mjs +0 -58
- package/dist/chunks/cli-1.1.18-jjekxppq.mjs +0 -25
- package/dist/chunks/cli-1.1.18-jp0phw3q.mjs +0 -2
- package/dist/chunks/cli-1.1.18-k05shz35.mjs +0 -2
- package/dist/chunks/cli-1.1.18-k11n6026.mjs +0 -3
- package/dist/chunks/cli-1.1.18-k1pkc44n.mjs +0 -2
- package/dist/chunks/cli-1.1.18-kj7gj6vk.mjs +0 -3
- package/dist/chunks/cli-1.1.18-kkr6w2g7.mjs +0 -2
- package/dist/chunks/cli-1.1.18-m04wmdz7.mjs +0 -9
- package/dist/chunks/cli-1.1.18-mfjtdkn6.mjs +0 -20
- package/dist/chunks/cli-1.1.18-mg0s34rf.mjs +0 -2
- package/dist/chunks/cli-1.1.18-mg7jmbh9.mjs +0 -2
- package/dist/chunks/cli-1.1.18-mhy7qzsz.mjs +0 -21
- package/dist/chunks/cli-1.1.18-mm8bkmax.mjs +0 -2
- package/dist/chunks/cli-1.1.18-mqwcfz14.mjs +0 -2
- package/dist/chunks/cli-1.1.18-mrrbn0jj.mjs +0 -6
- package/dist/chunks/cli-1.1.18-mwevzyy2.mjs +0 -2
- package/dist/chunks/cli-1.1.18-mycrby1p.mjs +0 -2
- package/dist/chunks/cli-1.1.18-mz10pywc.mjs +0 -2
- package/dist/chunks/cli-1.1.18-n05vxdaj.mjs +0 -2
- package/dist/chunks/cli-1.1.18-n7dkmrv9.mjs +0 -24
- package/dist/chunks/cli-1.1.18-ndct9t5e.mjs +0 -4
- package/dist/chunks/cli-1.1.18-npdweafk.mjs +0 -6
- package/dist/chunks/cli-1.1.18-ns45fmht.mjs +0 -2
- package/dist/chunks/cli-1.1.18-p0ey1z9w.mjs +0 -2
- package/dist/chunks/cli-1.1.18-p28wy0mz.mjs +0 -2
- package/dist/chunks/cli-1.1.18-p3yf1aq6.mjs +0 -42
- package/dist/chunks/cli-1.1.18-p5rqk1qq.mjs +0 -2
- package/dist/chunks/cli-1.1.18-pbdm30bs.mjs +0 -2
- package/dist/chunks/cli-1.1.18-psb6qqc1.mjs +0 -2
- package/dist/chunks/cli-1.1.18-pt16bxrm.mjs +0 -2
- package/dist/chunks/cli-1.1.18-pzeg2p3k.mjs +0 -2
- package/dist/chunks/cli-1.1.18-q7qp6pv5.mjs +0 -2
- package/dist/chunks/cli-1.1.18-qrz1vgy2.mjs +0 -2
- package/dist/chunks/cli-1.1.18-qs28eyy1.mjs +0 -2
- package/dist/chunks/cli-1.1.18-qykcs1fr.mjs +0 -4
- package/dist/chunks/cli-1.1.18-r50x1ezt.mjs +0 -2
- package/dist/chunks/cli-1.1.18-ra67yknr.mjs +0 -6
- package/dist/chunks/cli-1.1.18-rbfhhwym.mjs +0 -2
- package/dist/chunks/cli-1.1.18-rbkz8pj4.mjs +0 -2
- package/dist/chunks/cli-1.1.18-rnqtkprk.mjs +0 -2
- package/dist/chunks/cli-1.1.18-rp84hvn4.mjs +0 -2
- package/dist/chunks/cli-1.1.18-rykfqnyd.mjs +0 -2
- package/dist/chunks/cli-1.1.18-s5nhwqft.mjs +0 -2
- package/dist/chunks/cli-1.1.18-sdsvkqmn.mjs +0 -2
- package/dist/chunks/cli-1.1.18-sq93n51h.mjs +0 -2
- package/dist/chunks/cli-1.1.18-t526ry94.mjs +0 -34
- package/dist/chunks/cli-1.1.18-ta6r8qry.mjs +0 -2
- package/dist/chunks/cli-1.1.18-ts8ermsd.mjs +0 -2
- package/dist/chunks/cli-1.1.18-v42h6ekh.mjs +0 -15
- package/dist/chunks/cli-1.1.18-v4gc446r.mjs +0 -2
- package/dist/chunks/cli-1.1.18-v5btk93t.mjs +0 -3
- package/dist/chunks/cli-1.1.18-v75xqnbv.mjs +0 -2
- package/dist/chunks/cli-1.1.18-vgfpa3bs.mjs +0 -5
- package/dist/chunks/cli-1.1.18-vnsqk2vn.mjs +0 -2
- package/dist/chunks/cli-1.1.18-vx2rxj7b.mjs +0 -2
- package/dist/chunks/cli-1.1.18-vymgw42z.mjs +0 -2
- package/dist/chunks/cli-1.1.18-vzrv28w4.mjs +0 -24
- package/dist/chunks/cli-1.1.18-wp7r00wk.mjs +0 -2
- package/dist/chunks/cli-1.1.18-wzpxr762.mjs +0 -50
- package/dist/chunks/cli-1.1.18-x0bha3jf.mjs +0 -2
- package/dist/chunks/cli-1.1.18-x7jyxff1.mjs +0 -3
- package/dist/chunks/cli-1.1.18-x7k6y949.mjs +0 -39
- package/dist/chunks/cli-1.1.18-xfb4pete.mjs +0 -5410
- package/dist/chunks/cli-1.1.18-xpxkw4js.mjs +0 -2
- package/dist/chunks/cli-1.1.18-y0eah2b9.mjs +0 -2
- package/dist/chunks/cli-1.1.18-y89tqne6.mjs +0 -2
- package/dist/chunks/cli-1.1.18-ybazgea3.mjs +0 -1
- package/dist/chunks/cli-1.1.18-ybfayy4j.mjs +0 -2
- package/dist/chunks/cli-1.1.18-yk1f4vsx.mjs +0 -2
- package/dist/chunks/cli-1.1.18-ypcye8ae.mjs +0 -6
- package/dist/chunks/cli-1.1.18-ythtynpe.mjs +0 -12
- package/dist/chunks/cli-1.1.18-yymp5d28.mjs +0 -12
- package/dist/chunks/cli-1.1.18-yysexesh.mjs +0 -2
- package/dist/chunks/cli-1.1.18-zd969gzb.mjs +0 -2
- package/dist/chunks/cli-1.1.18-zdx4ywwf.mjs +0 -2
- package/dist/chunks/cli-1.1.18-ztyf20j1.mjs +0 -2
- package/dist/chunks/client-1.1.18-zdqzxpen.mjs +0 -1
- package/dist/chunks/color-1.1.18-qt7znj00.mjs +0 -1
- package/dist/chunks/compact-1.1.18-qev191am.mjs +0 -3
- package/dist/chunks/config-1.1.18-9kjysdvn.mjs +0 -1
- package/dist/chunks/config-1.1.18-am3webex.mjs +0 -1
- package/dist/chunks/constants-1.1.18-hdfyvthe.mjs +0 -1
- package/dist/chunks/context-1.1.18-ywdzshyf.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.18-ncf3febd.mjs +0 -1
- package/dist/chunks/conversation-1.1.18-h1q8gp2k.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.18-t0s2718z.mjs +0 -1
- package/dist/chunks/copy-1.1.18-66cbtmsa.mjs +0 -9
- package/dist/chunks/cost-1.1.18-350gegdk.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.18-vgmc8evp.mjs +0 -1
- package/dist/chunks/createSession-1.1.18-0e04rk8g.mjs +0 -1
- package/dist/chunks/debug-1.1.18-c4v63z13.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.18-jg2xdcgn.mjs +0 -1534
- package/dist/chunks/desktop-1.1.18-sghgn08z.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.18-m0xvtgqt.mjs +0 -1
- package/dist/chunks/detection-1.1.18-d7kpetjp.mjs +0 -1
- package/dist/chunks/diff-1.1.18-y9e1gbv0.mjs +0 -1
- package/dist/chunks/doctor-1.1.18-me0b6eyh.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.18-d85k2x5j.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.18-6jzg1a3e.mjs +0 -1
- package/dist/chunks/effort-1.1.18-kzqkmbjd.mjs +0 -13
- package/dist/chunks/engine-1.1.18-z5jbth81.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.18-1cqrnkp2.mjs +0 -1
- package/dist/chunks/envUtils-1.1.18-x298f5cb.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.18-6k9hzg6p.mjs +0 -1
- package/dist/chunks/environments-1.1.18-r0dv94mx.mjs +0 -1
- package/dist/chunks/errors-1.1.18-q6s6h2zs.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.18-0zc9623h.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.18-spcbfmbw.mjs +0 -1
- package/dist/chunks/exit-1.1.18-zvcsa8gc.mjs +0 -1
- package/dist/chunks/explorer-1.1.18-wf8yy5vj.mjs +0 -1
- package/dist/chunks/export-1.1.18-qeyf86rn.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.18-t0cm4v50.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.18-w6zswndv.mjs +0 -1
- package/dist/chunks/fast-1.1.18-c6bbr2sj.mjs +0 -1
- package/dist/chunks/feedback-1.1.18-8c9j05d9.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.18-mk3qv1p1.mjs +0 -1
- package/dist/chunks/git-1.1.18-716sc7rw.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.18-60dnzg1p.mjs +0 -1
- package/dist/chunks/goal-1.1.18-8em4jke5.mjs +0 -4
- package/dist/chunks/growthbook-1.1.18-b3tgw6y3.mjs +0 -1
- package/dist/chunks/headless-1.1.18-b5szxwsw.mjs +0 -2
- package/dist/chunks/heapdump-1.1.18-vjq0hc7v.mjs +0 -6
- package/dist/chunks/help-1.1.18-21j0mh6r.mjs +0 -1
- package/dist/chunks/hookChains-1.1.18-hptz3v0e.mjs +0 -3
- package/dist/chunks/hooks-1.1.18-0zec4dds.mjs +0 -1
- package/dist/chunks/hooks-1.1.18-ha1g38hn.mjs +0 -79
- package/dist/chunks/ide-1.1.18-rkvs3qqd.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.18-nakzgnn7.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.18-qxn6m4rg.mjs +0 -1
- package/dist/chunks/index-1.1.18-0ha3tnh6.mjs +0 -1
- package/dist/chunks/index-1.1.18-18y0bk36.mjs +0 -1
- package/dist/chunks/index-1.1.18-1kzcw8rj.mjs +0 -9
- package/dist/chunks/index-1.1.18-3yaj9awp.mjs +0 -1
- package/dist/chunks/index-1.1.18-427vyn1s.mjs +0 -1
- package/dist/chunks/index-1.1.18-5aebjh6r.mjs +0 -2
- package/dist/chunks/index-1.1.18-7qw763sw.mjs +0 -1
- package/dist/chunks/index-1.1.18-9p90ysn2.mjs +0 -23
- package/dist/chunks/index-1.1.18-a31cga5m.mjs +0 -1
- package/dist/chunks/index-1.1.18-awg146jw.mjs +0 -1
- package/dist/chunks/index-1.1.18-bsk8rb63.mjs +0 -1
- package/dist/chunks/index-1.1.18-cvzxd0hz.mjs +0 -1
- package/dist/chunks/index-1.1.18-ejew46p1.mjs +0 -1
- package/dist/chunks/index-1.1.18-gdwz7smf.mjs +0 -1
- package/dist/chunks/index-1.1.18-hcwn8mp8.mjs +0 -1
- package/dist/chunks/index-1.1.18-j843bxtx.mjs +0 -9
- package/dist/chunks/index-1.1.18-jhj8ae5j.mjs +0 -30
- package/dist/chunks/index-1.1.18-k9471m74.mjs +0 -1
- package/dist/chunks/index-1.1.18-kvv48kwq.mjs +0 -5
- package/dist/chunks/index-1.1.18-n6ntpnas.mjs +0 -1
- package/dist/chunks/index-1.1.18-n8a9f3dp.mjs +0 -2
- package/dist/chunks/index-1.1.18-ppwdm9bc.mjs +0 -1
- package/dist/chunks/index-1.1.18-zaqj0a20.mjs +0 -1
- package/dist/chunks/init-1.1.18-kgjtv56b.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.18-we3h7znp.mjs +0 -1
- package/dist/chunks/ink-1.1.18-s45xz0d5.mjs +0 -1
- package/dist/chunks/insights-1.1.18-qxdn050x.mjs +0 -870
- package/dist/chunks/install-1.1.18-hrtjazqa.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.18-9y1kn2dm.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.18-yfeb37pz.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.18-0s0n0snp.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.18-vsnpskhb.mjs +0 -1
- package/dist/chunks/keybindings-1.1.18-6zbse835.mjs +0 -2
- package/dist/chunks/knowledge-1.1.18-6ex2a771.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.18-8dq1wk9a.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.18-4vpps6mn.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.18-4j6dvx4m.mjs +0 -1
- package/dist/chunks/log-1.1.18-ft9dg3fj.mjs +0 -1
- package/dist/chunks/main-1.1.18-s1hnrh3q.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.18-jqjx86ng.mjs +0 -1
- package/dist/chunks/mcp-1.1.18-24906cg4.mjs +0 -1
- package/dist/chunks/mcp-1.1.18-7t3h9h66.mjs +0 -4
- package/dist/chunks/mcp-1.1.18-ast61twg.mjs +0 -17
- package/dist/chunks/mcpb-1.1.18-snfk9dz9.mjs +0 -1
- package/dist/chunks/memory-1.1.18-7k51bcr6.mjs +0 -72
- package/dist/chunks/model-1.1.18-0njn3xdn.mjs +0 -2
- package/dist/chunks/model-1.1.18-ny459y9j.mjs +0 -1
- package/dist/chunks/node-1.1.18-gk5h7jp4.mjs +0 -12
- package/dist/chunks/oauth-1.1.18-w9bt5qvg.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.18-xzt8j2wx.mjs +0 -14
- package/dist/chunks/output-style-1.1.18-q591t8v1.mjs +0 -1
- package/dist/chunks/package-KQCMZM5L-1.1.18-whakyscr.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.18-bwgbwc1r.mjs +0 -1
- package/dist/chunks/parser-1.1.18-qad863f5.mjs +0 -1
- package/dist/chunks/passes-1.1.18-t0hq8ewm.mjs +0 -1
- package/dist/chunks/permissions-1.1.18-5a7765tc.mjs +0 -1
- package/dist/chunks/permissions-1.1.18-ed8ysk2a.mjs +0 -3
- package/dist/chunks/plan-1.1.18-4hc85kck.mjs +0 -1
- package/dist/chunks/plist-1.1.18-7sdbzzm0.mjs +0 -1
- package/dist/chunks/plugin-1.1.18-9tkb7bap.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.18-j31xzm3k.mjs +0 -1
- package/dist/chunks/plugins-1.1.18-ab7msm6m.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.18-dkhj1e0v.mjs +0 -2
- package/dist/chunks/print-1.1.18-j2g7hv0n.mjs +0 -57
- package/dist/chunks/process-1.1.18-fvq9b7q3.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.18-vq69a3e4.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.18-n1yqhpgg.mjs +0 -9
- package/dist/chunks/prompt-1.1.18-acbj3trk.mjs +0 -1
- package/dist/chunks/prompt-1.1.18-wh5jv6ay.mjs +0 -1
- package/dist/chunks/prompts-1.1.18-m0az7ynn.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.18-k2shdefe.mjs +0 -13
- package/dist/chunks/provider-1.1.18-g384d5y0.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.18-sehcrk96.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.18-ge2ffym5.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.18-9dst3c2h.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.18-7t053hjx.mjs +0 -26
- package/dist/chunks/registry-1.1.18-xrd7m0b5.mjs +0 -1
- package/dist/chunks/release-notes-1.1.18-ayafp97j.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.18-hmvtf1f4.mjs +0 -2
- package/dist/chunks/remote-env-1.1.18-w9k53dqm.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.18-ex403g4q.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.18-4axy7j90.mjs +0 -1
- package/dist/chunks/rename-1.1.18-2v175525.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.18-z7ttbjsb.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.18-4z8q3518.mjs +0 -1
- package/dist/chunks/resume-1.1.18-7s9nkn6h.mjs +0 -2
- package/dist/chunks/rewind-1.1.18-wwasabaf.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.18-drrms6kn.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.18-grdmbjgn.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.18-4290hdqx.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.18-859vsbae.mjs +0 -1
- package/dist/chunks/session-1.1.18-ndwcefxm.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.18-mqhk62gm.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.18-2ypck9c4.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.18-w8jyzxb1.mjs +0 -1
- package/dist/chunks/settings-1.1.18-8tv1qyh6.mjs +0 -1
- package/dist/chunks/setup-1.1.18-frcmhac0.mjs +0 -12
- package/dist/chunks/sinks-1.1.18-zxg6qwxv.mjs +0 -1
- package/dist/chunks/skills-1.1.18-zxh8yk9d.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.18-h7ey8bj0.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.18-bws73cnz.mjs +0 -1
- package/dist/chunks/state-1.1.18-12hrspsf.mjs +0 -1
- package/dist/chunks/stats-1.1.18-kmhwdmq9.mjs +0 -6
- package/dist/chunks/status-1.1.18-4aep2t86.mjs +0 -1
- package/dist/chunks/stickers-1.1.18-20nhxd0w.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.18-a6f6xtx7.mjs +0 -1
- package/dist/chunks/tasks-1.1.18-5brzcp4c.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.18-ewst0n42.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.18-n1rgqqyr.mjs +0 -1
- package/dist/chunks/teleport-1.1.18-e63krqkp.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.18-6nf0ex7b.mjs +0 -1
- package/dist/chunks/theme-1.1.18-egp4mwdb.mjs +0 -1
- package/dist/chunks/thinkback-1.1.18-wphxbpgs.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.18-rjmn2eej.mjs +0 -1
- package/dist/chunks/toolPool-1.1.18-s1ssr2ef.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.18-c9cwkafr.mjs +0 -1
- package/dist/chunks/tools-1.1.18-1dqtpknx.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.18-3h8z5wdy.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.18-e9b2pss1.mjs +0 -69
- package/dist/chunks/types-1.1.18-31emf7xp.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.18-x96n2df3.mjs +0 -4
- package/dist/chunks/update-1.1.18-rfhbgb3x.mjs +0 -72
- package/dist/chunks/upgrade-1.1.18-5dd5b35g.mjs +0 -1
- package/dist/chunks/upload-1.1.18-6rcbt5xr.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.18-xx3jrk14.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.18-y4e042py.mjs +0 -1
- package/dist/chunks/usage-1.1.18-q3y9c6vk.mjs +0 -1
- package/dist/chunks/util-1.1.18-2vgfzdph.mjs +0 -1
- package/dist/chunks/utils-1.1.18-8tjbjr7v.mjs +0 -1
- package/dist/chunks/vim-1.1.18-44eqnfwb.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.18-c2shb8qc.mjs +0 -13
- package/dist/chunks/watcher-1.1.18-cb1x3sr6.mjs +0 -1
- package/dist/chunks/wiki-1.1.18-r1abckjp.mjs +0 -132
- package/dist/chunks/workflows-1.1.18-jtx40wvq.mjs +0 -1
- package/dist/chunks/worktree-1.1.18-ds3kez7h.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.18-2wj8e6bc.mjs +0 -1
- package/dist/chunks/wrapper-1.1.18-shbmq2kg.mjs +0 -7
- /package/dist/chunks/{cli-1.1.18-z2dx0w6b.mjs → cli-1.1.19-4tssw0qf.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.18-x9wfjwnm.mjs → cli-1.1.19-caqq41md.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.18-hvd9yyb4.mjs → cli-1.1.19-cc266ybe.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.18-tm7nmhz8.mjs → cli-1.1.19-er0hdy0x.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.18-zhq044yz.mjs → cli-1.1.19-j2p355hg.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.18-4j0hy93x.mjs → cli-1.1.19-jepkkjbh.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.18-qfz5keqx.mjs → cli-1.1.19-mnfgg84d.mjs} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{Cg as $Z,Dg as uZ,Eg as pz}from"./cli-1.1.19-mam509fm.mjs";import{Oh as HJ,Ph as Vz}from"./cli-1.1.19-946kz0h0.mjs";import{Zh as GJ,_h as Bz}from"./cli-1.1.19-swfswrx1.mjs";import{$R as eJ,$x as xQ,AB as nJ,At as Dz,BB as yz,Bk as fJ,Co as WQ,Go as uz,Ly as pQ,MA as IZ,My as AX,NA as hZ,OA as TZ,OR as nQ,PA as dJ,Pk as mZ,QA as cQ,QT as VQ,Qk as FX,RA as cJ,SR as lQ,TR as iQ,TT as KQ,Ty as dQ,Un as zQ,Uy as PX,VR as nZ,Vn as $z,WR as aQ,WT as pZ,YR as g0,ZR as rQ,aS as ZQ,ao as RQ,bS as oQ,bo as NX,cS as tQ,cy as OX,eS as OZ,fU as BQ,kk as _Z,lk as TQ,qo as XQ,ry as DQ,so as xZ,sy as UQ,tK as gQ,tk as SJ,ty as $Q,uk as IJ,uy as uQ,wt as wJ,xB as e0,yB as gJ,yy as MQ,zB as mJ,zy as EQ}from"./cli-1.1.19-hqbspnvc.mjs";import{aV as fQ,jV as jX}from"./cli-1.1.19-k4gwmyp2.mjs";import{IY as YJ,MY as qz,NY as DZ,OY as wX,nY as FZ,oY as qJ}from"./cli-1.1.19-d7wb13f8.mjs";import{$Z as c0,D0 as UZ,DZ as u0,F0 as Jz,H1 as f0,V0 as hQ,W0 as KX,a1 as b,b1 as PQ,c1 as g,d1 as JX,e0 as vZ,tZ as WJ,uZ as Wz}from"./cli-1.1.19-v619rbr5.mjs";import{c4 as p0,d4 as B,e4 as $,f4 as F0}from"./cli-1.1.19-25szxvwt.mjs";import{g4 as I0}from"./cli-1.1.19-5kaw3aa5.mjs";import{E4 as VJ,F4 as BJ,G4 as Yz}from"./cli-1.1.19-6jvzyjts.mjs";import{K7 as jQ,L7 as ZX,Q7 as JZ,Q8 as xz,T7 as QZ,l8 as JQ,v8 as QQ}from"./cli-1.1.19-m8w4as34.mjs";import{k9 as gZ,l9 as GX}from"./cli-1.1.19-kjhw0mpy.mjs";import{Lba as IQ,bfa as PZ,fca as LX,pda as LZ,wfa as HQ,x_ as v0,xda as XJ,y_ as zJ}from"./cli-1.1.19-dt84yfk2.mjs";import{hha as jZ,iha as TJ,sha as ZZ,zha as hz}from"./cli-1.1.19-nb1256fg.mjs";import{Bja as NZ,Cja as wZ,Oja as Pz,jja as RZ,lja as Rz,wja as KZ}from"./cli-1.1.19-mrft54r6.mjs";import{ala as m0,dla as ez}from"./cli-1.1.19-cq5hegwz.mjs";import{Nla as SQ,Vla as HX}from"./cli-1.1.19-5eb8a4wn.mjs";import{Vqa as kQ,yra as BX}from"./cli-1.1.19-gw9jb8fv.mjs";import{gta as w0,kta as L0}from"./cli-1.1.19-cc266ybe.mjs";function MZ(){if($0!==null)clearTimeout($0),$0=null;bZ=Date.now();for(let J of BZ)J()}function Qz(){if($0!==null)return;let J=Date.now()-bZ;if(J>=UZ){MZ();return}$0=setTimeout(MZ,UZ-J)}function lZ(){return EZ.useSyncExternalStore(s0.subscribe,s0.getSnapshot)}function TX(){return EZ.useSyncExternalStore(s0.subscribe,s0.getPresenceSnapshot)}var EZ,x0=null,BZ,$0=null,bZ=0,s0;var iZ=L0(()=>{Jz();EZ=w0(I0(),1),BZ=new Set;s0={update(J){let Z=x0;if(x0=J(Z),x0===Z)return;if(Z===null!==(x0===null))MZ();else Qz()},clear(){s0.update(()=>null)},read(){return x0},subscribe(J){return BZ.add(J),()=>{BZ.delete(J)}},getSnapshot(){return x0},getPresenceSnapshot(){return x0!==null},resetForTesting(){if($0!==null)clearTimeout($0),$0=null;x0=null,bZ=0,BZ.clear()}}});function sZ(J){let Z=HZ.c(6),{children:Q}=J,[z,X]=K0.useState(null),[W,q]=K0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(oZ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=V;else V=Z[2];let Y;if(Z[3]!==z||Z[4]!==V)Y=B(rZ.Provider,{value:X,children:B(tZ.Provider,{value:q,children:B(aZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function eZ(){return K0.useContext(aZ)}function ZJ(){return K0.useContext(oZ)}function xX(J){let Z=HZ.c(8),Q=K0.useContext(rZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}function $X(J){let Z=HZ.c(8),Q=K0.useContext(tZ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];K0.useEffect(z,X),K0.useEffect(W,q)}var HZ,K0,aZ,rZ,oZ,tZ;var JJ=L0(()=>{F0();HZ=w0(u0(),1),K0=w0(I0(),1),aZ=K0.createContext(null),rZ=K0.createContext(null),oZ=K0.createContext(null),tZ=K0.createContext(null)});function GZ(J){return J.type==="attachment"&&Xz.has(J.attachment.type)}var zz,Xz;var CZ=L0(()=>{zz=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","bagel_console","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","todo_reminder_delta","task_reconcile"],Xz=new Set(zz)});import{fileURLToPath as Hz}from"url";function QW(J){let[Z,Q]=q0.useState(null),z=q0.useRef(J);z.current=J;let X=q0.useRef(null),W=q0.useCallback(()=>{Q(null)},[]),q=q0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),V=q0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);q0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=q0.useCallback((K,F)=>{if(Q((j)=>j===null?null:j+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:V,shiftDivider:Y}}function Gz(J,Z){let Q=0,z=!1;for(let X=Z;X<J.length;X++){let W=J[X];if(W.type==="progress")continue;if(W.type==="assistant"&&!Lz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Lz(J){if(J.type!=="assistant")return!1;for(let Z of J.message.content)if(Z.type==="text"&&Z.text.trim()!=="")return!0;return!1}function zW(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||GZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=Gz(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function XW(J){let Z=a0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:V,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:j,newMessageCount:v,onPillClick:M}=J,I=F===void 0?!1:F,Z0=j===void 0?!1:j,d=v===void 0?0:v,{rows:O,columns:C}=FZ(),[_,N]=q0.useState(null),P;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))P={setStickyPrompt:N},Z[0]=P;else P=Z[0];let f=P,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??Nz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,k;if(Z[3]!==K||Z[4]!==Y)k=()=>{let h=Y?.current,z0=K?.current;if(!h||z0==null)return!1;return h.getScrollTop()+h.getPendingDelta()+h.getViewportHeight()<z0},Z[3]=K,Z[4]=Y,Z[5]=k;else k=Z[5];let H0=q0.useSyncExternalStore(E,k),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Fz,Y0),c0()){let h=Z0?null:_,z0=h!=null&&h!=="clicked"&&X==null?h:null,Q0=h!=null&&X==null,X0;if(Z[7]!==z0)X0=z0&&B(Oz,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let O0=Q0?0:1,T;if(Z[9]!==Q)T=B(yZ,{value:f,children:Q}),Z[9]=Q,Z[10]=T;else T=Z[10];let l;if(Z[11]!==X||Z[12]!==Y||Z[13]!==T||Z[14]!==O0)l=$(GJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:O0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=O0,Z[15]=l;else l=Z[15];let o;if(Z[16]!==I||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!I&&H0&&X==null&&B(wz,{count:d,onClick:M}),Z[16]=I,Z[17]=d,Z[18]=M,Z[19]=X,Z[20]=H0,Z[21]=o;else o=Z[21];let t;if(Z[22]!==W)t=W!=null&&B(b,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let S;if(Z[24]!==l||Z[25]!==o||Z[26]!==t||Z[27]!==X0)S=$(b,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[X0,l,o,t]}),Z[24]=l,Z[25]=o,Z[26]=t,Z[27]=X0,Z[28]=S;else S=Z[28];let W0,w;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(Az,{}),w=B(jz,{}),Z[29]=W0,Z[30]=w;else W0=Z[29],w=Z[30];let D;if(Z[31]!==z)D=$(b,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,w,B(b,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=D;else D=Z[32];let R;if(Z[33]!==C||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(YJ,{value:{rows:O-QJ-1,columns:C-4,scrollRef:V??null},children:$(b,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-QJ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(b,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(C)})}),B(b,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=C,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==S||Z[39]!==D||Z[40]!==R)s=$(sZ,{children:[S,D,R]}),Z[38]=S,Z[39]=D,Z[40]=R,Z[41]=s;else s=Z[41];return s}let i;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)i=$(p0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=i;else i=Z[46];return i}function Fz(){if(!c0())return;let J=WJ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Kz,()=>{J.onHyperlinkClick=void 0}}function Kz(J){if(J.startsWith("file:"))try{VJ(Hz(J))}catch{}else BJ(J)}function Nz(){}function wz(J){let Z=a0.c(10),{count:Q,onClick:z}=J,[X,W]=q0.useState(!1),q,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),V=()=>W(!1),Z[0]=q,Z[1]=V;else q=Z[0],V=Z[1];let Y=X?"userMessageBackgroundHover":"userMessageBackground",K;if(Z[2]!==Q)K=Q>0?`${Q} new ${LZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==Y||Z[5]!==K)F=$(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",v0.arrowDown," "]}),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let j;if(Z[7]!==z||Z[8]!==F)j=B(b,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(b,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=j;else j=Z[9];return j}function Oz(J){let Z=a0.c(8),{text:Q,onClick:z}=J,[X,W]=q0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",V,Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=()=>W(!0),Y=()=>W(!1),Z[0]=V,Z[1]=Y;else V=Z[0],Y=Z[1];let K;if(Z[2]!==Q)K=$(g,{color:"subtle",wrap:"truncate-end",children:[v0.pointer," ",Q]}),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=B(b,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:V,onMouseLeave:Y,children:K}),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function Az(){let J=a0.c(4),Z=eZ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(HJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0})}),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function jz(){let J=a0.c(2),Z=ZJ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var a0,q0,QJ=2,yZ;var LJ=L0(()=>{zJ();qz();JJ();qJ();Bz();Wz();f0();Yz();vZ();XJ();CZ();Vz();F0();a0=w0(u0(),1),q0=w0(I0(),1),yZ=q0.createContext({setStickyPrompt:()=>{}})});function FJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var KJ=()=>{};function NJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${KZ}`))return!1;if(_Z(Z.text,NZ)!=="completed")return!1;return _Z(Z.text,wZ)?.startsWith(wJ)??!1}function OJ(J,Z){if(!c0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(NJ(X)){let W=0;while(z<J.length&&NJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${KZ}><${NZ}>completed</${NZ}><${wZ}>${W} background commands completed</${wZ}></${KZ}>`}]}})}else Q.push(X),z++}return Q}var AJ=L0(()=>{Pz();Dz();vZ();OZ()});function jJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function PJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(jJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!jJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,V)=>q+V.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var DJ=()=>{};function UJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function MJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(UJ(z)){let X=0;while(Q<J.length&&UJ(J[Q]))X++,Q++;if(X===1)Z.push(z);else Z.push({type:"attachment",uuid:z.uuid,timestamp:z.timestamp,attachment:{type:"teammate_shutdown_batch",count:X}})}else Z.push(z),Q++}return Z}var EJ=()=>{};function Uz(J){let Z=bJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),bJ.set(J,Z);return Z}function kZ(J){if(J.type==="assistant"&&J.message.content[0]?.type==="tool_use"){let Z=J.message.content[0];return{messageId:J.message.id,toolUseId:Z.id,toolName:Z.name}}return null}function CJ(J,Z,Q=!1){if(Q)return{messages:J};let z=Uz(Z),X=new Map;for(let F of J){let j=kZ(F);if(j&&z.has(j.toolName)){let v=`${j.messageId}:${j.toolName}`,M=X.get(v)??[];M.push(F),X.set(v,M)}}let W=new Map,q=new Set;for(let[F,j]of X)if(j.length>=2){W.set(F,j);for(let v of j){let M=kZ(v);if(M)q.add(M.toolUseId)}}let V=new Map;for(let F of J)if(F.type==="user"){for(let j of F.message.content)if(j.type==="tool_result"&&q.has(j.tool_use_id))V.set(j.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let j=kZ(F);if(j){let v=`${j.messageId}:${j.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let I=M[0],Z0=[];for(let O of M){let C=O.message.content[0].id,_=V.get(C);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:j.toolName,messages:M,results:Z0,displayMessage:I,uuid:`grouped-${I.uuid}`,timestamp:I.timestamp,messageId:j.messageId};Y.push(d)}continue}}if(F.type==="user"){let v=F.message.content.filter((M)=>M.type==="tool_result");if(v.length>0){if(v.every((I)=>q.has(I.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var bJ;var vJ=L0(()=>{bJ=new WeakMap});function AZ(J){let Z=kJ.get(J);if(Z!==void 0)return Z;let Q=Mz(J).toLowerCase();return kJ.set(J,Q),Q}function Mz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=_J.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!_J.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(bz(J.toolUseResult));Z=W.join(`
|
|
2
|
+
`)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[Ez(W.input)];return[]}).join(`
|
|
3
|
+
`);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
|
|
4
|
+
`);else if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
|
|
5
|
+
`)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
|
|
6
|
+
`);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(yJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+yJ.length),z=Q.indexOf("<system-reminder>")}return Q}function Ez(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
|
|
7
|
+
`)}function bz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
|
|
8
|
+
`+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
|
|
9
|
+
`))}return Q.join(`
|
|
10
|
+
`)}var yJ="</system-reminder>",_J,kJ;var SZ=L0(()=>{OZ();_J=new Set([SJ,IJ]),kJ=new WeakMap});function RJ(J){let Z=hJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(Cz)))return null;let W=jZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=B(g,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let V;if(Z[2]!==W||Z[3]!==q)V=B(b,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function Cz(J){return J.type==="text"}var hJ;var xJ=L0(()=>{TJ();f0();F0();hJ=w0(u0(),1)});function uJ(J){let Z=$J.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(vz)))return null;let W,q,V;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=b,V=jZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=V;else W=Z[1],q=Z[2],V=Z[3];let Y;if(Z[4]!==q)Y=B(g,{dimColor:!0,children:q}),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==V||Z[8]!==Y)K=B(W,{minWidth:V,children:Y}),Z[6]=W,Z[7]=V,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function vz(J){return J.type==="text"}var $J;var pJ=L0(()=>{TJ();f0();F0();$J=w0(u0(),1)});function aJ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if(IZ(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0],V=q?.type==="tool_use"?q.input:void 0;if(IZ(W.toolName,V,Q).isCollapsible)continue}return!0}return!1}function _z(J){let Z=lJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:j,onOpenRateLimitOptions:v,lastThinkingBlockId:M,latestBashOutputUUID:I,columns:Z0,isLoading:d,lookups:O}=J,C=F==="transcript",_=Q.type==="grouped_tool_use",N=Q.type==="collapsed_read_search",P;if(Z[0]!==X||Z[1]!==Y||Z[2]!==N||Z[3]!==d||Z[4]!==Q)P=N&&(TZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=N,Z[3]=d,Z[4]=Q,Z[5]=P;else P=Z[5];let f=P,J0;if(Z[6]!==N||Z[7]!==_||Z[8]!==Q)J0=_?Q.displayMessage:N?dJ(Q):Q,Z[6]=N,Z[7]=_,Z[8]=Q,Z[9]=J0;else J0=Z[9];let E=J0,k;if(Z[10]!==N||Z[11]!==_||Z[12]!==O||Z[13]!==Q)k=_||N?[]:ZQ(Q,O),Z[10]=N,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=k;else k=Z[14];let H0=k,Y0;if(Z[15]!==Y||Z[16]!==N||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let S=_||N?fJ:eJ(Q,O);Y0=tJ(Q,K,Y,S,F,O),Z[15]=Y,Z[16]=N,Z[17]=_,Z[18]=O,Z[19]=Q,Z[20]=F,Z[21]=K,Z[22]=Y0}else Y0=Z[22];let i=Y0,h=!1;if(j)if(_){let S;if(Z[23]!==Y||Z[24]!==Q.messages){let W0;if(Z[26]!==Y)W0=(w)=>{let D=w.message.content[0];return D?.type==="tool_use"&&Y.has(D.id)},Z[26]=Y,Z[27]=W0;else W0=Z[27];S=Q.messages.some(W0),Z[23]=Y,Z[24]=Q.messages,Z[25]=S}else S=Z[25];h=S}else if(N){let S;if(Z[28]!==Y||Z[29]!==Q)S=TZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=S;else S=Z[30];h=S}else{let S;if(Z[31]!==Y||Z[32]!==Q){let W0=g0(Q);S=!W0||Y.has(W0),Z[31]=Y,Z[32]=Q,Z[33]=S}else S=Z[33];h=S}let z0;if(Z[34]!==E||Z[35]!==C)z0=C&&E.type==="assistant"&&E.message.content.some(kz)&&(E.timestamp||E.message.model),Z[34]=E,Z[35]=C,Z[36]=z0;else z0=Z[36];let Q0=z0,X0=!Q0,O0=Q0?void 0:Z0,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==f||Z[40]!==i||Z[41]!==C||Z[42]!==z||Z[43]!==M||Z[44]!==I||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==X0||Z[51]!==O0||Z[52]!==W||Z[53]!==V)T=B(nJ,{message:Q,lookups:O,addMargin:X0,containerWidth:O0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:C,isStatic:i,onOpenRateLimitOptions:v,isActiveCollapsedGroup:f,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:I}),Z[37]=q,Z[38]=Y,Z[39]=f,Z[40]=i,Z[41]=C,Z[42]=z,Z[43]=M,Z[44]=I,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=X0,Z[51]=O0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let l=T;if(!Q0){let S;if(Z[55]!==l)S=B(e0,{children:l}),Z[55]=l,Z[56]=S;else S=Z[56];return S}let o;if(Z[57]!==E||Z[58]!==C)o=$(b,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(uJ,{message:E,isTranscriptMode:C}),B(RJ,{message:E,isTranscriptMode:C})]}),Z[57]=E,Z[58]=C,Z[59]=o;else o=Z[59];let t;if(Z[60]!==Z0||Z[61]!==l||Z[62]!==o)t=B(e0,{children:$(b,{width:Z0,flexDirection:"column",children:[o,l]})}),Z[60]=Z0,Z[61]=l,Z[62]=o,Z[63]=t;else t=Z[63];return t}function kz(J){return J.type==="text"}function Sz(J,Z){if(J.type==="grouped_tool_use")return J.messages.some((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).some((X)=>Z.has(X));let Q=g0(J);return!!Q&&Z.has(Q)}function Iz(J,Z){if(J.type==="grouped_tool_use")return J.messages.every((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return hZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=g0(J);return!Q||Z.has(Q)}function Tz(J,Z){if(J.message!==Z.message)return!1;if(J.screen!==Z.screen)return!1;if(J.verbose!==Z.verbose)return!1;if(J.message.type==="collapsed_read_search"&&Z.screen!=="transcript")return!1;if(J.columns!==Z.columns)return!1;let Q=J.latestBashOutputUUID===J.message.uuid,z=Z.latestBashOutputUUID===Z.message.uuid;if(Q!==z)return!1;if(J.lastThinkingBlockId!==Z.lastThinkingBlockId&&mJ(Z.message))return!1;let X=Sz(J.message,J.streamingToolUseIDs),W=Iz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var lJ,iJ,rJ;var oJ=L0(()=>{f0();cJ();OZ();yz();xJ();sJ();pJ();gJ();F0();lJ=w0(u0(),1),iJ=w0(I0(),1);rJ=iJ.memo(_z,Tz)});import{relative as fz}from"path";function qQ(J){return iz.filter((Z)=>Z.isActive(J))}var dz,cz,gz,mz,nz,lz,iz;var YQ=L0(()=>{f0();BQ();zJ();Rz();hz();xz();pz();uz();$z();F0();dz={id:"large-memory-files",type:"warning",isActive:(J)=>pZ(J.memoryFiles).length>0,render:(J)=>{let Z=pZ(J.memoryFiles);return B(p0,{children:Z.map((Q)=>{let z=Q.path.startsWith(RZ())?fz(RZ(),Q.path):Q.path;return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",ZZ(Q.content.length)," chars >"," ",ZZ(VQ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},cz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=JZ();return QQ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=JZ();return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},gz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return!!JQ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},mz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return $(b,{flexDirection:"column",marginTop:1,children:[$(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),$(b,{flexDirection:"column",marginLeft:3,children:[$(g,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]}),$(g,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]})]})]})}},nz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return uZ(J.agentDefinitions)>$Z},render:(J)=>{let Z=uZ(J.agentDefinitions);return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",ZZ(Z)," tokens >"," ",ZZ($Z),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},lz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!XQ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=xZ();return Q!==null&&!zQ(Q)},render:()=>{let J=xZ(),Z=WQ(J);return $(b,{flexDirection:"row",gap:1,marginLeft:1,children:[B(g,{color:"ide",children:v0.arrowUp}),$(g,{children:["Install the ",B(g,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",B(g,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},iz=[dz,nz,cz,gz,mz,lz]});async function az(){if(zZ)return zZ;return zZ=KQ().then((J)=>{XZ=J}).finally(()=>{zZ=null}),zZ}function LQ(J){let Z=GQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=r0.useState(XZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(XZ.length>0){X(XZ);return}az().then(()=>{X(XZ)})},Z[0]=W;else W=Z[0];r0.useEffect(W,[W]);let V={config:PZ(),agentDefinitions:Q,memoryFiles:z},Y=qQ(V);if(Y.length===0)return null;let K=b,F="column",j=1,v=Y.map((I)=>B(r0.Fragment,{children:I.render(V)},I.id)),M;if(Z[1]!==K||Z[2]!==v)M=B(K,{flexDirection:F,paddingLeft:j,children:v}),Z[1]=K,Z[2]=v,Z[3]=M;else M=Z[3];return M}var GQ,r0,XZ,zZ=null;var FQ=L0(()=>{f0();BQ();HQ();YQ();F0();GQ=w0(u0(),1),r0=w0(I0(),1),XZ=[]});function NQ(J,Z,Q){let z=m.useRef(new Map),X=m.useRef(0),W=m.useRef(0),q=m.useRef({arr:new Float64Array(0),version:-1,n:-1}),V=m.useRef(new Map),Y=m.useRef(new Map),K=m.useRef(Q),F=m.useRef(!1),j=m.useRef(null),v=m.useRef(0);if(K.current!==Q){let w=K.current/Q;K.current=Q;for(let[D,R]of z.current)z.current.set(D,Math.max(1,Math.round(R*w)));X.current++,F.current=!0,v.current=2}let M=v.current>0?j.current:null,I=m.useRef(0),Z0=m.useRef(null),d=m.useCallback((w)=>J.current?.subscribe(w)??sz,[J]);m.useSyncExternalStore(d,()=>{let w=J.current;if(!w)return NaN;let D=w.getScrollTop()+w.getPendingDelta(),R=Math.floor(D/tz);return w.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,C=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,N=J.current?.isSticky()??!0;m.useMemo(()=>{let w=new Set(Z),D=!1;for(let R of z.current.keys())if(!w.has(R))z.current.delete(R),D=!0;for(let R of Y.current.keys())if(!w.has(R))Y.current.delete(R);if(D)X.current++},[Z]);let P=Z.length;if(q.current.version!==X.current||q.current.n!==P){let w=q.current.arr.length>=P+1?q.current.arr:new Float64Array(P+1);w[0]=0;for(let D=0;D<P;D++)w[D+1]=w[D]+(z.current.get(Z[D])??rz);q.current={arr:w,version:X.current,n:P}}let f=q.current.arr,J0=f[P],E,k;if(M)[E,k]=M,E=Math.min(E,P),k=Math.min(k,P);else if(_===0||O<0)E=Math.max(0,P-oz),k=P;else{if(N){let V0=_+o0;E=P;while(E>0&&J0-f[E-1]<V0)E--;k=P}else{let V0=I.current,G0=_*3,M0=Math.min(O,O+C),n0=Math.max(O,O+C),y0=n0-M0,P0=y0>G0?C<0?n0-G0:M0:M0,T0=P0+Math.min(y0,G0),l0=Math.max(0,P0-V0),h0=T0-V0,b0=l0-o0;{let H=0,L=P;while(H<L){let A=H+L>>1;if(f[A+1]<=b0)H=A+1;else L=A}E=H}{let H=j.current;if(H&&H[0]<E)for(let L=H[0];L<Math.min(E,H[1]);L++){let A=Z[L];if(V.current.has(A)&&!z.current.has(A)){E=L;break}}}let i0=_+2*o0,t0=Math.min(P,E+WZ),_0=0;k=E;while(k<t0&&(_0<i0||f[k]<h0+_+o0))_0+=z.current.get(Z[k])??fZ,k++}let w=_+2*o0,D=Math.max(0,k-WZ),R=0;for(let V0=E;V0<k;V0++)R+=z.current.get(Z[V0])??fZ;while(E>D&&R<w)E--,R+=z.current.get(Z[E])??fZ;let s=j.current,A0=Math.abs(O-W.current)+Math.abs(C);if(s&&A0>_*2){let[V0,G0]=s;if(E<V0-qZ)E=V0-qZ;if(k>G0+qZ)k=G0+qZ;if(E>k)k=Math.min(E+qZ,P)}W.current=O}if(v.current>0)v.current--;else j.current=[E,k];let H0=m.useDeferredValue(E),Y0=m.useDeferredValue(k),i=E<H0?H0:E,h=k>Y0?Y0:k;if(i>h||N)i=E,h=k;if(C>0)h=k;if(h-i>WZ){let w=(f[i]+f[h])/2;if(O-I.current<w)h=i+WZ;else i=h-WZ}let z0=I.current,Q0=f[i],X0=i===0?0:Q0+z0,O0=h===P?1/0:Math.max(Q0,f[h]-_)+z0;m.useLayoutEffect(()=>{if(N)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(X0,O0)}),m.useLayoutEffect(()=>{let w=Z0.current?.yogaNode;if(w&&w.getComputedWidth()>0)I.current=w.getComputedTop();if(F.current){F.current=!1;return}let D=!1;for(let[R,s]of V.current){let A0=s.yogaNode;if(!A0)continue;let V0=A0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),D=!0}else if(A0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),D=!0}if(D)X.current++});let T=m.useCallback((w)=>{let D=Y.current.get(w);if(!D)D=(R)=>{if(R)V.current.set(w,R);else{let s=V.current.get(w)?.yogaNode;if(s&&!F.current){let A0=s.getComputedHeight();if((A0>0||s.getComputedWidth()>0)&&z.current.get(w)!==A0)z.current.set(w,A0),X.current++}V.current.delete(w)}},Y.current.set(w,D);return D},[]),l=m.useCallback((w)=>{let D=V.current.get(Z[w])?.yogaNode;if(!D||D.getComputedWidth()===0)return-1;return D.getComputedTop()},[Z]),o=m.useCallback((w)=>V.current.get(Z[w])??null,[Z]),t=m.useCallback((w)=>z.current.get(Z[w]),[Z]),S=m.useCallback((w)=>{let D=q.current;if(w<0||w>=D.n)return;J.current?.scrollTo(D.arr[w]+I.current)},[J]),W0=J0-f[h];return{range:[i,h],topSpacer:Q0,bottomSpacer:W0,measureRef:T,spacerRef:Z0,offsets:f,getItemTop:l,getItemElement:o,getItemHeight:t,scrollToIndex:S}}var m,rz=3,o0=80,oz=30,tz,fZ=1,WZ=300,qZ=25,sz=()=>{};var wQ=L0(()=>{m=w0(I0(),1),tz=o0>>1});function QX(J){let Z=OQ.get(J);if(Z!==void 0)return Z;let Q=AZ(J);return OQ.set(J,Q),Q}function XX(J){let Z=AQ.get(J);if(Z!==void 0)return Z;let Q=WX(J);return AQ.set(J,Q),Q}function WX(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
|
|
11
|
+
`)}if(Z===null)return null;let Q=MQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function qX(J){let Z=bQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:V,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:j,renderItem:v}=J,M;if(Z[0]!==Q||Z[1]!==W)M=W(Q),Z[0]=Q,Z[1]=W,Z[2]=M;else M=Z[2];let I=q?"userMessageBackgroundHover":void 0,Z0=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(J0)=>K(z,J0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let C;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==j)C=Y?()=>j(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=j,Z[14]=C;else C=Z[14];let _=V&&!q?"text":void 0,N;if(Z[15]!==X||Z[16]!==z||Z[17]!==v)N=v(z,X),Z[15]=X,Z[16]=z,Z[17]=v,Z[18]=N;else N=Z[18];let P;if(Z[19]!==_||Z[20]!==N)P=B(PQ.Provider,{value:_,children:N}),Z[19]=_,Z[20]=N,Z[21]=P;else P=Z[21];let f;if(Z[22]!==M||Z[23]!==I||Z[24]!==Z0||Z[25]!==d||Z[26]!==O||Z[27]!==C||Z[28]!==P)f=B(b,{ref:M,flexDirection:"column",backgroundColor:I,paddingBottom:Z0,onClick:d,onMouseEnter:O,onMouseLeave:C,children:P}),Z[22]=M,Z[23]=I,Z[24]=Z0,Z[25]=d,Z[26]=O,Z[27]=C,Z[28]=P,Z[29]=f;else f=Z[29];return f}function CQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=QX,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:j,setCursor:v,jumpRef:M,onSearchMatchesChange:I,scanElement:Z0,setPositions:d}){let O=y.useRef([]),C=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==C.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));C.current=J,_.current=z;let N=O.current,{range:P,topSpacer:f,bottomSpacer:J0,measureRef:E,spacerRef:k,offsets:H0,getItemTop:Y0,getItemElement:i,getItemHeight:h,scrollToIndex:z0}=NQ(Z,N,Q),[Q0,X0]=P,O0=y.useCallback((H)=>{if(h(H)===0)return!1;return DQ(J[H])},[h,J]);y.useImperativeHandle(j,()=>{let H=(u)=>v?.({uuid:u.uuid,msgType:u.type,expanded:!1,toolName:UQ(u)?.name}),L=F??-1,A=(u,n,r=O0)=>{for(let c=u;c>=0&&c<J.length;c+=n)if(r(c))return H(J[c]),!0;return!1},x=(u)=>O0(u)&&J[u].type==="user";return{enterCursor:()=>A(J.length-1,-1,x),navigatePrev:()=>A(L-1,-1),navigateNext:()=>{if(A(L+1,1))return;Z.current?.scrollToBottom(),v?.(null)},navigatePrevUser:()=>A(L-1,-1,x),navigateNextUser:()=>A(L+1,1,x),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>L>=0?J[L]??null:null}},[J,F,v,O0]);let T=y.useRef({offsets:H0,start:Q0,getItemElement:i,getItemTop:Y0,messages:J,scrollToIndex:z0});T.current={offsets:H0,start:Q0,getItemElement:i,getItemTop:Y0,messages:J,scrollToIndex:z0},y.useEffect(()=>{if(F===void 0)return;let H=T.current,L=H.getItemElement(F);if(L)Z.current?.scrollToElement(L,1);else H.scrollToIndex(F)},[F,Z]);let l=y.useRef(null),o=y.useRef({msgIdx:-1,positions:[]}),t=y.useRef(-1),S=y.useRef(0),W0=y.useRef(0),w=y.useRef(()=>{}),D=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),A0=y.useRef(!1);function V0(H){let L=T.current.getItemTop(H);return Math.max(0,L-dZ)}function G0(H){let L=Z.current,{msgIdx:A,positions:x}=o.current;if(!L||x.length===0||A<0){d?.(null);return}let u=Math.max(0,Math.min(H,x.length-1)),n=x[u],r=T.current.getItemTop(A),c=L.getViewportTop(),e=r-L.getScrollTop(),R0=L.getViewportHeight(),j0=c+e+n.row;if(j0<c||j0>=c+R0)L.scrollTo(Math.max(0,r+n.row-dZ)),e=r-L.getScrollTop(),j0=c+e+n.row;d?.({positions:x,rowOffset:c+e,currentIdx:u});let E0=R.current,D0=E0.prefixSum.at(-1)??0,U0=(E0.prefixSum[E0.ptr]??0)+u+1;I?.(D0,U0),m0(`highlight(i=${A}, ord=${u}/${x.length}): pos={row:${n.row},col:${n.col}} lo=${e} screenRow=${j0} badge=${U0}/${D0}`)}D.current=G0;let[M0,n0]=y.useState(0),y0=y.useCallback(()=>n0((H)=>H+1),[]);y.useEffect(()=>{let H=l.current;if(!H)return;let{idx:L,wantLast:A,tries:x}=H,u=Z.current;if(!u)return;let{getItemElement:n,getItemTop:r,scrollToIndex:c}=T.current,e=n(L),R0=e?.yogaNode?.getComputedHeight()??0;if(!e||R0===0){if(x>1){l.current=null,m0(`seek(i=${L}): no mount after scrollToIndex, skip`),w.current(A?-1:1);return}l.current={idx:L,wantLast:A,tries:x+1},c(L),y0();return}l.current=null,u.scrollTo(Math.max(0,r(L)-dZ));let j0=Z0?.(e)??[];if(o.current={msgIdx:L,positions:j0},m0(`seek(i=${L} t=${x}): ${j0.length} positions`),j0.length===0){if(++S.current>20){S.current=0;return}w.current(A?-1:1);return}S.current=0;let E0=A?j0.length-1:0;R.current.screenOrd=E0,t.current=-1,D.current(E0);let D0=W0.current;if(D0)W0.current=0,w.current(D0)},[M0]);function P0(H,L){let A=Z.current;if(!A)return;let x=T.current,{getItemElement:u,scrollToIndex:n}=x;if(H<0||H>=x.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},l.current={idx:H,wantLast:L,tries:0};let r=u(H),c=r?.yogaNode?.getComputedHeight()??0;if(r&&c>0)A.scrollTo(V0(H));else n(H);y0()}function T0(H){let L=R.current,{matches:A,prefixSum:x}=L,u=x.at(-1)??0;if(A.length===0)return;if(l.current){W0.current=H;return}if(t.current<0)t.current=L.ptr;let{positions:n}=o.current,r=L.screenOrd+H;if(r>=0&&r<n.length){L.screenOrd=r,G0(r),t.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===t.current){d?.(null),t.current=-1,m0(`step: wraparound at ptr=${c}, all ${A.length} msgs phantoms`);return}L.ptr=c,L.screenOrd=0,P0(A[c],H<0);let e=H<0?x[c+1]??u:x[c]+1;I?.(u,e)}w.current=T0,y.useImperativeHandle(M,()=>({jumpToIndex:(H)=>{let L=Z.current;if(L)L.scrollTo(V0(H))},setSearchQuery:(H)=>{l.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1,d?.(null);let L=H.toLowerCase(),A=[],x=[0];if(L){let D0=T.current.messages;for(let U0=0;U0<D0.length;U0++){let k0=Y(D0[U0]),G=k0.indexOf(L),U=0;while(G>=0)U++,G=k0.indexOf(L,G+L.length);if(U>0)A.push(U0),x.push(x.at(-1)+U)}}let u=x.at(-1),n=0,r=Z.current,{offsets:c,start:e,getItemTop:R0}=T.current,j0=R0(e),E0=j0>=0?j0-c[e]:0;if(A.length>0&&r){let D0=s.current>=0?s.current:r.getScrollTop(),U0=1/0;for(let k0=0;k0<A.length;k0++){let G=Math.abs(E0+c[A[k0]]-D0);if(G<=U0)U0=G,n=k0}m0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${D0} origin=${E0}`)}if(R.current={matches:A,ptr:n,screenOrd:0,prefixSum:x},A.length>0)P0(A[n],!0);else if(s.current>=0&&r)r.scrollTo(s.current);I?.(u,A.length>0?x[n+1]??u:0)},nextMatch:()=>T0(1),prevMatch:()=>T0(-1),setAnchor:()=>{let H=Z.current;if(H)s.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),l.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1},warmSearchIndex:async()=>{if(A0.current)return 0;let H=T.current.messages,L=500,A=0,x=performance.now();for(let n=0;n<H.length;n+=L){await jQ(0);let r=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-r}let u=Math.round(performance.now()-x);return m0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${u}ms chunks=${Math.ceil(H.length/L)}`),A0.current=!0,Math.round(A)}}),[Z]);let[l0,h0]=y.useState(null),b0=y.useRef({onItemClick:W,setHoveredKey:h0});b0.current={onItemClick:W,setHoveredKey:h0};let i0=y.useCallback((H,L)=>{let A=b0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),t0=y.useCallback((H)=>{b0.current.setHoveredKey(H)},[]),_0=y.useCallback((H)=>{b0.current.setHoveredKey((L)=>L===H?null:L)},[]);return $(p0,{children:[B(b,{ref:k,height:f,flexShrink:0}),J.slice(Q0,X0).map((H,L)=>{let A=Q0+L,x=N[A],u=!!W&&(q?.(H)??!0),n=u&&l0===x,r=V?.(H);return B(qX,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:r,hovered:n,clickable:u,onClickK:i0,onEnterK:t0,onLeaveK:_0,renderItem:X},x)}),J0>0&&B(b,{height:J0,flexShrink:0}),K&&B(VX,{messages:J,start:Q0,end:X0,offsets:H0,getItemTop:Y0,getItemElement:i,scrollRef:Z})]})}function VX({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(yZ),Y=y.useCallback((N)=>q.current?.subscribe(N)??YX,[q]);y.useSyncExternalStore(Y,()=>{let N=q.current;if(!N)return NaN;let P=N.getScrollTop()+N.getPendingDelta();return N.isSticky()?-1-P:P});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),j=Z,v=-1;for(let N=Q-1;N>=Z;N--){let P=X(N);if(P>=0){if(P<F)break;v=P}j=N}let M=-1,I=null;if(j>0&&!K)for(let N=j-1;N>=0;N--){let P=XX(J[N]);if(P===null)continue;let f=X(N);if(f>=0&&f+1>=F)continue;M=N,I=P;break}let Z0=v>=0?v-z[j]:0,d=M>=0?Math.max(0,Z0+z[M]):-1,O=y.useRef({idx:-1,tries:0}),C=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(C.current==="armed"){C.current="force";return}let N=C.current==="force";if(C.current="none",!N&&_.current===M)return;if(_.current=M,I===null){V(null);return}let P=I.trimStart(),f=P.search(/\n\s*\n/),J0=(f>=0?P.slice(0,f):P).slice(0,zX).replace(/\s+/g," ").trim();if(J0===""){V(null);return}let E=M,k=d;V({text:J0,scrollTo:()=>{V("clicked"),C.current="armed";let H0=W(E);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(k),O.current={idx:E,tries:0}}})}),y.useEffect(()=>{if(O.current.idx<0)return;let N=W(O.current.idx);if(N)q.current?.scrollToElement(N,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var bQ,y,dZ=3,OQ,zX=500,AQ,YX=()=>{};var vQ=L0(()=>{wQ();f0();JX();LJ();ez();ZX();SZ();EQ();F0();bQ=w0(u0(),1),y=w0(I0(),1),OQ=new WeakMap;AQ=new WeakMap});function EX(J,Z){let Q=new Set(Z),z=new Set;return J.filter((X)=>{if(X.type==="system")return X.subtype!=="api_metrics";let W=X.message?.content[0];if(X.type==="assistant"){if(X.isApiErrorMessage)return!0;if(W?.type==="tool_use"&&W.name&&Q.has(W.name)){if("id"in W)z.add(W.id);return!0}return!1}if(X.type==="user"){if(W?.type==="tool_result")return W.tool_use_id!==void 0&&z.has(W.tool_use_id);return!X.isMeta}if(X.type==="attachment"){let q=X.attachment;return q?.type==="queued_command"&&q.commandMode==="prompt"&&!q.isMeta&&q.origin===void 0}return!1})}function bX(J,Z){let Q=new Set(Z),z=new Set,X=[],W=0;for(let q=0;q<J.length;q++){let V=J[q],Y=V.message?.content[0];if(V.type==="user"&&Y?.type!=="tool_result"&&!V.isMeta){W++;continue}if(V.type==="assistant"){if(Y?.type==="text")X[q]=W;else if(Y?.type==="tool_use"&&Y.name&&Q.has(Y.name))z.add(W)}}if(z.size===0)return J;return J.filter((q,V)=>{let Y=X[V];return Y===void 0||!z.has(Y)})}function yX(J,Z,Q=CX,z=vX){let X=Z.current,W=X?J.findIndex((Y)=>Y.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let V=J[q];if(V&&(X?.uuid!==V.uuid||X.idx!==q))Z.current={uuid:V.uuid,idx:q};else if(!V&&X)Z.current=null;return q}function _Q(J){return(J.type==="assistant"||J.type==="user"?g0(J):null)??J.uuid}function SX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function tJ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let V=J.message.content[0];if(V?.type==="server_tool_use")return W.resolvedToolUseIDs.has(V.id)}let q=g0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(oQ(q,"PostToolUse",W))return!1;return FJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((V)=>{let Y=V.message.content[0];return Y?.type==="tool_use"&&W.resolvedToolUseIDs.has(Y.id)});case"collapsed_read_search":return!1}return!1}var mQ,YZ,p,DX,UX=null,yQ=null,MX=null,cZ=30,CX=200,vX=50,_X=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:V,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:j=!1,agentDefinitions:v,onOpenRateLimitOptions:M,hideLogo:I=!1,isLoading:Z0,hidePastThinking:d=!1,streamingThinking:O,hasStreamingText:C=!1,isBriefOnly:_=!1,unseenDivider:N,scrollRef:P,trackStickyPrompt:f,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,disableRenderCap:Y0=!1,cursor:i=null,setCursor:h,cursorNavRef:z0,renderRange:Q0})=>{let{columns:X0}=FZ(),O0=RQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=p.useMemo(()=>nZ(J).filter(nQ),[J]),l=p.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=p.useMemo(()=>{if(!d)return null;if(l)return"streaming";for(let G=T.length-1;G>=0;G--){let U=T[G];if(U?.type==="assistant"){let B0=U.message.content;for(let a=B0.length-1;a>=0;a--)if(B0[a]?.type==="thinking")return`${U.uuid}:${a}`}else if(U?.type==="user"){if(!U.message.content.some((a)=>a.type==="tool_result"))return"no-thinking"}}return null},[T,d,l]),t=p.useMemo(()=>{for(let G=T.length-1;G>=0;G--){let U=T[G];if(U?.type==="user"){let B0=U.message.content;for(let a of B0)if(a.type==="text"){let N0=a.text;if(N0.startsWith("<bash-stdout")||N0.startsWith("<bash-stderr"))return U.uuid}}}return null},[T]),S=p.useMemo(()=>tQ(T),[T]),W0=p.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!S.has(G.contentBlock.id)),[F,q,S]),w=p.useMemo(()=>W0.flatMap((G)=>{let U=gQ({content:[G.contentBlock]});return U.uuid=TQ(G.contentBlock.id,0),nZ([U])}),[W0]),D=K==="transcript",R=p.useMemo(()=>SQ(process.env.CLAUDIN_DISABLE_VIRTUAL_SCROLL),[]),s=P!=null&&!R,A0=D&&!j&&!s,V0=p.useRef(null),{collapsed:G0,lookups:M0,hasTruncatedMessages:n0,hiddenMessageCount:y0}=p.useMemo(()=>{let G=z||c0()?T:lQ(T,{includeSnipped:!0}),U=aQ(G.filter((S0)=>S0.type!=="progress").filter((S0)=>!GZ(S0)).filter((S0)=>iQ(S0,D)),w),B0=[yQ,MX].filter((S0)=>S0!==null),a=[yQ].filter((S0)=>S0!==null),N0=B0.length>0&&!D?_?EX(U,B0):a.length>0?bX(U,a):U:U,C0=A0?N0.slice(-cZ):N0,VZ=A0&&N0.length>cZ,{messages:d0}=CJ(C0,Z,z),sQ=OJ(PJ(MJ(cQ(d0,Z))),z),eQ=rQ(T,C0),Zz=U.length-cZ;return{collapsed:sQ,lookups:eQ,hasTruncatedMessages:VZ,hiddenMessageCount:Zz}},[z,T,D,w,A0,Z,_]),P0=p.useMemo(()=>{let U=!s&&!Y0?yX(G0,V0):0;return Q0?G0.slice(Q0[0],Q0[1]):U>0?G0.slice(U):G0},[G0,Q0,s,Y0]),T0=p.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),l0=xQ((G)=>G.tasks),h0=M0.asyncLaunchedToolUseIDs,b0=p.useMemo(()=>{if(h0.size===0)return null;let G=new Set;for(let[U,B0]of h0){let a=l0?.[B0]?.status;if(a==="running"||a==="requested"||a==="queued")G.add(U)}return G.size>0?G:null},[l0,h0]),i0=p.useMemo(()=>{if(!b0)return q;let G=new Set(q);for(let U of b0)G.add(U);return G},[q,b0]),t0=p.useMemo(()=>{if(!N)return-1;let G=N.firstUnseenUuid.slice(0,24);return P0.findIndex((U)=>U.uuid.slice(0,24)===G)},[N,P0]),_0=p.useMemo(()=>{if(!i)return-1;return P0.findIndex((G)=>G.uuid===i.uuid)},[i,P0]),[H,L]=p.useState(()=>new Set),A=p.useCallback((G)=>{let U=_Q(G);L((B0)=>{let a=new Set(B0);if(a.has(U))a.delete(U);else a.add(U);return a})},[]),x=p.useCallback((G)=>H.size>0&&H.has(_Q(G)),[H]),u=p.useRef(M0);u.current=M0;let n=p.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let N0=G.message.content[0];return N0!=null&&fQ(N0)&&N0.type==="advisor_tool_result"&&N0.content.type==="advisor_result"}if(G.type!=="user")return!1;let U=G.message.content[0];if(U?.type!=="tool_result"||U.is_error||!G.toolUseResult)return!1;let B0=u.current.toolUseByToolUseID.get(U.tool_use_id)?.name;return(B0?mZ(Z,B0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),r=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,c=i0.size>0,{progress:e}=hQ(),R0=p.useRef(null),j0=PZ().terminalProgressBarEnabled&&!kQ()&&!(UX?.isProactiveActive()??!1);p.useEffect(()=>{let G=j0?c?"indeterminate":"completed":null;if(R0.current===G)return;R0.current=G,e(G)},[e,j0,c]),p.useEffect(()=>{return()=>e(null)},[e]);let E0=p.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),D0=(G,U)=>{if(G.type==="progress")return null;let B0=U>0?P0[U-1]?.type:void 0,a=G.type==="user"&&B0==="user",N0=G.type==="collapsed_read_search"&&(C||aJ(P0,U,Z,T0)),C0=E0(G),VZ=B(rJ,{message:G,isUserContinuation:a,hasContentAfter:N0,tools:Z,commands:Q,verbose:z||x(G)||i?.expanded===!0&&U===_0,inProgressToolUseIDs:i0,streamingToolUseIDs:T0,screen:K,canAnimate:r,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),d0=B($Q.Provider,{value:U===_0,children:VZ},C0);if(N&&U===t0)return[B(b,{marginTop:1,children:B(DZ,{title:`${N.count} new ${LZ(N.count,"message")}`,width:X0,color:"inactive"})},"unseen-divider"),d0];return d0},U0=p.useRef(new WeakMap),k0=p.useCallback((G)=>{let U=U0.current.get(G);if(U!==void 0)return U;let B0=AZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let N0=G.message.content.find((C0)=>C0.type==="tool_result");if(N0&&"tool_use_id"in N0){let C0=M0.toolUseByToolUseID.get(N0.tool_use_id),d0=(C0&&mZ(Z,C0.name))?.extractSearchText?.(G.toolUseResult);if(d0!==void 0)B0=d0}}let a=B0.toLowerCase();return U0.current.set(G,a),a},[Z,M0]);return $(p0,{children:[!I&&!(Q0&&Q0[0]>0)&&B(DX,{agentDefinitions:v}),n0&&B(DZ,{title:`${O0} to show ${gZ.bold(y0)} previous messages`,width:X0}),D&&j&&y0>0&&!Y0&&B(DZ,{title:`${O0} to hide ${gZ.bold(y0)} previous messages`,width:X0}),s?B(uQ.Provider,{value:!0,children:B(CQ,{messages:P0,scrollRef:P,columns:X0,itemKey:E0,renderItem:D0,onItemClick:A,isItemClickable:n,isItemExpanded:x,trackStickyPrompt:f,selectedIndex:_0>=0?_0:void 0,cursorNavRef:z0,setCursor:h,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,extractSearchText:k0})}):P0.flatMap(D0),C&&!_&&B(kX,{}),l&&O&&!_&&B(b,{marginTop:1,children:B(dQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},kX=()=>{let J=lZ();if(!J)return null;return B(b,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:$(b,{flexDirection:"row",children:[B(b,{minWidth:2,children:B(g,{color:"text",children:IQ})}),B(b,{flexDirection:"column",children:B(pQ,{children:J})})]})})},g8;var sJ=L0(()=>{GX();KJ();BX();LX();qJ();KX();f0();NX();OX();FX();jX();AJ();DJ();cJ();EJ();HQ();HX();vZ();vJ();OZ();XJ();SZ();wX();AX();iZ();oJ();EQ();PX();CZ();gJ();FQ();vQ();F0();mQ=w0(u0(),1),YZ=w0(I0(),1),p=w0(I0(),1),DX=YZ.memo(function(Z){let Q=mQ.c(3),{agentDefinitions:z}=Z,X;if(Q[0]===Symbol.for("react.memo_cache_sentinel"))X=null,Q[0]=X;else X=Q[0];let W;if(Q[1]!==z)W=B(e0,{children:$(b,{flexDirection:"column",gap:1,children:[X,B(YZ.Suspense,{fallback:null,children:B(LQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});g8=YZ.memo(_X,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="onOpenRateLimitOptions"||z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,V)=>q.contentBlock===W[V]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(SX(J.inProgressToolUseIDs,Z.inProgressToolUseIDs))continue}if(z==="unseenDivider"){let X=J.unseenDivider,W=Z.unseenDivider;if(X?.firstUnseenUuid===W?.firstUnseenUuid&&X?.count===W?.count)continue}if(z==="tools"){let X=J.tools,W=Z.tools;if(X.length===W.length&&X.every((q,V)=>q.name===W[V]?.name))continue}return!1}}return!0})});
|
|
12
|
+
export{s0 as ve,TX as we,iZ as xe,xX as ye,$X as ze,JJ as Ae,QW as Be,zW as Ce,XW as De,LJ as Ee,g8 as Fe,sJ as Ge};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{Co as y,Go as r,PF as F,QF as S,TF as C,ZF as a}from"./cli-1.1.19-hqbspnvc.mjs";import{rZ as D,sZ as o,tZ as z,uZ as b}from"./cli-1.1.19-v619rbr5.mjs";import{e$ as R,f$ as l,h$ as T,i$ as u}from"./cli-1.1.19-dt84yfk2.mjs";import{Ika as O,Kka as c,Oka as L,Ska as d,ala as N,dla as g}from"./cli-1.1.19-cq5hegwz.mjs";import{Xra as _,Yra as I}from"./cli-1.1.19-f1vb0eyp.mjs";import{kta as j}from"./cli-1.1.19-cc266ybe.mjs";import{spawn as G,spawnSync as w}from"child_process";import{basename as k}from"path";function P(q){return!!T(q)}function V(q){let H=k(q.split(" ")[0]??"");return h.find((B)=>H.includes(B))}function p(q,H,B){if(!B)return[H];if(m.has(q))return["-g",`${H}:${B}`];if(q==="subl")return[`${H}:${B}`];return[H]}function Qq(q,H){let B=v();if(!B)return!1;let J=B.split(" "),X=J[0]??B,K=J.slice(1),Q=V(B);if(Q){let W=p(Q,q,H),Z={detached:!0,stdio:"ignore"},M;if(process.platform==="win32"){let U=W.map((E)=>`"${E}"`).join(" ");M=G(`${B} ${U}`,{...Z,shell:!0})}else M=G(X,[...K,...W],Z);return M.on("error",(U)=>N(`editor spawn failed: ${U}`,{level:"error"})),M.unref(),!0}let $=z.get(process.stdout);if(!$)return!1;let Y=H&&f.test(k(X));$.enterAlternateScreen();try{let W={stdio:"inherit"},Z;if(process.platform==="win32"){let M=Y?`+${H} `:"";Z=w(`${B} ${M}"${q}"`,{...W,shell:!0})}else{let M=[...K,...Y?[`+${H}`,q]:[q]];Z=w(X,M,W)}if(Z.error)return N(`editor spawn failed: ${Z.error}`,{level:"error"}),!1;return!0}finally{$.exitAlternateScreen()}}var h,f,m,v;var x=j(()=>{I();b();g();u();h=["code","cursor","windsurf","codium","subl","atom","gedit","notepad++","notepad"],f=/\b(vi|vim|nvim|nano|emacs|pico|micro|helix|hx)\b/,m=new Set(["code","cursor","windsurf","codium"]);v=_(()=>{if(process.env.VISUAL?.trim())return process.env.VISUAL.trim();if(process.env.EDITOR?.trim())return process.env.EDITOR.trim();if(process.platform==="win32")return"start /wait notepad";return["code","vi","nano"].find((H)=>P(H))})});function s(q){return V(q)!==void 0}function i(q){let H=L(),B=z.get(process.stdout);if(!B)throw Error("Ink instance not found - cannot pause rendering");let J=v();if(!J)return{content:null};try{H.statSync(q)}catch{return{content:null}}let X=!s(J);if(X)B.enterAlternateScreen();else B.pause(),B.suspendStdin();try{let K=Object.hasOwn(A,J)?A[J]:J;return R(`${K} "${q}"`,{stdio:"inherit"}),{content:H.readFileSync(q,{encoding:"utf-8"})}}catch(K){if(typeof K==="object"&&K!==null&&"status"in K&&typeof K.status==="number"){let Q=K.status;if(Q!==0)return{content:null,error:`${y(J)} exited with code ${Q}`}}return{content:null}}finally{if(X)B.exitAlternateScreen();else B.resumeStdin(),B.resume()}}function n(q,H,B){let J=q;for(let[X,K]of Object.entries(B))if(K.type==="text"){let Q=parseInt(X),$=K.content,Y=J.indexOf($);if(Y!==-1){let W=F($),Z=S(Q,W);J=J.slice(0,Y)+Z+J.slice(Y+$.length)}}return J}function Vq(q,H){let B=L(),J=D();try{let X=H?C(q,H):q;O(J,X,{encoding:"utf-8",flush:!0});let K=i(J);if(K.content===null)return K;let Q=K.content;if(Q.endsWith(`
|
|
2
|
+
`)&&!Q.endsWith(`
|
|
3
|
+
|
|
4
|
+
`))Q=Q.slice(0,-1);if(H)Q=n(Q,q,H);return{content:Q}}finally{try{B.unlinkSync(J)}catch{}}}var A;var t=j(()=>{a();b();x();l();d();r();c();o();A={code:"code -w",subl:"subl --wait"}});
|
|
5
|
+
export{Qq as Hg,v as Ig,x as Jg,i as Kg,Vq as Lg,t as Mg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{D4 as Z}from"./cli-1.1.19-3jjgtf8t.mjs";import{Q8 as Y,y8 as F}from"./cli-1.1.19-m8w4as34.mjs";import{_ea as N,bfa as B,cha as X,wfa as W,xea as V}from"./cli-1.1.19-dt84yfk2.mjs";import{Yja as Q}from"./cli-1.1.19-q5kbe656.mjs";import{kta as P}from"./cli-1.1.19-cc266ybe.mjs";function E(){let w=F()?.organizationUuid;if(!w)return null;let z=B().overageCreditGrantCache?.[w];if(!z)return null;if(Date.now()-z.timestamp>$)return null;return z.info}function U(){let w=F()?.organizationUuid;if(!w)return;let z=B().overageCreditGrantCache;if(!z||!(w in z))return;N((J)=>{let K={...J.overageCreditGrantCache};return delete K[w],{...J,overageCreditGrantCache:K}})}function _(w){if(w.amount_minor_units==null||!w.currency)return null;if(w.currency.toUpperCase()==="USD"){let z=w.amount_minor_units/100;return Number.isInteger(z)?`$${z}`:`$${z.toFixed(2)}`}return null}var $=3600000;var k=P(()=>{Q();Y();W();X();V();Z()});
|
|
2
|
+
export{E as _i,U as $i,_ as aj,k as bj};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Td as j,Ud as E}from"./cli-1.1.19-t7yahhjv.mjs";import{Ap as W,Dp as v,_L as X,aM as Y,jM as Z,lM as w,pM as _,rM as $,wM as f}from"./cli-1.1.19-hqbspnvc.mjs";import{Dca as Q,Qca as T,Wga as V,cha as N,kfa as S,wfa as A}from"./cli-1.1.19-dt84yfk2.mjs";import{ala as B,dla as R}from"./cli-1.1.19-cq5hegwz.mjs";import{Ala as L,Hla as K}from"./cli-1.1.19-eyhpgp73.mjs";import{kta as y}from"./cli-1.1.19-cc266ybe.mjs";function d(q){if(J=q,G!==null&&G.length>0)q(G),G=null;return()=>{J=null}}async function C(){let q=await Y(),D=X(),x=new Set;for(let[z,h]of Object.entries(q)){let F=D[z]?.autoUpdate;if(F!==void 0?F:Q(z,h))x.add(z.toLowerCase())}return x}async function M(q,D){let x=!1;for(let{scope:z}of D)try{let h=await j(q,z);if(h.success&&!h.alreadyUpToDate)x=!0,B(`Plugin autoupdate: updated ${q} from ${h.oldVersion} to ${h.newVersion}`);else if(!h.alreadyUpToDate)B(`Plugin autoupdate: failed to update ${q}: ${h.message}`,{level:"warn"})}catch(h){B(`Plugin autoupdate: error updating ${q}: ${L(h)}`,{level:"warn"})}return x?q:null}async function P(q){let D=_(),x=Object.keys(D.plugins);if(x.length===0)return[];return(await Promise.allSettled(x.map(async(h)=>{let{marketplace:F}=W(h);if(!F||!q.has(F.toLowerCase()))return null;let H=D.plugins[h];if(!H||H.length===0)return null;let O=H.filter($);if(O.length===0)return null;return M(h,O)}))).filter((h)=>h.status==="fulfilled"&&h.value!==null).map((h)=>h.value)}async function m(q){return P(q)}function t(){(async()=>{if(S()){B("Plugin autoupdate: skipped (auto-updater disabled)");return}try{let q=await C();if(q.size===0)return;let x=(await Promise.allSettled(Array.from(q).map(async(h)=>{try{await Z(h,void 0,{disableCredentialHelper:!0})}catch(F){B(`Plugin autoupdate: failed to refresh marketplace ${h}: ${L(F)}`,{level:"warn"})}}))).filter((h)=>h.status==="rejected");if(x.length>0)B(`Plugin autoupdate: ${x.length} marketplace refresh(es) failed`,{level:"warn"});B("Plugin autoupdate: checking installed plugins");let z=await m(q);if(z.length>0)if(J)J(z);else G=z}catch(q){V(q)}})()}var J=null,G=null;var U=y(()=>{E();A();R();K();N();f();w();v();T()});
|
|
2
|
+
export{d as qd,P as rd,t as sd,U as td};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Vu as R,Wu as T,Xu as $,qx as U,rx as V,ux as f}from"./cli-1.1.19-hqbspnvc.mjs";import{B6 as Q,C6 as _}from"./cli-1.1.19-m8w4as34.mjs";import{Wga as G,cha as Z,dba as L,kba as Y}from"./cli-1.1.19-dt84yfk2.mjs";import{kta as X}from"./cli-1.1.19-cc266ybe.mjs";function S(q,j){let z=new Map;for(let x of j)z.set(x.agentType,x);let H=new Set,J=[];for(let x of q){let K=`${x.agentType}:${x.source}`;if(H.has(K))continue;H.add(K);let E=z.get(x.agentType),W=E&&E.source!==x.source?E.source:void 0;J.push({...x,overriddenBy:W})}return J}function I(q){let j=q.model||U();if(!j)return;if(j==="inherit")return"inherit";if(j==="haiku"||j==="sonnet"||j==="opus"){try{if(!V())return"inherit";if(!Q(j))return"inherit"}catch(z){G(z)}return j}return T(j,`agent:${q.agentType}`,{getAvailableModelIds:R,logDebug:()=>{},logErr:G})??j}function N(q){return L(q).toLowerCase()}function P(q,j){return q.agentType.localeCompare(j.agentType,void 0,{sensitivity:"base"})}var O;var h=X(()=>{f();_();Z();Y();$();O=[{label:"User agents",source:"userSettings"},{label:"Project agents",source:"projectSettings"},{label:"Local agents",source:"localSettings"},{label:"Managed agents",source:"policySettings"},{label:"Plugin agents",source:"plugin"},{label:"CLI arg agents",source:"flagSettings"},{label:"Built-in agents",source:"built-in"}]});
|
|
2
|
+
export{O as Rc,S as Sc,I as Tc,N as Uc,P as Vc,h as Wc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{kta as j}from"./cli-1.1.19-cc266ybe.mjs";function G(){return`claude-swarm-${process.pid}`}var q="team-lead",A="claude-swarm",B="swarm-view",D="tmux",F="claude-hidden",H="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
|
|
2
|
+
export{q as s3,A as t3,B as u3,D as v3,F as w3,G as x3,H as y3,k as z3};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{kta as J}from"./cli-1.1.19-cc266ybe.mjs";import v from"node:path";function Z(q){if(q.endsWith(v.sep)||q.endsWith("/"))return K;let j=v.basename(q).toLowerCase();if(j.startsWith("readme"))return B[".md"];if(j.startsWith(".env"))return Q;let z=U[j];if(z)return z;let H=v.extname(j);return B[H]??P}var K="",Y="",P="",Q="",U,B;var V=J(()=>{U={"package.json":"",dockerfile:"",".dockerignore":"",".gitignore":"",".gitattributes":"",license:"","bun.lock":""},B={".ts":"",".tsx":"",".js":"",".jsx":"",".mjs":"",".cjs":"",".json":"",".md":"",".markdown":"",".toml":"",".yaml":"",".yml":"",".py":"",".rs":"",".go":"",".sh":"",".bash":"",".zsh":"",".css":"",".scss":"",".html":"",".htm":"",".png":"",".jpg":"",".jpeg":"",".gif":"",".svg":"",".webp":"",".lock":""}});
|
|
2
|
+
export{K as Qh,Y as Rh,Z as Sh,V as Th};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Sh as C,Th as t}from"./cli-1.1.19-93bb0mpz.mjs";import{Uh as p,Vh as e}from"./cli-1.1.19-h5psdt4j.mjs";import{nY as L,oY as i}from"./cli-1.1.19-d7wb13f8.mjs";import{H1 as s,a1 as b,c1 as P}from"./cli-1.1.19-v619rbr5.mjs";import{d4 as M,f4 as y}from"./cli-1.1.19-25szxvwt.mjs";import{g4 as n}from"./cli-1.1.19-5kaw3aa5.mjs";import{x_ as T,y_ as m}from"./cli-1.1.19-dt84yfk2.mjs";import{hha as $,iha as o,jha as S,kha as v,mha as W,zha as d}from"./cli-1.1.19-nb1256fg.mjs";import{gta as a,kta as l}from"./cli-1.1.19-cc266ybe.mjs";function Zq(J,q,Y){if(J.startsWith("file-"))return Y?C(q):"+";if(J.startsWith("mcp-resource-"))return"◇";if(J.startsWith("agent-"))return"*";return"+"}function x(J){return J.startsWith("file-")||J.startsWith("mcp-resource-")||J.startsWith("agent-")}function $q(J){let q=J.metadata?.type;return q==="directory"||q==="file"}function Gq(J,q,Y){if(q<=0||Y<=0)return[];let G=J.replace(Yq," ").trim();if(G==="")return[];let Q=[],K="";for(let z of G.split(" ")){if(K==="")K=z;else if($(K)+1+$(z)<=q)K=`${K} ${z}`;else Q.push(K),K=z;while($(K)>q){let H=W(K,q);if(H==="")break;Q.push(H),K=K.slice(H.length)}if(Q.length>Y)break}if(K!=="")Q.push(K);if(Q.length<=Y)return Q;let O=Q.slice(Y-1).join(" "),A=Q.slice(0,Y);return A[Y-1]=$(O)<=q?O:v(O,q),A}function c(J,q,Y){let G=Math.floor(q*0.4),Q=Math.min(Y??$(J.displayText)+5,G),K=J.displayText;if($(K)>Q-2)K=v(K,Q-2);let O=$q(J)?`${h?C(J.displayText):"+"} `:"",A=J.tag?`[${J.tag}] `:"",z=Math.max(0,q-R-Q-$(A)-4),H=J.description?Gq(J.description,z,Kq):[];return{displayText:K,displayTextWidth:Q,pathIcon:O,tagText:A,descriptionLines:H}}function Oq(J,q,Y){if(x(J.id))return 1;return Math.max(1,c(J,q,Y).descriptionLines.length)}function Aq({suggestions:J,selectedSuggestion:q,maxColumnWidth:Y,overlay:G}){let{columns:Q,rows:K}=L(),O=Math.max(1,K-2),A=O>=qq?Math.min(Jq,O):O;if(J.length===0)return null;let z=Y??Math.max(...J.map((Z)=>$(Z.displayText)))+5,H=J.map((Z)=>Oq(Z,Q,z)),N=(Z)=>Math.max(0,Math.min(q-Math.floor(Z/2),J.length-Z)),U=Math.min(A,J.length);while(U>1){let Z=N(U);if(H.slice(Z,Z+U).reduce((B,j)=>B+j,0)<=O)break;U--}let V=N(U),X=Math.min(V+U,J.length),F=J.slice(V,X);return M(b,{flexDirection:"column",justifyContent:G?void 0:"flex-end",children:F.map((Z)=>M(zq,{item:Z,maxColumnWidth:z,isSelected:Z.id===J[q]?.id},`${Z.id}:${Z.id===J[q]?.id?"selected":"idle"}`))})}var E,qq=8,Jq=15,Kq=2,I,Qq=" ",R,Yq,h,zq,bq;var Uq=l(()=>{m();i();o();s();t();d();e();y();E=a(n(),1),I=`${T.pointer} `,R=$(I),Yq=/\s+/g,h=p();zq=E.memo(function({item:q,maxColumnWidth:Y,isSelected:G}){let Q=L().columns,K=G?I:Qq,O=G?"suggestion":void 0,A=G?"inverseText":void 0;if(x(q.id)){let k=Zq(q.id,q.displayText,h),B=!G,j=q.id.startsWith("file-"),u=q.id.startsWith("mcp-resource-"),Hq=2,kq=4,w=q.description?3:0,f;if(j){let _=q.description?Math.min(20,$(q.description)):0,r=Q-R-2-4-w-_;f=S(q.displayText,r)}else if(u)f=v(q.displayText,30);else f=q.displayText;let g=Q-R-2-$(f)-w-4,D;if(q.description){let _=v(q.description.replace(/\s+/g," "),Math.max(0,g));D=`${K}${k} ${f} - ${_}`}else D=`${K}${k} ${f}`;return M(b,{width:"100%",opaque:!0,backgroundColor:O,children:M(P,{color:A,dimColor:B,bold:G,wrap:"truncate",children:D})})}let{displayText:z,displayTextWidth:H,pathIcon:N,tagText:U,descriptionLines:V}=c(q,Q,Y),X=K+N+z+" ".repeat(Math.max(0,H-$(z))),F=" ".repeat($(X)+$(U)),Z=V.length>0?V.map((k,B)=>B===0?`${X}${U}${k}`:`${F}${k}`):[`${X}${U}`];return M(b,{flexDirection:"column",width:"100%",opaque:!0,backgroundColor:O,children:Z.map((k,B)=>M(P,{color:A,dimColor:!G,bold:G,wrap:"truncate",children:k},B))})});bq=E.memo(Aq)});
|
|
2
|
+
export{Aq as Nh,bq as Oh,Uq as Ph};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{kta as g}from"./cli-1.1.19-cc266ybe.mjs";import{lstat as c,readdir as Cq,realpath as Mq,stat as Kq}from"node:fs/promises";import{join as Nq,relative as Hq,resolve as l,sep as Yq}from"node:path";import{Readable as Oq}from"node:stream";function i(q,J={}){let X=J.entryType||J.type;if(X==="both")X=H.FILE_DIR_TYPE;if(X)J.type=X;if(!q)throw Error("readdirp: root argument is required. Usage: readdirp(root, options)");else if(typeof q!=="string")throw TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");else if(X&&!o.includes(X))throw Error(`readdirp: Invalid type passed. Use one of ${o.join(", ")}`);return J.root=q,new u(J)}var H,_,h="READDIRP_RECURSIVE_ERROR",Iq,o,bq,Dq,Vq=(q)=>Iq.has(q.code),Lq,p=(q)=>!0,n=(q)=>{if(q===void 0)return p;if(typeof q==="function")return q;if(typeof q==="string"){let J=q.trim();return(X)=>X.basename===J}if(Array.isArray(q)){let J=q.map((X)=>X.trim());return(X)=>J.some((Q)=>X.basename===Q)}return p},u;var s=g(()=>{H={FILE_TYPE:"files",DIR_TYPE:"directories",FILE_DIR_TYPE:"files_directories",EVERYTHING_TYPE:"all"},_={root:".",fileFilter:(q)=>!0,directoryFilter:(q)=>!0,type:H.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:4096};Object.freeze(_);Iq=new Set(["ENOENT","EPERM","EACCES","ELOOP",h]),o=[H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE],bq=new Set([H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE]),Dq=new Set([H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE]),Lq=process.platform==="win32";u=class u extends Oq{parents;reading;parent;_stat;_maxDepth;_wantsDir;_wantsFile;_wantsEverything;_root;_isDirent;_statsProp;_rdOptions;_fileFilter;_directoryFilter;constructor(q={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:q.highWaterMark});let J={..._,...q},{root:X,type:Q}=J;this._fileFilter=n(J.fileFilter),this._directoryFilter=n(J.directoryFilter);let Z=J.lstat?c:Kq;if(Lq)this._stat=(z)=>Z(z,{bigint:!0});else this._stat=Z;this._maxDepth=J.depth!=null&&Number.isSafeInteger(J.depth)?J.depth:_.depth,this._wantsDir=Q?bq.has(Q):!1,this._wantsFile=Q?Dq.has(Q):!1,this._wantsEverything=Q===H.EVERYTHING_TYPE,this._root=l(X),this._isDirent=!J.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(X,1)],this.reading=!1,this.parent=void 0}async _read(q){if(this.reading)return;this.reading=!0;try{while(!this.destroyed&&q>0){let J=this.parent,X=J&&J.files;if(X&&X.length>0){let{path:Q,depth:Z}=J,z=X.splice(0,q).map((G)=>this._formatEntry(G,Q)),$=await Promise.all(z);for(let G of $){if(!G)continue;if(this.destroyed)return;let U=await this._getEntryType(G);if(U==="directory"&&this._directoryFilter(G)){if(Z<=this._maxDepth)this.parents.push(this._exploreDir(G.fullPath,Z+1));if(this._wantsDir)this.push(G),q--}else if((U==="file"||this._includeAsFile(G))&&this._fileFilter(G)){if(this._wantsFile)this.push(G),q--}}}else{let Q=this.parents.pop();if(!Q){this.push(null);break}if(this.parent=await Q,this.destroyed)return}}}catch(J){this.destroy(J)}finally{this.reading=!1}}async _exploreDir(q,J){let X;try{X=await Cq(q,this._rdOptions)}catch(Q){this._onError(Q)}return{files:X,depth:J,path:q}}async _formatEntry(q,J){let X,Q=this._isDirent?q.name:q;try{let Z=l(Nq(J,Q));X={path:Hq(this._root,Z),fullPath:Z,basename:Q},X[this._statsProp]=this._isDirent?q:await this._stat(Z)}catch(Z){this._onError(Z);return}return X}_onError(q){if(Vq(q)&&!this.destroyed)this.emit("warn",q);else this.destroy(q)}async _getEntryType(q){if(!q&&this._statsProp in q)return"";let J=q[this._statsProp];if(J.isFile())return"file";if(J.isDirectory())return"directory";if(J&&J.isSymbolicLink()){let X=q.fullPath;try{let Q=await Mq(X),Z=await c(Q);if(Z.isFile())return"file";if(Z.isDirectory()){let z=Q.length;if(X.startsWith(Q)&&X.substr(z,1)===Yq){let $=Error(`Circular symlink detected: "${X}" points to "${Q}"`);return $.code=h,this._onError($)}return"directory"}}catch(Q){return this._onError(Q),""}}}_includeAsFile(q){let J=q&&q[this._statsProp];return J&&this._wantsEverything&&!J.isDirectory()}}});import{watch as Aq,unwatchFile as a,watchFile as Wq}from"node:fs";import{realpath as P,lstat as Fq,open as Rq,stat as e}from"node:fs/promises";import{type as Tq}from"node:os";import*as M from"node:path";function r(q,J,X,Q,Z){let z=($,G)=>{if(X(q),Z($,G,{watchedPath:q}),G&&q!==G)W(M.resolve(q,G),I,M.join(q,G))};try{return Aq(q,{persistent:J.persistent},z)}catch($){Q($);return}}class f{fsw;_boundHandleError;constructor(q){this.fsw=q,this._boundHandleError=(J)=>q._handleError(J)}_watchWithNodeFs(q,J){let X=this.fsw.options,Q=M.dirname(q),Z=M.basename(q);this.fsw._getWatchedDir(Q).add(Z);let $=M.resolve(q),G={persistent:X.persistent};if(!J)J=F;let U;if(X.usePolling){let x=X.interval!==X.binaryInterval;G.interval=x&&fq(Z)?X.binaryInterval:X.interval,U=dq(q,$,G,{listener:J,rawEmitter:this.fsw._emitRaw})}else U=mq(q,$,G,{listener:J,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return U}_handleFile(q,J,X){if(this.fsw.closed)return;let Q=M.dirname(q),Z=M.basename(q),z=this.fsw._getWatchedDir(Q),$=J;if(z.has(Z))return;let G=async(x,j)=>{if(!this.fsw._throttle(Sq,q,5))return;if(!j||j.mtimeMs===0)try{let k=await e(q);if(this.fsw.closed)return;let{atimeMs:K,mtimeMs:N}=k;if(!K||K<=N||N!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,k);if((gq||uq||Pq)&&$.ino!==k.ino){this.fsw._closeFile(x),$=k;let O=this._watchWithNodeFs(q,G);if(O)this.fsw._addPathCloser(x,O)}else $=k}catch(k){this.fsw._remove(Q,Z)}else if(z.has(Z)){let{atimeMs:k,mtimeMs:K}=j;if(!k||k<=K||K!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,j);$=j}},U=this._watchWithNodeFs(q,G);if(!(X&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(q)){if(!this.fsw._throttle(Y.ADD,q,0))return;this.fsw._emit(Y.ADD,q,J)}return U}async _handleSymlink(q,J,X,Q){if(this.fsw.closed)return;let Z=q.fullPath,z=this.fsw._getWatchedDir(J);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let $;try{$=await P(X)}catch(G){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if(z.has(Q)){if(this.fsw._symlinkPaths.get(Z)!==$)this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.CHANGE,X,q.stats)}else z.add(Q),this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.ADD,X,q.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(Z))return!0;this.fsw._symlinkPaths.set(Z,!0)}_handleRead(q,J,X,Q,Z,z,$){q=M.join(q,"");let G=Q?`${q}:${Q}`:q;if($=this.fsw._throttle("readdir",G,1000),!$)return;let U=this.fsw._getWatchedDir(X.path),x=new Set,j=this.fsw._readdirp(q,{fileFilter:(k)=>X.filterPath(k),directoryFilter:(k)=>X.filterDir(k)});if(!j)return;return j.on(_q,async(k)=>{if(this.fsw.closed){j=void 0;return}let K=k.path,N=M.join(q,K);if(x.add(K),k.stats.isSymbolicLink()&&await this._handleSymlink(k,q,N,K))return;if(this.fsw.closed){j=void 0;return}if(K===Q||!Q&&!U.has(K))this.fsw._incrReadyCount(),N=M.join(Z,M.relative(Z,N)),this._addToNodeFs(N,J,X,z+1)}).on(Y.ERROR,this._boundHandleError),new Promise((k,K)=>{if(!j)return K();j.once(w,()=>{if(this.fsw.closed){j=void 0;return}let N=$?$.clear():!1;if(k(void 0),U.getChildren().filter((O)=>{return O!==q&&!x.has(O)}).forEach((O)=>{this.fsw._remove(q,O)}),j=void 0,N)this._handleRead(q,!1,X,Q,Z,z,$)})})}async _handleDir(q,J,X,Q,Z,z,$){let G=this.fsw._getWatchedDir(M.dirname(q)),U=G.has(M.basename(q));if(!(X&&this.fsw.options.ignoreInitial)&&!Z&&!U)this.fsw._emit(Y.ADD_DIR,q,J);G.add(M.basename(q)),this.fsw._getWatchedDir(q);let x,j,k=this.fsw.options.depth;if((k==null||Q<=k)&&!this.fsw._symlinkPaths.has($)){if(!Z){if(await this._handleRead(q,X,z,Z,q,Q,x),this.fsw.closed)return}j=this._watchWithNodeFs(q,(K,N)=>{if(N&&N.mtimeMs===0)return;this._handleRead(K,!1,z,Z,q,Q,x)})}return j}async _addToNodeFs(q,J,X,Q,Z){let z=this.fsw._emitReady;if(this.fsw._isIgnored(q)||this.fsw.closed)return z(),!1;let $=this.fsw._getWatchHelpers(q);if(X)$.filterPath=(G)=>X.filterPath(G),$.filterDir=(G)=>X.filterDir(G);try{let G=await vq[$.statMethod]($.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored($.watchPath,G))return z(),!1;let U=this.fsw.options.followSymlinks,x;if(G.isDirectory()){let j=M.resolve(q),k=U?await P(q):q;if(this.fsw.closed)return;if(x=await this._handleDir($.watchPath,G,J,Q,Z,$,k),this.fsw.closed)return;if(j!==k&&k!==void 0)this.fsw._symlinkPaths.set(j,k)}else if(G.isSymbolicLink()){let j=U?await P(q):q;if(this.fsw.closed)return;let k=M.dirname($.watchPath);if(this.fsw._getWatchedDir(k).add($.watchPath),this.fsw._emit(Y.ADD,$.watchPath,G),x=await this._handleDir(k,G,J,Q,q,$,j),this.fsw.closed)return;if(j!==void 0)this.fsw._symlinkPaths.set(M.resolve(q),j)}else x=this._handleFile($.watchPath,G,J);if(z(),x)this.fsw._addPathCloser(q,x);return!1}catch(G){if(this.fsw._handleError(G))return z(),q}}}var _q="data",w="end",t="close",F=()=>{},R,E,gq,uq,Pq,qq,C,Y,Sq="watch",vq,I="listeners",L="errHandlers",b="rawEmitters",wq,Eq,fq=(q)=>Eq.has(M.extname(q).slice(1).toLowerCase()),v=(q,J)=>{if(q instanceof Set)q.forEach(J);else J(q)},D=(q,J,X)=>{let Q=q[J];if(!(Q instanceof Set))q[J]=Q=new Set([Q]);Q.add(X)},yq=(q)=>(J)=>{let X=q[J];if(X instanceof Set)X.clear();else delete q[J]},V=(q,J,X)=>{let Q=q[J];if(Q instanceof Set)Q.delete(X);else if(Q===X)delete q[J]},Jq=(q)=>q instanceof Set?q.size===0:!q,A,W=(q,J,X,Q,Z)=>{let z=A.get(q);if(!z)return;v(z[J],($)=>{$(X,Q,Z)})},mq=(q,J,X,Q)=>{let{listener:Z,errHandler:z,rawEmitter:$}=Q,G=A.get(J),U;if(!X.persistent){if(U=r(q,X,Z,z,$),!U)return;return U.close.bind(U)}if(G)D(G,I,Z),D(G,L,z),D(G,b,$);else{if(U=r(q,X,W.bind(null,J,I),z,W.bind(null,J,b)),!U)return;U.on(Y.ERROR,async(x)=>{let j=W.bind(null,J,L);if(G)G.watcherUnusable=!0;if(E&&x.code==="EPERM")try{await(await Rq(q,"r")).close(),j(x)}catch(k){}else j(x)}),G={listeners:Z,errHandlers:z,rawEmitters:$,watcher:U},A.set(J,G)}return()=>{if(V(G,I,Z),V(G,L,z),V(G,b,$),Jq(G.listeners))G.watcher.close(),A.delete(J),wq.forEach(yq(G)),G.watcher=void 0,Object.freeze(G)}},S,dq=(q,J,X,Q)=>{let{listener:Z,rawEmitter:z}=Q,$=S.get(J),G=$&&$.options;if(G&&(G.persistent<X.persistent||G.interval>X.interval))a(J),$=void 0;if($)D($,I,Z),D($,b,z);else $={listeners:Z,rawEmitters:z,options:X,watcher:Wq(J,X,(U,x)=>{v($.rawEmitters,(k)=>{k(Y.CHANGE,J,{curr:U,prev:x})});let j=U.mtimeMs;if(U.size!==x.size||j>x.mtimeMs||j===0)v($.listeners,(k)=>k(q,U))})},S.set(J,$);return()=>{if(V($,I,Z),V($,b,z),Jq($.listeners))S.delete(J),a(J),$.options=$.watcher=void 0,Object.freeze($)}};var Qq=g(()=>{R=process.platform,E=R==="win32",gq=R==="darwin",uq=R==="linux",Pq=R==="freebsd",qq=Tq()==="OS400",C={ALL:"all",READY:"ready",ADD:"add",CHANGE:"change",ADD_DIR:"addDir",UNLINK:"unlink",UNLINK_DIR:"unlinkDir",RAW:"raw",ERROR:"error"},Y=C,vq={lstat:Fq,stat:e},wq=[I,L,b],Eq=new Set(["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),A=new Map;S=new Map});import{EventEmitter as cq}from"node:events";import{stat as lq,Stats as YJ}from"node:fs";import{readdir as oq,stat as pq}from"node:fs/promises";import*as B from"node:path";function T(q){return Array.isArray(q)?q:[q]}function eq(q){if(typeof q==="function")return q;if(typeof q==="string")return(J)=>q===J;if(q instanceof RegExp)return(J)=>q.test(J);if(typeof q==="object"&&q!==null)return(J)=>{if(q.path===J)return!0;if(q.recursive){let X=B.relative(q.path,J);if(!X)return!1;return!X.startsWith("..")&&!B.isAbsolute(X)}return!1};return()=>!1}function tq(q){if(typeof q!=="string")throw Error("string expected");q=B.normalize(q),q=q.replace(/\\/g,"/");let J=!1;if(q.startsWith("//"))J=!0;if(q=q.replace(Uq,"/"),J)q="/"+q;return q}function Xq(q,J,X){let Q=tq(J);for(let Z=0;Z<q.length;Z++){let z=q[Z];if(z(Q,X))return!0}return!1}function qJ(q,J){if(q==null)throw TypeError("anymatch: specify first argument");let Q=T(q).map((Z)=>eq(Z));if(J==null)return(Z,z)=>{return Xq(Q,Z,z)};return Xq(Q,J)}class kq{path;_removeWatcher;items;constructor(q,J){this.path=q,this._removeWatcher=J,this.items=new Set}add(q){let{items:J}=this;if(!J)return;if(q!==zq&&q!==hq)J.add(q)}async remove(q){let{items:J}=this;if(!J)return;if(J.delete(q),J.size>0)return;let X=this.path;try{await oq(X)}catch(Q){if(this._removeWatcher)this._removeWatcher(B.dirname(X),B.basename(X))}}has(q){let{items:J}=this;if(!J)return;return J.has(q)}getChildren(){let{items:q}=this;if(!q)return[];return[...q.values()]}dispose(){this.items.clear(),this.path="",this._removeWatcher=F,this.items=QJ,Object.freeze(this)}}class Bq{fsw;path;watchPath;fullWatchPath;dirParts;followSymlinks;statMethod;constructor(q,J,X){this.fsw=X;let Q=q;this.path=q=q.replace(rq,""),this.watchPath=Q,this.fullWatchPath=B.resolve(Q),this.dirParts=[],this.dirParts.forEach((Z)=>{if(Z.length>1)Z.pop()}),this.followSymlinks=J,this.statMethod=J?XJ:ZJ}entryPath(q){return B.join(this.watchPath,B.relative(this.watchPath,q.fullPath))}filterPath(q){let{stats:J}=q;if(J&&J.isSymbolicLink())return this.filterDir(q);let X=this.entryPath(q);return this.fsw._isntIgnored(X,J)&&this.fsw._hasReadPermissions(J)}filterDir(q){return this.fsw._isntIgnored(this.entryPath(q),q.stats)}}function $J(q,J={}){let X=new d(J);return X.add(q),X}var y="/",nq="//",zq=".",hq="..",iq="string",sq,Uq,aq,rq,m=(q)=>typeof q==="object"&&q!==null&&!(q instanceof RegExp),Zq=(q)=>{let J=T(q).flat();if(!J.every((X)=>typeof X===iq))throw TypeError(`Non-string provided as watch path: ${J}`);return J.map(xq)},$q=(q)=>{let J=q.replace(sq,y),X=!1;if(J.startsWith(nq))X=!0;if(J=J.replace(Uq,y),X)J=y+J;return J},xq=(q)=>$q(B.normalize($q(q))),Gq=(q="")=>(J)=>{if(typeof J==="string")return xq(B.isAbsolute(J)?J:B.join(q,J));else return J},JJ=(q,J)=>{if(B.isAbsolute(q))return q;return B.join(J,q)},QJ,XJ="stat",ZJ="lstat",d,DJ;var GJ=g(()=>{s();Qq();/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */sq=/\\/g,Uq=/\/\//g,aq=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,rq=/^\.[/\\]/;QJ=Object.freeze(new Set);d=class d extends cq{closed;options;_closers;_ignoredPaths;_throttled;_streams;_symlinkPaths;_watched;_pendingWrites;_pendingUnlinks;_readyCount;_emitReady;_closePromise;_userIgnored;_readyEmitted;_emitRaw;_boundRemove;_nodeFsHandler;constructor(q={}){super();this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let J=q.awaitWriteFinish,X={stabilityThreshold:2000,pollInterval:100},Q={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...q,ignored:q.ignored?T(q.ignored):T([]),awaitWriteFinish:J===!0?X:typeof J==="object"?{...X,...J}:!1};if(qq)Q.usePolling=!0;if(Q.atomic===void 0)Q.atomic=!Q.usePolling;let Z=process.env.CHOKIDAR_USEPOLLING;if(Z!==void 0){let G=Z.toLowerCase();if(G==="false"||G==="0")Q.usePolling=!1;else if(G==="true"||G==="1")Q.usePolling=!0;else Q.usePolling=!!G}let z=process.env.CHOKIDAR_INTERVAL;if(z)Q.interval=Number.parseInt(z,10);let $=0;this._emitReady=()=>{if($++,$>=this._readyCount)this._emitReady=F,this._readyEmitted=!0,process.nextTick(()=>this.emit(C.READY))},this._emitRaw=(...G)=>this.emit(C.RAW,...G),this._boundRemove=this._remove.bind(this),this.options=Q,this._nodeFsHandler=new f(this),Object.freeze(Q)}_addIgnoredPath(q){if(m(q)){for(let J of this._ignoredPaths)if(m(J)&&J.path===q.path&&J.recursive===q.recursive)return}this._ignoredPaths.add(q)}_removeIgnoredPath(q){if(this._ignoredPaths.delete(q),typeof q==="string"){for(let J of this._ignoredPaths)if(m(J)&&J.path===q)this._ignoredPaths.delete(J)}}add(q,J,X){let{cwd:Q}=this.options;this.closed=!1,this._closePromise=void 0;let Z=Zq(q);if(Q)Z=Z.map((z)=>{return JJ(z,Q)});if(Z.forEach((z)=>{this._removeIgnoredPath(z)}),this._userIgnored=void 0,!this._readyCount)this._readyCount=0;return this._readyCount+=Z.length,Promise.all(Z.map(async(z)=>{let $=await this._nodeFsHandler._addToNodeFs(z,!X,void 0,0,J);if($)this._emitReady();return $})).then((z)=>{if(this.closed)return;z.forEach(($)=>{if($)this.add(B.dirname($),B.basename(J||$))})}),this}unwatch(q){if(this.closed)return this;let J=Zq(q),{cwd:X}=this.options;return J.forEach((Q)=>{if(!B.isAbsolute(Q)&&!this._closers.has(Q)){if(X)Q=B.join(X,Q);Q=B.resolve(Q)}if(this._closePath(Q),this._addIgnoredPath(Q),this._watched.has(Q))this._addIgnoredPath({path:Q,recursive:!0});this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let q=[];return this._closers.forEach((J)=>J.forEach((X)=>{let Q=X();if(Q instanceof Promise)q.push(Q)})),this._streams.forEach((J)=>J.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((J)=>J.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=q.length?Promise.all(q).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let q={};return this._watched.forEach((J,X)=>{let Z=(this.options.cwd?B.relative(this.options.cwd,X):X)||zq;q[Z]=J.getChildren().sort()}),q}emitWithAll(q,J){if(this.emit(q,...J),q!==C.ERROR)this.emit(C.ALL,q,...J)}async _emit(q,J,X){if(this.closed)return;let Q=this.options;if(E)J=B.normalize(J);if(Q.cwd)J=B.relative(Q.cwd,J);let Z=[J];if(X!=null)Z.push(X);let z=Q.awaitWriteFinish,$;if(z&&($=this._pendingWrites.get(J)))return $.lastChange=new Date,this;if(Q.atomic){if(q===C.UNLINK)return this._pendingUnlinks.set(J,[q,...Z]),setTimeout(()=>{this._pendingUnlinks.forEach((G,U)=>{this.emit(...G),this.emit(C.ALL,...G),this._pendingUnlinks.delete(U)})},typeof Q.atomic==="number"?Q.atomic:100),this;if(q===C.ADD&&this._pendingUnlinks.has(J))q=C.CHANGE,this._pendingUnlinks.delete(J)}if(z&&(q===C.ADD||q===C.CHANGE)&&this._readyEmitted){let G=(U,x)=>{if(U)q=C.ERROR,Z[0]=U,this.emitWithAll(q,Z);else if(x){if(Z.length>1)Z[1]=x;else Z.push(x);this.emitWithAll(q,Z)}};return this._awaitWriteFinish(J,z.stabilityThreshold,q,G),this}if(q===C.CHANGE){if(!this._throttle(C.CHANGE,J,50))return this}if(Q.alwaysStat&&X===void 0&&(q===C.ADD||q===C.ADD_DIR||q===C.CHANGE)){let G=Q.cwd?B.join(Q.cwd,J):J,U;try{U=await pq(G)}catch(x){}if(!U||this.closed)return;Z.push(U)}return this.emitWithAll(q,Z),this}_handleError(q){let J=q&&q.code;if(q&&J!=="ENOENT"&&J!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||J!=="EPERM"&&J!=="EACCES"))this.emit(C.ERROR,q);return q||this.closed}_throttle(q,J,X){if(!this._throttled.has(q))this._throttled.set(q,new Map);let Q=this._throttled.get(q);if(!Q)throw Error("invalid throttle");let Z=Q.get(J);if(Z)return Z.count++,!1;let z,$=()=>{let U=Q.get(J),x=U?U.count:0;if(Q.delete(J),clearTimeout(z),U)clearTimeout(U.timeoutObject);return x};z=setTimeout($,X);let G={timeoutObject:z,clear:$,count:0};return Q.set(J,G),G}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(q,J,X,Q){let Z=this.options.awaitWriteFinish;if(typeof Z!=="object")return;let z=Z.pollInterval,$,G=q;if(this.options.cwd&&!B.isAbsolute(q))G=B.join(this.options.cwd,q);let U=new Date,x=this._pendingWrites;function j(k){lq(G,(K,N)=>{if(K||!x.has(q)){if(K&&K.code!=="ENOENT")Q(K);return}let O=Number(new Date);if(k&&N.size!==k.size)x.get(q).lastChange=O;let jq=x.get(q);if(O-jq.lastChange>=J)x.delete(q),Q(void 0,N);else $=setTimeout(j,z,N)})}if(!x.has(q))x.set(q,{lastChange:U,cancelWait:()=>{return x.delete(q),clearTimeout($),X}}),$=setTimeout(j,z)}_isIgnored(q,J){if(this.options.atomic&&aq.test(q))return!0;if(!this._userIgnored){let{cwd:X}=this.options,Z=(this.options.ignored||[]).map(Gq(X)),$=[...[...this._ignoredPaths].map(Gq(X)),...Z];this._userIgnored=qJ($,void 0)}return this._userIgnored(q,J)}_isntIgnored(q,J){return!this._isIgnored(q,J)}_getWatchHelpers(q){return new Bq(q,this.options.followSymlinks,this)}_getWatchedDir(q){let J=B.resolve(q);if(!this._watched.has(J))this._watched.set(J,new kq(J,this._boundRemove));return this._watched.get(J)}_hasReadPermissions(q){if(this.options.ignorePermissionErrors)return!0;return Boolean(Number(q.mode)&256)}_remove(q,J,X){let Q=B.join(q,J),Z=B.resolve(Q);if(X=X!=null?X:this._watched.has(Q)||this._watched.has(Z),!this._throttle("remove",Q,100))return;if(!X&&this._watched.size===1)this.add(q,J,!0);this._getWatchedDir(Q).getChildren().forEach((k)=>this._remove(Q,k));let G=this._getWatchedDir(q),U=G.has(J);if(G.remove(J),this._symlinkPaths.has(Z))this._symlinkPaths.delete(Z);let x=Q;if(this.options.cwd)x=B.relative(this.options.cwd,Q);if(this.options.awaitWriteFinish&&this._pendingWrites.has(x)){if(this._pendingWrites.get(x).cancelWait()===C.ADD)return}this._watched.delete(Q),this._watched.delete(Z);let j=X?C.UNLINK_DIR:C.UNLINK;if(U&&!this._isIgnored(Q))this._emit(j,Q);this._closePath(Q)}_closePath(q){this._closeFile(q);let J=B.dirname(q);this._getWatchedDir(J).remove(B.basename(q))}_closeFile(q){let J=this._closers.get(q);if(!J)return;J.forEach((X)=>X()),this._closers.delete(q)}_addPathCloser(q,J){if(!J)return;let X=this._closers.get(q);if(!X)X=[],this._closers.set(q,X);X.push(J)}_readdirp(q,J){if(this.closed)return;let X={type:C.ALL,alwaysStat:!0,lstat:!0,...J,depth:0},Q=i(q,X);return this._streams.add(Q),Q.once(t,()=>{Q=void 0}),Q.once(w,()=>{if(Q)this._streams.delete(Q),Q=void 0}),Q}};DJ={watch:$J,FSWatcher:d}});
|
|
2
|
+
export{Bq as kW,d as lW,$J as mW,DJ as nW,GJ as oW};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ji as j,li as l}from"./cli-1.1.19-grvgykf5.mjs";import{pi as W,vi as i}from"./cli-1.1.19-6pp1614z.mjs";import{Ax as U,Bx as m,DD as L,DQ as s,ED as h,Ev as _,IC as d,MC as E,Mw as B,NC as C,Rv as $,Rw as p,Sv as D,Uw as N,VO as b,VT as G,Vw as g,WO as o,ak as Z,bk as P,ej as Y,fU as r,fj as A,gU as R,hU as f,iU as F,jU as u,kU as t,nz as V,pz as S,tQ as x,uO as M,wO as n}from"./cli-1.1.19-hqbspnvc.mjs";import{i_ as Q,o_ as k}from"./cli-1.1.19-m9vwd2bt.mjs";import{T_ as O,__ as I,uaa as X,vaa as v}from"./cli-1.1.19-dt84yfk2.mjs";import{$qa as K,Pqa as J,yra as T}from"./cli-1.1.19-gw9jb8fv.mjs";import{kta as y,lta as w}from"./cli-1.1.19-cc266ybe.mjs";function Mq(H=new Set){let z=H.size>0;if(u.cache.clear?.(),F.cache.clear?.(),f.cache.clear?.(),Y.cache.clear?.(),W(),x(),!z)N();if(R(null),K(null),b(),_(),G("session_start"),V(),X.clear(),Z(),!z)B();if(Q(),M(),!z)U();J(H),O(),L(),$(),j(),E(),import("./utils-1.1.19-hhq6836h.mjs").then(({clearWebFetchCache:q})=>q()),import("./ToolSearchTool-1.1.19-z4htsqk6.mjs").then(({clearToolSearchDescriptionCache:q})=>q()),import("./loadAgentsDir-1.1.19-j4732ykz.mjs").then(({clearAgentDefinitionsCache:q})=>q()),import("./prompt-1.1.19-kkwb835d.mjs").then(({clearPromptCache:q})=>q())}var c=y(()=>{T();s();A();t();i();p();m();g();P();o();D();l();h();d();n();r();k();I();v();S();C()});
|
|
2
|
+
export{Mq as bi,c as ci};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$x as C,cy as X}from"./cli-1.1.19-hqbspnvc.mjs";import{g4 as W}from"./cli-1.1.19-5kaw3aa5.mjs";import{N6 as I,_6 as J,f7 as V}from"./cli-1.1.19-m8w4as34.mjs";import{Tha as H,mia as T}from"./cli-1.1.19-x6xnsxay.mjs";import{gta as P,kta as Q}from"./cli-1.1.19-cc266ybe.mjs";function v(){let K=C((q)=>q.mainLoopModel),N=C((q)=>q.mainLoopModelForSession),[,O]=z.useReducer((q)=>q+1,0);return z.useEffect(()=>H(O),[]),J(N??K??I())}var z;var Y=Q(()=>{T();X();V();z=P(W(),1)});
|
|
2
|
+
export{v as dd,Y as ed};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{v3 as y,z3 as V}from"./cli-1.1.19-8zwh2ky5.mjs";import{Iba as q,Kba as Q,O_ as p,Q_ as K}from"./cli-1.1.19-dt84yfk2.mjs";import{kta as J}from"./cli-1.1.19-cc266ybe.mjs";function g(){return!!z}async function D(){if(b!==null)return b;return b=!!z,b}function F(){return W||null}async function P(){return(await p(y,["-V"])).code===0}function l(){if(f!==null)return f;let k=process.env.TERM_PROGRAM,B=!!process.env.ITERM_SESSION_ID,H=q.terminal==="iTerm.app";return f=k==="iTerm.app"||B||H,f}async function w(){return(await p(Y,["session","list"])).code===0}var z,W,b=null,f=null,Y="it2";var Z=J(()=>{Q();K();V();z=process.env.TMUX,W=process.env.TMUX_PANE});
|
|
2
|
+
export{g as k3,D as l3,F as m3,P as n3,l as o3,Y as p3,w as q3,Z as r3};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{A2 as k,C2 as w}from"./cli-1.1.19-ztvzhgye.mjs";import{Q8 as v,w8 as j}from"./cli-1.1.19-m8w4as34.mjs";import{aia as d,lia as h,mia as s}from"./cli-1.1.19-x6xnsxay.mjs";import{Vla as q}from"./cli-1.1.19-5eb8a4wn.mjs";import{kta as p}from"./cli-1.1.19-cc266ybe.mjs";function m(){return y()||!!process.env.CLAUDE_BRIDGE_OAUTH_TOKEN}function x(){return m()}async function O(){return x()}async function P(){if(!m())return"Remote Control needs an Anthropic web login (a claude.ai OAuth token with the user:profile scope). Run `/provider` and sign in with your claude.ai account. Note: an inference API key alone is not enough — the bridge token is separate.";return null}function y(){try{return j()}catch{return!1}}function Q(){return d("tengu_bridge_repl_v2",!1)}function R(){return d("tengu_bridge_repl_v2_cse_shim_enabled",!0)}function U(){{let b=h("tengu_bridge_min_version",{minVersion:"0.0.0"});if(b.minVersion&&k("99.0.0",b.minVersion))return`Your version of Claudin (99.0.0) is too old for Remote Control.
|
|
2
|
+
Version ${b.minVersion} or higher is required. Run \`claudin update\` to update.`}return null}function W(){return!1}function X(){return!1}var z=p(()=>{s();v();q();w()});
|
|
3
|
+
export{x as _W,O as $W,P as aX,Q as bX,R as cX,U as dX,W as eX,X as fX,z as gX};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{K as F}from"./cli-1.1.19-mnfgg84d.mjs";import{U as k}from"./cli-1.1.19-h6nqzwdx.mjs";import{_a as x}from"./cli-1.1.19-sbrpsrtp.mjs";import{$a as O}from"./cli-1.1.19-tw6zn01k.mjs";import{Vo as G,Wo as U,Zo as L,_o as d,jU as b,kU as p}from"./cli-1.1.19-hqbspnvc.mjs";import{$U as u,YU as R}from"./cli-1.1.19-p8pd4mmb.mjs";import{Q8 as m,Z4 as Y,d5 as D,g7 as j,h7 as z,j8 as w,k8 as E}from"./cli-1.1.19-m8w4as34.mjs";import{Hga as $,Kga as M,wea as X,xea as B}from"./cli-1.1.19-dt84yfk2.mjs";import{jja as _,lja as I}from"./cli-1.1.19-mrft54r6.mjs";import{ala as K,dla as y}from"./cli-1.1.19-cq5hegwz.mjs";import{Ala as V,Hla as v}from"./cli-1.1.19-eyhpgp73.mjs";import{Nla as J,Pla as N,Vla as C}from"./cli-1.1.19-5eb8a4wn.mjs";import{Ksa as A,ssa as W}from"./cli-1.1.19-awkva6qc.mjs";C();u();p();M();m();d();I();A();y();v();D();B();var T=void 0;function h(q){try{let H=new URL(q);return H.search="",H.toString().replace(/\/$/,"")}catch{return}}async function Z(){if(X())return;if(Y()!=="firstParty")return;try{let q=await W.get("https://api.anthropic.com/mcp-registry/v0/servers?version=latest&visibility=commercial",{timeout:5000}),H=new Set;for(let P of q.data.servers)for(let S of P.server.remotes??[]){let Q=h(S.url);if(Q)H.add(Q)}T=H,K(`[mcp-registry] Loaded ${H.size} official MCP URLs`)}catch(q){K(`Failed to fetch MCP registry: ${V(q)}`,{level:"error"})}}z();U();function Xq(){if(J(process.env.CLAUDIN_EXIT_AFTER_FIRST_RENDER)||N())return;R(),b(),k(),x();let q=$()?.transport;if(q==="bedrock"&&!J(process.env.CLAUDIN_SKIP_BEDROCK_AUTH))E();if(q==="vertex"&&!J(process.env.CLAUDIN_SKIP_VERTEX_AUTH))w();if(L(_(),AbortSignal.timeout(3000),[]),F(),Z(),j(),G.initialize(),!N())O.initialize()}
|
|
2
|
+
export{Xq as I};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import{Wb as qY}from"./cli-1.1.19-er0hdy0x.mjs";import{Nc as LY,Qc as rQ}from"./cli-1.1.19-126eyddd.mjs";import{hi as X0,ii as p6}from"./cli-1.1.19-kc4rvbe3.mjs";import{Ji as IY,Ki as J6}from"./cli-1.1.19-7s1yy832.mjs";import{$A as jY,$m as EZ,$v as pZ,$x as M0,AC as H6,AK as TY,AS as uY,BG as I0,Bu as S0,CG as o9,Cu as GQ,DO as BY,DQ as L6,Du as JY,ES as zY,Eu as lQ,FO as iQ,Fu as FY,GB as MY,HC as RY,HK as fY,HS as vY,IB as G6,IC as N6,It as F0,Jq as iZ,Kp as $9,Kq as cY,LR as kZ,Lp as r6,Lq as FZ,Lt as b0,Mq as PY,Mt as fZ,PR as xZ,Qt as i9,Vv as x0,Wv as u0,Xv as p0,Ym as UZ,Yv as c0,Zv as m0,_L as P9,_v as d0,aB as OY,aM as F9,an as h0,aw as cZ,bB as X6,bw as g0,cw as l0,cy as r9,dw as a0,eM as b9,eS as OZ,ew as n0,fE as NY,fw as i0,gE as nQ,gw as r0,hl as L9,hw as o0,il as u6,iw as s0,jl as z9,jw as t0,kk as KZ,kl as v9,kw as NQ,lM as o6,ll as MZ,mB as HY,ml as Z0,mz as bY,nB as aQ,nk as O0,nl as q9,oI as C0,oQ as hY,ol as XZ,pI as s9,pl as Y0,pz as K6,qE as n,qL as rY,ql as D9,rS as xY,rl as A9,sB as yY,sE as B6,sk as $Y,sl as sY,tL as O6,uB as V6,uK as s,xQ as SY,zC as CY,zQ as kY}from"./cli-1.1.19-hqbspnvc.mjs";import{IX as Q9,MX as T6}from"./cli-1.1.19-cjq368e9.mjs";import{BY as U0,CY as E0,DY as l9,GY as $0,HY as a9,NY as P0,OY as n9,nY as y0,oY as g9}from"./cli-1.1.19-d7wb13f8.mjs";import{DZ as m9,H1 as d9,a1 as p,c1 as b}from"./cli-1.1.19-v619rbr5.mjs";import{c4 as a,d4 as y,e4 as M,f4 as G0}from"./cli-1.1.19-25szxvwt.mjs";import{g4 as c9}from"./cli-1.1.19-5kaw3aa5.mjs";import{Q8 as j6,T7 as iY,l6 as nY,p6 as w6}from"./cli-1.1.19-m8w4as34.mjs";import{$ca as gY,J_ as GY,Jca as E9,L_ as gQ,M$ as a6,Pga as w0,Qca as i6,Sga as p9,Taa as n6,Wga as e,Xaa as Y9,Zda as aY,aba as R6,ada as lY,cda as A6,cha as j0,k$ as y9,kea as _6,raa as RZ,taa as x9,waa as U9,x_ as _Z,y_ as k9}from"./cli-1.1.19-dt84yfk2.mjs";import{nha as N0,vha as B0,zha as S9}from"./cli-1.1.19-nb1256fg.mjs";import{bia as oY,mia as E6}from"./cli-1.1.19-x6xnsxay.mjs";import{cja as Y,dja as S,eja as HZ,fja as D,gja as yZ}from"./cli-1.1.19-ybe27dz9.mjs";import{Ija as _0,Oja as u9,jja as dY,lja as D6,nja as TZ,qja as L0,rja as z0,sja as v0,tja as q0,vja as D0,wja as A0}from"./cli-1.1.19-mrft54r6.mjs";import{Zja as g,aka as jZ}from"./cli-1.1.19-bg1d8zv9.mjs";import{Fka as ZZ,Gka as WY,Kka as PZ,ala as I,dka as Z9,dla as JZ,fka as C6}from"./cli-1.1.19-cq5hegwz.mjs";import{fla as KY,jla as dQ}from"./cli-1.1.19-4hek4kyb.mjs";import{Ala as O9,Bla as sZ,Hla as gZ,mla as VY}from"./cli-1.1.19-eyhpgp73.mjs";import{Fna as V0,Gna as eY,Qoa as mY,gqa as J9,hqa as qZ,iqa as H9,kqa as N9,lqa as Q0,nqa as B9,vra as wY,yra as NZ,zna as BZ}from"./cli-1.1.19-gw9jb8fv.mjs";import{gta as H0,jta as SZ,kta as wZ,lta as nZ}from"./cli-1.1.19-cc266ybe.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.19-2d944pv5.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.19-p1ffejkb.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.19-gy6nfdzs.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};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{kta as M}from"./cli-1.1.19-cc266ybe.mjs";function P(j){return j.message?.role??j.role}function G(j){return j.message?j.message.content:j.content}function K(j){if(!j||typeof j!=="object")return!1;if(j.type==="image")return!0;if(j.type==="tool_result"&&Array.isArray(j.content))return j.content.some((q)=>K(q));return!1}function Q(j){if(!Array.isArray(j))return!1;return j.some((q)=>K(q))}function U(j){if(!Array.isArray(j)||j.length===0)return!1;return j.every((q)=>{let w=q;return w&&typeof w==="object"&&w.type==="tool_result"})}function V(j){let q=j[j.length-1];if(!q||typeof q!=="object")return"user";if(P(q)!=="user")return"agent";if(U(G(q)))return"agent";return"user"}function W(j){return j.some((q)=>Q(G(q)))}function X(j){let q={"x-initiator":V(j)};if(W(j))q["Copilot-Vision-Request"]="true";return q}function Z(j,q={}){return(w,B)=>{let E=new Headers(B?.headers);for(let[z,F]of Object.entries(q))if(!E.has(z))E.set(z,F);try{if(typeof B?.body==="string"){let z=JSON.parse(B.body);if(Array.isArray(z?.messages))for(let[F,L]of Object.entries(X(z.messages)))E.set(F,L)}}catch{}return j(w,{...B,headers:E})}}var Y=()=>{};
|
|
2
|
+
export{V as Oi,W as Pi,X as Qi,Z as Ri,Y as Si};
|