@claudiolabs/claudin 1.1.17 → 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-cc266ybe.mjs +2 -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/dist/help-doctor.txt +3 -3
- package/dist/help-install.txt +2 -2
- package/dist/help-mcp.txt +2 -2
- package/dist/help-plugin.txt +2 -2
- package/dist/help-plugins.txt +2 -2
- package/dist/help.txt +3 -3
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.17-c0szwp8n.mjs +0 -1
- package/dist/chunks/App-1.1.17-02e9gv69.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.17-jxfbym1r.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.17-6yp2beyh.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.17-w9xsetq9.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.17-84z0pr68.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.17-q46af0nw.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.17-ew4a8tt8.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.17-rmqcdxg8.mjs +0 -6
- package/dist/chunks/Doctor-1.1.17-hg2xast7.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.17-9bpc3q6s.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.17-k5e62crs.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.17-dsnkhped.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.17-kvhxeef5.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.17-a4rrxzp6.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.17-4rfmem0t.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.17-e9mp9qde.mjs +0 -1
- package/dist/chunks/REPL-1.1.17-4wy9nbxj.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.17-yqrt4v79.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.17-3sr5b9tz.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.17-dkwbndzq.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.17-f8qa4fjm.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.17-21kb50xj.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.17-0kmr0pvg.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.17-8beq3avk.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.17-z786dzeg.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.17-x2aq5sx0.mjs +0 -1
- package/dist/chunks/add-dir-1.1.17-2s13eqzw.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.17-ct1sy6xb.mjs +0 -1
- package/dist/chunks/agents-1.1.17-550b7p8x.mjs +0 -110
- package/dist/chunks/agents-1.1.17-r5c8tpkr.mjs +0 -3
- package/dist/chunks/api-1.1.17-75x5tmes.mjs +0 -1
- package/dist/chunks/asciicast-1.1.17-79trcjfv.mjs +0 -1
- package/dist/chunks/assistant-1.1.17-dbbtqfan.mjs +0 -1
- package/dist/chunks/auth-1.1.17-8f3fach8.mjs +0 -1
- package/dist/chunks/auth-1.1.17-m8h26316.mjs +0 -1
- package/dist/chunks/autoMode-1.1.17-qc59qrkd.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.17-eget172p.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.17-hn3tt3zt.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.17-v11kpga8.mjs +0 -1
- package/dist/chunks/branch-1.1.17-w3zktkvs.mjs +0 -4
- package/dist/chunks/bridge-1.1.17-x5r3w789.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.17-kce97mnv.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.17-75j54src.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.17-4mqk6cqv.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.17-tnq9hpp2.mjs +0 -1
- package/dist/chunks/btw-1.1.17-45g5jhjr.mjs +0 -1
- package/dist/chunks/buddy-1.1.17-axejc0a1.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.17-x0n3bj9h.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.17-54ab6ndm.mjs +0 -4
- package/dist/chunks/caches-1.1.17-tqxvw7fb.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.17-rrzswj35.mjs +0 -1
- package/dist/chunks/claudemd-1.1.17-y5mkq5gq.mjs +0 -1
- package/dist/chunks/clear-1.1.17-6eyrsqrw.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.17-22ezdweq.mjs +0 -1
- package/dist/chunks/cli-1.1.17-0511dy9y.mjs +0 -2
- package/dist/chunks/cli-1.1.17-06mdd80y.mjs +0 -2
- package/dist/chunks/cli-1.1.17-09c1vkqx.mjs +0 -2
- package/dist/chunks/cli-1.1.17-0d7fthp5.mjs +0 -58
- package/dist/chunks/cli-1.1.17-0p0ak3zs.mjs +0 -2
- package/dist/chunks/cli-1.1.17-18k7783y.mjs +0 -20
- package/dist/chunks/cli-1.1.17-1fvh83yv.mjs +0 -7
- package/dist/chunks/cli-1.1.17-1nxc4dk2.mjs +0 -12
- package/dist/chunks/cli-1.1.17-1v8knfbw.mjs +0 -2
- package/dist/chunks/cli-1.1.17-1w1dgmsf.mjs +0 -5
- package/dist/chunks/cli-1.1.17-2b4keqra.mjs +0 -4
- package/dist/chunks/cli-1.1.17-2bc3gqw5.mjs +0 -6
- package/dist/chunks/cli-1.1.17-2jv9761d.mjs +0 -2
- package/dist/chunks/cli-1.1.17-2pvpn49s.mjs +0 -3
- package/dist/chunks/cli-1.1.17-2spbpwrx.mjs +0 -2
- package/dist/chunks/cli-1.1.17-2szs1chw.mjs +0 -2
- package/dist/chunks/cli-1.1.17-2z1g2hjb.mjs +0 -4
- package/dist/chunks/cli-1.1.17-3bkjnp3z.mjs +0 -25
- package/dist/chunks/cli-1.1.17-3jqe0rga.mjs +0 -3
- package/dist/chunks/cli-1.1.17-3mtgr9ch.mjs +0 -3
- package/dist/chunks/cli-1.1.17-3r1p3ddm.mjs +0 -2
- package/dist/chunks/cli-1.1.17-3sy6b0hb.mjs +0 -4
- package/dist/chunks/cli-1.1.17-3v5m3zqf.mjs +0 -2
- package/dist/chunks/cli-1.1.17-3z8hnad1.mjs +0 -2
- package/dist/chunks/cli-1.1.17-40gj2tc0.mjs +0 -2
- package/dist/chunks/cli-1.1.17-40w0wha0.mjs +0 -2
- package/dist/chunks/cli-1.1.17-44fk8h9v.mjs +0 -6
- package/dist/chunks/cli-1.1.17-4cxy3tsf.mjs +0 -2
- package/dist/chunks/cli-1.1.17-4egkrc4y.mjs +0 -2
- package/dist/chunks/cli-1.1.17-4yvz970v.mjs +0 -2
- package/dist/chunks/cli-1.1.17-545688c0.mjs +0 -2
- package/dist/chunks/cli-1.1.17-5bbnw0z1.mjs +0 -2
- package/dist/chunks/cli-1.1.17-5ckk64dj.mjs +0 -3
- package/dist/chunks/cli-1.1.17-5eapymd7.mjs +0 -25
- package/dist/chunks/cli-1.1.17-5h6k67gj.mjs +0 -39
- package/dist/chunks/cli-1.1.17-5rfxkg0q.mjs +0 -2
- package/dist/chunks/cli-1.1.17-5ytk3hr5.mjs +0 -2
- package/dist/chunks/cli-1.1.17-60mezybh.mjs +0 -2
- package/dist/chunks/cli-1.1.17-62yjss1h.mjs +0 -2
- package/dist/chunks/cli-1.1.17-66c4sw6g.mjs +0 -2
- package/dist/chunks/cli-1.1.17-6e7rvf1a.mjs +0 -2
- package/dist/chunks/cli-1.1.17-6ee0nqae.mjs +0 -2
- package/dist/chunks/cli-1.1.17-6gfvdt7y.mjs +0 -8
- package/dist/chunks/cli-1.1.17-6jzph4h7.mjs +0 -3
- package/dist/chunks/cli-1.1.17-6rx20w90.mjs +0 -2
- package/dist/chunks/cli-1.1.17-6wdwjtdj.mjs +0 -7
- package/dist/chunks/cli-1.1.17-6xnsg3vj.mjs +0 -2
- package/dist/chunks/cli-1.1.17-6yqbrqsj.mjs +0 -4
- package/dist/chunks/cli-1.1.17-787fk73v.mjs +0 -3
- package/dist/chunks/cli-1.1.17-7n4s8n50.mjs +0 -6
- package/dist/chunks/cli-1.1.17-848t1b19.mjs +0 -2
- package/dist/chunks/cli-1.1.17-85fga8dq.mjs +0 -2
- package/dist/chunks/cli-1.1.17-85mcc9n7.mjs +0 -2
- package/dist/chunks/cli-1.1.17-86a50dqm.mjs +0 -2
- package/dist/chunks/cli-1.1.17-8ae45qsd.mjs +0 -6
- package/dist/chunks/cli-1.1.17-8pkspqzx.mjs +0 -2
- package/dist/chunks/cli-1.1.17-8yryp8zt.mjs +0 -2
- package/dist/chunks/cli-1.1.17-91shm790.mjs +0 -2
- package/dist/chunks/cli-1.1.17-937ws80k.mjs +0 -2
- package/dist/chunks/cli-1.1.17-95kegjhq.mjs +0 -2
- package/dist/chunks/cli-1.1.17-9bq6vj3x.mjs +0 -2
- package/dist/chunks/cli-1.1.17-9dv8cb2e.mjs +0 -2
- package/dist/chunks/cli-1.1.17-9nvn8chy.mjs +0 -21
- package/dist/chunks/cli-1.1.17-9pb21bzq.mjs +0 -2
- package/dist/chunks/cli-1.1.17-9pv5wym1.mjs +0 -2
- package/dist/chunks/cli-1.1.17-9q30wadt.mjs +0 -17
- package/dist/chunks/cli-1.1.17-9rtpxyk6.mjs +0 -2
- package/dist/chunks/cli-1.1.17-9wgw338h.mjs +0 -2
- package/dist/chunks/cli-1.1.17-adz6qec3.mjs +0 -2
- package/dist/chunks/cli-1.1.17-amta49a1.mjs +0 -2
- package/dist/chunks/cli-1.1.17-amvnbvkb.mjs +0 -66
- package/dist/chunks/cli-1.1.17-arwr4e36.mjs +0 -2
- package/dist/chunks/cli-1.1.17-av45k1a0.mjs +0 -15
- package/dist/chunks/cli-1.1.17-avc9ck1v.mjs +0 -2
- package/dist/chunks/cli-1.1.17-b1g8n716.mjs +0 -2
- package/dist/chunks/cli-1.1.17-b5btm8nn.mjs +0 -5
- package/dist/chunks/cli-1.1.17-b6178p3e.mjs +0 -2
- package/dist/chunks/cli-1.1.17-bg6qdrwm.mjs +0 -2
- package/dist/chunks/cli-1.1.17-bj81ampw.mjs +0 -3
- package/dist/chunks/cli-1.1.17-brvf3613.mjs +0 -3
- package/dist/chunks/cli-1.1.17-bw27qnmm.mjs +0 -2
- package/dist/chunks/cli-1.1.17-bw4gf7se.mjs +0 -2
- package/dist/chunks/cli-1.1.17-bzw849yw.mjs +0 -2
- package/dist/chunks/cli-1.1.17-c4wdrmzx.mjs +0 -3
- package/dist/chunks/cli-1.1.17-c858dzpc.mjs +0 -2
- package/dist/chunks/cli-1.1.17-cddbmrdk.mjs +0 -2
- package/dist/chunks/cli-1.1.17-cek6be4z.mjs +0 -15
- package/dist/chunks/cli-1.1.17-chsbt03k.mjs +0 -2
- package/dist/chunks/cli-1.1.17-cnp784zh.mjs +0 -2
- package/dist/chunks/cli-1.1.17-ct0r352g.mjs +0 -2
- package/dist/chunks/cli-1.1.17-cvtpmgr1.mjs +0 -16
- package/dist/chunks/cli-1.1.17-d24yw7cv.mjs +0 -50
- package/dist/chunks/cli-1.1.17-d8zh7smn.mjs +0 -3
- package/dist/chunks/cli-1.1.17-d9y6k8vc.mjs +0 -2
- package/dist/chunks/cli-1.1.17-db7epgkw.mjs +0 -2
- package/dist/chunks/cli-1.1.17-dhbj7k9k.mjs +0 -2
- package/dist/chunks/cli-1.1.17-dp5q3hgg.mjs +0 -2
- package/dist/chunks/cli-1.1.17-e8bd5mhc.mjs +0 -2
- package/dist/chunks/cli-1.1.17-egp0jwn1.mjs +0 -6
- package/dist/chunks/cli-1.1.17-ete62cd3.mjs +0 -2
- package/dist/chunks/cli-1.1.17-evytxpaj.mjs +0 -4
- package/dist/chunks/cli-1.1.17-f0f3ww1e.mjs +0 -2
- package/dist/chunks/cli-1.1.17-f29ngxbd.mjs +0 -2
- package/dist/chunks/cli-1.1.17-f4eghwer.mjs +0 -2
- package/dist/chunks/cli-1.1.17-fc8raa73.mjs +0 -2
- package/dist/chunks/cli-1.1.17-fc9ah2rx.mjs +0 -2
- package/dist/chunks/cli-1.1.17-fn3aawry.mjs +0 -2
- package/dist/chunks/cli-1.1.17-fpt9fhj3.mjs +0 -2
- package/dist/chunks/cli-1.1.17-frwjbpkz.mjs +0 -12
- package/dist/chunks/cli-1.1.17-fzsavwtg.mjs +0 -133
- package/dist/chunks/cli-1.1.17-g02c88z9.mjs +0 -2
- package/dist/chunks/cli-1.1.17-g0r7knn3.mjs +0 -9
- package/dist/chunks/cli-1.1.17-g8x1ae0n.mjs +0 -2
- package/dist/chunks/cli-1.1.17-gbx2evhw.mjs +0 -2
- package/dist/chunks/cli-1.1.17-gjjv9pf2.mjs +0 -2
- package/dist/chunks/cli-1.1.17-grwds6h6.mjs +0 -2
- package/dist/chunks/cli-1.1.17-gy86radb.mjs +0 -6
- package/dist/chunks/cli-1.1.17-gz7gazer.mjs +0 -2
- package/dist/chunks/cli-1.1.17-h68j8yr4.mjs +0 -2
- package/dist/chunks/cli-1.1.17-h899gx3g.mjs +0 -59
- package/dist/chunks/cli-1.1.17-hk50rvfx.mjs +0 -2
- package/dist/chunks/cli-1.1.17-hv7vtr92.mjs +0 -2
- package/dist/chunks/cli-1.1.17-j0rsgbr3.mjs +0 -2
- package/dist/chunks/cli-1.1.17-j7w7vk9q.mjs +0 -4
- package/dist/chunks/cli-1.1.17-ja7d18ym.mjs +0 -2
- package/dist/chunks/cli-1.1.17-jbmze4s1.mjs +0 -3
- package/dist/chunks/cli-1.1.17-jd6hwz1t.mjs +0 -18
- package/dist/chunks/cli-1.1.17-jfrmnvzh.mjs +0 -42
- package/dist/chunks/cli-1.1.17-jmhry9pe.mjs +0 -2
- package/dist/chunks/cli-1.1.17-jyzpxwq4.mjs +0 -2
- package/dist/chunks/cli-1.1.17-k2ygh79g.mjs +0 -24
- package/dist/chunks/cli-1.1.17-k4cv7tcx.mjs +0 -2
- package/dist/chunks/cli-1.1.17-k6xg5a3t.mjs +0 -2
- package/dist/chunks/cli-1.1.17-kasvn1wv.mjs +0 -2
- package/dist/chunks/cli-1.1.17-kdycyp8n.mjs +0 -4
- package/dist/chunks/cli-1.1.17-kjk1ddpc.mjs +0 -2
- package/dist/chunks/cli-1.1.17-kk19mmhc.mjs +0 -17
- package/dist/chunks/cli-1.1.17-krb62aen.mjs +0 -2
- package/dist/chunks/cli-1.1.17-mc6hgzsa.mjs +0 -4
- package/dist/chunks/cli-1.1.17-mvgrc9gx.mjs +0 -2
- package/dist/chunks/cli-1.1.17-n2dct122.mjs +0 -2
- package/dist/chunks/cli-1.1.17-n4xn5c5m.mjs +0 -34
- package/dist/chunks/cli-1.1.17-nes161na.mjs +0 -2
- package/dist/chunks/cli-1.1.17-nhn5qa9g.mjs +0 -45
- package/dist/chunks/cli-1.1.17-nr1fn5ws.mjs +0 -2
- package/dist/chunks/cli-1.1.17-p7mq618q.mjs +0 -2
- package/dist/chunks/cli-1.1.17-phaqkjy5.mjs +0 -3
- package/dist/chunks/cli-1.1.17-pmner0m4.mjs +0 -206
- package/dist/chunks/cli-1.1.17-q6fve29k.mjs +0 -2
- package/dist/chunks/cli-1.1.17-q7f9amqd.mjs +0 -2
- package/dist/chunks/cli-1.1.17-qr727b7j.mjs +0 -18
- package/dist/chunks/cli-1.1.17-qwkbwe37.mjs +0 -2
- package/dist/chunks/cli-1.1.17-r47egjp3.mjs +0 -2
- package/dist/chunks/cli-1.1.17-rak849bn.mjs +0 -3
- package/dist/chunks/cli-1.1.17-rgzfxape.mjs +0 -2
- package/dist/chunks/cli-1.1.17-rpac3qey.mjs +0 -2
- package/dist/chunks/cli-1.1.17-rv9n4f0j.mjs +0 -2
- package/dist/chunks/cli-1.1.17-ry9v8zr7.mjs +0 -2
- package/dist/chunks/cli-1.1.17-s0w3hc9t.mjs +0 -4
- package/dist/chunks/cli-1.1.17-s6rzrasx.mjs +0 -2
- package/dist/chunks/cli-1.1.17-s9617g9k.mjs +0 -2
- package/dist/chunks/cli-1.1.17-sa6xwtgz.mjs +0 -1
- package/dist/chunks/cli-1.1.17-sekbxc10.mjs +0 -24
- package/dist/chunks/cli-1.1.17-sf4te5vd.mjs +0 -2
- package/dist/chunks/cli-1.1.17-sh93pnws.mjs +0 -2
- package/dist/chunks/cli-1.1.17-spygywkr.mjs +0 -2
- package/dist/chunks/cli-1.1.17-sqnbm5cb.mjs +0 -2
- package/dist/chunks/cli-1.1.17-ss5f6ezq.mjs +0 -2
- package/dist/chunks/cli-1.1.17-ssjqqbnv.mjs +0 -2
- package/dist/chunks/cli-1.1.17-sx4yg7br.mjs +0 -2
- package/dist/chunks/cli-1.1.17-sxvjn3ne.mjs +0 -2
- package/dist/chunks/cli-1.1.17-t059h154.mjs +0 -2
- package/dist/chunks/cli-1.1.17-tcxq0ah8.mjs +0 -2
- package/dist/chunks/cli-1.1.17-tjtarhk9.mjs +0 -5408
- package/dist/chunks/cli-1.1.17-tkz7x0rj.mjs +0 -2
- package/dist/chunks/cli-1.1.17-vewrwcsz.mjs +0 -2
- package/dist/chunks/cli-1.1.17-vj9h10jw.mjs +0 -2
- package/dist/chunks/cli-1.1.17-vpgxna04.mjs +0 -2
- package/dist/chunks/cli-1.1.17-vya6g1gj.mjs +0 -2
- package/dist/chunks/cli-1.1.17-vzhs0tcz.mjs +0 -2
- package/dist/chunks/cli-1.1.17-w70hp8av.mjs +0 -2
- package/dist/chunks/cli-1.1.17-w8ycz611.mjs +0 -4
- package/dist/chunks/cli-1.1.17-w9jr2baa.mjs +0 -2
- package/dist/chunks/cli-1.1.17-wmy7x7p1.mjs +0 -3
- package/dist/chunks/cli-1.1.17-wpw25vs3.mjs +0 -2
- package/dist/chunks/cli-1.1.17-xmwmqrg5.mjs +0 -2
- package/dist/chunks/cli-1.1.17-xpxk1a24.mjs +0 -2
- package/dist/chunks/cli-1.1.17-xqsq5e1g.mjs +0 -2
- package/dist/chunks/cli-1.1.17-xr6d85ak.mjs +0 -24
- package/dist/chunks/cli-1.1.17-xyvhfz5c.mjs +0 -133
- package/dist/chunks/cli-1.1.17-y590316j.mjs +0 -2
- package/dist/chunks/cli-1.1.17-y9v9t43m.mjs +0 -2
- package/dist/chunks/cli-1.1.17-yc5h2t8c.mjs +0 -2
- package/dist/chunks/cli-1.1.17-yexr9jg1.mjs +0 -2
- package/dist/chunks/cli-1.1.17-ymeaeqf8.mjs +0 -15
- package/dist/chunks/cli-1.1.17-ys4xrvjv.mjs +0 -2
- package/dist/chunks/cli-1.1.17-yzm3tm0n.mjs +0 -2
- package/dist/chunks/cli-1.1.17-z3nzbxwq.mjs +0 -24
- package/dist/chunks/cli-1.1.17-z8hph2r6.mjs +0 -2
- package/dist/chunks/cli-1.1.17-zeqbjpg8.mjs +0 -2
- package/dist/chunks/cli-1.1.17-znjf3r1w.mjs +0 -2
- package/dist/chunks/cli-1.1.17-zs8ffrtz.mjs +0 -9
- package/dist/chunks/cli-1.1.17-zsygz35e.mjs +0 -2
- package/dist/chunks/client-1.1.17-nagqj7bf.mjs +0 -1
- package/dist/chunks/color-1.1.17-p6y05fhc.mjs +0 -1
- package/dist/chunks/compact-1.1.17-pzzrynbb.mjs +0 -3
- package/dist/chunks/config-1.1.17-m2ajzt0e.mjs +0 -1
- package/dist/chunks/config-1.1.17-wmdy8158.mjs +0 -1
- package/dist/chunks/constants-1.1.17-v8sj602z.mjs +0 -1
- package/dist/chunks/context-1.1.17-7e2bk0as.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.17-e84cts6x.mjs +0 -1
- package/dist/chunks/conversation-1.1.17-9xvxk3r2.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.17-fqvd03w0.mjs +0 -1
- package/dist/chunks/copy-1.1.17-easn9kr0.mjs +0 -9
- package/dist/chunks/cost-1.1.17-nxtewzxf.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.17-6ewgn22a.mjs +0 -1
- package/dist/chunks/createSession-1.1.17-86r1zzgv.mjs +0 -1
- package/dist/chunks/debug-1.1.17-z47bgb2r.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.17-jf0axhv5.mjs +0 -1534
- package/dist/chunks/desktop-1.1.17-a995qrj4.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.17-a8w7dp77.mjs +0 -1
- package/dist/chunks/detection-1.1.17-rm57w2ve.mjs +0 -1
- package/dist/chunks/diff-1.1.17-nhrc58mf.mjs +0 -1
- package/dist/chunks/doctor-1.1.17-fbcrp14n.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.17-e8d49da2.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.17-tb2wa4gd.mjs +0 -1
- package/dist/chunks/effort-1.1.17-exyt2hn8.mjs +0 -13
- package/dist/chunks/engine-1.1.17-amrae3h8.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.17-cxcxqyr2.mjs +0 -1
- package/dist/chunks/envUtils-1.1.17-74s3e3r7.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.17-r6fm53e4.mjs +0 -1
- package/dist/chunks/environments-1.1.17-eefk71xc.mjs +0 -1
- package/dist/chunks/errors-1.1.17-f3hxdv36.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.17-fq7g2dra.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.17-b5j6ewkj.mjs +0 -1
- package/dist/chunks/exit-1.1.17-69eys61s.mjs +0 -1
- package/dist/chunks/explorer-1.1.17-9rnyanfh.mjs +0 -1
- package/dist/chunks/export-1.1.17-ftdkrgt6.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.17-4d5r749p.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.17-pfnqg70z.mjs +0 -1
- package/dist/chunks/fast-1.1.17-6fhr21cx.mjs +0 -1
- package/dist/chunks/feedback-1.1.17-xsv4a0hk.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.17-ysw58c2m.mjs +0 -1
- package/dist/chunks/git-1.1.17-1t4mvmwy.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.17-em3pctn6.mjs +0 -1
- package/dist/chunks/goal-1.1.17-b6r6rv34.mjs +0 -4
- package/dist/chunks/growthbook-1.1.17-d41p6v8e.mjs +0 -1
- package/dist/chunks/headless-1.1.17-3gds2arn.mjs +0 -2
- package/dist/chunks/heapdump-1.1.17-42928w6t.mjs +0 -6
- package/dist/chunks/help-1.1.17-1ex6d9m1.mjs +0 -1
- package/dist/chunks/hookChains-1.1.17-4trtr6n3.mjs +0 -3
- package/dist/chunks/hooks-1.1.17-brmzj93f.mjs +0 -1
- package/dist/chunks/hooks-1.1.17-tmmp968z.mjs +0 -79
- package/dist/chunks/ide-1.1.17-7bswgmqh.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.17-f4q4ze0f.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.17-bqseg6s7.mjs +0 -1
- package/dist/chunks/index-1.1.17-1cxekw2k.mjs +0 -2
- package/dist/chunks/index-1.1.17-3bhv85t6.mjs +0 -2
- package/dist/chunks/index-1.1.17-3kw30gq5.mjs +0 -1
- package/dist/chunks/index-1.1.17-41dwzfym.mjs +0 -1
- package/dist/chunks/index-1.1.17-58sa6nbn.mjs +0 -1
- package/dist/chunks/index-1.1.17-5vmgm515.mjs +0 -9
- package/dist/chunks/index-1.1.17-72ghmm5v.mjs +0 -1
- package/dist/chunks/index-1.1.17-9zas5tn3.mjs +0 -23
- package/dist/chunks/index-1.1.17-c7n4hj5n.mjs +0 -1
- package/dist/chunks/index-1.1.17-dg0mbe1h.mjs +0 -1
- package/dist/chunks/index-1.1.17-dzt8xwy0.mjs +0 -1
- package/dist/chunks/index-1.1.17-gwp2t0ev.mjs +0 -5
- package/dist/chunks/index-1.1.17-j516ern1.mjs +0 -1
- package/dist/chunks/index-1.1.17-j5qnmjd0.mjs +0 -30
- package/dist/chunks/index-1.1.17-m909k4gz.mjs +0 -1
- package/dist/chunks/index-1.1.17-mvtaa82m.mjs +0 -1
- package/dist/chunks/index-1.1.17-nntqe0vr.mjs +0 -1
- package/dist/chunks/index-1.1.17-nq9tejwj.mjs +0 -1
- package/dist/chunks/index-1.1.17-pfzch1bc.mjs +0 -1
- package/dist/chunks/index-1.1.17-q2g4m637.mjs +0 -9
- package/dist/chunks/index-1.1.17-s5nfh7xr.mjs +0 -1
- package/dist/chunks/index-1.1.17-tq1x9mdy.mjs +0 -1
- package/dist/chunks/index-1.1.17-vjbktr0m.mjs +0 -1
- package/dist/chunks/init-1.1.17-ezhe261a.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.17-bsr4ggsa.mjs +0 -1
- package/dist/chunks/ink-1.1.17-hnhzzxr4.mjs +0 -1
- package/dist/chunks/insights-1.1.17-8rkjk3qx.mjs +0 -870
- package/dist/chunks/install-1.1.17-bveeekwq.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.17-s7qpq92h.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.17-6p1tq8es.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.17-2n85eb8r.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.17-2qdgnemg.mjs +0 -1
- package/dist/chunks/keybindings-1.1.17-e93j288w.mjs +0 -2
- package/dist/chunks/knowledge-1.1.17-wzqw3mat.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.17-kpebzzy5.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.17-rwrehzjk.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.17-z6xentgs.mjs +0 -1
- package/dist/chunks/log-1.1.17-teh0b8bj.mjs +0 -1
- package/dist/chunks/main-1.1.17-4drs7spn.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.17-01msjcq4.mjs +0 -1
- package/dist/chunks/mcp-1.1.17-c212g273.mjs +0 -17
- package/dist/chunks/mcp-1.1.17-fmad2143.mjs +0 -4
- package/dist/chunks/mcp-1.1.17-vkg3yyj4.mjs +0 -1
- package/dist/chunks/mcpb-1.1.17-2qj85kf9.mjs +0 -1
- package/dist/chunks/memory-1.1.17-xxzfp6m3.mjs +0 -72
- package/dist/chunks/model-1.1.17-6wangfaf.mjs +0 -1
- package/dist/chunks/model-1.1.17-phx3mpre.mjs +0 -2
- package/dist/chunks/node-1.1.17-vwaj3hha.mjs +0 -12
- package/dist/chunks/oauth-1.1.17-2h7zc57g.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.17-x7d7rtnw.mjs +0 -14
- package/dist/chunks/output-style-1.1.17-4dwyxd9d.mjs +0 -1
- package/dist/chunks/package-KQCMZM5L-1.1.17-hz04t8ab.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.17-47ed65x0.mjs +0 -1
- package/dist/chunks/parser-1.1.17-tsm4t6zj.mjs +0 -1
- package/dist/chunks/passes-1.1.17-kvh566r0.mjs +0 -1
- package/dist/chunks/permissions-1.1.17-2s1jj12g.mjs +0 -1
- package/dist/chunks/permissions-1.1.17-b96tjxsb.mjs +0 -3
- package/dist/chunks/plan-1.1.17-fphg1taz.mjs +0 -1
- package/dist/chunks/plist-1.1.17-be3b59s7.mjs +0 -1
- package/dist/chunks/plugin-1.1.17-wjwcjxt0.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.17-y7rehbdx.mjs +0 -1
- package/dist/chunks/plugins-1.1.17-pvbs8x2d.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.17-sz5peb61.mjs +0 -2
- package/dist/chunks/print-1.1.17-2tqpqffd.mjs +0 -57
- package/dist/chunks/process-1.1.17-edae57bn.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.17-8x8av07q.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.17-p2hph3mq.mjs +0 -9
- package/dist/chunks/prompt-1.1.17-33ecsyvx.mjs +0 -1
- package/dist/chunks/prompt-1.1.17-pcxqswhq.mjs +0 -1
- package/dist/chunks/prompts-1.1.17-9s5a4vj5.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.17-eypg73tv.mjs +0 -13
- package/dist/chunks/provider-1.1.17-cq38y5y0.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.17-3mapa580.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.17-v4be9pkn.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.17-7akz78zn.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.17-d8515h81.mjs +0 -26
- package/dist/chunks/registry-1.1.17-vmxj31fp.mjs +0 -1
- package/dist/chunks/release-notes-1.1.17-qfx2ydx0.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.17-bxmeccet.mjs +0 -2
- package/dist/chunks/remote-env-1.1.17-5zk7dhta.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.17-dyyd9gpp.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.17-2w7c374e.mjs +0 -1
- package/dist/chunks/rename-1.1.17-m9npwq9e.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.17-f73jbyc4.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.17-89bw7egj.mjs +0 -1
- package/dist/chunks/resume-1.1.17-zcepac5h.mjs +0 -2
- package/dist/chunks/rewind-1.1.17-sz9gnvjb.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.17-cz7wggw6.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.17-mv4m2dgh.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.17-mzhxrhy6.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.17-0055tx31.mjs +0 -1
- package/dist/chunks/session-1.1.17-58155tdb.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.17-jesa43e4.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.17-v63nh4eq.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.17-db6eb6a0.mjs +0 -1
- package/dist/chunks/settings-1.1.17-r420yrj6.mjs +0 -1
- package/dist/chunks/setup-1.1.17-2c169kta.mjs +0 -12
- package/dist/chunks/sinks-1.1.17-qy1xy52h.mjs +0 -1
- package/dist/chunks/skills-1.1.17-179vy7j6.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.17-2jre48fe.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.17-18vwb94e.mjs +0 -1
- package/dist/chunks/state-1.1.17-jj648yt9.mjs +0 -1
- package/dist/chunks/stats-1.1.17-87688vm6.mjs +0 -6
- package/dist/chunks/status-1.1.17-qfgx5stw.mjs +0 -1
- package/dist/chunks/stickers-1.1.17-6qwzrjbk.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.17-agk55s1k.mjs +0 -1
- package/dist/chunks/tasks-1.1.17-kbw9ds53.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.17-4adaqsmb.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.17-9ts2pfkc.mjs +0 -1
- package/dist/chunks/teleport-1.1.17-bzmdxawh.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.17-dqhqjty9.mjs +0 -1
- package/dist/chunks/theme-1.1.17-85pv1732.mjs +0 -1
- package/dist/chunks/thinkback-1.1.17-hepbvmjv.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.17-v9aftsq7.mjs +0 -1
- package/dist/chunks/toolPool-1.1.17-9czwnxh0.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.17-16zef2se.mjs +0 -1
- package/dist/chunks/tools-1.1.17-k9mnpc70.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.17-jh3tsws1.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.17-nccrmbyj.mjs +0 -69
- package/dist/chunks/types-1.1.17-h1a2dqs3.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.17-qcn2523f.mjs +0 -4
- package/dist/chunks/update-1.1.17-qrbvhrw3.mjs +0 -72
- package/dist/chunks/upgrade-1.1.17-5r2kvcht.mjs +0 -1
- package/dist/chunks/upload-1.1.17-9wg0zeh8.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.17-g55vw948.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.17-3z57zpg6.mjs +0 -1
- package/dist/chunks/usage-1.1.17-fpqbestm.mjs +0 -1
- package/dist/chunks/util-1.1.17-afkkcjd2.mjs +0 -1
- package/dist/chunks/utils-1.1.17-pmry0sgf.mjs +0 -1
- package/dist/chunks/vim-1.1.17-favcd60m.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.17-8xwhaj6s.mjs +0 -13
- package/dist/chunks/watcher-1.1.17-1jrrt63m.mjs +0 -1
- package/dist/chunks/wiki-1.1.17-gsgtzkbe.mjs +0 -132
- package/dist/chunks/workflows-1.1.17-d88y5b3p.mjs +0 -1
- package/dist/chunks/worktree-1.1.17-aym2veht.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.17-e80q0zp5.mjs +0 -1
- package/dist/chunks/wrapper-1.1.17-mqzzgw84.mjs +0 -7
- /package/dist/chunks/{cli-1.1.17-wraax29e.mjs → cli-1.1.19-4tssw0qf.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.17-zhbqhsnh.mjs → cli-1.1.19-caqq41md.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.17-vecw37vp.mjs → cli-1.1.19-er0hdy0x.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.17-jbg9ze8v.mjs → cli-1.1.19-j2p355hg.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.17-83bggr64.mjs → cli-1.1.19-jepkkjbh.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.17-v5nv0awt.mjs → cli-1.1.19-mnfgg84d.mjs} +0 -0
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{f9 as P5,h9 as R7}from"./cli-1.1.17-1nxc4dk2.mjs";import{j9 as A,k9 as r8}from"./cli-1.1.17-44fk8h9v.mjs";import{B9 as a2,D9 as D7}from"./cli-1.1.17-5rfxkg0q.mjs";import{A_ as H0,B_ as H1,Bba as M1,Cba as p7,Cfa as $4,Dga as s2,Gga as L,Jga as J0,M_ as v2,P_ as o8,Pba as z2,Rfa as B4,Tda as P,Tea as c,Tfa as J4,Vda as x5,Vga as k,Wfa as N5,Xfa as $Z,Yda as N,Yea as n2,Zea as S,a$ as P2,afa as D,bha as n0,c$ as e8,eca as x8,gfa as e1,jea as x0,nda as o1,q_ as A4,r_ as t,s_ as K5,sea as s4,t_ as D0,u_ as C4,uea as ZZ,uga as l2,v_ as s5,vea as S1,vfa as $0,wda as B8,wea as m7,xfa as Z4,xga as G4,yfa as G8}from"./cli-1.1.17-pmner0m4.mjs";import{$ha as S0,bia as h4,lia as T1}from"./cli-1.1.17-gz7gazer.mjs";import{Pja as A2,Qja as l4,Rja as B0,Tja as G7,Uja as H7,Wja as U,Xja as h0}from"./cli-1.1.17-zeqbjpg8.mjs";import{$ja as z5,Yja as x}from"./cli-1.1.17-h68j8yr4.mjs";import{$ka as z,Fka as U2,Jka as a8,Nka as n5,Rka as S7,bla as m0,cla as Z0}from"./cli-1.1.17-2bc3gqw5.mjs";import{Bla as z1,Gla as x1,zla as g}from"./cli-1.1.17-w8ycz611.mjs";import{Jla as N2,Mla as K,Ola as u,Qla as v5,Ula as d}from"./cli-1.1.17-db7epgkw.mjs";import{Loa as r1,Lpa as X1,Mpa as V1,Npa as W1,Opa as j1,Poa as y4,Uoa as y0,Voa as Z5,_pa as j5,npa as C,una as Y0,upa as I1,vna as D1,xoa as d1,xra as Q0}from"./cli-1.1.17-d9y6k8vc.mjs";import{Wra as h,Xra as t0}from"./cli-1.1.17-fpt9fhj3.mjs";import{Jsa as Y5,rsa as v}from"./cli-1.1.17-sekbxc10.mjs";import{gta as _0,ita as c5,jta as R,kta as r}from"./cli-1.1.17-6ee0nqae.mjs";function C2(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:q,reject:X,context:V}=$.shift();try{let j=await Z.apply(V,Y);q(j)}catch(j){X(j)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((q,X)=>{$.push({args:Y,resolve:q,reject:X,context:this}),Q()})}}var u2=()=>{};function p2(Z,$){return Z.find((J)=>J.includes($))??null}async function m2(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=v5(),J=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.17-58sa6nbn.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.17-dg0mbe1h.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function sZ(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=v5(),J=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.17-58sa6nbn.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.17-dg0mbe1h.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function w7(Z){return Z.startsWith("anthropic.")}function K7(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function L7(Z){let $=K7(Z);for(let J of F7)if($.startsWith(`${J}.anthropic.`))return J;return}function rZ(Z,$){let J=L7(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(w7(Z))return`${$}.${Z}`;return Z}var g2,aZ,F7;var c2=R(()=>{t0();o();d();n0();R7();g2=h(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),q=await Z.send(Y);if(q.inferenceProfileSummaries)J.push(...q.inferenceProfileSummaries);Q=q.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw k(Y),Y}});aZ=h(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let q=Y.models[0];if(!q?.modelArn)return null;let X=q.modelArn.lastIndexOf("/");return X>=0?q.modelArn.substring(X+1):q.modelArn}catch($){return k($),null}});F7=["us","eu","apac","global"]});var O5,E5,_5,y5,h5,I5,T5,M5,S5,l0,s0,a0,U0,f5,A5,C5,v0,d2;var u5=R(()=>{O5={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},E5={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},_5={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},y5={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},h5={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},I5={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},T5={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},M5={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},S5={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},l0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},s0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},a0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},U0={firstParty:"claude-opus-5",bedrock:"anthropic.claude-opus-5",vertex:"claude-opus-5",foundry:"claude-opus-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},f5={firstParty:"claude-fable-5",bedrock:"anthropic.claude-fable-5",vertex:"claude-fable-5",foundry:"claude-fable-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},A5={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},C5={firstParty:"claude-sonnet-5",bedrock:"anthropic.claude-sonnet-5",vertex:"claude-sonnet-5",foundry:"claude-sonnet-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},v0={haiku35:_5,haiku45:y5,sonnet35:E5,sonnet37:O5,sonnet40:h5,sonnet45:I5,sonnet46:A5,sonnet5:C5,opus40:T5,opus41:M5,opus45:S5,opus46:l0,opus47:s0,opus48:a0,opus5:U0,fable5:f5},d2=Object.fromEntries(Object.entries(v0).map(([Z,$])=>[$.firstParty,Z]))});function i2(){return Object.values(r0)}var r0,g5;var p5=R(()=>{r0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},g5=Object.fromEntries(Object.values(r0).map((Z)=>[Z.id,Z.name]))});var O0={};c5(O0,{prefetchCopilotModelCatalog:()=>i5,normalizeBareCopilotModelId:()=>d5,getEffectiveCopilotModels:()=>v7,getCopilotDisplayName:()=>P7,getCatalogCopilotMaxOutputTokens:()=>_7,getCatalogCopilotContextWindow:()=>E7,fetchCopilotModelCatalog:()=>o2,copilotModelSupportsAnthropicMessages:()=>O7,_setCopilotCatalogForTesting:()=>y7});function P0(){let Z=L();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function r2(){if(!e)return!1;let Z=P0();return Z!==null&&z0===Z}function k7(){if(t2)return;t2=!0,n2(()=>{let Z=P0();if(Z&&z0!==Z)i5()})}function d5(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function N7(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function U7(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},Y=Z.capabilities?.supports??{},q=Y.vision===!0||Boolean(Q.vision),X=Y.adaptive_thinking===!0||Array.isArray(Y.reasoning_effort)||typeof Y.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:q,reasoning:X,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:q?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:N7(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function o2(){let Z=L();if(Z?.transport!=="github_copilot")return null;if(l2(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),b7);try{let q=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...a2},signal:Q.signal});if(!q.ok)return null;let X=await q.json();if(!Array.isArray(X?.data))return null;let V=new Set,j=[];for(let G of X.data){let H=U7(G);if(!H||V.has(H.model.id))continue;V.add(H.model.id),j.push(H)}return j.length>0?j:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function i5(){k7();let Z=P0();if(!Z)return;if(e&&z0!==Z)e=null,z0=null;if(o0){if(m5===Z)return;o0.finally(()=>i5());return}m5=Z,o0=o2().then(($)=>{if($&&P0()===Z)e=$,z0=Z}).finally(()=>{o0=null,m5=null})}function v7(){if(r2()){let Z=e?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return i2()}function e0(Z){if(!r2())return;let $=d5(Z);return e.find((J)=>J.model.id===$)}function P7(Z){let $=d5(Z);return e0($)?.model.name??r0[$]?.name}function O7(Z){let $=e0(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function E7(Z){return e0(Z)?.model.limit.context}function _7(Z){return e0(Z)?.model.limit.output}function y7(Z){e=Z,z0=Z?P0():null}var b7=5000,e=null,z0=null,o0=null,m5=null,t2=!1;var E0=R(()=>{J0();D7();s2();$0();Z0();p5()});function W(){let Z=L();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function W$(){return W()==="firstParty"}function h7(Z){let $=L();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(E0(),_0(O0)),Y=Q(J);if(Y!==null)return Y}catch{}return!0}function j$(Z){let $=L()?.transport??"anthropic";if(!I7.has($))return!1;if($==="github_copilot"&&h7(Z))return!1;return!0}function z$(){return W()}function x$(){let Z=L();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var I7;var i=R(()=>{J0();I7=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function $5(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of Z1)J[Q]=v0[Q][$];return J}async function T7(){let Z=$5("bedrock"),$;try{$=await g2()}catch(Q){return k(Q),Z}if(!$?.length)return Z;let J={};for(let Q of Z1){let Y=v0[Q].firstParty;J[Q]=p2($,Y)||Z[Q]}return J}function e2(Z){let $=N().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let q=d2[Q];if(q&&Y)J[q]=Y}return J}function J5(Z){let $;try{$=N().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function M7(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}$1()}function B(){let Z=y0();if(Z===null)return M7(),e2($5(W()));return e2(Z)}async function D$(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}await $1()}var Z1,$1;var Q5=R(()=>{Q0();n0();u2();x0();c2();u5();i();Z1=Object.keys(v0);$1=C2(async()=>{if(y0()!==null)return;try{let Z=await T7();Z5(Z)}catch(Z){k(Z)}})});function k$(Z){return Z}function N$(){return!1}function J1(){return null}function Q1(){return!1}var Y1=()=>{};async function y$(){let $=D().oauthAccount?.accountUuid,J=I0();if(!$||!J)return;let Q=`${U().BASE_API_URL}/api/claude_cli_profile`;try{return(await v.get(Q,{headers:{"x-api-key":J,"anthropic-beta":B0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){k(Y)}}async function G0(Z){let $=`${U().BASE_API_URL}/api/oauth/profile`;try{return(await v.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){k(J)}}var t5=R(()=>{Y5();h0();o();$0();n0()});import{mkdirSync as f7,writeFileSync as A7}from"fs";function g7(Z,$,J){if(!K(process.env.CLAUDE_CODE_REMOTE))return;try{f7(q5,{recursive:!0,mode:448}),A7(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${g(Q)}`,{level:"error"})}}function q1(Z,$){try{let Q=n5().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!z1(J))z(`Failed to read ${$} from ${Z}: ${g(J)}`,{level:"debug"});return null}}function B1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let q=Q();if(q!==void 0)return q;let X=process.env[Z];if(!X){let j=q1($,J);return Y(j),j}let V=parseInt(X,10);if(Number.isNaN(V))return z(`${Z} must be a valid file descriptor number, got: ${X}`,{level:"error"}),Y(null),null;try{let j=n5(),G=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,H=j.readFileSync(G,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),Y(null),null;return z(`Successfully read ${J} from file descriptor ${V}`),Y(H),g7($,H,J),H}catch(j){z(`Failed to read ${J} from file descriptor ${V}: ${g(j)}`,{level:"error"});let G=q1($,J);return Y(G),G}}function X5(){return B1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:C7,label:"OAuth token",getCached:X1,setCached:V1})}function l5(){return B1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:u7,label:"API key",getCached:W1,setCached:j1})}var q5="/home/claude/.claude/remote",C7,u7,C$;var G1=R(()=>{Q0();Z0();d();x1();S7();C7=`${q5}/.oauth_token`,u7=`${q5}/.api_key`,C$=`${q5}/.session_ingress_token`});async function R1(){if(process.platform==="darwin"){let Z=t();if((await H0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function V5(Z){return Z.slice(-20)}var w1=R(()=>{H1();s5()});function d$(Z){return Z?.name==="CredentialsProviderError"}function F1(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function a5(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function K1(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var L1=R(()=>{Z0()});class M{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();static getInstance(){if(!M.instance)M.instance=new M;return M.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(M.instance)M.instance.changed.clear(),M.instance=null}}var b1=R(()=>{D1()});var W5="claude-code-20250219",k1="interleaved-thinking-2025-05-14",T0="context-1m-2025-08-07",N1="context-management-2025-06-27",U1="structured-outputs-2025-12-15",r5="web-search-2025-03-05",v1="advanced-tool-use-2025-11-20",P1="tool-search-tool-2025-10-19",l$="effort-2025-11-24",s$="task-budgets-2026-03-13",O1="prompt-caching-scope-2026-01-05",a$="extended-cache-ttl-2025-04-11",r$="fast-mode-2026-02-01",E1="redact-thinking-2026-02-12",_1="thinking-token-count-2026-05-13",y1="token-efficient-tools-2026-03-28",o$="afk-mode-2026-01-31",e$="advisor-tool-2026-03-01",o5,ZJ;var e5=R(()=>{o5=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),ZJ=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function I(){if(W()!=="firstParty")return!1;return!K(process.env.CLAUDIN_DISABLE_FAST_MODE)}function f1(){if(!I())return!1;return d7()===null}function c7(Z,$){switch(Z){case"free":return $==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function d7(){if(W()!=="firstParty")return"Fast mode is not available on third-party providers";if(!I())return"Fast mode is not available";let Z=S0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!M1()&&S0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(C()&&j5()&&!I1()){if(!P("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(E.status==="disabled"){if(E.reason==="network_error"||E.reason==="unknown"){if(K(process.env.CLAUDIN_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=c7(E.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function KJ(){let Z=B5(X0());return"opus"+(J2()&&!Z?"[1m]":"")}function LJ(Z){if(!I())return!1;if(!f1())return!1;if(!A1(Z))return!1;let $=N();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function A1(Z){if(!I())return!1;let $=Z??f0(),J=T($).toLowerCase();return J.includes("opus-5")||J.includes("opus-4-7")||J.includes("opus-4-6")}function i7(){if(R0.status==="cooldown"&&Date.now()>=R0.resetAt){if(I()&&!Z2)z("Fast mode cooldown expired, re-enabling fast mode"),Z2=!0,u1.emit();R0={status:"active"}}return R0}function kJ(Z,$){if(!I())return;R0={status:"cooldown",resetAt:Z,reason:$},Z2=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("",{cooldown_duration_ms:J,cooldown_reason:$}),C1.emit(Z,$)}function NJ(){R0={status:"active"}}function UJ(){if(E.status==="disabled")return;E={status:"disabled",reason:"preference"},x5("userSettings",{fastMode:void 0}),S((Z)=>({...Z,penguinModeOrgEnabled:!1})),$2.emit(!1)}function t7(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function n7(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function PJ(Z){let $=t7(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("",{overage_disabled_reason:Z??"unknown"}),!n7(Z))x5("userSettings",{fastMode:void 0}),S((J)=>({...J,penguinModeOrgEnabled:!1}));g1.emit($)}function l7(){return i7().status==="cooldown"}function OJ(Z,$){let J=I()&&f1()&&!!$&&A1(Z);if(J&&l7())return"cooldown";if(J)return"on";return"off"}async function s7(Z){let $=`${U().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":B0}:{"x-api-key":Z.apiKey};return(await v.get($,{headers:J})).data}function _J(){if(!I())return;if(E.status!=="pending")return;E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function yJ(){if(S1())return;if(!I())return;if(M0)return z("Fast mode prefetch in progress, returning in-flight promise"),M0;let Z=I0();if(!(w()?.accessToken&&q0())&&!Z){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-h1<a7){z("Skipping fast mode prefetch, fetched recently");return}h1=J;let Q=async()=>{let q=w(),X=q?.accessToken&&q0()?{accessToken:q.accessToken}:Z?{apiKey:Z}:null;if(!X)throw Error("No auth available");return s7(X)};async function Y(){try{let q;try{q=await Q()}catch(V){if(v.isAxiosError(V)&&(V.response?.status===401||V.response?.status===403&&typeof V.response?.data==="string"&&V.response.data.includes("OAuth token has been revoked"))){let G=w()?.accessToken;if(G)await Q2(G),q=await Q();else throw V}else throw V}let X=E.status!=="pending"?E.status==="enabled":D().penguinModeOrgEnabled;if(E=q.enabled?{status:"enabled"}:{status:"disabled",reason:q.disabled_reason??"preference"},X!==q.enabled){if(!q.enabled)x5("userSettings",{fastMode:void 0});S((V)=>({...V,penguinModeOrgEnabled:q.enabled})),$2.emit(q.enabled)}z(`Org fast mode: ${q.enabled?"enabled":`disabled (${q.disabled_reason??"preference"})`}`)}catch(q){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${E.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${q}`,{level:"error"}),x("",{})}finally{M0=null}}return M0=Y(),M0}var FJ="Opus 5",R0,Z2=!1,C1,u1,DJ,bJ,g1,vJ,E,$2,EJ,a7=30000,h1=0,M0=null;var p1=R(()=>{Y5();h0();T1();Q0();z5();o();p7();$0();Z0();d();w0();i();m7();x0();D1();R0={status:"active"},C1=Y0(),u1=Y0(),DJ=C1.subscribe,bJ=u1.subscribe;g1=Y0(),vJ=g1.subscribe;E={status:"pending"},$2=Y0(),EJ=$2.subscribe});function J8(Z){for(let $ of $8)if($.pattern.test(Z))return $.cost;return}function q2(Z){if(I()&&Z)return i1;return n}function X2(Z){if(I()&&Z)return i1;return Y2[F(U0.firstParty)]??n}function Q8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+Y+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function Y8(Z,$){let J=b(Z);if(J===F(l0.firstParty)||J===F(s0.firstParty)||J===F(a0.firstParty)){let Y=$.speed==="fast";return q2(Y)}if(J===F(U0.firstParty))return X2($.speed==="fast");let Q=Y2[J];if(!Q){let Y=J8(Z);if(Y)return Y;return q8(Z,J),Y2[b(f0())]??Z8}return Q}function q8(Z,$){x("",{model:Z,shortName:$}),d1()}function X8(Z,$){let J=Y8(Z,$);return Q8(J,$)}function AJ(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return X8(Z,J)}function c1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function V2(Z){return`${c1(Z.inputTokens)}/${c1(Z.outputTokens)} per Mtok`}var F0,m1,n,r7,i1,o7,e7,Z8,$8,Y2;var t1=R(()=>{z5();Q0();p1();u5();w0();F0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},m1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},n={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},r7={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},i1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},o7={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},e7={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},Z8=n,$8=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];Y2={[F(_5.firstParty)]:o7,[F(y5.firstParty)]:e7,[F(E5.firstParty)]:F0,[F(O5.firstParty)]:F0,[F(h5.firstParty)]:F0,[F(I5.firstParty)]:F0,[F(A5.firstParty)]:F0,[F(C5.firstParty)]:F0,[F(T5.firstParty)]:m1,[F(M5.firstParty)]:m1,[F(S5.firstParty)]:n,[F(l0.firstParty)]:n,[F(s0.firstParty)]:n,[F(a0.firstParty)]:n,[F(U0.firstParty)]:n,[F(f5.firstParty)]:r7}});function p(Z){return V8.includes(Z)}function K0(Z){return W8.includes(Z)}var V8,W8;var W2=R(()=>{V8=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];W8=["sonnet","opus","haiku"]});function j8(Z,$){if(Z.includes($))return!0;if(p(Z))return T(Z).toLowerCase().includes($);return!1}function n1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function z8(Z,$){let J=p(Z)?T(Z).toLowerCase():Z;if(n1(J,$))return!0;if(!$.startsWith("claude-")&&n1(J,`claude-${$}`))return!0;return!1}function l1(Z,$){for(let J of $){if(K0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let Y=Q+Z.length;if(Y===J.length||J[Y]==="-")return!0}return!1}function s1(Z){let $=N()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=J5(Z).trim().toLowerCase(),q=J.map((X)=>X.trim().toLowerCase());if(q.includes(Y)){if(!K0(Y)||!l1(Y,q))return!0}for(let X of q)if(K0(X)&&!l1(X,q)&&j8(Y,X))return!0;if(p(Y)){let X=T(Y).toLowerCase();if(q.includes(X))return!0}for(let X of q)if(!K0(X)&&p(X)){if(T(X).toLowerCase()===Y)return!0}for(let X of q)if(!K0(X)&&!p(X)){if(z8(Y,X))return!0}return!1}var a1=R(()=>{x0();W2();w0();Q5()});function G5(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function L0(){let Z=L();if(!Z?.model)return;return Z4(Z.model)}function W3(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=L0();if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"codexspark";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return Q4()}function j3(Z){return Z===B().opus40||Z===B().opus41||Z===B().opus45||Z===B().opus46||Z===B().opus47||Z===B().opus48||Z===B().opus5}function B5(Z){let $=b(Z);return $.includes("opus-5")||$.includes("sonnet-5")||$.includes("fable-5")}function j2(){let Z,$=r1();if($!==void 0)Z=$;else{let J=N()||{},Q=G5(J.model),q=L0()||Q||void 0,X=e1(),V=G5(X.activeModelForProject);if(V){let j=$4()?.id,G=X.activeModelForProjectProfileId;Z=G===void 0||G===j?V:q}else Z=q}if(Z&&!s1(Z))return;return Z}function z3(){let Z=j2();if(Z!==void 0&&Z!==null)return T(Z);return Y4()}function H8(){return X0()}function X0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=L0();if(W()==="gemini")return Z||"gemini-2.5-pro";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.7";if(W()!=="firstParty")return B().opus46;return B().opus5}function A0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=L0();if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"mistral-medium-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5";if(W()!=="firstParty")return B().sonnet45;return B().sonnet5}function Q4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=L0();if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return B().haiku45}function x3(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(j2()==="opusplan"&&$==="plan"&&!Q)return X0();if(j2()==="haiku"&&$==="plan")return A0();return J}function f0(){let Z=L0();if(W()==="github"){let $=N()||{};return G5($.model)||Z||"github:copilot"}if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(H5()||R5()){let $=X0();return $+(J2()&&!B5($)?"[1m]":"")}return A0()}function Y4(){return T(f0())}function F(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-5"))return"claude-opus-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-5"))return"claude-sonnet-5";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function b(Z){return F(J5(Z))}function R8(Z=!1){if(H5()||R5())return`Opus 5 · Most capable for complex work${Z?w8(!0):""}`;return"Sonnet 5 · Best for everyday tasks"}function B3(Z){if(Z==="opusplan")return"Opus 5 in plan mode, else Sonnet 5";return X4(T(Z))}function G3(Z){if(W()!=="firstParty")return"";let $=V2(q2(Z));return` ·${Z?` (${z2})`:""} ${$}`}function w8(Z){if(W()!=="firstParty")return"";let $=V2(X2(Z));return` ·${Z?` (${z2})`:""} ${$}`}function J2(){if(V0()||G2()||W()!=="firstParty")return!1;if(_()&&f()===null)return!1;return!0}function H3(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(p(Z))return o1(Z);return X4(Z)}function q4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(g5[Z])return g5[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(E0(),_0(O0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case B().fable5:return"Fable 5";case B().opus5:return"Opus 5";case B().opus48:return"Opus 4.8";case B().opus48+"[1m]":return"Opus 4.8 (1M context)";case B().opus47:return"Opus 4.7";case B().opus47+"[1m]":return"Opus 4.7 (1M context)";case B().opus46:return"Opus 4.6";case B().opus46+"[1m]":return"Opus 4.6 (1M context)";case B().opus45:return"Opus 4.5";case B().opus41:return"Opus 4.1";case B().opus40:return"Opus 4";case B().sonnet5:return"Sonnet 5";case B().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case B().sonnet46:return"Sonnet 4.6";case B().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case B().sonnet45:return"Sonnet 4.5";case B().sonnet40:return"Sonnet 4";case B().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case B().sonnet37:return"Sonnet 3.7";case B().sonnet35:return"Sonnet 3.5";case B().haiku45:return"Haiku 4.5";case B().haiku35:return"Haiku 3.5";default:return null}}function X4(Z){let $=q4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function R3(Z){let $=q4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function T(Z){let $=G5(Z);if(!$)return A0();let J=$.toLowerCase(),Q=l(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(p(Y)){let q=(X)=>Q&&!B5(X)?X+"[1m]":X;switch(Y){case"opusplan":return q(A0());case"sonnet":return q(A0());case"haiku":return q(Q4());case"opus":return q(X0());case"best":return H8();default:}}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5")return B().fable5;if(W()==="firstParty"&&K8(Y)&&L8())return X0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function w3(Z,$){if(l(Z)||!l($))return Z;if(x2(T(Z)))return Z+"[1m]";return Z}function K8(Z){return F8.includes(Z)}function L8(){return!K(process.env.CLAUDIN_DISABLE_LEGACY_MODEL_REMAP)}function F3(Z){if(Z===null){if(_())return`Default (${R8()})`;return`Default (${Y4()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function K3(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=b(Z);if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-5"))return"Opus 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-5"))return"Sonnet 5";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function L3(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function D3(Z){let $=b(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")||$.includes("sonnet-5")}var F8;var w0=R(()=>{Q0();J0();$0();J4();o();B2();d();G8();Q5();t1();x0();i();x8();a1();W2();B8();p5();F8=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function H2(Z){return}async function k3(){}var V4=()=>{};function N8(Z,$={}){if($.isPro??(k8.test(Z)||W4.has(Z)))return!1;if(D8.has(Z))return!0;if(W4.has(Z))return!1;let Q=Z.match(b8);return Q?Number.parseFloat(Q[1])>5.4:!1}function U3(){return w5.filter((Z)=>N8(Z.id,{isPro:Z.isPro}))}var w5,D8,W4,b8,k8,j4,z4;var x4=R(()=>{w5=[{id:"gpt-5.6-sol",label:"gpt-5.6-sol",description:"GPT-5.6 Sol - flagship, high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-terra",label:"gpt-5.6-terra",description:"GPT-5.6 Terra with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-luna",label:"gpt-5.6-luna",description:"GPT-5.6 Luna with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.5",label:"gpt-5.5",description:"GPT-5.5 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.4",label:"gpt-5.4",description:"GPT-5.4 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.3-codex",label:"gpt-5.3-codex",description:"GPT-5.3 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.3-codex-spark",label:"gpt-5.3-codex-spark",description:"GPT-5.3 Codex Spark for fast tool loops"},{id:"codexspark",label:"codexspark",description:"GPT-5.3 Codex Spark alias for fast tool loops"},{id:"gpt-5.2-codex",label:"gpt-5.2-codex",description:"GPT-5.2 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-max",label:"gpt-5.1-codex-max",description:"GPT-5.1 Codex Max for deep reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-mini",label:"gpt-5.1-codex-mini",description:"GPT-5.1 Codex Mini - faster, cheaper"},{id:"gpt-5.5-mini",label:"gpt-5.5-mini",description:"GPT-5.5 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000},{id:"gpt-5.4-mini",label:"gpt-5.4-mini",description:"GPT-5.4 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000}],D8=new Set(w5.filter((Z)=>!Z.isPro).map((Z)=>Z.id)),W4=new Set(["gpt-5.5-pro"]),b8=/^gpt-(\d+\.\d+)/,k8=/-pro$/;j4=Object.fromEntries(w5.filter((Z)=>Z.contextInput!==void 0).map((Z)=>[Z.id,Z.contextInput])),z4=Object.fromEntries(w5.filter((Z)=>Z.contextOutput!==void 0).map((Z)=>[Z.id,Z.contextOutput]))});var K4={};c5(K4,{prefetchOpenAICompatibleModels:()=>T8,getDiscoveredContextWindow:()=>U8,discoverOpenAICompatibleModelOptions:()=>F4});function U8(Z){return R4.get(Z)}function v8(){return(L()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function w4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function P8(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function O8(Z){let $=L()?.apiKey?.trim();if(!$)return{};if(P8(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(w4(Z))J["api-key"]=$;return J}function E8(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&w4(Z)?(q)=>{try{let X=new URL(q);return X.searchParams.set("api-version",Q),X.toString()}catch{return q}}:(q)=>q;if($===J)return[Y($)];return[Y($),Y(J)]}function _8(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),Y=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${Y}`}catch{return null}}function y8(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function h8(Z,$){let J=new Set;for(let Q of Z)try{let Y=await v.get(Q,{headers:$,timeout:H4}),q=[];for(let X of Y.data?.data??[]){let V=X.id?.trim();if(!V||J.has(V))continue;J.add(V);let j=X.name?.trim()||V,G=X.context_length??null;if(G&&G>0)R4.set(V,G);let H=G?` · ${y8(G)}`:"";q.push({value:V,label:j,description:`${V}${H}`})}if(q.length>0)return q.sort((X,V)=>{let j=String(X.value).split("/")[0]??"",G=String(V.value).split("/")[0]??"",H=j.localeCompare(G);return H!==0?H:String(X.value).localeCompare(String(V.value))}),q}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function I8(Z,$){try{let J=await v.get(Z,{headers:$,timeout:H4}),Q=new Set;return(J.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function F4(){if(W()!=="openai")return[];let Z=v8(),$=O8(Z),J=await h8(E8(Z),$);if(J.length>0)return J;let Q=_8(Z);if(Q)return I8(Q,$);return[]}function T8(){if(C0)return C0;return C0=(async()=>{if(!G4()?.startsWith("openai:"))return;try{let $=await F4();if($.length>0)B4($)}catch{}finally{C0=null}})(),C0}var H4=5000,R4,C0=null;var L4=R(()=>{Y5();J0();s2();Z0();i();J4();R4=new Map});function b4(Z,$,J){let Q=L()?.model?.trim();if(Q&&Q!==J){let q=`${Q}:${J}`;if($[q]!==void 0)return $[q];if(Z[q]!==void 0)return Z[q]}let Y=D4($,J);if(Y!==void 0)return Y;return D4(Z,J)}function D4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,Y)=>Y.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function k4(Z){try{let{getDiscoveredContextWindow:J}=(L4(),_0(K4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=b4(M8,f8,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(E0(),_0(O0));return J(Z)}catch{return}}function N4(Z){let $=b4(S8,A8,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(E0(),_0(O0));return J(Z)}catch{return}}var M8,S8,f8,A8;var U4=R(()=>{J0();x4();M8={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,...j4,"gpt-5.5-nano":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,k3:1048576,"kimi-for-coding":262144,"kimi-for-coding-highspeed":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},S8={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,...z4,"gpt-5.5-nano":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,k3:32768,"kimi-for-coding":32768,"kimi-for-coding-highspeed":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},f8=(()=>{try{let Z=process.env.CLAUDIN_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),A8=(()=>{try{let Z=process.env.CLAUDIN_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function v4(){let Z=L()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return K(process.env.CLAUDIN_DISABLE_1M_CONTEXT)}function l(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function x2(Z){if(V0())return!1;let $=b(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")}function i3(Z,$){if(l(Z))return 1e6;if(v4()){let Q=k4(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/providers/model/openaiContextWindows.ts for accurate compaction."),C8}let J=H2(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>R2&&V0())return R2;return J.max_input_tokens}if(!V0()&&(b(Z).includes("fable-5")||b(Z).includes("sonnet-5")||b(Z).includes("opus-5")))return 1e6;if($?.includes(T0)&&x2(Z))return 1e6;if(p8(Z))return 1e6;return R2}function p8(Z){if(V0())return!1;if(l(Z))return!1;if(!b(Z).includes("sonnet-4-6"))return!1;return D().clientDataCache?.coral_reef_sonnet==="true"}function t3(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function n3(Z){let $,J;if(v4()){let q=N4(Z);if(q!==void 0)return{default:q,upperLimit:q}}let Q=b(Z);if(Q.includes("fable-5")||Q.includes("opus-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=u8,J=g8;let Y=H2(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var R2=200000,C8,m3=20000,u8=32000,g8=64000,c3=8000,d3=64000;var B2=R(()=>{e5();J0();$0();d();w0();V4();U4();C8=(()=>{let Z=parseInt(process.env.CLAUDIN_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var m8,P4;var O4=R(()=>{t0();i();m8=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],P4=h((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of m8){let Y=process.env[Q.modelEnvVar],q=process.env[Q.capabilitiesEnvVar];if(!Y||q===void 0)continue;if(J!==Y.toLowerCase())continue;return q.toLowerCase().split(",").map((X)=>X.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function c8(Z){let $=[],J=[];for(let Q of Z)if(I4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function x9(Z){if(!Z||Z.length===0)return;if(_()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=c8(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${I4.join(", ")}`);return $.length>0?$:void 0}function E4(Z){let $=P4(Z,"interleaved_thinking");if($!==void 0)return $;let J=b(Z),Q=W();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function d8(Z){let $=b(Z);return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function i8(Z){let $=b(Z),J=W();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function t8(Z){let $=b(Z),J=W();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function B9(Z){let $=b(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function G9(){let Z=W();if(Z==="vertex"||Z==="bedrock")return P1;return v1}function _4(){return(W()==="firstParty"||W()==="foundry")&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function H9(){if(K(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function R9(Z,$){let J=[...T4(Z)];if($?.isAgenticQuery){if(!J.includes(W5))J.push(W5)}let Q=y4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function M4(){w2.cache?.clear?.(),T4.cache?.clear?.(),n8.cache?.clear?.()}var I4,w2,T4,n8;var S4=R(()=>{t0();T1();Q0();e5();h0();o();B2();d();w0();O4();i();x0();I4=[T0];w2=h((Z)=>{let $=[],J=b(Z).includes("haiku"),Q=W(),Y=_4();if(!J)$.push(W5);if(_())$.push(B0);if(l(Z))$.push(T0);if(!K(process.env.DISABLE_INTERLEAVED_THINKING)&&E4(Z))$.push(k1);if(Y&&E4(Z)&&!C()&&N().showThinkingSummaries!==!0)$.push(E1),$.push(_1);let q=i8(Z);if(_4()&&q)$.push(N1);let X=h4("tengu_tool_pear"),V=!X&&(K(process.env.CLAUDIN_JSON_TOOL_USE)||S0("tengu_amber_json_tools",!1));if(Y&&t8(Z)&&X)$.push(U1);if(Y&&V)$.push(y1);if(Q==="vertex"&&d8(Z))$.push(r5);if(Q==="foundry")$.push(r5);if(Y)$.push(O1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((j)=>j.trim()).filter(Boolean));return $}),T4=h((Z)=>{let $=w2(Z);if(W()==="bedrock")return $.filter((J)=>!o5.has(J));return $}),n8=h((Z)=>{return w2(Z).filter((J)=>o5.has(J))})});import{execFile as l8}from"child_process";function f4(Z){return new Promise(($)=>{l8("security",["find-generic-password","-a",K5(),"-w","-s",Z],{encoding:"utf-8",timeout:s8},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function D9(){if(process.platform!=="darwin"||F5||u())return;let Z=f4(t(A4)),$=f4(t());F5=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)C4(J.stdout);if(!Q.timedOut)F2={stdout:Q.stdout}})}async function b9(){if(F5)await F5}function u4(){return F2}function K2(){F2=null}var s8=1e4,F2=null,F5=null;var g4=R(()=>{d();s5()});function L2(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let q=setTimeout((V,j,G)=>{V?.removeEventListener("abort",j),G()},Z,$,X,Q);function X(){if(clearTimeout(q),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",X,{once:!0}),J?.unref)q.unref()})}var p4=()=>{};function U9(){return m4}function c4(){m4.clear()}var m4;var d4=R(()=>{m4=new Map});var uZ={};c5(uZ,{validateForceLoginOrg:()=>CZ,saveOAuthTokensIfNeeded:()=>X7,saveApiKey:()=>S2,removeApiKey:()=>vZ,refreshGcpCredentialsIfNeeded:()=>M2,refreshGcpAuth:()=>Y7,refreshAwsAuth:()=>J7,refreshAndGetAwsCredentials:()=>j0,prefetchGcpCredentialsIfSafe:()=>bZ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>kZ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>zZ,isUsing3PServices:()=>k5,isTeamSubscriber:()=>hZ,isTeamPremiumSubscriber:()=>R5,isProSubscriber:()=>G2,isOverageProvisioningAllowed:()=>_Z,isOtelHeadersHelperFromProjectOrLocalSettings:()=>z7,isMaxSubscriber:()=>H5,isGcpAuthRefreshFromProjectSettings:()=>T2,isEnterpriseSubscriber:()=>IZ,isCustomApiKeyApproved:()=>UZ,isConsumerSubscriber:()=>fZ,isClaudeAISubscriber:()=>_,isAwsCredentialExportFromProjectSettings:()=>h2,isAwsAuthRefreshFromProjectSettings:()=>_2,isAnthropicAuthEnabled:()=>N0,is1PApiCustomer:()=>EZ,hasProfileScope:()=>q0,hasOpusAccess:()=>yZ,hasAnthropicApiKeyAuth:()=>XZ,handleOAuth401Error:()=>Q2,getSubscriptionType:()=>f,getSubscriptionName:()=>W7,getRateLimitTier:()=>V7,getOtelHeadersFromHelper:()=>MZ,getOauthAccountInfo:()=>b5,getConfiguredApiKeyHelper:()=>s,getClaudeAIOAuthTokensAsync:()=>p0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>O2,getApiKeyHelperElapsedMs:()=>VZ,getApiKeyFromConfigOrMacOSKeychain:()=>U5,getApiKeyFromApiKeyHelperCached:()=>b2,getApiKeyFromApiKeyHelper:()=>$7,getAnthropicApiKeyWithSource:()=>c0,getAnthropicApiKey:()=>I0,getAccountInformation:()=>AZ,clearOAuthTokenCache:()=>f2,clearGcpCredentialsCache:()=>DZ,clearAwsCredentialsCache:()=>RZ,clearApiKeyHelperCache:()=>jZ,checkGcpCredentialsValid:()=>Q7,checkAndRefreshOAuthTokenIfNeeded:()=>d0,calculateApiKeyHelperTTL:()=>Z7});import{exec as o4}from"child_process";import{mkdir as JZ,stat as QZ}from"fs/promises";import{join as YZ}from"path";function D5(){return K(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function N0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=k5(),J=(N()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=c0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let q=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!D5()||q&&!D5())}function O2(){if(u()){if(s())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D5())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(X5()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(s()&&!D5())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(k0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function I0(){let{key:Z}=c0();return Z}function XZ(){try{let{key:Z,source:$}=c0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function c0(Z={}){let $=(()=>{let X=L();if(X?.transport!=="anthropic")return;let V=X.apiKey?.trim();return V&&V.length>0?V:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(s())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:b2(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=$;if(j5()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(K(process.env.CI)){let X=l5();if(X)return{key:X,source:"ANTHROPIC_API_KEY"};if(!k5()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!k5())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&D().customApiKeyResponses?.approved?.includes(V5(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=l5();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(s()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:b2(),source:"apiKeyHelper"}}let q=U5();if(q)return q;return{key:null,source:"none"}}function s(){if(u())return P("flagSettings")?.apiKeyHelper;return(N()||{}).apiKeyHelper}function e4(){let Z=s();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function E2(){return(N()||{}).awsAuthRefresh}function _2(){let Z=E2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function y2(){return(N()||{}).awsCredentialExport}function h2(){let Z=y2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function Z7(){let Z=process.env.CLAUDIN_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDIN_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return qZ}function VZ(){let Z=m?.startedAt;return Z?Date.now()-Z:0}async function $7(Z){if(!s())return null;let $=Z7();if(y){if(Date.now()-y.timestamp<$)return y.value;if(!m)m={promise:i4(Z,!1,b0),startedAt:null};return y.value}if(m)return m.promise;return m={promise:i4(Z,!0,b0),startedAt:Date.now()},m.promise}async function i4(Z,$,J){try{let Q=await WZ(Z);if(J!==b0)return Q;if(Q!==null)y={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==b0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(A.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&y&&y.value!==" ")return y={...y,timestamp:Date.now()},y.value;return y={value:" ",timestamp:Date.now()}," "}finally{if(J===b0)m=null}}async function WZ(Z){let $=s();if(!$)return null;if(e4()){if(!c()&&!Z){let q=Error("Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("apiKeyHelper invoked before trust check",q),x("",{}),null}}let J=await H0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,q=J.stderr?.trim();throw Error(q?`${Y}: ${q}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function b2(){return y?.value??null}function jZ(){b0++,y=null,m=null}function zZ(Z){if(e4()&&!c())return;$7(Z)}async function BZ(){let Z=E2();if(!Z)return!1;if(_2()){if(!c()&&!C()){let J=Error("Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("awsAuthRefresh invoked before trust check",J),x("",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await a5(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return J7(Z)}}function J7(Z){z("Running AWS auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=o4(Z,{timeout:GZ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.addOutput(q),z(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.setError(q),z(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=q==="SIGTERM"?A.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):A.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}async function HZ(){let Z=y2();if(!Z)return null;if(h2()){if(!c()&&!C()){let J=Error("Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("awsCredentialExport invoked before trust check",J),x("",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await a5(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await H0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=U2($.stdout.trim());if(!F1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=A.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function RZ(){j0.cache.clear()}function I2(){return(N()||{}).gcpAuthRefresh}function T2(){let Z=I2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function Q7(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=L2(wZ).then(()=>{throw new x7("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function KZ(){let Z=I2();if(!Z)return!1;if(T2()){if(!c()&&!C()){let J=Error("Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("gcpAuthRefresh invoked before trust check",J),x("",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await Q7())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return Y7(Z)}function Y7(Z){z("Running GCP auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=o4(Z,{timeout:LZ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.addOutput(q),z(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.setError(q),z(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=q==="SIGTERM"?A.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):A.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}function DZ(){M2.cache.clear()}function bZ(){if(!I2())return;if(T2()){if(!c()&&!C())return}M2()}function kZ(){let Z=E2(),$=y2();if(!Z&&!$)return;if(_2()||h2()){if(!c()&&!C())return}j0(),B()}function NZ(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function S2(Z){if(!NZ(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await q7();let $=!1;if(process.platform==="darwin")try{let Q=t(),Y=K5(),q=Buffer.from(Z,"utf-8").toString("hex"),X=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${q}"
|
|
2
|
-
`;await H0("security",["-i"],{input:X,reject:!1}),x("",{}),$=!0}catch(Q){k(Q),x("",{error:g(Q)}),x("",{})}else x("",{});let J=V5(Z);S((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),U5.cache.clear?.(),K2()}function UZ(Z){let $=D(),J=V5(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function vZ(){await q7(),S((Z)=>({...Z,primaryApiKey:void 0})),U5.cache.clear?.(),K2()}async function q7(){try{await R1()}catch(Z){k(Z)}}function X7(Z){if(!k0(Z.scopes))return x("",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return x("",{}),{success:!0};let $=N5(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let q=$.update(Q);if(q.success)x("",{storageBackend:J});else x("",{storageBackend:J});return w.cache?.clear?.(),M4(),c4(),q}catch(Q){return k(Q),x("",{storageBackend:J,error:g(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function f2(){w.cache?.clear?.(),D0()}async function PZ(){try{let{mtimeMs:Z}=await QZ(YZ(N2(),".credentials.json"));if(Z!==t4)t4=Z,f2()}catch{w.cache?.clear?.()}}function Q2(Z){let $=D2.get(Z);if($)return $;let J=OZ(Z).finally(()=>{D2.delete(Z)});return D2.set(Z,J),J}async function OZ(Z){f2();let $=await p0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("",{}),!0;return d0(0,!0)}async function p0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||X5())return w();try{let J=(await N5().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return k(Z),null}}function d0(Z=0,$=!1){if(Z===0&&!$){if(u0)return u0;return u0=k2(Z,$).finally(()=>{u0=null}),u0}return k2(Z,$)}async function k2(Z,$){await PZ();let Q=w();if(!$){if(!Q?.refreshToken||!g0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!k0(Q.scopes))return!1;w.cache?.clear?.(),D0();let Y=await p0();if(!Y?.refreshToken||!g0(Y.expiresAt))return!1;let q=N2();await JZ(q,{recursive:!0});let X;try{x("",{}),X=await s4(q),x("",{})}catch(V){if(V.code==="ELOCKED"){if(Z<5)return x("",{retryCount:Z+1}),await L2(1000+Math.random()*1000),k2(Z+1,$);return x("",{maxRetries:5}),!1}return k(V),x("",{error:g(V)}),!1}try{w.cache?.clear?.(),D0();let V=await p0();if(!V?.refreshToken||!g0(V.expiresAt))return x("",{}),!1;x("",{});let j=await a4(V.refreshToken,{scopes:k0(V.scopes)?void 0:V.scopes});return X7(j),w.cache?.clear?.(),D0(),!0}catch(V){k(V),w.cache?.clear?.(),D0();let j=await p0();if(j&&!g0(j.expiresAt))return x("",{}),!0;return!1}finally{x("",{}),await X(),x("",{})}}function _(){if(!N0())return!1;return k0(w()?.scopes)}function q0(){return w()?.scopes?.includes(l4)??!1}function EZ(){{let Z=L()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(_())return!1;return!0}function b5(){return N0()?D().oauthAccount:void 0}function _Z(){let $=b5()?.billingType;if(!_()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function yZ(){let Z=f();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function f(){if(Q1())return J1();if(!N0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function H5(){return f()==="max"}function hZ(){return f()==="team"}function R5(){return f()==="team"&&V7()==="default_claude_max_5x"}function IZ(){return f()==="enterprise"}function G2(){return f()==="pro"}function V7(){if(!N0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function W7(){switch(f()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function k5(){let Z=L()?.transport;if(!Z)return!1;return Z!=="anthropic"}function j7(){return(N()||{}).otelHeadersHelper}function z7(){let Z=j7();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function MZ(){let Z=j7();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||TZ.toString());if(L5&&Date.now()-n4<$)return L5;if(z7()){if(!c())return{}}try{let J=v2(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=U2(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[Y,q]of Object.entries(Q))if(typeof q!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof q}`);return L5=Q,n4=Date.now(),L5}catch(J){throw k(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${g(J)}`)),J}}function SZ(Z){return Z==="max"||Z==="pro"}function fZ(){let Z=f();return _()&&Z!==null&&SZ(Z)}function AZ(){if(W()!=="firstParty")return;let{source:$}=O2(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(_())J.subscription=W7();else J.tokenSource=$;let{key:Q,source:Y}=c0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let X=b5()?.organizationName;if(X)J.organization=X}let q=b5()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&q)J.email=q;return J}async function CZ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!N0())return{valid:!0};let Z=P("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await d0();let $=w();if(!$)return{valid:!0};let{source:J}=O2(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await G0($.accessToken);if(!Y?.organization)return{valid:!1,message:`Unable to verify organization for the current authentication token.
|
|
3
|
-
This machine requires organization ${Z} but the profile could not be fetched.
|
|
4
|
-
This may be a network error, or the token may lack the user:profile scope required for
|
|
5
|
-
verification (tokens from 'claude setup-token' do not include this scope).
|
|
6
|
-
Try again, or obtain a full-scope token via 'claude auth login'.`};let q=Y.organization.uuid;if(q===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
|
|
7
|
-
different organization than required by this machine's managed settings.
|
|
8
|
-
|
|
9
|
-
Required organization: ${Z}
|
|
10
|
-
Token organization: ${q}
|
|
11
|
-
|
|
12
|
-
Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${q},
|
|
13
|
-
but this machine requires organization ${Z}.
|
|
14
|
-
|
|
15
|
-
Please log in with the correct organization: claude auth login`}}var qZ=300000,y=null,m=null,b0=0,xZ=3600000,GZ=180000,j0,wZ=5000,FZ=3600000,LZ=180000,M2,U5,w,t4=0,D2,u0=null,L5=null,n4=0,TZ=1740000,x7;var o=R(()=>{r8();H1();t0();h0();z5();Q5();i();Q0();J0();Y1();r4();t5();G1();w1();L1();b1();S4();$0();Z0();d();x1();o8();ZZ();n0();e8();$Z();g4();s5();x0();p4();a8();d4();j0=P2(async()=>{let Z=await BZ(),$=await HZ();if(Z||$)await K1();return $},xZ);M2=P2(async()=>{return await KZ()},FZ);U5=h(()=>{if(u())return null;if(process.platform==="darwin"){let $=u4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=t();try{let Q=v2(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){k(Q)}}}let Z=D();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=h(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=X5();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=N5().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return k($),null}});D2=new Map;x7=class x7 extends Error{}});function k0(Z){return Boolean(Z?.includes(A2))}function gZ(Z){return Z?.split(" ").filter(Boolean)??[]}function HQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:q,orgUUID:X,loginHint:V,loginMethod:j}){let G=Y?U().CLAUDE_AI_AUTHORIZE_URL:U().CONSOLE_AUTHORIZE_URL,H=new URL(G);H.searchParams.append("code","true"),H.searchParams.append("client_id",U().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?U().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=q?[A2]:H7;if(H.searchParams.append("scope",W0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),X)H.searchParams.append("orgUUID",X);if(V)H.searchParams.append("login_hint",V);if(j)H.searchParams.append("login_method",j);return H.toString()}async function RQ(Z,$,J,Q,Y=!1,q){let X={grant_type:"authorization_code",code:Z,redirect_uri:Y?U().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:U().CLIENT_ID,code_verifier:J,state:$};if(q!==void 0)X.expires_in=q;let V=await v.post(U().TOKEN_URL,X,{headers:{"Content-Type":"application/json"},timeout:15000});if(V.status!==200)throw Error(V.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${V.status}): ${V.statusText}`);return x("",{}),V.data}async function a4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:U().CLIENT_ID,scope:(($?.length)?$:G7).join(" ")};try{let Q=await v.post(U().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:q,refresh_token:X=Z,expires_in:V}=Y,j=Date.now()+V*1000,G=gZ(Y.scope);x("",{});let H=D(),W0=w(),O=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await pZ(q);if(O&&H.oauthAccount){let a={};if(O.displayName!==void 0)a.displayName=O.displayName;if(typeof O.hasExtraUsageEnabled==="boolean")a.hasExtraUsageEnabled=O.hasExtraUsageEnabled;if(O.billingType!==null)a.billingType=O.billingType;if(O.accountCreatedAt!==void 0)a.accountCreatedAt=O.accountCreatedAt;if(O.subscriptionCreatedAt!==void 0)a.subscriptionCreatedAt=O.subscriptionCreatedAt;if(Object.keys(a).length>0)S((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...a}:i0.oauthAccount}))}return{accessToken:q,refreshToken:X,expiresAt:j,scopes:G,subscriptionType:O?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:O?.rateLimitTier??W0?.rateLimitTier??null,profile:O?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=v.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function wQ(Z){let $=await v.get(U().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!D().oauthAccount)throw Error("OAuth account information not found in config");S((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),x("",{org_role:J.organization_role})}async function FQ(Z){try{let $=await v.post(U().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await S2(J),x("",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function g0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function pZ(Z){let $=await G0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let Y={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)Y.displayName=$.account.display_name;if($?.account?.created_at)Y.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)Y.subscriptionCreatedAt=$.organization.subscription_created_at;return x("",{}),{...Y,rawProfile:$}}async function KQ(){let $=D().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let Y=(await G0(J))?.organization?.uuid;if(!Y)return null;return Y}async function LQ(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!D().oauthAccount)B7({accountUuid:Z,emailAddress:$,organizationUuid:J})}await d0();let Y=D();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!_()||!q0())return!1;let q=w();if(q?.accessToken){let X=await G0(q.accessToken),V=X?.account,j=X?.organization;if(V){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return B7({accountUuid:V.uuid,emailAddress:V.email??"",organizationUuid:j?.uuid,displayName:V.display_name||void 0,hasExtraUsageEnabled:j?.has_extra_usage_enabled??!1,billingType:j?.billing_type??void 0,accountCreatedAt:V.created_at,subscriptionCreatedAt:j?.subscription_created_at??void 0}),!0}}return!1}function B7({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:V}){let j={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:V};if(Q)j.displayName=Q;S((G)=>{if(G.oauthAccount?.accountUuid===j.accountUuid&&G.oauthAccount?.emailAddress===j.emailAddress&&G.oauthAccount?.organizationUuid===j.organizationUuid&&G.oauthAccount?.displayName===j.displayName&&G.oauthAccount?.hasExtraUsageEnabled===j.hasExtraUsageEnabled&&G.oauthAccount?.billingType===j.billingType&&G.oauthAccount?.accountCreatedAt===j.accountCreatedAt&&G.oauthAccount?.subscriptionCreatedAt===j.subscriptionCreatedAt)return G;return{...G,oauthAccount:j}})}var r4=R(()=>{Y5();z5();h0();o();$0();Z0();t5()});
|
|
16
|
-
export{D9 as G4,b9 as H4,g4 as I4,C2 as J4,u2 as K4,sZ as L4,aZ as M4,w7 as N4,L7 as O4,rZ as P4,c2 as Q4,l0 as R4,U0 as S4,v0 as T4,u5 as U4,i5 as V4,v7 as W4,E0 as X4,W as Y4,W$ as Z4,h7 as _4,j$ as $4,z$ as a5,x$ as b5,i as c5,B as d5,D$ as e5,Q5 as f5,k$ as g5,N$ as h5,Y1 as i5,y$ as j5,G0 as k5,t5 as l5,k0 as m5,gZ as n5,HQ as o5,RQ as p5,a4 as q5,wQ as r5,FQ as s5,g0 as t5,pZ as u5,KQ as v5,LQ as w5,B7 as x5,r4 as y5,C$ as z5,g7 as A5,q1 as B5,G1 as C5,V5 as D5,w1 as E5,d$ as F5,L1 as G5,M as H5,b1 as I5,T0 as J5,N1 as K5,U1 as L5,l$ as M5,s$ as N5,O1 as O5,a$ as P5,r$ as Q5,E1 as R5,o$ as S5,e$ as T5,ZJ as U5,e5 as V5,I as W5,f1 as X5,d7 as Y5,FJ as Z5,KJ as _5,LJ as $5,A1 as a6,DJ as b6,bJ as c6,i7 as d6,kJ as e6,NJ as f6,UJ as g6,vJ as h6,PJ as i6,l7 as j6,OJ as k6,EJ as l6,_J as m6,yJ as n6,p1 as o6,F0 as p6,r7 as q6,o7 as r6,e7 as s6,q2 as t6,X8 as u6,AJ as v6,V2 as w6,t1 as x6,V8 as y6,W2 as z6,s1 as A6,a1 as B6,W3 as C6,j3 as D6,B5 as E6,j2 as F6,z3 as G6,H8 as H6,X0 as I6,A0 as J6,Q4 as K6,x3 as L6,f0 as M6,Y4 as N6,F as O6,b as P6,R8 as Q6,B3 as R6,G3 as S6,w8 as T6,J2 as U6,H3 as V6,q4 as W6,X4 as X6,R3 as Y6,T as Z6,w3 as _6,L8 as $6,F3 as a7,K3 as b7,L3 as c7,D3 as d7,w0 as e7,k3 as f7,V4 as g7,U3 as h7,x4 as i7,F4 as j7,T8 as k7,L4 as l7,m3 as m7,c3 as n7,d3 as o7,V0 as p7,l as q7,i3 as r7,p8 as s7,t3 as t7,n3 as u7,B2 as v7,P4 as w7,O4 as x7,x9 as y7,t8 as z7,B9 as A7,G9 as B7,_4 as C7,H9 as D7,T4 as E7,n8 as F7,R9 as G7,M4 as H7,S4 as I7,L2 as J7,p4 as K7,U9 as L7,c4 as M7,d4 as N7,N0 as O7,O2 as P7,I0 as Q7,XZ as R7,c0 as S7,s as T7,_2 as U7,h2 as V7,Z7 as W7,VZ as X7,$7 as Y7,b2 as Z7,jZ as _7,zZ as $7,J7 as a8,j0 as b8,RZ as c8,T2 as d8,Q7 as e8,Y7 as f8,M2 as g8,DZ as h8,bZ as i8,kZ as j8,U5 as k8,S2 as l8,UZ as m8,vZ as n8,X7 as o8,w as p8,f2 as q8,Q2 as r8,p0 as s8,d0 as t8,_ as u8,q0 as v8,EZ as w8,b5 as x8,_Z as y8,yZ as z8,f as A8,H5 as B8,hZ as C8,R5 as D8,IZ as E8,G2 as F8,V7 as G8,W7 as H8,k5 as I8,z7 as J8,MZ as K8,fZ as L8,AZ as M8,CZ as N8,uZ as O8,o as P8};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import{uc as y2,vc as iq}from"./cli-1.1.17-kasvn1wv.mjs";import{Bc as aq,wc as h4,xc as i0,yc as h0,zc as X2}from"./cli-1.1.17-0p0ak3zs.mjs";import{Cc as _0,Fc as nq}from"./cli-1.1.17-znjf3r1w.mjs";import{$p as $2,$x as V2,AG as S,BG as a2,Bq as Sz,Br as N2,CG as pq,Cr as xq,RG as Vz,SG as Yq,TG as Xz,UG as yz,VG as Kz,WG as Wq,Xp as gz,Yp as xz,Zp as cz,_p as lz,aq as G0,bq as L4,by as lq,cq as pz,dq as vz,eq as Oq,fq as I4,gx as G2,hq as tz,hx as Y2,iq as J2,ix as W2,jx as m2,kq as rz,kx as cq,nI as o4,nq as jz,oI as i2,oq as bq,pq as Oz,qG as L0,qI as vq,qq as Uz,rG as s4,rI as dq,rq as Iz,sq as Pz,tq as J0,uq as b4,vq as Hq,wq as P4,yq as Tz,zq as Z2}from"./cli-1.1.17-tjtarhk9.mjs";import{AY as a,CY as fq,OY as R2,PY as gq}from"./cli-1.1.17-yexr9jg1.mjs";import{$0 as w,G1 as l4,b1 as N}from"./cli-1.1.17-h899gx3g.mjs";import{H2 as p4,I2 as v4,J2 as d4,K2 as n4,L2 as a4,M2 as n2,P2 as i4,T2 as t4,U2 as Q2,V2 as r4}from"./cli-1.1.17-nr1fn5ws.mjs";import{b4 as N0,c4 as $,d4 as y,e4 as x0}from"./cli-1.1.17-545688c0.mjs";import{f4 as U0}from"./cli-1.1.17-40gj2tc0.mjs";import{E4 as p0,F4 as Fz}from"./cli-1.1.17-2pvpn49s.mjs";import{N6 as a0,V4 as c4,X4 as d2,e7 as Cq}from"./cli-1.1.17-cvtpmgr1.mjs";import{$fa as c0,Afa as n,Cfa as v,Dfa as n0,Dga as Aq,Ffa as P0,Gfa as w4,Hfa as R0,Ifa as Q0,Mfa as $0,Nfa as B4,Pfa as j4,Tfa as x4,Yfa as X4,Zfa as Nz,_fa as Gz,aga as y4,bga as Yz,cga as V4,dga as Wz,ega as mz,fga as Gq,gga as O4,hga as Hz,iga as U4,kga as Lz,mga as q2,nga as r0,w_ as F0,wfa as z2,x_ as Sq,xfa as M0,yfa as kq,zfa as t0}from"./cli-1.1.17-pmner0m4.mjs";import{Ola as t,Ula as l0}from"./cli-1.1.17-db7epgkw.mjs";import{fta as O0,gta as Tq,jta as d}from"./cli-1.1.17-6ee0nqae.mjs";function r2(z,q=G4,R){let J=n().find((m)=>m.provider==="openai"&&m.extras?.githubToken!==void 0);if(J){if(!Q0(J.id,{provider:"openai",name:J.name,baseUrl:R||J.baseUrl,model:J.model||q,apiKey:z,extras:{...J.extras,githubToken:z}}))return{mode:"failed"};return $0(J.id),{mode:"updated"}}if(!R0({provider:"openai",name:"GitHub Copilot",baseUrl:R||t2,model:q,apiKey:z,extras:{githubToken:z}},{makeActive:!0}))return{mode:"failed"};return{mode:"created"}}function e4({onDone:z,onBack:q,onChangeAPIKey:R}){let J=i4()?.trim()?"already-authed":"menu",[G,m]=i.useState(J),[_,b]=i.useState(null),[M,K]=i.useState(""),[L,P]=i.useState(0),[U,k]=i.useState(null),h=i.useCallback(async(f,D=G4,Z0,I)=>{let p=t4(f,Z0,I?.enterpriseDomain);if(!p.success){b(p.warning??"Could not save token to secure storage."),m("error");return}if(r2(f,D,I?.baseUrl).mode==="failed"){b("Could not save the GitHub Copilot provider profile."),m("error");return}c4(),R?.(),z("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[R,z]),X=i.useCallback(async(f)=>{m("device-busy"),b(null),k(null);try{let D=await v4({domain:f});k({user_code:D.user_code,verification_uri:D.verification_uri}),await n4(D.verification_uri);let Z0=await d4(D.device_code,{initialInterval:D.interval,timeoutSeconds:D.expires_in,domain:f}),I=await a4(Z0,{domain:f});await h(I.token,G4,Z0,{baseUrl:I.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:f})}catch(D){b(D instanceof Error?D.message:String(D)),m("error")}},[h]);if(G==="already-authed")return y(w,{flexDirection:"column",gap:1,children:[$(N,{bold:!0,children:"GitHub Copilot"}),$(N,{children:"You are already signed in to GitHub Copilot."}),$(N,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),$(S,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:q?"Back to /provider menu":"Cancel",value:"back"}],onChange:(D)=>{if(D==="sign-in-again"){X();return}if(D==="enterprise"){m("enterprise-domain");return}if(q){q();return}z("GitHub onboard cancelled",{display:"system"})}})]});if(G==="enterprise-domain")return y(w,{flexDirection:"column",gap:1,children:[$(N,{bold:!0,children:"GitHub Enterprise sign-in"}),$(N,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:">"}),$(L0,{value:M,onChange:K,onSubmit:()=>{let D=p4(M);if(!D){X();return}X(D)},onExit:()=>m(J),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:L,onChangeCursorOffset:P})]}),$(N,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(G==="error"&&_)return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",children:_}),$(S,{options:[{label:q?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(D)=>{if(D==="back"){if(q){q();return}m("menu"),b(null);return}z("GitHub onboard cancelled",{display:"system"})}})]});if(G==="device-busy")return y(w,{flexDirection:"column",gap:1,children:[$(N,{children:"GitHub Copilot sign-in"}),U?y(N0,{children:[y(N,{children:["Enter code ",$(N,{bold:!0,children:U.user_code})," at"," ",U.verification_uri]}),$(N,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):$(N,{dimColor:!0,children:"Requesting device code from GitHub..."}),$(o4,{})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{bold:!0,children:"GitHub Copilot setup"}),$(N,{dimColor:!0,children:"Stores your token in the OS credential store (macOS Keychain when available) and creates a /provider profile so Copilot is the active provider — no manual env exports required."}),$(S,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:q?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(f)=>{if(f==="cancel"){if(q){q();return}z("GitHub onboard cancelled",{display:"system"});return}if(f==="enterprise"){m("enterprise-domain");return}X()}})]})}var i,G4="github:copilot",t2="https://api.githubcopilot.com";var zz=d(()=>{a2();i2();s4();l4();n2();r4();d2();x4();x0();i=O0(U0(),1)});function Rz(z){return[z.name,z.family??"",...z.families??[],z.parameterSize??"",z.quantizationLevel??""].join(" ").toLowerCase()}function I0(z,q){return q.some((R)=>z.includes(R))}function zq(z){return!I0(Rz(z),qz)}function qq(z){return z.find(zq)??null}function Y4(z){let R=`${z.parameterSize??""} ${z.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(R?.[1])return Number(R[1]);if(typeof z.sizeBytes==="number"&&z.sizeBytes>0)return Number((z.sizeBytes/1e9).toFixed(1));return null}function Rq(z){return(z.quantizationLevel??z.name).toLowerCase()}function Qq(z,q,R){if(z===null)return R.push("unknown size"),0;if(q==="latency"){if(z<=4)return R.push("tiny model for low latency"),32;if(z<=8)return R.push("small model for fast responses"),26;if(z<=14)return R.push("mid-sized model with acceptable latency"),16;if(z<=24)return R.push("larger model may be slower"),8;return R.push("large model likely slower locally"),z<=40?0:-8}if(q==="coding"){if(z>=7&&z<=14)return R.push("strong coding size tier"),24;if(z>14&&z<=34)return R.push("large coding-capable size tier"),28;if(z>34)return R.push("very large model with higher quality potential"),18;return R.push("compact model may trade off coding depth"),12}if(z>=7&&z<=14)return R.push("great balanced size tier"),26;if(z>=3&&z<7)return R.push("compact balanced size tier"),18;if(z>14&&z<=24)return R.push("high quality balanced size tier"),20;if(z>24)return R.push("large model for quality-first usage"),10;return R.push("very small model for general usage"),8}function $q(z,q,R){let J=Rq(z);if(J.includes("q4"))return R.push("efficient Q4 quantization"),q==="latency"?8:4;if(J.includes("q5"))return R.push("balanced Q5 quantization"),q==="latency"?6:5;if(J.includes("q8"))return R.push("higher quality Q8 quantization"),q==="latency"?2:5;return 0}function Jq(z,q,R){if(q.score!==z.score)return q.score-z.score;let J=Y4(z)??Number.POSITIVE_INFINITY,G=Y4(q)??Number.POSITIVE_INFINITY;if(R==="latency")return J-G;if(R==="coding")return G-J;let m=14;return Math.abs(J-m)-Math.abs(G-m)}function W4(z,q){return z.map((R)=>{let J=Rz(R),G=[],m=0;if(I0(J,qz))m-=40,G.push("not a chat-first model");if(I0(J,s2))m+=q==="coding"?24:q==="balanced"?10:4,G.push("coding-oriented model family");if(I0(J,o2))m+=q==="latency"?4:q==="coding"?6:8,G.push("strong general-purpose model family");if(I0(J,e2))m+=q==="latency"?2:6,G.push("chat/instruct tuned");if(J.includes("vision")||J.includes("vl"))m-=2,G.push("vision model adds extra overhead");m+=Qq(Y4(R),q,G),m+=$q(R,q,G);let _=G.slice(0,3).join(", ");return{...R,score:m,reasons:G,summary:_}}).sort((R,J)=>Jq(R,J,q))}function Qz(z,q){return qq(W4(z,q))}var s2,o2,e2,qz;var $z=d(()=>{s2=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],o2=["llama","qwen","mistral","gemma","phi","deepseek"],e2=["instruct","chat","assistant"],qz=["embed","embedding","rerank","bge","whisper"]});function Nq(z){let q=z.toLowerCase();return Zq.some((R)=>q.includes(R))}function m4(z){try{let q=new URL(z);if(q.username)q.username="redacted";if(q.password)q.password="redacted";for(let R of q.searchParams.keys())if(Nq(R))q.searchParams.set(R,"redacted");return q.toString()}catch{return z.replace(/\/\/[^/@\s]+(?::[^/@\s]*)?@/g,"//redacted@").replace(/([?&](?:token|access_token|refresh_token|api_key|apikey|key|password|passwd|pwd|auth|authorization|signature|sig|secret)=)[^&#]*/gi,"$1redacted")}}var Zq;var Jz=d(()=>{Zq=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function mq(z){let q=`http://localhost:${z.port}/auth/callback`,R=new URL(`${X4}/oauth/authorize`);return R.searchParams.append("response_type","code"),R.searchParams.append("client_id",y4()),R.searchParams.append("redirect_uri",q),R.searchParams.append("scope",Nz),R.searchParams.append("code_challenge",z.codeChallenge),R.searchParams.append("code_challenge_method","S256"),R.searchParams.append("id_token_add_organizations","true"),R.searchParams.append("codex_cli_simplified_flow","true"),R.searchParams.append("state",z.state),R.searchParams.append("originator",Gz),R.toString()}function Vq(){return`<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title>Codex Login Complete</title>
|
|
6
|
-
<style>
|
|
7
|
-
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
8
|
-
h1 { margin: 0 0 12px; font-size: 22px; }
|
|
9
|
-
p { margin: 0 0 10px; }
|
|
10
|
-
</style>
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<h1>Codex login complete</h1>
|
|
14
|
-
<p>You can return to Claudin now.</p>
|
|
15
|
-
<p>Claudin will finish activating your new Codex OAuth login.</p>
|
|
16
|
-
</body>
|
|
17
|
-
</html>`}function Xq(z){return`<!doctype html>
|
|
18
|
-
<html lang="en">
|
|
19
|
-
<head>
|
|
20
|
-
<meta charset="utf-8" />
|
|
21
|
-
<title>Codex Login Failed</title>
|
|
22
|
-
<style>
|
|
23
|
-
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
24
|
-
h1 { margin: 0 0 12px; font-size: 22px; color: #991b1b; }
|
|
25
|
-
p { margin: 0 0 10px; }
|
|
26
|
-
</style>
|
|
27
|
-
</head>
|
|
28
|
-
<body>
|
|
29
|
-
<h1>Codex login failed</h1>
|
|
30
|
-
<p>${Wz(z)}</p>
|
|
31
|
-
<p>You can close this window and try again in Claudin.</p>
|
|
32
|
-
</body>
|
|
33
|
-
</html>`}function Zz(){return`<!doctype html>
|
|
34
|
-
<html lang="en">
|
|
35
|
-
<head>
|
|
36
|
-
<meta charset="utf-8" />
|
|
37
|
-
<title>Codex Login Cancelled</title>
|
|
38
|
-
<style>
|
|
39
|
-
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
40
|
-
h1 { margin: 0 0 12px; font-size: 22px; }
|
|
41
|
-
p { margin: 0 0 10px; }
|
|
42
|
-
</style>
|
|
43
|
-
</head>
|
|
44
|
-
<body>
|
|
45
|
-
<h1>Codex login cancelled</h1>
|
|
46
|
-
<p>You can close this window and retry in Claudin.</p>
|
|
47
|
-
</body>
|
|
48
|
-
</html>`}async function yq(z){let q=`http://localhost:${z.port}/auth/callback`,R=new URLSearchParams({grant_type:"authorization_code",code:z.authorizationCode,redirect_uri:q,client_id:y4(),code_verifier:z.codeVerifier}),J=await fetch(`${X4}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:R,signal:z.signal?AbortSignal.any([z.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!J.ok){let K=await J.text().catch(()=>"");throw Error(K.trim()?`Codex OAuth token exchange failed (${J.status}): ${K.trim()}`:`Codex OAuth token exchange failed with status ${J.status}.`)}let G=await J.json(),m=c0(G.access_token),_=c0(G.refresh_token);if(!m||!_)throw Error("Codex OAuth completed, but the token response was missing credentials.");let b=c0(G.id_token);return{apiKey:b?await mz(b).catch(()=>{return}):void 0,accessToken:m,refreshToken:_,idToken:b,accountId:V4(b)??V4(m)}}class K4{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(z){let q=Xz(),R=Yz(),J=new Vz("/auth/callback");this.authCodeListener=J,this.port=null;try{let G=await J.start(R);this.port=G;let m=Kz(),_=await yz(q),b=mq({port:G,codeChallenge:_,state:m});try{let M=await J.waitForAuthorization(m,async()=>{await z(b)}),K=new AbortController;this.tokenExchangeAbortController=K;let L;try{L=await yq({authorizationCode:M,codeVerifier:q,port:G,signal:K.signal})}finally{if(this.tokenExchangeAbortController===K)this.tokenExchangeAbortController=null}if(this.authCodeListener!==J)throw this.buildCancellationError();return J.handleSuccessRedirect([],(P)=>{P.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),P.end(Vq())}),L}catch(M){let K=this.authCodeListener===J?M:this.buildCancellationError();if(J.hasPendingResponse()){let L=K instanceof Error&&K.message==="Codex OAuth flow was cancelled.";J.handleErrorRedirect((P)=>{P.writeHead(L?200:400,{"Content-Type":"text/html; charset=utf-8"}),P.end(L?Zz():Xq(K instanceof Error?K.message:String(K)))})}throw K}finally{this.cleanup()}}catch(G){let m=G instanceof Error?G.message:String(G);if(m.includes("EADDRINUSE")||m.includes(String(R)))throw Error(`Codex OAuth needs localhost:${R} for its callback. Close any app already using that port and try again.`);throw G}}cleanup(){let z=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(z),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((q)=>{q.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),q.end(Zz())});this.authCodeListener?.cancelPendingAuthorization(z),this.authCodeListener=null,this.port=null}}var bz=d(()=>{Yq();Wq();Gq()});function Kq(){return new K4}function Mz(z){let{onAuthenticated:q}=z,R=z.deps?.createOAuthService??Kq,J=z.deps?.openBrowser??p0,G=z.deps?.saveCodexCredentials??Hz,m=z.deps?.isBareMode??t,[_,b]=v0.useState({state:"starting"});return v0.useEffect(()=>{if(m()){b({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let M=!1,K=R();return K.startOAuthFlow(async(L)=>{if(M)return;b({state:"waiting",authUrl:L,browserOpened:null});let P=await J(L);if(M)return;b({state:"waiting",authUrl:L,browserOpened:P})}).then(async(L)=>{if(M)return;await q(L,(U)=>{let k=G({apiKey:L.apiKey,accessToken:L.accessToken,refreshToken:L.refreshToken,idToken:L.idToken,accountId:L.accountId,profileId:U?.profileId});if(!k.success)throw Error(k.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((L)=>{if(M)return;b({state:"error",message:L instanceof Error?L.message:String(L)})}),()=>{M=!0,K.cleanup()}},[R,m,q,J,G]),_}var v0;var _z=d(()=>{bz();Fz();Lz();l0();v0=O0(U0(),1)});function Ez(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":jz()}}function Bz(z,q){let R=Number(z);return Number.isFinite(R)&&R>0?R*1000:q}function _q(z,q){if(q?.aborted)return Promise.resolve();return new Promise((R)=>{let J=setTimeout(()=>{q?.removeEventListener("abort",G),R()},z),G=()=>{clearTimeout(J),R()};q?.addEventListener("abort",G,{once:!0})})}async function wq(z){let q=z?.fetchImpl??fetch,R=z?.signal?AbortSignal.any([z.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),J=await q(Uz,{method:"POST",headers:Ez(),body:new URLSearchParams({client_id:b4(),scope:Pz}).toString(),signal:R});if(!J.ok){let M=await J.text().catch(()=>"");throw Error(`xAI device code request failed (${J.status})${M?`: ${M.trim()}`:""}`)}let G=await J.json(),m=J0(G.device_code),_=J0(G.user_code),b=J0(G.verification_uri);if(!m||!_||!b)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:m,user_code:_,verification_uri:b,verification_uri_complete:J0(G.verification_uri_complete),expires_in:typeof G.expires_in==="number"&&G.expires_in>0?G.expires_in:Dz/1000,interval:typeof G.interval==="number"&&G.interval>0?G.interval:hz/1000}}async function Bq(z,q){let R=q?.fetchImpl??fetch,J=q?.sleep??_q,G=q?.now??(()=>Date.now()),m=Bz(z.expires_in,Dz),_=G()+m,b=Math.max(Bz(z.interval,hz),Lq);while(G()<_){if(q?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let M=await R(Oz,{method:"POST",headers:Ez(),body:new URLSearchParams({grant_type:Iz,client_id:b4(),device_code:z.device_code}).toString(),signal:q?.signal});if(M.ok){let U=await M.json(),k=J0(U.access_token),h=J0(U.refresh_token);if(!k||!h)throw Error("xAI OAuth completed, but the token response was missing credentials.");let X=typeof U.expires_in==="number"&&Number.isFinite(U.expires_in)&&U.expires_in>0?U.expires_in:3600;return{accessToken:k,refreshToken:h,idToken:J0(U.id_token),expiresAt:G()+X*1000}}let K=await M.json().catch(()=>({})),L=Math.max(0,_-G());if(K.error==="authorization_pending"){await J(Math.min(b+wz,L),q?.signal);continue}if(K.error==="slow_down"){b=Math.min(b+Fq,Mq),await J(Math.min(b+wz,L),q?.signal);continue}if(K.error==="access_denied"||K.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(K.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let P=K.error_description??K.error??"";throw Error(`xAI device token exchange failed (${M.status})${P?`: ${P}`:""}`)}throw Error("xAI device authorization timed out.")}class H4{abortController=null;async startDeviceFlow(z){let q=new AbortController;this.abortController=q;try{let R=await wq({signal:q.signal});return await z(R),await Bq(R,{signal:q.signal})}finally{if(this.abortController===q)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var hz=5000,Lq=1000,Fq=5000,Mq=60000,Dz=300000,wz=3000;var uz=d(()=>{bq();Hq()});function jq(){return new H4}function kz(z){let{onAuthenticated:q}=z,R=z.deps?.createOAuthService??jq,J=z.deps?.saveXaiCredentials??Tz,G=z.deps?.isBareMode??t,[m,_]=d0.useState({state:"starting"});return d0.useEffect(()=>{if(G()){_({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let b=!1,M=R();return M.startDeviceFlow(async(K)=>{if(b)return;_({state:"waiting",userCode:K.user_code,verificationUri:K.verification_uri,verificationUriComplete:K.verification_uri_complete})}).then(async(K)=>{if(b)return;await q(K,(P)=>{let U=J({accessToken:K.accessToken,refreshToken:K.refreshToken,idToken:K.idToken,expiresAt:K.expiresAt,profileId:P?.profileId});if(!U.success)throw Error(U.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((K)=>{if(b)return;_({state:"error",message:K instanceof Error?K.message:String(K)})}),()=>{b=!0,M.cleanup()}},[R,G,q,J]),m}var d0;var Az=d(()=>{uz();l0();Sz();d0=O0(U0(),1)});async function az(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":lz,...await vz()}}function fz(z,q){let R=Number(z);return Number.isFinite(R)&&R>0?R*1000:q}function hq(z,q){if(q?.aborted)return Promise.resolve();return new Promise((R)=>{let J=setTimeout(()=>{q?.removeEventListener("abort",G),R()},z),G=()=>{clearTimeout(J),R()};q?.addEventListener("abort",G,{once:!0})})}async function Dq(z){let q=z?.fetchImpl??fetch,R=z?.signal?AbortSignal.any([z.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),J=await q(gz,{method:"POST",headers:await az(),body:new URLSearchParams({client_id:L4()}).toString(),signal:R});if(!J.ok){let M=await J.text().catch(()=>"");throw Error(`Kimi device code request failed (${J.status})${M?`: ${M.trim()}`:""}`)}let G=await J.json(),m=G0(G.device_code),_=G0(G.user_code),b=G0(G.verification_uri);if(!m||!_||!b)throw Error("Kimi device code response is missing device_code / user_code / verification_uri.");return{device_code:m,user_code:_,verification_uri:b,verification_uri_complete:G0(G.verification_uri_complete),expires_in:typeof G.expires_in==="number"&&G.expires_in>0?G.expires_in:nz/1000,interval:typeof G.interval==="number"&&G.interval>0?G.interval:dz/1000}}async function Eq(z,q){let R=q?.fetchImpl??fetch,J=q?.sleep??hq,G=q?.now??(()=>Date.now()),m=fz(z.expires_in,nz),_=G()+m,b=Math.max(fz(z.interval,dz),Uq);while(G()<_){if(q?.signal?.aborted)throw Error("Kimi device authorization was cancelled.");let M=await R(xz,{method:"POST",headers:await az(),body:new URLSearchParams({grant_type:cz,client_id:L4(),device_code:z.device_code}).toString(),signal:q?.signal});if(M.ok){let U=await M.json(),k=G0(U.access_token),h=G0(U.refresh_token);if(!k||!h)throw Error("Kimi OAuth completed, but the token response was missing credentials.");let X=typeof U.expires_in==="number"&&Number.isFinite(U.expires_in)&&U.expires_in>0?U.expires_in:900;return{accessToken:k,refreshToken:h,expiresAt:G()+X*1000}}let K=await M.json().catch(()=>({})),L=Math.max(0,_-G());if(K.error==="authorization_pending"){await J(Math.min(b+Cz,L),q?.signal);continue}if(K.error==="slow_down"){b=Math.min(b+Iq,Pq),await J(Math.min(b+Cz,L),q?.signal);continue}if(K.error==="access_denied"||K.error==="authorization_denied")throw Error("Kimi device authorization was denied.");if(K.error==="expired_token")throw Error("Kimi device code expired - please re-run login.");let P=K.error_description??K.error??"";throw Error(`Kimi device token exchange failed (${M.status})${P?`: ${P}`:""}`)}throw Error("Kimi device authorization timed out.")}class F4{abortController=null;async startDeviceFlow(z){let q=new AbortController;this.abortController=q;try{let R=await Dq({signal:q.signal});return await z(R),await Eq(R,{signal:q.signal})}finally{if(this.abortController===q)this.abortController=null}}cleanup(){this.abortController?.abort(Error("Kimi device authorization was cancelled.")),this.abortController=null}}var dz=5000,Uq=1000,Iq=5000,Pq=60000,nz=1800000,Cz=3000;var iz=d(()=>{Oq();pz()});function uq(){return new F4}function sz(z){let{onAuthenticated:q}=z,R=z.deps?.createOAuthService??uq,J=z.deps?.saveKimiCredentials??tz,G=z.deps?.isBareMode??t,[m,_]=Y0.useState({state:"starting"}),b=Y0.useRef(!1);return Y0.useEffect(()=>{if(G()){_({state:"error",message:"Kimi Code OAuth is unavailable in --bare because secure storage is disabled."});return}let M=!1,K=R();return K.startDeviceFlow(async(L)=>{if(M)return;_({state:"waiting",userCode:L.user_code,verificationUri:L.verification_uri,verificationUriComplete:L.verification_uri_complete})}).then(async(L)=>{if(M)return;await q(L,(U)=>{let k=J({accessToken:L.accessToken,refreshToken:L.refreshToken,expiresAt:L.expiresAt,profileId:U?.profileId});if(!k.success)throw Error(k.warning??"Kimi Code OAuth succeeded, but credentials could not be saved securely.")})}).catch((L)=>{if(M)return;_({state:"error",message:L instanceof Error?L.message:String(L)})}),()=>{M=!0,K.cleanup()}},[R,G,q,J]),Y0.useEffect(()=>{if(m.state!=="waiting")return;if(b.current)return;let M=m.verificationUriComplete??m.verificationUri;if(!M)return;b.current=!0,p0(M).catch(()=>{})},[m]),m}var Y0;var oz=d(()=>{iz();Fz();l0();rz();Y0=O0(U0(),1)});function R1(z){return{name:z.name,baseUrl:z.baseUrl,model:z.model,apiKey:z.apiKey??""}}function Q1(z){let q=t0(z);return{name:q.name,baseUrl:q.baseUrl,model:q.model,apiKey:q.apiKey??""}}function $1(z){let q={};for(let R of z.split(/\r?\n/)){let J=R.trim();if(!J)continue;let G=J.indexOf(":");if(G<=0)continue;let m=J.slice(0,G).trim(),_=J.slice(G+1).trim();if(m&&_)q[m]=_}return q}function J1(z){if(!z)return"";return Object.entries(z).map(([q,R])=>`${q}: ${R}`).join(`
|
|
49
|
-
`)}function Z1(z,q){let R={},J=z.awsRegion?.trim();if(J)R.awsRegion=J;let G=z.gcpProject?.trim();if(G)R.gcpProject=G;let m=z.gcpRegion?.trim();if(m)R.gcpRegion=m;let _=z.azureResource?.trim();if(_)R.azureResource=_;let b=$1(q);if(Object.keys(b).length>0)R.customHeaders=b;return Object.keys(R).length>0?R:void 0}function G1(z,q){let R=q?" (active)":"",J=z.apiKey?"key set":"no key",G=z.provider==="anthropic"?"anthropic":"openai-compatible",m=z2(z.model),_=m.length<=3?m.join(", "):`${m[0]}, ${m[1]} + ${m.length-2} more`;return`${G} · ${z.baseUrl} · ${_} · ${J}${R}`}function Y1(z,q){if(z.state==="unreachable")return`Could not reach Atomic Chat at ${m4(q)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(z.state==="no_models")return"Atomic Chat is running, but no models are loaded. Download and load a model inside the Atomic Chat app first, or enter details manually.";return""}function W1(z,q){if(z.state==="unreachable")return`Could not reach Ollama at ${m4(q)}. Start Ollama first, or enter the endpoint manually.`;if(z.state==="no_models")return"Ollama is running, but no installed models were found. Pull a chat model such as qwen2.5-coder:7b or llama3.1:8b first, or enter details manually.";if(z.state==="generation_failed"){let R=z.probeModel??"the selected model",J=z.detail?` Details: ${z.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${R}.${J} Run "ollama run ${R}" once and retry, or enter details manually.`}return""}function _4(z,q){if(!q)return;return z.find((R)=>R.id===q)}function ez(z,q){return Boolean(z&&q&&z.id===q)}function m1(z,q){if(q){let R=z.find((J)=>J.id===q);if(R)return R}return z.find((R)=>R.provider==="openai"&&R.baseUrl===D4&&!R.apiKey)}function V1(z,q){if(q){let R=z.find((J)=>J.id===q);if(R)return R}return z.find((R)=>R.provider==="openai"&&R.baseUrl===r0&&!R.apiKey)}function X1(z,q){return z.find((R)=>R.provider==="anthropic"&&R.baseUrl===q&&!R.apiKey)}function y1({onBack:z,onConfigured:q}){let R=H.useCallback(async(G,m)=>{await q(G,m)},[q]);a("confirm:no",z);let J=Mz({onAuthenticated:R});if(J.state==="error")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",bold:!0,children:"Codex OAuth failed"}),$(N,{children:J.message}),$(N,{dimColor:!0,children:"Press Enter or Esc to go back."}),$(S,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:z,onCancel:z,visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Codex OAuth"}),$(N,{children:"Sign in with your ChatGPT account in the browser. Claudin will store the resulting Codex credentials securely and switch this session to the new Codex login when setup completes."}),J.state==="starting"?$(N,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):J.browserOpened===!1?y(N0,{children:[$(N,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),$(N,{children:J.authUrl})]}):J.browserOpened===!0?y(N0,{children:[$(N,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),$(N,{children:J.authUrl})]}):$(N,{dimColor:!0,children:"Opening your browser..."}),$(N,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function K1({onBack:z,onConfigured:q}){let R=H.useCallback(async(G,m)=>{await q(G,m)},[q]);a("confirm:no",z);let J=kz({onAuthenticated:R});if(J.state==="error")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",bold:!0,children:"xAI OAuth failed"}),$(N,{children:J.message}),$(N,{dimColor:!0,children:"Press Enter or Esc to go back."}),$(S,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:z,onCancel:z,visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),J.state==="starting"?$(N,{dimColor:!0,children:"Requesting a device code from xAI..."}):y(N0,{children:[y(N,{children:["Open this URL on any device:"," ",$(N,{bold:!0,children:J.verificationUri})]}),y(N,{children:["Enter code ",$(N,{bold:!0,children:J.userCode})]}),J.verificationUriComplete&&J.verificationUriComplete!==J.verificationUri?y(N,{dimColor:!0,children:["Or open this prefilled URL: ",J.verificationUriComplete]}):null,$(N,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),$(N,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function b1({onBack:z,onConfigured:q}){let R=H.useCallback(async(G,m)=>{await q(G,m)},[q]);a("confirm:no",z);let J=sz({onAuthenticated:R});if(J.state==="error")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",bold:!0,children:"Kimi Code OAuth failed"}),$(N,{children:J.message}),$(N,{dimColor:!0,children:"Press Enter or Esc to go back."}),$(S,{options:[{value:"back",label:"Back",description:"Return to Moonshot AI authentication choices"}],onChange:z,onCancel:z,visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Moonshot AI · Kimi Code"}),J.state==="starting"?$(N,{dimColor:!0,children:"Requesting a device code from Kimi..."}):y(N0,{children:[y(N,{children:["Open this URL on any device:"," ",$(N,{bold:!0,children:J.verificationUri})]}),y(N,{children:["Enter code ",$(N,{bold:!0,children:J.userCode})]}),J.verificationUriComplete&&J.verificationUriComplete!==J.verificationUri?y(N,{dimColor:!0,children:["Or open this prefilled URL: ",J.verificationUriComplete]}):null,$(N,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),$(N,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function P8({mode:z,onDone:q}){let R=V2(),[J,G]=H.useState([]),[m,_]=H.useState(),[b,M]=H.useState(),[K,L]=H.useState(!1),[P,U]=H.useState(),k=H.useRef(0),[h,X]=H.useState(z==="first-run"?"select-preset":"menu"),[m0,f]=H.useState(null),[D,Z0]=H.useState("openai"),[I,p]=H.useState(()=>Q1("ollama")),[D0,E0]=H.useState({}),[E4,s0]=H.useState(""),[K2,b2]=H.useState(0),[H2,L2]=H.useState(0),[o0,u4]=H.useState(null),[V0,w0]=H.useState(0),[X0,r]=H.useState(0),[F2,s]=H.useState(0),[T4,u]=H.useState(),[y0,B]=H.useState(),[M2,_2]=H.useState(),[S4,u0]=H.useState(!1),[B0,j0]=H.useState(),[o,T0]=H.useState({state:"idle"}),[e,S0]=H.useState({state:"idle"}),[z0,e0]=H.useState({state:"idle"}),[w2,B2]=H.useState(!0),[j2,l]=H.useState(!1),z4=H.useRef(!1),[q4,R4]=H.useState(()=>h0()),[k4,O2]=H.useState(()=>X2());H.useEffect(()=>{queueMicrotask(()=>{let Q=n(),Z=v()?.id;G(Q),_(Z),M(n0()),U(w4()),L(P0()),B2(!1)})},[]);let K0=W0[X0]??W0[0],k0=K0.key,U2=I[k0],Q4=J.length>0,A0=Q4,A4=H.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...q4?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider (Global)",description:P?`Currently: ${J.find((Q)=>Q.id===P)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!A0},{value:"activate-project",label:"Set active provider (Project)",description:b?`Currently: ${J.find((Q)=>Q.id===b)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!A0},...K?[{value:"clear-project-override",label:"Clear project provider override",description:b?"Stop overriding for this project; fall back to global":"Project override points to a missing profile; clear it"}]:[],{value:"edit",label:"Edit provider",description:"Update URL, model, or key",disabled:!Q4},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!A0},...S4?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[A0,Q4,S4,q4,P,b,J]),$4=H.useCallback(()=>{if(t()){k.current+=1,u0(!1),j0(void 0);return}let Q=++k.current;(async()=>{let Z=await O4();if(Q!==k.current)return;u0(Boolean(Z?.apiKey||Z?.accessToken||Z?.refreshToken||Z?.idToken)),j0(Z?.profileId)})()},[]);H.useEffect(()=>{return $4(),()=>{k.current+=1}},[$4]),H.useEffect(()=>{if(h!=="select-ollama-model")return;let Q=!1;return T0({state:"loading"}),(async()=>{let Z=await m2({baseUrl:I.baseUrl});if(Z.state!=="ready"){if(!Q)T0({state:"unavailable",message:W1(Z,I.baseUrl)});return}let Y=W4(Z.models,"balanced"),W=Qz(Z.models,"balanced");if(!Q)T0({state:"ready",defaultValue:W?.name??Y[0]?.name,options:Y.map((V)=>({label:V.name,value:V.name,description:V.summary}))})})(),()=>{Q=!0}},[I.baseUrl,h]),H.useEffect(()=>{if(h!=="select-atomic-chat-model")return;let Q=!1;return S0({state:"loading"}),(async()=>{let Z=await W2({baseUrl:I.baseUrl});if(Z.state!=="ready"){if(!Q)S0({state:"unavailable",message:Y1(Z,I.baseUrl)});return}if(!Q)S0({state:"ready",defaultValue:Z.models[0],options:Z.models.map((Y)=>({label:Y,value:Y}))})})(),()=>{Q=!0}},[I.baseUrl,h]),H.useEffect(()=>{if(h!=="select-openai-model")return;let Q=!1;return e0({state:"loading"}),(async()=>{let Z=await G2({baseUrl:I.baseUrl,apiKey:I.apiKey||void 0});if(Q)return;if(!Z||Z.length===0){e0({state:"unavailable",message:"Couldn't list models from this provider. Enter the model id manually, or go back to check the base URL and API key."});return}let{options:Y,defaultValue:W}=Y2(Z,I.model);e0({state:"ready",options:Y,defaultValue:W})})(),()=>{Q=!0}},[I.baseUrl,I.apiKey,h]);function A(){if(z4.current)return;z4.current=!0,queueMicrotask(()=>{let Q=n();G(Q),_(v()?.id),M(n0()),U(w4()),L(P0()),$4(),z4.current=!1})}function b0(){return null}function J4(Q){if(Q.activationWarning)return`${Q.prefix}. Saved for next startup. Warning: ${Q.warnings.join("; ")}.`;if(Q.warnings.length>0)return`${Q.prefix}. Claudin switched to it for this session with warnings: ${Q.warnings.join("; ")}.`;return`${Q.prefix}. Claudin switched to it for this session.`}async function Z4(Q){if(Q?.accessToken&&Q.accountId)return null;let Z=await O4();if(!Z)return"stored Codex OAuth credentials could not be loaded";if(!Z.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function C4(){N2()}async function I2(Q){let Z="provider";l(!0),u("Activating provider...");try{await new Promise((q0)=>queueMicrotask(q0));let Y=P0(),W=$0(Q);if(!W){B("Could not change active provider."),l(!1),O();return}let V=Y?v()??W:W,F=M0(V.model)||a0();if(!Y)R((q0)=>({...q0,mainLoopModel:F,mainLoopModelForSession:null}));Z=W.name;let j=b0(),E=ez(W,B0),x=E?await Z4():null;A();let c=Y&&V.id!==W.id?` (project override still active — this project keeps using ${V.name}; use "Clear project provider override" to apply the new default here)`:"",C=E?J4({prefix:`Active provider: ${W.name}${c}`,activationWarning:x,warnings:[x,j?`could not clear startup provider override (${j})`:null].filter((q0)=>Boolean(q0))}):j?`Active provider: ${W.name}${c}. Warning: could not clear startup provider override (${j}).`:`Active provider: ${W.name}${c}`;u(C),l(!1),q({action:"activated",activeProfileId:W.id,activeProviderName:W.name,activeProviderModel:F,message:`Provider switched to ${W.name} (${F})`}),O()}catch(Y){A(),u(void 0),l(!1);let W=Y instanceof Error?Y.message:String(Y);B(`Could not finish activating ${Z}: ${W}`),O()}}async function P2(){l(!0),u("Clearing project provider override...");try{await new Promise((Z)=>queueMicrotask(Z)),B4(null),A();let Q=v();if(Q){let Z=M0(Q.model)||a0();_0(),R((Y)=>({...Y,mainLoopModel:Z,mainLoopModelForSession:null})),u(`Project override cleared. Using global default: ${Q.name}.`),l(!1),q({action:"activated",activeProfileId:Q.id,activeProviderName:Q.name,activeProviderModel:Z,message:`Project override cleared — using ${Q.name} (${Z})`}),O()}else u("Project provider override cleared. No global default set."),l(!1),q({action:"saved",message:"Project provider override cleared. No global default set."}),O()}catch(Q){A(),u(void 0),l(!1);let Z=Q instanceof Error?Q.message:String(Q);B(`Could not clear project provider override: ${Z}`),O()}}async function h2(Q){let Z="provider";l(!0),u("Setting provider for this project...");try{await new Promise((C)=>queueMicrotask(C));let Y=n0(),W=B4(Q);if(!W){B("Could not set project provider override."),l(!1),O();return}let V=M0(W.model)||a0();if(Y===W.id)_0();R((C)=>({...C,mainLoopModel:V,mainLoopModelForSession:null})),Z=W.name;let F=b0(),j=ez(W,B0),E=j?await Z4():null;A();let x=`Active provider for this project: ${W.name}. Other projects keep the global default.`,c=j?J4({prefix:x,activationWarning:E,warnings:[E,F?`could not clear startup provider override (${F})`:null].filter((C)=>Boolean(C))}):F?`${x} Warning: could not clear startup provider override (${F}).`:x;u(c),l(!1),q({action:"activated",activeProfileId:W.id,activeProviderName:W.name,activeProviderModel:V,message:`Provider switched to ${W.name} (${V}) for this project`}),O()}catch(Y){A(),u(void 0),l(!1);let W=Y instanceof Error?Y.message:String(Y);B(`Could not finish setting ${Z} for this project: ${W}`),O()}}function O(){_2("done"),X("menu")}function C0(Q){q({action:"cancelled",message:Q})}function f4(Q){let Z=t0(Q),Y={name:Z.name,baseUrl:Z.baseUrl,model:Z.model,apiKey:Z.apiKey??""};if(f(null),Z0(Z.provider??"openai"),p(Y),E0({}),s0(""),u4(Q),r(0),w0(0),s(Y.name.length),B(void 0),Q==="ollama"){T0({state:"loading"}),X("select-ollama-model");return}if(Q==="atomic-chat"){S0({state:"loading"}),X("select-atomic-chat-model");return}if(Q==="anthropic"){X("anthropic-auth-choice");return}if(Q==="bedrock"||Q==="vertex"||Q==="foundry"){X("cloud-extras");return}X("form")}function D2(Q){let Z=J.find((W)=>W.id===Q);if(!Z)return;let Y=R1(Z);f(Q),Z0(Z.provider??"openai"),p(Y),E0({awsRegion:Z.extras?.awsRegion,gcpProject:Z.extras?.gcpProject,gcpRegion:Z.extras?.gcpRegion,azureResource:Z.extras?.azureResource}),s0(J1(Z.extras?.customHeaders)),u4(null),r(0),w0(0),s(Y.name.length),B(void 0),X("form")}function f0(Q=I){let Z=Z1(D0,E4),Y={provider:D,name:Q.name,baseUrl:Q.baseUrl,model:Q.model,apiKey:Q.apiKey,extras:Z},W=m0?Q0(m0,Y):R0(Y,{makeActive:!0});if(!W){B("Could not save provider. Fill all required fields.");return}let V=v()?.id===W.id;if(V)_0(),R((c)=>({...c,mainLoopModel:M0(W.model),mainLoopModelForSession:null}));let F=V?b0():null;A();let j=!m0&&P0()&&!V,E=j?v()?.name??"override target":null,x=m0?`Updated provider: ${W.name}`:j?`Added provider: ${W.name} (now global default — project keeps using ${E}; use "Clear project provider override" to apply here)`:`Added provider: ${W.name} (now active)`;if(u(F?`${x}. Warning: could not clear startup provider override (${F}).`:x),z==="first-run"){q({action:"saved",activeProfileId:W.id,message:`Provider configured: ${W.name}`});return}f(null),r(0),B(void 0),O()}function E2(){if(e.state==="loading"||e.state==="idle")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),$(N,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(e.state==="unavailable")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Atomic Chat setup"}),$(N,{dimColor:!0,children:e.message}),$(S,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(Q)=>{if(Q==="manual"){r(0),s(I.name.length),X("form");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:2})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),$(N,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),$(S,{options:e.options,defaultValue:e.defaultValue,defaultFocusValue:e.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,e.options.length),onChange:(Q)=>{let Z={...I,model:Q};p(Z),f0(Z)},onCancel:()=>X("select-preset")})]})}function u2(){if(o.state==="loading"||o.state==="idle")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Checking Ollama"}),$(N,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(o.state==="unavailable")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Ollama setup"}),$(N,{dimColor:!0,children:o.message}),$(S,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(Q)=>{if(Q==="manual"){r(0),s(I.name.length),X("form");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:2})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose an Ollama model"}),$(N,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),$(S,{options:o.options,defaultValue:o.defaultValue,defaultFocusValue:o.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,o.options.length),onChange:(Q)=>{let Z={...I,model:Q};p(Z),f0(Z)},onCancel:()=>X("select-preset")})]})}function H0(Q){let Z=W0.findIndex((Y)=>Y.key===Q);r(Z<0?0:Z),s(I[Q].length),B(void 0),X("form")}function T2(){if(z0.state==="loading"||z0.state==="idle")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Fetching models"}),$(N,{dimColor:!0,children:"Looking for models on your OpenAI-compatible provider…"}),$(N,{dimColor:!0,children:"Press Esc to enter the model manually."})]});if(z0.state==="unavailable")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose a model"}),$(N,{dimColor:!0,children:z0.message}),$(S,{options:[{value:"manual",label:"Enter manually",description:"Type the model id yourself"},{value:"back",label:"Back",description:"Return to the API key step"}],onChange:(Y)=>{if(Y==="manual"){H0("model");return}H0("apiKey")},onCancel:()=>H0("apiKey"),visibleOptionCount:2})]});let Q=[...z0.options,{value:M4,label:"Enter a model id manually",description:"Type an id the provider did not list"}],Z=z0.defaultValue??M4;return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose a model"}),$(N,{dimColor:!0,children:"Models from your OpenAI-compatible provider."}),$(S,{options:Q,defaultValue:Z,defaultFocusValue:Z,inlineDescriptions:!0,visibleOptionCount:Math.min(8,Q.length),onChange:(Y)=>{if(Y===M4){H0("model");return}let W={...I,model:Y};p(W),g4(W)},onCancel:()=>H0("apiKey")}),$(N,{dimColor:!0,children:"Enter to select · Esc to go back"})]})}function g4(Q){if(o0==="anthropic"||o0==="custom"){p(Q),X("custom-headers");return}f0(Q)}function S2(Q){let Z=Q.trim();if(!K0.optional&&Z.length===0){B(`${K0.label} is required.`);return}let Y={...I,[k0]:Z};if(p(Y),B(void 0),X0<W0.length-1){let W=X0+1,V=W0[W]?.key??"name";if(V==="model"&&!tq.has(D)&&Y.baseUrl.trim().length>0){X("select-openai-model");return}r(W),s(Y[V].length);return}g4(Y)}function k2(){if(B(void 0),X0>0){let Q=X0-1,Z=W0[Q]?.key??"name";r(Q),s(I[Z].length);return}if(z==="first-run"){X("select-preset");return}O()}a("confirm:no",k2,{context:"Settings",isActive:h==="form"}),a("confirm:no",()=>H0("model"),{context:"Settings",isActive:h==="select-openai-model"&&(z0.state==="loading"||z0.state==="idle")});function A2(){if(B(void 0),V0>0){w0(V0-1);return}X("select-preset")}a("confirm:no",A2,{context:"Settings",isActive:h==="cloud-extras"}),a("confirm:no",()=>X("form"),{context:"Settings",isActive:h==="custom-headers"}),a("confirm:no",()=>X("select-preset"),{context:"Settings",isActive:h==="anthropic-auth-choice"||h==="anthropic-oauth"||h==="kimi-auth-choice"}),a("confirm:no",()=>X("kimi-auth-choice"),{context:"Settings",isActive:h==="kimi-oauth"});function C2(){let Q=!t(),Z=[...q4?[{value:"import-legacy",label:"Import from Claude Code",description:"Reuse ~/.claude/ tokens, settings, theme, MCP, skills, agents, plugins."}]:[],{value:"dashscope-intl",label:"Alibaba Coding Plan",description:"Alibaba DashScope International endpoint"},{value:"dashscope-cn",label:"Alibaba Coding Plan (China)",description:"Alibaba DashScope China endpoint"},{value:"anthropic",label:"Anthropic",description:"Native Claude API (x-api-key auth)"},{value:"atomic-chat",label:"Atomic Chat",description:"Local Model Provider"},{value:"azure-openai",label:"Azure OpenAI",description:"Azure OpenAI endpoint (model=deployment name)"},{value:"foundry",label:"Azure AI Foundry",description:"Anthropic models hosted on Azure AI Foundry (resource-scoped)"},{value:"bedrock",label:"AWS Bedrock",description:"Anthropic models on AWS Bedrock (region-scoped, AWS creds)"},{value:"bankr",label:"Bankr",description:"Bankr LLM Gateway (OpenAI-compatible)"},{value:"cloudflare-workers-ai",label:"Cloudflare Workers AI",description:"Cloudflare Workers AI (OpenAI-compatible); set your account ID in the base URL"},{value:"cloudflare-ai-gateway",label:"Cloudflare AI Gateway",description:"Cloudflare AI Gateway unified endpoint; set your account ID in the base URL"},...Q?[{value:"codex-oauth",label:"Codex OAuth",description:"Sign in with ChatGPT in your browser and store Codex credentials securely"},{value:"xai-oauth",label:"xAI / Grok (OAuth)",description:"Sign in with xAI in your browser and store Grok credentials securely"}]:[],{value:"github-onboard",label:"GitHub Copilot",description:"Sign in with GitHub in your browser to use Copilot models"},{value:"deepseek",label:"DeepSeek",description:"DeepSeek OpenAI-compatible endpoint"},{value:"gemini",label:"Google Gemini",description:"Gemini OpenAI-compatible endpoint"},{value:"vertex",label:"Google Vertex AI",description:"Anthropic models on Vertex AI (project + region, ADC)"},{value:"groq",label:"Groq",description:"Groq OpenAI-compatible endpoint"},{value:"lmstudio",label:"LM Studio",description:"Local LM Studio endpoint"},{value:"minimax",label:"MiniMax",description:"MiniMax API endpoint"},{value:"mistral",label:"Mistral",description:"Mistral OpenAI-compatible endpoint"},{value:"moonshotai",label:"Moonshot AI",description:"API key or Kimi Code OAuth sign-in"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM endpoint"},{value:"opencode-go",label:"OpenCode GO",description:"OpenCode GO OpenAI-compatible endpoint"},{value:"opencode-zen",label:"OpenCode Zen",description:"OpenCode Zen OpenAI-compatible endpoint"},{value:"ollama",label:"Ollama",description:"Local or remote Ollama endpoint"},{value:"openai",label:"OpenAI",description:"OpenAI API with API key"},{value:"openrouter",label:"OpenRouter",description:"OpenRouter OpenAI-compatible endpoint"},{value:"together",label:"Together AI",description:"Together chat/completions endpoint"},{value:"zai",label:"Z.AI (GLM Coding Plan)",description:"Z.AI GLM Coding Plan (OpenAI-compatible)"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...z==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:z==="first-run"?"Set up provider":"Choose provider preset"}),$(N,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),$(S,{options:Z,onChange:(Y)=>{if(Y==="skip"){C0("Provider setup skipped");return}if(Y==="codex-oauth"){X("codex-oauth");return}if(Y==="xai-oauth"){X("xai-oauth");return}if(Y==="moonshotai"){X("kimi-auth-choice");return}if(Y==="github-onboard"){X("github-onboard");return}if(Y==="import-legacy"){(async()=>{let W=await h4({force:!0});R4(h0()),A();let V=i0(W);if(W.errors.length>0){B(V);return}let F=v();if(z==="first-run"&&F){q({action:"saved",activeProfileId:F.id,activeProviderName:F.name,activeProviderModel:F.model,message:V});return}if(u(V),B(void 0),z==="manage")O()})();return}f4(Y)},onCancel:()=>{if(z==="first-run"){C0("Provider setup skipped");return}O()},visibleOptionCount:Math.min(13,Z.length)})]})}function f2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),$(N,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),$(S,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Claude, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste an x-api-key value (sk-ant-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(Q)=>{if(Q==="oauth"){X("anthropic-oauth");return}if(Q==="apiKey"){X("form");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:3})]})}function g2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Moonshot AI — choose authentication"}),$(N,{dimColor:!0,children:"Sign in with your Kimi Code subscription in the browser, or paste a Moonshot AI API key."}),$(S,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Kimi Code, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste a Moonshot AI API key (sk-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(Q)=>{if(Q==="oauth"){X("kimi-oauth");return}if(Q==="apiKey"){f4("moonshotai");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:3})]})}function x2(){let Q=(dq(),Tq(vq)).ConsoleOAuthFlow;return $(w,{flexDirection:"column",gap:1,children:$(Q,{mode:"login",onDone:()=>{let Z=t0("anthropic"),Y={provider:"anthropic",name:Z.name,baseUrl:Z.baseUrl,model:Z.model},W=X1(n(),Z.baseUrl),V=W?Q0(W.id,Y):R0(Y,{makeActive:!0});if(!V){B("OAuth completed, but the Anthropic profile could not be saved."),X("select-preset");return}let F=W&&m!==V.id?$0(V.id):V;if(!F){B("OAuth completed, but the Anthropic profile could not be set as the startup provider."),X("select-preset");return}let j=`Anthropic OAuth configured: ${F.name}`;if(A(),z==="first-run"){q({action:"saved",activeProfileId:F.id,message:j});return}u(j),B(void 0),O()}})})}function c2(){let Q=o0;if(Q!=="bedrock"&&Q!=="vertex"&&Q!=="foundry")return null;let Z=N1[Q],Y=Z[V0]??Z[0],W=D0[Y.key]??"";function V(F){let j=F.trim();if(j.length===0){B(`${Y.label} is required.`);return}let E={...D0,[Y.key]:j};if(E0(E),B(void 0),V0<Z.length-1){w0(V0+1);return}w0(0),X("form")}return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:`${Q==="bedrock"?"AWS Bedrock":Q==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),$(N,{dimColor:!0,children:Y.helpText}),y(N,{dimColor:!0,children:["Step ",V0+1," of ",Z.length,": ",Y.label]}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:F0.pointer}),$(L0,{value:W,onChange:(F)=>E0((j)=>({...j,[Y.key]:F})),onSubmit:V,focus:!0,showCursor:!0,placeholder:`${Y.placeholder}${F0.ellipsis}`,columns:80,cursorOffset:K2,onChangeCursorOffset:b2})]}),y0&&$(N,{color:"error",children:y0}),$(N,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function l2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Custom headers (optional)"}),y(N,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",$(N,{children:"Header: Value"}),". Leave empty to skip."]}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:F0.pointer}),$(L0,{value:E4,onChange:s0,onSubmit:()=>f0(I),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:H2,onChangeCursorOffset:L2})]}),y0&&$(N,{color:"error",children:y0}),$(N,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function p2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:m0?"Edit provider profile":"Create provider profile"}),$(N,{dimColor:!0,children:K0.helpText}),y(N,{dimColor:!0,children:["Provider type:"," ",D==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),y(N,{dimColor:!0,children:["Step ",X0+1," of ",W0.length,": ",K0.label]}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:F0.pointer}),$(L0,{value:U2,onChange:(Q)=>p((Z)=>({...Z,[k0]:Q})),onSubmit:S2,focus:!0,showCursor:!0,placeholder:`${K0.placeholder}${F0.ellipsis}`,mask:k0==="apiKey"?"*":void 0,columns:80,cursorOffset:F2,onChangeCursorOffset:s})]}),y0&&$(N,{color:"error",children:y0}),$(N,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function v2(){let Q=J.length>0,Z=Q;return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Provider manager"}),$(N,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),T4&&$(N,{children:T4}),$(w,{flexDirection:"column",children:J.length===0?$(N,{dimColor:!0,children:"No provider profiles configured yet."}):J.map((Y)=>y(N,{dimColor:!0,children:["- ",Y.name,": ",G1(Y,Y.id===m)]},Y.id))}),$(S,{options:A4,onChange:(Y)=>{switch(B(void 0),Y){case"add":X("select-preset");break;case"import-legacy":{(async()=>{let W=await h4({force:!0});if(R4(h0()),A(),W.errors.length>0)B(i0(W));else u(i0(W))})();break}case"activate":if(Z)X("select-active");break;case"activate-project":if(Z)X("select-active-project");break;case"clear-project-override":P2();break;case"edit":if(Q)X("select-edit");break;case"delete":if(Z)X("select-delete");break;case"logout-codex-oauth":{let W=U4();if(!W.success){B(W.warning??"Could not clear Codex OAuth credentials.");break}u0(!1),j0(void 0);let V=_4(n(),B0),F=null;if(V){let j=j4(V.id);if(!j.removed){B("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),A();break}C4(),F=j.activeProfileId?b0():null}A(),u(F?`Codex OAuth logged out. Warning: could not clear startup provider override (${F}).`:"Codex OAuth logged out.");break}default:C0("Provider manager closed");break}},onCancel:()=>C0("Provider manager closed"),defaultFocusValue:M2,visibleOptionCount:A4.length})]})}function g0(Q,Z,Y){let W=J.map((V)=>{let F=[];if(V.id===m)F.push("active");if(b&&V.id===b)F.push("this project");if(P&&V.id===P)F.push("global default");let j=F.length>0?` (${F.join(", ")})`:"";return{value:V.id,label:`${V.name}${j}`,description:`${V.provider==="anthropic"?"anthropic":"openai-compatible"} · ${V.baseUrl} · ${V.model}`}});if(W.length===0)return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:Q}),$(N,{dimColor:!0,children:Z}),$(S,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>O(),onCancel:()=>O(),visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:Q}),$(S,{options:W,onChange:Y,onCancel:()=>O(),visibleOptionCount:Math.min(10,Math.max(2,W.length))})]})}let T;switch(h){case"select-preset":T=C2();break;case"select-ollama-model":T=u2();break;case"select-openai-model":T=T2();break;case"select-atomic-chat-model":T=E2();break;case"codex-oauth":T=$(y1,{onBack:()=>X("select-preset"),onConfigured:async(Q,Z)=>{let Y={provider:"openai",name:rq,baseUrl:q2,model:sq,apiKey:""},W=_4(n(),B0),V=W?Q0(W.id,Y):R0(Y,{makeActive:!0});if(!V){B("Codex OAuth login finished, but the provider profile could not be saved."),O();return}let F=W&&m!==V.id?$0(V.id):V;if(!F){B("Codex OAuth login finished, but the provider could not be set as the startup provider."),O();return}Z({profileId:V.id});let j=b0(),E=await Z4(Q);u0(!0),j0(V.id),A();let x=[E,j?`could not clear startup provider override (${j})`:null].filter((C)=>Boolean(C)),c=J4({prefix:"Codex OAuth configured",activationWarning:E,warnings:x});if(z==="first-run"){q({action:"saved",activeProfileId:F.id,message:c});return}u(c),B(void 0),O()}});break;case"xai-oauth":T=$(K1,{onBack:()=>X("select-preset"),onConfigured:async(Q,Z)=>{let Y={provider:"openai",name:oq,baseUrl:r0,model:eq,apiKey:""},W=V1(n(),P4()?.profileId),V=W?Q0(W.id,Y):R0(Y,{makeActive:!0});if(!V){B("xAI OAuth login finished, but the provider profile could not be saved."),O();return}let F=W&&m!==V.id?$0(V.id):V;if(!F){B("xAI OAuth login finished, but the provider could not be set as the startup provider."),O();return}try{Z({profileId:V.id})}catch(E){B(E instanceof Error?E.message:String(E)),O();return}A();let j="xAI / Grok configured. Claudin switched to it for this session.";if(z==="first-run"){q({action:"saved",activeProfileId:F.id,message:j});return}u(j),B(void 0),O()}});break;case"kimi-auth-choice":T=g2();break;case"kimi-oauth":T=$(b1,{onBack:()=>X("kimi-auth-choice"),onConfigured:async(Q,Z)=>{let Y={provider:"openai",name:z1,baseUrl:D4,model:q1,apiKey:""},W=m1(n(),I4()?.profileId),V=W?Q0(W.id,Y):R0(Y,{makeActive:!0});if(!V){B("Kimi Code OAuth login finished, but the provider profile could not be saved."),O();return}let F=W&&m!==V.id?$0(V.id):V;if(!F){B("Kimi Code OAuth login finished, but the provider could not be set as the startup provider."),O();return}try{Z({profileId:V.id})}catch(E){B(E instanceof Error?E.message:String(E)),O();return}A();let j="Kimi Code configured. Claudin switched to it for this session.";if(z==="first-run"){q({action:"saved",activeProfileId:F.id,message:j});return}u(j),B(void 0),O()}});break;case"github-onboard":T=$(e4,{onDone:(Q)=>{if(Q)u(Q),B(void 0);A(),O()},onBack:()=>X("select-preset"),onChangeAPIKey:A});break;case"anthropic-auth-choice":T=f2();break;case"anthropic-oauth":T=x2();break;case"cloud-extras":T=c2();break;case"custom-headers":T=l2();break;case"form":T=p2();break;case"select-active":T=g0("Set active provider (Global)","No providers available. Add one first.",(Q)=>{I2(Q)});break;case"select-active-project":T=g0("Set active provider (Project)","No providers available. Add one first.",(Q)=>{h2(Q)});break;case"select-edit":T=g0("Edit provider","No providers available. Add one first.",(Q)=>{D2(Q)});break;case"select-delete":T=g0("Delete provider","No providers available. Add one first.",(Q)=>{let Z=J.find((C)=>C.id===Q),Y=Z?.provider==="openai"&&Z?.extras?.githubToken!==void 0,W=_4(J,B0)?.id===Q,V=P4()?.profileId,F=Z?.provider==="openai"&&Z.baseUrl===r0&&!Z.apiKey&&V===Q,j=I4()?.profileId,E=Z?.provider==="openai"&&Z.baseUrl===D4&&!Z.apiKey&&j===Q,x=v()?.id===Q,c=j4(Q);if(!c.removed)B("Could not delete provider.");else{let C=[];if(W){let g=U4();if(!g.success)C.push(g.warning??"could not clear Codex OAuth credentials");else j0(void 0);C4()}if(Y){let g=Q2();if(!g.success)C.push(g.warning??"could not clear GitHub Copilot token")}if(F){let g=Z2();if(!g.success)C.push(g.warning??"could not clear xAI OAuth credentials")}if(E){let g=J2();if(!g.success)C.push(g.warning??"could not clear Kimi Code OAuth credentials")}let q0=c.activeProfileId?b0():null;if(q0)C.push(`could not clear startup provider override (${q0})`);if(A(),x){let g=v();if(g)_0(),R((N4)=>({...N4,mainLoopModel:M0(g.model),mainLoopModelForSession:null}));else _0(),R((N4)=>({...N4,mainLoopModel:null,mainLoopModelForSession:null}))}u(C.length>0?`Provider deleted. Warning: ${C.join("; ")}.`:"Provider deleted")}O()});break;case"menu":default:T=v2();break}return y(R2,{color:"permission",children:[$(y2,{enabled:k4,onDismiss:(Q)=>{R4(h0()),O2(!1),A();let Z=v();if(Q==="migrated"&&z==="first-run"&&Z)q({action:"saved",activeProfileId:Z.id,activeProviderName:Z.name,activeProviderModel:Z.model})}}),k4?null:w2?y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Loading providers..."}),$(N,{dimColor:!0,children:"Reading provider profiles from disk."})]}):j2?y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Activating provider..."}),$(N,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):T]})}var H,W0,M4="\x00__manual__",tq,rq="Codex OAuth",sq="codexplan",oq="xAI / Grok (OAuth)",eq="grok-4",z1="Moonshot AI",q1,D4="https://api.kimi.com/coding/v1",N1;var H1=d(()=>{Sq();zz();Aq();l4();fq();lq();nq();Lz();l0();kq();Cq();xq();x4();r4();cq();$z();Jz();pq();gq();iq();s4();_z();Az();oz();Sz();rz();pz();aq();x0();H=O0(U0(),1),W0=[{key:"name",label:"Provider name",placeholder:"e.g. Ollama Home, OpenAI Work",helpText:"A short label shown in /provider and startup setup."},{key:"baseUrl",label:"Base URL",placeholder:"e.g. http://localhost:11434/v1",helpText:"API base URL used for this provider profile."},{key:"apiKey",label:"API key",placeholder:"Leave empty if your provider does not require one",helpText:"Optional. Press Enter with empty value to skip.",optional:!0},{key:"model",label:"Default model",placeholder:"e.g. llama3.1:8b or glm-4.7; glm-4.7-flash",helpText:'Model name(s) to use. Separate multiple with ";" or ","; first is default.'}],tq=new Set(["anthropic","bedrock","vertex","foundry"]),q1=$2;N1={bedrock:[{key:"awsRegion",label:"AWS region",placeholder:"e.g. us-east-1",helpText:"Region of your Bedrock-enabled AWS account. Credentials are picked up from the AWS SDK chain."}],vertex:[{key:"gcpProject",label:"GCP project ID",placeholder:"e.g. my-project-123456",helpText:"Google Cloud project where Vertex AI is enabled. Credentials are picked up from ADC."},{key:"gcpRegion",label:"GCP region",placeholder:"e.g. us-central1",helpText:"Vertex AI region for the model."}],foundry:[{key:"azureResource",label:"Azure resource",placeholder:"e.g. my-foundry-resource",helpText:"Name of your Azure AI Foundry resource. Credentials are picked up from DefaultAzureCredential."}]}});
|
|
50
|
-
export{m4 as pc,Jz as qc,$1 as rc,P8 as sc,H1 as tc};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{jta as z}from"./cli-1.1.17-6ee0nqae.mjs";import{execFile as B}from"child_process";import{promisify as E}from"util";async function N(v){try{let{stdout:q}=await G("git",["worktree","list","--porcelain"],{cwd:v,timeout:5000});if(!q)return[];return q.split(`
|
|
2
|
-
`).filter((j)=>j.startsWith("worktree ")).map((j)=>j.slice(9).normalize("NFC"))}catch{return[]}}var G;var H=z(()=>{G=E(B)});
|
|
3
|
-
export{N as FW,H as GW};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ara as v,Bra as P1,Cra as J5,Dra as w8,Era as D,Fra as y,Gra as m,Hra as _Q,Ira as L,Jra as a,Kra as h5,Lra as e8,Mra as F5,Nra as _8,Ora as E,Pra as h8,Qra as P,Rra as x1,Sra as d,Tra as WQ,Ura as o,Vra as xQ,Wra as l5,Xra as UY,yra as CQ,zra as YJ}from"./cli-1.1.17-fpt9fhj3.mjs";import{ita as sQ,jta as X}from"./cli-1.1.17-6ee0nqae.mjs";function h$(){this.__data__=new v,this.size=0}var e1;var QQ=X(()=>{P1();e1=h$});function n$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var $Q;var JQ=X(()=>{$Q=n$});function b$(Q){return this.__data__.get(Q)}var YQ;var ZQ=X(()=>{YQ=b$});function i$(Q){return this.__data__.has(Q)}var XQ;var HQ=X(()=>{XQ=i$});function l$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<u$-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new o(Z)}return Y.set(Q,J),this.size=Y.size,this}var u$=200,UQ;var KQ=X(()=>{P1();WQ();xQ();UQ=l$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var I1=X(()=>{P1();QQ();JQ();ZQ();HQ();KQ();g.prototype.clear=e1;g.prototype.delete=$Q;g.prototype.get=YQ;g.prototype.has=XQ;g.prototype.set=UQ;p=g});function c$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",GQ;var BQ=X(()=>{GQ=c$});function o$(Q){return this.__data__.has(Q)}var NQ;var wQ=X(()=>{NQ=o$});function r(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new o;while(++J<Y)this.add(Q[J])}var zQ;var FQ=X(()=>{xQ();BQ();wQ();r.prototype.add=r.prototype.push=GQ;r.prototype.has=NQ;zQ=r});function r$(Q,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(Q[Y],Y,Q))return!0;return!1}var RQ;var DQ=X(()=>{RQ=r$});function s$(Q,J){return Q.has(J)}var qQ;var OQ=X(()=>{qQ=s$});function e$(Q,J,Y,Z,H,W){var x=Y&a$,U=Q.length,B=J.length;if(U!=B&&!(x&&B>U))return!1;var K=W.get(Q),F=W.get(J);if(K&&F)return K==J&&F==Q;var z=-1,N=!0,V=Y&t$?new zQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],q=J[z];if(Z)var f=x?Z(q,R,z,J,Q,W):Z(R,q,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!RQ(J,function(C,_){if(!qQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===q||H(R,q,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var a$=1,t$=2,s;var C1=X(()=>{FQ();DQ();OQ();s=e$});var QJ,_1;var VQ=X(()=>{y();QJ=D.Uint8Array,_1=QJ});function $J(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var MQ;var LQ=X(()=>{MQ=$J});function JJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var fQ;var PQ=X(()=>{fQ=JJ});function RJ(Q,J,Y,Z,H,W,x){switch(Y){case FJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case zJ:if(Q.byteLength!=J.byteLength||!W(new _1(Q),new _1(J)))return!1;return!0;case HJ:case WJ:case KJ:return CQ(+Q,+J);case xJ:return Q.name==J.name&&Q.message==J.message;case GJ:case NJ:return Q==J+"";case UJ:var U=MQ;case BJ:var B=Z&ZJ;if(U||(U=fQ),Q.size!=J.size&&!B)return!1;var K=x.get(Q);if(K)return K==J;Z|=XJ,x.set(Q,J);var F=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case wJ:if(k1)return k1.call(Q)==k1.call(J)}return!1}var ZJ=1,XJ=2,HJ="[object Boolean]",WJ="[object Date]",xJ="[object Error]",UJ="[object Map]",KJ="[object Number]",GJ="[object RegExp]",BJ="[object Set]",NJ="[object String]",wJ="[object Symbol]",zJ="[object ArrayBuffer]",FJ="[object DataView]",IQ,k1,kQ;var EQ=X(()=>{_Q();VQ();YJ();C1();LQ();PQ();IQ=m?m.prototype:void 0,k1=IQ?IQ.valueOf:void 0;kQ=RJ});function DJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var vQ;var dQ=X(()=>{vQ=DJ});var qJ,w;var M=X(()=>{qJ=Array.isArray,w=qJ});function OJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:vQ(Z,Y(Q))}var gQ;var pQ=X(()=>{dQ();M();gQ=OJ});function VJ(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var yQ;var mQ=X(()=>{yQ=VJ});function MJ(){return[]}var SQ;var AQ=X(()=>{SQ=MJ});var LJ,fJ,jQ,PJ,hQ;var nQ=X(()=>{mQ();AQ();LJ=Object.prototype,fJ=LJ.propertyIsEnumerable,jQ=Object.getOwnPropertySymbols,PJ=!jQ?SQ:function(Q){if(Q==null)return[];return Q=Object(Q),yQ(jQ(Q),function(J){return fJ.call(Q,J)})},hQ=PJ});function IJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var bQ;var iQ=X(()=>{bQ=IJ});function CJ(Q){return Q!=null&&typeof Q=="object"}var O;var S=X(()=>{O=CJ});function kJ(Q){return O(Q)&&L(Q)==_J}var _J="[object Arguments]",E1;var uQ=X(()=>{a();S();E1=kJ});var lQ,EJ,vJ,dJ,t;var v1=X(()=>{uQ();S();lQ=Object.prototype,EJ=lQ.hasOwnProperty,vJ=lQ.propertyIsEnumerable,dJ=E1(function(){return arguments}())?E1:function(Q){return O(Q)&&EJ.call(Q,"callee")&&!vJ.call(Q,"callee")},t=dJ});function gJ(){return!1}var TQ;var cQ=X(()=>{TQ=gJ});var Q1={};sQ(Q1,{default:()=>A});var aQ,oQ,pJ,rQ,yJ,mJ,A;var d1=X(()=>{y();cQ();aQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,oQ=aQ&&typeof e=="object"&&e&&!e.nodeType&&e,pJ=oQ&&oQ.exports===aQ,rQ=pJ?D.Buffer:void 0,yJ=rQ?rQ.isBuffer:void 0,mJ=yJ||TQ,A=mJ});function jJ(Q,J){var Y=typeof Q;return J=J==null?SJ:J,!!J&&(Y=="number"||Y!="symbol"&&AJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var SJ=9007199254740991,AJ,$1;var g1=X(()=>{AJ=/^(?:0|[1-9]\d*)$/;$1=jJ});function nJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=hJ}var hJ=9007199254740991,j;var J1=X(()=>{j=nJ});function B8(Q){return O(Q)&&j(Q.length)&&!!G[L(Q)]}var bJ="[object Arguments]",iJ="[object Array]",uJ="[object Boolean]",lJ="[object Date]",TJ="[object Error]",cJ="[object Function]",oJ="[object Map]",rJ="[object Number]",sJ="[object Object]",aJ="[object RegExp]",tJ="[object Set]",eJ="[object String]",Q8="[object WeakMap]",$8="[object ArrayBuffer]",J8="[object DataView]",Y8="[object Float32Array]",Z8="[object Float64Array]",X8="[object Int8Array]",H8="[object Int16Array]",W8="[object Int32Array]",x8="[object Uint8Array]",U8="[object Uint8ClampedArray]",K8="[object Uint16Array]",G8="[object Uint32Array]",G,tQ;var eQ=X(()=>{a();J1();S();G={};G[Y8]=G[Z8]=G[X8]=G[H8]=G[W8]=G[x8]=G[U8]=G[K8]=G[G8]=!0;G[bJ]=G[iJ]=G[$8]=G[uJ]=G[J8]=G[lJ]=G[TJ]=G[cJ]=G[oJ]=G[rJ]=G[sJ]=G[aJ]=G[tJ]=G[eJ]=G[Q8]=!1;tQ=B8});function N8(Q){return function(J){return Q(J)}}var Q5;var $5=X(()=>{Q5=N8});var Z1={};sQ(Z1,{default:()=>X1});var Y5,i,z8,p1,F8,X1;var Z5=X(()=>{w8();Y5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Y5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,z8=i&&i.exports===Y5,p1=z8&&J5.process,F8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return p1&&p1.binding&&p1.binding("util")}catch(J){}}(),X1=F8});var X5,R8,H1;var y1=X(()=>{eQ();$5();Z5();X5=X1&&X1.isTypedArray,R8=X5?Q5(X5):tQ,H1=R8});function O8(Q,J){var Y=w(Q),Z=!Y&&t(Q),H=!Y&&!Z&&A(Q),W=!Y&&!Z&&!H&&H1(Q),x=Y||Z||H||W,U=x?bQ(Q.length,String):[],B=U.length;for(var K in Q)if((J||q8.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||$1(K,B))))U.push(K);return U}var D8,q8,H5;var W5=X(()=>{iQ();v1();M();d1();g1();y1();D8=Object.prototype,q8=D8.hasOwnProperty;H5=O8});function M8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||V8;return Q===Y}var V8,x5;var U5=X(()=>{V8=Object.prototype;x5=M8});function L8(Q,J){return function(Y){return Q(J(Y))}}var K5;var G5=X(()=>{K5=L8});var f8,B5;var N5=X(()=>{G5();f8=K5(Object.keys,Object),B5=f8});function C8(Q){if(!x5(Q))return B5(Q);var J=[];for(var Y in Object(Q))if(I8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var P8,I8,w5;var z5=X(()=>{U5();N5();P8=Object.prototype,I8=P8.hasOwnProperty;w5=C8});function k8(Q){return Q!=null&&j(Q.length)&&!F5(Q)}var R5;var D5=X(()=>{_8();J1();R5=k8});function E8(Q){return R5(Q)?H5(Q):w5(Q)}var W1;var m1=X(()=>{W5();z5();D5();W1=E8});function v8(Q){return gQ(Q,W1,hQ)}var S1;var q5=X(()=>{pQ();nQ();m1();S1=v8});function y8(Q,J,Y,Z,H,W){var x=Y&d8,U=S1(Q),B=U.length,K=S1(J),F=K.length;if(B!=F&&!x)return!1;var z=B;while(z--){var N=U[z];if(!(x?N in J:p8.call(J,N)))return!1}var V=W.get(Q),R=W.get(J);if(V&&R)return V==J&&R==Q;var q=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<B){N=U[z];var C=Q[N],_=J[N];if(Z)var t1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(t1===void 0?C===_||H(C,_,Y,Z,W):t1)){q=!1;break}f||(f=N=="constructor")}if(q&&!f){var T=Q.constructor,c=J.constructor;if(T!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof T=="function"&&T instanceof T&&typeof c=="function"&&c instanceof c))q=!1}return W.delete(Q),W.delete(J),q}var d8=1,g8,p8,O5;var V5=X(()=>{q5();g8=Object.prototype,p8=g8.hasOwnProperty;O5=y8});var m8,U1;var M5=X(()=>{x1();y();m8=P(D,"DataView"),U1=m8});var S8,K1;var L5=X(()=>{x1();y();S8=P(D,"Promise"),K1=S8});var A8,G1;var f5=X(()=>{x1();y();A8=P(D,"Set"),G1=A8});var j8,B1;var P5=X(()=>{x1();y();j8=P(D,"WeakMap"),B1=j8});var I5="[object Map]",n8="[object Object]",C5="[object Promise]",_5="[object Set]",k5="[object WeakMap]",E5="[object DataView]",b8,i8,u8,l8,T8,k,A1;var v5=X(()=>{M5();WQ();L5();f5();P5();a();h8();b8=E(U1),i8=E(d),u8=E(K1),l8=E(G1),T8=E(B1),k=L;if(U1&&k(new U1(new ArrayBuffer(1)))!=E5||d&&k(new d)!=I5||K1&&k(K1.resolve())!=C5||G1&&k(new G1)!=_5||B1&&k(new B1)!=k5)k=function(Q){var J=L(Q),Y=J==n8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case b8:return E5;case i8:return I5;case u8:return C5;case l8:return _5;case T8:return k5}return J};A1=k});function r8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),B=x?g5:A1(Q),K=U?g5:A1(J);B=B==d5?N1:B,K=K==d5?N1:K;var F=B==N1,z=K==N1,N=B==K;if(N&&A(Q)){if(!A(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new p),x||H1(Q)?s(Q,J,Y,Z,H,W):kQ(Q,J,B,Y,Z,H,W);if(!(Y&c8)){var V=F&&p5.call(Q,"__wrapped__"),R=z&&p5.call(J,"__wrapped__");if(V||R){var q=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(q,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),O5(Q,J,Y,Z,H,W)}var c8=1,d5="[object Arguments]",g5="[object Array]",N1="[object Object]",o8,p5,y5;var m5=X(()=>{I1();C1();EQ();V5();v5();M();d1();y1();o8=Object.prototype,p5=o8.hasOwnProperty;y5=r8});function S5(Q,J,Y,Z,H){if(Q===J)return!0;if(Q==null||J==null||!O(Q)&&!O(J))return Q!==Q&&J!==J;return y5(Q,J,Y,Z,S5,H)}var w1;var j1=X(()=>{m5();S();w1=S5});function t8(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var B=U[0],K=Q[B],F=U[1];if(x&&U[2]){if(K===void 0&&!(B in Q))return!1}else{var z=new p;if(Z)var N=Z(K,F,B,Q,J,z);if(!(N===void 0?w1(F,K,s8|a8,Z,z):N))return!1}}return!0}var s8=1,a8=2,A5;var j5=X(()=>{I1();j1();A5=t8});function QY(Q){return Q===Q&&!h5(Q)}var z1;var h1=X(()=>{e8();z1=QY});function $Y(Q){var J=W1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,z1(H)]}return J}var n5;var b5=X(()=>{h1();m1();n5=$Y});function JY(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var F1;var n1=X(()=>{F1=JY});function YY(Q){var J=n5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||A5(Y,Q,J)}}var i5;var u5=X(()=>{j5();b5();n1();i5=YY});function XY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==ZY}var ZY="[object Symbol]",h;var R1=X(()=>{a();S();h=XY});function xY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||h(Q))return!0;return WY.test(Q)||!HY.test(Q)||J!=null&&Q in Object(J)}var HY,WY,n;var D1=X(()=>{M();R1();HY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WY=/^\w*$/;n=xY});function GY(Q){var J=l5(Q,function(Z){if(Y.size===KY)Y.clear();return Z}),Y=J.cache;return J}var KY=500,T5;var c5=X(()=>{UY();T5=GY});var BY,NY,wY,o5;var r5=X(()=>{c5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NY=/\\(\\)?/g,wY=T5(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(BY,function(Y,Z,H,W){J.push(H?W.replace(NY,"$1"):Z||Y)}),J}),o5=wY});function zY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var s5;var a5=X(()=>{s5=zY});function Q$(Q){if(typeof Q=="string")return Q;if(w(Q))return s5(Q,Q$)+"";if(h(Q))return e5?e5.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-FY?"-0":J}var FY=1/0,t5,e5,$$;var J$=X(()=>{_Q();a5();M();R1();t5=m?m.prototype:void 0,e5=t5?t5.toString:void 0;$$=Q$});function RY(Q){return Q==null?"":$$(Q)}var Y$;var Z$=X(()=>{J$();Y$=RY});function DY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:o5(Y$(Q))}var q1;var b1=X(()=>{M();D1();r5();Z$();q1=DY});function OY(Q){if(typeof Q=="string"||h(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-qY?"-0":J}var qY=1/0,I;var u=X(()=>{R1();I=OY});function VY(Q,J){J=q1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var O1;var i1=X(()=>{b1();u();O1=VY});function MY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var X$;var H$=X(()=>{i1();X$=MY});function LY(Q,J){return Q!=null&&J in Object(Q)}var W$;var x$=X(()=>{W$=LY});function fY(Q,J,Y){J=q1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&j(H)&&$1(x,H)&&(w(Q)||t(Q))}var U$;var K$=X(()=>{b1();v1();M();g1();J1();u();U$=fY});function PY(Q,J){return Q!=null&&U$(Q,J,W$)}var G$;var B$=X(()=>{x$();K$();G$=PY});function _Y(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=X$(Y,Q);return Z===void 0&&Z===J?G$(Y,Q):w1(J,Z,IY|CY)}}var IY=1,CY=2,N$;var w$=X(()=>{j1();H$();B$();D1();h1();n1();u();N$=_Y});function kY(Q){return Q}var z$;var F$=X(()=>{z$=kY});function EY(Q){return function(J){return J==null?void 0:J[Q]}}var R$;var D$=X(()=>{R$=EY});function vY(Q){return function(J){return O1(J,Q)}}var q$;var O$=X(()=>{i1();q$=vY});function dY(Q){return n(Q)?R$(I(Q)):q$(Q)}var V$;var M$=X(()=>{D$();O$();D1();u();V$=dY});function gY(Q){if(typeof Q=="function")return Q;if(Q==null)return z$;if(typeof Q=="object")return w(Q)?N$(Q[0],Q[1]):i5(Q);return V$(Q)}var L$;var f$=X(()=>{u5();w$();F$();M();M$();L$=gY});function pY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var P$;var I$=X(()=>{P$=pY});function yY(Q,J){return Q&&Q.length?P$(Q,L$(J,2)):0}var b;var C$=X(()=>{f$();I$();b=yY});import{randomUUID as u1}from"crypto";var _$=()=>{};function nX(){return l1}function bX(Q){l1=Q}function iX(Q){return V1.has(Q)?V1.get(Q):void 0}function uX(Q,J){V1.set(Q,J)}function lX(Q){return T1.get(Q)}function TX(Q,J){T1.set(Q,J)}function k$(){l1=null,V1.clear(),T1.clear()}function cX(){return c1}function oX(Q){c1=Q}function rX(){c1=void 0}var l1=null,V1,T1,c1;var E$=X(()=>{V1=new Map;T1=new Map});function v$(){let Q=new Set;return{subscribe(J){return Q.add(J),()=>{Q.delete(J)}},emit(...J){for(let Y of Q)Y(...J)},clear(){Q.clear()}}}var d$=()=>{};import{realpathSync as g$}from"fs";import{cwd as mY}from"process";function Z9(Q){return o1.add(Q),()=>o1.delete(Q)}function X9(){L1()}function L1(){for(let Q of o1)try{Q()}catch{}}function p$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof g$==="function"){let Y=mY();try{Q=g$(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),activeDurationMs:0,turnActiveSince:null,lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:u1(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],pendingSessionWakeup:null,sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,lspDeferLatchedTools:null,deferredDeltaLegacySession:!1,sessionEpochMs:Date.now()-process.uptime()*1000,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function H9(){return $.sessionId}function W9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=u1(),$.sessionProjectDir=null,m$($.sessionId),$.sessionId}function x9(){return $.parentSessionId}function U9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,m$(Q)}function m$(Q){$.pendingSessionWakeup=null,jY(),$.sessionEpochMs=Date.now(),y$.emit(Q)}function G9(){return $.sessionProjectDir}function B9(){return $.originalCwd}function N9(){return $.projectRoot}function w9(Q){$.originalCwd=Q.normalize("NFC")}function z9(Q){$.projectRoot=Q.normalize("NFC")}function F9(){return $.cwd}function R9(Q){$.cwd=Q.normalize("NFC")}function D9(){return $.directConnectServerUrl}function q9(Q){$.directConnectServerUrl=Q}function O9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function V9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function M9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function L9(){return $.totalCostUSD}function f9(){return $.totalAPIDuration}function P9(){if($.turnActiveSince==null)$.turnActiveSince=Date.now()}function I9(){if($.turnActiveSince!=null)$.activeDurationMs+=Date.now()-$.turnActiveSince,$.turnActiveSince=null}function C9(){return $.activeDurationMs+($.turnActiveSince!=null?Date.now()-$.turnActiveSince:0)}function _9(){return $.totalAPIDurationWithoutRetries}function k9(){return $.totalToolDuration}function E9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function v9(){return $.turnHookDurationMs}function d9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function g9(){$.turnHookDurationMs=0,$.turnHookCount=0}function p9(){return $.turnHookCount}function y9(){return $.turnToolDurationMs}function m9(){$.turnToolDurationMs=0,$.turnToolCount=0}function S9(){return $.turnToolCount}function A9(){return $.turnClassifierDurationMs}function j9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function h9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function n9(){return $.turnClassifierCount}function b9(){return $.statsStore}function i9(Q){$.statsStore=Q}function u9(Q){if(Q)S$();else r1=!0}function l9(){if(r1)S$()}function S$(){$.lastInteractionTime=Date.now(),r1=!1}function T9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function c9(){return $.totalLinesAdded}function o9(){return $.totalLinesRemoved}function r9(){return b(Object.values($.modelUsage),"inputTokens")}function A$(){return b(Object.values($.modelUsage),"outputTokens")}function s9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function a9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function t9(){return b(Object.values($.modelUsage),"webSearchRequests")}function e9(){return A$()-s1}function QH(){return a1}function $H(Q){s1=A$(),a1=Q,f1=0}function JH(){return f1}function YH(){f1++}function ZH(){$.hasUnknownModelCost=!0}function XH(){return $.hasUnknownModelCost}function HH(){return $.lastMainRequestId}function WH(Q){$.lastMainRequestId=Q}function xH(){return $.lastApiCompletionTimestamp}function UH(Q){$.lastApiCompletionTimestamp=Q}function KH(){$.pendingPostCompaction=!0}function GH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function BH(){return $.lastInteractionTime}function NH(){if(M1=!0,l)clearTimeout(l);l=setTimeout(()=>{M1=!1,l=void 0},j$),l.unref?.()}function wH(){return M1}async function zH(){while(M1)await new Promise((Q)=>setTimeout(Q,j$).unref?.())}function FH(){return $.modelUsage}function RH(Q){return $.modelUsage[Q]}function DH(){return $.mainLoopModelOverride}function qH(){return $.initialMainLoopModel}function OH(Q){$.mainLoopModelOverride=Q}function VH(Q){$.initialMainLoopModel=Q}function MH(){return $.sdkBetas}function LH(Q){$.sdkBetas=Q}function fH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.activeDurationMs=0,$.turnActiveSince=null,$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function PH({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;$.activeDurationMs=x??0,$.turnActiveSince=null}function IH(){throw Error("resetStateForTests can only be called in tests")}function CH(){return $.modelStrings}function _H(Q){$.modelStrings=Q}function kH(){$.modelStrings=null}function EH(Q,J){$.meter=Q,$.sessionCounter=J("claude_code.session.count",{description:"Count of CLI sessions started"}),$.locCounter=J("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),$.prCounter=J("claude_code.pull_request.count",{description:"Number of pull requests created"}),$.commitCounter=J("claude_code.commit.count",{description:"Number of git commits created"}),$.costCounter=J("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),$.tokenCounter=J("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),$.codeEditToolDecisionCounter=J("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),$.activeTimeCounter=J("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function vH(){return $.meter}function dH(){return $.sessionCounter}function gH(){return $.locCounter}function pH(){return $.prCounter}function yH(){return $.commitCounter}function mH(){return $.costCounter}function SH(){return $.tokenCounter}function AH(){return $.codeEditToolDecisionCounter}function jH(){return $.activeTimeCounter}function hH(){return $.loggerProvider}function nH(Q){$.loggerProvider=Q}function bH(){return $.eventLogger}function iH(Q){$.eventLogger=Q}function uH(){return $.meterProvider}function lH(Q){$.meterProvider=Q}function TH(){return $.tracerProvider}function cH(Q){$.tracerProvider=Q}function SY(){return!$.isInteractive}function oH(){return $.isInteractive}function rH(Q){$.isInteractive=Q}function sH(){return $.clientType}function aH(Q){$.clientType=Q}function tH(){return $.sdkAgentProgressSummariesEnabled}function eH(Q){$.sdkAgentProgressSummariesEnabled=Q}function Q4(){return $.kairosActive}function $4(Q){$.kairosActive=Q,L1()}function J4(){return $.strictToolResultPairing}function Y4(Q){$.strictToolResultPairing=Q}function Z4(){return $.userMsgOptIn}function X4(Q){$.userMsgOptIn=Q,L1()}function H4(){return $.sessionSource}function W4(Q){$.sessionSource=Q}function x4(){return $.questionPreviewFormat}function U4(Q){$.questionPreviewFormat=Q}function K4(){return $.agentColorMap}function G4(){return $.flagSettingsPath}function B4(Q){$.flagSettingsPath=Q}function N4(){return $.flagSettingsInline}function w4(Q){$.flagSettingsInline=Q}function z4(){return $.sessionIngressToken}function F4(Q){$.sessionIngressToken=Q}function R4(){return $.oauthTokenFromFd}function D4(Q){$.oauthTokenFromFd=Q}function q4(){return $.apiKeyFromFd}function O4(Q){$.apiKeyFromFd=Q}function V4(Q){$.lastAPIRequest=Q}function M4(){return $.lastAPIRequest}function L4(Q){$.lastAPIRequestMessages=Q}function f4(){return $.lastAPIRequestMessages}function P4(Q){$.lastClassifierRequests=Q}function I4(){return $.lastClassifierRequests}function C4(Q){$.cachedClaudeMdContent=Q}function _4(){return $.cachedClaudeMdContent}function k4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function E4(){return $.allowedSettingSources}function v4(Q){$.allowedSettingSources=Q}function d4(){return SY()&&$.clientType!=="claude-vscode"}function g4(Q){$.inlinePlugins=Q}function p4(){return $.inlinePlugins}function y4(Q){$.useCoworkPlugins=Q,k$()}function m4(){return $.useCoworkPlugins}function S4(Q){$.sessionBypassPermissionsMode=Q}function A4(){return $.sessionBypassPermissionsMode}function j4(Q){$.scheduledTasksEnabled=Q}function h4(){return $.scheduledTasksEnabled}function n4(){return $.sessionCronTasks}function b4(Q){$.sessionCronTasks.push(Q)}function i4(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function u4(){return $.pendingSessionWakeup}function l4(Q){let J=$.pendingSessionWakeup!==null;return $.pendingSessionWakeup=Q,J}function T4(){$.pendingSessionWakeup=null}function c4(Q){$.sessionTrustAccepted=Q}function o4(){return $.sessionTrustAccepted}function r4(Q){$.sessionPersistenceDisabled=Q}function s4(){return $.sessionPersistenceDisabled}function a4(){return $.hasExitedPlanMode}function t4(Q){$.hasExitedPlanMode=Q}function e4(){return $.needsPlanModeExitAttachment}function Q3(Q){$.needsPlanModeExitAttachment=Q}function $3(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function J3(){return $.needsAutoModeExitAttachment}function Y3(Q){$.needsAutoModeExitAttachment=Q}function Z3(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function X3(Q){$.initJsonSchema=Q}function H3(){return $.initJsonSchema}function W3(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function x3(){return $.registeredHooks}function U3(){$.registeredHooks=null}function K3(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function G3(){$.initJsonSchema=null,$.registeredHooks=null}function B3(){return $.planSlugCache}function N3(){return $.sessionCreatedTeams}function w3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function z3(){return $.teleportedSessionInfo}function F3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function R3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function D3(){return $.invokedSkills}function q3(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function O3(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function V3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function M3(Q,J){}function L3(){return AY}function f3(){return $.mainThreadAgentType}function P3(Q){$.mainThreadAgentType=Q}function I3(){return $.isRemoteMode}function C3(Q){$.isRemoteMode=Q}function _3(){return $.systemPromptSectionCache}function k3(Q,J){$.systemPromptSectionCache.set(Q,J)}function E3(){$.systemPromptSectionCache.clear()}function v3(){return $.lastEmittedDate}function d3(Q){$.lastEmittedDate=Q}function g3(){return $.additionalDirectoriesForClaudeMd}function p3(Q){$.additionalDirectoriesForClaudeMd=Q}function y3(){return $.allowedChannels}function m3(Q){$.allowedChannels=Q,L1()}function S3(){return $.hasDevChannels}function A3(Q){$.hasDevChannels=Q}function j3(){return $.largeSystemPromptDetected}function h3(Q){$.largeSystemPromptDetected=Q}function n3(){return $.afkModeHeaderLatched}function b3(Q){$.afkModeHeaderLatched=Q}function i3(){return $.fastModeHeaderLatched}function u3(Q){$.fastModeHeaderLatched=Q}function l3(){return $.thinkingClearLatched}function T3(Q){$.thinkingClearLatched=Q}function c3(Q){return $.lspDeferLatchedTools?.has(Q)??!1}function o3(Q){if(!$.lspDeferLatchedTools)$.lspDeferLatchedTools=new Set;$.lspDeferLatchedTools.add(Q)}function r3(){return $.deferredDeltaLegacySession}function s3(Q){$.deferredDeltaLegacySession=Q}function jY(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null,$.lspDeferLatchedTools=null,$.deferredDeltaLegacySession=!1}function a3(){return $.sessionEpochMs}function t3(){return $.promptId}function e3(Q){$.promptId=Q}function QW(){return!1}function $W(){return null}var o1,$,y$,K9,r1=!1,s1=0,a1=null,f1=0,M1=!1,l,j$=150,AY;var hY=X(()=>{C$();_$();E$();d$();o1=new Set;$=p$();y$=v$();K9=y$.subscribe;AY=[]});
|
|
2
|
-
export{p as Vla,I1 as Wla,zQ as Xla,FQ as Yla,qQ as Zla,OQ as _la,_1 as $la,VQ as ama,fQ as bma,PQ as cma,vQ as dma,dQ as ema,w as fma,M as gma,gQ as hma,pQ as ima,yQ as jma,mQ as kma,SQ as lma,AQ as mma,hQ as nma,nQ as oma,O as pma,S as qma,t as rma,v1 as sma,A as tma,d1 as uma,$1 as vma,g1 as wma,Q5 as xma,$5 as yma,X1 as zma,Z5 as Ama,H1 as Bma,y1 as Cma,H5 as Dma,W5 as Ema,x5 as Fma,U5 as Gma,K5 as Hma,G5 as Ima,R5 as Jma,D5 as Kma,W1 as Lma,m1 as Mma,S1 as Nma,q5 as Oma,G1 as Pma,f5 as Qma,A1 as Rma,v5 as Sma,w1 as Tma,j1 as Uma,h as Vma,R1 as Wma,s5 as Xma,a5 as Yma,Y$ as Zma,Z$ as _ma,q1 as $ma,b1 as ana,I as bna,u as cna,O1 as dna,i1 as ena,z$ as fna,F$ as gna,L$ as hna,f$ as ina,nX as jna,bX as kna,iX as lna,uX as mna,lX as nna,TX as ona,k$ as pna,cX as qna,oX as rna,rX as sna,E$ as tna,v$ as una,d$ as vna,Z9 as wna,X9 as xna,H9 as yna,W9 as zna,x9 as Ana,U9 as Bna,K9 as Cna,G9 as Dna,B9 as Ena,N9 as Fna,w9 as Gna,z9 as Hna,F9 as Ina,R9 as Jna,D9 as Kna,q9 as Lna,O9 as Mna,V9 as Nna,M9 as Ona,L9 as Pna,f9 as Qna,P9 as Rna,I9 as Sna,C9 as Tna,_9 as Una,k9 as Vna,E9 as Wna,v9 as Xna,d9 as Yna,g9 as Zna,p9 as _na,y9 as $na,m9 as aoa,S9 as boa,A9 as coa,j9 as doa,h9 as eoa,n9 as foa,b9 as goa,i9 as hoa,u9 as ioa,l9 as joa,T9 as koa,c9 as loa,o9 as moa,r9 as noa,A$ as ooa,s9 as poa,a9 as qoa,t9 as roa,e9 as soa,QH as toa,$H as uoa,JH as voa,YH as woa,ZH as xoa,XH as yoa,HH as zoa,WH as Aoa,xH as Boa,UH as Coa,KH as Doa,GH as Eoa,BH as Foa,NH as Goa,wH as Hoa,zH as Ioa,FH as Joa,RH as Koa,DH as Loa,qH as Moa,OH as Noa,VH as Ooa,MH as Poa,LH as Qoa,fH as Roa,PH as Soa,IH as Toa,CH as Uoa,_H as Voa,kH as Woa,EH as Xoa,vH as Yoa,dH as Zoa,gH as _oa,pH as $oa,yH as apa,mH as bpa,SH as cpa,AH as dpa,jH as epa,hH as fpa,nH as gpa,bH as hpa,iH as ipa,uH as jpa,lH as kpa,TH as lpa,cH as mpa,SY as npa,oH as opa,rH as ppa,sH as qpa,aH as rpa,tH as spa,eH as tpa,Q4 as upa,$4 as vpa,J4 as wpa,Y4 as xpa,Z4 as ypa,X4 as zpa,H4 as Apa,W4 as Bpa,x4 as Cpa,U4 as Dpa,K4 as Epa,G4 as Fpa,B4 as Gpa,N4 as Hpa,w4 as Ipa,z4 as Jpa,F4 as Kpa,R4 as Lpa,D4 as Mpa,q4 as Npa,O4 as Opa,V4 as Ppa,M4 as Qpa,L4 as Rpa,f4 as Spa,P4 as Tpa,I4 as Upa,C4 as Vpa,_4 as Wpa,k4 as Xpa,E4 as Ypa,v4 as Zpa,d4 as _pa,g4 as $pa,p4 as aqa,y4 as bqa,m4 as cqa,S4 as dqa,A4 as eqa,j4 as fqa,h4 as gqa,n4 as hqa,b4 as iqa,i4 as jqa,u4 as kqa,l4 as lqa,T4 as mqa,c4 as nqa,o4 as oqa,r4 as pqa,s4 as qqa,a4 as rqa,t4 as sqa,e4 as tqa,Q3 as uqa,$3 as vqa,J3 as wqa,Y3 as xqa,Z3 as yqa,X3 as zqa,H3 as Aqa,W3 as Bqa,x3 as Cqa,U3 as Dqa,K3 as Eqa,G3 as Fqa,B3 as Gqa,N3 as Hqa,w3 as Iqa,z3 as Jqa,F3 as Kqa,R3 as Lqa,D3 as Mqa,q3 as Nqa,O3 as Oqa,V3 as Pqa,M3 as Qqa,L3 as Rqa,f3 as Sqa,P3 as Tqa,I3 as Uqa,C3 as Vqa,_3 as Wqa,k3 as Xqa,E3 as Yqa,v3 as Zqa,d3 as _qa,g3 as $qa,p3 as ara,y3 as bra,m3 as cra,S3 as dra,A3 as era,j3 as fra,h3 as gra,n3 as hra,b3 as ira,i3 as jra,u3 as kra,l3 as lra,T3 as mra,c3 as nra,o3 as ora,r3 as pra,s3 as qra,jY as rra,a3 as sra,t3 as tra,e3 as ura,QW as vra,$W as wra,hY as xra};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Wra as M,Xra as Y}from"./cli-1.1.17-fpt9fhj3.mjs";import{jta as W}from"./cli-1.1.17-6ee0nqae.mjs";import{homedir as Z}from"os";import{join as Q}from"path";function $(q){if(q?.configDirEnv)return q.configDirEnv.normalize("NFC");let B=q?.homeDir??Z();return Q(B,".claudin").normalize("NFC")}function N(){return process.env.CLAUDIN_CONFIG_DIR}function _(){return Q(X(),"teams")}function j(q){let B=process.env.NODE_OPTIONS;if(!B)return!1;return B.split(/\s+/).includes(q)}function U(q){if(!q)return!1;if(typeof q==="boolean")return q;let B=q.toLowerCase().trim();return["1","true","yes","on"].includes(B)}function I(q){if(q===void 0)return!1;if(typeof q==="boolean")return!q;if(!q)return!1;let B=q.toLowerCase().trim();return["0","false","no","off"].includes(B)}function S(){return U(process.env.CLAUDIN_SIMPLE)||process.argv.includes("--bare")}function T(q){let B={};if(q)for(let F of q){let[J,...K]=F.split("=");if(!J||K.length===0)throw Error(`Invalid environment variable format: ${F}, environment variables should be added as: -e KEY1=value1 -e KEY2=value2`);B[J]=K.join("=")}return B}function c(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}function L(){return process.env.CLOUD_ML_REGION||"us-east5"}function w(){return U(process.env.CLAUDIN_BASH_MAINTAIN_PROJECT_WORKING_DIR)}function z(q){if(q){let B=b.find(([F])=>q.startsWith(F));if(B)return process.env[B[1]]||L()}return L()}var X,b;var k=W(()=>{Y();X=M(()=>$({configDirEnv:N()}),()=>process.env.CLAUDIN_CONFIG_DIR??"");b=[["claude-haiku-4-5","VERTEX_REGION_CLAUDE_HAIKU_4_5"],["claude-3-5-haiku","VERTEX_REGION_CLAUDE_3_5_HAIKU"],["claude-3-5-sonnet","VERTEX_REGION_CLAUDE_3_5_SONNET"],["claude-3-7-sonnet","VERTEX_REGION_CLAUDE_3_7_SONNET"],["claude-opus-5","VERTEX_REGION_CLAUDE_5_OPUS"],["claude-opus-4-7","VERTEX_REGION_CLAUDE_4_7_OPUS"],["claude-opus-4-6","VERTEX_REGION_CLAUDE_4_6_OPUS"],["claude-opus-4-1","VERTEX_REGION_CLAUDE_4_1_OPUS"],["claude-opus-4","VERTEX_REGION_CLAUDE_4_0_OPUS"],["claude-sonnet-4-6","VERTEX_REGION_CLAUDE_4_6_SONNET"],["claude-sonnet-4-5","VERTEX_REGION_CLAUDE_4_5_SONNET"],["claude-sonnet-4","VERTEX_REGION_CLAUDE_4_0_SONNET"]]});
|
|
2
|
-
export{$ as Hla,N as Ila,X as Jla,_ as Kla,j as Lla,U as Mla,I as Nla,S as Ola,T as Pla,c as Qla,L as Rla,w as Sla,z as Tla,k as Ula};
|