@claudiolabs/claudin 0.5.7 → 0.5.8
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-0.5.8-161prcqd.mjs +1 -0
- package/dist/chunks/App-0.5.8-s4939y9q.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.5.8-kyzt3tyh.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.5.8-0fws1s48.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.5.8-v373fzha.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.5.8-pbv15kg8.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.8-rmcm4b5v.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.5.8-q3djee4h.mjs +1 -0
- package/dist/chunks/DiffDialog-0.5.8-1gvdqrt3.mjs +3 -0
- package/dist/chunks/Doctor-0.5.8-5k5vqf8q.mjs +1 -0
- package/dist/chunks/Grove-0.5.8-g2xzefay.mjs +1 -0
- package/dist/chunks/ITermBackend-0.5.8-j209yx9z.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.5.8-98nc303h.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.5.8-p5qzw710.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.5.8-gp57r21r.mjs +1 -0
- package/dist/chunks/Onboarding-0.5.8-m0r6a4s2.mjs +1 -0
- package/dist/chunks/ProviderManager-0.5.8-6tfnxyse.mjs +1 -0
- package/dist/chunks/REPL-0.5.8-sf0q46pa.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.5.8-0j8mw0eh.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.5.8-13b725ee.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.5.8-3fxrymde.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.5.8-1dqx0hnb.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.5.8-84pek3s7.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.5.8-rcwm1j6z.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.5.8-fp493kvp.mjs +1 -0
- package/dist/chunks/TrustDialog-0.5.8-j0h8y92c.mjs +1 -0
- package/dist/chunks/activeProvider-0.5.8-y1zsxh1g.mjs +1 -0
- package/dist/chunks/add-dir-0.5.8-sz3kyvkz.mjs +1 -0
- package/dist/chunks/agents-0.5.8-cm3hzc60.mjs +3 -0
- package/dist/chunks/agents-0.5.8-qg1s69va.mjs +110 -0
- package/dist/chunks/api-0.5.8-pcde65dc.mjs +1 -0
- package/dist/chunks/asciicast-0.5.8-tgmb7g4m.mjs +1 -0
- package/dist/chunks/assistant-0.5.8-4mak6nq9.mjs +1 -0
- package/dist/chunks/auth-0.5.8-70ks8nc4.mjs +1 -0
- package/dist/chunks/auth-0.5.8-82vx5hkw.mjs +1 -0
- package/dist/chunks/autoMode-0.5.8-xjwjh2k5.mjs +48 -0
- package/dist/chunks/autoUpdater-0.5.8-rf164ggm.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.5.8-ak5ca2cx.mjs +1 -0
- package/dist/chunks/branch-0.5.8-n82xbsmg.mjs +4 -0
- package/dist/chunks/bridgePointer-0.5.8-m7nwe7sd.mjs +1 -0
- package/dist/chunks/btw-0.5.8-0yftty6m.mjs +1 -0
- package/dist/chunks/buddy-0.5.8-4dvkprbs.mjs +3 -0
- package/dist/chunks/cacache-0.5.8-vj95fs26.mjs +1 -0
- package/dist/chunks/cache-probe-0.5.8-944hef3p.mjs +21 -0
- package/dist/chunks/cacheStats-0.5.8-jdya51jg.mjs +4 -0
- package/dist/chunks/caches-0.5.8-xkrjxp25.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.5.8-fpb40wzd.mjs +1 -0
- package/dist/chunks/claudemd-0.5.8-eyztrzk8.mjs +1 -0
- package/dist/chunks/clear-0.5.8-kgvzdkgq.mjs +1 -0
- package/dist/chunks/clearTerminal-0.5.8-xv1faw7c.mjs +1 -0
- package/dist/chunks/cli-0.5.8-01yjahnz.mjs +2 -0
- package/dist/chunks/cli-0.5.8-07dyymev.mjs +2 -0
- package/dist/chunks/cli-0.5.8-0a4sdrgm.mjs +2 -0
- package/dist/chunks/cli-0.5.8-0bys4xae.mjs +2 -0
- package/dist/chunks/cli-0.5.8-0cmtavcs.mjs +2 -0
- package/dist/chunks/cli-0.5.8-0dkx0fh2.mjs +2 -0
- package/dist/chunks/cli-0.5.8-0hybhk72.mjs +2 -0
- package/dist/chunks/cli-0.5.8-0we2hm7d.mjs +2 -0
- package/dist/chunks/cli-0.5.8-1bp61y3p.mjs +2 -0
- package/dist/chunks/cli-0.5.8-1gm5vdye.mjs +2 -0
- package/dist/chunks/cli-0.5.8-1heha1zs.mjs +2 -0
- package/dist/chunks/cli-0.5.8-1x4w18nq.mjs +2 -0
- package/dist/chunks/cli-0.5.8-20gjzt7v.mjs +2 -0
- package/dist/chunks/cli-0.5.8-221e7v67.mjs +2 -0
- package/dist/chunks/cli-0.5.8-23ep6z70.mjs +2 -0
- package/dist/chunks/cli-0.5.8-2bq72da9.mjs +2 -0
- package/dist/chunks/cli-0.5.8-2f1ewq8w.mjs +2 -0
- package/dist/chunks/cli-0.5.8-2g8p9sae.mjs +2 -0
- package/dist/chunks/cli-0.5.8-2nr7eh5e.mjs +2 -0
- package/dist/chunks/cli-0.5.8-396k3ymm.mjs +25 -0
- package/dist/chunks/cli-0.5.8-3a6g7wmx.mjs +58 -0
- package/dist/chunks/cli-0.5.8-3fnpjffd.mjs +2 -0
- package/dist/chunks/cli-0.5.8-3ndh3gtc.mjs +2 -0
- package/dist/chunks/cli-0.5.8-3p5h46hv.mjs +2 -0
- package/dist/chunks/cli-0.5.8-3qjtx8w8.mjs +2 -0
- package/dist/chunks/cli-0.5.8-3y8x0dx3.mjs +2 -0
- package/dist/chunks/cli-0.5.8-3zg1gkde.mjs +2 -0
- package/dist/chunks/cli-0.5.8-402vctdy.mjs +2 -0
- package/dist/chunks/cli-0.5.8-42eyjvs8.mjs +2 -0
- package/dist/chunks/cli-0.5.8-4hvxb5dp.mjs +5286 -0
- package/dist/chunks/cli-0.5.8-4jrb4x7b.mjs +9 -0
- package/dist/chunks/cli-0.5.8-4mn881k7.mjs +2 -0
- package/dist/chunks/cli-0.5.8-4n26wzd5.mjs +2 -0
- package/dist/chunks/cli-0.5.8-4rgg1zqd.mjs +6 -0
- package/dist/chunks/cli-0.5.8-4xn4yjaa.mjs +8 -0
- package/dist/chunks/cli-0.5.8-4yyy85fr.mjs +2 -0
- package/dist/chunks/cli-0.5.8-510vqc09.mjs +4 -0
- package/dist/chunks/cli-0.5.8-57qan5v8.mjs +2 -0
- package/dist/chunks/cli-0.5.8-5a9k7mja.mjs +2 -0
- package/dist/chunks/cli-0.5.8-5bdfv4z2.mjs +2 -0
- package/dist/chunks/cli-0.5.8-5gzkph9c.mjs +2 -0
- package/dist/chunks/cli-0.5.8-5h92528m.mjs +4 -0
- package/dist/chunks/cli-0.5.8-5zqpfyqq.mjs +2 -0
- package/dist/chunks/cli-0.5.8-60e57smp.mjs +2 -0
- package/dist/chunks/cli-0.5.8-665mfjfq.mjs +5 -0
- package/dist/chunks/cli-0.5.8-69frkjjq.mjs +2 -0
- package/dist/chunks/cli-0.5.8-69swpyae.mjs +2 -0
- package/dist/chunks/cli-0.5.8-6epmns99.mjs +2 -0
- package/dist/chunks/cli-0.5.8-6nc6hmng.mjs +3 -0
- package/dist/chunks/cli-0.5.8-6t480jt6.mjs +2 -0
- package/dist/chunks/cli-0.5.8-6tfvmmwd.mjs +2 -0
- package/dist/chunks/cli-0.5.8-78y711gq.mjs +7 -0
- package/dist/chunks/cli-0.5.8-7fm71y20.mjs +2 -0
- package/dist/chunks/cli-0.5.8-7t6q11qp.mjs +3 -0
- package/dist/chunks/cli-0.5.8-7teqphwt.mjs +2 -0
- package/dist/chunks/cli-0.5.8-7w4sv41z.mjs +2 -0
- package/dist/chunks/cli-0.5.8-7wzh55d5.mjs +2 -0
- package/dist/chunks/cli-0.5.8-8b40nd32.mjs +3 -0
- package/dist/chunks/cli-0.5.8-8c0hade9.mjs +2 -0
- package/dist/chunks/cli-0.5.8-8h4z9e0a.mjs +2 -0
- package/dist/chunks/cli-0.5.8-8jfx4hd4.mjs +24 -0
- package/dist/chunks/cli-0.5.8-8jzc3wsz.mjs +2 -0
- package/dist/chunks/cli-0.5.8-8n05q2cg.mjs +4 -0
- package/dist/chunks/cli-0.5.8-903jgg2t.mjs +2 -0
- package/dist/chunks/cli-0.5.8-959n5v33.mjs +44 -0
- package/dist/chunks/cli-0.5.8-96p83b7z.mjs +2 -0
- package/dist/chunks/cli-0.5.8-99pnpzq7.mjs +2 -0
- package/dist/chunks/cli-0.5.8-9ffdsmw1.mjs +2 -0
- package/dist/chunks/cli-0.5.8-9fpm1ms3.mjs +2 -0
- package/dist/chunks/cli-0.5.8-9jzc13yp.mjs +2 -0
- package/dist/chunks/cli-0.5.8-a03sqccb.mjs +2 -0
- package/dist/chunks/cli-0.5.8-at01jfw3.mjs +2 -0
- package/dist/chunks/cli-0.5.8-axp2p1sa.mjs +2 -0
- package/dist/chunks/cli-0.5.8-bfynw1rm.mjs +2 -0
- package/dist/chunks/cli-0.5.8-bhc8vwxd.mjs +2 -0
- package/dist/chunks/cli-0.5.8-bjqx8j31.mjs +67 -0
- package/dist/chunks/cli-0.5.8-bnqvgx16.mjs +18 -0
- package/dist/chunks/cli-0.5.8-brnwv1s4.mjs +2 -0
- package/dist/chunks/cli-0.5.8-bv6qegpr.mjs +2 -0
- package/dist/chunks/cli-0.5.8-bv8mzvsr.mjs +2 -0
- package/dist/chunks/cli-0.5.8-bwsasv3j.mjs +12 -0
- package/dist/chunks/cli-0.5.8-cc6m9nm7.mjs +2 -0
- package/dist/chunks/cli-0.5.8-cctz1t07.mjs +2 -0
- package/dist/chunks/cli-0.5.8-cgt1fvs7.mjs +2 -0
- package/dist/chunks/cli-0.5.8-chb0m9py.mjs +17 -0
- package/dist/chunks/cli-0.5.8-chdp8e1b.mjs +15 -0
- package/dist/chunks/cli-0.5.8-cm551a1y.mjs +2 -0
- package/dist/chunks/cli-0.5.8-cv8hrynt.mjs +2 -0
- package/dist/chunks/cli-0.5.8-d3t3qcax.mjs +2 -0
- package/dist/chunks/cli-0.5.8-dn2c6x2n.mjs +2 -0
- package/dist/chunks/cli-0.5.8-dtn5ax3v.mjs +2 -0
- package/dist/chunks/cli-0.5.8-e5dnz0q6.mjs +2 -0
- package/dist/chunks/cli-0.5.8-e6gpyhnf.mjs +39 -0
- package/dist/chunks/cli-0.5.8-edf7e65a.mjs +2 -0
- package/dist/chunks/cli-0.5.8-eq34z9xf.mjs +133 -0
- package/dist/chunks/cli-0.5.8-erk0zvwn.mjs +3 -0
- package/dist/chunks/cli-0.5.8-et8r95zv.mjs +15 -0
- package/dist/chunks/cli-0.5.8-etf1n11s.mjs +2 -0
- package/dist/chunks/cli-0.5.8-ex39bk3p.mjs +3 -0
- package/dist/chunks/cli-0.5.8-f0cc21nk.mjs +34 -0
- package/dist/chunks/cli-0.5.8-f1znt77k.mjs +2 -0
- package/dist/chunks/cli-0.5.8-f54hhqdn.mjs +4 -0
- package/dist/chunks/cli-0.5.8-fbja9vc0.mjs +2 -0
- package/dist/chunks/cli-0.5.8-fhebd13f.mjs +12 -0
- package/dist/chunks/cli-0.5.8-fmyr9f7x.mjs +18 -0
- package/dist/chunks/cli-0.5.8-fr90cgpy.mjs +4 -0
- package/dist/chunks/cli-0.5.8-gf6svxra.mjs +27 -0
- package/dist/chunks/cli-0.5.8-gm4jqzfs.mjs +2 -0
- package/dist/chunks/cli-0.5.8-gnw67m2e.mjs +3 -0
- package/dist/chunks/cli-0.5.8-gp6x9qmw.mjs +2 -0
- package/dist/chunks/cli-0.5.8-gr2yrqhs.mjs +21 -0
- package/dist/chunks/cli-0.5.8-haddssvq.mjs +17 -0
- package/dist/chunks/cli-0.5.8-he3sfaey.mjs +2 -0
- package/dist/chunks/cli-0.5.8-hkfwdsmy.mjs +2 -0
- package/dist/chunks/cli-0.5.8-hz85a3w7.mjs +2 -0
- package/dist/chunks/cli-0.5.8-j5n54z7y.mjs +2 -0
- package/dist/chunks/cli-0.5.8-j5nn8m2r.mjs +2 -0
- package/dist/chunks/cli-0.5.8-j77twbsq.mjs +2 -0
- package/dist/chunks/cli-0.5.8-jcm5hsqp.mjs +6 -0
- package/dist/chunks/cli-0.5.8-je6yq94p.mjs +2 -0
- package/dist/chunks/cli-0.5.8-jjmb10ns.mjs +10 -0
- package/dist/chunks/cli-0.5.8-jtqyf6nz.mjs +9 -0
- package/dist/chunks/cli-0.5.8-kbjtm14d.mjs +2 -0
- package/dist/chunks/cli-0.5.8-kdatn7ch.mjs +2 -0
- package/dist/chunks/cli-0.5.8-kegk7gdp.mjs +3 -0
- package/dist/chunks/cli-0.5.8-kmzftyt4.mjs +2 -0
- package/dist/chunks/cli-0.5.8-m3186fr3.mjs +5 -0
- package/dist/chunks/cli-0.5.8-m7f68vhz.mjs +2 -0
- package/dist/chunks/cli-0.5.8-m9yn90fe.mjs +4 -0
- package/dist/chunks/cli-0.5.8-mf9m22v5.mjs +2 -0
- package/dist/chunks/cli-0.5.8-mgzx32hk.mjs +3 -0
- package/dist/chunks/cli-0.5.8-ntjmzc72.mjs +4 -0
- package/dist/chunks/cli-0.5.8-nwe7yne9.mjs +59 -0
- package/dist/chunks/cli-0.5.8-p2n1sz9e.mjs +2 -0
- package/dist/chunks/cli-0.5.8-p596xr80.mjs +2 -0
- package/dist/chunks/cli-0.5.8-p72phgsn.mjs +2 -0
- package/dist/chunks/cli-0.5.8-p84q1yp2.mjs +2 -0
- package/dist/chunks/cli-0.5.8-p9vc4jd4.mjs +2 -0
- package/dist/chunks/cli-0.5.8-pbvqqyq3.mjs +133 -0
- package/dist/chunks/cli-0.5.8-pmsd92jp.mjs +2 -0
- package/dist/chunks/cli-0.5.8-ppmhyhcf.mjs +2 -0
- package/dist/chunks/cli-0.5.8-pwcy1yf9.mjs +2 -0
- package/dist/chunks/cli-0.5.8-qdnr3r07.mjs +2 -0
- package/dist/chunks/cli-0.5.8-qf19nfhv.mjs +193 -0
- package/dist/chunks/cli-0.5.8-qgd7he6r.mjs +3 -0
- package/dist/chunks/cli-0.5.8-qrbzvxe2.mjs +2 -0
- package/dist/chunks/cli-0.5.8-qvy0n26p.mjs +2 -0
- package/dist/chunks/cli-0.5.8-r3r9r1x8.mjs +2 -0
- package/dist/chunks/cli-0.5.8-r3zjfgs5.mjs +2 -0
- package/dist/chunks/cli-0.5.8-r88abafr.mjs +15 -0
- package/dist/chunks/cli-0.5.8-rddkqxh8.mjs +16 -0
- package/dist/chunks/cli-0.5.8-rjn66mdx.mjs +4 -0
- package/dist/chunks/cli-0.5.8-rtmc93gs.mjs +2 -0
- package/dist/chunks/cli-0.5.8-rvxqss4v.mjs +12 -0
- package/dist/chunks/cli-0.5.8-s3j6qsck.mjs +3 -0
- package/dist/chunks/cli-0.5.8-s7px34xg.mjs +2 -0
- package/dist/chunks/cli-0.5.8-sbqgh2ca.mjs +2 -0
- package/dist/chunks/cli-0.5.8-t3x9v2fr.mjs +2 -0
- package/dist/chunks/cli-0.5.8-tc6ssmvg.mjs +2 -0
- package/dist/chunks/cli-0.5.8-tknpvwjq.mjs +24 -0
- package/dist/chunks/cli-0.5.8-tp8vvk8a.mjs +4 -0
- package/dist/chunks/cli-0.5.8-v274erpp.mjs +2 -0
- package/dist/chunks/cli-0.5.8-v5gbzf09.mjs +2 -0
- package/dist/chunks/cli-0.5.8-vax2sw0y.mjs +2 -0
- package/dist/chunks/cli-0.5.8-vck50j66.mjs +2 -0
- package/dist/chunks/cli-0.5.8-vhpgdwvb.mjs +45 -0
- package/dist/chunks/cli-0.5.8-w36atn94.mjs +2 -0
- package/dist/chunks/cli-0.5.8-w75qbypx.mjs +2 -0
- package/dist/chunks/cli-0.5.8-w7g735pf.mjs +2 -0
- package/dist/chunks/cli-0.5.8-was67jgw.mjs +2 -0
- package/dist/chunks/cli-0.5.8-wcjp9e8f.mjs +50 -0
- package/dist/chunks/cli-0.5.8-wcyjzsha.mjs +2 -0
- package/dist/chunks/cli-0.5.8-wdyh9mqa.mjs +3 -0
- package/dist/chunks/cli-0.5.8-wkcmqhde.mjs +2 -0
- package/dist/chunks/cli-0.5.8-wm9jby2t.mjs +2 -0
- package/dist/chunks/cli-0.5.8-wtz636rz.mjs +20 -0
- package/dist/chunks/cli-0.5.8-x8fzgqvs.mjs +2 -0
- package/dist/chunks/cli-0.5.8-x9q7q10d.mjs +2 -0
- package/dist/chunks/cli-0.5.8-xs1gy1tk.mjs +6 -0
- package/dist/chunks/cli-0.5.8-xvf56w0z.mjs +2 -0
- package/dist/chunks/cli-0.5.8-xwpp4ts7.mjs +2 -0
- package/dist/chunks/cli-0.5.8-xwzk13b3.mjs +2 -0
- package/dist/chunks/cli-0.5.8-yfpy2mmj.mjs +2 -0
- package/dist/chunks/cli-0.5.8-ywfvs57d.mjs +2 -0
- package/dist/chunks/cli-0.5.8-z14ncgt9.mjs +2 -0
- package/dist/chunks/cli-0.5.8-z3ev1ken.mjs +3 -0
- package/dist/chunks/cli-0.5.8-z447z8t0.mjs +2 -0
- package/dist/chunks/cli-0.5.8-zervw1k3.mjs +5 -0
- package/dist/chunks/cli-0.5.8-zf5yzqn5.mjs +1 -0
- package/dist/chunks/cli-0.5.8-zhydxkm6.mjs +2 -0
- package/dist/chunks/cli-0.5.8-zkn5gecs.mjs +2 -0
- package/dist/chunks/cli-0.5.8-zy590bkh.mjs +2 -0
- package/dist/chunks/client-0.5.8-9axd4w58.mjs +1 -0
- package/dist/chunks/color-0.5.8-resv1z9m.mjs +1 -0
- package/dist/chunks/compact-0.5.8-4rtxsg5x.mjs +3 -0
- package/dist/chunks/config-0.5.8-1j4xyj57.mjs +1 -0
- package/dist/chunks/config-0.5.8-ettscama.mjs +1 -0
- package/dist/chunks/context-0.5.8-fpg3fcmt.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.5.8-zaspwvjm.mjs +1 -0
- package/dist/chunks/conversation-0.5.8-hfvm0eqb.mjs +1 -0
- package/dist/chunks/copy-0.5.8-wzb7pjzr.mjs +9 -0
- package/dist/chunks/cost-0.5.8-f2m9t7ye.mjs +1 -0
- package/dist/chunks/createSSHSession-0.5.8-615sh7tx.mjs +1 -0
- package/dist/chunks/createSession-0.5.8-v7srm5ea.mjs +1 -0
- package/dist/chunks/debug-0.5.8-c84dbamw.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.5.8-b94dtwtd.mjs +1177 -0
- package/dist/chunks/desktop-0.5.8-46z10hnt.mjs +1 -0
- package/dist/chunks/detectRepository-0.5.8-rwc4rjfg.mjs +1 -0
- package/dist/chunks/detection-0.5.8-hydnvzf4.mjs +1 -0
- package/dist/chunks/diff-0.5.8-p7d54hn7.mjs +1 -0
- package/dist/chunks/doctor-0.5.8-894mdsxc.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.5.8-c12xcayk.mjs +1 -0
- package/dist/chunks/earlyInput-0.5.8-fwa1r2va.mjs +1 -0
- package/dist/chunks/effort-0.5.8-7gcwya2k.mjs +10 -0
- package/dist/chunks/envUtils-0.5.8-20c2f8v3.mjs +1 -0
- package/dist/chunks/environmentSelection-0.5.8-t6hzsc8z.mjs +1 -0
- package/dist/chunks/environments-0.5.8-fcp8bfe3.mjs +1 -0
- package/dist/chunks/errors-0.5.8-ev3jqbjj.mjs +1 -0
- package/dist/chunks/exampleCommands-0.5.8-d38qs6k2.mjs +1 -0
- package/dist/chunks/exit-0.5.8-f5v7cstg.mjs +1 -0
- package/dist/chunks/export-0.5.8-a8fg7991.mjs +2 -0
- package/dist/chunks/extra-usage-0.5.8-r5qs5fjk.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.5.8-f8mch55k.mjs +1 -0
- package/dist/chunks/fast-0.5.8-5yfvbb7d.mjs +1 -0
- package/dist/chunks/feedback-0.5.8-j9xstj5q.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.5.8-tmpw0mgj.mjs +1 -0
- package/dist/chunks/git-0.5.8-vvd1b8x0.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.5.8-de9f7e7s.mjs +1 -0
- package/dist/chunks/grove-0.5.8-rewcpbks.mjs +1 -0
- package/dist/chunks/growthbook-0.5.8-tt3wbrct.mjs +1 -0
- package/dist/chunks/headless-0.5.8-h1tn9ee3.mjs +2 -0
- package/dist/chunks/heapdump-0.5.8-e0vshas9.mjs +6 -0
- package/dist/chunks/help-0.5.8-mhhgyvqz.mjs +1 -0
- package/dist/chunks/hookChains-0.5.8-ewzfdp91.mjs +3 -0
- package/dist/chunks/hooks-0.5.8-mgp708m9.mjs +1 -0
- package/dist/chunks/hooks-0.5.8-p1mz2zy1.mjs +79 -0
- package/dist/chunks/ide-0.5.8-pzfhr27w.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.5.8-1skckgt6.mjs +1 -0
- package/dist/chunks/index-0.5.8-0dkn7rr7.mjs +9 -0
- package/dist/chunks/index-0.5.8-26yrjbk0.mjs +1 -0
- package/dist/chunks/index-0.5.8-5cr4y9wx.mjs +1 -0
- package/dist/chunks/index-0.5.8-5mgzpm7c.mjs +1 -0
- package/dist/chunks/index-0.5.8-b4p3af9y.mjs +1 -0
- package/dist/chunks/index-0.5.8-b7tvbbzv.mjs +2 -0
- package/dist/chunks/index-0.5.8-bk6ejev9.mjs +1 -0
- package/dist/chunks/index-0.5.8-cmyhdm8s.mjs +9 -0
- package/dist/chunks/index-0.5.8-egkksjaj.mjs +1 -0
- package/dist/chunks/index-0.5.8-hr8aqgvc.mjs +1 -0
- package/dist/chunks/index-0.5.8-jf20nzsg.mjs +1 -0
- package/dist/chunks/index-0.5.8-m6exk6z6.mjs +30 -0
- package/dist/chunks/index-0.5.8-mpm6xxk3.mjs +5 -0
- package/dist/chunks/index-0.5.8-nt058ay0.mjs +1 -0
- package/dist/chunks/index-0.5.8-qdwcg9cv.mjs +10 -0
- package/dist/chunks/index-0.5.8-rdk757cq.mjs +1 -0
- package/dist/chunks/index-0.5.8-red1reev.mjs +1 -0
- package/dist/chunks/index-0.5.8-rehfpmcw.mjs +1 -0
- package/dist/chunks/index-0.5.8-s3k17n65.mjs +1 -0
- package/dist/chunks/index-0.5.8-xpaaycp7.mjs +1 -0
- package/dist/chunks/index-0.5.8-ydqh8xbm.mjs +2 -0
- package/dist/chunks/index-0.5.8-yp0fpaqf.mjs +1 -0
- package/dist/chunks/init-0.5.8-kmfn7vay.mjs +1 -0
- package/dist/chunks/initReplBridge-0.5.8-f9ezc1jk.mjs +1 -0
- package/dist/chunks/ink-0.5.8-y01565nf.mjs +1 -0
- package/dist/chunks/insights-0.5.8-mwq5z31x.mjs +870 -0
- package/dist/chunks/install-0.5.8-se0j5qte.mjs +1 -0
- package/dist/chunks/install-github-app-0.5.8-zqhhg1fw.mjs +149 -0
- package/dist/chunks/install-slack-app-0.5.8-9qpwy0z9.mjs +1 -0
- package/dist/chunks/instrumentation-0.5.8-gbnaaqp3.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.5.8-wrn95m3j.mjs +1 -0
- package/dist/chunks/keybindings-0.5.8-j070t67n.mjs +2 -0
- package/dist/chunks/knowledge-0.5.8-fhr55cqh.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.5.8-rmkxtaea.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.5.8-f3j27p5s.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.5.8-7401ty3k.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.5.8-yhhkejwz.mjs +1 -0
- package/dist/chunks/log-0.5.8-78h0x7qg.mjs +1 -0
- package/dist/chunks/main-0.5.8-4ddjgz4x.mjs +1 -0
- package/dist/chunks/managedEnv-0.5.8-rxnh3nhr.mjs +1 -0
- package/dist/chunks/mcp-0.5.8-9ts7qrcv.mjs +4 -0
- package/dist/chunks/mcp-0.5.8-hhnpsgvh.mjs +17 -0
- package/dist/chunks/mcp-0.5.8-md6hzter.mjs +1 -0
- package/dist/chunks/mcpb-0.5.8-ebcb4nn4.mjs +1 -0
- package/dist/chunks/memory-0.5.8-ph5hb81n.mjs +3 -0
- package/dist/chunks/mobile-0.5.8-f04nmet1.mjs +2 -0
- package/dist/chunks/model-0.5.8-aqzt03nd.mjs +1 -0
- package/dist/chunks/model-0.5.8-nmcrv393.mjs +2 -0
- package/dist/chunks/oauth-0.5.8-n75mrvf3.mjs +1 -0
- package/dist/chunks/openaiShim-0.5.8-95kwrgpv.mjs +14 -0
- package/dist/chunks/output-style-0.5.8-zy932aj1.mjs +1 -0
- package/dist/chunks/package-APBHZ5F3-0.5.8-c4xw21z8.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.5.8-0dgzrde4.mjs +1 -0
- package/dist/chunks/parser-0.5.8-g6wgq5z2.mjs +1 -0
- package/dist/chunks/passes-0.5.8-jkdncmr5.mjs +1 -0
- package/dist/chunks/permissions-0.5.8-tesg1fmt.mjs +3 -0
- package/dist/chunks/plan-0.5.8-4h4wazbm.mjs +1 -0
- package/dist/chunks/plist-0.5.8-ygsvkws5.mjs +1 -0
- package/dist/chunks/plugin-0.5.8-meszp93t.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.5.8-8c49aq53.mjs +1 -0
- package/dist/chunks/plugins-0.5.8-zh9wq5by.mjs +9 -0
- package/dist/chunks/preActionHook-0.5.8-r8zrjby2.mjs +2 -0
- package/dist/chunks/print-0.5.8-dbcfsrdg.mjs +57 -0
- package/dist/chunks/privacy-settings-0.5.8-zj36f0ve.mjs +1 -0
- package/dist/chunks/process-0.5.8-1yf78q4y.mjs +1 -0
- package/dist/chunks/processBashCommand-0.5.8-pdnzd9ry.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.5.8-kmv9fs8d.mjs +9 -0
- package/dist/chunks/prompt-0.5.8-aa1v4zh0.mjs +1 -0
- package/dist/chunks/prompt-0.5.8-wabf0exz.mjs +1 -0
- package/dist/chunks/prompts-0.5.8-n865vxaw.mjs +1 -0
- package/dist/chunks/protocolHandler-0.5.8-6k7ma4yf.mjs +13 -0
- package/dist/chunks/provider-0.5.8-qsr51mc2.mjs +2 -0
- package/dist/chunks/providerProfiles-0.5.8-he8tbnf5.mjs +1 -0
- package/dist/chunks/providerValidation-0.5.8-6cjh43zv.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.5.8-pvbwwt4v.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.5.8-8jq52atf.mjs +34 -0
- package/dist/chunks/registry-0.5.8-ynn6qxq6.mjs +1 -0
- package/dist/chunks/release-notes-0.5.8-yydjz710.mjs +5 -0
- package/dist/chunks/reload-plugins-0.5.8-64ybz2n4.mjs +2 -0
- package/dist/chunks/remote-env-0.5.8-1f4tf3ch.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.5.8-qnrtc8aw.mjs +1 -0
- package/dist/chunks/remoteSession-0.5.8-kxsfx9gd.mjs +1 -0
- package/dist/chunks/rename-0.5.8-j4c6dg9n.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.5.8-w33fvpqt.mjs +1 -0
- package/dist/chunks/replLauncher-0.5.8-7jzc54fq.mjs +1 -0
- package/dist/chunks/resume-0.5.8-373epwyd.mjs +2 -0
- package/dist/chunks/rewind-0.5.8-b9qe0mwn.mjs +1 -0
- package/dist/chunks/rootOptions-0.5.8-h1ddt4ry.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.5.8-ma6nv5dg.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.5.8-1cc5m303.mjs +1 -0
- package/dist/chunks/session-0.5.8-rxft524k.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.5.8-r4eg8g3r.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.5.8-jm3bmvt7.mjs +1 -0
- package/dist/chunks/sessionStorage-0.5.8-kfghwskw.mjs +1 -0
- package/dist/chunks/settings-0.5.8-qxr7dgzb.mjs +1 -0
- package/dist/chunks/setup-0.5.8-769vnffz.mjs +5 -0
- package/dist/chunks/sinks-0.5.8-jcq0kgny.mjs +1 -0
- package/dist/chunks/skills-0.5.8-5qxr2p94.mjs +1 -0
- package/dist/chunks/startupProfiler-0.5.8-cpbf91zs.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.5.8-bctkpcea.mjs +1 -0
- package/dist/chunks/state-0.5.8-cppqmrbf.mjs +1 -0
- package/dist/chunks/stats-0.5.8-zcfm59db.mjs +6 -0
- package/dist/chunks/status-0.5.8-5v4y485z.mjs +1 -0
- package/dist/chunks/stickers-0.5.8-9gr6e2xg.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.5.8-wf4cta06.mjs +1 -0
- package/dist/chunks/tasks-0.5.8-30z30sqv.mjs +1 -0
- package/dist/chunks/teamHelpers-0.5.8-vcng2y7m.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.5.8-48p5p451.mjs +1 -0
- package/dist/chunks/teleport-0.5.8-650m4rks.mjs +1 -0
- package/dist/chunks/terminalSetup-0.5.8-ew1ax86g.mjs +1 -0
- package/dist/chunks/theme-0.5.8-7a06760x.mjs +1 -0
- package/dist/chunks/thinkback-0.5.8-xrvqhj8w.mjs +1 -0
- package/dist/chunks/thinkback-play-0.5.8-vkpn13f3.mjs +1 -0
- package/dist/chunks/toolPool-0.5.8-ntbr808f.mjs +1 -0
- package/dist/chunks/toolSearch-0.5.8-ybxz2f7f.mjs +1 -0
- package/dist/chunks/tools-0.5.8-egnmkxt7.mjs +1 -0
- package/dist/chunks/trustedDevice-0.5.8-422swdjw.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.5.8-tkat2x5p.mjs +69 -0
- package/dist/chunks/ultrareviewCommand-0.5.8-e7b2408n.mjs +4 -0
- package/dist/chunks/update-0.5.8-a285y5j4.mjs +86 -0
- package/dist/chunks/upgrade-0.5.8-8nxejvyv.mjs +1 -0
- package/dist/chunks/upstreamproxy-0.5.8-6a2g1s50.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.5.8-83a2qhsf.mjs +1 -0
- package/dist/chunks/usage-0.5.8-9dha8gsc.mjs +1 -0
- package/dist/chunks/util-0.5.8-c7zdhrd1.mjs +1 -0
- package/dist/chunks/utils-0.5.8-e8pfjkrb.mjs +1 -0
- package/dist/chunks/vim-0.5.8-pgsav8je.mjs +1 -0
- package/dist/chunks/watcher-0.5.8-w3q8518m.mjs +1 -0
- package/dist/chunks/wiki-0.5.8-1sa2h258.mjs +132 -0
- package/dist/chunks/worktree-0.5.8-59wmpecg.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.5.8-pexygrty.mjs +1 -0
- package/dist/chunks/wrapper-0.5.8-kmv5mk0m.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -7
- package/dist/help-agents.txt +8 -0
- package/dist/help-auth.txt +12 -0
- package/dist/help-auto-mode.txt +14 -0
- package/dist/help-doctor.txt +8 -0
- package/dist/help-install.txt +8 -0
- package/dist/help-mcp.txt +31 -0
- package/dist/help-plugin.txt +20 -0
- package/dist/help-plugins.txt +20 -0
- package/dist/help-setup-token.txt +6 -0
- package/dist/help-update.txt +6 -0
- package/dist/help-upgrade.txt +6 -0
- package/dist/help.txt +68 -0
- package/package.json +4 -1
- package/scripts/postinstall-warmup.mjs +70 -0
- package/dist/chunks/AgentTool-0.5.7-0krqsszm.mjs +0 -1
- package/dist/chunks/App-0.5.7-k8c6xsbz.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.5.7-djmd358f.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.5.7-40f5p134.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.5.7-dgpfkf7n.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.5.7-m2n3zekg.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.7-8p2b9258.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.5.7-e11rkgsy.mjs +0 -1
- package/dist/chunks/DiffDialog-0.5.7-df3q0dyx.mjs +0 -3
- package/dist/chunks/Doctor-0.5.7-996gqph8.mjs +0 -1
- package/dist/chunks/Grove-0.5.7-7xphv8qp.mjs +0 -1
- package/dist/chunks/ITermBackend-0.5.7-rv5t26my.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.5.7-76awdeqe.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.5.7-d59ky2sv.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.5.7-nkkcryn5.mjs +0 -1
- package/dist/chunks/Onboarding-0.5.7-v3jtvbkn.mjs +0 -1
- package/dist/chunks/ProviderManager-0.5.7-92navbez.mjs +0 -1
- package/dist/chunks/REPL-0.5.7-6zag11mg.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.5.7-hpgm4f1s.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.5.7-xrverbhp.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.5.7-xn5z7dt4.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.5.7-s29rrsak.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.5.7-3r5mn1za.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.5.7-k3c0537z.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.5.7-mybq3qz5.mjs +0 -1
- package/dist/chunks/TrustDialog-0.5.7-r4dhznyf.mjs +0 -1
- package/dist/chunks/activeProvider-0.5.7-8emdm8j8.mjs +0 -1
- package/dist/chunks/add-dir-0.5.7-jwaavdc7.mjs +0 -1
- package/dist/chunks/agents-0.5.7-e7dajmrs.mjs +0 -110
- package/dist/chunks/agents-0.5.7-q2vtj7pt.mjs +0 -3
- package/dist/chunks/api-0.5.7-j8bn129y.mjs +0 -1
- package/dist/chunks/asciicast-0.5.7-rp1h8swq.mjs +0 -1
- package/dist/chunks/assistant-0.5.7-sfk22b3z.mjs +0 -1
- package/dist/chunks/auth-0.5.7-ez3n1qpx.mjs +0 -1
- package/dist/chunks/auth-0.5.7-khssh83t.mjs +0 -1
- package/dist/chunks/autoMode-0.5.7-ezn856pd.mjs +0 -48
- package/dist/chunks/autoUpdater-0.5.7-dkw2aw1e.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.5.7-9ejvx75r.mjs +0 -1
- package/dist/chunks/branch-0.5.7-cjbtbwg1.mjs +0 -4
- package/dist/chunks/bridgePointer-0.5.7-5z0vqchx.mjs +0 -1
- package/dist/chunks/btw-0.5.7-p3kbd1wf.mjs +0 -1
- package/dist/chunks/buddy-0.5.7-pa55rfb4.mjs +0 -3
- package/dist/chunks/cacache-0.5.7-anq54jwq.mjs +0 -1
- package/dist/chunks/cache-probe-0.5.7-6j5hzxc4.mjs +0 -21
- package/dist/chunks/cacheStats-0.5.7-e1byp2n2.mjs +0 -4
- package/dist/chunks/caches-0.5.7-w8n6wxaj.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.5.7-5kkyx4pz.mjs +0 -1
- package/dist/chunks/claudemd-0.5.7-jb7byep9.mjs +0 -1
- package/dist/chunks/clear-0.5.7-tkh04z2c.mjs +0 -1
- package/dist/chunks/clearTerminal-0.5.7-mbqev32s.mjs +0 -1
- package/dist/chunks/cli-0.5.7-023jpnwm.mjs +0 -2
- package/dist/chunks/cli-0.5.7-08mn1pmc.mjs +0 -5
- package/dist/chunks/cli-0.5.7-0bv1xcbe.mjs +0 -21
- package/dist/chunks/cli-0.5.7-0df5m6td.mjs +0 -2
- package/dist/chunks/cli-0.5.7-0rvzfmhb.mjs +0 -2
- package/dist/chunks/cli-0.5.7-0s7wtvbz.mjs +0 -2
- package/dist/chunks/cli-0.5.7-1fmgwk5c.mjs +0 -2
- package/dist/chunks/cli-0.5.7-1kmeaqmc.mjs +0 -2
- package/dist/chunks/cli-0.5.7-20cz322w.mjs +0 -2
- package/dist/chunks/cli-0.5.7-23hg3t0h.mjs +0 -2
- package/dist/chunks/cli-0.5.7-258ytmbr.mjs +0 -2
- package/dist/chunks/cli-0.5.7-26pwg6gg.mjs +0 -2
- package/dist/chunks/cli-0.5.7-2h4rgwc9.mjs +0 -2
- package/dist/chunks/cli-0.5.7-2qxsy7jq.mjs +0 -12
- package/dist/chunks/cli-0.5.7-2tnvc3ka.mjs +0 -2
- package/dist/chunks/cli-0.5.7-2xm61gkr.mjs +0 -5
- package/dist/chunks/cli-0.5.7-2ytftsg5.mjs +0 -2
- package/dist/chunks/cli-0.5.7-31969syr.mjs +0 -2
- package/dist/chunks/cli-0.5.7-31hdc2nc.mjs +0 -2
- package/dist/chunks/cli-0.5.7-35yf0b84.mjs +0 -2
- package/dist/chunks/cli-0.5.7-3jrq7w6x.mjs +0 -2
- package/dist/chunks/cli-0.5.7-3xssm25z.mjs +0 -2
- package/dist/chunks/cli-0.5.7-469r2a5r.mjs +0 -193
- package/dist/chunks/cli-0.5.7-4eg4pktt.mjs +0 -2
- package/dist/chunks/cli-0.5.7-4gmpny6k.mjs +0 -133
- package/dist/chunks/cli-0.5.7-4zv4np07.mjs +0 -2
- package/dist/chunks/cli-0.5.7-500c5b8m.mjs +0 -4
- package/dist/chunks/cli-0.5.7-52mwnwy6.mjs +0 -58
- package/dist/chunks/cli-0.5.7-55zn2cct.mjs +0 -4
- package/dist/chunks/cli-0.5.7-5736yt36.mjs +0 -2
- package/dist/chunks/cli-0.5.7-5aghfr8k.mjs +0 -3
- package/dist/chunks/cli-0.5.7-5by4fby4.mjs +0 -2
- package/dist/chunks/cli-0.5.7-5e5xfeq6.mjs +0 -2
- package/dist/chunks/cli-0.5.7-5jaayymr.mjs +0 -17
- package/dist/chunks/cli-0.5.7-5jms2g5g.mjs +0 -2
- package/dist/chunks/cli-0.5.7-5kv9dgvn.mjs +0 -2
- package/dist/chunks/cli-0.5.7-5mrw857q.mjs +0 -4
- package/dist/chunks/cli-0.5.7-5q6tfz39.mjs +0 -2
- package/dist/chunks/cli-0.5.7-650e2qk4.mjs +0 -18
- package/dist/chunks/cli-0.5.7-67xxeffj.mjs +0 -2
- package/dist/chunks/cli-0.5.7-6d26vvaa.mjs +0 -2
- package/dist/chunks/cli-0.5.7-6g3w68ks.mjs +0 -2
- package/dist/chunks/cli-0.5.7-6gfay8ap.mjs +0 -2
- package/dist/chunks/cli-0.5.7-6gkpb0vw.mjs +0 -2
- package/dist/chunks/cli-0.5.7-6pssgqdn.mjs +0 -2
- package/dist/chunks/cli-0.5.7-6thqe6p4.mjs +0 -3
- package/dist/chunks/cli-0.5.7-73er78b7.mjs +0 -15
- package/dist/chunks/cli-0.5.7-7a9gq9ff.mjs +0 -2
- package/dist/chunks/cli-0.5.7-7hm7dxyp.mjs +0 -2
- package/dist/chunks/cli-0.5.7-7k456xwn.mjs +0 -3
- package/dist/chunks/cli-0.5.7-7mmyazqh.mjs +0 -34
- package/dist/chunks/cli-0.5.7-7rgsmfw7.mjs +0 -3
- package/dist/chunks/cli-0.5.7-7wyhqw17.mjs +0 -2
- package/dist/chunks/cli-0.5.7-82x8qaxx.mjs +0 -2
- package/dist/chunks/cli-0.5.7-89fcvfy0.mjs +0 -2
- package/dist/chunks/cli-0.5.7-8ac9d7r6.mjs +0 -2
- package/dist/chunks/cli-0.5.7-8ap24w7a.mjs +0 -2
- package/dist/chunks/cli-0.5.7-8e61g5bq.mjs +0 -10
- package/dist/chunks/cli-0.5.7-8sbq2qed.mjs +0 -2
- package/dist/chunks/cli-0.5.7-8sqyymdb.mjs +0 -2
- package/dist/chunks/cli-0.5.7-8ychjqct.mjs +0 -16
- package/dist/chunks/cli-0.5.7-93eaxn9a.mjs +0 -2
- package/dist/chunks/cli-0.5.7-93k1z52y.mjs +0 -2
- package/dist/chunks/cli-0.5.7-9acdh8nc.mjs +0 -2
- package/dist/chunks/cli-0.5.7-9jck3vts.mjs +0 -15
- package/dist/chunks/cli-0.5.7-9rbmn26q.mjs +0 -24
- package/dist/chunks/cli-0.5.7-9sysdak3.mjs +0 -2
- package/dist/chunks/cli-0.5.7-9ysat94v.mjs +0 -2
- package/dist/chunks/cli-0.5.7-9z55nm22.mjs +0 -3
- package/dist/chunks/cli-0.5.7-9zwbnq8g.mjs +0 -2
- package/dist/chunks/cli-0.5.7-a47hzz3r.mjs +0 -2
- package/dist/chunks/cli-0.5.7-aq7a3646.mjs +0 -2
- package/dist/chunks/cli-0.5.7-ayjrdmrk.mjs +0 -2
- package/dist/chunks/cli-0.5.7-b51h487f.mjs +0 -2
- package/dist/chunks/cli-0.5.7-bkptgahs.mjs +0 -4
- package/dist/chunks/cli-0.5.7-bnapjxz4.mjs +0 -2
- package/dist/chunks/cli-0.5.7-bzrvdrq4.mjs +0 -2
- package/dist/chunks/cli-0.5.7-c1mv1399.mjs +0 -2
- package/dist/chunks/cli-0.5.7-c9dtw94k.mjs +0 -2
- package/dist/chunks/cli-0.5.7-cakvh73p.mjs +0 -2
- package/dist/chunks/cli-0.5.7-d19d4v07.mjs +0 -2
- package/dist/chunks/cli-0.5.7-d4gtv7f7.mjs +0 -2
- package/dist/chunks/cli-0.5.7-de90yre1.mjs +0 -2
- package/dist/chunks/cli-0.5.7-dntg9qbj.mjs +0 -133
- package/dist/chunks/cli-0.5.7-dp3z7wkh.mjs +0 -2
- package/dist/chunks/cli-0.5.7-dr7n1fyv.mjs +0 -20
- package/dist/chunks/cli-0.5.7-e8eqdfnf.mjs +0 -2
- package/dist/chunks/cli-0.5.7-eer6xagb.mjs +0 -2
- package/dist/chunks/cli-0.5.7-esx85d2g.mjs +0 -2
- package/dist/chunks/cli-0.5.7-eyemfxtz.mjs +0 -2
- package/dist/chunks/cli-0.5.7-fx3gesdm.mjs +0 -2
- package/dist/chunks/cli-0.5.7-g2dd5t6j.mjs +0 -2
- package/dist/chunks/cli-0.5.7-g4n7dg2d.mjs +0 -9
- package/dist/chunks/cli-0.5.7-g7k0r0ea.mjs +0 -5
- package/dist/chunks/cli-0.5.7-g8dqk0se.mjs +0 -2
- package/dist/chunks/cli-0.5.7-gcnk0vke.mjs +0 -6
- package/dist/chunks/cli-0.5.7-gnq8vh0c.mjs +0 -2
- package/dist/chunks/cli-0.5.7-gy4csxb5.mjs +0 -2
- package/dist/chunks/cli-0.5.7-h9v4tqbs.mjs +0 -24
- package/dist/chunks/cli-0.5.7-hdcnw5y4.mjs +0 -2
- package/dist/chunks/cli-0.5.7-hhre0h51.mjs +0 -2
- package/dist/chunks/cli-0.5.7-hp25yk8y.mjs +0 -2
- package/dist/chunks/cli-0.5.7-hq4wbper.mjs +0 -11
- package/dist/chunks/cli-0.5.7-hw11qa05.mjs +0 -3
- package/dist/chunks/cli-0.5.7-hw3pyj8g.mjs +0 -2
- package/dist/chunks/cli-0.5.7-j7h72bgz.mjs +0 -2
- package/dist/chunks/cli-0.5.7-j8q5bja8.mjs +0 -2
- package/dist/chunks/cli-0.5.7-jf3f8gen.mjs +0 -2
- package/dist/chunks/cli-0.5.7-jga8kgpr.mjs +0 -2
- package/dist/chunks/cli-0.5.7-jptzskw1.mjs +0 -2
- package/dist/chunks/cli-0.5.7-jw2te6th.mjs +0 -2
- package/dist/chunks/cli-0.5.7-k11mzgcb.mjs +0 -2
- package/dist/chunks/cli-0.5.7-kctf48t4.mjs +0 -7
- package/dist/chunks/cli-0.5.7-knkzkqbw.mjs +0 -2
- package/dist/chunks/cli-0.5.7-kp9pg4sr.mjs +0 -2
- package/dist/chunks/cli-0.5.7-kvazvrra.mjs +0 -2
- package/dist/chunks/cli-0.5.7-ky5khwx2.mjs +0 -2
- package/dist/chunks/cli-0.5.7-m0841vt9.mjs +0 -2
- package/dist/chunks/cli-0.5.7-m4ekdyhj.mjs +0 -2
- package/dist/chunks/cli-0.5.7-m4wwfa6q.mjs +0 -2
- package/dist/chunks/cli-0.5.7-m5q27x96.mjs +0 -2
- package/dist/chunks/cli-0.5.7-m82d23hf.mjs +0 -2
- package/dist/chunks/cli-0.5.7-mdcw5fyw.mjs +0 -4
- package/dist/chunks/cli-0.5.7-mz4njeb9.mjs +0 -39
- package/dist/chunks/cli-0.5.7-mzfr99sc.mjs +0 -67
- package/dist/chunks/cli-0.5.7-p381d4sx.mjs +0 -3
- package/dist/chunks/cli-0.5.7-p4mv49ab.mjs +0 -25
- package/dist/chunks/cli-0.5.7-pse9qff7.mjs +0 -2
- package/dist/chunks/cli-0.5.7-pzjz115k.mjs +0 -2
- package/dist/chunks/cli-0.5.7-q0pq4367.mjs +0 -9
- package/dist/chunks/cli-0.5.7-q2e6xpch.mjs +0 -5281
- package/dist/chunks/cli-0.5.7-q6sgd9ng.mjs +0 -12
- package/dist/chunks/cli-0.5.7-q8v8naf8.mjs +0 -2
- package/dist/chunks/cli-0.5.7-qdcp748z.mjs +0 -2
- package/dist/chunks/cli-0.5.7-qdqrgv1q.mjs +0 -2
- package/dist/chunks/cli-0.5.7-qk0n5hqa.mjs +0 -9
- package/dist/chunks/cli-0.5.7-r4cdt1b9.mjs +0 -50
- package/dist/chunks/cli-0.5.7-ra5kv4tw.mjs +0 -2
- package/dist/chunks/cli-0.5.7-rb75eq83.mjs +0 -2
- package/dist/chunks/cli-0.5.7-rggstqv6.mjs +0 -2
- package/dist/chunks/cli-0.5.7-rr1yd8f3.mjs +0 -4
- package/dist/chunks/cli-0.5.7-rzts2ke3.mjs +0 -2
- package/dist/chunks/cli-0.5.7-s09knvta.mjs +0 -3
- package/dist/chunks/cli-0.5.7-s5nd54ga.mjs +0 -3
- package/dist/chunks/cli-0.5.7-sb3fjts4.mjs +0 -2
- package/dist/chunks/cli-0.5.7-sjd6g3n6.mjs +0 -15
- package/dist/chunks/cli-0.5.7-sjx0wm99.mjs +0 -2
- package/dist/chunks/cli-0.5.7-skfm51ta.mjs +0 -44
- package/dist/chunks/cli-0.5.7-sx7pr75m.mjs +0 -2
- package/dist/chunks/cli-0.5.7-t6mtpr04.mjs +0 -2
- package/dist/chunks/cli-0.5.7-t8z48kc2.mjs +0 -4
- package/dist/chunks/cli-0.5.7-tbga87q3.mjs +0 -2
- package/dist/chunks/cli-0.5.7-tc3vm4ra.mjs +0 -2
- package/dist/chunks/cli-0.5.7-tgq7dtyz.mjs +0 -2
- package/dist/chunks/cli-0.5.7-tpjjm1z2.mjs +0 -45
- package/dist/chunks/cli-0.5.7-tqn2ged5.mjs +0 -2
- package/dist/chunks/cli-0.5.7-twqt7rxq.mjs +0 -6
- package/dist/chunks/cli-0.5.7-vgc7nzef.mjs +0 -2
- package/dist/chunks/cli-0.5.7-vk8p3n59.mjs +0 -2
- package/dist/chunks/cli-0.5.7-vn5aht50.mjs +0 -2
- package/dist/chunks/cli-0.5.7-vvrg78m6.mjs +0 -2
- package/dist/chunks/cli-0.5.7-vy4r02pg.mjs +0 -4
- package/dist/chunks/cli-0.5.7-vyxaeh82.mjs +0 -2
- package/dist/chunks/cli-0.5.7-w024nwsf.mjs +0 -2
- package/dist/chunks/cli-0.5.7-w16wj21h.mjs +0 -2
- package/dist/chunks/cli-0.5.7-w1bf9y93.mjs +0 -3
- package/dist/chunks/cli-0.5.7-w2fb8g6y.mjs +0 -2
- package/dist/chunks/cli-0.5.7-w50j12vv.mjs +0 -2
- package/dist/chunks/cli-0.5.7-w6nex68w.mjs +0 -2
- package/dist/chunks/cli-0.5.7-wz2cbwxt.mjs +0 -4
- package/dist/chunks/cli-0.5.7-x0n9mq65.mjs +0 -2
- package/dist/chunks/cli-0.5.7-x1azmh1g.mjs +0 -2
- package/dist/chunks/cli-0.5.7-x1w96j6d.mjs +0 -59
- package/dist/chunks/cli-0.5.7-x7dabprd.mjs +0 -2
- package/dist/chunks/cli-0.5.7-x8t1aeey.mjs +0 -2
- package/dist/chunks/cli-0.5.7-xepvraxn.mjs +0 -2
- package/dist/chunks/cli-0.5.7-xn6deh04.mjs +0 -6
- package/dist/chunks/cli-0.5.7-y2vc4xb6.mjs +0 -12
- package/dist/chunks/cli-0.5.7-y3pa8ttm.mjs +0 -2
- package/dist/chunks/cli-0.5.7-yaywev87.mjs +0 -2
- package/dist/chunks/cli-0.5.7-ycj2xr53.mjs +0 -3
- package/dist/chunks/cli-0.5.7-yzncgfs4.mjs +0 -18
- package/dist/chunks/cli-0.5.7-z1n09m4p.mjs +0 -2
- package/dist/chunks/cli-0.5.7-z97pranc.mjs +0 -2
- package/dist/chunks/cli-0.5.7-za19q18c.mjs +0 -2
- package/dist/chunks/cli-0.5.7-zb8ztx8p.mjs +0 -2
- package/dist/chunks/cli-0.5.7-zkw2fx86.mjs +0 -2
- package/dist/chunks/client-0.5.7-bqw74z29.mjs +0 -1
- package/dist/chunks/color-0.5.7-v1s3bvcj.mjs +0 -1
- package/dist/chunks/compact-0.5.7-7kxsprp5.mjs +0 -3
- package/dist/chunks/config-0.5.7-e41nnxnm.mjs +0 -1
- package/dist/chunks/config-0.5.7-q40ykcbb.mjs +0 -1
- package/dist/chunks/context-0.5.7-qvcehmj5.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.5.7-02tkje0w.mjs +0 -1
- package/dist/chunks/conversation-0.5.7-h7r20gzw.mjs +0 -1
- package/dist/chunks/copy-0.5.7-p3xxq9b3.mjs +0 -9
- package/dist/chunks/cost-0.5.7-s3rzm0vd.mjs +0 -1
- package/dist/chunks/createSSHSession-0.5.7-s9fc5f1h.mjs +0 -1
- package/dist/chunks/createSession-0.5.7-4e64teqm.mjs +0 -1
- package/dist/chunks/debug-0.5.7-v8bqkmzm.mjs +0 -1
- package/dist/chunks/desktop-0.5.7-tna0yskx.mjs +0 -1
- package/dist/chunks/detectRepository-0.5.7-3dy7yz89.mjs +0 -1
- package/dist/chunks/detection-0.5.7-39zsjy8t.mjs +0 -1
- package/dist/chunks/diff-0.5.7-9ywmnxmx.mjs +0 -1
- package/dist/chunks/doctor-0.5.7-ty5zxpem.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.5.7-g458bh9g.mjs +0 -1
- package/dist/chunks/earlyInput-0.5.7-x73yj3dn.mjs +0 -1
- package/dist/chunks/effort-0.5.7-h76k43fj.mjs +0 -10
- package/dist/chunks/envUtils-0.5.7-w1t7akfc.mjs +0 -1
- package/dist/chunks/environmentSelection-0.5.7-5dsnr0sv.mjs +0 -1
- package/dist/chunks/environments-0.5.7-pqh2gnjb.mjs +0 -1
- package/dist/chunks/errors-0.5.7-pa0hz043.mjs +0 -1
- package/dist/chunks/exampleCommands-0.5.7-3dtjxdad.mjs +0 -1
- package/dist/chunks/exit-0.5.7-0wrw77gk.mjs +0 -1
- package/dist/chunks/export-0.5.7-zw9rbf4j.mjs +0 -2
- package/dist/chunks/extra-usage-0.5.7-rfya84j0.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.5.7-a1b9ndnm.mjs +0 -1
- package/dist/chunks/fast-0.5.7-2p6srbep.mjs +0 -1
- package/dist/chunks/feedback-0.5.7-181z18rn.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.5.7-xndd9dd0.mjs +0 -1
- package/dist/chunks/git-0.5.7-7gyptyxn.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.5.7-9zhn44n6.mjs +0 -1
- package/dist/chunks/growthbook-0.5.7-1mynkk8j.mjs +0 -1
- package/dist/chunks/headless-0.5.7-9f87m6f5.mjs +0 -2
- package/dist/chunks/heapdump-0.5.7-ns6mqawv.mjs +0 -6
- package/dist/chunks/help-0.5.7-px56h6fs.mjs +0 -1
- package/dist/chunks/hookChains-0.5.7-1a6qvexe.mjs +0 -3
- package/dist/chunks/hooks-0.5.7-azm2m6rs.mjs +0 -79
- package/dist/chunks/hooks-0.5.7-fyp8e3f5.mjs +0 -1
- package/dist/chunks/ide-0.5.7-v9hbn8cp.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.5.7-e41p58ef.mjs +0 -1
- package/dist/chunks/index-0.5.7-0tncgnn3.mjs +0 -1
- package/dist/chunks/index-0.5.7-30mrmtkn.mjs +0 -1
- package/dist/chunks/index-0.5.7-62s7cp1b.mjs +0 -1
- package/dist/chunks/index-0.5.7-69akvbm4.mjs +0 -1
- package/dist/chunks/index-0.5.7-6y6f5cws.mjs +0 -1
- package/dist/chunks/index-0.5.7-7w3agvzm.mjs +0 -10
- package/dist/chunks/index-0.5.7-8jwymzr6.mjs +0 -1
- package/dist/chunks/index-0.5.7-8m53gyr6.mjs +0 -9
- package/dist/chunks/index-0.5.7-ct6jw15p.mjs +0 -2
- package/dist/chunks/index-0.5.7-dr470b86.mjs +0 -1
- package/dist/chunks/index-0.5.7-e4rvp0fn.mjs +0 -1
- package/dist/chunks/index-0.5.7-fkw6rn8z.mjs +0 -1
- package/dist/chunks/index-0.5.7-h1xjcbtb.mjs +0 -1
- package/dist/chunks/index-0.5.7-ma3xmxv3.mjs +0 -2
- package/dist/chunks/index-0.5.7-qn7zmh31.mjs +0 -9
- package/dist/chunks/index-0.5.7-rd44m0e6.mjs +0 -30
- package/dist/chunks/index-0.5.7-te1s21zz.mjs +0 -5
- package/dist/chunks/index-0.5.7-vm9zmzmr.mjs +0 -1
- package/dist/chunks/index-0.5.7-wpffxvtn.mjs +0 -1
- package/dist/chunks/index-0.5.7-wwfn7x53.mjs +0 -1
- package/dist/chunks/index-0.5.7-ybcvbcjt.mjs +0 -1
- package/dist/chunks/index-0.5.7-yw3tp60c.mjs +0 -1
- package/dist/chunks/initReplBridge-0.5.7-xpy8ap8n.mjs +0 -1
- package/dist/chunks/ink-0.5.7-dwmx157s.mjs +0 -1
- package/dist/chunks/insights-0.5.7-5fpd27dr.mjs +0 -870
- package/dist/chunks/install-0.5.7-6sc73ew8.mjs +0 -1
- package/dist/chunks/install-github-app-0.5.7-jcyktynf.mjs +0 -149
- package/dist/chunks/install-slack-app-0.5.7-mk4a14ww.mjs +0 -1
- package/dist/chunks/instrumentation-0.5.7-116w6tf4.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.5.7-zbfkwcsb.mjs +0 -1
- package/dist/chunks/keybindings-0.5.7-k2s0bryc.mjs +0 -2
- package/dist/chunks/knowledge-0.5.7-55b2ckth.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.5.7-k9pyxzrk.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.5.7-9bmbg04z.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.5.7-bcdwwerp.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.5.7-mdt3yvfc.mjs +0 -1
- package/dist/chunks/log-0.5.7-wcft0eyv.mjs +0 -1
- package/dist/chunks/main-0.5.7-9sxhszx9.mjs +0 -1236
- package/dist/chunks/managedEnv-0.5.7-k4gyyt60.mjs +0 -1
- package/dist/chunks/mcp-0.5.7-9z74evcf.mjs +0 -1
- package/dist/chunks/mcp-0.5.7-djz3mjw4.mjs +0 -4
- package/dist/chunks/mcp-0.5.7-n62qd49c.mjs +0 -17
- package/dist/chunks/mcpb-0.5.7-bqt73vjr.mjs +0 -1
- package/dist/chunks/memory-0.5.7-chxjrvf2.mjs +0 -3
- package/dist/chunks/mobile-0.5.7-y0cn32br.mjs +0 -2
- package/dist/chunks/model-0.5.7-7mt2xn7w.mjs +0 -1
- package/dist/chunks/model-0.5.7-fdhr0cwa.mjs +0 -2
- package/dist/chunks/oauth-0.5.7-xf0qbv6v.mjs +0 -1
- package/dist/chunks/openaiShim-0.5.7-0cejk3sb.mjs +0 -14
- package/dist/chunks/output-style-0.5.7-t5qc5jxe.mjs +0 -1
- package/dist/chunks/package-APBHZ5F3-0.5.7-7bp8s9sg.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.5.7-903apk0t.mjs +0 -1
- package/dist/chunks/parser-0.5.7-jnq01hth.mjs +0 -1
- package/dist/chunks/passes-0.5.7-nk3fgxyh.mjs +0 -1
- package/dist/chunks/permissions-0.5.7-q7whkp76.mjs +0 -3
- package/dist/chunks/plan-0.5.7-w5hgy3s7.mjs +0 -1
- package/dist/chunks/plist-0.5.7-jwz5qjtz.mjs +0 -1
- package/dist/chunks/plugin-0.5.7-x7xcey6d.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.5.7-gy2e0dge.mjs +0 -1
- package/dist/chunks/plugins-0.5.7-2ehzph1a.mjs +0 -9
- package/dist/chunks/print-0.5.7-mjx6j0dk.mjs +0 -57
- package/dist/chunks/privacy-settings-0.5.7-rkmc34t8.mjs +0 -1
- package/dist/chunks/process-0.5.7-8c0qwpv6.mjs +0 -1
- package/dist/chunks/processBashCommand-0.5.7-czwzjsj9.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.5.7-512rz16m.mjs +0 -9
- package/dist/chunks/prompt-0.5.7-r8ewyzer.mjs +0 -1
- package/dist/chunks/prompt-0.5.7-z98k679g.mjs +0 -1
- package/dist/chunks/prompts-0.5.7-g8mh8as5.mjs +0 -1
- package/dist/chunks/protocolHandler-0.5.7-p86as7s6.mjs +0 -13
- package/dist/chunks/provider-0.5.7-x4t1g0nh.mjs +0 -2
- package/dist/chunks/providerProfiles-0.5.7-dz70g8ys.mjs +0 -1
- package/dist/chunks/rate-limit-options-0.5.7-n282sweb.mjs +0 -1
- package/dist/chunks/registry-0.5.7-h8q8eay6.mjs +0 -1
- package/dist/chunks/release-notes-0.5.7-2h20frk0.mjs +0 -5
- package/dist/chunks/reload-plugins-0.5.7-z50apk74.mjs +0 -2
- package/dist/chunks/remote-env-0.5.7-08abe77m.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.5.7-jdasqn18.mjs +0 -1
- package/dist/chunks/remoteSession-0.5.7-nq05jhdv.mjs +0 -1
- package/dist/chunks/rename-0.5.7-812j1w4d.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.5.7-aa3cp3ea.mjs +0 -1
- package/dist/chunks/resume-0.5.7-weq0rn3m.mjs +0 -2
- package/dist/chunks/rewind-0.5.7-y54y78kx.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.5.7-tb5qenm4.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.5.7-nxcpekeq.mjs +0 -1
- package/dist/chunks/session-0.5.7-ky2s0856.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.5.7-wr82xcxs.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.5.7-0j8f4we0.mjs +0 -1
- package/dist/chunks/sessionStorage-0.5.7-qghsxmr2.mjs +0 -1
- package/dist/chunks/settings-0.5.7-xa4hccmb.mjs +0 -1
- package/dist/chunks/setup-0.5.7-s4yfpbyd.mjs +0 -5
- package/dist/chunks/sinks-0.5.7-feq030bq.mjs +0 -1
- package/dist/chunks/skills-0.5.7-h2r9d209.mjs +0 -1
- package/dist/chunks/startupProfiler-0.5.7-f44bsnqn.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.5.7-7ff14fag.mjs +0 -1
- package/dist/chunks/state-0.5.7-cwk8b4cx.mjs +0 -1
- package/dist/chunks/stats-0.5.7-wd077xj7.mjs +0 -6
- package/dist/chunks/status-0.5.7-5qy7pnk9.mjs +0 -1
- package/dist/chunks/stickers-0.5.7-7s145w6d.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.5.7-5dv3w3xn.mjs +0 -1
- package/dist/chunks/tasks-0.5.7-q79z0h3e.mjs +0 -1
- package/dist/chunks/teamHelpers-0.5.7-b8qf5f0d.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.5.7-kvmjwag8.mjs +0 -1
- package/dist/chunks/teleport-0.5.7-x740q45r.mjs +0 -1
- package/dist/chunks/terminalSetup-0.5.7-z8ytqt6q.mjs +0 -1
- package/dist/chunks/theme-0.5.7-9asaqpc9.mjs +0 -1
- package/dist/chunks/thinkback-0.5.7-6bzqdm8h.mjs +0 -1
- package/dist/chunks/thinkback-play-0.5.7-5m54zaez.mjs +0 -1
- package/dist/chunks/toolPool-0.5.7-5rd6jp71.mjs +0 -1
- package/dist/chunks/toolSearch-0.5.7-wgqasfmq.mjs +0 -1
- package/dist/chunks/trustedDevice-0.5.7-5qbzragc.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.5.7-3fjybn8j.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.5.7-98p7mn4r.mjs +0 -4
- package/dist/chunks/update-0.5.7-2jgnt5gj.mjs +0 -86
- package/dist/chunks/upgrade-0.5.7-1fa84f4g.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.5.7-1p7vn612.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.5.7-312p1719.mjs +0 -1
- package/dist/chunks/usage-0.5.7-qrsabcka.mjs +0 -1
- package/dist/chunks/util-0.5.7-tpzcah5j.mjs +0 -1
- package/dist/chunks/utils-0.5.7-8a2ekyr5.mjs +0 -1
- package/dist/chunks/vim-0.5.7-w4e8vpjf.mjs +0 -1
- package/dist/chunks/watcher-0.5.7-cj50b60x.mjs +0 -1
- package/dist/chunks/wiki-0.5.7-ccjdtg8v.mjs +0 -132
- package/dist/chunks/worktree-0.5.7-g8wrf9zf.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.5.7-w4jdaq8p.mjs +0 -1
- package/dist/chunks/wrapper-0.5.7-8k82xd0n.mjs +0 -7
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import{Ana as KZ,vna as W6,xna as L$,zna as M}from"./cli-0.5.8-hkfwdsmy.mjs";function F(Z,$,X,J,z){if(J==="m")throw TypeError("Private method is not writable");if(J==="a"&&!z)throw TypeError("Private accessor was defined without a setter");if(typeof $==="function"?Z!==$||!z:!$.has(Z))throw TypeError("Cannot write private member to an object whose class did not declare it");return J==="a"?z.call(Z,X):z?z.value=X:$.set(Z,X),X}function G(Z,$,X,J){if(X==="a"&&!J)throw TypeError("Private accessor was defined without a getter");if(typeof $==="function"?Z!==$||!J:!$.has(Z))throw TypeError("Cannot read private member from an object whose class did not declare it");return X==="m"?J:X==="a"?J.call(Z):J?J.value:$.get(Z)}var UZ=()=>{};var i$=function(){let{crypto:Z}=globalThis;if(Z?.randomUUID)return i$=Z.randomUUID.bind(Z),Z.randomUUID();let $=new Uint8Array(1),X=Z?()=>Z.getRandomValues($)[0]:()=>Math.random()*255&255;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(J)=>(+J^X()&15>>+J/4).toString(16))};var n$=()=>{};function qZ(Z){return typeof Z==="object"&&Z!==null&&(("name"in Z)&&Z.name==="AbortError"||("message"in Z)&&String(Z.message).includes("FetchRequestCanceledException"))}var J8=(Z)=>{if(Z instanceof Error)return Z;if(typeof Z==="object"&&Z!==null){try{if(Object.prototype.toString.call(Z)==="[object Error]"){let $=Error(Z.message,Z.cause?{cause:Z.cause}:{});if(Z.stack)$.stack=Z.stack;if(Z.cause&&!$.cause)$.cause=Z.cause;if(Z.name)$.name=Z.name;return $}}catch{}try{return Error(JSON.stringify(Z))}catch{}}return Error(Z)};var hZ=()=>{};var x,l,n,EZ,z8,Q8,K8,Y8,G8,w8,W8,V8,N8;var r=M(()=>{hZ();x=class x extends Error{};l=class l extends x{constructor(Z,$,X,J,z){super(`${l.makeMessage(Z,$,X)}`);this.status=Z,this.headers=J,this.requestID=J?.get("request-id"),this.error=$,this.type=z??null}static makeMessage(Z,$,X){let J=$?.message?typeof $.message==="string"?$.message:JSON.stringify($.message):$?JSON.stringify($):X;if(Z&&J)return`${Z} ${J}`;if(Z)return`${Z} status code (no body)`;if(J)return J;return"(no status code or body)"}static generate(Z,$,X,J){if(!Z||!J)return new EZ({message:X,cause:J8($)});let z=$,Q=z?.error?.type;if(Z===400)return new Q8(Z,z,X,J,Q);if(Z===401)return new K8(Z,z,X,J,Q);if(Z===403)return new Y8(Z,z,X,J,Q);if(Z===404)return new G8(Z,z,X,J,Q);if(Z===409)return new w8(Z,z,X,J,Q);if(Z===422)return new W8(Z,z,X,J,Q);if(Z===429)return new V8(Z,z,X,J,Q);if(Z>=500)return new N8(Z,z,X,J,Q);return new l(Z,z,X,J,Q)}};n=class n extends l{constructor({message:Z}={}){super(void 0,void 0,Z||"Request was aborted.",void 0)}};EZ=class EZ extends l{constructor({message:Z,cause:$}){super(void 0,void 0,Z||"Connection error.",void 0);if($)this.cause=$}};z8=class z8 extends EZ{constructor({message:Z}={}){super({message:Z??"Request timed out."})}};Q8=class Q8 extends l{};K8=class K8 extends l{};Y8=class Y8 extends l{};G8=class G8 extends l{};w8=class w8 extends l{};W8=class W8 extends l{};V8=class V8 extends l{};N8=class N8 extends l{}});function z$(Z){if(typeof Z!=="object")return{};return Z??{}}function r$(Z){if(!Z)return!0;for(let $ in Z)return!1;return!0}function DX(Z,$){return Object.prototype.hasOwnProperty.call(Z,$)}var H1,AX=(Z)=>{return H1.test(Z)},o=(Z)=>(o=Array.isArray,o(Z)),a$,LX=(Z,$)=>{if(typeof $!=="number"||!Number.isInteger($))throw new x(`${Z} must be an integer`);if($<0)throw new x(`${Z} must be a positive integer`);return $},Q$=(Z)=>{try{return JSON.parse(Z)}catch($){return}};var VZ=M(()=>{r();H1=/^[a-z][a-z0-9+.-]*:/i,a$=o});var EX=(Z)=>new Promise(($)=>setTimeout($,Z));var o$=()=>{};var QZ="0.96.0";var U8=()=>{};function T1(){if(typeof Deno<"u"&&Deno.build!=null)return"deno";if(typeof EdgeRuntime<"u")return"edge";if(Object.prototype.toString.call(typeof globalThis.process<"u"?globalThis.process:0)==="[object process]")return"node";return"unknown"}function S1(){if(typeof navigator>"u"||!navigator)return null;let Z=[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(let{key:$,pattern:X}of Z){let J=X.exec(navigator.userAgent);if(J){let z=J[1]||0,Q=J[2]||0,Y=J[3]||0;return{browser:$,version:`${z}.${Q}.${Y}`}}}return null}var IX=()=>{return typeof window<"u"&&typeof window.document<"u"&&typeof navigator<"u"},B1=()=>{let Z=T1();if(Z==="deno")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":QZ,"X-Stainless-OS":PX(Deno.build.os),"X-Stainless-Arch":jX(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":typeof Deno.version==="string"?Deno.version:Deno.version?.deno??"unknown"};if(typeof EdgeRuntime<"u")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":QZ,"X-Stainless-OS":"Unknown","X-Stainless-Arch":`other:${EdgeRuntime}`,"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":globalThis.process.version};if(Z==="node")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":QZ,"X-Stainless-OS":PX(globalThis.process.platform??"unknown"),"X-Stainless-Arch":jX(globalThis.process.arch??"unknown"),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":globalThis.process.version??"unknown"};let $=S1();if($)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":QZ,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":`browser:${$.browser}`,"X-Stainless-Runtime-Version":$.version};return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":QZ,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}},jX=(Z)=>{if(Z==="x32")return"x32";if(Z==="x86_64"||Z==="x64")return"x64";if(Z==="arm")return"arm";if(Z==="aarch64"||Z==="arm64")return"arm64";if(Z)return`other:${Z}`;return"unknown"},PX=(Z)=>{if(Z=Z.toLowerCase(),Z.includes("ios"))return"iOS";if(Z==="android")return"Android";if(Z==="darwin")return"MacOS";if(Z==="win32")return"Windows";if(Z==="freebsd")return"FreeBSD";if(Z==="openbsd")return"OpenBSD";if(Z==="linux")return"Linux";if(Z)return`Other:${Z}`;return"Unknown"},RX,q8=()=>{return RX??(RX=B1())};var K$=M(()=>{U8()});function kX(){if(typeof fetch<"u")return fetch;throw Error("`fetch` is not defined as a global; Either pass `fetch` to the client, `new Anthropic({ fetch })` or polyfill the global, `globalThis.fetch = fetch`")}function t$(...Z){let $=globalThis.ReadableStream;if(typeof $>"u")throw Error("`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`");return new $(...Z)}function Y$(Z){let $=Symbol.asyncIterator in Z?Z[Symbol.asyncIterator]():Z[Symbol.iterator]();return t$({start(){},async pull(X){let{done:J,value:z}=await $.next();if(J)X.close();else X.enqueue(z)},async cancel(){await $.return?.()}})}function O8(Z){if(Z[Symbol.asyncIterator])return Z;let $=Z.getReader();return{async next(){try{let X=await $.read();if(X?.done)$.releaseLock();return X}catch(X){throw $.releaseLock(),X}},async return(){let X=$.cancel();return $.releaseLock(),await X,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}async function yX(Z){if(Z===null||typeof Z!=="object")return;if(Z[Symbol.asyncIterator]){await Z[Symbol.asyncIterator]().return?.();return}let $=Z.getReader(),X=$.cancel();$.releaseLock(),await X}var vZ=()=>{};var _X=({headers:Z,body:$})=>{return{bodyHeaders:{"content-type":"application/json"},body:JSON.stringify($)}};var fX=()=>{};var s$="RFC3986",e$=(Z)=>String(Z),Z0,bX="RFC1738";var $0=M(()=>{Z0={RFC1738:(Z)=>String(Z).replace(/%20/g,"+"),RFC3986:e$}});function vX(Z){if(!Z||typeof Z!=="object")return!1;return!!(Z.constructor&&Z.constructor.isBuffer&&Z.constructor.isBuffer(Z))}function J0(Z,$){if(o(Z)){let X=[];for(let J=0;J<Z.length;J+=1)X.push($(Z[J]));return X}return $(Z)}var G$=(Z,$)=>(G$=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),G$(Z,$)),NZ,X0=1024,hX=(Z,$,X,J,z)=>{if(Z.length===0)return Z;let Q=Z;if(typeof Z==="symbol")Q=Symbol.prototype.toString.call(Z);else if(typeof Z!=="string")Q=String(Z);if(X==="iso-8859-1")return escape(Q).replace(/%u[0-9a-f]{4}/gi,function(K){return"%26%23"+parseInt(K.slice(2),16)+"%3B"});let Y="";for(let K=0;K<Q.length;K+=X0){let N=Q.length>=X0?Q.slice(K,K+X0):Q,q=[];for(let C=0;C<N.length;++C){let V=N.charCodeAt(C);if(V===45||V===46||V===95||V===126||V>=48&&V<=57||V>=65&&V<=90||V>=97&&V<=122||z===bX&&(V===40||V===41)){q[q.length]=N.charAt(C);continue}if(V<128){q[q.length]=NZ[V];continue}if(V<2048){q[q.length]=NZ[192|V>>6]+NZ[128|V&63];continue}if(V<55296||V>=57344){q[q.length]=NZ[224|V>>12]+NZ[128|V>>6&63]+NZ[128|V&63];continue}C+=1,V=65536+((V&1023)<<10|N.charCodeAt(C)&1023),q[q.length]=NZ[240|V>>18]+NZ[128|V>>12&63]+NZ[128|V>>6&63]+NZ[128|V&63]}Y+=q.join("")}return Y};var gX=M(()=>{$0();VZ();NZ=(()=>{let Z=[];for(let $=0;$<256;++$)Z.push("%"+(($<16?"0":"")+$.toString(16)).toUpperCase());return Z})()});function L1(Z){return typeof Z==="string"||typeof Z==="number"||typeof Z==="boolean"||typeof Z==="symbol"||typeof Z==="bigint"}function uX(Z,$,X,J,z,Q,Y,K,N,q,C,V,w,O,H,D,B,A){let T=Z,f=A,k=0,P=!1;while((f=f.get(z0))!==void 0&&!P){let g=f.get(Z);if(k+=1,typeof g<"u")if(g===k)throw RangeError("Cyclic object value");else P=!0;if(typeof f.get(z0)>"u")k=0}if(typeof q==="function")T=q($,T);else if(T instanceof Date)T=w?.(T);else if(X==="comma"&&o(T))T=J0(T,function(g){if(g instanceof Date)return w?.(g);return g});if(T===null){if(Q)return N&&!D?N($,p.encoder,B,"key",O):$;T=""}if(L1(T)||vX(T)){if(N){let g=D?$:N($,p.encoder,B,"key",O);return[H?.(g)+"="+H?.(N(T,p.encoder,B,"value",O))]}return[H?.($)+"="+H?.(String(T))]}let u=[];if(typeof T>"u")return u;let y;if(X==="comma"&&o(T)){if(D&&N)T=J0(T,N);y=[{value:T.length>0?T.join(",")||null:void 0}]}else if(o(q))y=q;else{let g=Object.keys(T);y=C?g.sort(C):g}let c=K?String($).replace(/\./g,"%2E"):String($),b=J&&o(T)&&T.length===1?c+"[]":c;if(z&&o(T)&&T.length===0)return b+"[]";for(let g=0;g<y.length;++g){let zZ=y[g],LZ=typeof zZ==="object"&&typeof zZ.value<"u"?zZ.value:T[zZ];if(Y&&LZ===null)continue;let p$=V&&K?zZ.replace(/\./g,"%2E"):zZ,F1=o(T)?typeof X==="function"?X(b,p$):b:b+(V?"."+p$:"["+p$+"]");A.set(Z,k);let SX=new WeakMap;SX.set(z0,A),dX(u,uX(LZ,F1,X,J,z,Q,Y,K,X==="comma"&&D&&o(T)?null:N,q,C,V,w,O,H,D,B,SX))}return u}function E1(Z=p){if(typeof Z.allowEmptyArrays<"u"&&typeof Z.allowEmptyArrays!=="boolean")throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof Z.encodeDotInKeys<"u"&&typeof Z.encodeDotInKeys!=="boolean")throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(Z.encoder!==null&&typeof Z.encoder<"u"&&typeof Z.encoder!=="function")throw TypeError("Encoder has to be a function.");let $=Z.charset||p.charset;if(typeof Z.charset<"u"&&Z.charset!=="utf-8"&&Z.charset!=="iso-8859-1")throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let X=s$;if(typeof Z.format<"u"){if(!G$(Z0,Z.format))throw TypeError("Unknown format option provided.");X=Z.format}let J=Z0[X],z=p.filter;if(typeof Z.filter==="function"||o(Z.filter))z=Z.filter;let Q;if(Z.arrayFormat&&Z.arrayFormat in cX)Q=Z.arrayFormat;else if("indices"in Z)Q=Z.indices?"indices":"repeat";else Q=p.arrayFormat;if("commaRoundTrip"in Z&&typeof Z.commaRoundTrip!=="boolean")throw TypeError("`commaRoundTrip` must be a boolean, or absent");let Y=typeof Z.allowDots>"u"?!!Z.encodeDotInKeys===!0?!0:p.allowDots:!!Z.allowDots;return{addQueryPrefix:typeof Z.addQueryPrefix==="boolean"?Z.addQueryPrefix:p.addQueryPrefix,allowDots:Y,allowEmptyArrays:typeof Z.allowEmptyArrays==="boolean"?!!Z.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:Q,charset:$,charsetSentinel:typeof Z.charsetSentinel==="boolean"?Z.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!Z.commaRoundTrip,delimiter:typeof Z.delimiter>"u"?p.delimiter:Z.delimiter,encode:typeof Z.encode==="boolean"?Z.encode:p.encode,encodeDotInKeys:typeof Z.encodeDotInKeys==="boolean"?Z.encodeDotInKeys:p.encodeDotInKeys,encoder:typeof Z.encoder==="function"?Z.encoder:p.encoder,encodeValuesOnly:typeof Z.encodeValuesOnly==="boolean"?Z.encodeValuesOnly:p.encodeValuesOnly,filter:z,format:X,formatter:J,serializeDate:typeof Z.serializeDate==="function"?Z.serializeDate:p.serializeDate,skipNulls:typeof Z.skipNulls==="boolean"?Z.skipNulls:p.skipNulls,sort:typeof Z.sort==="function"?Z.sort:null,strictNullHandling:typeof Z.strictNullHandling==="boolean"?Z.strictNullHandling:p.strictNullHandling}}function lX(Z,$={}){let X=Z,J=E1($),z,Q;if(typeof J.filter==="function")Q=J.filter,X=Q("",X);else if(o(J.filter))Q=J.filter,z=Q;let Y=[];if(typeof X!=="object"||X===null)return"";let K=cX[J.arrayFormat],N=K==="comma"&&J.commaRoundTrip;if(!z)z=Object.keys(X);if(J.sort)z.sort(J.sort);let q=new WeakMap;for(let w=0;w<z.length;++w){let O=z[w];if(J.skipNulls&&X[O]===null)continue;dX(Y,uX(X[O],O,K,N,J.allowEmptyArrays,J.strictNullHandling,J.skipNulls,J.encodeDotInKeys,J.encode?J.encoder:null,J.filter,J.sort,J.allowDots,J.serializeDate,J.format,J.formatter,J.encodeValuesOnly,J.charset,q))}let C=Y.join(J.delimiter),V=J.addQueryPrefix===!0?"?":"";if(J.charsetSentinel)if(J.charset==="iso-8859-1")V+="utf8=%26%2310003%3B&";else V+="utf8=%E2%9C%93&";return C.length>0?V+C:""}var cX,dX=function(Z,$){Array.prototype.push.apply(Z,o($)?$:[$])},mX,p,z0;var pX=M(()=>{gX();$0();VZ();cX={brackets(Z){return String(Z)+"[]"},comma:"comma",indices(Z,$){return String(Z)+"["+$+"]"},repeat(Z){return String(Z)}},p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:hX,encodeValuesOnly:!1,format:s$,formatter:e$,indices:!1,serializeDate(Z){return(mX??(mX=Function.prototype.call.bind(Date.prototype.toISOString)))(Z)},skipNulls:!1,strictNullHandling:!1};z0={}});function iX(Z){return lX(Z,{arrayFormat:"brackets"})}var Q0=M(()=>{pX()});function W$(Z){if(!Z)return;let $;try{$=new URL(Z)}catch(J){throw new j(`Invalid token endpoint base URL "${Z}": ${J}`)}if($.protocol==="https:")return;let X=$.hostname.toLowerCase().replace(/^\[|\]$/g,"");if($.protocol==="http:"&&(X==="localhost"||X==="127.0.0.1"||X==="::1"))return;throw new j(`Refusing to send credential over non-https token endpoint "${Z}"`)}async function V$(Z,$){let X=await R1(Z),J;try{J=JSON.parse(X)}catch{throw new j(`Token endpoint returned non-JSON response (status ${Z.status})`,Z.status,t(X),$)}if(!J.access_token)throw new j(`Token endpoint response missing access_token: ${JSON.stringify(t(J))}`,Z.status,t(J),$);if(J.token_type&&J.token_type.toLowerCase()!=="bearer")throw new j(`Token endpoint response: unsupported token_type "${J.token_type}" (want Bearer)`,Z.status,t(J),$);return J}function t(Z){if(Z==null)return Z;if(typeof Z==="string"){let $;try{$=JSON.parse(Z)}catch{if(Z.length<=K0)return Z;return Z.slice(0,K0)+`... <${Z.length-K0} more chars>`}return JSON.stringify(t($))}if(typeof Z==="object"&&!Array.isArray(Z)){let $={};for(let[X,J]of Object.entries(Z))if(P1.has(X))$[X]=J;return $}return null}async function N$(Z,$=(X)=>console.warn(`anthropic-sdk: ${X}`)){if(typeof process>"u"||process.platform==="win32")return;let X=await import("node:fs"),J=Z,z;try{J=await X.promises.realpath(Z),z=await X.promises.stat(J)}catch{return}let Q=z.mode&511;if(Q&18)throw new j(`Credentials file at ${J} is group/world-writable (mode 0o${Q.toString(8)}); this allows other local users to plant tokens. Run \`chmod 600 ${J}\`.`);if(Q&36)throw new j(`Credentials file at ${J} is group/world-readable (mode 0o${Q.toString(8)}); run \`chmod 600 ${J}\` before retrying.`);if(typeof process.getuid==="function"&&z.uid!==process.getuid())$(`credentials file at ${J} is owned by uid ${z.uid} (current process uid ${process.getuid()}); verify this is intentional.`)}async function U$(Z,$){let X=await import("node:fs"),z=(await import("node:path")).dirname(Z);await X.promises.mkdir(z,{recursive:!0,mode:448});let Q=`${Z}.${process.pid}.${Math.random().toString(36).slice(2)}.tmp`;try{let Y=await X.promises.open(Q,"w",384);try{await Y.writeFile(JSON.stringify($,null,2)),await Y.sync()}finally{await Y.close()}await X.promises.rename(Q,Z)}catch(Y){throw await X.promises.unlink(Q).catch(()=>{}),Y}try{let Y=await X.promises.open(z,"r");try{await Y.sync()}finally{await Y.close()}}catch{}}async function R1(Z){if(!Z.body)return"";let $=Z.body.getReader(),X=[],J=0;for(;;){let{done:Q,value:Y}=await $.read();if(Q)break;if(J+Y.length>nX){let K=nX-J;if(K>0)X.push(Y.subarray(0,K));await $.cancel();break}X.push(Y),J+=Y.length}let z;if(X.length===1)z=X[0];else{z=new Uint8Array(X.reduce((Y,K)=>Y+K.length,0));let Q=0;for(let Y of X)z.set(Y,Q),Q+=Y.length}return new TextDecoder("utf-8").decode(z)}var aX="urn:ietf:params:oauth:grant-type:jwt-bearer",rX="refresh_token",w$="/v1/oauth/token",jZ="oauth-2025-04-20",oX="oidc-federation-2026-04-01",tX=120,gZ=30,sX=5,nX=1048576,K0=2000,P1,j;var mZ=M(()=>{r();P1=new Set(["error","error_description","error_uri"]);j=class j extends x{constructor(Z,$=null,X=null,J=null){super(Z);this.statusCode=$,this.body=X,this.requestId=J}}});function wZ(){return Math.floor(Date.now()/1000)}var M8=()=>{};class Y0{constructor(Z,$){this.cached=null,this.pendingRefresh=null,this.nextForce=!1,this.lastAdvisoryError=0,this.provider=Z,this.onAdvisoryRefreshError=$}async getToken(){let Z=this.nextForce;this.nextForce=!1;let $=this.cached;if(Z||$==null)return(await this.refresh(Z)).token;if($.expiresAt==null)return $.token;let X=$.expiresAt-wZ();if(X>tX)return $.token;if(X>gZ)return this.backgroundRefresh(),$.token;return(await this.refresh()).token}invalidate(){this.cached=null,this.nextForce=!0}refresh(Z=!1){if(this.pendingRefresh&&!Z)return this.pendingRefresh;return this.doRefresh(Z)}backgroundRefresh(){if(this.pendingRefresh)return;if(wZ()-this.lastAdvisoryError<sX)return;this.doRefresh().catch((Z)=>{this.lastAdvisoryError=wZ(),this.onAdvisoryRefreshError?.(Z)})}doRefresh(Z=!1){return this.pendingRefresh=this.provider(Z?{forceRefresh:!0}:void 0).then(($)=>{return this.cached=$,this.pendingRefresh=null,$},($)=>{throw this.pendingRefresh=null,$}),this.pendingRefresh}}var eX=M(()=>{mZ();M8()});var E=(Z)=>{if(typeof globalThis.process<"u")return globalThis.process.env?.[Z]?.trim()||void 0;if(typeof globalThis.Deno<"u")return globalThis.Deno.env?.get?.(Z)?.trim()||void 0;return};var q$=()=>{};function X5(Z){let $=0;for(let z of Z)$+=z.length;let X=new Uint8Array($),J=0;for(let z of Z)X.set(z,J),J+=z.length;return X}function cZ(Z){let $;return(Z5??($=new globalThis.TextEncoder,Z5=$.encode.bind($)))(Z)}function G0(Z){let $;return($5??($=new globalThis.TextDecoder,$5=$.decode.bind($)))(Z)}var Z5,$5;var O$=()=>{};var J5=M(()=>{r();O$()});function C8(){}function M$(Z,$,X){if(!$||C$[Z]>C$[X])return C8;else return $[Z].bind($)}function m(Z){let $=Z.logger,X=Z.logLevel??"off";if(!$)return I1;let J=z5.get($);if(J&&J[0]===X)return J[1];let z={error:M$("error",$,X),warn:M$("warn",$,X),info:M$("info",$,X),debug:M$("debug",$,X)};return z5.set($,[X,z]),z}var C$,w0=(Z,$,X)=>{if(!Z)return;if(DX(C$,Z))return Z;m(X).warn(`${$} was set to ${JSON.stringify(Z)}, expected one of ${JSON.stringify(Object.keys(C$))}`);return},I1,z5,OZ=(Z)=>{if(Z.options)Z.options={...Z.options},delete Z.options.headers;if(Z.headers)Z.headers=Object.fromEntries((Z.headers instanceof Headers?[...Z.headers]:Object.entries(Z.headers)).map(([$,X])=>[$,$.toLowerCase()==="authorization"||$.toLowerCase()==="api-key"||$.toLowerCase()==="x-api-key"||$.toLowerCase()==="cookie"||$.toLowerCase()==="set-cookie"?"***":X]));if("retryOfRequestLogID"in Z){if(Z.retryOfRequestLogID)Z.retryOf=Z.retryOfRequestLogID;delete Z.retryOfRequestLogID}return Z};var F8=M(()=>{VZ();C$={off:0,error:200,warn:300,info:400,debug:500};I1={error:C8,warn:C8,info:C8,debug:C8},z5=new WeakMap});var Q5=M(()=>{VZ();J5();q$();F8();n$();o$();Q0()});function K5(Z){if(!Z)throw Error("profile name is empty");if(Z==="."||Z==="..")throw Error(`profile name "${Z}" is not allowed`);if(Z.includes("/")||Z.includes("\\"))throw Error(`profile name "${Z}" must not contain path separators`);if(!k1.test(Z))throw Error(`profile name "${Z}" contains disallowed characters (allowed: letters, digits, '_', '.', '-')`)}var F$="1.0",k1,Y5=async(Z)=>{var $,X;let J=await W0();if(J===null)return null;let z=Z??await w5();if(z===null)return null;K5(z);let Q=await import("node:fs"),K=(await import("node:path")).join(J,"configs",`${z}.json`),N;try{N=await Q.promises.readFile(K,"utf-8")}catch(V){if(V?.code!=="ENOENT")throw Error(`failed to read config file ${K}: ${V}`);N=null}if(N===null){let V=E("ANTHROPIC_ORGANIZATION_ID"),w=E("ANTHROPIC_IDENTITY_TOKEN_FILE"),O=E("ANTHROPIC_FEDERATION_RULE_ID");if(O&&V)return{fromFile:!1,config:{organization_id:V,workspace_id:E("ANTHROPIC_WORKSPACE_ID"),base_url:E("ANTHROPIC_BASE_URL"),authentication:{type:"oidc_federation",federation_rule_id:O,service_account_id:E("ANTHROPIC_SERVICE_ACCOUNT_ID"),identity_token:w?{source:"file",path:w}:void 0,scope:E("ANTHROPIC_SCOPE")}}};return null}let q;try{q=JSON.parse(N)}catch(V){throw Error(`failed to parse config file ${K}: ${V}`)}if(!q.authentication)throw Error(`config file ${K} is missing "authentication"`);let C=q.authentication.type;if(C!=="oidc_federation"&&C!=="user_oauth")throw Error(`authentication.type "${C}" is not a known authentication type`);if(q.organization_id??(q.organization_id=E("ANTHROPIC_ORGANIZATION_ID")),q.workspace_id??(q.workspace_id=E("ANTHROPIC_WORKSPACE_ID")),q.base_url??(q.base_url=E("ANTHROPIC_BASE_URL")),($=q.authentication).scope??($.scope=E("ANTHROPIC_SCOPE")),q.authentication.type==="oidc_federation"){if(!q.authentication.identity_token){let V=E("ANTHROPIC_IDENTITY_TOKEN_FILE");if(V)q.authentication.identity_token={source:"file",path:V}}if(!q.authentication.federation_rule_id)q.authentication.federation_rule_id=E("ANTHROPIC_FEDERATION_RULE_ID")??"";(X=q.authentication).service_account_id??(X.service_account_id=E("ANTHROPIC_SERVICE_ACCOUNT_ID"))}return{config:q,fromFile:!0}},G5=async(Z,$)=>{if(Z?.authentication.credentials_path)return Z.authentication.credentials_path;let X=await W0();if(!X)return null;let J=$??await w5();if(!J)return null;return K5(J),(await import("node:path")).join(X,"credentials",`${J}.json`)},W0=async()=>{if(!y1())return null;let Z=await import("node:path"),$=E("ANTHROPIC_CONFIG_DIR");if($)return $;if(q8()["X-Stainless-OS"]==="Windows"){let Q=E("APPDATA");if(Q)return Z.join(Q,"Anthropic");let Y=E("USERPROFILE");if(Y)return Z.join(Y,"AppData","Roaming","Anthropic");return null}let J=E("XDG_CONFIG_HOME");if(J)return Z.join(J,"anthropic");let z=E("HOME");if(z)return Z.join(z,".config","anthropic");return null},y1=()=>{let Z=q8()["X-Stainless-Runtime"];return Z==="node"||Z==="deno"},w5=async()=>{let Z=await W0();if(!Z)return null;let $=E("ANTHROPIC_PROFILE");if($)return $;let X=await import("node:fs"),z=(await import("node:path")).join(Z,"active_config");try{return(await X.promises.readFile(z,"utf-8")).trim()||"default"}catch(Q){if(Q?.code!=="ENOENT")throw Error(`failed to read ${z}: ${Q}`);return"default"}};var V0=M(()=>{K$();Q5();k1=/^[A-Za-z0-9_.-]+$/});function N0(Z){if(!Z)throw new x("Identity token file path is empty");return async()=>{let $=await import("node:fs"),X;try{X=await $.promises.readFile(Z,"utf-8")}catch(z){throw new x(`Failed to read identity token file at ${Z}: ${z}`)}let J=X.trim();if(!J)throw new x(`Identity token file at ${Z} is empty`);return J}}function W5(Z){if(!Z)throw new x("Identity token value is empty");return()=>Z}var V5=M(()=>{r()});function N5(Z){return async()=>{W$(Z.baseURL);let $=await Z.identityTokenProvider();if($.length>16384)throw new j(`Identity token is ${Math.ceil($.length/1024)} KiB, exceeds the 16 KiB assertion limit`);let X={grant_type:aX,assertion:$,federation_rule_id:Z.federationRuleId,organization_id:Z.organizationId};if(Z.serviceAccountId)X.service_account_id=Z.serviceAccountId;if(Z.workspaceId)X.workspace_id=Z.workspaceId;let J=`${Z.baseURL}${w$}`,z;try{z=await Z.fetch(J,{method:"POST",headers:{"Content-Type":"application/json","anthropic-beta":`${jZ},${oX}`,"User-Agent":Z.userAgent||`anthropic-sdk-typescript/${QZ} oidcFederationProvider`},body:JSON.stringify(X)})}catch(N){throw new j(`Failed to reach token endpoint ${J}: ${N}`)}let Q=z.headers.get("Request-Id");if(!z.ok){let N=await z.text().catch(()=>""),q=t(N),C="";if(z.status===401)C=` Ensure your federation rule matches your identity token. ${Z.workspaceId?"":"If your federation rule is scoped to multiple workspaces, set the ANTHROPIC_WORKSPACE_ID environment variable, the 'workspace_id' config key, or the `workspaceId` option. "}View your authentication events in the Workload identity page of Claude Console for more details.`;throw new j(`Token exchange failed with status ${z.status}${Q?` (request-id ${Q})`:""}: ${q}${C}`,z.status,q,Q)}let Y=await V$(z,Q),K=Number(Y.expires_in);if(!Number.isFinite(K))throw new j(`Token endpoint response missing required fields: ${JSON.stringify(t(Y))}`,z.status,t(Y),Q);return{token:Y.access_token,expiresAt:wZ()+K}}}var U5=M(()=>{mZ();M8();U8()});function q5(Z){return async($)=>{let X=await import("node:fs");await N$(Z.credentialsPath,Z.onSafetyWarning);let J;try{J=await X.promises.readFile(Z.credentialsPath,"utf-8")}catch(B){throw new j(`Credentials file not found at ${Z.credentialsPath}: ${B}`)}let z;try{z=JSON.parse(J)}catch(B){throw new j(`Credentials file at ${Z.credentialsPath} is not valid JSON: ${B}`)}let Q=z.access_token;if(!Q)throw new j(`Credentials file at ${Z.credentialsPath} must include 'access_token'`);let Y=z.expires_at;if(!$?.forceRefresh&&(Y==null||wZ()<Y-gZ))return{token:Q,expiresAt:Y??null};let K=z.refresh_token;if(!Z.clientId||!K)throw new j(`Access token at ${Z.credentialsPath} has expired and no refresh is available (client_id ${Z.clientId?"set":"empty"}, refresh_token ${K?"set":"empty"})`);W$(Z.baseURL);let N={grant_type:rX,refresh_token:K,client_id:Z.clientId},q=`${Z.baseURL}${w$}`,C;try{C=await Z.fetch(q,{method:"POST",headers:{"Content-Type":"application/json","anthropic-beta":jZ,"User-Agent":Z.userAgent||`anthropic-sdk-typescript/${QZ} userOAuthProvider`},body:JSON.stringify(N)})}catch(B){throw new j(`User OAuth refresh failed to reach token endpoint: ${B}`)}let V=C.headers.get("Request-Id");if(!C.ok){let B=await C.text().catch(()=>"");throw new j(`User OAuth refresh failed (HTTP ${C.status}): ${t(B)}`,C.status,t(B),V)}let w=await V$(C,V),O=Number(w.expires_in);if(!Number.isFinite(O))throw new j(`User OAuth refresh response missing or invalid expires_in: ${JSON.stringify(t(w))}`,C.status,t(w),V);let H=wZ()+O,D=w.refresh_token||K;return await U$(Z.credentialsPath,{...z,version:F$,type:"oauth_token",access_token:w.access_token,expires_at:H,refresh_token:D}),{token:w.access_token,expiresAt:H}}}var O5=M(()=>{V0();mZ();M8();U8()});function U0(Z,$){let X=Z.authentication.credentials_path??null,J=(Z.base_url||$.baseURL).replace(/\/+$/,""),z=_1(Z,X,J,$),Q={};if(Z.workspace_id&&Z.authentication.type==="user_oauth")Q["anthropic-workspace-id"]=Z.workspace_id;return{provider:z,extraHeaders:Q,baseURL:Z.base_url||void 0}}async function M5(Z,$){let X=await Y5($);if(!X)return null;let{config:J,fromFile:z}=X,Q=J.authentication.credentials_path||!z?J:{...J,authentication:{...J.authentication,credentials_path:await G5(J,$)??void 0}};return U0(Q,Z)}function _1(Z,$,X,J){switch(Z.authentication.type){case"oidc_federation":{let z=Z.authentication,Q=f1(z);if(!Q)throw new j("oidc_federation config requires an identity token (set authentication.identity_token, ANTHROPIC_IDENTITY_TOKEN_FILE, or ANTHROPIC_IDENTITY_TOKEN)");if(!z.federation_rule_id)throw new j("oidc_federation config requires 'federation_rule_id'. Set it in authentication.federation_rule_id in your profile, or via ANTHROPIC_FEDERATION_RULE_ID (profile takes precedence).");if(!Z.organization_id)throw new j("oidc_federation config requires organization_id (set ANTHROPIC_ORGANIZATION_ID or config.organization_id)");let Y=N5({identityTokenProvider:Q,federationRuleId:z.federation_rule_id,organizationId:Z.organization_id,serviceAccountId:z.service_account_id,workspaceId:Z.workspace_id,baseURL:X,fetch:J.fetch,userAgent:J.userAgent});if($)return b1(Y,$,J.onCacheWriteError,J.onSafetyWarning);return Y}case"user_oauth":{if(!$)throw new j("user_oauth config requires authentication.credentials_path (or load via a profile so it defaults to <config_dir>/credentials/<profile>.json)");return q5({credentialsPath:$,clientId:Z.authentication.client_id,baseURL:X,fetch:J.fetch,userAgent:J.userAgent,onSafetyWarning:J.onSafetyWarning})}default:{let z=Z.authentication.type;throw new j(`authentication.type "${z}" is not a known authentication type`)}}}function f1(Z){if(Z.identity_token){let J=Z.identity_token.source;if(J!=="file")throw new j(`identity_token.source "${J}" is not supported by this SDK version (only "file")`);if(!Z.identity_token.path)throw new j('identity_token.source "file" requires a non-empty path');return N0(Z.identity_token.path)}let $=E("ANTHROPIC_IDENTITY_TOKEN_FILE");if($)return N0($);let X=E("ANTHROPIC_IDENTITY_TOKEN");if(X)return W5(X);return null}function b1(Z,$,X,J){return async(z)=>{let Q=await import("node:fs");await N$($,J);let Y;try{let N=await Q.promises.readFile($,"utf-8");Y=JSON.parse(N);let q=Y?.access_token;if(q&&!z?.forceRefresh){let C=Y?.expires_at;if(C==null||wZ()<C-gZ)return{token:q,expiresAt:C??null}}}catch(N){if(N?.code!=="ENOENT"&&!(N instanceof SyntaxError))X?.(N)}let K=await Z(z);try{await U$($,{...Y??{},version:F$,type:"oauth_token",access_token:K.token,expires_at:K.expiresAt})}catch(N){X?.(N)}return K}}var C5=M(()=>{q$();V0();mZ();M8();V5();U5();O5()});class xZ{constructor(){e.set(this,void 0),ZZ.set(this,void 0),F(this,e,new Uint8Array,"f"),F(this,ZZ,null,"f")}decode(Z){if(Z==null)return[];let $=Z instanceof ArrayBuffer?new Uint8Array(Z):typeof Z==="string"?cZ(Z):Z;F(this,e,X5([G(this,e,"f"),$]),"f");let X=[],J;while((J=h1(G(this,e,"f"),G(this,ZZ,"f")))!=null){if(J.carriage&&G(this,ZZ,"f")==null){F(this,ZZ,J.index,"f");continue}if(G(this,ZZ,"f")!=null&&(J.index!==G(this,ZZ,"f")+1||J.carriage)){X.push(G0(G(this,e,"f").subarray(0,G(this,ZZ,"f")-1))),F(this,e,G(this,e,"f").subarray(G(this,ZZ,"f")),"f"),F(this,ZZ,null,"f");continue}let z=G(this,ZZ,"f")!==null?J.preceding-1:J.preceding,Q=G0(G(this,e,"f").subarray(0,z));X.push(Q),F(this,e,G(this,e,"f").subarray(J.index),"f"),F(this,ZZ,null,"f")}return X}flush(){if(!G(this,e,"f").length)return[];return this.decode(`
|
|
2
|
+
`)}}function h1(Z,$){for(let z=$??0;z<Z.length;z++){if(Z[z]===10)return{preceding:z,index:z+1,carriage:!1};if(Z[z]===13)return{preceding:z,index:z+1,carriage:!0}}return null}function F5(Z){for(let J=0;J<Z.length-1;J++){if(Z[J]===10&&Z[J+1]===10)return J+2;if(Z[J]===13&&Z[J+1]===13)return J+2;if(Z[J]===13&&Z[J+1]===10&&J+3<Z.length&&Z[J+2]===13&&Z[J+3]===10)return J+4}return-1}var e,ZZ;var q0=M(()=>{UZ();O$();e=new WeakMap,ZZ=new WeakMap;xZ.NEWLINE_CHARS=new Set([`
|
|
3
|
+
`,"\r"]);xZ.NEWLINE_REGEXP=/\r\n|[\n\r]/g});async function*v1(Z,$){if(!Z.body){if($.abort(),typeof globalThis.navigator<"u"&&globalThis.navigator.product==="ReactNative")throw new x("The default react-native fetch implementation does not support streaming. Please use expo/fetch: https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api");throw new x("Attempted to iterate over a response with no body")}let X=new x5,J=new xZ,z=O8(Z.body);for await(let Q of g1(z))for(let Y of J.decode(Q)){let K=X.decode(Y);if(K)yield K}for(let Q of J.flush()){let Y=X.decode(Q);if(Y)yield Y}}async function*g1(Z){let $=new Uint8Array;for await(let X of Z){if(X==null)continue;let J=X instanceof ArrayBuffer?new Uint8Array(X):typeof X==="string"?cZ(X):X,z=new Uint8Array($.length+J.length);z.set($),z.set(J,$.length),$=z;let Q;while((Q=F5($))!==-1)yield $.slice(0,Q),$=$.slice(Q)}if($.length>0)yield $}class x5{constructor(){this.event=null,this.data=[],this.chunks=[]}decode(Z){if(Z.endsWith("\r"))Z=Z.substring(0,Z.length-1);if(!Z){if(!this.event&&!this.data.length)return null;let z={event:this.event,data:this.data.join(`
|
|
4
|
+
`),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],z}if(this.chunks.push(Z),Z.startsWith(":"))return null;let[$,X,J]=m1(Z,":");if(J.startsWith(" "))J=J.substring(1);if($==="event")this.event=J;else if($==="data")this.data.push(J);return null}}function m1(Z,$){let X=Z.indexOf($);if(X!==-1)return[Z.substring(0,X),$,Z.substring(X+$.length)];return[Z,"",""]}var x8,$Z;var O0=M(()=>{UZ();r();vZ();q0();vZ();hZ();VZ();O$();F8();r();$Z=class $Z{constructor(Z,$,X){this.iterator=Z,x8.set(this,void 0),this.controller=$,F(this,x8,X,"f")}static fromSSEResponse(Z,$,X){let J=!1,z=X?m(X):console;async function*Q(){if(J)throw new x("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");J=!0;let Y=!1;try{for await(let K of v1(Z,$)){if(K.event==="completion")try{yield JSON.parse(K.data)}catch(N){throw z.error("Could not parse message into JSON:",K.data),z.error("From chunk:",K.raw),N}if(K.event==="message_start"||K.event==="message_delta"||K.event==="message_stop"||K.event==="content_block_start"||K.event==="content_block_delta"||K.event==="content_block_stop"||K.event==="message"||K.event==="user.message"||K.event==="user.interrupt"||K.event==="user.tool_confirmation"||K.event==="user.custom_tool_result"||K.event==="agent.message"||K.event==="agent.thinking"||K.event==="agent.tool_use"||K.event==="agent.tool_result"||K.event==="agent.mcp_tool_use"||K.event==="agent.mcp_tool_result"||K.event==="agent.custom_tool_use"||K.event==="agent.thread_context_compacted"||K.event==="session.status_running"||K.event==="session.status_idle"||K.event==="session.status_rescheduled"||K.event==="session.status_terminated"||K.event==="session.error"||K.event==="session.deleted"||K.event==="span.model_request_start"||K.event==="span.model_request_end"||K.event==="span.outcome_evaluation_start"||K.event==="span.outcome_evaluation_ongoing"||K.event==="span.outcome_evaluation_end"||K.event==="user.define_outcome"||K.event==="agent.thread_message_received"||K.event==="agent.thread_message_sent"||K.event==="agent.session_thread_message_received"||K.event==="agent.session_thread_message_sent"||K.event==="session.thread_created"||K.event==="session.thread_status_created"||K.event==="session.thread_status_running"||K.event==="session.thread_status_idle"||K.event==="session.thread_status_rescheduled"||K.event==="session.thread_status_terminated")try{yield JSON.parse(K.data)}catch(N){throw z.error("Could not parse message into JSON:",K.data),z.error("From chunk:",K.raw),N}if(K.event==="ping")continue;if(K.event==="error"){let N=Q$(K.data)??K.data,q=N?.error?.type;throw new l(void 0,N,void 0,Z.headers,q)}}Y=!0}catch(K){if(qZ(K))return;throw K}finally{if(!Y)$.abort()}}return new $Z(Q,$,X)}static fromReadableStream(Z,$,X){let J=!1;async function*z(){let Y=new xZ,K=O8(Z);for await(let N of K)for(let q of Y.decode(N))yield q;for(let N of Y.flush())yield N}async function*Q(){if(J)throw new x("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");J=!0;let Y=!1;try{for await(let K of z()){if(Y)continue;if(K)yield JSON.parse(K)}Y=!0}catch(K){if(qZ(K))return;throw K}finally{if(!Y)$.abort()}}return new $Z(Q,$,X)}[(x8=new WeakMap,Symbol.asyncIterator)](){return this.iterator()}tee(){let Z=[],$=[],X=this.iterator(),J=(z)=>{return{next:()=>{if(z.length===0){let Q=X.next();Z.push(Q),$.push(Q)}return z.shift()}}};return[new $Z(()=>J(Z),this.controller,G(this,x8,"f")),new $Z(()=>J($),this.controller,G(this,x8,"f"))]}toReadableStream(){let Z=this,$;return t$({async start(){$=Z[Symbol.asyncIterator]()},async pull(X){try{let{value:J,done:z}=await $.next();if(z)return X.close();let Q=cZ(JSON.stringify(J)+`
|
|
5
|
+
`);X.enqueue(Q)}catch(J){X.error(J)}},async cancel(){await $.return?.()}})}}});async function x$(Z,$){let{response:X,requestLogID:J,retryOfRequestLogID:z,startTime:Q}=$,Y=await(async()=>{if($.options.stream){if(m(Z).debug("response",X.status,X.url,X.headers,X.body),$.options.__streamClass)return $.options.__streamClass.fromSSEResponse(X,$.controller);return $Z.fromSSEResponse(X,$.controller)}if(X.status===204)return null;if($.options.__binaryResponse)return X;let N=X.headers.get("content-type")?.split(";")[0]?.trim();if(N?.includes("application/json")||N?.endsWith("+json")){if(X.headers.get("content-length")==="0")return;let w=await X.json();return M0(w,X)}return await X.text()})();return m(Z).debug(`[${J}] response parsed`,OZ({retryOfRequestLogID:z,url:X.url,status:X.status,body:Y,durationMs:Date.now()-Q})),Y}function M0(Z,$){if(!Z||typeof Z!=="object"||Array.isArray(Z))return Z;return Object.defineProperty(Z,"_request_id",{value:$.headers.get("request-id"),enumerable:!1})}var C0=M(()=>{O0();F8()});var H8,PZ;var H$=M(()=>{UZ();C0();PZ=class PZ extends Promise{constructor(Z,$,X=x$){super((J)=>{J(null)});this.responsePromise=$,this.parseResponse=X,H8.set(this,void 0),F(this,H8,Z,"f")}_thenUnwrap(Z){return new PZ(G(this,H8,"f"),this.responsePromise,async($,X)=>M0(Z(await this.parseResponse($,X),X),X.response))}asResponse(){return this.responsePromise.then((Z)=>Z.response)}async withResponse(){let[Z,$]=await Promise.all([this.parse(),this.asResponse()]);return{data:Z,response:$,request_id:$.headers.get("request-id")}}parse(){if(!this.parsedPromise)this.parsedPromise=this.responsePromise.then((Z)=>this.parseResponse(G(this,H8,"f"),Z));return this.parsedPromise}then(Z,$){return this.parse().then(Z,$)}catch(Z){return this.parse().catch(Z)}finally(Z){return this.parse().finally(Z)}};H8=new WeakMap});var T$,F0,B$,WZ,L;var _=M(()=>{UZ();r();C0();H$();VZ();F0=class F0{constructor(Z,$,X,J){T$.set(this,void 0),F(this,T$,Z,"f"),this.options=J,this.response=$,this.body=X}hasNextPage(){if(!this.getPaginatedItems().length)return!1;return this.nextPageRequestOptions()!=null}async getNextPage(){let Z=this.nextPageRequestOptions();if(!Z)throw new x("No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.");return await G(this,T$,"f").requestAPIList(this.constructor,Z)}async*iterPages(){let Z=this;yield Z;while(Z.hasNextPage())Z=await Z.getNextPage(),yield Z}async*[(T$=new WeakMap,Symbol.asyncIterator)](){for await(let Z of this.iterPages())for(let $ of Z.getPaginatedItems())yield $}};B$=class B$ extends PZ{constructor(Z,$,X){super(Z,$,async(J,z)=>new X(J,z.response,await x$(J,z),z.options))}async*[Symbol.asyncIterator](){let Z=await this;for await(let $ of Z)yield $}};WZ=class WZ extends F0{constructor(Z,$,X,J){super(Z,$,X,J);this.data=X.data||[],this.has_more=X.has_more||!1,this.first_id=X.first_id||null,this.last_id=X.last_id||null}getPaginatedItems(){return this.data??[]}hasNextPage(){if(this.has_more===!1)return!1;return super.hasNextPage()}nextPageRequestOptions(){if(this.options.query?.before_id){let $=this.first_id;if(!$)return null;return{...this.options,query:{...z$(this.options.query),before_id:$}}}let Z=this.last_id;if(!Z)return null;return{...this.options,query:{...z$(this.options.query),after_id:Z}}}};L=class L extends F0{constructor(Z,$,X,J){super(Z,$,X,J);this.data=X.data||[],this.next_page=X.next_page||null}getPaginatedItems(){return this.data??[]}nextPageRequestOptions(){let Z=this.next_page;if(!Z)return null;return{...this.options,query:{...z$(this.options.query),page:Z}}}}});function RZ(Z,$,X){return H0(),new File(Z,$??"unknown_file",X)}function T8(Z,$){let X=typeof Z==="object"&&Z!==null&&(("name"in Z)&&Z.name&&String(Z.name)||("url"in Z)&&Z.url&&String(Z.url)||("filename"in Z)&&Z.filename&&String(Z.filename)||("path"in Z)&&Z.path&&String(Z.path))||"";return $?X.split(/[\\/]/).pop()||void 0:X}function d1(Z){let $=typeof Z==="function"?Z:Z.fetch,X=H5.get($);if(X)return X;let J=(async()=>{try{let z="Response"in $?$.Response:(await $("data:,")).constructor,Q=new FormData;if(Q.toString()===await new z(Q).text())return!1;return!0}catch{return!0}})();return H5.set($,J),J}var H0=()=>{if(typeof File>"u"){let{process:Z}=globalThis,$=typeof Z?.versions?.node==="string"&&parseInt(Z.versions.node.split("."))<20;throw Error("`File` is not defined as a global, which is required for file uploads."+($?" Update to Node 20 LTS or newer, or set `globalThis.File` to `import('node:buffer').File`.":""))}},T0=(Z)=>Z!=null&&typeof Z==="object"&&typeof Z[Symbol.asyncIterator]==="function",dZ=async(Z,$,X=!0)=>{return{...Z,body:await u1(Z.body,$,X)}},H5,u1=async(Z,$,X=!0)=>{if(!await d1($))throw TypeError("The provided fetch function does not support file uploads with the current global FormData class.");let J=new FormData;return await Promise.all(Object.entries(Z||{}).map(([z,Q])=>x0(J,z,Q,X))),J},l1=(Z)=>Z instanceof Blob&&("name"in Z),x0=async(Z,$,X,J)=>{if(X===void 0)return;if(X==null)throw TypeError(`Received null for "${$}"; to pass null in FormData, you must use the string 'null'`);if(typeof X==="string"||typeof X==="number"||typeof X==="boolean")Z.append($,String(X));else if(X instanceof Response){let z={},Q=X.headers.get("Content-Type");if(Q)z={type:Q};Z.append($,RZ([await X.blob()],T8(X,J),z))}else if(T0(X))Z.append($,RZ([await new Response(Y$(X)).blob()],T8(X,J)));else if(l1(X))Z.append($,RZ([X],T8(X,J),{type:X.type}));else if(Array.isArray(X))await Promise.all(X.map((z)=>x0(Z,$+"[]",z,J)));else if(typeof X==="object")await Promise.all(Object.entries(X).map(([z,Q])=>x0(Z,`${$}[${z}]`,Q,J)));else throw TypeError(`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${X} instead`)};var uZ=M(()=>{vZ();H5=new WeakMap});async function S$(Z,$,X){if(H0(),Z=await Z,$||($=T8(Z,!0)),p1(Z)){if(Z instanceof File&&$==null&&X==null)return Z;return RZ([await Z.arrayBuffer()],$??Z.name,{type:Z.type,lastModified:Z.lastModified,...X})}if(i1(Z)){let z=await Z.blob();return $||($=new URL(Z.url).pathname.split(/[\\/]/).pop()),RZ(await B0(z),$,X)}let J=await B0(Z);if(!X?.type){let z=J.find((Q)=>typeof Q==="object"&&("type"in Q)&&Q.type);if(typeof z==="string")X={...X,type:z}}return RZ(J,$,X)}async function B0(Z){let $=[];if(typeof Z==="string"||ArrayBuffer.isView(Z)||Z instanceof ArrayBuffer)$.push(Z);else if(T5(Z))$.push(Z instanceof Blob?Z:await Z.arrayBuffer());else if(T0(Z))for await(let X of Z)$.push(...await B0(X));else{let X=Z?.constructor?.name;throw Error(`Unexpected data type: ${typeof Z}${X?`; constructor: ${X}`:""}${n1(Z)}`)}return $}function n1(Z){if(typeof Z!=="object"||Z===null)return"";return`; props: [${Object.getOwnPropertyNames(Z).map((X)=>`"${X}"`).join(", ")}]`}var T5=(Z)=>Z!=null&&typeof Z==="object"&&typeof Z.size==="number"&&typeof Z.type==="string"&&typeof Z.text==="function"&&typeof Z.slice==="function"&&typeof Z.arrayBuffer==="function",p1=(Z)=>Z!=null&&typeof Z==="object"&&typeof Z.name==="string"&&typeof Z.lastModified==="number"&&T5(Z),i1=(Z)=>Z!=null&&typeof Z==="object"&&typeof Z.url==="string"&&typeof Z.blob==="function";var B5=M(()=>{uZ();uZ()});var S0=M(()=>{B5()});var S5=()=>{};class S{constructor(Z){this._client=Z}}var R=()=>{};function*r1(Z){if(!Z)return;if(A5 in Z){let{values:J,nulls:z}=Z;yield*J.entries();for(let Q of z)yield[Q,null];return}let $=!1,X;if(Z instanceof Headers)X=Z.entries();else if(a$(Z))X=Z;else $=!0,X=Object.entries(Z??{});for(let J of X){let z=J[0];if(typeof z!=="string")throw TypeError("expected header name to be a string");let Q=a$(J[1])?J[1]:[J[1]],Y=!1;for(let K of Q){if(K===void 0)continue;if($&&!Y)Y=!0,yield[z,null];yield[z,K]}}}var A5,W=(Z)=>{let $=new Headers,X=new Set;for(let J of Z){let z=new Set;for(let[Q,Y]of r1(J)){let K=Q.toLowerCase();if(!z.has(K))$.delete(Q),z.add(K);if(Y===null)$.delete(Q),X.add(K);else $.append(Q,Y),X.delete(K)}}return{[A5]:!0,values:$,nulls:X}};var I=M(()=>{VZ();A5=Symbol.for("brand.privateNullableHeaders")});function L5(Z){return Z.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g,encodeURIComponent)}var D5,o1=(Z=L5)=>function(X,...J){if(X.length===1)return X[0];let z=!1,Q=[],Y=X.reduce((C,V,w)=>{if(/[?#]/.test(V))z=!0;let O=J[w],H=(z?encodeURIComponent:Z)(""+O);if(w!==J.length&&(O==null||typeof O==="object"&&O.toString===Object.getPrototypeOf(Object.getPrototypeOf(O.hasOwnProperty??D5)??D5)?.toString))H=O+"",Q.push({start:C.length+V.length,length:H.length,error:`Value of type ${Object.prototype.toString.call(O).slice(8,-1)} is not a valid path parameter`});return C+V+(w===J.length?"":H)},""),K=Y.split(/[?#]/,1)[0],N=/(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi,q;while((q=N.exec(K))!==null)Q.push({start:q.index,length:q[0].length,error:`Value "${q[0]}" can't be safely passed as a path parameter`});if(Q.sort((C,V)=>C.start-V.start),Q.length>0){let C=0,V=Q.reduce((w,O)=>{let H=" ".repeat(O.start-C),D="^".repeat(O.length);return C=O.start+O.length,w+H+D},"");throw new x(`Path parameters result in path with invalid segments:
|
|
6
|
+
${Q.map((w)=>w.error).join(`
|
|
7
|
+
`)}
|
|
8
|
+
${Y}
|
|
9
|
+
${V}`)}return Y},U;var h=M(()=>{r();D5=Object.freeze(Object.create(null)),U=o1(L5)});var B8;var A0=M(()=>{R();_();I();h();B8=class B8 extends S{create(Z,$){let{betas:X,...J}=Z;return this._client.post("/v1/environments?beta=true",{body:J,...$,headers:W([{"anthropic-beta":[...X??[],"managed-agents-2026-04-01"].toString()},$?.headers])})}retrieve(Z,$={},X){let{betas:J}=$??{};return this._client.get(U`/v1/environments/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}update(Z,$,X){let{betas:J,...z}=$;return this._client.post(U`/v1/environments/${Z}?beta=true`,{body:z,...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}list(Z={},$){let{betas:X,...J}=Z??{};return this._client.getAPIList("/v1/environments?beta=true",L,{query:J,...$,headers:W([{"anthropic-beta":[...X??[],"managed-agents-2026-04-01"].toString()},$?.headers])})}delete(Z,$={},X){let{betas:J}=$??{};return this._client.delete(U`/v1/environments/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}archive(Z,$={},X){let{betas:J}=$??{};return this._client.post(U`/v1/environments/${Z}/archive?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}}});function A$(Z){return typeof Z==="object"&&Z!==null&&S8 in Z}function D0(Z,$){let X=new Set;if(Z){for(let J of Z)if(A$(J))X.add(J[S8])}if($)for(let J of $){if(A$(J))X.add(J[S8]);if(Array.isArray(J.content)){for(let z of J.content)if(A$(z))X.add(z[S8])}}return Array.from(X)}function D$(Z,$){let X=D0(Z,$);if(X.length===0)return{};return{"x-stainless-helper":X.join(", ")}}function E5(Z){if(A$(Z))return{"x-stainless-helper":Z[S8]};return{}}var S8;var A8=M(()=>{S8=Symbol("anthropic.sdk.stainlessHelper")});var D8;var L0=M(()=>{R();_();I();A8();uZ();h();D8=class D8 extends S{list(Z={},$){let{betas:X,...J}=Z??{};return this._client.getAPIList("/v1/files?beta=true",WZ,{query:J,...$,headers:W([{"anthropic-beta":[...X??[],"files-api-2025-04-14"].toString()},$?.headers])})}delete(Z,$={},X){let{betas:J}=$??{};return this._client.delete(U`/v1/files/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"files-api-2025-04-14"].toString()},X?.headers])})}download(Z,$={},X){let{betas:J}=$??{};return this._client.get(U`/v1/files/${Z}/content?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"files-api-2025-04-14"].toString(),Accept:"application/binary"},X?.headers]),__binaryResponse:!0})}retrieveMetadata(Z,$={},X){let{betas:J}=$??{};return this._client.get(U`/v1/files/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"files-api-2025-04-14"].toString()},X?.headers])})}upload(Z,$){let{betas:X,...J}=Z;return this._client.post("/v1/files?beta=true",dZ({body:J,...$,headers:W([{"anthropic-beta":[...X??[],"files-api-2025-04-14"].toString()},E5(J.file),$?.headers])},this._client))}}});var L8;var E0=M(()=>{R();_();I();h();L8=class L8 extends S{retrieve(Z,$={},X){let{betas:J}=$??{};return this._client.get(U`/v1/models/${Z}?beta=true`,{...X,headers:W([{...J?.toString()!=null?{"anthropic-beta":J?.toString()}:void 0},X?.headers])})}list(Z={},$){let{betas:X,...J}=Z??{};return this._client.getAPIList("/v1/models?beta=true",WZ,{query:J,...$,headers:W([{...X?.toString()!=null?{"anthropic-beta":X?.toString()}:void 0},$?.headers])})}}});var E8;var j0=M(()=>{R();_();I();h();E8=class E8 extends S{create(Z,$){let{betas:X,...J}=Z;return this._client.post("/v1/user_profiles?beta=true",{body:J,...$,headers:W([{"anthropic-beta":[...X??[],"user-profiles-2026-03-24"].toString()},$?.headers])})}retrieve(Z,$={},X){let{betas:J}=$??{};return this._client.get(U`/v1/user_profiles/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"user-profiles-2026-03-24"].toString()},X?.headers])})}update(Z,$,X){let{betas:J,...z}=$;return this._client.post(U`/v1/user_profiles/${Z}?beta=true`,{body:z,...X,headers:W([{"anthropic-beta":[...J??[],"user-profiles-2026-03-24"].toString()},X?.headers])})}list(Z={},$){let{betas:X,...J}=Z??{};return this._client.getAPIList("/v1/user_profiles?beta=true",L,{query:J,...$,headers:W([{"anthropic-beta":[...X??[],"user-profiles-2026-03-24"].toString()},$?.headers])})}createEnrollmentURL(Z,$={},X){let{betas:J}=$??{};return this._client.post(U`/v1/user_profiles/${Z}/enrollment_url?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"user-profiles-2026-03-24"].toString()},X?.headers])})}}});var I5=L$((P5)=>{Object.defineProperty(P5,"__esModule",{value:!0});P5.timingSafeEqual=void 0;function j5(Z,$=""){if(!Z)throw Error($)}function $6(Z,$){if(Z.byteLength!==$.byteLength)return!1;if(!(Z instanceof DataView))Z=new DataView(ArrayBuffer.isView(Z)?Z.buffer:Z);if(!($ instanceof DataView))$=new DataView(ArrayBuffer.isView($)?$.buffer:$);j5(Z instanceof DataView),j5($ instanceof DataView);let X=Z.byteLength,J=0,z=-1;while(++z<X)J|=Z.getUint8(z)^$.getUint8(z);return J===0}P5.timingSafeEqual=$6});var _5=L$((XZ)=>{var X6=XZ&&XZ.__extends||function(){var Z=function($,X){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,z){J.__proto__=z}||function(J,z){for(var Q in z)if(z.hasOwnProperty(Q))J[Q]=z[Q]},Z($,X)};return function($,X){Z($,X);function J(){this.constructor=$}$.prototype=X===null?Object.create(X):(J.prototype=X.prototype,new J)}}();Object.defineProperty(XZ,"__esModule",{value:!0});var d=256,P0=function(){function Z($){if($===void 0)$="=";this._paddingCharacter=$}return Z.prototype.encodedLength=function($){if(!this._paddingCharacter)return($*8+5)/6|0;return($+2)/3*4|0},Z.prototype.encode=function($){var X="",J=0;for(;J<$.length-2;J+=3){var z=$[J]<<16|$[J+1]<<8|$[J+2];X+=this._encodeByte(z>>>18&63),X+=this._encodeByte(z>>>12&63),X+=this._encodeByte(z>>>6&63),X+=this._encodeByte(z>>>0&63)}var Q=$.length-J;if(Q>0){var z=$[J]<<16|(Q===2?$[J+1]<<8:0);if(X+=this._encodeByte(z>>>18&63),X+=this._encodeByte(z>>>12&63),Q===2)X+=this._encodeByte(z>>>6&63);else X+=this._paddingCharacter||"";X+=this._paddingCharacter||""}return X},Z.prototype.maxDecodedLength=function($){if(!this._paddingCharacter)return($*6+7)/8|0;return $/4*3|0},Z.prototype.decodedLength=function($){return this.maxDecodedLength($.length-this._getPaddingLength($))},Z.prototype.decode=function($){if($.length===0)return new Uint8Array(0);var X=this._getPaddingLength($),J=$.length-X,z=new Uint8Array(this.maxDecodedLength(J)),Q=0,Y=0,K=0,N=0,q=0,C=0,V=0;for(;Y<J-4;Y+=4)N=this._decodeChar($.charCodeAt(Y+0)),q=this._decodeChar($.charCodeAt(Y+1)),C=this._decodeChar($.charCodeAt(Y+2)),V=this._decodeChar($.charCodeAt(Y+3)),z[Q++]=N<<2|q>>>4,z[Q++]=q<<4|C>>>2,z[Q++]=C<<6|V,K|=N&d,K|=q&d,K|=C&d,K|=V&d;if(Y<J-1)N=this._decodeChar($.charCodeAt(Y)),q=this._decodeChar($.charCodeAt(Y+1)),z[Q++]=N<<2|q>>>4,K|=N&d,K|=q&d;if(Y<J-2)C=this._decodeChar($.charCodeAt(Y+2)),z[Q++]=q<<4|C>>>2,K|=C&d;if(Y<J-3)V=this._decodeChar($.charCodeAt(Y+3)),z[Q++]=C<<6|V,K|=V&d;if(K!==0)throw Error("Base64Coder: incorrect characters for decoding");return z},Z.prototype._encodeByte=function($){var X=$;return X+=65,X+=25-$>>>8&6,X+=51-$>>>8&-75,X+=61-$>>>8&-15,X+=62-$>>>8&3,String.fromCharCode(X)},Z.prototype._decodeChar=function($){var X=d;return X+=(42-$&$-44)>>>8&-d+$-43+62,X+=(46-$&$-48)>>>8&-d+$-47+63,X+=(47-$&$-58)>>>8&-d+$-48+52,X+=(64-$&$-91)>>>8&-d+$-65+0,X+=(96-$&$-123)>>>8&-d+$-97+26,X},Z.prototype._getPaddingLength=function($){var X=0;if(this._paddingCharacter){for(var J=$.length-1;J>=0;J--){if($[J]!==this._paddingCharacter)break;X++}if($.length<4||X>2)throw Error("Base64Coder: incorrect padding")}return X},Z}();XZ.Coder=P0;var j8=new P0;function J6(Z){return j8.encode(Z)}XZ.encode=J6;function z6(Z){return j8.decode(Z)}XZ.decode=z6;var k5=function(Z){X6($,Z);function $(){return Z!==null&&Z.apply(this,arguments)||this}return $.prototype._encodeByte=function(X){var J=X;return J+=65,J+=25-X>>>8&6,J+=51-X>>>8&-75,J+=61-X>>>8&-13,J+=62-X>>>8&49,String.fromCharCode(J)},$.prototype._decodeChar=function(X){var J=d;return J+=(44-X&X-46)>>>8&-d+X-45+62,J+=(94-X&X-96)>>>8&-d+X-95+63,J+=(47-X&X-58)>>>8&-d+X-48+52,J+=(64-X&X-91)>>>8&-d+X-65+0,J+=(96-X&X-123)>>>8&-d+X-97+26,J},$}(P0);XZ.URLSafeCoder=k5;var y5=new k5;function Q6(Z){return y5.encode(Z)}XZ.encodeURLSafe=Q6;function K6(Z){return y5.decode(Z)}XZ.decodeURLSafe=K6;XZ.encodedLength=function(Z){return j8.encodedLength(Z)};XZ.maxDecodedLength=function(Z){return j8.maxDecodedLength(Z)};XZ.decodedLength=function(Z){return j8.decodedLength(Z)}});var b5=L$((f5,E$)=>{(function(Z,$){var X={};$(X);var J=X.default;for(var z in X)J[z]=X[z];if(typeof E$==="object"&&typeof E$.exports==="object")E$.exports=J;else if(typeof define==="function"&&define.amd)define(function(){return J});else Z.sha256=J})(f5,function(Z){Z.__esModule=!0,Z.digestLength=32,Z.blockSize=64;var $=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function X(V,w,O,H,D){var B,A,T,f,k,P,u,y,c,b,g,zZ,LZ;while(D>=64){B=w[0],A=w[1],T=w[2],f=w[3],k=w[4],P=w[5],u=w[6],y=w[7];for(b=0;b<16;b++)g=H+b*4,V[b]=(O[g]&255)<<24|(O[g+1]&255)<<16|(O[g+2]&255)<<8|O[g+3]&255;for(b=16;b<64;b++)c=V[b-2],zZ=(c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10,c=V[b-15],LZ=(c>>>7|c<<25)^(c>>>18|c<<14)^c>>>3,V[b]=(zZ+V[b-7]|0)+(LZ+V[b-16]|0);for(b=0;b<64;b++)zZ=(((k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7))+(k&P^~k&u)|0)+(y+($[b]+V[b]|0)|0)|0,LZ=((B>>>2|B<<30)^(B>>>13|B<<19)^(B>>>22|B<<10))+(B&A^B&T^A&T)|0,y=u,u=P,P=k,k=f+zZ|0,f=T,T=A,A=B,B=zZ+LZ|0;w[0]+=B,w[1]+=A,w[2]+=T,w[3]+=f,w[4]+=k,w[5]+=P,w[6]+=u,w[7]+=y,H+=64,D-=64}return H}var J=function(){function V(){this.digestLength=Z.digestLength,this.blockSize=Z.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return V.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},V.prototype.clean=function(){for(var w=0;w<this.buffer.length;w++)this.buffer[w]=0;for(var w=0;w<this.temp.length;w++)this.temp[w]=0;this.reset()},V.prototype.update=function(w,O){if(O===void 0)O=w.length;if(this.finished)throw Error("SHA256: can't update because hash was finished.");var H=0;if(this.bytesHashed+=O,this.bufferLength>0){while(this.bufferLength<64&&O>0)this.buffer[this.bufferLength++]=w[H++],O--;if(this.bufferLength===64)X(this.temp,this.state,this.buffer,0,64),this.bufferLength=0}if(O>=64)H=X(this.temp,this.state,w,H,O),O%=64;while(O>0)this.buffer[this.bufferLength++]=w[H++],O--;return this},V.prototype.finish=function(w){if(!this.finished){var O=this.bytesHashed,H=this.bufferLength,D=O/536870912|0,B=O<<3,A=O%64<56?64:128;this.buffer[H]=128;for(var T=H+1;T<A-8;T++)this.buffer[T]=0;this.buffer[A-8]=D>>>24&255,this.buffer[A-7]=D>>>16&255,this.buffer[A-6]=D>>>8&255,this.buffer[A-5]=D>>>0&255,this.buffer[A-4]=B>>>24&255,this.buffer[A-3]=B>>>16&255,this.buffer[A-2]=B>>>8&255,this.buffer[A-1]=B>>>0&255,X(this.temp,this.state,this.buffer,0,A),this.finished=!0}for(var T=0;T<8;T++)w[T*4+0]=this.state[T]>>>24&255,w[T*4+1]=this.state[T]>>>16&255,w[T*4+2]=this.state[T]>>>8&255,w[T*4+3]=this.state[T]>>>0&255;return this},V.prototype.digest=function(){var w=new Uint8Array(this.digestLength);return this.finish(w),w},V.prototype._saveState=function(w){for(var O=0;O<this.state.length;O++)w[O]=this.state[O]},V.prototype._restoreState=function(w,O){for(var H=0;H<this.state.length;H++)this.state[H]=w[H];this.bytesHashed=O,this.finished=!1,this.bufferLength=0},V}();Z.Hash=J;var z=function(){function V(w){this.inner=new J,this.outer=new J,this.blockSize=this.inner.blockSize,this.digestLength=this.inner.digestLength;var O=new Uint8Array(this.blockSize);if(w.length>this.blockSize)new J().update(w).finish(O).clean();else for(var H=0;H<w.length;H++)O[H]=w[H];for(var H=0;H<O.length;H++)O[H]^=54;this.inner.update(O);for(var H=0;H<O.length;H++)O[H]^=106;this.outer.update(O),this.istate=new Uint32Array(8),this.ostate=new Uint32Array(8),this.inner._saveState(this.istate),this.outer._saveState(this.ostate);for(var H=0;H<O.length;H++)O[H]=0}return V.prototype.reset=function(){return this.inner._restoreState(this.istate,this.inner.blockSize),this.outer._restoreState(this.ostate,this.outer.blockSize),this},V.prototype.clean=function(){for(var w=0;w<this.istate.length;w++)this.ostate[w]=this.istate[w]=0;this.inner.clean(),this.outer.clean()},V.prototype.update=function(w){return this.inner.update(w),this},V.prototype.finish=function(w){if(this.outer.finished)this.outer.finish(w);else this.inner.finish(w),this.outer.update(w,this.digestLength).finish(w);return this},V.prototype.digest=function(){var w=new Uint8Array(this.digestLength);return this.finish(w),w},V}();Z.HMAC=z;function Q(V){var w=new J().update(V),O=w.digest();return w.clean(),O}Z.hash=Q,Z.default=Q;function Y(V,w){var O=new z(V).update(w),H=O.digest();return O.clean(),H}Z.hmac=Y;function K(V,w,O,H){var D=H[0];if(D===0)throw Error("hkdf: cannot expand more");if(w.reset(),D>1)w.update(V);if(O)w.update(O);w.update(H),w.finish(V),H[0]++}var N=new Uint8Array(Z.digestLength);function q(V,w,O,H){if(w===void 0)w=N;if(H===void 0)H=32;var D=new Uint8Array([1]),B=Y(w,V),A=new z(B),T=new Uint8Array(A.digestLength),f=T.length,k=new Uint8Array(H);for(var P=0;P<H;P++){if(f===T.length)K(T,A,O,D),f=0;k[P]=T[f++]}return A.clean(),T.fill(0),D.fill(0),k}Z.hkdf=q;function C(V,w,O,H){var D=new z(V),B=D.digestLength,A=new Uint8Array(4),T=new Uint8Array(B),f=new Uint8Array(B),k=new Uint8Array(H);for(var P=0;P*B<H;P++){var u=P+1;A[0]=u>>>24&255,A[1]=u>>>16&255,A[2]=u>>>8&255,A[3]=u>>>0&255,D.reset(),D.update(w),D.update(A),D.finish(f);for(var y=0;y<B;y++)T[y]=f[y];for(var y=2;y<=O;y++){D.reset(),D.update(f).finish(f);for(var c=0;c<B;c++)T[c]^=f[c]}for(var y=0;y<B&&P*B+y<H;y++)k[P*B+y]=T[y]}for(var P=0;P<B;P++)T[P]=f[P]=0;for(var P=0;P<4;P++)A[P]=0;return D.clean(),k}Z.pbkdf2=C})});var c5=L$((g5)=>{Object.defineProperty(g5,"__esModule",{value:!0});g5.Webhook=g5.WebhookVerificationError=void 0;var Y6=I5(),h5=_5(),G6=b5(),v5=300;class R0 extends Error{constructor(Z){super(Z);Object.setPrototypeOf(this,R0.prototype),this.name="ExtendableError",this.stack=Error(Z).stack}}class HZ extends R0{constructor(Z){super(Z);Object.setPrototypeOf(this,HZ.prototype),this.name="WebhookVerificationError"}}g5.WebhookVerificationError=HZ;class P8{constructor(Z,$){if(!Z)throw Error("Secret can't be empty.");if(($===null||$===void 0?void 0:$.format)==="raw")if(Z instanceof Uint8Array)this.key=Z;else this.key=Uint8Array.from(Z,(X)=>X.charCodeAt(0));else{if(typeof Z!=="string")throw Error("Expected secret to be of type string");if(Z.startsWith(P8.prefix))Z=Z.substring(P8.prefix.length);this.key=h5.decode(Z)}}verify(Z,$){let X={};for(let V of Object.keys($))X[V.toLowerCase()]=$[V];let J=X["webhook-id"],z=X["webhook-signature"],Q=X["webhook-timestamp"];if(!z||!J||!Q)throw new HZ("Missing required headers");let Y=this.verifyTimestamp(Q),N=this.sign(J,Y,Z).split(",")[1],q=z.split(" "),C=new globalThis.TextEncoder;for(let V of q){let[w,O]=V.split(",");if(w!=="v1")continue;if((0,Y6.timingSafeEqual)(C.encode(O),C.encode(N)))return JSON.parse(Z.toString())}throw new HZ("No matching signature found")}sign(Z,$,X){if(typeof X==="string");else if(X.constructor.name==="Buffer")X=X.toString();else throw Error("Expected payload to be of type string or Buffer.");let J=new TextEncoder,z=Math.floor($.getTime()/1000),Q=J.encode(`${Z}.${z}.${X}`);return`v1,${h5.encode(G6.hmac(this.key,Q))}`}verifyTimestamp(Z){let $=Math.floor(Date.now()/1000),X=parseInt(Z,10);if(isNaN(X))throw new HZ("Invalid Signature Headers");if($-X>v5)throw new HZ("Message timestamp too old");if(X>$+v5)throw new HZ("Message timestamp too new");return new Date(X*1000)}}g5.Webhook=P8;P8.prefix="whsec_"});var d5,R8;var I0=M(()=>{R();d5=W6(c5(),1);R8=class R8 extends S{unwrap(Z,{headers:$,key:X}){if($!==void 0){let J=X===void 0?this._client.webhookKey:X;if(J===null)throw Error("Webhook key must not be null in order to unwrap");new d5.Webhook(J).verify(Z,$)}return JSON.parse(Z)}}});var I8;var k0=M(()=>{R();_();I();h();I8=class I8 extends S{list(Z,$={},X){let{betas:J,...z}=$??{};return this._client.getAPIList(U`/v1/agents/${Z}/versions?beta=true`,L,{query:z,...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}}});var lZ;var y0=M(()=>{R();k0();k0();_();I();h();lZ=class lZ extends S{constructor(){super(...arguments);this.versions=new I8(this._client)}create(Z,$){let{betas:X,...J}=Z;return this._client.post("/v1/agents?beta=true",{body:J,...$,headers:W([{"anthropic-beta":[...X??[],"managed-agents-2026-04-01"].toString()},$?.headers])})}retrieve(Z,$={},X){let{betas:J,...z}=$??{};return this._client.get(U`/v1/agents/${Z}?beta=true`,{query:z,...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}update(Z,$,X){let{betas:J,...z}=$;return this._client.post(U`/v1/agents/${Z}?beta=true`,{body:z,...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}list(Z={},$){let{betas:X,...J}=Z??{};return this._client.getAPIList("/v1/agents?beta=true",L,{query:J,...$,headers:W([{"anthropic-beta":[...X??[],"managed-agents-2026-04-01"].toString()},$?.headers])})}archive(Z,$={},X){let{betas:J}=$??{};return this._client.post(U`/v1/agents/${Z}/archive?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}};lZ.Versions=I8});var k8;var _0=M(()=>{R();_();I();h();k8=class k8 extends S{create(Z,$,X){let{view:J,betas:z,...Q}=$;return this._client.post(U`/v1/memory_stores/${Z}/memories?beta=true`,{query:{view:J},body:Q,...X,headers:W([{"anthropic-beta":[...z??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}retrieve(Z,$,X){let{memory_store_id:J,betas:z,...Q}=$;return this._client.get(U`/v1/memory_stores/${J}/memories/${Z}?beta=true`,{query:Q,...X,headers:W([{"anthropic-beta":[...z??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}update(Z,$,X){let{memory_store_id:J,view:z,betas:Q,...Y}=$;return this._client.post(U`/v1/memory_stores/${J}/memories/${Z}?beta=true`,{query:{view:z},body:Y,...X,headers:W([{"anthropic-beta":[...Q??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}list(Z,$={},X){let{betas:J,...z}=$??{};return this._client.getAPIList(U`/v1/memory_stores/${Z}/memories?beta=true`,L,{query:z,...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}delete(Z,$,X){let{memory_store_id:J,expected_content_sha256:z,betas:Q}=$;return this._client.delete(U`/v1/memory_stores/${J}/memories/${Z}?beta=true`,{query:{expected_content_sha256:z},...X,headers:W([{"anthropic-beta":[...Q??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}}});var y8;var f0=M(()=>{R();_();I();h();y8=class y8 extends S{retrieve(Z,$,X){let{memory_store_id:J,betas:z,...Q}=$;return this._client.get(U`/v1/memory_stores/${J}/memory_versions/${Z}?beta=true`,{query:Q,...X,headers:W([{"anthropic-beta":[...z??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}list(Z,$={},X){let{betas:J,...z}=$??{};return this._client.getAPIList(U`/v1/memory_stores/${Z}/memory_versions?beta=true`,L,{query:z,...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}redact(Z,$,X){let{memory_store_id:J,betas:z}=$;return this._client.post(U`/v1/memory_stores/${J}/memory_versions/${Z}/redact?beta=true`,{...X,headers:W([{"anthropic-beta":[...z??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}}});var IZ;var b0=M(()=>{R();_0();_0();f0();f0();_();I();h();IZ=class IZ extends S{constructor(){super(...arguments);this.memories=new k8(this._client),this.memoryVersions=new y8(this._client)}create(Z,$){let{betas:X,...J}=Z;return this._client.post("/v1/memory_stores?beta=true",{body:J,...$,headers:W([{"anthropic-beta":[...X??[],"managed-agents-2026-04-01"].toString()},$?.headers])})}retrieve(Z,$={},X){let{betas:J}=$??{};return this._client.get(U`/v1/memory_stores/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}update(Z,$,X){let{betas:J,...z}=$;return this._client.post(U`/v1/memory_stores/${Z}?beta=true`,{body:z,...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}list(Z={},$){let{betas:X,...J}=Z??{};return this._client.getAPIList("/v1/memory_stores?beta=true",L,{query:J,...$,headers:W([{"anthropic-beta":[...X??[],"managed-agents-2026-04-01"].toString()},$?.headers])})}delete(Z,$={},X){let{betas:J}=$??{};return this._client.delete(U`/v1/memory_stores/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}archive(Z,$={},X){let{betas:J}=$??{};return this._client.post(U`/v1/memory_stores/${Z}/archive?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}};IZ.Memories=k8;IZ.MemoryVersions=y8});var pZ=M(()=>{r()});var iZ;var h0=M(()=>{r();vZ();q0();iZ=class iZ{constructor(Z,$){this.iterator=Z,this.controller=$}async*decoder(){let Z=new xZ;for await(let $ of this.iterator)for(let X of Z.decode($))yield JSON.parse(X);for(let $ of Z.flush())yield JSON.parse($)}[Symbol.asyncIterator](){return this.decoder()}static fromResponse(Z,$){if(!Z.body){if($.abort(),typeof globalThis.navigator<"u"&&globalThis.navigator.product==="ReactNative")throw new x("The default react-native fetch implementation does not support streaming. Please use expo/fetch: https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api");throw new x("Attempted to iterate over a response with no body")}return new iZ(O8(Z.body),$)}}});var _8;var v0=M(()=>{R();_();I();h0();pZ();h();_8=class _8 extends S{create(Z,$){let{betas:X,...J}=Z;return this._client.post("/v1/messages/batches?beta=true",{body:J,...$,headers:W([{"anthropic-beta":[...X??[],"message-batches-2024-09-24"].toString()},$?.headers])})}retrieve(Z,$={},X){let{betas:J}=$??{};return this._client.get(U`/v1/messages/batches/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"message-batches-2024-09-24"].toString()},X?.headers])})}list(Z={},$){let{betas:X,...J}=Z??{};return this._client.getAPIList("/v1/messages/batches?beta=true",WZ,{query:J,...$,headers:W([{"anthropic-beta":[...X??[],"message-batches-2024-09-24"].toString()},$?.headers])})}delete(Z,$={},X){let{betas:J}=$??{};return this._client.delete(U`/v1/messages/batches/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"message-batches-2024-09-24"].toString()},X?.headers])})}cancel(Z,$={},X){let{betas:J}=$??{};return this._client.post(U`/v1/messages/batches/${Z}/cancel?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"message-batches-2024-09-24"].toString()},X?.headers])})}async results(Z,$={},X){let J=await this.retrieve(Z);if(!J.results_url)throw new x(`No batch \`results_url\`; Has it finished processing? ${J.processing_status} - ${J.id}`);let{betas:z}=$??{};return this._client.get(J.results_url,{...X,headers:W([{"anthropic-beta":[...z??[],"message-batches-2024-09-24"].toString(),Accept:"application/binary"},X?.headers]),stream:!0,__binaryResponse:!0})._thenUnwrap((Q,Y)=>iZ.fromResponse(Y.response,Y.controller))}}});var j$;var g0=M(()=>{j$={"claude-opus-4-20250514":8192,"claude-opus-4-0":8192,"claude-4-opus-20250514":8192,"anthropic.claude-opus-4-20250514-v1:0":8192,"claude-opus-4@20250514":8192,"claude-opus-4-1-20250805":8192,"anthropic.claude-opus-4-1-20250805-v1:0":8192,"claude-opus-4-1@20250805":8192}});function u5(Z){return Z?.output_format??Z?.output_config?.format}function m0(Z,$,X){let J=u5($);if(!$||!("parse"in(J??{})))return{...Z,content:Z.content.map((z)=>{if(z.type==="text"){let Q=Object.defineProperty({...z},"parsed_output",{value:null,enumerable:!1});return Object.defineProperty(Q,"parsed",{get(){return X.logger.warn("The `parsed` property on `text` blocks is deprecated, please use `parsed_output` instead."),null},enumerable:!1})}return z}),parsed_output:null};return c0(Z,$,X)}function c0(Z,$,X){let J=null,z=Z.content.map((Q)=>{if(Q.type==="text"){let Y=F6($,Q.text);if(J===null)J=Y;let K=Object.defineProperty({...Q},"parsed_output",{value:Y,enumerable:!1});return Object.defineProperty(K,"parsed",{get(){return X.logger.warn("The `parsed` property on `text` blocks is deprecated, please use `parsed_output` instead."),Y},enumerable:!1})}return Q});return{...Z,content:z,parsed_output:J}}function F6(Z,$){let X=u5(Z);if(X?.type!=="json_schema")return null;try{if("parse"in X)return X.parse($);return JSON.parse($)}catch(J){throw new x(`Failed to parse structured output: ${J}`)}}var d0=M(()=>{r()});var x6=(Z)=>{let $=0,X=[];while($<Z.length){let J=Z[$];if(J==="\\"){$++;continue}if(J==="{"){X.push({type:"brace",value:"{"}),$++;continue}if(J==="}"){X.push({type:"brace",value:"}"}),$++;continue}if(J==="["){X.push({type:"paren",value:"["}),$++;continue}if(J==="]"){X.push({type:"paren",value:"]"}),$++;continue}if(J===":"){X.push({type:"separator",value:":"}),$++;continue}if(J===","){X.push({type:"delimiter",value:","}),$++;continue}if(J==='"'){let K="",N=!1;J=Z[++$];while(J!=='"'){if($===Z.length){N=!0;break}if(J==="\\"){if($++,$===Z.length){N=!0;break}K+=J+Z[$],J=Z[++$]}else K+=J,J=Z[++$]}if(J=Z[++$],!N)X.push({type:"string",value:K});continue}if(J&&/\s/.test(J)){$++;continue}let Q=/[0-9]/;if(J&&Q.test(J)||J==="-"||J==="."){let K="";if(J==="-")K+=J,J=Z[++$];while(J&&Q.test(J)||J===".")K+=J,J=Z[++$];X.push({type:"number",value:K});continue}let Y=/[a-z]/i;if(J&&Y.test(J)){let K="";while(J&&Y.test(J)){if($===Z.length)break;K+=J,J=Z[++$]}if(K=="true"||K=="false"||K==="null")X.push({type:"name",value:K});else{$++;continue}continue}$++}return X},nZ=(Z)=>{if(Z.length===0)return Z;let $=Z[Z.length-1];switch($.type){case"separator":return Z=Z.slice(0,Z.length-1),nZ(Z);break;case"number":let X=$.value[$.value.length-1];if(X==="."||X==="-")return Z=Z.slice(0,Z.length-1),nZ(Z);case"string":let J=Z[Z.length-2];if(J?.type==="delimiter")return Z=Z.slice(0,Z.length-1),nZ(Z);else if(J?.type==="brace"&&J.value==="{")return Z=Z.slice(0,Z.length-1),nZ(Z);break;case"delimiter":return Z=Z.slice(0,Z.length-1),nZ(Z);break}return Z},H6=(Z)=>{let $=[];if(Z.map((X)=>{if(X.type==="brace")if(X.value==="{")$.push("}");else $.splice($.lastIndexOf("}"),1);if(X.type==="paren")if(X.value==="[")$.push("]");else $.splice($.lastIndexOf("]"),1)}),$.length>0)$.reverse().map((X)=>{if(X==="}")Z.push({type:"brace",value:"}"});else if(X==="]")Z.push({type:"paren",value:"]"})});return Z},T6=(Z)=>{let $="";return Z.map((X)=>{switch(X.type){case"string":$+='"'+X.value+'"';break;default:$+=X.value;break}}),$},P$=(Z)=>JSON.parse(T6(H6(nZ(x6(Z)))));var u0=()=>{};var l0=M(()=>{O0()});function n5(Z){return Z.type==="tool_use"||Z.type==="server_tool_use"||Z.type==="mcp_tool_use"}function a5(Z){}var YZ,TZ,aZ,f8,R$,b8,h8,I$,v8,MZ,g8,k$,y$,kZ,_$,f$,m8,p0,l5,b$,i0,n0,a0,p5,i5="__json_buf",c8;var r5=M(()=>{UZ();u0();pZ();hZ();l0();d0();c8=class c8{constructor(Z,$){YZ.add(this),this.messages=[],this.receivedMessages=[],TZ.set(this,void 0),aZ.set(this,null),this.controller=new AbortController,f8.set(this,void 0),R$.set(this,()=>{}),b8.set(this,()=>{}),h8.set(this,void 0),I$.set(this,()=>{}),v8.set(this,()=>{}),MZ.set(this,{}),g8.set(this,!1),k$.set(this,!1),y$.set(this,!1),kZ.set(this,!1),_$.set(this,void 0),f$.set(this,void 0),m8.set(this,void 0),b$.set(this,(X)=>{if(F(this,k$,!0,"f"),qZ(X))X=new n;if(X instanceof n)return F(this,y$,!0,"f"),this._emit("abort",X);if(X instanceof x)return this._emit("error",X);if(X instanceof Error){let J=new x(X.message);return J.cause=X,this._emit("error",J)}return this._emit("error",new x(String(X)))}),F(this,f8,new Promise((X,J)=>{F(this,R$,X,"f"),F(this,b8,J,"f")}),"f"),F(this,h8,new Promise((X,J)=>{F(this,I$,X,"f"),F(this,v8,J,"f")}),"f"),G(this,f8,"f").catch(()=>{}),G(this,h8,"f").catch(()=>{}),F(this,aZ,Z,"f"),F(this,m8,$?.logger??console,"f")}get response(){return G(this,_$,"f")}get request_id(){return G(this,f$,"f")}async withResponse(){F(this,kZ,!0,"f");let Z=await G(this,f8,"f");if(!Z)throw Error("Could not resolve a `Response` object");return{data:this,response:Z,request_id:Z.headers.get("request-id")}}static fromReadableStream(Z){let $=new c8(null);return $._run(()=>$._fromReadableStream(Z)),$}static createMessage(Z,$,X,{logger:J}={}){let z=new c8($,{logger:J});for(let Q of $.messages)z._addMessageParam(Q);return F(z,aZ,{...$,stream:!0},"f"),z._run(()=>z._createMessage(Z,{...$,stream:!0},{...X,headers:{...X?.headers,"X-Stainless-Helper-Method":"stream"}})),z}_run(Z){Z().then(()=>{this._emitFinal(),this._emit("end")},G(this,b$,"f"))}_addMessageParam(Z){this.messages.push(Z)}_addMessage(Z,$=!0){if(this.receivedMessages.push(Z),$)this._emit("message",Z)}async _createMessage(Z,$,X){let J=X?.signal,z;if(J){if(J.aborted)this.controller.abort();z=this.controller.abort.bind(this.controller),J.addEventListener("abort",z)}try{G(this,YZ,"m",i0).call(this);let{response:Q,data:Y}=await Z.create({...$,stream:!0},{...X,signal:this.controller.signal}).withResponse();this._connected(Q);for await(let K of Y)G(this,YZ,"m",n0).call(this,K);if(Y.controller.signal?.aborted)throw new n;G(this,YZ,"m",a0).call(this)}finally{if(J&&z)J.removeEventListener("abort",z)}}_connected(Z){if(this.ended)return;F(this,_$,Z,"f"),F(this,f$,Z?.headers.get("request-id"),"f"),G(this,R$,"f").call(this,Z),this._emit("connect")}get ended(){return G(this,g8,"f")}get errored(){return G(this,k$,"f")}get aborted(){return G(this,y$,"f")}abort(){this.controller.abort()}on(Z,$){return(G(this,MZ,"f")[Z]||(G(this,MZ,"f")[Z]=[])).push({listener:$}),this}off(Z,$){let X=G(this,MZ,"f")[Z];if(!X)return this;let J=X.findIndex((z)=>z.listener===$);if(J>=0)X.splice(J,1);return this}once(Z,$){return(G(this,MZ,"f")[Z]||(G(this,MZ,"f")[Z]=[])).push({listener:$,once:!0}),this}emitted(Z){return new Promise(($,X)=>{if(F(this,kZ,!0,"f"),Z!=="error")this.once("error",X);this.once(Z,$)})}async done(){F(this,kZ,!0,"f"),await G(this,h8,"f")}get currentMessage(){return G(this,TZ,"f")}async finalMessage(){return await this.done(),G(this,YZ,"m",p0).call(this)}async finalText(){return await this.done(),G(this,YZ,"m",l5).call(this)}_emit(Z,...$){if(G(this,g8,"f"))return;if(Z==="end")F(this,g8,!0,"f"),G(this,I$,"f").call(this);let X=G(this,MZ,"f")[Z];if(X)G(this,MZ,"f")[Z]=X.filter((J)=>!J.once),X.forEach(({listener:J})=>J(...$));if(Z==="abort"){let J=$[0];if(!G(this,kZ,"f")&&!X?.length)Promise.reject(J);G(this,b8,"f").call(this,J),G(this,v8,"f").call(this,J),this._emit("end");return}if(Z==="error"){let J=$[0];if(!G(this,kZ,"f")&&!X?.length)Promise.reject(J);G(this,b8,"f").call(this,J),G(this,v8,"f").call(this,J),this._emit("end")}}_emitFinal(){if(this.receivedMessages.at(-1))this._emit("finalMessage",G(this,YZ,"m",p0).call(this))}async _fromReadableStream(Z,$){let X=$?.signal,J;if(X){if(X.aborted)this.controller.abort();J=this.controller.abort.bind(this.controller),X.addEventListener("abort",J)}try{G(this,YZ,"m",i0).call(this),this._connected(null);let z=$Z.fromReadableStream(Z,this.controller);for await(let Q of z)G(this,YZ,"m",n0).call(this,Q);if(z.controller.signal?.aborted)throw new n;G(this,YZ,"m",a0).call(this)}finally{if(X&&J)X.removeEventListener("abort",J)}}[(TZ=new WeakMap,aZ=new WeakMap,f8=new WeakMap,R$=new WeakMap,b8=new WeakMap,h8=new WeakMap,I$=new WeakMap,v8=new WeakMap,MZ=new WeakMap,g8=new WeakMap,k$=new WeakMap,y$=new WeakMap,kZ=new WeakMap,_$=new WeakMap,f$=new WeakMap,m8=new WeakMap,b$=new WeakMap,YZ=new WeakSet,p0=function(){if(this.receivedMessages.length===0)throw new x("stream ended without producing a Message with role=assistant");return this.receivedMessages.at(-1)},l5=function(){if(this.receivedMessages.length===0)throw new x("stream ended without producing a Message with role=assistant");let $=this.receivedMessages.at(-1).content.filter((X)=>X.type==="text").map((X)=>X.text);if($.length===0)throw new x("stream ended without producing a content block with type=text");return $.join(" ")},i0=function(){if(this.ended)return;F(this,TZ,void 0,"f")},n0=function($){if(this.ended)return;let X=G(this,YZ,"m",p5).call(this,$);switch(this._emit("streamEvent",$,X),$.type){case"content_block_delta":{let J=X.content.at(-1);switch($.delta.type){case"text_delta":{if(J.type==="text")this._emit("text",$.delta.text,J.text||"");break}case"citations_delta":{if(J.type==="text")this._emit("citation",$.delta.citation,J.citations??[]);break}case"input_json_delta":{if(n5(J)&&J.input)this._emit("inputJson",$.delta.partial_json,J.input);break}case"thinking_delta":{if(J.type==="thinking")this._emit("thinking",$.delta.thinking,J.thinking);break}case"signature_delta":{if(J.type==="thinking")this._emit("signature",J.signature);break}case"compaction_delta":{if(J.type==="compaction"&&J.content)this._emit("compaction",J.content);break}default:a5($.delta)}break}case"message_stop":{this._addMessageParam(X),this._addMessage(m0(X,G(this,aZ,"f"),{logger:G(this,m8,"f")}),!0);break}case"content_block_stop":{this._emit("contentBlock",X.content.at(-1));break}case"message_start":{F(this,TZ,X,"f");break}case"content_block_start":case"message_delta":break}},a0=function(){if(this.ended)throw new x("stream has ended, this shouldn't happen");let $=G(this,TZ,"f");if(!$)throw new x("request ended without sending any chunks");return F(this,TZ,void 0,"f"),m0($,G(this,aZ,"f"),{logger:G(this,m8,"f")})},p5=function($){let X=G(this,TZ,"f");if($.type==="message_start"){if(X)throw new x(`Unexpected event order, got ${$.type} before receiving "message_stop"`);return $.message}if(!X)throw new x(`Unexpected event order, got ${$.type} before "message_start"`);switch($.type){case"message_stop":return X;case"message_delta":if(X.container=$.delta.container,X.stop_reason=$.delta.stop_reason,X.stop_sequence=$.delta.stop_sequence,X.usage.output_tokens=$.usage.output_tokens,X.context_management=$.context_management,$.usage.input_tokens!=null)X.usage.input_tokens=$.usage.input_tokens;if($.usage.cache_creation_input_tokens!=null)X.usage.cache_creation_input_tokens=$.usage.cache_creation_input_tokens;if($.usage.cache_read_input_tokens!=null)X.usage.cache_read_input_tokens=$.usage.cache_read_input_tokens;if($.usage.server_tool_use!=null)X.usage.server_tool_use=$.usage.server_tool_use;if($.usage.iterations!=null)X.usage.iterations=$.usage.iterations;return X;case"content_block_start":return X.content.push($.content_block),X;case"content_block_delta":{let J=X.content.at($.index);switch($.delta.type){case"text_delta":{if(J?.type==="text")X.content[$.index]={...J,text:(J.text||"")+$.delta.text};break}case"citations_delta":{if(J?.type==="text")X.content[$.index]={...J,citations:[...J.citations??[],$.delta.citation]};break}case"input_json_delta":{if(J&&n5(J)){let z=J[i5]||"";z+=$.delta.partial_json;let Q={...J};if(Object.defineProperty(Q,i5,{value:z,enumerable:!1,writable:!0}),z)try{Q.input=P$(z)}catch(Y){let K=new x(`Unable to parse tool parameter JSON from model. Please retry your request or adjust your prompt. Error: ${Y}. JSON: ${z}`);G(this,b$,"f").call(this,K)}X.content[$.index]=Q}break}case"thinking_delta":{if(J?.type==="thinking")X.content[$.index]={...J,thinking:J.thinking+$.delta.thinking};break}case"signature_delta":{if(J?.type==="thinking")X.content[$.index]={...J,signature:$.delta.signature};break}case"compaction_delta":{if(J?.type==="compaction")X.content[$.index]={...J,content:(J.content||"")+$.delta.content};break}default:a5($.delta)}return X}case"content_block_stop":return X}},Symbol.asyncIterator)](){let Z=[],$=[],X=!1;return this.on("streamEvent",(J)=>{let z=$.shift();if(z)z.resolve(J);else Z.push(J)}),this.on("end",()=>{X=!0;for(let J of $)J.resolve(void 0);$.length=0}),this.on("abort",(J)=>{X=!0;for(let z of $)z.reject(J);$.length=0}),this.on("error",(J)=>{X=!0;for(let z of $)z.reject(J);$.length=0}),{next:async()=>{if(!Z.length){if(X)return{value:void 0,done:!0};return new Promise((z,Q)=>$.push({resolve:z,reject:Q})).then((z)=>z?{value:z,done:!1}:{value:void 0,done:!0})}return{value:Z.shift(),done:!1}},return:async()=>{return this.abort(),{value:void 0,done:!0}}}}toReadableStream(){return new $Z(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}}});var rZ;var h$=M(()=>{rZ=class rZ extends Error{constructor(Z){let $=typeof Z==="string"?Z:Z.map((X)=>{if(X.type==="text")return X.text;return`[${X.type}]`}).join(" ");super($);this.name="ToolError",this.content=Z}}});var o5=1e5,t5=`You have been working on the task described above but have not yet completed it. Write a continuation summary that will allow you (or another instance of yourself) to resume work efficiently in a future context window where the conversation history will be replaced with this summary. Your summary should be structured, concise, and actionable. Include:
|
|
10
|
+
1. Task Overview
|
|
11
|
+
The user's core request and success criteria
|
|
12
|
+
Any clarifications or constraints they specified
|
|
13
|
+
2. Current State
|
|
14
|
+
What has been completed so far
|
|
15
|
+
Files created, modified, or analyzed (with paths if relevant)
|
|
16
|
+
Key outputs or artifacts produced
|
|
17
|
+
3. Important Discoveries
|
|
18
|
+
Technical constraints or requirements uncovered
|
|
19
|
+
Decisions made and their rationale
|
|
20
|
+
Errors encountered and how they were resolved
|
|
21
|
+
What approaches were tried that didn't work (and why)
|
|
22
|
+
4. Next Steps
|
|
23
|
+
Specific actions needed to complete the task
|
|
24
|
+
Any blockers or open questions to resolve
|
|
25
|
+
Priority order if multiple steps remain
|
|
26
|
+
5. Context to Preserve
|
|
27
|
+
User preferences or style requirements
|
|
28
|
+
Domain-specific details that aren't obvious
|
|
29
|
+
Any promises made to the user
|
|
30
|
+
Be concise but complete—err on the side of including information that would prevent duplicate work or repeated mistakes. Write in a way that enables immediate resumption of the task.
|
|
31
|
+
Wrap your summary in <summary></summary> tags.`;var s5=()=>{};function Z1(){let Z,$;return{promise:new Promise((J,z)=>{Z=J,$=z}),resolve:Z,reject:$}}async function B6(Z,$=Z.messages.at(-1),X){if(!$||$.role!=="assistant"||!$.content||typeof $.content==="string")return null;let J=$.content.filter((Q)=>Q.type==="tool_use");if(J.length===0)return null;return{role:"user",content:await Promise.all(J.map(async(Q)=>{let Y=Z.tools.find((K)=>("name"in K?K.name:K.mcp_server_name)===Q.name);if(!Y||!("run"in Y))return{type:"tool_result",tool_use_id:Q.id,content:`Error: Tool '${Q.name}' not found`,is_error:!0};try{let K=Q.input;if("parse"in Y&&Y.parse)K=Y.parse(K);let N=await Y.run(K,{toolUseBlock:Q,signal:X?.signal});return{type:"tool_result",tool_use_id:Q.id,content:N}}catch(K){return{type:"tool_result",tool_use_id:Q.id,content:K instanceof rZ?K.content:`Error: ${K instanceof Error?K.message:String(K)}`,is_error:!0}}}))}}var d8,oZ,yZ,i,s,JZ,CZ,BZ,u8,e5,r0,l8;var o0=M(()=>{UZ();h$();r();I();s5();A8();l8=class l8{constructor(Z,$,X){d8.add(this),this.client=Z,oZ.set(this,!1),yZ.set(this,!1),i.set(this,void 0),s.set(this,void 0),JZ.set(this,void 0),CZ.set(this,void 0),BZ.set(this,void 0),u8.set(this,0),F(this,i,{params:{...$,messages:structuredClone($.messages)}},"f");let z=["BetaToolRunner",...D0($.tools,$.messages)].join(", ");if(F(this,s,{...X,headers:W([{"x-stainless-helper":z},X?.headers])},"f"),F(this,BZ,Z1(),"f"),$.compactionControl?.enabled)console.warn('Anthropic: The `compactionControl` parameter is deprecated and will be removed in a future version. Use server-side compaction instead by passing `edits: [{ type: "compact_20260112" }]` in the params passed to `toolRunner()`. See https://platform.claude.com/docs/en/build-with-claude/compaction')}async*[(oZ=new WeakMap,yZ=new WeakMap,i=new WeakMap,s=new WeakMap,JZ=new WeakMap,CZ=new WeakMap,BZ=new WeakMap,u8=new WeakMap,d8=new WeakSet,e5=async function(){let $=G(this,i,"f").params.compactionControl;if(!$||!$.enabled)return!1;let X=0;if(G(this,JZ,"f")!==void 0)try{let N=await G(this,JZ,"f");X=N.usage.input_tokens+(N.usage.cache_creation_input_tokens??0)+(N.usage.cache_read_input_tokens??0)+N.usage.output_tokens}catch{return!1}let J=$.contextTokenThreshold??o5;if(X<J)return!1;let z=$.model??G(this,i,"f").params.model,Q=$.summaryPrompt??t5,Y=G(this,i,"f").params.messages;if(Y[Y.length-1].role==="assistant"){let N=Y[Y.length-1];if(Array.isArray(N.content)){let q=N.content.filter((C)=>C.type!=="tool_use");if(q.length===0)Y.pop();else N.content=q}}let K=await this.client.beta.messages.create({model:z,messages:[...Y,{role:"user",content:[{type:"text",text:Q}]}],max_tokens:G(this,i,"f").params.max_tokens},{signal:G(this,s,"f").signal,headers:W([G(this,s,"f").headers,{"x-stainless-helper":"compaction"}])});if(K.content[0]?.type!=="text")throw new x("Expected text response for compaction");return G(this,i,"f").params.messages=[{role:"user",content:K.content}],!0},Symbol.asyncIterator)](){var Z;if(G(this,oZ,"f"))throw new x("Cannot iterate over a consumed stream");F(this,oZ,!0,"f"),F(this,yZ,!0,"f"),F(this,CZ,void 0,"f");try{while(!0){let $;try{if(G(this,i,"f").params.max_iterations&&G(this,u8,"f")>=G(this,i,"f").params.max_iterations)break;F(this,yZ,!1,"f"),F(this,CZ,void 0,"f"),F(this,u8,(Z=G(this,u8,"f"),Z++,Z),"f"),F(this,JZ,void 0,"f");let{max_iterations:X,compactionControl:J,...z}=G(this,i,"f").params;if(z.stream)$=this.client.beta.messages.stream({...z},G(this,s,"f")),F(this,JZ,$.finalMessage(),"f"),G(this,JZ,"f").catch(()=>{}),yield $;else F(this,JZ,this.client.beta.messages.create({...z,stream:!1},G(this,s,"f")),"f"),yield G(this,JZ,"f");if(!await G(this,d8,"m",e5).call(this)){if(!G(this,yZ,"f")){let{role:K,content:N}=await G(this,JZ,"f");G(this,i,"f").params.messages.push({role:K,content:N})}let Y=await G(this,d8,"m",r0).call(this,G(this,i,"f").params.messages.at(-1));if(Y)G(this,i,"f").params.messages.push(Y);else if(!G(this,yZ,"f"))break}}finally{if($)$.abort()}}if(!G(this,JZ,"f"))throw new x("ToolRunner concluded without a message from the server");G(this,BZ,"f").resolve(await G(this,JZ,"f"))}catch($){throw F(this,oZ,!1,"f"),G(this,BZ,"f").promise.catch(()=>{}),G(this,BZ,"f").reject($),F(this,BZ,Z1(),"f"),$}}setMessagesParams(Z){if(typeof Z==="function")G(this,i,"f").params=Z(G(this,i,"f").params);else G(this,i,"f").params=Z;F(this,yZ,!0,"f"),F(this,CZ,void 0,"f")}setRequestOptions(Z){if(typeof Z==="function")F(this,s,Z(G(this,s,"f")),"f");else F(this,s,{...G(this,s,"f"),...Z},"f")}async generateToolResponse(Z=G(this,s,"f").signal){let $=await G(this,JZ,"f")??this.params.messages.at(-1);if(!$)return null;return G(this,d8,"m",r0).call(this,$,Z)}done(){return G(this,BZ,"f").promise}async runUntilDone(){if(!G(this,oZ,"f"))for await(let Z of this);return this.done()}get params(){return G(this,i,"f").params}pushMessages(...Z){this.setMessagesParams(($)=>({...$,messages:[...$.messages,...Z]}))}then(Z,$){return this.runUntilDone().then(Z,$)}};r0=async function($,X=G(this,s,"f").signal){if(G(this,CZ,"f")!==void 0)return G(this,CZ,"f");return F(this,CZ,B6(G(this,i,"f").params,$,{...G(this,s,"f"),signal:X}),"f"),G(this,CZ,"f")}});function X1(Z){if(!Z.output_format)return Z;if(Z.output_config?.format)throw new x("Both output_format and output_config.format were provided. Please use only output_config.format (output_format is deprecated).");let{output_format:$,...X}=Z;return{...X,output_config:{...Z.output_config,format:$}}}var $1,S6,SZ;var t0=M(()=>{pZ();v0();R();g0();I();A8();d0();r5();o0();h$();v0();o0();h$();$1={"claude-1.3":"November 6th, 2024","claude-1.3-100k":"November 6th, 2024","claude-instant-1.1":"November 6th, 2024","claude-instant-1.1-100k":"November 6th, 2024","claude-instant-1.2":"November 6th, 2024","claude-3-sonnet-20240229":"July 21st, 2025","claude-3-opus-20240229":"January 5th, 2026","claude-2.1":"July 21st, 2025","claude-2.0":"July 21st, 2025","claude-3-7-sonnet-latest":"February 19th, 2026","claude-3-7-sonnet-20250219":"February 19th, 2026"},S6=["claude-mythos-preview","claude-opus-4-6"];SZ=class SZ extends S{constructor(){super(...arguments);this.batches=new _8(this._client)}create(Z,$){let X=X1(Z),{betas:J,...z}=X;if(z.model in $1)console.warn(`The model '${z.model}' is deprecated and will reach end-of-life on ${$1[z.model]}
|
|
32
|
+
Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.`);if(S6.includes(z.model)&&z.thinking&&z.thinking.type==="enabled")console.warn(`Using Claude with ${z.model} and 'thinking.type=enabled' is deprecated. Use 'thinking.type=adaptive' instead which results in better model performance in our testing: https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking`);let Q=this._client._options.timeout;if(!z.stream&&Q==null){let K=j$[z.model]??void 0;Q=this._client.calculateNonstreamingTimeout(z.max_tokens,K)}let Y=D$(z.tools,z.messages);return this._client.post("/v1/messages?beta=true",{body:z,timeout:Q??600000,...$,headers:W([{...J?.toString()!=null?{"anthropic-beta":J?.toString()}:void 0},Y,$?.headers]),stream:X.stream??!1})}parse(Z,$){return $={...$,headers:W([{"anthropic-beta":[...Z.betas??[],"structured-outputs-2025-12-15"].toString()},$?.headers])},this.create(Z,$).then((X)=>c0(X,Z,{logger:this._client.logger??console}))}stream(Z,$){return c8.createMessage(this,Z,$)}countTokens(Z,$){let X=X1(Z),{betas:J,...z}=X;return this._client.post("/v1/messages/count_tokens?beta=true",{body:z,...$,headers:W([{"anthropic-beta":[...J??[],"token-counting-2024-11-01"].toString()},$?.headers])})}toolRunner(Z,$){return new l8(this._client,Z,$)}};SZ.Batches=_8;SZ.BetaToolRunner=l8;SZ.ToolError=rZ});var p8;var s0=M(()=>{R();_();I();h();p8=class p8 extends S{list(Z,$={},X){let{betas:J,...z}=$??{};return this._client.getAPIList(U`/v1/sessions/${Z}/events?beta=true`,L,{query:z,...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}send(Z,$,X){let{betas:J,...z}=$;return this._client.post(U`/v1/sessions/${Z}/events?beta=true`,{body:z,...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}stream(Z,$={},X){let{betas:J}=$??{};return this._client.get(U`/v1/sessions/${Z}/events/stream?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers]),stream:!0})}}});var i8;var e0=M(()=>{R();_();I();h();i8=class i8 extends S{retrieve(Z,$,X){let{session_id:J,betas:z}=$;return this._client.get(U`/v1/sessions/${J}/resources/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...z??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}update(Z,$,X){let{session_id:J,betas:z,...Q}=$;return this._client.post(U`/v1/sessions/${J}/resources/${Z}?beta=true`,{body:Q,...X,headers:W([{"anthropic-beta":[...z??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}list(Z,$={},X){let{betas:J,...z}=$??{};return this._client.getAPIList(U`/v1/sessions/${Z}/resources?beta=true`,L,{query:z,...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}delete(Z,$,X){let{session_id:J,betas:z}=$;return this._client.delete(U`/v1/sessions/${J}/resources/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...z??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}add(Z,$,X){let{betas:J,...z}=$;return this._client.post(U`/v1/sessions/${Z}/resources?beta=true`,{body:z,...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}}});var n8;var ZX=M(()=>{R();_();I();h();n8=class n8 extends S{list(Z,$,X){let{session_id:J,betas:z,...Q}=$;return this._client.getAPIList(U`/v1/sessions/${J}/threads/${Z}/events?beta=true`,L,{query:Q,...X,headers:W([{"anthropic-beta":[...z??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}stream(Z,$,X){let{session_id:J,betas:z}=$;return this._client.get(U`/v1/sessions/${J}/threads/${Z}/stream?beta=true`,{...X,headers:W([{"anthropic-beta":[...z??[],"managed-agents-2026-04-01"].toString()},X?.headers]),stream:!0})}}});var tZ;var $X=M(()=>{R();ZX();ZX();_();I();h();tZ=class tZ extends S{constructor(){super(...arguments);this.events=new n8(this._client)}retrieve(Z,$,X){let{session_id:J,betas:z}=$;return this._client.get(U`/v1/sessions/${J}/threads/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...z??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}list(Z,$={},X){let{betas:J,...z}=$??{};return this._client.getAPIList(U`/v1/sessions/${Z}/threads?beta=true`,L,{query:z,...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}archive(Z,$,X){let{session_id:J,betas:z}=$;return this._client.post(U`/v1/sessions/${J}/threads/${Z}/archive?beta=true`,{...X,headers:W([{"anthropic-beta":[...z??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}};tZ.Events=n8});var AZ;var XX=M(()=>{R();s0();s0();e0();e0();$X();$X();_();I();h();AZ=class AZ extends S{constructor(){super(...arguments);this.events=new p8(this._client),this.resources=new i8(this._client),this.threads=new tZ(this._client)}create(Z,$){let{betas:X,...J}=Z;return this._client.post("/v1/sessions?beta=true",{body:J,...$,headers:W([{"anthropic-beta":[...X??[],"managed-agents-2026-04-01"].toString()},$?.headers])})}retrieve(Z,$={},X){let{betas:J}=$??{};return this._client.get(U`/v1/sessions/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}update(Z,$,X){let{betas:J,...z}=$;return this._client.post(U`/v1/sessions/${Z}?beta=true`,{body:z,...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}list(Z={},$){let{betas:X,...J}=Z??{};return this._client.getAPIList("/v1/sessions?beta=true",L,{query:J,...$,headers:W([{"anthropic-beta":[...X??[],"managed-agents-2026-04-01"].toString()},$?.headers])})}delete(Z,$={},X){let{betas:J}=$??{};return this._client.delete(U`/v1/sessions/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}archive(Z,$={},X){let{betas:J}=$??{};return this._client.post(U`/v1/sessions/${Z}/archive?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}};AZ.Events=p8;AZ.Resources=i8;AZ.Threads=tZ});var a8;var JX=M(()=>{R();_();I();uZ();h();a8=class a8 extends S{create(Z,$={},X){let{betas:J,...z}=$??{};return this._client.post(U`/v1/skills/${Z}/versions?beta=true`,dZ({body:z,...X,headers:W([{"anthropic-beta":[...J??[],"skills-2025-10-02"].toString()},X?.headers])},this._client))}retrieve(Z,$,X){let{skill_id:J,betas:z}=$;return this._client.get(U`/v1/skills/${J}/versions/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...z??[],"skills-2025-10-02"].toString()},X?.headers])})}list(Z,$={},X){let{betas:J,...z}=$??{};return this._client.getAPIList(U`/v1/skills/${Z}/versions?beta=true`,L,{query:z,...X,headers:W([{"anthropic-beta":[...J??[],"skills-2025-10-02"].toString()},X?.headers])})}delete(Z,$,X){let{skill_id:J,betas:z}=$;return this._client.delete(U`/v1/skills/${J}/versions/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...z??[],"skills-2025-10-02"].toString()},X?.headers])})}}});var sZ;var zX=M(()=>{R();JX();JX();_();I();uZ();h();sZ=class sZ extends S{constructor(){super(...arguments);this.versions=new a8(this._client)}create(Z={},$){let{betas:X,...J}=Z??{};return this._client.post("/v1/skills?beta=true",dZ({body:J,...$,headers:W([{"anthropic-beta":[...X??[],"skills-2025-10-02"].toString()},$?.headers])},this._client,!1))}retrieve(Z,$={},X){let{betas:J}=$??{};return this._client.get(U`/v1/skills/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"skills-2025-10-02"].toString()},X?.headers])})}list(Z={},$){let{betas:X,...J}=Z??{};return this._client.getAPIList("/v1/skills?beta=true",L,{query:J,...$,headers:W([{"anthropic-beta":[...X??[],"skills-2025-10-02"].toString()},$?.headers])})}delete(Z,$={},X){let{betas:J}=$??{};return this._client.delete(U`/v1/skills/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"skills-2025-10-02"].toString()},X?.headers])})}};sZ.Versions=a8});var r8;var QX=M(()=>{R();_();I();h();r8=class r8 extends S{create(Z,$,X){let{betas:J,...z}=$;return this._client.post(U`/v1/vaults/${Z}/credentials?beta=true`,{body:z,...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}retrieve(Z,$,X){let{vault_id:J,betas:z}=$;return this._client.get(U`/v1/vaults/${J}/credentials/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...z??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}update(Z,$,X){let{vault_id:J,betas:z,...Q}=$;return this._client.post(U`/v1/vaults/${J}/credentials/${Z}?beta=true`,{body:Q,...X,headers:W([{"anthropic-beta":[...z??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}list(Z,$={},X){let{betas:J,...z}=$??{};return this._client.getAPIList(U`/v1/vaults/${Z}/credentials?beta=true`,L,{query:z,...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}delete(Z,$,X){let{vault_id:J,betas:z}=$;return this._client.delete(U`/v1/vaults/${J}/credentials/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...z??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}archive(Z,$,X){let{vault_id:J,betas:z}=$;return this._client.post(U`/v1/vaults/${J}/credentials/${Z}/archive?beta=true`,{...X,headers:W([{"anthropic-beta":[...z??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}mcpOAuthValidate(Z,$,X){let{vault_id:J,betas:z}=$;return this._client.post(U`/v1/vaults/${J}/credentials/${Z}/mcp_oauth_validate?beta=true`,{...X,headers:W([{"anthropic-beta":[...z??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}}});var eZ;var KX=M(()=>{R();QX();QX();_();I();h();eZ=class eZ extends S{constructor(){super(...arguments);this.credentials=new r8(this._client)}create(Z,$){let{betas:X,...J}=Z;return this._client.post("/v1/vaults?beta=true",{body:J,...$,headers:W([{"anthropic-beta":[...X??[],"managed-agents-2026-04-01"].toString()},$?.headers])})}retrieve(Z,$={},X){let{betas:J}=$??{};return this._client.get(U`/v1/vaults/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}update(Z,$,X){let{betas:J,...z}=$;return this._client.post(U`/v1/vaults/${Z}?beta=true`,{body:z,...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}list(Z={},$){let{betas:X,...J}=Z??{};return this._client.getAPIList("/v1/vaults?beta=true",L,{query:J,...$,headers:W([{"anthropic-beta":[...X??[],"managed-agents-2026-04-01"].toString()},$?.headers])})}delete(Z,$={},X){let{betas:J}=$??{};return this._client.delete(U`/v1/vaults/${Z}?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}archive(Z,$={},X){let{betas:J}=$??{};return this._client.post(U`/v1/vaults/${Z}/archive?beta=true`,{...X,headers:W([{"anthropic-beta":[...J??[],"managed-agents-2026-04-01"].toString()},X?.headers])})}};eZ.Credentials=r8});var a;var YX=M(()=>{R();A0();A0();L0();L0();E0();E0();j0();j0();I0();I0();y0();y0();b0();b0();t0();t0();XX();XX();zX();zX();KX();KX();a=class a extends S{constructor(){super(...arguments);this.models=new L8(this._client),this.messages=new SZ(this._client),this.agents=new lZ(this._client),this.environments=new B8(this._client),this.sessions=new AZ(this._client),this.vaults=new eZ(this._client),this.memoryStores=new IZ(this._client),this.files=new D8(this._client),this.skills=new sZ(this._client),this.webhooks=new R8(this._client),this.userProfiles=new E8(this._client)}};a.Models=L8;a.Messages=SZ;a.Agents=lZ;a.Environments=B8;a.Sessions=AZ;a.Vaults=eZ;a.MemoryStores=IZ;a.Files=D8;a.Skills=sZ;a.Webhooks=R8;a.UserProfiles=E8});var Z8;var GX=M(()=>{R();I();Z8=class Z8 extends S{create(Z,$){let{betas:X,...J}=Z;return this._client.post("/v1/complete",{body:J,timeout:this._client._options.timeout??600000,...$,headers:W([{...X?.toString()!=null?{"anthropic-beta":X?.toString()}:void 0},$?.headers]),stream:Z.stream??!1})}}});function J1(Z){return Z?.output_config?.format}function wX(Z,$,X){let J=J1($);if(!$||!("parse"in(J??{})))return{...Z,content:Z.content.map((z)=>{if(z.type==="text")return Object.defineProperty({...z},"parsed_output",{value:null,enumerable:!1});return z}),parsed_output:null};return WX(Z,$,X)}function WX(Z,$,X){let J=null,z=Z.content.map((Q)=>{if(Q.type==="text"){let Y=_6($,Q.text);if(J===null)J=Y;return Object.defineProperty({...Q},"parsed_output",{value:Y,enumerable:!1})}return Q});return{...Z,content:z,parsed_output:J}}function _6(Z,$){let X=J1(Z);if(X?.type!=="json_schema")return null;try{if("parse"in X)return X.parse($);return JSON.parse($)}catch(J){throw new x(`Failed to parse structured output: ${J}`)}}var VX=M(()=>{r()});function Y1(Z){return Z.type==="tool_use"||Z.type==="server_tool_use"}function G1(Z){}var GZ,DZ,$8,o8,v$,t8,s8,g$,e8,FZ,Z$,m$,c$,_Z,d$,u$,$$,NX,z1,UX,qX,OX,MX,Q1,K1="__json_buf",X$;var w1=M(()=>{UZ();hZ();pZ();l0();u0();VX();X$=class X${constructor(Z,$){GZ.add(this),this.messages=[],this.receivedMessages=[],DZ.set(this,void 0),$8.set(this,null),this.controller=new AbortController,o8.set(this,void 0),v$.set(this,()=>{}),t8.set(this,()=>{}),s8.set(this,void 0),g$.set(this,()=>{}),e8.set(this,()=>{}),FZ.set(this,{}),Z$.set(this,!1),m$.set(this,!1),c$.set(this,!1),_Z.set(this,!1),d$.set(this,void 0),u$.set(this,void 0),$$.set(this,void 0),UX.set(this,(X)=>{if(F(this,m$,!0,"f"),qZ(X))X=new n;if(X instanceof n)return F(this,c$,!0,"f"),this._emit("abort",X);if(X instanceof x)return this._emit("error",X);if(X instanceof Error){let J=new x(X.message);return J.cause=X,this._emit("error",J)}return this._emit("error",new x(String(X)))}),F(this,o8,new Promise((X,J)=>{F(this,v$,X,"f"),F(this,t8,J,"f")}),"f"),F(this,s8,new Promise((X,J)=>{F(this,g$,X,"f"),F(this,e8,J,"f")}),"f"),G(this,o8,"f").catch(()=>{}),G(this,s8,"f").catch(()=>{}),F(this,$8,Z,"f"),F(this,$$,$?.logger??console,"f")}get response(){return G(this,d$,"f")}get request_id(){return G(this,u$,"f")}async withResponse(){F(this,_Z,!0,"f");let Z=await G(this,o8,"f");if(!Z)throw Error("Could not resolve a `Response` object");return{data:this,response:Z,request_id:Z.headers.get("request-id")}}static fromReadableStream(Z){let $=new X$(null);return $._run(()=>$._fromReadableStream(Z)),$}static createMessage(Z,$,X,{logger:J}={}){let z=new X$($,{logger:J});for(let Q of $.messages)z._addMessageParam(Q);return F(z,$8,{...$,stream:!0},"f"),z._run(()=>z._createMessage(Z,{...$,stream:!0},{...X,headers:{...X?.headers,"X-Stainless-Helper-Method":"stream"}})),z}_run(Z){Z().then(()=>{this._emitFinal(),this._emit("end")},G(this,UX,"f"))}_addMessageParam(Z){this.messages.push(Z)}_addMessage(Z,$=!0){if(this.receivedMessages.push(Z),$)this._emit("message",Z)}async _createMessage(Z,$,X){let J=X?.signal,z;if(J){if(J.aborted)this.controller.abort();z=this.controller.abort.bind(this.controller),J.addEventListener("abort",z)}try{G(this,GZ,"m",qX).call(this);let{response:Q,data:Y}=await Z.create({...$,stream:!0},{...X,signal:this.controller.signal}).withResponse();this._connected(Q);for await(let K of Y)G(this,GZ,"m",OX).call(this,K);if(Y.controller.signal?.aborted)throw new n;G(this,GZ,"m",MX).call(this)}finally{if(J&&z)J.removeEventListener("abort",z)}}_connected(Z){if(this.ended)return;F(this,d$,Z,"f"),F(this,u$,Z?.headers.get("request-id"),"f"),G(this,v$,"f").call(this,Z),this._emit("connect")}get ended(){return G(this,Z$,"f")}get errored(){return G(this,m$,"f")}get aborted(){return G(this,c$,"f")}abort(){this.controller.abort()}on(Z,$){return(G(this,FZ,"f")[Z]||(G(this,FZ,"f")[Z]=[])).push({listener:$}),this}off(Z,$){let X=G(this,FZ,"f")[Z];if(!X)return this;let J=X.findIndex((z)=>z.listener===$);if(J>=0)X.splice(J,1);return this}once(Z,$){return(G(this,FZ,"f")[Z]||(G(this,FZ,"f")[Z]=[])).push({listener:$,once:!0}),this}emitted(Z){return new Promise(($,X)=>{if(F(this,_Z,!0,"f"),Z!=="error")this.once("error",X);this.once(Z,$)})}async done(){F(this,_Z,!0,"f"),await G(this,s8,"f")}get currentMessage(){return G(this,DZ,"f")}async finalMessage(){return await this.done(),G(this,GZ,"m",NX).call(this)}async finalText(){return await this.done(),G(this,GZ,"m",z1).call(this)}_emit(Z,...$){if(G(this,Z$,"f"))return;if(Z==="end")F(this,Z$,!0,"f"),G(this,g$,"f").call(this);let X=G(this,FZ,"f")[Z];if(X)G(this,FZ,"f")[Z]=X.filter((J)=>!J.once),X.forEach(({listener:J})=>J(...$));if(Z==="abort"){let J=$[0];if(!G(this,_Z,"f")&&!X?.length)Promise.reject(J);G(this,t8,"f").call(this,J),G(this,e8,"f").call(this,J),this._emit("end");return}if(Z==="error"){let J=$[0];if(!G(this,_Z,"f")&&!X?.length)Promise.reject(J);G(this,t8,"f").call(this,J),G(this,e8,"f").call(this,J),this._emit("end")}}_emitFinal(){if(this.receivedMessages.at(-1))this._emit("finalMessage",G(this,GZ,"m",NX).call(this))}async _fromReadableStream(Z,$){let X=$?.signal,J;if(X){if(X.aborted)this.controller.abort();J=this.controller.abort.bind(this.controller),X.addEventListener("abort",J)}try{G(this,GZ,"m",qX).call(this),this._connected(null);let z=$Z.fromReadableStream(Z,this.controller);for await(let Q of z)G(this,GZ,"m",OX).call(this,Q);if(z.controller.signal?.aborted)throw new n;G(this,GZ,"m",MX).call(this)}finally{if(X&&J)X.removeEventListener("abort",J)}}[(DZ=new WeakMap,$8=new WeakMap,o8=new WeakMap,v$=new WeakMap,t8=new WeakMap,s8=new WeakMap,g$=new WeakMap,e8=new WeakMap,FZ=new WeakMap,Z$=new WeakMap,m$=new WeakMap,c$=new WeakMap,_Z=new WeakMap,d$=new WeakMap,u$=new WeakMap,$$=new WeakMap,UX=new WeakMap,GZ=new WeakSet,NX=function(){if(this.receivedMessages.length===0)throw new x("stream ended without producing a Message with role=assistant");return this.receivedMessages.at(-1)},z1=function(){if(this.receivedMessages.length===0)throw new x("stream ended without producing a Message with role=assistant");let $=this.receivedMessages.at(-1).content.filter((X)=>X.type==="text").map((X)=>X.text);if($.length===0)throw new x("stream ended without producing a content block with type=text");return $.join(" ")},qX=function(){if(this.ended)return;F(this,DZ,void 0,"f")},OX=function($){if(this.ended)return;let X=G(this,GZ,"m",Q1).call(this,$);switch(this._emit("streamEvent",$,X),$.type){case"content_block_delta":{let J=X.content.at(-1);switch($.delta.type){case"text_delta":{if(J.type==="text")this._emit("text",$.delta.text,J.text||"");break}case"citations_delta":{if(J.type==="text")this._emit("citation",$.delta.citation,J.citations??[]);break}case"input_json_delta":{if(Y1(J)&&J.input)this._emit("inputJson",$.delta.partial_json,J.input);break}case"thinking_delta":{if(J.type==="thinking")this._emit("thinking",$.delta.thinking,J.thinking);break}case"signature_delta":{if(J.type==="thinking")this._emit("signature",J.signature);break}default:G1($.delta)}break}case"message_stop":{this._addMessageParam(X),this._addMessage(wX(X,G(this,$8,"f"),{logger:G(this,$$,"f")}),!0);break}case"content_block_stop":{this._emit("contentBlock",X.content.at(-1));break}case"message_start":{F(this,DZ,X,"f");break}case"content_block_start":case"message_delta":break}},MX=function(){if(this.ended)throw new x("stream has ended, this shouldn't happen");let $=G(this,DZ,"f");if(!$)throw new x("request ended without sending any chunks");return F(this,DZ,void 0,"f"),wX($,G(this,$8,"f"),{logger:G(this,$$,"f")})},Q1=function($){let X=G(this,DZ,"f");if($.type==="message_start"){if(X)throw new x(`Unexpected event order, got ${$.type} before receiving "message_stop"`);return $.message}if(!X)throw new x(`Unexpected event order, got ${$.type} before "message_start"`);switch($.type){case"message_stop":return X;case"message_delta":if(X.stop_reason=$.delta.stop_reason,X.stop_sequence=$.delta.stop_sequence,X.usage.output_tokens=$.usage.output_tokens,$.usage.input_tokens!=null)X.usage.input_tokens=$.usage.input_tokens;if($.usage.cache_creation_input_tokens!=null)X.usage.cache_creation_input_tokens=$.usage.cache_creation_input_tokens;if($.usage.cache_read_input_tokens!=null)X.usage.cache_read_input_tokens=$.usage.cache_read_input_tokens;if($.usage.server_tool_use!=null)X.usage.server_tool_use=$.usage.server_tool_use;return X;case"content_block_start":return X.content.push({...$.content_block}),X;case"content_block_delta":{let J=X.content.at($.index);switch($.delta.type){case"text_delta":{if(J?.type==="text")X.content[$.index]={...J,text:(J.text||"")+$.delta.text};break}case"citations_delta":{if(J?.type==="text")X.content[$.index]={...J,citations:[...J.citations??[],$.delta.citation]};break}case"input_json_delta":{if(J&&Y1(J)){let z=J[K1]||"";z+=$.delta.partial_json;let Q={...J};if(Object.defineProperty(Q,K1,{value:z,enumerable:!1,writable:!0}),z)Q.input=P$(z);X.content[$.index]=Q}break}case"thinking_delta":{if(J?.type==="thinking")X.content[$.index]={...J,thinking:J.thinking+$.delta.thinking};break}case"signature_delta":{if(J?.type==="thinking")X.content[$.index]={...J,signature:$.delta.signature};break}default:G1($.delta)}return X}case"content_block_stop":return X}},Symbol.asyncIterator)](){let Z=[],$=[],X=!1;return this.on("streamEvent",(J)=>{let z=$.shift();if(z)z.resolve(J);else Z.push(J)}),this.on("end",()=>{X=!0;for(let J of $)J.resolve(void 0);$.length=0}),this.on("abort",(J)=>{X=!0;for(let z of $)z.reject(J);$.length=0}),this.on("error",(J)=>{X=!0;for(let z of $)z.reject(J);$.length=0}),{next:async()=>{if(!Z.length){if(X)return{value:void 0,done:!0};return new Promise((z,Q)=>$.push({resolve:z,reject:Q})).then((z)=>z?{value:z,done:!1}:{value:void 0,done:!0})}return{value:Z.shift(),done:!1}},return:async()=>{return this.abort(),{value:void 0,done:!0}}}}toReadableStream(){return new $Z(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}}});var J$;var CX=M(()=>{R();_();I();h0();pZ();h();J$=class J$ extends S{create(Z,$){return this._client.post("/v1/messages/batches",{body:Z,...$})}retrieve(Z,$){return this._client.get(U`/v1/messages/batches/${Z}`,$)}list(Z={},$){return this._client.getAPIList("/v1/messages/batches",WZ,{query:Z,...$})}delete(Z,$){return this._client.delete(U`/v1/messages/batches/${Z}`,$)}cancel(Z,$){return this._client.post(U`/v1/messages/batches/${Z}/cancel`,$)}async results(Z,$){let X=await this.retrieve(Z);if(!X.results_url)throw new x(`No batch \`results_url\`; Has it finished processing? ${X.processing_status} - ${X.id}`);return this._client.get(X.results_url,{...$,headers:W([{Accept:"application/binary"},$?.headers]),stream:!0,__binaryResponse:!0})._thenUnwrap((J,z)=>iZ.fromResponse(z.response,z.controller))}}});var fZ,W1,b6;var FX=M(()=>{R();I();A8();w1();VX();CX();CX();g0();fZ=class fZ extends S{constructor(){super(...arguments);this.batches=new J$(this._client)}create(Z,$){if(Z.model in W1)console.warn(`The model '${Z.model}' is deprecated and will reach end-of-life on ${W1[Z.model]}
|
|
33
|
+
Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.`);if(b6.includes(Z.model)&&Z.thinking&&Z.thinking.type==="enabled")console.warn(`Using Claude with ${Z.model} and 'thinking.type=enabled' is deprecated. Use 'thinking.type=adaptive' instead which results in better model performance in our testing: https://platform.claude.com/docs/en/build-with-claude/adaptive-thinking`);let X=this._client._options.timeout;if(!Z.stream&&X==null){let z=j$[Z.model]??void 0;X=this._client.calculateNonstreamingTimeout(Z.max_tokens,z)}let J=D$(Z.tools,Z.messages);return this._client.post("/v1/messages",{body:Z,timeout:X??600000,...$,headers:W([J,$?.headers]),stream:Z.stream??!1})}parse(Z,$){return this.create(Z,$).then((X)=>WX(X,Z,{logger:this._client.logger??console}))}stream(Z,$){return X$.createMessage(this,Z,$,{logger:this._client.logger??console})}countTokens(Z,$){return this._client.post("/v1/messages/count_tokens",{body:Z,...$})}};W1={"claude-1.3":"November 6th, 2024","claude-1.3-100k":"November 6th, 2024","claude-instant-1.1":"November 6th, 2024","claude-instant-1.1-100k":"November 6th, 2024","claude-instant-1.2":"November 6th, 2024","claude-3-sonnet-20240229":"July 21st, 2025","claude-3-opus-20240229":"January 5th, 2026","claude-2.1":"July 21st, 2025","claude-2.0":"July 21st, 2025","claude-3-7-sonnet-latest":"February 19th, 2026","claude-3-7-sonnet-20250219":"February 19th, 2026","claude-3-5-haiku-latest":"February 19th, 2026","claude-3-5-haiku-20241022":"February 19th, 2026","claude-opus-4-0":"June 15th, 2026","claude-opus-4-20250514":"June 15th, 2026","claude-sonnet-4-0":"June 15th, 2026","claude-sonnet-4-20250514":"June 15th, 2026"},b6=["claude-mythos-preview","claude-opus-4-6"];fZ.Batches=J$});var X8;var xX=M(()=>{R();_();I();h();X8=class X8 extends S{retrieve(Z,$={},X){let{betas:J}=$??{};return this._client.get(U`/v1/models/${Z}`,{...X,headers:W([{...J?.toString()!=null?{"anthropic-beta":J?.toString()}:void 0},X?.headers])})}list(Z={},$){let{betas:X,...J}=Z??{};return this._client.getAPIList("/v1/models",WZ,{query:J,...$,headers:W([{...X?.toString()!=null?{"anthropic-beta":X?.toString()}:void 0},$?.headers])})}}});var V1=M(()=>{YX();GX();FX();xX();S5()});class v{get credentials(){return this._authState.provider}constructor({baseURL:Z=E("ANTHROPIC_BASE_URL"),apiKey:$,authToken:X,webhookKey:J=E("ANTHROPIC_WEBHOOK_SIGNING_KEY")??null,...z}={}){if(HX.add(this),this._requestAuthFlags=new WeakMap,l$.set(this,void 0),$===void 0)$=z.profile!=null?null:E("ANTHROPIC_API_KEY")??null;if(X===void 0)X=z.profile!=null?null:E("ANTHROPIC_AUTH_TOKEN")??null;if(z.profile!=null&&(z.credentials!=null||z.config!=null))throw TypeError("Pass at most one of `profile`, `credentials`, or `config`.");let Q={apiKey:$,authToken:X,webhookKey:J,...z,baseURL:Z||"https://api.anthropic.com"};if(!Q.dangerouslyAllowBrowser&&IX())throw new x(`It looks like you're running in a browser-like environment.
|
|
34
|
+
|
|
35
|
+
This is disabled by default, as it risks exposing your secret API credentials to attackers.
|
|
36
|
+
If you understand the risks and have appropriate mitigations in place,
|
|
37
|
+
you can set the \`dangerouslyAllowBrowser\` option to \`true\`, e.g.,
|
|
38
|
+
|
|
39
|
+
new Anthropic({ apiKey, dangerouslyAllowBrowser: true });
|
|
40
|
+
`);this.baseURL=Q.baseURL,this._baseURLIsExplicit=z.__baseURLIsExplicit??!!Z,this.timeout=Q.timeout??TX.DEFAULT_TIMEOUT,this.logger=Q.logger??console;let Y="warn";this.logLevel=Y,this.logLevel=w0(Q.logLevel,"ClientOptions.logLevel",this)??w0(E("ANTHROPIC_LOG"),"process.env['ANTHROPIC_LOG']",this)??Y,this.fetchOptions=Q.fetchOptions,this.maxRetries=Q.maxRetries??2,this.fetch=Q.fetch??kX(),F(this,l$,_X,"f");let K=E("ANTHROPIC_CUSTOM_HEADERS");if(K){let q={};for(let C of K.split(`
|
|
41
|
+
`)){let V=C.indexOf(":");if(V>=0)q[C.substring(0,V).trim()]=C.substring(V+1).trim()}Q.defaultHeaders={...q,...Q.defaultHeaders}}let N=z.__auth;if(delete Q.__auth,delete Q.__baseURLIsExplicit,this._options=Q,this.apiKey=typeof $==="string"?$:null,this.authToken=X,this.webhookKey=J,N){if(this._authState=N,!this._baseURLIsExplicit&&N.baseURL)this.baseURL=N.baseURL}else if(this._authState={provider:null,tokenCache:null,resolution:null,error:null,extraHeaders:{}},this.apiKey==null&&this.authToken==null){let q=Q.credentials??null;if(q)this._authState.provider=q,this._authState.tokenCache=this._makeTokenCache(q);else if(Q.config!=null){let C=U0(Q.config,this._credentialResolverOptions());this._authState.provider=C.provider,this._authState.tokenCache=this._makeTokenCache(C.provider),this._authState.extraHeaders=C.extraHeaders,this._applyCredentialBaseURL(C.baseURL)}else if(Q.profile!=null)this._authState.resolution=this._resolveDefaultCredentials(Q.profile);else this._authState.resolution=this._resolveDefaultCredentials()}}_applyCredentialBaseURL(Z){if(!Z)return;let $=Z.replace(/\/+$/,"");if(this._authState.baseURL=$,!this._baseURLIsExplicit)this.baseURL=$}_credentialResolverOptions(){return{baseURL:this.baseURL,fetch:this.fetch,userAgent:this.getUserAgent(),onCacheWriteError:(Z)=>{m(this).debug("credential cache write failed (best-effort)",Z)},onSafetyWarning:(Z)=>{m(this).warn(Z)}}}_makeTokenCache(Z){return new Y0(Z,($)=>{m(this).debug("advisory token refresh failed; serving cached token",$)})}withOptions(Z){let $="credentials"in Z||"config"in Z||"profile"in Z,X="apiKey"in Z||"authToken"in Z||$,J={...this._options,...this._baseURLIsExplicit?{baseURL:this.baseURL}:{},maxRetries:this.maxRetries,timeout:this.timeout,logger:this.logger,logLevel:this.logLevel,fetch:this.fetch,fetchOptions:this.fetchOptions,apiKey:this.apiKey,authToken:this.authToken,webhookKey:this.webhookKey,credentials:this.credentials,...$?{credentials:void 0,config:void 0,profile:void 0}:{},...Z,__auth:X?void 0:this._authState,__baseURLIsExplicit:"baseURL"in Z?!0:this._baseURLIsExplicit};return new this.constructor(J)}async _resolveDefaultCredentials(Z){try{let $=await M5(this._credentialResolverOptions(),Z);if($)this._authState.provider=$.provider,this._authState.tokenCache=this._makeTokenCache($.provider),this._authState.extraHeaders=$.extraHeaders,this._applyCredentialBaseURL($.baseURL);else if(Z!=null)throw new x(`Profile "${Z}" could not be resolved (no <config_dir>/configs/${Z}.json found).`)}catch($){this._authState.error=$}finally{this._authState.resolution=null}}defaultQuery(){return this._options.defaultQuery}validateHeaders({values:Z,nulls:$}){if(Z.get("x-api-key")||Z.get("authorization"))return;if(this._authState.error)throw this._authState.error;if(this._authState.tokenCache||this._authState.resolution)return;if(this.apiKey&&Z.get("x-api-key"))return;if($.has("x-api-key"))return;if(this.authToken&&Z.get("authorization"))return;if($.has("authorization"))return;throw Error('Could not resolve authentication method. Expected one of apiKey, authToken, credentials, config, or profile to be set. Or for one of the "X-Api-Key" or "Authorization" headers to be explicitly omitted')}_authFlags(Z){let $=this._requestAuthFlags.get(Z);if(!$)$={usedTokenCache:!1,didRefreshFor401:!1},this._requestAuthFlags.set(Z,$);return $}async authHeaders(Z){if(this._authState.resolution)await this._authState.resolution;if(this._authState.error)return;if(this._authState.tokenCache&&this.apiKey==null){let $=await this._authState.tokenCache.getToken();return this._authFlags(Z).usedTokenCache=!0,W([{Authorization:`Bearer ${$}`}])}return W([await this.apiKeyAuth(Z),await this.bearerAuth(Z)])}async apiKeyAuth(Z){if(this.apiKey==null)return;return W([{"X-Api-Key":this.apiKey}])}async bearerAuth(Z){if(this.authToken==null)return;return W([{Authorization:`Bearer ${this.authToken}`}])}stringifyQuery(Z){return iX(Z)}getUserAgent(){return`${this.constructor.name}/JS ${QZ}`}defaultIdempotencyKey(){return`stainless-node-retry-${i$()}`}makeStatusError(Z,$,X,J){return l.generate(Z,$,X,J)}buildURL(Z,$,X){let J=!G(this,HX,"m",N1).call(this)&&X||this.baseURL,z=AX(Z)?new URL(Z):new URL(J+(J.endsWith("/")&&Z.startsWith("/")?Z.slice(1):Z)),Q=this.defaultQuery(),Y=Object.fromEntries(z.searchParams);if(!r$(Q)||!r$(Y))$={...Y,...Q,...$};if(typeof $==="object"&&$&&!Array.isArray($))z.search=this.stringifyQuery($);return z.toString()}_calculateNonstreamingTimeout(Z){if(3600*Z/128000>600)throw new x("Streaming is required for operations that may take longer than 10 minutes. See https://github.com/anthropics/anthropic-sdk-typescript#streaming-responses for more details");return 600000}async prepareOptions(Z){}async prepareRequest(Z,{url:$,options:X}){if(this._authState.tokenCache&&this.apiKey==null){let J=Z.headers instanceof Headers?Z.headers:new Headers(Z.headers);for(let[Q,Y]of Object.entries(this._authState.extraHeaders))if(!J.has(Q))J.set(Q,Y);if(!J.get("anthropic-beta")?.split(",").map((Q)=>Q.trim())?.includes(jZ))J.append("anthropic-beta",jZ);Z.headers=J}}get(Z,$){return this.methodRequest("get",Z,$)}post(Z,$){return this.methodRequest("post",Z,$)}patch(Z,$){return this.methodRequest("patch",Z,$)}put(Z,$){return this.methodRequest("put",Z,$)}delete(Z,$){return this.methodRequest("delete",Z,$)}methodRequest(Z,$,X){return this.request(Promise.resolve(X).then((J)=>{return{method:Z,path:$,...J}}))}request(Z,$=null){return new PZ(this,this.makeRequest(Z,$,void 0))}async makeRequest(Z,$,X){let J=await Z,z=J.maxRetries??this.maxRetries;if($==null)$=z,this._requestAuthFlags.delete(J);await this.prepareOptions(J);let{req:Q,url:Y,timeout:K}=await this.buildRequest(J,{retryCount:z-$});await this.prepareRequest(Q,{url:Y,options:J});let N="log_"+(Math.random()*16777216|0).toString(16).padStart(6,"0"),q=X===void 0?"":`, retryOf: ${X}`,C=Date.now();if(m(this).debug(`[${N}] sending request`,OZ({retryOfRequestLogID:X,method:J.method,url:Y,options:J,headers:Q.headers})),J.signal?.aborted)throw new n;let V=new AbortController,w=await this.fetchWithTimeout(Y,Q,K,V).catch(J8),O=Date.now();if(w instanceof globalThis.Error){let B=`retrying, ${$} attempts remaining`;if(J.signal?.aborted)throw new n;let A=qZ(w)||/timed? ?out/i.test(String(w)+("cause"in w?String(w.cause):""));if($)return m(this).info(`[${N}] connection ${A?"timed out":"failed"} - ${B}`),m(this).debug(`[${N}] connection ${A?"timed out":"failed"} (${B})`,OZ({retryOfRequestLogID:X,url:Y,durationMs:O-C,message:w.message})),this.retryRequest(J,$,X??N);if(m(this).info(`[${N}] connection ${A?"timed out":"failed"} - error; no more retries left`),m(this).debug(`[${N}] connection ${A?"timed out":"failed"} (error; no more retries left)`,OZ({retryOfRequestLogID:X,url:Y,durationMs:O-C,message:w.message})),A)throw new z8;throw new EZ({cause:w})}let H=[...w.headers.entries()].filter(([B])=>B==="request-id").map(([B,A])=>", "+B+": "+JSON.stringify(A)).join(""),D=`[${N}${q}${H}] ${Q.method} ${Y} ${w.ok?"succeeded":"failed"} with status ${w.status} in ${O-C}ms`;if(!w.ok){let B=await this.shouldRetry(w,J);if($&&B){let u=`retrying, ${$} attempts remaining`;return await yX(w.body),m(this).info(`${D} - ${u}`),m(this).debug(`[${N}] response error (${u})`,OZ({retryOfRequestLogID:X,url:w.url,status:w.status,headers:w.headers,durationMs:O-C})),this.retryRequest(J,$,X??N,w.headers)}let A=B?"error; no more retries left":"error; not retryable";m(this).info(`${D} - ${A}`);let T=await w.text().catch((u)=>J8(u).message),f=Q$(T),k=f?void 0:T;throw m(this).debug(`[${N}] response error (${A})`,OZ({retryOfRequestLogID:X,url:w.url,status:w.status,headers:w.headers,message:k,durationMs:Date.now()-C})),this.makeStatusError(w.status,f,k,w.headers)}return m(this).info(D),m(this).debug(`[${N}] response start`,OZ({retryOfRequestLogID:X,url:w.url,status:w.status,headers:w.headers,durationMs:O-C})),{response:w,options:J,controller:V,requestLogID:N,retryOfRequestLogID:X,startTime:C}}getAPIList(Z,$,X){return this.requestAPIList($,X&&"then"in X?X.then((J)=>({method:"get",path:Z,...J})):{method:"get",path:Z,...X})}requestAPIList(Z,$){let X=this.makeRequest($,null,void 0);return new B$(this,X,Z)}async fetchWithTimeout(Z,$,X,J){let{signal:z,method:Q,...Y}=$||{},K=this._makeAbort(J);if(z)z.addEventListener("abort",K,{once:!0});let N=setTimeout(K,X),q=globalThis.ReadableStream&&Y.body instanceof globalThis.ReadableStream||typeof Y.body==="object"&&Y.body!==null&&Symbol.asyncIterator in Y.body,C={signal:J.signal,...q?{duplex:"half"}:{},method:"GET",...Y};if(Q)C.method=Q.toUpperCase();try{return await this.fetch.call(void 0,Z,C)}finally{clearTimeout(N)}}async shouldRetry(Z,$){let X=this._authFlags($);if(Z.status===401&&this._authState.tokenCache&&X.usedTokenCache&&!X.didRefreshFor401)return X.didRefreshFor401=!0,this._authState.tokenCache.invalidate(),!0;let J=Z.headers.get("x-should-retry");if(J==="true")return!0;if(J==="false")return!1;if(Z.status===408)return!0;if(Z.status===409)return!0;if(Z.status===429)return!0;if(Z.status>=500)return!0;return!1}async retryRequest(Z,$,X,J){let z,Q=J?.get("retry-after-ms");if(Q){let K=parseFloat(Q);if(!Number.isNaN(K))z=K}let Y=J?.get("retry-after");if(Y&&!z){let K=parseFloat(Y);if(!Number.isNaN(K))z=K*1000;else z=Date.parse(Y)-Date.now()}if(z===void 0){let K=Z.maxRetries??this.maxRetries;z=this.calculateDefaultRetryTimeoutMillis($,K)}return await EX(z),this.makeRequest(Z,$-1,X)}calculateDefaultRetryTimeoutMillis(Z,$){let z=$-Z,Q=Math.min(0.5*Math.pow(2,z),8),Y=1-Math.random()*0.25;return Q*Y*1000}calculateNonstreamingTimeout(Z,$){if(3600000*Z/128000>600000||$!=null&&Z>$)throw new x("Streaming is required for operations that may take longer than 10 minutes. See https://github.com/anthropics/anthropic-sdk-typescript#long-requests for more details");return 600000}async buildRequest(Z,{retryCount:$=0}={}){let X={...Z},{method:J,path:z,query:Q,defaultBaseURL:Y}=X;if(this._authState.resolution)await this._authState.resolution;if(!this._baseURLIsExplicit&&this._authState.baseURL&&this.baseURL!==this._authState.baseURL)this.baseURL=this._authState.baseURL;let K=this.buildURL(z,Q,Y);if("timeout"in X)LX("timeout",X.timeout);X.timeout=X.timeout??this.timeout;let{bodyHeaders:N,body:q}=this.buildBody({options:X}),C=await this.buildHeaders({options:Z,method:J,bodyHeaders:N,retryCount:$});return{req:{method:J,headers:C,...X.signal&&{signal:X.signal},...globalThis.ReadableStream&&q instanceof globalThis.ReadableStream&&{duplex:"half"},...q&&{body:q},...this.fetchOptions??{},...X.fetchOptions??{}},url:K,timeout:X.timeout}}async buildHeaders({options:Z,method:$,bodyHeaders:X,retryCount:J}){let z={};if(this.idempotencyHeader&&$!=="get"){if(!Z.idempotencyKey)Z.idempotencyKey=this.defaultIdempotencyKey();z[this.idempotencyHeader]=Z.idempotencyKey}let Q=W([z,{Accept:"application/json","User-Agent":this.getUserAgent(),"X-Stainless-Retry-Count":String(J),...Z.timeout?{"X-Stainless-Timeout":String(Math.trunc(Z.timeout/1000))}:{},...q8(),...this._options.dangerouslyAllowBrowser?{"anthropic-dangerous-direct-browser-access":"true"}:void 0,"anthropic-version":"2023-06-01"},await this.authHeaders(Z),this._options.defaultHeaders,X,Z.headers]);return this.validateHeaders(Q),Q.values}_makeAbort(Z){return()=>Z.abort()}buildBody({options:{body:Z,headers:$}}){if(!Z)return{bodyHeaders:void 0,body:void 0};let X=W([$]);if(ArrayBuffer.isView(Z)||Z instanceof ArrayBuffer||Z instanceof DataView||typeof Z==="string"&&X.values.has("content-type")||globalThis.Blob&&Z instanceof globalThis.Blob||Z instanceof FormData||Z instanceof URLSearchParams||globalThis.ReadableStream&&Z instanceof globalThis.ReadableStream)return{bodyHeaders:void 0,body:Z};else if(typeof Z==="object"&&((Symbol.asyncIterator in Z)||(Symbol.iterator in Z)&&("next"in Z)&&typeof Z.next==="function"))return{bodyHeaders:void 0,body:Y$(Z)};else if(typeof Z==="object"&&X.values.get("content-type")==="application/x-www-form-urlencoded")return{bodyHeaders:{"content-type":"application/x-www-form-urlencoded"},body:this.stringifyQuery(Z)};else return G(this,l$,"f").call(this,{body:Z,headers:X})}}var HX,TX,l$,N1,U1="\\n\\nHuman:",q1="\\n\\nAssistant:",bZ;var BX=M(()=>{UZ();n$();VZ();o$();hZ();K$();vZ();fX();Q0();U8();r();mZ();eX();C5();_();S0();V1();H$();GX();xX();YX();FX();K$();I();q$();F8();VZ();TX=v,l$=new WeakMap,HX=new WeakSet,N1=function(){return this.baseURL!=="https://api.anthropic.com"};v.Anthropic=TX;v.HUMAN_PROMPT=U1;v.AI_PROMPT=q1;v.DEFAULT_TIMEOUT=600000;v.AnthropicError=x;v.APIError=l;v.APIConnectionError=EZ;v.APIConnectionTimeoutError=z8;v.APIUserAbortError=n;v.NotFoundError=G8;v.ConflictError=w8;v.RateLimitError=V8;v.BadRequestError=Q8;v.AuthenticationError=K8;v.InternalServerError=N8;v.PermissionDeniedError=Y8;v.UnprocessableEntityError=W8;v.toFile=S$;bZ=class bZ extends v{constructor(){super(...arguments);this.completions=new Z8(this),this.messages=new fZ(this),this.models=new X8(this),this.beta=new a(this)}};bZ.Completions=Z8;bZ.Messages=fZ;bZ.Models=X8;bZ.Beta=a});var O1=M(()=>{BX();S0();H$();BX();_();r()});function _2(Z){return Z instanceof M1||Z instanceof n||Z instanceof Error&&Z.name==="AbortError"}function f2(Z,$){return Z instanceof Error&&Z.message===$}function b2(Z){return Z instanceof Error?Z:Error(String(Z))}function l6(Z){return Z instanceof Error?Z.message:String(Z)}function C1(Z){if(Z&&typeof Z==="object"&&"code"in Z&&typeof Z.code==="string")return Z.code;return}function h2(Z){return C1(Z)==="ENOENT"}function v2(Z){if(Z&&typeof Z==="object"&&"path"in Z&&typeof Z.path==="string")return Z.path;return}function g2(Z,$=5){if(!(Z instanceof Error))return String(Z);if(!Z.stack)return Z.message;let X=Z.stack.split(`
|
|
42
|
+
`),J=X[0]??Z.message,z=X.slice(1).filter((Q)=>Q.trim().startsWith("at "));if(z.length<=$)return Z.stack;return[J,...z.slice(0,$)].join(`
|
|
43
|
+
`)}function m2(Z){let $=C1(Z);return $==="ENOENT"||$==="EACCES"||$==="EPERM"||$==="ENOTDIR"||$==="ELOOP"}function c2(Z){let $=l6(Z);if(!Z||typeof Z!=="object"||!("isAxiosError"in Z)||!Z.isAxiosError)return{kind:"other",message:$};let X=Z,J=X.response?.status;if(J===401||J===403)return{kind:"auth",status:J,message:$};if(X.code==="ECONNABORTED")return{kind:"timeout",status:J,message:$};if(X.code==="ECONNREFUSED"||X.code==="ENOTFOUND")return{kind:"network",status:J,message:$};return{kind:"http",status:J,message:$}}var v6,g6,M1,m6,c6,d6,u6;var p6=M(()=>{O1();v6=class v6 extends Error{constructor(Z,$){super(Z,$);this.name=this.constructor.name}};g6=class g6 extends Error{};M1=class M1 extends Error{constructor(Z){super(Z);this.name="AbortError"}};m6=class m6 extends Error{filePath;defaultConfig;constructor(Z,$,X){super(Z);this.name="ConfigParseError",this.filePath=$,this.defaultConfig=X}};c6=class c6 extends Error{stdout;stderr;code;interrupted;constructor(Z,$,X,J){super("Shell command failed");this.stdout=Z;this.stderr=$;this.code=X;this.interrupted=J;this.name="ShellError"}};d6=class d6 extends Error{formattedMessage;constructor(Z,$){super(Z);this.formattedMessage=$;this.name="TeleportOperationError"}};u6=class u6 extends Error{telemetryMessage;constructor(Z,$){super(Z);this.name="TelemetrySafeError",this.telemetryMessage=$??Z}}});
|
|
44
|
+
export{l as yfa,n as zfa,EZ as Afa,z8 as Bfa,K8 as Cfa,G8 as Dfa,pZ as Efa,bZ as Ffa,O1 as Gfa,v6 as Hfa,g6 as Ifa,M1 as Jfa,_2 as Kfa,m6 as Lfa,c6 as Mfa,d6 as Nfa,u6 as Ofa,f2 as Pfa,b2 as Qfa,l6 as Rfa,C1 as Sfa,h2 as Tfa,v2 as Ufa,g2 as Vfa,m2 as Wfa,c2 as Xfa,p6 as Yfa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function t(s){if(s===null||typeof s!=="object")return s;let e=s;if("requestId"in e&&!("request_id"in e))e.request_id=e.requestId,delete e.requestId;if("response"in e&&e.response!==null&&typeof e.response==="object"){let n=e.response;if("requestId"in n&&!("request_id"in n))n.request_id=n.requestId,delete n.requestId}return s}
|
|
2
|
+
export{t as Wa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{AW as Z,BW as D,eW as T,fW as X,gW as I,iW as Y,jW as p,zW as v}from"./cli-0.5.8-nwe7yne9.mjs";import{XY as P,ZY as V}from"./cli-0.5.8-zkn5gecs.mjs";import{_Y as H}from"./cli-0.5.8-6epmns99.mjs";import{Jla as F,Yia as W}from"./cli-0.5.8-bhc8vwxd.mjs";import{vna as A,zna as C}from"./cli-0.5.8-hkfwdsmy.mjs";function B({children:_,ref:$,stickyScroll:g,...K}){let E=J.useRef(null),[,w]=J.useState(0),L=J.useRef(new Set),N=J.useRef(!1),U=()=>{for(let q of L.current)q()};function O(q){if(W(),T(q),Y(),U(),N.current)return;N.current=!0,queueMicrotask(()=>{N.current=!1,X(q)})}return J.useImperativeHandle($,()=>({scrollTo(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor=void 0,z.scrollTop=Math.max(0,Math.floor(q)),O(z)},scrollToElement(q,z=0){let G=E.current;if(!G)return;G.stickyScroll=!1,G.pendingScrollDelta=void 0,G.scrollAnchor={el:q,offset:z},O(G)},scrollBy(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.scrollAnchor=void 0,z.pendingScrollDelta=(z.pendingScrollDelta??0)+Math.floor(q),O(z)},scrollToBottom(){let q=E.current;if(!q)return;q.pendingScrollDelta=void 0,q.stickyScroll=!0,T(q),U(),w((z)=>z+1)},getScrollTop(){return E.current?.scrollTop??0},getPendingDelta(){return E.current?.pendingScrollDelta??0},getScrollHeight(){return E.current?.scrollHeight??0},getFreshScrollHeight(){return E.current?.childNodes[0]?.yogaNode?.getComputedHeight()??E.current?.scrollHeight??0},getViewportHeight(){return E.current?.scrollViewportHeight??0},getViewportTop(){return E.current?.scrollViewportTop??0},isSticky(){let q=E.current;if(!q)return!1;return q.stickyScroll??Boolean(q.attributes.stickyScroll)},subscribe(q){return L.current.add(q),()=>L.current.delete(q)},setClampBounds(q,z){let G=E.current;if(!G)return;G.scrollClampMin=q,G.scrollClampMax=z}}),[]),P("ink-box",{ref:(q)=>{if(E.current=q,q)q.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:K.flexDirection??"row",flexGrow:K.flexGrow??0,flexShrink:K.flexShrink??1,...K,overflowX:"scroll",overflowY:"scroll"},...g?{stickyScroll:!0}:{},children:P(Z,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:_})})}var J,u;var M=C(()=>{F();I();p();v();D();V();J=A(H(),1);u=B});
|
|
2
|
+
export{u as eh,M as fh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{cZ as K,eZ as Z}from"./cli-0.5.8-1gm5vdye.mjs";import{fZ as J,hZ as Y}from"./cli-0.5.8-he3sfaey.mjs";import{C3 as X,c3 as D,h3 as F,i3 as G,j0 as B,o0 as W}from"./cli-0.5.8-rddkqxh8.mjs";import{kea as y,lea as Q}from"./cli-0.5.8-qdnr3r07.mjs";import{Ama as V,ima as z}from"./cli-0.5.8-fmyr9f7x.mjs";import{zna as N}from"./cli-0.5.8-hkfwdsmy.mjs";async function P(){if(!F()||!G())return{};let w=D();if(w&&B(w.expiresAt))return null;let q=K();if(q.error)throw Error(`Auth error: ${q.error}`);let L={"Content-Type":"application/json","User-Agent":J(),...q.headers},M=`${y().BASE_API_URL}/api/oauth/usage`;return(await z.get(M,{headers:L,timeout:5000})).data}var _=N(()=>{V();Q();X();Z();Y();W()});
|
|
2
|
+
export{P as qh,_ as rh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{yna as n,zna as o}from"./cli-0.5.8-hkfwdsmy.mjs";var p={};n(p,{stripProtoFields:()=>e,logEventAsync:()=>c,logEvent:()=>i,attachAnalyticsSink:()=>r,_resetForTesting:()=>s});function e(t){return t}function r(){}function i(){}async function c(){}function s(){}var u=()=>{};
|
|
2
|
+
export{i as mea,p as nea,u as oea};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Paa as $,Qaa as y,o6 as Z,q6 as f,vba as B,yba as K}from"./cli-0.5.8-qf19nfhv.mjs";import{ega as Y,mga as E}from"./cli-0.5.8-gm4jqzfs.mjs";import{Ana as x,zna as N}from"./cli-0.5.8-hkfwdsmy.mjs";import{existsSync as S}from"node:fs";import{homedir as F}from"node:os";import{join as X}from"node:path";function _(){if(Y())return;try{return $().read()?.gemini?.accessToken?.trim()||void 0}catch{return}}function J(b){let w=b?.trim();return w?w:void 0}function V(b=process.env){return J(b.GOOGLE_CLOUD_PROJECT)??J(b.GCLOUD_PROJECT)??J(b.GOOGLE_PROJECT_ID)}function D(b=process.env){let w=J(b.GEMINI_AUTH_MODE)?.toLowerCase();if(w==="api-key"||w==="access-token"||w==="adc")return w;return}function P(b=process.env){let w=J(b.GOOGLE_APPLICATION_CREDENTIALS),q=new Set;if(w)q.add(w);q.add(X(F(),".config","gcloud","application_default_credentials.json"));let O=J(b.APPDATA);if(O)q.add(X(O,"gcloud","application_default_credentials.json"));return[...q]}function k(b=process.env){return P(b).some((w)=>S(w))}function G(b){if(typeof b==="string")return J(b);return J(b?.token)}async function A(){let{GoogleAuth:b}=await import("google-auth-library");return new b({scopes:[z]})}async function L(b,w){if(!k(b))return{kind:"none"};try{let q=await(w.createGoogleAuth??A)(),O=await q.getClient(),R=G(await O.getAccessToken());if(!R)return{kind:"none"};let Q=V(b)??(typeof q.getProjectId==="function"?J(await q.getProjectId().catch(()=>{return})):void 0);return{kind:"adc",credential:R,...Q?{projectId:Q}:{}}}catch{return{kind:"none"}}}async function s(b=process.env,w={}){let q=D(b),O=B(),R=O?.transport==="gemini"?J(O.apiKey):void 0,U=q==="access-token"||q==="adc"?void 0:R;if(U&&(q===void 0||q==="api-key"))return{kind:"api-key",credential:U};let Q=q==="api-key"||q==="adc"?void 0:J(_());if(Q&&(q===void 0||q==="access-token")){let W=V(b);return{kind:"access-token",credential:Q,...W?{projectId:W}:{}}}if(q==="api-key"||q==="access-token")return{kind:"none"};if(w.createGoogleAuth)return L(b,w);return T(J(b.GOOGLE_APPLICATION_CREDENTIALS),J(b.APPDATA),F(),V(b))}var z="https://www.googleapis.com/auth/cloud-platform",C=300000,T;var g=N(()=>{K();E();f();y();T=Z(async(b,w,q,O)=>L({GOOGLE_APPLICATION_CREDENTIALS:b,APPDATA:w,GOOGLE_CLOUD_PROJECT:O,GCLOUD_PROJECT:O,GOOGLE_PROJECT_ID:O,HOME:q},{}),C)});
|
|
2
|
+
export{D as yh,s as zh,g as Ah};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Kba as B,Sba as N,X$ as A,paa as L}from"./cli-0.5.8-qf19nfhv.mjs";import{ofa as z,rfa as K}from"./cli-0.5.8-xs1gy1tk.mjs";import{yna as I,zna as J}from"./cli-0.5.8-hkfwdsmy.mjs";var V={};I(V,{setCliTeammateModeOverride:()=>P,getTeammateModeFromSnapshot:()=>U,getCliTeammateModeOverride:()=>Q,clearCliTeammateModeOverride:()=>R,captureTeammateModeSnapshot:()=>H});function P(x){y=x}function Q(){return y}function R(x){y=null,q=x,z(`[TeammateModeSnapshot] CLI override cleared, new mode: ${x}`)}function H(){if(y)q=y,z(`[TeammateModeSnapshot] Captured from CLI override: ${q}`);else q=A().teammateMode??"auto",z(`[TeammateModeSnapshot] Captured from config: ${q}`)}function U(){if(q===null)B(Error("getTeammateModeFromSnapshot called before capture - this indicates an initialization bug")),H();return q??"auto"}var q=null,y=null;var W=J(()=>{L();K();N()});
|
|
2
|
+
export{P as uR,Q as vR,R as wR,H as xR,U as yR,V as zR,W as AR};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Tfa as G,Yfa as X}from"./cli-0.5.8-959n5v33.mjs";import{$fa as z,mga as W}from"./cli-0.5.8-gm4jqzfs.mjs";W();X();import{readFileSync as Y}from"node:fs";import{mkdir as Z,writeFile as Q}from"node:fs/promises";import{join as $}from"node:path";var k="latest-version.json";function R(){return $(z(),k)}function B(x){if(!x||typeof x!=="object")return!1;let q=x;return typeof q.latest==="string"&&q.latest.length>0&&typeof q.current==="string"&&q.current.length>0&&typeof q.checkedAt==="number"&&Number.isFinite(q.checkedAt)}function V(){try{let x=Y(R(),"utf8"),q=JSON.parse(x);return B(q)?q:null}catch(x){if(G(x))return null;return null}}async function _(x){let q=R(),J=JSON.stringify(x);try{await Q(q,J,"utf8")}catch(K){if(G(K)){await Z(z(),{recursive:!0}),await Q(q,J,"utf8");return}throw K}}
|
|
2
|
+
export{V as ga,_ as ha};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{X$ as P,paa as y}from"./cli-0.5.8-qf19nfhv.mjs";import{zna as U}from"./cli-0.5.8-hkfwdsmy.mjs";var j,D,G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T,w,L,O,X,$,e;var W=U(()=>{j=["common","uncommon","rare","epic","legendary"],D=String.fromCharCode,G=D(100,117,99,107),M=D(103,111,111,115,101),N=D(98,108,111,98),Y=D(99,97,116),C=D(100,114,97,103,111,110),_=D(111,99,116,111,112,117,115),R=D(111,119,108),f=D(112,101,110,103,117,105,110),E=D(116,117,114,116,108,101),I=D(115,110,97,105,108),k=D(103,104,111,115,116),A=D(97,120,111,108,111,116,108),b=D(99,97,112,121,98,97,114,97),h=D(99,97,99,116,117,115),m=D(114,111,98,111,116),p=D(114,97,98,98,105,116),u=D(109,117,115,104,114,111,111,109),T=D(99,104,111,110,107),w=[G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T],L=["·","✦","×","◉","@","°"],O=["none","crown","tophat","propeller","halo","wizard","beanie","tinyduck"],X=["DEBUGGING","PATIENCE","CHAOS","WISDOM","SNARK"],$={common:60,uncommon:25,rare:10,epic:4,legendary:1},e={common:"inactive",uncommon:"success",rare:"permission",epic:"autoAccept",legendary:"warning"}});function v(q){let z=q>>>0;return function(){z|=0,z=z+1831565813|0;let B=Math.imul(z^z>>>15,1|z);return B=B+Math.imul(B^B>>>7,61|B)^B,((B^B>>>14)>>>0)/4294967296}}function F(q){if(typeof Bun<"u")return Number(BigInt(Bun.hash(q))&0xffffffffn);let z=2166136261;for(let B=0;B<q.length;B++)z^=q.charCodeAt(B),z=Math.imul(z,16777619);return z>>>0}function K(q,z){return z[Math.floor(q()*z.length)]}function S(q){let z=Object.values($).reduce((J,Q)=>J+Q,0),B=q()*z;for(let J of j)if(B-=$[J],B<0)return J;return"common"}function i(q,z){let B=d[z],J=K(q,X),Q=K(q,X);while(Q===J)Q=K(q,X);let Z={};for(let V of X)if(V===J)Z[V]=Math.min(100,B+50+Math.floor(q()*30));else if(V===Q)Z[V]=Math.max(1,B-10+Math.floor(q()*15));else Z[V]=B+Math.floor(q()*40);return Z}function H(q){let z=S(q);return{bones:{rarity:z,species:K(q,w),eye:K(q,L),hat:z==="common"?"none":K(q,O),shiny:q()<0.01,stats:i(q,z)},inspirationSeed:Math.floor(q()*1e9)}}function l(q){let z=q+c;if(x?.key===z)return x.value;let B=H(v(F(z)));return x={key:z,value:B},B}function a(q){return H(v(F(q)))}function s(){let q=P();return q.oauthAccount?.accountUuid??q.userID??"anon"}function r(){let q=P().companion;if(!q)return;let{bones:z}=l(s());return{...q,...z}}var d,c="friend-2026-401",x;var g=U(()=>{y();W();d={common:5,uncommon:15,rare:25,epic:35,legendary:50}});
|
|
2
|
+
export{G as ZS,M as _S,N as $S,Y as aT,C as bT,_ as cT,R as dT,f as eT,E as fT,I as gT,k as hT,A as iT,b as jT,h as kT,m as lT,p as mT,u as nT,T as oT,e as pT,W as qT,a as rT,s as sT,r as tT,g as uT};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$la as h8,Kla as _Q,Lla as JJ,Mla as v,Nla as I1,Ola as Y5,Pla as N8,Qla as q,Rla as y,Sla as S,Tla as kQ,Ula as L,Vla as a,Wla as n5,Xla as t8,Yla as R5,Zla as C8,_la as E,ama as P,bma as x1,cma as d,dma as xQ,ema as o,fma as UQ,gma as l5,hma as xY}from"./cli-0.5.8-8h4z9e0a.mjs";import{yna as aQ,zna as X}from"./cli-0.5.8-hkfwdsmy.mjs";function h$(){this.__data__=new v,this.size=0}var QQ;var $Q=X(()=>{I1();QQ=h$});function j$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var JQ;var YQ=X(()=>{JQ=j$});function n$(Q){return this.__data__.get(Q)}var ZQ;var XQ=X(()=>{ZQ=n$});function b$(Q){return this.__data__.has(Q)}var HQ;var WQ=X(()=>{HQ=b$});function u$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<i$-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 i$=200,KQ;var BQ=X(()=>{I1();xQ();UQ();KQ=u$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var C1=X(()=>{I1();$Q();YQ();XQ();WQ();BQ();g.prototype.clear=QQ;g.prototype.delete=JQ;g.prototype.get=ZQ;g.prototype.has=HQ;g.prototype.set=KQ;p=g});function l$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",GQ;var NQ=X(()=>{GQ=l$});function c$(Q){return this.__data__.has(Q)}var wQ;var zQ=X(()=>{wQ=c$});function r(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new o;while(++J<Y)this.add(Q[J])}var FQ;var RQ=X(()=>{UQ();NQ();zQ();r.prototype.add=r.prototype.push=GQ;r.prototype.has=wQ;FQ=r});function o$(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 qQ;var DQ=X(()=>{qQ=o$});function r$(Q,J){return Q.has(J)}var OQ;var VQ=X(()=>{OQ=r$});function t$(Q,J,Y,Z,H,W){var x=Y&s$,U=Q.length,G=J.length;if(U!=G&&!(x&&G>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&a$?new FQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],D=J[z];if(Z)var f=x?Z(D,R,z,J,Q,W):Z(R,D,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!qQ(J,function(C,_){if(!OQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===D||H(R,D,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var s$=1,a$=2,s;var _1=X(()=>{RQ();DQ();VQ();s=t$});var e$,k1;var MQ=X(()=>{y();e$=q.Uint8Array,k1=e$});function QJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var LQ;var fQ=X(()=>{LQ=QJ});function $J(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var PQ;var IQ=X(()=>{PQ=$J});function FJ(Q,J,Y,Z,H,W,x){switch(Y){case zJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case wJ:if(Q.byteLength!=J.byteLength||!W(new k1(Q),new k1(J)))return!1;return!0;case XJ:case HJ:case UJ:return _Q(+Q,+J);case WJ:return Q.name==J.name&&Q.message==J.message;case KJ:case GJ:return Q==J+"";case xJ:var U=LQ;case BJ:var G=Z&YJ;if(U||(U=PQ),Q.size!=J.size&&!G)return!1;var K=x.get(Q);if(K)return K==J;Z|=ZJ,x.set(Q,J);var F=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case NJ:if(E1)return E1.call(Q)==E1.call(J)}return!1}var YJ=1,ZJ=2,XJ="[object Boolean]",HJ="[object Date]",WJ="[object Error]",xJ="[object Map]",UJ="[object Number]",KJ="[object RegExp]",BJ="[object Set]",GJ="[object String]",NJ="[object Symbol]",wJ="[object ArrayBuffer]",zJ="[object DataView]",CQ,E1,EQ;var vQ=X(()=>{kQ();MQ();JJ();_1();fQ();IQ();CQ=S?S.prototype:void 0,E1=CQ?CQ.valueOf:void 0;EQ=FJ});function RJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var dQ;var gQ=X(()=>{dQ=RJ});var qJ,w;var M=X(()=>{qJ=Array.isArray,w=qJ});function DJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:dQ(Z,Y(Q))}var pQ;var yQ=X(()=>{gQ();M();pQ=DJ});function OJ(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 SQ;var mQ=X(()=>{SQ=OJ});function VJ(){return[]}var AQ;var hQ=X(()=>{AQ=VJ});var MJ,LJ,jQ,fJ,nQ;var bQ=X(()=>{mQ();hQ();MJ=Object.prototype,LJ=MJ.propertyIsEnumerable,jQ=Object.getOwnPropertySymbols,fJ=!jQ?AQ:function(Q){if(Q==null)return[];return Q=Object(Q),SQ(jQ(Q),function(J){return LJ.call(Q,J)})},nQ=fJ});function PJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var iQ;var uQ=X(()=>{iQ=PJ});function IJ(Q){return Q!=null&&typeof Q=="object"}var O;var m=X(()=>{O=IJ});function _J(Q){return O(Q)&&L(Q)==CJ}var CJ="[object Arguments]",v1;var TQ=X(()=>{a();m();v1=_J});var lQ,kJ,EJ,vJ,t;var d1=X(()=>{TQ();m();lQ=Object.prototype,kJ=lQ.hasOwnProperty,EJ=lQ.propertyIsEnumerable,vJ=v1(function(){return arguments}())?v1:function(Q){return O(Q)&&kJ.call(Q,"callee")&&!EJ.call(Q,"callee")},t=vJ});function dJ(){return!1}var cQ;var oQ=X(()=>{cQ=dJ});var Q1={};aQ(Q1,{default:()=>A});var tQ,rQ,gJ,sQ,pJ,yJ,A;var g1=X(()=>{y();oQ();tQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,rQ=tQ&&typeof e=="object"&&e&&!e.nodeType&&e,gJ=rQ&&rQ.exports===tQ,sQ=gJ?q.Buffer:void 0,pJ=sQ?sQ.isBuffer:void 0,yJ=pJ||cQ,A=yJ});function AJ(Q,J){var Y=typeof Q;return J=J==null?SJ:J,!!J&&(Y=="number"||Y!="symbol"&&mJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var SJ=9007199254740991,mJ,$1;var p1=X(()=>{mJ=/^(?:0|[1-9]\d*)$/;$1=AJ});function jJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=hJ}var hJ=9007199254740991,h;var J1=X(()=>{h=jJ});function B8(Q){return O(Q)&&h(Q.length)&&!!B[L(Q)]}var nJ="[object Arguments]",bJ="[object Array]",iJ="[object Boolean]",uJ="[object Date]",TJ="[object Error]",lJ="[object Function]",cJ="[object Map]",oJ="[object Number]",rJ="[object Object]",sJ="[object RegExp]",aJ="[object Set]",tJ="[object String]",eJ="[object WeakMap]",Q8="[object ArrayBuffer]",$8="[object DataView]",J8="[object Float32Array]",Y8="[object Float64Array]",Z8="[object Int8Array]",X8="[object Int16Array]",H8="[object Int32Array]",W8="[object Uint8Array]",x8="[object Uint8ClampedArray]",U8="[object Uint16Array]",K8="[object Uint32Array]",B,eQ;var Q5=X(()=>{a();J1();m();B={};B[J8]=B[Y8]=B[Z8]=B[X8]=B[H8]=B[W8]=B[x8]=B[U8]=B[K8]=!0;B[nJ]=B[bJ]=B[Q8]=B[iJ]=B[$8]=B[uJ]=B[TJ]=B[lJ]=B[cJ]=B[oJ]=B[rJ]=B[sJ]=B[aJ]=B[tJ]=B[eJ]=!1;eQ=B8});function G8(Q){return function(J){return Q(J)}}var $5;var J5=X(()=>{$5=G8});var Z1={};aQ(Z1,{default:()=>X1});var Z5,i,w8,y1,z8,X1;var X5=X(()=>{N8();Z5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Z5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,w8=i&&i.exports===Z5,y1=w8&&Y5.process,z8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return y1&&y1.binding&&y1.binding("util")}catch(J){}}(),X1=z8});var H5,F8,H1;var S1=X(()=>{Q5();J5();X5();H5=X1&&X1.isTypedArray,F8=H5?$5(H5):eQ,H1=F8});function D8(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?iQ(Q.length,String):[],G=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,G))))U.push(K);return U}var R8,q8,W5;var x5=X(()=>{uQ();d1();M();g1();p1();S1();R8=Object.prototype,q8=R8.hasOwnProperty;W5=D8});function V8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||O8;return Q===Y}var O8,U5;var K5=X(()=>{O8=Object.prototype;U5=V8});function M8(Q,J){return function(Y){return Q(J(Y))}}var B5;var G5=X(()=>{B5=M8});var L8,N5;var w5=X(()=>{G5();L8=B5(Object.keys,Object),N5=L8});function I8(Q){if(!U5(Q))return N5(Q);var J=[];for(var Y in Object(Q))if(P8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var f8,P8,z5;var F5=X(()=>{K5();w5();f8=Object.prototype,P8=f8.hasOwnProperty;z5=I8});function _8(Q){return Q!=null&&h(Q.length)&&!R5(Q)}var q5;var D5=X(()=>{C8();J1();q5=_8});function k8(Q){return q5(Q)?W5(Q):z5(Q)}var W1;var m1=X(()=>{x5();F5();D5();W1=k8});function E8(Q){return pQ(Q,W1,nQ)}var A1;var O5=X(()=>{yQ();bQ();m1();A1=E8});function p8(Q,J,Y,Z,H,W){var x=Y&v8,U=A1(Q),G=U.length,K=A1(J),F=K.length;if(G!=F&&!x)return!1;var z=G;while(z--){var N=U[z];if(!(x?N in J:g8.call(J,N)))return!1}var V=W.get(Q),R=W.get(J);if(V&&R)return V==J&&R==Q;var D=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<G){N=U[z];var C=Q[N],_=J[N];if(Z)var e1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(e1===void 0?C===_||H(C,_,Y,Z,W):e1)){D=!1;break}f||(f=N=="constructor")}if(D&&!f){var l=Q.constructor,c=J.constructor;if(l!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof l=="function"&&l instanceof l&&typeof c=="function"&&c instanceof c))D=!1}return W.delete(Q),W.delete(J),D}var v8=1,d8,g8,V5;var M5=X(()=>{O5();d8=Object.prototype,g8=d8.hasOwnProperty;V5=p8});var y8,U1;var L5=X(()=>{x1();y();y8=P(q,"DataView"),U1=y8});var S8,K1;var f5=X(()=>{x1();y();S8=P(q,"Promise"),K1=S8});var m8,B1;var P5=X(()=>{x1();y();m8=P(q,"Set"),B1=m8});var A8,G1;var I5=X(()=>{x1();y();A8=P(q,"WeakMap"),G1=A8});var C5="[object Map]",j8="[object Object]",_5="[object Promise]",k5="[object Set]",E5="[object WeakMap]",v5="[object DataView]",n8,b8,i8,u8,T8,k,h1;var d5=X(()=>{L5();xQ();f5();P5();I5();a();h8();n8=E(U1),b8=E(d),i8=E(K1),u8=E(B1),T8=E(G1),k=L;if(U1&&k(new U1(new ArrayBuffer(1)))!=v5||d&&k(new d)!=C5||K1&&k(K1.resolve())!=_5||B1&&k(new B1)!=k5||G1&&k(new G1)!=E5)k=function(Q){var J=L(Q),Y=J==j8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case n8:return v5;case b8:return C5;case i8:return _5;case u8:return k5;case T8:return E5}return J};h1=k});function o8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),G=x?p5:h1(Q),K=U?p5:h1(J);G=G==g5?N1:G,K=K==g5?N1:K;var F=G==N1,z=K==N1,N=G==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):EQ(Q,J,G,Y,Z,H,W);if(!(Y&l8)){var V=F&&y5.call(Q,"__wrapped__"),R=z&&y5.call(J,"__wrapped__");if(V||R){var D=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(D,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),V5(Q,J,Y,Z,H,W)}var l8=1,g5="[object Arguments]",p5="[object Array]",N1="[object Object]",c8,y5,S5;var m5=X(()=>{C1();_1();vQ();M5();d5();M();g1();S1();c8=Object.prototype,y5=c8.hasOwnProperty;S5=o8});function A5(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 S5(Q,J,Y,Z,A5,H)}var w1;var j1=X(()=>{m5();m();w1=A5});function a8(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 G=U[0],K=Q[G],F=U[1];if(x&&U[2]){if(K===void 0&&!(G in Q))return!1}else{var z=new p;if(Z)var N=Z(K,F,G,Q,J,z);if(!(N===void 0?w1(F,K,r8|s8,Z,z):N))return!1}}return!0}var r8=1,s8=2,h5;var j5=X(()=>{C1();j1();h5=a8});function e8(Q){return Q===Q&&!n5(Q)}var z1;var n1=X(()=>{t8();z1=e8});function QY(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 b5;var i5=X(()=>{n1();m1();b5=QY});function $Y(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var F1;var b1=X(()=>{F1=$Y});function JY(Q){var J=b5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||h5(Y,Q,J)}}var u5;var T5=X(()=>{j5();i5();b1();u5=JY});function ZY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==YY}var YY="[object Symbol]",j;var R1=X(()=>{a();m();j=ZY});function WY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||j(Q))return!0;return HY.test(Q)||!XY.test(Q)||J!=null&&Q in Object(J)}var XY,HY,n;var q1=X(()=>{M();R1();XY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,HY=/^\w*$/;n=WY});function KY(Q){var J=l5(Q,function(Z){if(Y.size===UY)Y.clear();return Z}),Y=J.cache;return J}var UY=500,c5;var o5=X(()=>{xY();c5=KY});var BY,GY,NY,r5;var s5=X(()=>{o5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,GY=/\\(\\)?/g,NY=c5(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(GY,"$1"):Z||Y)}),J}),r5=NY});function wY(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 a5;var t5=X(()=>{a5=wY});function $$(Q){if(typeof Q=="string")return Q;if(w(Q))return a5(Q,$$)+"";if(j(Q))return Q$?Q$.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-zY?"-0":J}var zY=1/0,e5,Q$,J$;var Y$=X(()=>{kQ();t5();M();R1();e5=S?S.prototype:void 0,Q$=e5?e5.toString:void 0;J$=$$});function FY(Q){return Q==null?"":J$(Q)}var Z$;var X$=X(()=>{Y$();Z$=FY});function RY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:r5(Z$(Q))}var D1;var i1=X(()=>{M();q1();s5();X$();D1=RY});function DY(Q){if(typeof Q=="string"||j(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-qY?"-0":J}var qY=1/0,I;var u=X(()=>{R1();I=DY});function OY(Q,J){J=D1(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 u1=X(()=>{i1();u();O1=OY});function VY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var H$;var W$=X(()=>{u1();H$=VY});function MY(Q,J){return Q!=null&&J in Object(Q)}var x$;var U$=X(()=>{x$=MY});function LY(Q,J,Y){J=D1(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&&h(H)&&$1(x,H)&&(w(Q)||t(Q))}var K$;var B$=X(()=>{i1();d1();M();p1();J1();u();K$=LY});function fY(Q,J){return Q!=null&&K$(Q,J,x$)}var G$;var N$=X(()=>{U$();B$();G$=fY});function CY(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=H$(Y,Q);return Z===void 0&&Z===J?G$(Y,Q):w1(J,Z,PY|IY)}}var PY=1,IY=2,w$;var z$=X(()=>{j1();W$();N$();q1();n1();b1();u();w$=CY});function _Y(Q){return Q}var F$;var R$=X(()=>{F$=_Y});function kY(Q){return function(J){return J==null?void 0:J[Q]}}var q$;var D$=X(()=>{q$=kY});function EY(Q){return function(J){return O1(J,Q)}}var O$;var V$=X(()=>{u1();O$=EY});function vY(Q){return n(Q)?q$(I(Q)):O$(Q)}var M$;var L$=X(()=>{D$();V$();q1();u();M$=vY});function dY(Q){if(typeof Q=="function")return Q;if(Q==null)return F$;if(typeof Q=="object")return w(Q)?w$(Q[0],Q[1]):u5(Q);return M$(Q)}var f$;var P$=X(()=>{T5();z$();R$();M();L$();f$=dY});function gY(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 I$;var C$=X(()=>{I$=gY});function pY(Q,J){return Q&&Q.length?I$(Q,f$(J,2)):0}var b;var _$=X(()=>{P$();C$();b=pY});import{randomUUID as T1}from"crypto";var k$=()=>{};function hX(){return l1}function jX(Q){l1=Q}function nX(Q){return V1.has(Q)?V1.get(Q):void 0}function bX(Q,J){V1.set(Q,J)}function iX(Q){return c1.get(Q)}function uX(Q,J){c1.set(Q,J)}function E$(){l1=null,V1.clear(),c1.clear()}function TX(){return o1}function lX(Q){o1=Q}function cX(){o1=void 0}var l1=null,V1,c1,o1;var v$=X(()=>{V1=new Map;c1=new Map});function d$(){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 g$=()=>{};import{realpathSync as p$}from"fs";import{cwd as yY}from"process";function J9(Q){return r1.add(Q),()=>r1.delete(Q)}function Y9(){L1()}function L1(){for(let Q of r1)try{Q()}catch{}}function y$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof p$==="function"){let Y=yY();try{Q=p$(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(),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:T1(),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:[],sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,lspRecommendationShownThisSession:!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,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function Z9(){return $.sessionId}function X9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=T1(),$.sessionProjectDir=null,f1.emit($.sessionId),$.sessionId}function H9(){return $.parentSessionId}function W9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,f1.emit(Q)}function U9(){return $.sessionProjectDir}function K9(){return $.originalCwd}function B9(){return $.projectRoot}function G9(Q){$.originalCwd=Q.normalize("NFC")}function N9(Q){$.projectRoot=Q.normalize("NFC")}function w9(){return $.cwd}function z9(Q){$.cwd=Q.normalize("NFC")}function F9(){return $.directConnectServerUrl}function R9(Q){$.directConnectServerUrl=Q}function q9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function D9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function O9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function V9(){return $.totalCostUSD}function M9(){return $.totalAPIDuration}function L9(){return Date.now()-$.startTime}function f9(){return $.totalAPIDurationWithoutRetries}function P9(){return $.totalToolDuration}function I9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function C9(){return $.turnHookDurationMs}function _9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function k9(){$.turnHookDurationMs=0,$.turnHookCount=0}function E9(){return $.turnHookCount}function v9(){return $.turnToolDurationMs}function d9(){$.turnToolDurationMs=0,$.turnToolCount=0}function g9(){return $.turnToolCount}function p9(){return $.turnClassifierDurationMs}function y9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function S9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function m9(){return $.turnClassifierCount}function A9(){return $.statsStore}function h9(Q){$.statsStore=Q}function j9(Q){if(Q)S$();else s1=!0}function n9(){if(s1)S$()}function S$(){$.lastInteractionTime=Date.now(),s1=!1}function b9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function i9(){return $.totalLinesAdded}function u9(){return $.totalLinesRemoved}function T9(){return b(Object.values($.modelUsage),"inputTokens")}function m$(){return b(Object.values($.modelUsage),"outputTokens")}function l9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function c9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function o9(){return b(Object.values($.modelUsage),"webSearchRequests")}function r9(){return m$()-a1}function s9(){return t1}function a9(Q){a1=m$(),t1=Q,P1=0}function t9(){return P1}function e9(){P1++}function QH(){$.hasUnknownModelCost=!0}function $H(){return $.hasUnknownModelCost}function JH(){return $.lastMainRequestId}function YH(Q){$.lastMainRequestId=Q}function ZH(){return $.lastApiCompletionTimestamp}function XH(Q){$.lastApiCompletionTimestamp=Q}function HH(){$.pendingPostCompaction=!0}function WH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function xH(){return $.lastInteractionTime}function UH(){if(M1=!0,T)clearTimeout(T);T=setTimeout(()=>{M1=!1,T=void 0},A$),T.unref?.()}function KH(){return M1}async function BH(){while(M1)await new Promise((Q)=>setTimeout(Q,A$).unref?.())}function GH(){return $.modelUsage}function NH(Q){return $.modelUsage[Q]}function wH(){return $.mainLoopModelOverride}function zH(){return $.initialMainLoopModel}function FH(Q){$.mainLoopModelOverride=Q}function RH(Q){$.initialMainLoopModel=Q}function qH(){return $.sdkBetas}function DH(Q){$.sdkBetas=Q}function OH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function VH({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;if(x)$.startTime=Date.now()-x}function MH(){throw Error("resetStateForTests can only be called in tests")}function LH(){return $.modelStrings}function fH(Q){$.modelStrings=Q}function PH(){$.modelStrings=null}function IH(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 CH(){return $.meter}function _H(){return $.sessionCounter}function kH(){return $.locCounter}function EH(){return $.prCounter}function vH(){return $.commitCounter}function dH(){return $.costCounter}function gH(){return $.tokenCounter}function pH(){return $.codeEditToolDecisionCounter}function yH(){return $.activeTimeCounter}function SH(){return $.loggerProvider}function mH(Q){$.loggerProvider=Q}function AH(){return $.eventLogger}function hH(Q){$.eventLogger=Q}function jH(){return $.meterProvider}function nH(Q){$.meterProvider=Q}function bH(){return $.tracerProvider}function iH(Q){$.tracerProvider=Q}function SY(){return!$.isInteractive}function uH(){return $.isInteractive}function TH(Q){$.isInteractive=Q}function lH(){return $.clientType}function cH(Q){$.clientType=Q}function oH(){return $.sdkAgentProgressSummariesEnabled}function rH(Q){$.sdkAgentProgressSummariesEnabled=Q}function sH(){return $.kairosActive}function aH(Q){$.kairosActive=Q,L1()}function tH(){return $.strictToolResultPairing}function eH(Q){$.strictToolResultPairing=Q}function Q4(){return $.userMsgOptIn}function $4(Q){$.userMsgOptIn=Q,L1()}function J4(){return $.sessionSource}function Y4(Q){$.sessionSource=Q}function Z4(){return $.questionPreviewFormat}function X4(Q){$.questionPreviewFormat=Q}function H4(){return $.agentColorMap}function W4(){return $.flagSettingsPath}function x4(Q){$.flagSettingsPath=Q}function U4(){return $.flagSettingsInline}function K4(Q){$.flagSettingsInline=Q}function B4(){return $.sessionIngressToken}function G4(Q){$.sessionIngressToken=Q}function N4(){return $.oauthTokenFromFd}function w4(Q){$.oauthTokenFromFd=Q}function z4(){return $.apiKeyFromFd}function F4(Q){$.apiKeyFromFd=Q}function R4(Q){$.lastAPIRequest=Q}function q4(){return $.lastAPIRequest}function D4(Q){$.lastAPIRequestMessages=Q}function O4(){return $.lastAPIRequestMessages}function V4(Q){$.lastClassifierRequests=Q}function M4(){return $.lastClassifierRequests}function L4(Q){$.cachedClaudeMdContent=Q}function f4(){return $.cachedClaudeMdContent}function P4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function I4(){return $.allowedSettingSources}function C4(Q){$.allowedSettingSources=Q}function _4(){return SY()&&$.clientType!=="claude-vscode"}function k4(Q){$.inlinePlugins=Q}function E4(){return $.inlinePlugins}function v4(Q){$.useCoworkPlugins=Q,E$()}function d4(){return $.useCoworkPlugins}function g4(Q){$.sessionBypassPermissionsMode=Q}function p4(){return $.sessionBypassPermissionsMode}function y4(Q){$.scheduledTasksEnabled=Q}function S4(){return $.scheduledTasksEnabled}function m4(){return $.sessionCronTasks}function A4(Q){$.sessionCronTasks.push(Q)}function h4(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 j4(Q){$.sessionTrustAccepted=Q}function n4(){return $.sessionTrustAccepted}function b4(Q){$.sessionPersistenceDisabled=Q}function i4(){return $.sessionPersistenceDisabled}function u4(){return $.hasExitedPlanMode}function T4(Q){$.hasExitedPlanMode=Q}function l4(){return $.needsPlanModeExitAttachment}function c4(Q){$.needsPlanModeExitAttachment=Q}function o4(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function r4(){return $.needsAutoModeExitAttachment}function s4(Q){$.needsAutoModeExitAttachment=Q}function a4(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 t4(){return $.lspRecommendationShownThisSession}function e4(Q){$.lspRecommendationShownThisSession=Q}function Q3(Q){$.initJsonSchema=Q}function $3(){return $.initJsonSchema}function J3(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 Y3(){return $.registeredHooks}function Z3(){$.registeredHooks=null}function X3(){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 H3(){$.initJsonSchema=null,$.registeredHooks=null}function W3(){return $.planSlugCache}function x3(){return $.sessionCreatedTeams}function U3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function K3(){return $.teleportedSessionInfo}function B3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function G3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function N3(){return $.invokedSkills}function w3(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 z3(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 F3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function R3(Q,J){}function q3(){return mY}function D3(){return $.mainThreadAgentType}function O3(Q){$.mainThreadAgentType=Q}function V3(){return $.isRemoteMode}function M3(Q){$.isRemoteMode=Q}function L3(){return $.systemPromptSectionCache}function f3(Q,J){$.systemPromptSectionCache.set(Q,J)}function P3(){$.systemPromptSectionCache.clear()}function I3(){return $.lastEmittedDate}function C3(Q){$.lastEmittedDate=Q}function _3(){return $.additionalDirectoriesForClaudeMd}function k3(Q){$.additionalDirectoriesForClaudeMd=Q}function E3(){return $.allowedChannels}function v3(Q){$.allowedChannels=Q,L1()}function d3(){return $.hasDevChannels}function g3(Q){$.hasDevChannels=Q}function p3(){return $.largeSystemPromptDetected}function y3(Q){$.largeSystemPromptDetected=Q}function S3(){return $.afkModeHeaderLatched}function m3(Q){$.afkModeHeaderLatched=Q}function A3(){return $.fastModeHeaderLatched}function h3(Q){$.fastModeHeaderLatched=Q}function j3(){return $.thinkingClearLatched}function n3(Q){$.thinkingClearLatched=Q}function b3(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null}function i3(){return $.promptId}function u3(Q){$.promptId=Q}function T3(){return!1}function l3(){return null}var r1,$,f1,x9,s1=!1,a1=0,t1=null,P1=0,M1=!1,T,A$=150,mY;var AY=X(()=>{_$();k$();v$();g$();r1=new Set;$=y$();f1=d$(),x9=f1.subscribe;mY=[]});
|
|
2
|
+
export{p as nga,C1 as oga,FQ as pga,RQ as qga,OQ as rga,VQ as sga,k1 as tga,MQ as uga,PQ as vga,IQ as wga,dQ as xga,gQ as yga,w as zga,M as Aga,pQ as Bga,yQ as Cga,SQ as Dga,mQ as Ega,AQ as Fga,hQ as Gga,nQ as Hga,bQ as Iga,O as Jga,m as Kga,t as Lga,d1 as Mga,A as Nga,g1 as Oga,$1 as Pga,p1 as Qga,$5 as Rga,J5 as Sga,X1 as Tga,X5 as Uga,H1 as Vga,S1 as Wga,W5 as Xga,x5 as Yga,U5 as Zga,K5 as _ga,B5 as $ga,G5 as aha,q5 as bha,D5 as cha,W1 as dha,m1 as eha,A1 as fha,O5 as gha,B1 as hha,P5 as iha,h1 as jha,d5 as kha,w1 as lha,j1 as mha,j as nha,R1 as oha,a5 as pha,t5 as qha,Z$ as rha,X$ as sha,D1 as tha,i1 as uha,I as vha,u as wha,O1 as xha,u1 as yha,F$ as zha,R$ as Aha,f$ as Bha,P$ as Cha,hX as Dha,jX as Eha,nX as Fha,bX as Gha,iX as Hha,uX as Iha,E$ as Jha,TX as Kha,lX as Lha,cX as Mha,v$ as Nha,d$ as Oha,g$ as Pha,J9 as Qha,Y9 as Rha,Z9 as Sha,X9 as Tha,H9 as Uha,W9 as Vha,x9 as Wha,U9 as Xha,K9 as Yha,B9 as Zha,G9 as _ha,N9 as $ha,w9 as aia,z9 as bia,F9 as cia,R9 as dia,q9 as eia,D9 as fia,O9 as gia,V9 as hia,M9 as iia,L9 as jia,f9 as kia,P9 as lia,I9 as mia,C9 as nia,_9 as oia,k9 as pia,E9 as qia,v9 as ria,d9 as sia,g9 as tia,p9 as uia,y9 as via,S9 as wia,m9 as xia,A9 as yia,h9 as zia,j9 as Aia,n9 as Bia,b9 as Cia,i9 as Dia,u9 as Eia,T9 as Fia,m$ as Gia,l9 as Hia,c9 as Iia,o9 as Jia,r9 as Kia,s9 as Lia,a9 as Mia,t9 as Nia,e9 as Oia,QH as Pia,$H as Qia,JH as Ria,YH as Sia,ZH as Tia,XH as Uia,HH as Via,WH as Wia,xH as Xia,UH as Yia,KH as Zia,BH as _ia,GH as $ia,NH as aja,wH as bja,zH as cja,FH as dja,RH as eja,qH as fja,DH as gja,OH as hja,VH as ija,MH as jja,LH as kja,fH as lja,PH as mja,IH as nja,CH as oja,_H as pja,kH as qja,EH as rja,vH as sja,dH as tja,gH as uja,pH as vja,yH as wja,SH as xja,mH as yja,AH as zja,hH as Aja,jH as Bja,nH as Cja,bH as Dja,iH as Eja,SY as Fja,uH as Gja,TH as Hja,lH as Ija,cH as Jja,oH as Kja,rH as Lja,sH as Mja,aH as Nja,tH as Oja,eH as Pja,Q4 as Qja,$4 as Rja,J4 as Sja,Y4 as Tja,Z4 as Uja,X4 as Vja,H4 as Wja,W4 as Xja,x4 as Yja,U4 as Zja,K4 as _ja,B4 as $ja,G4 as aka,N4 as bka,w4 as cka,z4 as dka,F4 as eka,R4 as fka,q4 as gka,D4 as hka,O4 as ika,V4 as jka,M4 as kka,L4 as lka,f4 as mka,P4 as nka,I4 as oka,C4 as pka,_4 as qka,k4 as rka,E4 as ska,v4 as tka,d4 as uka,g4 as vka,p4 as wka,y4 as xka,S4 as yka,m4 as zka,A4 as Aka,h4 as Bka,j4 as Cka,n4 as Dka,b4 as Eka,i4 as Fka,u4 as Gka,T4 as Hka,l4 as Ika,c4 as Jka,o4 as Kka,r4 as Lka,s4 as Mka,a4 as Nka,t4 as Oka,e4 as Pka,Q3 as Qka,$3 as Rka,J3 as Ska,Y3 as Tka,Z3 as Uka,X3 as Vka,H3 as Wka,W3 as Xka,x3 as Yka,U3 as Zka,K3 as _ka,B3 as $ka,G3 as ala,N3 as bla,w3 as cla,z3 as dla,F3 as ela,R3 as fla,q3 as gla,D3 as hla,O3 as ila,V3 as jla,M3 as kla,L3 as lla,f3 as mla,P3 as nla,I3 as ola,C3 as pla,_3 as qla,k3 as rla,E3 as sla,v3 as tla,d3 as ula,g3 as vla,p3 as wla,y3 as xla,S3 as yla,m3 as zla,A3 as Ala,h3 as Bla,j3 as Cla,n3 as Dla,b3 as Ela,i3 as Fla,u3 as Gla,T3 as Hla,l3 as Ila,AY as Jla};
|