@claudiolabs/claudio 0.1.9 → 0.1.10
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.1.10-6d1adwh4.mjs +1 -0
- package/dist/chunks/App-0.1.10-kcqgpy9v.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.1.10-276swzgm.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.1.10-zy1wpm5p.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.1.10-wm40g3s8.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.1.10-s6979mex.mjs +1 -0
- package/dist/chunks/ClaudeInChromeOnboarding-0.1.10-r7fr5krr.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.10-r34sxess.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.1.10-fkrt161g.mjs +1 -0
- package/dist/chunks/DiffDialog-0.1.10-z3c417rj.mjs +3 -0
- package/dist/chunks/Doctor-0.1.10-hzxpkma0.mjs +1 -0
- package/dist/chunks/Grove-0.1.10-k7t0bk1q.mjs +1 -0
- package/dist/chunks/ITermBackend-0.1.10-9nmcsqzc.mjs +1 -0
- package/dist/chunks/InProcessTransport-0.1.10-wpgrvt4k.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.1.10-1yxptsrm.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.1.10-2dx3wzpc.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.1.10-52vcfe6j.mjs +1 -0
- package/dist/chunks/Onboarding-0.1.10-sshvgxhv.mjs +1 -0
- package/dist/chunks/ProviderManager-0.1.10-gk479qf3.mjs +1 -0
- package/dist/chunks/REPL-0.1.10-pzwdjhkc.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.1.10-h4qtmeht.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.1.10-7pnzpe15.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.1.10-pna8cvtz.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.10-qgt41j05.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.1.10-yhws2rqe.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.1.10-235npnf1.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.1.10-9dwz8tfs.mjs +1 -0
- package/dist/chunks/TrustDialog-0.1.10-j46d8gme.mjs +1 -0
- package/dist/chunks/activeProvider-0.1.10-mc05hsn1.mjs +1 -0
- package/dist/chunks/add-dir-0.1.10-67yt41qd.mjs +1 -0
- package/dist/chunks/agents-0.1.10-c6k1gjp7.mjs +3 -0
- package/dist/chunks/agents-0.1.10-ezzxfn1m.mjs +111 -0
- package/dist/chunks/api-0.1.10-712k136n.mjs +1 -0
- package/dist/chunks/asciicast-0.1.10-p5232pbe.mjs +1 -0
- package/dist/chunks/assistant-0.1.10-ghtz2fm5.mjs +1 -0
- package/dist/chunks/auth-0.1.10-ec2e3mg3.mjs +1 -0
- package/dist/chunks/auth-0.1.10-pnnxbpmz.mjs +1 -0
- package/dist/chunks/autoMode-0.1.10-en4g4zp3.mjs +48 -0
- package/dist/chunks/backgroundHousekeeping-0.1.10-w42bm2y9.mjs +1 -0
- package/dist/chunks/branch-0.1.10-z00acm0q.mjs +4 -0
- package/dist/chunks/bridgePointer-0.1.10-0fpe1aqp.mjs +1 -0
- package/dist/chunks/btw-0.1.10-zz9v05r2.mjs +1 -0
- package/dist/chunks/buddy-0.1.10-g62mmn7n.mjs +3 -0
- package/dist/chunks/cacache-0.1.10-jdqat7je.mjs +1 -0
- package/dist/chunks/cache-probe-0.1.10-m5je5wda.mjs +21 -0
- package/dist/chunks/cacheStats-0.1.10-h3wmx4ck.mjs +4 -0
- package/dist/chunks/caches-0.1.10-gfv0fw3r.mjs +1 -0
- package/dist/chunks/chrome-0.1.10-vn58ms2z.mjs +1 -0
- package/dist/chunks/chromeNativeHost-0.1.10-1546eayv.mjs +2 -0
- package/dist/chunks/claude-for-chrome-mcp-0.1.10-4pjczkdy.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.1.10-gxr4sfek.mjs +1 -0
- package/dist/chunks/claudemd-0.1.10-fxjaqw0j.mjs +1 -0
- package/dist/chunks/clear-0.1.10-7a42j19v.mjs +1 -0
- package/dist/chunks/clearTerminal-0.1.10-vb1ec5bk.mjs +1 -0
- package/dist/chunks/cli-0.1.10-0n4bjm9z.mjs +3 -0
- package/dist/chunks/cli-0.1.10-0zwk2w6t.mjs +3 -0
- package/dist/chunks/cli-0.1.10-17f08ra3.mjs +2 -0
- package/dist/chunks/cli-0.1.10-19jdke0x.mjs +2 -0
- package/dist/chunks/cli-0.1.10-1faf50d6.mjs +2 -0
- package/dist/chunks/cli-0.1.10-1remt68x.mjs +2 -0
- package/dist/chunks/cli-0.1.10-1zgq248j.mjs +2 -0
- package/dist/chunks/cli-0.1.10-227xyew7.mjs +2 -0
- package/dist/chunks/cli-0.1.10-283zk2ee.mjs +2 -0
- package/dist/chunks/cli-0.1.10-28zx3btb.mjs +14 -0
- package/dist/chunks/cli-0.1.10-2a49sq4g.mjs +2 -0
- package/dist/chunks/cli-0.1.10-2ahvbvra.mjs +2 -0
- package/dist/chunks/cli-0.1.10-2gmmnep8.mjs +2 -0
- package/dist/chunks/cli-0.1.10-2k83cndj.mjs +2 -0
- package/dist/chunks/cli-0.1.10-2mqddc7q.mjs +31 -0
- package/dist/chunks/cli-0.1.10-2tygs780.mjs +2 -0
- package/dist/chunks/cli-0.1.10-3chjvgrj.mjs +2 -0
- package/dist/chunks/cli-0.1.10-3d0w3dmn.mjs +12 -0
- package/dist/chunks/cli-0.1.10-3q43p3wr.mjs +11 -0
- package/dist/chunks/cli-0.1.10-3s7cftaq.mjs +39 -0
- package/dist/chunks/cli-0.1.10-3zkqq9sp.mjs +2 -0
- package/dist/chunks/cli-0.1.10-4a42q38j.mjs +2 -0
- package/dist/chunks/cli-0.1.10-4c5p0gjr.mjs +3 -0
- package/dist/chunks/cli-0.1.10-4jsc4zm5.mjs +2 -0
- package/dist/chunks/cli-0.1.10-4md6sg2a.mjs +2 -0
- package/dist/chunks/cli-0.1.10-4n8p34vn.mjs +2 -0
- package/dist/chunks/cli-0.1.10-4n8rvtk0.mjs +2 -0
- package/dist/chunks/cli-0.1.10-4nrdrp9t.mjs +21 -0
- package/dist/chunks/cli-0.1.10-4q7m47pn.mjs +3 -0
- package/dist/chunks/cli-0.1.10-4vnky3f9.mjs +3 -0
- package/dist/chunks/cli-0.1.10-594z8zdp.mjs +2 -0
- package/dist/chunks/cli-0.1.10-5jnkne9q.mjs +2 -0
- package/dist/chunks/cli-0.1.10-5kg4wpz2.mjs +2 -0
- package/dist/chunks/cli-0.1.10-5tyyhz34.mjs +833 -0
- package/dist/chunks/cli-0.1.10-63qeecn7.mjs +24 -0
- package/dist/chunks/cli-0.1.10-6bn5q3gp.mjs +2 -0
- package/dist/chunks/cli-0.1.10-6f66h3s0.mjs +2 -0
- package/dist/chunks/cli-0.1.10-6g6ga1zd.mjs +2 -0
- package/dist/chunks/cli-0.1.10-6p8tttyp.mjs +2 -0
- package/dist/chunks/cli-0.1.10-6wf59qza.mjs +58 -0
- package/dist/chunks/cli-0.1.10-72ece2yk.mjs +2 -0
- package/dist/chunks/cli-0.1.10-73y7xdxy.mjs +2 -0
- package/dist/chunks/cli-0.1.10-7691mckr.mjs +2 -0
- package/dist/chunks/cli-0.1.10-77zcax57.mjs +2 -0
- package/dist/chunks/cli-0.1.10-7d7j1qyf.mjs +2 -0
- package/dist/chunks/cli-0.1.10-7ngfsh9h.mjs +4 -0
- package/dist/chunks/cli-0.1.10-7v1vvde4.mjs +8 -0
- package/dist/chunks/cli-0.1.10-7ydarbm4.mjs +2 -0
- package/dist/chunks/cli-0.1.10-8dyffagh.mjs +2 -0
- package/dist/chunks/cli-0.1.10-91tna7ay.mjs +2 -0
- package/dist/chunks/cli-0.1.10-977j0ey2.mjs +2 -0
- package/dist/chunks/cli-0.1.10-97rwbawt.mjs +2 -0
- package/dist/chunks/cli-0.1.10-9dfywk37.mjs +2 -0
- package/dist/chunks/cli-0.1.10-9rh1hjrr.mjs +16 -0
- package/dist/chunks/cli-0.1.10-9ybfn3a4.mjs +50 -0
- package/dist/chunks/cli-0.1.10-9zjhrr6j.mjs +2 -0
- package/dist/chunks/cli-0.1.10-a4p945wp.mjs +2 -0
- package/dist/chunks/cli-0.1.10-a53q2hat.mjs +2 -0
- package/dist/chunks/cli-0.1.10-a6j6www8.mjs +10 -0
- package/dist/chunks/cli-0.1.10-acy8ec7t.mjs +2 -0
- package/dist/chunks/cli-0.1.10-akaq0zte.mjs +2 -0
- package/dist/chunks/cli-0.1.10-aw4xkrf7.mjs +2 -0
- package/dist/chunks/cli-0.1.10-b59j6twr.mjs +2 -0
- package/dist/chunks/cli-0.1.10-be8dvtg8.mjs +2 -0
- package/dist/chunks/cli-0.1.10-bfw7yx17.mjs +2 -0
- package/dist/chunks/cli-0.1.10-bgxwxmv1.mjs +2 -0
- package/dist/chunks/cli-0.1.10-bqsa7eam.mjs +2 -0
- package/dist/chunks/cli-0.1.10-brfs5rdm.mjs +4 -0
- package/dist/chunks/cli-0.1.10-bw6411be.mjs +3 -0
- package/dist/chunks/cli-0.1.10-bxbkeycj.mjs +4 -0
- package/dist/chunks/cli-0.1.10-c7bkm855.mjs +4 -0
- package/dist/chunks/cli-0.1.10-cd9k16mb.mjs +2 -0
- package/dist/chunks/cli-0.1.10-ckb6d1wg.mjs +5 -0
- package/dist/chunks/cli-0.1.10-cp1bprrv.mjs +2 -0
- package/dist/chunks/cli-0.1.10-crwvcrfq.mjs +2 -0
- package/dist/chunks/cli-0.1.10-d48qgcag.mjs +2 -0
- package/dist/chunks/cli-0.1.10-d70y9y7x.mjs +2 -0
- package/dist/chunks/cli-0.1.10-dh7by4rw.mjs +2 -0
- package/dist/chunks/cli-0.1.10-dx1a4dz7.mjs +2 -0
- package/dist/chunks/cli-0.1.10-dx92txwb.mjs +13 -0
- package/dist/chunks/cli-0.1.10-e0ftjytk.mjs +2 -0
- package/dist/chunks/cli-0.1.10-e4qewc1p.mjs +44 -0
- package/dist/chunks/cli-0.1.10-e64kvn2p.mjs +2 -0
- package/dist/chunks/cli-0.1.10-eh248dzz.mjs +15 -0
- package/dist/chunks/cli-0.1.10-ejtn8grm.mjs +2 -0
- package/dist/chunks/cli-0.1.10-er8zk2kj.mjs +2 -0
- package/dist/chunks/cli-0.1.10-f1nw74m1.mjs +2 -0
- package/dist/chunks/cli-0.1.10-f2jh6yv0.mjs +2 -0
- package/dist/chunks/cli-0.1.10-f38gq0e0.mjs +2 -0
- package/dist/chunks/cli-0.1.10-f7wg8ttz.mjs +2 -0
- package/dist/chunks/cli-0.1.10-fay16q4v.mjs +2 -0
- package/dist/chunks/cli-0.1.10-fcarec7s.mjs +2 -0
- package/dist/chunks/cli-0.1.10-fh4zzwzq.mjs +5 -0
- package/dist/chunks/cli-0.1.10-fhvyzg2m.mjs +2 -0
- package/dist/chunks/cli-0.1.10-frs4kmth.mjs +2 -0
- package/dist/chunks/cli-0.1.10-g6rx9rdb.mjs +132 -0
- package/dist/chunks/cli-0.1.10-gccb3gw8.mjs +4 -0
- package/dist/chunks/cli-0.1.10-gdqbhzyr.mjs +100 -0
- package/dist/chunks/cli-0.1.10-gms4557v.mjs +252 -0
- package/dist/chunks/cli-0.1.10-gnds07ck.mjs +2 -0
- package/dist/chunks/cli-0.1.10-h7dsgrnw.mjs +2 -0
- package/dist/chunks/cli-0.1.10-h7egg5xp.mjs +2 -0
- package/dist/chunks/cli-0.1.10-hbk3dhq8.mjs +24 -0
- package/dist/chunks/cli-0.1.10-hpa8eyg4.mjs +2 -0
- package/dist/chunks/cli-0.1.10-hpg8gdm2.mjs +2 -0
- package/dist/chunks/cli-0.1.10-hrjh10v7.mjs +2 -0
- package/dist/chunks/cli-0.1.10-hwk5cfdc.mjs +2 -0
- package/dist/chunks/cli-0.1.10-hyxg32sc.mjs +2 -0
- package/dist/chunks/cli-0.1.10-jb7jbbms.mjs +2 -0
- package/dist/chunks/cli-0.1.10-jjdvb4je.mjs +2 -0
- package/dist/chunks/cli-0.1.10-js33z9dt.mjs +2 -0
- package/dist/chunks/cli-0.1.10-jy0nmcmp.mjs +2 -0
- package/dist/chunks/cli-0.1.10-jy7ds572.mjs +2 -0
- package/dist/chunks/cli-0.1.10-kdqsv63d.mjs +3 -0
- package/dist/chunks/cli-0.1.10-knbxee8j.mjs +2 -0
- package/dist/chunks/cli-0.1.10-kp2t4r8z.mjs +2 -0
- package/dist/chunks/cli-0.1.10-me1f9fvm.mjs +2 -0
- package/dist/chunks/cli-0.1.10-mjy2g3ce.mjs +7 -0
- package/dist/chunks/cli-0.1.10-mqgz2v10.mjs +2 -0
- package/dist/chunks/cli-0.1.10-mt4jf92z.mjs +2 -0
- package/dist/chunks/cli-0.1.10-mt6tj76h.mjs +192 -0
- package/dist/chunks/cli-0.1.10-mv1psn5z.mjs +15 -0
- package/dist/chunks/cli-0.1.10-n0kq1anb.mjs +22 -0
- package/dist/chunks/cli-0.1.10-nfnje7ew.mjs +34 -0
- package/dist/chunks/cli-0.1.10-nh3yfpyp.mjs +2 -0
- package/dist/chunks/cli-0.1.10-npkfteg7.mjs +2 -0
- package/dist/chunks/cli-0.1.10-nzvv74kz.mjs +2 -0
- package/dist/chunks/cli-0.1.10-nzxw7p2m.mjs +4 -0
- package/dist/chunks/cli-0.1.10-p42gvsdg.mjs +2 -0
- package/dist/chunks/cli-0.1.10-p4a151rw.mjs +2 -0
- package/dist/chunks/cli-0.1.10-p5wpvhbv.mjs +2 -0
- package/dist/chunks/cli-0.1.10-pagxn9ep.mjs +2 -0
- package/dist/chunks/cli-0.1.10-pw67rrjr.mjs +2 -0
- package/dist/chunks/cli-0.1.10-qez6cjt8.mjs +2 -0
- package/dist/chunks/cli-0.1.10-qf6ps98q.mjs +2 -0
- package/dist/chunks/cli-0.1.10-qhh8pa5t.mjs +2 -0
- package/dist/chunks/cli-0.1.10-qkv7g58s.mjs +2 -0
- package/dist/chunks/cli-0.1.10-qtq4gx83.mjs +3 -0
- package/dist/chunks/cli-0.1.10-qw2c8g14.mjs +2 -0
- package/dist/chunks/cli-0.1.10-qw7kdg27.mjs +2 -0
- package/dist/chunks/cli-0.1.10-rgtrj3k8.mjs +2 -0
- package/dist/chunks/cli-0.1.10-rjz4ymc4.mjs +2 -0
- package/dist/chunks/cli-0.1.10-rnwbgj0h.mjs +134 -0
- package/dist/chunks/cli-0.1.10-rpyv9ekb.mjs +45 -0
- package/dist/chunks/cli-0.1.10-rr3xpxx1.mjs +2 -0
- package/dist/chunks/cli-0.1.10-rvb440sp.mjs +2 -0
- package/dist/chunks/cli-0.1.10-s3x3vzah.mjs +2 -0
- package/dist/chunks/cli-0.1.10-s4x77tm0.mjs +2 -0
- package/dist/chunks/cli-0.1.10-s6jxst02.mjs +2 -0
- package/dist/chunks/cli-0.1.10-s7s5bgrq.mjs +11 -0
- package/dist/chunks/cli-0.1.10-s7zk0vc8.mjs +18 -0
- package/dist/chunks/cli-0.1.10-sab6x266.mjs +2 -0
- package/dist/chunks/cli-0.1.10-seekz53q.mjs +2 -0
- package/dist/chunks/cli-0.1.10-sre7cbsg.mjs +2 -0
- package/dist/chunks/cli-0.1.10-szz5tkt1.mjs +4 -0
- package/dist/chunks/cli-0.1.10-t0v9d184.mjs +2 -0
- package/dist/chunks/cli-0.1.10-t1zd86kd.mjs +2 -0
- package/dist/chunks/cli-0.1.10-t8rnwwhq.mjs +2 -0
- package/dist/chunks/cli-0.1.10-ta048zme.mjs +3 -0
- package/dist/chunks/cli-0.1.10-tf9dk84p.mjs +2 -0
- package/dist/chunks/cli-0.1.10-v0vhyf3h.mjs +4 -0
- package/dist/chunks/cli-0.1.10-v385rk98.mjs +2 -0
- package/dist/chunks/cli-0.1.10-v582vfad.mjs +2 -0
- package/dist/chunks/cli-0.1.10-v6gq9bxc.mjs +7 -0
- package/dist/chunks/cli-0.1.10-vrd90nhd.mjs +16 -0
- package/dist/chunks/cli-0.1.10-w1hqcxj1.mjs +2 -0
- package/dist/chunks/cli-0.1.10-w8np72sh.mjs +2 -0
- package/dist/chunks/cli-0.1.10-wajz23ff.mjs +2 -0
- package/dist/chunks/cli-0.1.10-wjmtd9vm.mjs +6 -0
- package/dist/chunks/cli-0.1.10-wm8pd1jq.mjs +2 -0
- package/dist/chunks/cli-0.1.10-wvhzawgv.mjs +12 -0
- package/dist/chunks/cli-0.1.10-x1qs5ctr.mjs +2 -0
- package/dist/chunks/cli-0.1.10-x2eaxa4s.mjs +2 -0
- package/dist/chunks/cli-0.1.10-xfdakzcb.mjs +2 -0
- package/dist/chunks/cli-0.1.10-xjpjs3y5.mjs +2 -0
- package/dist/chunks/cli-0.1.10-xzz1tdne.mjs +2 -0
- package/dist/chunks/cli-0.1.10-y17z0pes.mjs +2 -0
- package/dist/chunks/cli-0.1.10-y1bkenem.mjs +2 -0
- package/dist/chunks/cli-0.1.10-y2byece1.mjs +12 -0
- package/dist/chunks/cli-0.1.10-y3q22zvb.mjs +2 -0
- package/dist/chunks/cli-0.1.10-y6a8q1t3.mjs +9 -0
- package/dist/chunks/cli-0.1.10-y9mkzh11.mjs +5036 -0
- package/dist/chunks/cli-0.1.10-yq3dy7w2.mjs +2 -0
- package/dist/chunks/cli-0.1.10-yset0578.mjs +2 -0
- package/dist/chunks/cli-0.1.10-z20mk55m.mjs +5 -0
- package/dist/chunks/cli-0.1.10-z3f97n2d.mjs +6 -0
- package/dist/chunks/cli-0.1.10-z4a84y0c.mjs +2 -0
- package/dist/chunks/cli-0.1.10-z7ghb8z7.mjs +2 -0
- package/dist/chunks/cli-0.1.10-zeqsd250.mjs +2 -0
- package/dist/chunks/cli-0.1.10-zxcxqxwv.mjs +2 -0
- package/dist/chunks/cli-0.1.10-zxgw1kqq.mjs +2 -0
- package/dist/chunks/client-0.1.10-btm7zd17.mjs +1 -0
- package/dist/chunks/color-0.1.10-h3wdkq18.mjs +1 -0
- package/dist/chunks/compact-0.1.10-3vz0z7cj.mjs +3 -0
- package/dist/chunks/config-0.1.10-37452dtw.mjs +1 -0
- package/dist/chunks/config-0.1.10-apkj5t0e.mjs +1 -0
- package/dist/chunks/context-0.1.10-z4vfp64w.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.1.10-xmmn39z5.mjs +1 -0
- package/dist/chunks/conversation-0.1.10-p82mc6k7.mjs +1 -0
- package/dist/chunks/copy-0.1.10-y1c1gb1w.mjs +9 -0
- package/dist/chunks/cost-0.1.10-d5wpnm54.mjs +1 -0
- package/dist/chunks/createSession-0.1.10-7bq5e7c3.mjs +1 -0
- package/dist/chunks/desktop-0.1.10-3f54fc1k.mjs +1 -0
- package/dist/chunks/detectRepository-0.1.10-1kyc0kvc.mjs +1 -0
- package/dist/chunks/detection-0.1.10-0h6d9cqt.mjs +1 -0
- package/dist/chunks/devtools-0.1.10-93f39njd.mjs +1 -0
- package/dist/chunks/diff-0.1.10-j17ke0k6.mjs +1 -0
- package/dist/chunks/doctor-0.1.10-wcq13152.mjs +1 -0
- package/dist/chunks/earlyInput-0.1.10-k1phbjt5.mjs +1 -0
- package/dist/chunks/effort-0.1.10-kanyae0a.mjs +8 -0
- package/dist/chunks/environmentSelection-0.1.10-ydckkyqx.mjs +1 -0
- package/dist/chunks/environments-0.1.10-7dht1svt.mjs +1 -0
- package/dist/chunks/exit-0.1.10-q7af8rb6.mjs +1 -0
- package/dist/chunks/export-0.1.10-tgsj9sg2.mjs +2 -0
- package/dist/chunks/extra-usage-0.1.10-qccdgzpk.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.1.10-5rpbnmgs.mjs +1 -0
- package/dist/chunks/fast-0.1.10-eq1jgfqk.mjs +1 -0
- package/dist/chunks/feedback-0.1.10-yvpgv2wy.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.1.10-1q5vbtwp.mjs +1 -0
- package/dist/chunks/git-0.1.10-ngvcytb0.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.1.10-w5g5cqhg.mjs +1 -0
- package/dist/chunks/growthbook-0.1.10-zkm4sham.mjs +1 -0
- package/dist/chunks/heapdump-0.1.10-29gq2jvb.mjs +6 -0
- package/dist/chunks/help-0.1.10-yj8ra443.mjs +1 -0
- package/dist/chunks/hookChains-0.1.10-32qn4nw8.mjs +3 -0
- package/dist/chunks/hooks-0.1.10-epp78p44.mjs +79 -0
- package/dist/chunks/hooks-0.1.10-fjrmscrk.mjs +1 -0
- package/dist/chunks/ide-0.1.10-361fyyet.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.1.10-18yjap6z.mjs +1 -0
- package/dist/chunks/index-0.1.10-1cxj797w.mjs +2 -0
- package/dist/chunks/index-0.1.10-30c6wwdm.mjs +30 -0
- package/dist/chunks/index-0.1.10-80bh88yr.mjs +1 -0
- package/dist/chunks/index-0.1.10-8apwt1gk.mjs +1 -0
- package/dist/chunks/index-0.1.10-8c4f5nq6.mjs +2 -0
- package/dist/chunks/index-0.1.10-9mqxzarc.mjs +5 -0
- package/dist/chunks/index-0.1.10-c29w46aj.mjs +1 -0
- package/dist/chunks/index-0.1.10-c450y86m.mjs +1 -0
- package/dist/chunks/index-0.1.10-d1r31eyx.mjs +9 -0
- package/dist/chunks/index-0.1.10-drj30y1c.mjs +1 -0
- package/dist/chunks/index-0.1.10-g667a23q.mjs +1 -0
- package/dist/chunks/index-0.1.10-gz2mwwnj.mjs +1 -0
- package/dist/chunks/index-0.1.10-m1gd7g5v.mjs +1 -0
- package/dist/chunks/index-0.1.10-n4bkm7fr.mjs +9 -0
- package/dist/chunks/index-0.1.10-r42rb77w.mjs +7 -0
- package/dist/chunks/index-0.1.10-ra4k3x9k.mjs +1 -0
- package/dist/chunks/index-0.1.10-s32szzwg.mjs +1 -0
- package/dist/chunks/index-0.1.10-std21r3g.mjs +1 -0
- package/dist/chunks/index-0.1.10-t71jm4x7.mjs +1 -0
- package/dist/chunks/index-0.1.10-vpcq7nfa.mjs +1 -0
- package/dist/chunks/index-0.1.10-x6dkpkw7.mjs +1 -0
- package/dist/chunks/index-0.1.10-xqy1yh0c.mjs +1 -0
- package/dist/chunks/initReplBridge-0.1.10-4af5e275.mjs +1 -0
- package/dist/chunks/ink-0.1.10-57r8vscr.mjs +1 -0
- package/dist/chunks/insights-0.1.10-rptwhmpm.mjs +870 -0
- package/dist/chunks/install-0.1.10-9w2w5vre.mjs +1 -0
- package/dist/chunks/install-github-app-0.1.10-xhj1zyqh.mjs +149 -0
- package/dist/chunks/install-slack-app-0.1.10-tq51qy4s.mjs +1 -0
- package/dist/chunks/instrumentation-0.1.10-kyzfec48.mjs +12 -0
- package/dist/chunks/interactiveHelpers-0.1.10-1491802m.mjs +1 -0
- package/dist/chunks/keybindings-0.1.10-fpyw69y7.mjs +2 -0
- package/dist/chunks/knowledge-0.1.10-2aa0bb5w.mjs +2 -0
- package/dist/chunks/loadAgentsDir-0.1.10-h8t0ppav.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.1.10-ne71stmt.mjs +1 -0
- package/dist/chunks/logout-0.1.10-xxm4ydq9.mjs +1 -0
- package/dist/chunks/lsp-0.1.10-k53wta4y.mjs +1 -0
- package/dist/chunks/main-0.1.10-q3qenxfq.mjs +1 -0
- package/dist/chunks/managedEnv-0.1.10-s37qwcz1.mjs +1 -0
- package/dist/chunks/mcp-0.1.10-af795ewj.mjs +1 -0
- package/dist/chunks/mcp-0.1.10-b5z770fs.mjs +17 -0
- package/dist/chunks/mcp-0.1.10-nd17220r.mjs +4 -0
- package/dist/chunks/mcpServer-0.1.10-vrpfykem.mjs +1 -0
- package/dist/chunks/mcpb-0.1.10-jzxbat3k.mjs +1 -0
- package/dist/chunks/memory-0.1.10-zwzw20d5.mjs +3 -0
- package/dist/chunks/mobile-0.1.10-02fzsby3.mjs +2 -0
- package/dist/chunks/model-0.1.10-9g2nyrq7.mjs +1 -0
- package/dist/chunks/model-0.1.10-rygn5rc7.mjs +2 -0
- package/dist/chunks/oauth-0.1.10-t6fn448z.mjs +1 -0
- package/dist/chunks/openaiShim-0.1.10-gnhp89j2.mjs +14 -0
- package/dist/chunks/output-style-0.1.10-tnvcw858.mjs +1 -0
- package/dist/chunks/package-HMBVQOZ4-0.1.10-zd9nnmft.mjs +1 -0
- package/dist/chunks/parser-0.1.10-yemkwzb2.mjs +1 -0
- package/dist/chunks/passes-0.1.10-3zg7g2tp.mjs +1 -0
- package/dist/chunks/permissions-0.1.10-3tmntee5.mjs +3 -0
- package/dist/chunks/plan-0.1.10-sj11cbeb.mjs +1 -0
- package/dist/chunks/plist-0.1.10-mfhsxrkb.mjs +1 -0
- package/dist/chunks/plugin-0.1.10-c2rxcqb7.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.1.10-n5esk5p9.mjs +1 -0
- package/dist/chunks/plugins-0.1.10-cyb1q58v.mjs +9 -0
- package/dist/chunks/print-0.1.10-s2t5nd3y.mjs +57 -0
- package/dist/chunks/privacy-settings-0.1.10-kxx4szxa.mjs +1 -0
- package/dist/chunks/process-0.1.10-kp51xxsy.mjs +1 -0
- package/dist/chunks/processBashCommand-0.1.10-t1cdkkjx.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.1.10-pvndkc40.mjs +9 -0
- package/dist/chunks/prompt-0.1.10-2kjnmw4z.mjs +1 -0
- package/dist/chunks/prompt-0.1.10-v546t6x4.mjs +1 -0
- package/dist/chunks/prompts-0.1.10-8k80tabm.mjs +1 -0
- package/dist/chunks/provider-0.1.10-5p16y1p3.mjs +2 -0
- package/dist/chunks/providerProfiles-0.1.10-0r6j5m52.mjs +1 -0
- package/dist/chunks/rate-limit-options-0.1.10-0sgjcqvt.mjs +1 -0
- package/dist/chunks/registry-0.1.10-nyx80cwb.mjs +1 -0
- package/dist/chunks/release-notes-0.1.10-8bpsjmax.mjs +5 -0
- package/dist/chunks/reload-plugins-0.1.10-f8cj2ymj.mjs +2 -0
- package/dist/chunks/remote-env-0.1.10-x65rh1n3.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.1.10-tk9vhzgk.mjs +1 -0
- package/dist/chunks/remoteSession-0.1.10-xx5eng27.mjs +1 -0
- package/dist/chunks/rename-0.1.10-zjwr9vqm.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.1.10-34e8jwrt.mjs +1 -0
- package/dist/chunks/resume-0.1.10-dc75n2zf.mjs +2 -0
- package/dist/chunks/rewind-0.1.10-kt2968kt.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.1.10-whhwsy1v.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.1.10-19w6767r.mjs +1 -0
- package/dist/chunks/session-0.1.10-pzsbjyqm.mjs +2 -0
- package/dist/chunks/sessionFileAccessHooks-0.1.10-jaadayzy.mjs +1 -0
- package/dist/chunks/sessionStorage-0.1.10-b72srv50.mjs +1 -0
- package/dist/chunks/setup-0.1.10-fbs90hdh.mjs +5 -0
- package/dist/chunks/sinks-0.1.10-02w5f1q9.mjs +1 -0
- package/dist/chunks/skills-0.1.10-pexnbjqd.mjs +1 -0
- package/dist/chunks/startupProfiler-0.1.10-gcv6ckp5.mjs +1 -0
- package/dist/chunks/state-0.1.10-embrgn1a.mjs +1 -0
- package/dist/chunks/stats-0.1.10-s0rzmsxx.mjs +6 -0
- package/dist/chunks/status-0.1.10-8r0jrc8n.mjs +1 -0
- package/dist/chunks/stickers-0.1.10-dj7ganhx.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.1.10-hpv416jp.mjs +1 -0
- package/dist/chunks/tasks-0.1.10-cnvnk57k.mjs +1 -0
- package/dist/chunks/teamHelpers-0.1.10-j6sfy2zc.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.1.10-ddhe13pc.mjs +1 -0
- package/dist/chunks/teleport-0.1.10-saft8sby.mjs +1 -0
- package/dist/chunks/terminalSetup-0.1.10-4p5xvtyy.mjs +1 -0
- package/dist/chunks/theme-0.1.10-5xss74sp.mjs +1 -0
- package/dist/chunks/thinkback-0.1.10-e4bz61r1.mjs +1 -0
- package/dist/chunks/thinkback-play-0.1.10-0vjf0r8c.mjs +1 -0
- package/dist/chunks/toolPool-0.1.10-57jq29ct.mjs +1 -0
- package/dist/chunks/toolSearch-0.1.10-ysjw302j.mjs +1 -0
- package/dist/chunks/trustedDevice-0.1.10-zy988esg.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.1.10-vhmcr6t6.mjs +69 -0
- package/dist/chunks/ultrareviewCommand-0.1.10-sqjsmw0x.mjs +4 -0
- package/dist/chunks/update-0.1.10-p7ctpbkr.mjs +94 -0
- package/dist/chunks/upgrade-0.1.10-8585sfbv.mjs +1 -0
- package/dist/chunks/upstreamproxy-0.1.10-ddbrjzqt.mjs +14 -0
- package/dist/chunks/usage-0.1.10-r8vznre6.mjs +1 -0
- package/dist/chunks/util-0.1.10-51fk6c0k.mjs +1 -0
- package/dist/chunks/utils-0.1.10-43r4vneb.mjs +1 -0
- package/dist/chunks/vim-0.1.10-3yzrqjw5.mjs +1 -0
- package/dist/chunks/watcher-0.1.10-xq2qsexd.mjs +1 -0
- package/dist/chunks/wiki-0.1.10-v3w4719f.mjs +132 -0
- package/dist/chunks/worktree-0.1.10-b5r0y9mr.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.1.10-ckcv927j.mjs +1 -0
- package/dist/chunks/wrapper-0.1.10-10976h3e.mjs +7 -0
- package/dist/claudio-vscode.vsix +0 -0
- package/dist/cli.mjs +6 -6
- package/package.json +1 -1
- package/dist/chunks/AgentTool-0.1.9-e26h2f7z.mjs +0 -1
- package/dist/chunks/App-0.1.9-7ttp2eny.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.1.9-pz0jzna9.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.1.9-r5wg1yfv.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.9-nbnjg2tp.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.1.9-wjg6qps3.mjs +0 -1
- package/dist/chunks/ClaudeInChromeOnboarding-0.1.9-h46b49p8.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.9-b8em430v.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.1.9-zb1h6dvy.mjs +0 -1
- package/dist/chunks/DiffDialog-0.1.9-09s28v8e.mjs +0 -3
- package/dist/chunks/Doctor-0.1.9-9ak6wqtr.mjs +0 -1
- package/dist/chunks/Grove-0.1.9-rbrf13rd.mjs +0 -1
- package/dist/chunks/ITermBackend-0.1.9-8dgw249h.mjs +0 -1
- package/dist/chunks/InProcessTransport-0.1.9-5cp1e7x7.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.1.9-6mv9wgt8.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.1.9-d5kkd4yd.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.1.9-56807wps.mjs +0 -1
- package/dist/chunks/Onboarding-0.1.9-g5nqdh1r.mjs +0 -1
- package/dist/chunks/ProviderManager-0.1.9-kj6t8003.mjs +0 -1
- package/dist/chunks/REPL-0.1.9-3h2fc9z7.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.1.9-k4gv6dx4.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.1.9-v3h7drc0.mjs +0 -1
- package/dist/chunks/StartupScreen-0.1.9-jgk08xvj.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.1.9-pnqkmgap.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.9-ddtmy43v.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.1.9-vhnyx04e.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.1.9-nb2ks1np.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.1.9-n40whaty.mjs +0 -1
- package/dist/chunks/TrustDialog-0.1.9-dm2wppgy.mjs +0 -1
- package/dist/chunks/activeProvider-0.1.9-kbwwatt3.mjs +0 -1
- package/dist/chunks/add-dir-0.1.9-ed53zp9j.mjs +0 -1
- package/dist/chunks/agents-0.1.9-4gwb1qtc.mjs +0 -111
- package/dist/chunks/agents-0.1.9-yr85gwa8.mjs +0 -3
- package/dist/chunks/api-0.1.9-kqwfw6wj.mjs +0 -1
- package/dist/chunks/asciicast-0.1.9-ekvsjx76.mjs +0 -1
- package/dist/chunks/assistant-0.1.9-h4rgf0xq.mjs +0 -1
- package/dist/chunks/auth-0.1.9-1c12xrxs.mjs +0 -1
- package/dist/chunks/auth-0.1.9-rqfx3vqa.mjs +0 -1
- package/dist/chunks/autoMode-0.1.9-s92asycq.mjs +0 -48
- package/dist/chunks/backgroundHousekeeping-0.1.9-jjbqckpm.mjs +0 -1
- package/dist/chunks/branch-0.1.9-m7j2aerq.mjs +0 -4
- package/dist/chunks/bridgePointer-0.1.9-rv3aq23v.mjs +0 -1
- package/dist/chunks/btw-0.1.9-g55x31zp.mjs +0 -1
- package/dist/chunks/buddy-0.1.9-fqmk7e4y.mjs +0 -3
- package/dist/chunks/cacache-0.1.9-dr1vt8s1.mjs +0 -1
- package/dist/chunks/cache-probe-0.1.9-ydmjrch4.mjs +0 -21
- package/dist/chunks/cacheStats-0.1.9-pkarrnw9.mjs +0 -4
- package/dist/chunks/caches-0.1.9-d6cndrra.mjs +0 -1
- package/dist/chunks/chrome-0.1.9-bvwzw157.mjs +0 -1
- package/dist/chunks/chromeNativeHost-0.1.9-8a20nscz.mjs +0 -2
- package/dist/chunks/claude-for-chrome-mcp-0.1.9-ndknjd3g.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.1.9-7xprztbk.mjs +0 -1
- package/dist/chunks/claudemd-0.1.9-dqyhgy2v.mjs +0 -1
- package/dist/chunks/clear-0.1.9-tb8x7676.mjs +0 -1
- package/dist/chunks/cli-0.1.9-001s9kxw.mjs +0 -24
- package/dist/chunks/cli-0.1.9-03e1d9dw.mjs +0 -39
- package/dist/chunks/cli-0.1.9-04ez73f7.mjs +0 -5084
- package/dist/chunks/cli-0.1.9-0dtdhejj.mjs +0 -31
- package/dist/chunks/cli-0.1.9-0e6nsh68.mjs +0 -3
- package/dist/chunks/cli-0.1.9-0j8n671q.mjs +0 -2
- package/dist/chunks/cli-0.1.9-15y0qt1z.mjs +0 -2
- package/dist/chunks/cli-0.1.9-1c3qpbdh.mjs +0 -2
- package/dist/chunks/cli-0.1.9-1f5gmndb.mjs +0 -2
- package/dist/chunks/cli-0.1.9-1ghbcafn.mjs +0 -2
- package/dist/chunks/cli-0.1.9-1kaj4v6k.mjs +0 -2
- package/dist/chunks/cli-0.1.9-1xmdqqzd.mjs +0 -3
- package/dist/chunks/cli-0.1.9-263y2rkc.mjs +0 -3
- package/dist/chunks/cli-0.1.9-2dd7h0hn.mjs +0 -15
- package/dist/chunks/cli-0.1.9-2prq7peb.mjs +0 -2
- package/dist/chunks/cli-0.1.9-2tc83tsz.mjs +0 -2
- package/dist/chunks/cli-0.1.9-2thp2z73.mjs +0 -2
- package/dist/chunks/cli-0.1.9-2v0y90vz.mjs +0 -2
- package/dist/chunks/cli-0.1.9-2v4s8yf9.mjs +0 -7
- package/dist/chunks/cli-0.1.9-2x18rhq6.mjs +0 -6
- package/dist/chunks/cli-0.1.9-38zb09vp.mjs +0 -2
- package/dist/chunks/cli-0.1.9-3g3er8j1.mjs +0 -15
- package/dist/chunks/cli-0.1.9-3h4serkj.mjs +0 -58
- package/dist/chunks/cli-0.1.9-3rhe87kw.mjs +0 -2
- package/dist/chunks/cli-0.1.9-3vfq7jja.mjs +0 -34
- package/dist/chunks/cli-0.1.9-3wmbdmrp.mjs +0 -2
- package/dist/chunks/cli-0.1.9-3y36913h.mjs +0 -10
- package/dist/chunks/cli-0.1.9-3yscrq86.mjs +0 -833
- package/dist/chunks/cli-0.1.9-45ggwszg.mjs +0 -2
- package/dist/chunks/cli-0.1.9-4a9qwf11.mjs +0 -2
- package/dist/chunks/cli-0.1.9-4bg6jxs8.mjs +0 -2
- package/dist/chunks/cli-0.1.9-4kk9fmg2.mjs +0 -2
- package/dist/chunks/cli-0.1.9-4n4dqg6k.mjs +0 -2
- package/dist/chunks/cli-0.1.9-4sqfjw8t.mjs +0 -16
- package/dist/chunks/cli-0.1.9-4vmbyj20.mjs +0 -2
- package/dist/chunks/cli-0.1.9-4vt296k0.mjs +0 -18
- package/dist/chunks/cli-0.1.9-5ryrgdzg.mjs +0 -2
- package/dist/chunks/cli-0.1.9-5vgk7wf7.mjs +0 -2
- package/dist/chunks/cli-0.1.9-5ygmjsje.mjs +0 -2
- package/dist/chunks/cli-0.1.9-5ypg3t0t.mjs +0 -2
- package/dist/chunks/cli-0.1.9-5zhhyq4q.mjs +0 -2
- package/dist/chunks/cli-0.1.9-61ywjha3.mjs +0 -2
- package/dist/chunks/cli-0.1.9-68vwvmkw.mjs +0 -2
- package/dist/chunks/cli-0.1.9-6c7qrr4p.mjs +0 -16
- package/dist/chunks/cli-0.1.9-6gk46nr9.mjs +0 -2
- package/dist/chunks/cli-0.1.9-6j5gxw5r.mjs +0 -5
- package/dist/chunks/cli-0.1.9-6ne451jc.mjs +0 -2
- package/dist/chunks/cli-0.1.9-6p67vwxh.mjs +0 -2
- package/dist/chunks/cli-0.1.9-6pcahrj9.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7047sjwh.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7bakxr5q.mjs +0 -3
- package/dist/chunks/cli-0.1.9-7bthhhpf.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7fp0smtp.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7ftnjyps.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7h5my4fb.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7kcaaxvq.mjs +0 -12
- package/dist/chunks/cli-0.1.9-7q9461ka.mjs +0 -2
- package/dist/chunks/cli-0.1.9-7qhatm3v.mjs +0 -2
- package/dist/chunks/cli-0.1.9-86kws2c7.mjs +0 -192
- package/dist/chunks/cli-0.1.9-8egwvs85.mjs +0 -2
- package/dist/chunks/cli-0.1.9-90h21nv5.mjs +0 -2
- package/dist/chunks/cli-0.1.9-9d4sp76k.mjs +0 -2
- package/dist/chunks/cli-0.1.9-9hc8gyb7.mjs +0 -2
- package/dist/chunks/cli-0.1.9-9nhh15bp.mjs +0 -2
- package/dist/chunks/cli-0.1.9-9vab0er5.mjs +0 -2
- package/dist/chunks/cli-0.1.9-9vn4ys3c.mjs +0 -22
- package/dist/chunks/cli-0.1.9-a1gtww1d.mjs +0 -2
- package/dist/chunks/cli-0.1.9-a7zy4vqn.mjs +0 -134
- package/dist/chunks/cli-0.1.9-a95nqhbd.mjs +0 -4
- package/dist/chunks/cli-0.1.9-ag6a8kqj.mjs +0 -2
- package/dist/chunks/cli-0.1.9-ak0b9xfs.mjs +0 -100
- package/dist/chunks/cli-0.1.9-aqd7czgr.mjs +0 -3
- package/dist/chunks/cli-0.1.9-axg1kbe4.mjs +0 -2
- package/dist/chunks/cli-0.1.9-aype6q4y.mjs +0 -2
- package/dist/chunks/cli-0.1.9-b3031hmy.mjs +0 -2
- package/dist/chunks/cli-0.1.9-b6zp931m.mjs +0 -11
- package/dist/chunks/cli-0.1.9-b73n8vzm.mjs +0 -2
- package/dist/chunks/cli-0.1.9-b9kbpf6n.mjs +0 -2
- package/dist/chunks/cli-0.1.9-bg9xvmav.mjs +0 -2
- package/dist/chunks/cli-0.1.9-bn43vpc0.mjs +0 -2
- package/dist/chunks/cli-0.1.9-br9jzagb.mjs +0 -2
- package/dist/chunks/cli-0.1.9-c2fjeq7k.mjs +0 -2
- package/dist/chunks/cli-0.1.9-c38eyh49.mjs +0 -2
- package/dist/chunks/cli-0.1.9-cfzmq9k6.mjs +0 -2
- package/dist/chunks/cli-0.1.9-cvnkghgh.mjs +0 -3
- package/dist/chunks/cli-0.1.9-dmcbsmj4.mjs +0 -2
- package/dist/chunks/cli-0.1.9-dsx18zt1.mjs +0 -2
- package/dist/chunks/cli-0.1.9-dt31fs16.mjs +0 -2
- package/dist/chunks/cli-0.1.9-dzz1me99.mjs +0 -2
- package/dist/chunks/cli-0.1.9-e7ewtpew.mjs +0 -2
- package/dist/chunks/cli-0.1.9-e96x59hw.mjs +0 -2
- package/dist/chunks/cli-0.1.9-ehhkqhbv.mjs +0 -2
- package/dist/chunks/cli-0.1.9-eqxc9zxm.mjs +0 -12
- package/dist/chunks/cli-0.1.9-ewq9k9mr.mjs +0 -2
- package/dist/chunks/cli-0.1.9-ewwxqbvt.mjs +0 -2
- package/dist/chunks/cli-0.1.9-f4v4pahc.mjs +0 -4
- package/dist/chunks/cli-0.1.9-f643fvt4.mjs +0 -2
- package/dist/chunks/cli-0.1.9-f8ga1n8r.mjs +0 -6
- package/dist/chunks/cli-0.1.9-fcf313e7.mjs +0 -2
- package/dist/chunks/cli-0.1.9-fh5enjw8.mjs +0 -5
- package/dist/chunks/cli-0.1.9-fm2yycpj.mjs +0 -2
- package/dist/chunks/cli-0.1.9-fwqwgjwb.mjs +0 -2
- package/dist/chunks/cli-0.1.9-gandxpzf.mjs +0 -2
- package/dist/chunks/cli-0.1.9-gasw7sr9.mjs +0 -2
- package/dist/chunks/cli-0.1.9-gdymcvby.mjs +0 -2
- package/dist/chunks/cli-0.1.9-gpd1bhnf.mjs +0 -2
- package/dist/chunks/cli-0.1.9-gsc0t4gy.mjs +0 -2
- package/dist/chunks/cli-0.1.9-gvrtqwe3.mjs +0 -2
- package/dist/chunks/cli-0.1.9-h8xne7z8.mjs +0 -2
- package/dist/chunks/cli-0.1.9-hjcv9wr7.mjs +0 -50
- package/dist/chunks/cli-0.1.9-hva25eg3.mjs +0 -4
- package/dist/chunks/cli-0.1.9-hy4peemf.mjs +0 -3
- package/dist/chunks/cli-0.1.9-hy9s1fnj.mjs +0 -14
- package/dist/chunks/cli-0.1.9-hz8rssz0.mjs +0 -2
- package/dist/chunks/cli-0.1.9-j5zz6gbq.mjs +0 -4
- package/dist/chunks/cli-0.1.9-jb6af8n8.mjs +0 -2
- package/dist/chunks/cli-0.1.9-jchn9hyn.mjs +0 -2
- package/dist/chunks/cli-0.1.9-jdpz959j.mjs +0 -2
- package/dist/chunks/cli-0.1.9-jv2z42gk.mjs +0 -2
- package/dist/chunks/cli-0.1.9-kbrf27z8.mjs +0 -2
- package/dist/chunks/cli-0.1.9-krv35v3v.mjs +0 -2
- package/dist/chunks/cli-0.1.9-ksv4ntar.mjs +0 -2
- package/dist/chunks/cli-0.1.9-kt9xw7bn.mjs +0 -2
- package/dist/chunks/cli-0.1.9-m7shtst2.mjs +0 -2
- package/dist/chunks/cli-0.1.9-mfyd9h50.mjs +0 -2
- package/dist/chunks/cli-0.1.9-mj88t3jf.mjs +0 -2
- package/dist/chunks/cli-0.1.9-mjkhzp2c.mjs +0 -3
- package/dist/chunks/cli-0.1.9-mkfnnvz7.mjs +0 -4
- package/dist/chunks/cli-0.1.9-mme2x7fq.mjs +0 -2
- package/dist/chunks/cli-0.1.9-mnegaqr7.mjs +0 -2
- package/dist/chunks/cli-0.1.9-mx4ekht0.mjs +0 -2
- package/dist/chunks/cli-0.1.9-mz3mbxwb.mjs +0 -12
- package/dist/chunks/cli-0.1.9-n445yk6z.mjs +0 -2
- package/dist/chunks/cli-0.1.9-n54k4qt3.mjs +0 -2
- package/dist/chunks/cli-0.1.9-n8tc0gpm.mjs +0 -2
- package/dist/chunks/cli-0.1.9-nsgdz4rd.mjs +0 -2
- package/dist/chunks/cli-0.1.9-nw3rpxdd.mjs +0 -252
- package/dist/chunks/cli-0.1.9-nz8phj17.mjs +0 -2
- package/dist/chunks/cli-0.1.9-p1kdk178.mjs +0 -2
- package/dist/chunks/cli-0.1.9-p58rgwkr.mjs +0 -4
- package/dist/chunks/cli-0.1.9-p5scdysw.mjs +0 -2
- package/dist/chunks/cli-0.1.9-pdbfg3vh.mjs +0 -2
- package/dist/chunks/cli-0.1.9-pgwsmwz1.mjs +0 -2
- package/dist/chunks/cli-0.1.9-ph3w8t78.mjs +0 -2
- package/dist/chunks/cli-0.1.9-psx0e36a.mjs +0 -2
- package/dist/chunks/cli-0.1.9-q3e2h88a.mjs +0 -2
- package/dist/chunks/cli-0.1.9-q7hve442.mjs +0 -2
- package/dist/chunks/cli-0.1.9-qqjp7mpj.mjs +0 -2
- package/dist/chunks/cli-0.1.9-qydwhycw.mjs +0 -2
- package/dist/chunks/cli-0.1.9-r3ha1332.mjs +0 -7
- package/dist/chunks/cli-0.1.9-r7rcv2wm.mjs +0 -8
- package/dist/chunks/cli-0.1.9-rd0jctgk.mjs +0 -21
- package/dist/chunks/cli-0.1.9-rerthk1j.mjs +0 -2
- package/dist/chunks/cli-0.1.9-rft22htm.mjs +0 -2
- package/dist/chunks/cli-0.1.9-rp31nc37.mjs +0 -2
- package/dist/chunks/cli-0.1.9-rw09xkh7.mjs +0 -2
- package/dist/chunks/cli-0.1.9-s0w3y07w.mjs +0 -2
- package/dist/chunks/cli-0.1.9-s45y2ndk.mjs +0 -2
- package/dist/chunks/cli-0.1.9-s6bk4fbn.mjs +0 -2
- package/dist/chunks/cli-0.1.9-scpj6tps.mjs +0 -3
- package/dist/chunks/cli-0.1.9-sqja68fn.mjs +0 -2
- package/dist/chunks/cli-0.1.9-sv3awdsv.mjs +0 -2
- package/dist/chunks/cli-0.1.9-t24n24mw.mjs +0 -2
- package/dist/chunks/cli-0.1.9-teaymnrz.mjs +0 -2
- package/dist/chunks/cli-0.1.9-tq9z3reg.mjs +0 -2
- package/dist/chunks/cli-0.1.9-v32f99vc.mjs +0 -11
- package/dist/chunks/cli-0.1.9-v6x9pr1t.mjs +0 -2
- package/dist/chunks/cli-0.1.9-v7ajk1nz.mjs +0 -2
- package/dist/chunks/cli-0.1.9-vdw09f8y.mjs +0 -44
- package/dist/chunks/cli-0.1.9-vm7cggd9.mjs +0 -45
- package/dist/chunks/cli-0.1.9-vp3dtntc.mjs +0 -2
- package/dist/chunks/cli-0.1.9-vwv31syx.mjs +0 -2
- package/dist/chunks/cli-0.1.9-w692zn5c.mjs +0 -2
- package/dist/chunks/cli-0.1.9-wn39cz20.mjs +0 -2
- package/dist/chunks/cli-0.1.9-wpvrabrk.mjs +0 -2
- package/dist/chunks/cli-0.1.9-x0xxr5dh.mjs +0 -13
- package/dist/chunks/cli-0.1.9-x13p19zq.mjs +0 -2
- package/dist/chunks/cli-0.1.9-x257hapj.mjs +0 -9
- package/dist/chunks/cli-0.1.9-x7qrvj9f.mjs +0 -2
- package/dist/chunks/cli-0.1.9-xvn37fkk.mjs +0 -2
- package/dist/chunks/cli-0.1.9-xvvq2rcd.mjs +0 -4
- package/dist/chunks/cli-0.1.9-xws3mhz4.mjs +0 -2
- package/dist/chunks/cli-0.1.9-y8n4w5nn.mjs +0 -5
- package/dist/chunks/cli-0.1.9-ycvkz1gf.mjs +0 -4
- package/dist/chunks/cli-0.1.9-yddanjg2.mjs +0 -132
- package/dist/chunks/cli-0.1.9-ymsq31jx.mjs +0 -2
- package/dist/chunks/cli-0.1.9-ywf6743k.mjs +0 -2
- package/dist/chunks/cli-0.1.9-z5mm21jw.mjs +0 -24
- package/dist/chunks/cli-0.1.9-zae1me3j.mjs +0 -2
- package/dist/chunks/cli-0.1.9-zck4s4sh.mjs +0 -2
- package/dist/chunks/cli-0.1.9-zehsa1kq.mjs +0 -2
- package/dist/chunks/cli-0.1.9-zqyxbf50.mjs +0 -2
- package/dist/chunks/cli-0.1.9-zstpbdrf.mjs +0 -2
- package/dist/chunks/cli-0.1.9-zzp8m503.mjs +0 -3
- package/dist/chunks/cliArgs-0.1.9-kckasx4h.mjs +0 -1
- package/dist/chunks/client-0.1.9-ys52xz2v.mjs +0 -1
- package/dist/chunks/color-0.1.9-nmnytefc.mjs +0 -1
- package/dist/chunks/compact-0.1.9-qw915ckh.mjs +0 -3
- package/dist/chunks/config-0.1.9-1m69edch.mjs +0 -1
- package/dist/chunks/config-0.1.9-6knxc8a2.mjs +0 -1
- package/dist/chunks/context-0.1.9-47a3xmqq.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.1.9-6s9bm74v.mjs +0 -1
- package/dist/chunks/conversation-0.1.9-vebter8y.mjs +0 -1
- package/dist/chunks/copy-0.1.9-ae06p3e2.mjs +0 -9
- package/dist/chunks/cost-0.1.9-x5zee0z9.mjs +0 -1
- package/dist/chunks/createSession-0.1.9-djn7xdsv.mjs +0 -1
- package/dist/chunks/desktop-0.1.9-xaecrssd.mjs +0 -1
- package/dist/chunks/detectRepository-0.1.9-qqzcce45.mjs +0 -1
- package/dist/chunks/detection-0.1.9-ry1q2ym2.mjs +0 -1
- package/dist/chunks/devtools-0.1.9-kzs9wq2w.mjs +0 -1
- package/dist/chunks/diff-0.1.9-af5n5bzh.mjs +0 -1
- package/dist/chunks/doctor-0.1.9-9f6fz2h0.mjs +0 -1
- package/dist/chunks/earlyInput-0.1.9-h7yskwvf.mjs +0 -1
- package/dist/chunks/effort-0.1.9-spz96zzr.mjs +0 -8
- package/dist/chunks/environmentSelection-0.1.9-0va5g53h.mjs +0 -1
- package/dist/chunks/environments-0.1.9-2hka6k26.mjs +0 -1
- package/dist/chunks/exit-0.1.9-rvk04qa2.mjs +0 -1
- package/dist/chunks/export-0.1.9-c3pqjktx.mjs +0 -2
- package/dist/chunks/extra-usage-0.1.9-92jjke47.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.1.9-27zjp5q7.mjs +0 -1
- package/dist/chunks/fast-0.1.9-60sqqvgd.mjs +0 -1
- package/dist/chunks/feedback-0.1.9-anraj53n.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.1.9-y55fqx1x.mjs +0 -1
- package/dist/chunks/fullscreen-0.1.9-xy9bnpe3.mjs +0 -1
- package/dist/chunks/git-0.1.9-09pdaxwd.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.1.9-bzx6c3bd.mjs +0 -1
- package/dist/chunks/growthbook-0.1.9-rqhcy76z.mjs +0 -1
- package/dist/chunks/heapdump-0.1.9-qrfce4dp.mjs +0 -6
- package/dist/chunks/help-0.1.9-sfn2ed9n.mjs +0 -1
- package/dist/chunks/hookChains-0.1.9-5t2mrtyc.mjs +0 -3
- package/dist/chunks/hooks-0.1.9-4cebdztn.mjs +0 -1
- package/dist/chunks/hooks-0.1.9-y0vtx23k.mjs +0 -79
- package/dist/chunks/ide-0.1.9-yxzacgd5.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.1.9-fwc1ge47.mjs +0 -1
- package/dist/chunks/index-0.1.9-2gv7a7tq.mjs +0 -2
- package/dist/chunks/index-0.1.9-31vnb803.mjs +0 -1
- package/dist/chunks/index-0.1.9-68aa3hmw.mjs +0 -1
- package/dist/chunks/index-0.1.9-7ktx5gez.mjs +0 -1
- package/dist/chunks/index-0.1.9-8feamw1f.mjs +0 -1
- package/dist/chunks/index-0.1.9-8hzceckr.mjs +0 -5
- package/dist/chunks/index-0.1.9-96thm65j.mjs +0 -1
- package/dist/chunks/index-0.1.9-c7sexk3f.mjs +0 -2
- package/dist/chunks/index-0.1.9-fvtq6thw.mjs +0 -1
- package/dist/chunks/index-0.1.9-g2ngvhaf.mjs +0 -1
- package/dist/chunks/index-0.1.9-gtn0qcv2.mjs +0 -7
- package/dist/chunks/index-0.1.9-h548q4km.mjs +0 -1
- package/dist/chunks/index-0.1.9-j6ac60hq.mjs +0 -1
- package/dist/chunks/index-0.1.9-jxdymwv4.mjs +0 -1
- package/dist/chunks/index-0.1.9-kgdkzpmr.mjs +0 -1
- package/dist/chunks/index-0.1.9-mt2y3wyw.mjs +0 -9
- package/dist/chunks/index-0.1.9-smem7egb.mjs +0 -30
- package/dist/chunks/index-0.1.9-snmdvw2f.mjs +0 -1
- package/dist/chunks/index-0.1.9-vwevfx80.mjs +0 -1
- package/dist/chunks/index-0.1.9-w21jc8bp.mjs +0 -1
- package/dist/chunks/index-0.1.9-wpqaqk4y.mjs +0 -1
- package/dist/chunks/index-0.1.9-yjp28h60.mjs +0 -9
- package/dist/chunks/initReplBridge-0.1.9-dag95hyf.mjs +0 -1
- package/dist/chunks/ink-0.1.9-4n2nvw5p.mjs +0 -1
- package/dist/chunks/insights-0.1.9-9hr8tshw.mjs +0 -870
- package/dist/chunks/install-0.1.9-km91vvgf.mjs +0 -1
- package/dist/chunks/install-github-app-0.1.9-874a2dgj.mjs +0 -149
- package/dist/chunks/install-slack-app-0.1.9-q5yyb8vs.mjs +0 -1
- package/dist/chunks/instrumentation-0.1.9-raz129aj.mjs +0 -12
- package/dist/chunks/interactiveHelpers-0.1.9-21a8r4rv.mjs +0 -1
- package/dist/chunks/keybindings-0.1.9-nm8s4x8m.mjs +0 -2
- package/dist/chunks/knowledge-0.1.9-zhr6zq80.mjs +0 -2
- package/dist/chunks/loadAgentsDir-0.1.9-3m0mzw84.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.1.9-y46g5zj0.mjs +0 -1
- package/dist/chunks/logout-0.1.9-hb89bxj8.mjs +0 -1
- package/dist/chunks/lsp-0.1.9-2j3y8eqc.mjs +0 -1
- package/dist/chunks/main-0.1.9-7cnyr288.mjs +0 -1
- package/dist/chunks/managedEnv-0.1.9-y8wax2wz.mjs +0 -1
- package/dist/chunks/mcp-0.1.9-14beee71.mjs +0 -17
- package/dist/chunks/mcp-0.1.9-qw1n3pzx.mjs +0 -4
- package/dist/chunks/mcp-0.1.9-zd92e41j.mjs +0 -1
- package/dist/chunks/mcpServer-0.1.9-5p48a2y0.mjs +0 -1
- package/dist/chunks/mcpb-0.1.9-t8x1bjwv.mjs +0 -1
- package/dist/chunks/memory-0.1.9-mxz6vgsy.mjs +0 -3
- package/dist/chunks/mobile-0.1.9-144nwr03.mjs +0 -2
- package/dist/chunks/model-0.1.9-ghswdzx2.mjs +0 -1
- package/dist/chunks/model-0.1.9-j4vhm4vm.mjs +0 -2
- package/dist/chunks/oauth-0.1.9-a7p9ezjx.mjs +0 -1
- package/dist/chunks/openaiShim-0.1.9-5bn57rv6.mjs +0 -14
- package/dist/chunks/output-style-0.1.9-y8t5c5v3.mjs +0 -1
- package/dist/chunks/package-HMBVQOZ4-0.1.9-mbvqe0av.mjs +0 -1
- package/dist/chunks/parser-0.1.9-d7vc9q1w.mjs +0 -1
- package/dist/chunks/passes-0.1.9-84vsp058.mjs +0 -1
- package/dist/chunks/permissions-0.1.9-h0a2312z.mjs +0 -3
- package/dist/chunks/plan-0.1.9-k9dx9nwc.mjs +0 -1
- package/dist/chunks/plist-0.1.9-f3c6hvca.mjs +0 -1
- package/dist/chunks/plugin-0.1.9-z3nwra38.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.1.9-p68xwmv4.mjs +0 -1
- package/dist/chunks/plugins-0.1.9-grc1bgmj.mjs +0 -9
- package/dist/chunks/print-0.1.9-z151tvas.mjs +0 -57
- package/dist/chunks/privacy-settings-0.1.9-m7xpxtd8.mjs +0 -1
- package/dist/chunks/process-0.1.9-anx0dq1a.mjs +0 -1
- package/dist/chunks/processBashCommand-0.1.9-bchtybqh.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.1.9-ebvc859m.mjs +0 -9
- package/dist/chunks/prompt-0.1.9-08fnpwfx.mjs +0 -1
- package/dist/chunks/prompt-0.1.9-whqkx3td.mjs +0 -1
- package/dist/chunks/prompts-0.1.9-psek69yr.mjs +0 -1
- package/dist/chunks/provider-0.1.9-xwmdqr38.mjs +0 -2
- package/dist/chunks/providerProfiles-0.1.9-myc8zcfy.mjs +0 -1
- package/dist/chunks/rate-limit-options-0.1.9-06twart5.mjs +0 -1
- package/dist/chunks/registry-0.1.9-xxrsbce3.mjs +0 -1
- package/dist/chunks/release-notes-0.1.9-4r396x7z.mjs +0 -5
- package/dist/chunks/reload-plugins-0.1.9-hm09ekrf.mjs +0 -2
- package/dist/chunks/remote-env-0.1.9-0peng4np.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.1.9-4eg0bkck.mjs +0 -1
- package/dist/chunks/remoteSession-0.1.9-7jagnaes.mjs +0 -1
- package/dist/chunks/rename-0.1.9-3r8bqa1y.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.1.9-1y32h5jq.mjs +0 -1
- package/dist/chunks/resume-0.1.9-gayv56qp.mjs +0 -2
- package/dist/chunks/rewind-0.1.9-krxjbzeg.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.1.9-b4ze2ex2.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.1.9-6vctxbed.mjs +0 -1
- package/dist/chunks/session-0.1.9-jtrr3jje.mjs +0 -2
- package/dist/chunks/sessionFileAccessHooks-0.1.9-wpgdva8t.mjs +0 -1
- package/dist/chunks/sessionStorage-0.1.9-1v6wyqzw.mjs +0 -1
- package/dist/chunks/setup-0.1.9-jc5w6v5s.mjs +0 -5
- package/dist/chunks/sinks-0.1.9-49ereb4y.mjs +0 -1
- package/dist/chunks/skills-0.1.9-d63w5m27.mjs +0 -1
- package/dist/chunks/startupProfiler-0.1.9-gmke65dk.mjs +0 -1
- package/dist/chunks/state-0.1.9-m8x0v07d.mjs +0 -1
- package/dist/chunks/stats-0.1.9-yvya6xg6.mjs +0 -6
- package/dist/chunks/status-0.1.9-sapnwz4b.mjs +0 -1
- package/dist/chunks/stickers-0.1.9-ewdagtd4.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.1.9-2dqzh55d.mjs +0 -1
- package/dist/chunks/tasks-0.1.9-qgqwhse9.mjs +0 -1
- package/dist/chunks/teamHelpers-0.1.9-r474ar76.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.1.9-nwc11b9m.mjs +0 -1
- package/dist/chunks/teleport-0.1.9-xaj204my.mjs +0 -1
- package/dist/chunks/terminalSetup-0.1.9-xd5rhh32.mjs +0 -1
- package/dist/chunks/theme-0.1.9-f6jzdysz.mjs +0 -1
- package/dist/chunks/thinkback-0.1.9-8j25tex7.mjs +0 -1
- package/dist/chunks/thinkback-play-0.1.9-tzs2w3mj.mjs +0 -1
- package/dist/chunks/toolPool-0.1.9-6b4938vh.mjs +0 -1
- package/dist/chunks/toolSearch-0.1.9-7ych6nv7.mjs +0 -1
- package/dist/chunks/trustedDevice-0.1.9-xqxt3kmz.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.1.9-m1wesrr4.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.1.9-x09n5pvc.mjs +0 -4
- package/dist/chunks/update-0.1.9-8dntd8kh.mjs +0 -94
- package/dist/chunks/upgrade-0.1.9-eja31dgt.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.1.9-pv2yqh11.mjs +0 -14
- package/dist/chunks/usage-0.1.9-neje6dea.mjs +0 -1
- package/dist/chunks/util-0.1.9-kdhggd68.mjs +0 -1
- package/dist/chunks/utils-0.1.9-bqw30f8b.mjs +0 -1
- package/dist/chunks/vim-0.1.9-w4d1qz6f.mjs +0 -1
- package/dist/chunks/watcher-0.1.9-ty2r0yxd.mjs +0 -1
- package/dist/chunks/wiki-0.1.9-ah646x2k.mjs +0 -132
- package/dist/chunks/worktree-0.1.9-d3fbxjwd.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.1.9-qbn6b5fs.mjs +0 -1
- package/dist/chunks/wrapper-0.1.9-eh46qafm.mjs +0 -7
- /package/dist/chunks/{cli-0.1.9-zrdz7st3.mjs → cli-0.1.10-9xpgjxhj.mjs} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{KJ as S,LJ as Zf,NJ as Vf}from"./cli-0.1.10-y9mkzh11.mjs";import{FP as Xf,GP as _f}from"./cli-0.1.10-gdqbhzyr.mjs";import{PS as Wf,QS as Uf}from"./cli-0.1.10-xzz1tdne.mjs";import{IU as x,JU as cf,KU as y,MU as q,QU as Qf,_S as s,eT as n,fT as If,pV as a}from"./cli-0.1.10-gms4557v.mjs";import{kX as _}from"./cli-0.1.10-v6gq9bxc.mjs";import{lX as Tf}from"./cli-0.1.10-28zx3btb.mjs";import{B2 as Jf,C2 as hf,G2 as M,J2 as p,K2 as Rf,i2 as Nf,k2 as D,l2 as j,m2 as Hf,o2 as A,r2 as qf,t2 as zf}from"./cli-0.1.10-vrd90nhd.mjs";import{x5 as l,y5 as Pf}from"./cli-0.1.10-wjmtd9vm.mjs";import{Jaa as Cf,L_ as yf,Oba as Bf,vba as i,xaa as Gf,z_ as Y}from"./cli-0.1.10-mt6tj76h.mjs";import{Gfa as Of,yfa as mf}from"./cli-0.1.10-nzxw7p2m.mjs";import{Yfa as u,Zfa as Lf}from"./cli-0.1.10-f2jh6yv0.mjs";import{Gna as k,Kna as o}from"./cli-0.1.10-hyxg32sc.mjs";function e(m){let f=t.c(2),{cooldown:G}=m;if(G){let z;if(f[0]===Symbol.for("react.memo_cache_sentinel"))z=g.jsxDEV(q,{color:"promptBorder",dimColor:!0,children:Y},void 0,!1,void 0,this),f[0]=z;else z=f[0];return z}let H;if(f[1]===Symbol.for("react.memo_cache_sentinel"))H=g.jsxDEV(q,{color:"fastMode",children:Y},void 0,!1,void 0,this),f[1]=H;else H=f[1];return H}function V(m=!0,f=!1){if(!m)return Y;let G=n(i().theme);if(f)return l.dim(x("promptBorder",G)(Y));return x("fastMode",G)(Y)}var t,g;var ff=o(()=>{Pf();yf();a();Bf();If();cf();t=k(s(),1),g=k(_(),1)});function b(m,f){if(zf(),Gf("userSettings",{fastMode:m?!0:void 0}),m)f((G)=>{let H=!A(G.mainLoopModel);return{...G,...H?{mainLoopModel:Hf(),mainLoopModelForSession:null}:{},fastMode:!0}});else f((G)=>({...G,fastMode:!1}))}function jf(m){let f=kf.c(30),{onDone:G,unavailableReason:H}=m,z=S(vf),W=S(Ef),X=Zf(),[J,wf]=Kf.useState(W??!1),B;if(f[0]===Symbol.for("react.memo_cache_sentinel"))B=qf(),f[0]=B;else B=f[0];let P=B,$=P.status==="cooldown",Q=H!==null,I;if(f[1]===Symbol.for("react.memo_cache_sentinel"))I=p(M(!0)),f[1]=I;else I=f[1];let d=I,c;if(f[2]!==J||f[3]!==Q||f[4]!==z||f[5]!==G||f[6]!==X)c=function(){if(Q)return;if(b(J,X),u("tengu_fast_mode_toggled",{enabled:J,source:"picker"}),J){let F=V(J),rf=!A(z)?` · model set to ${j}`:"";G(`${F} Fast mode ON${rf} · ${d}`)}else X(Af),G("Fast mode OFF")},f[2]=J,f[3]=Q,f[4]=z,f[5]=G,f[6]=X,f[7]=c;else c=f[7];let E=c,L;if(f[8]!==W||f[9]!==Q||f[10]!==G||f[11]!==X)L=function(){if(Q){if(W)b(!1,X);G("Fast mode OFF",{display:"system"});return}let F=W?`${V()} Kept Fast mode ON`:"Kept Fast mode OFF";G(F,{display:"system"})},f[8]=W,f[9]=Q,f[10]=G,f[11]=X,f[12]=L;else L=f[12];let v=L,O;if(f[13]!==Q)O=function(){if(Q)return;wf(uf)},f[13]=Q,f[14]=O;else O=f[14];let Z=O,C;if(f[15]!==E||f[16]!==Z)C={"confirm:yes":E,"confirm:nextField":Z,"confirm:next":Z,"confirm:previous":Z,"confirm:cycleMode":Z,"confirm:toggle":Z},f[15]=E,f[16]=Z,f[17]=C;else C=f[17];let h;if(f[18]===Symbol.for("react.memo_cache_sentinel"))h={context:"Confirmation"},f[18]=h;else h=f[18];Wf(C,h);let R;if(f[19]===Symbol.for("react.memo_cache_sentinel"))R=N.jsxDEV(q,{children:[N.jsxDEV(e,{cooldown:$},void 0,!1,void 0,this)," Fast mode (research preview)"]},void 0,!0,void 0,this),f[19]=R;else R=f[19];let Yf=R,K;if(f[20]!==Q)K=(r)=>r.pending?N.jsxDEV(q,{children:["Press ",r.keyName," again to exit"]},void 0,!0,void 0,this):Q?N.jsxDEV(q,{children:"Esc to cancel"},void 0,!1,void 0,this):N.jsxDEV(q,{children:"Tab to toggle · Enter to confirm · Esc to cancel"},void 0,!1,void 0,this),f[20]=Q,f[21]=K;else K=f[21];let w;if(f[22]!==J||f[23]!==H)w=H?N.jsxDEV(y,{marginLeft:2,children:N.jsxDEV(q,{color:"error",children:H},void 0,!1,void 0,this)},void 0,!1,void 0,this):N.jsxDEV(N.Fragment,{children:[N.jsxDEV(y,{flexDirection:"column",gap:0,marginLeft:2,children:N.jsxDEV(y,{flexDirection:"row",gap:2,children:[N.jsxDEV(q,{bold:!0,children:"Fast mode"},void 0,!1,void 0,this),N.jsxDEV(q,{color:J?"fastMode":void 0,bold:J,children:J?"ON ":"OFF"},void 0,!1,void 0,this),N.jsxDEV(q,{dimColor:!0,children:d},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),$&&P.status==="cooldown"&&N.jsxDEV(y,{marginLeft:2,children:N.jsxDEV(q,{color:"warning",children:[P.reason==="overloaded"?"Fast mode overloaded and is temporarily unavailable":"You've hit your fast limit"," · resets in ",mf(P.resetAt-Date.now(),{hideTrailingZeros:!0})]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[22]=J,f[23]=H,f[24]=w;else w=f[24];let T;if(f[25]===Symbol.for("react.memo_cache_sentinel"))T=N.jsxDEV(q,{dimColor:!0,children:["Learn more:"," ",N.jsxDEV(Qf,{url:"https://code.claude.com/docs/en/fast-mode",children:"https://code.claude.com/docs/en/fast-mode"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f[25]=T;else T=f[25];let U;if(f[26]!==v||f[27]!==w||f[28]!==K)U=N.jsxDEV(Xf,{title:Yf,subtitle:`High-speed mode for ${j}. Billed as extra usage at a premium rate. Separate rate limits apply.`,onCancel:v,color:"fastMode",inputGuide:K,children:[w,T]},void 0,!0,void 0,this),f[26]=v,f[27]=w,f[28]=K,f[29]=U;else U=f[29];return U}function uf(m){return!m}function Af(m){return{...m,fastMode:!1}}function Ef(m){return m.fastMode}function vf(m){return m.mainLoopModel}async function Ff(m,f,G){let H=D();if(H)return`Fast mode unavailable: ${H}`;let{mainLoopModel:z}=f();if(b(m,G),u("tengu_fast_mode_toggled",{enabled:m,source:"shortcut"}),m){let W=V(!0),X=!A(z)?` · model set to ${j}`:"",J=p(M(!0));return`${W} Fast mode ON${X} · ${J}`}else return"Fast mode OFF"}async function G0(m,f,G){if(!Nf())return null;await Jf();let H=G?.trim().toLowerCase();if(H==="on"||H==="off"){let W=await Ff(H==="on",f.getAppState,f.setAppState);return m(W),null}let z=D();return u("tengu_fast_mode_picker_shown",{unavailable_reason:z??""}),N.jsxDEV(jf,{onDone:m,unavailableReason:z},void 0,!1,void 0,this)}var kf,Kf,N;var xf=o(()=>{_f();ff();a();Uf();Lf();Vf();hf();Of();Rf();Cf();kf=k(s(),1),Kf=k(Tf(),1),N=k(_(),1)});
|
|
2
|
+
export{V as ad,ff as bd,jf as cd,G0 as dd,xf as ed};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import{_ga as y8,bha as W7,lha as o$}from"./cli-0.1.10-y1bkenem.mjs";import{oha as f8,rha as a$}from"./cli-0.1.10-pw67rrjr.mjs";import{Oma as P8,Via as R8}from"./cli-0.1.10-mqgz2v10.mjs";import{lna as s,mna as j8}from"./cli-0.1.10-akaq0zte.mjs";import{Kna as w,Mna as A,Nna as D}from"./cli-0.1.10-hyxg32sc.mjs";function w7(X){return Z6.add(X),()=>Z6.delete(X)}async function U1(){await Promise.all(Array.from(Z6).map((X)=>X()))}var Z6;var U7=w(()=>{Z6=new Set});function i(X){return typeof X==="object"&&X!==null&&(("name"in X)&&X.name==="AbortError"||("message"in X)&&String(X.message).includes("FetchRequestCanceledException"))}var RX=(X)=>{if(X instanceof Error)return X;if(typeof X==="object"&&X!==null){try{if(Object.prototype.toString.call(X)==="[object Error]"){let Z=Error(X.message,X.cause?{cause:X.cause}:{});if(X.stack)Z.stack=X.stack;if(X.cause&&!Z.cause)Z.cause=X.cause;if(X.name)Z.name=X.name;return Z}}catch{}try{return Error(JSON.stringify(X))}catch{}}return Error(X)};var CX=()=>{};var N,F,S,WX,PX,yX,_X,fX,bX,hX,vX,gX,cX;var R=w(()=>{CX();N=class N extends Error{};F=class F extends N{constructor(X,Z,$,Y,J){super(`${F.makeMessage(X,Z,$)}`);this.status=X,this.headers=Y,this.requestID=Y?.get("request-id"),this.error=Z,this.type=J??null}static makeMessage(X,Z,$){let Y=Z?.message?typeof Z.message==="string"?Z.message:JSON.stringify(Z.message):Z?JSON.stringify(Z):$;if(X&&Y)return`${X} ${Y}`;if(X)return`${X} status code (no body)`;if(Y)return Y;return"(no status code or body)"}static generate(X,Z,$,Y){if(!X||!Y)return new WX({message:$,cause:RX(Z)});let J=Z,K=J?.error?.type;if(X===400)return new yX(X,J,$,Y,K);if(X===401)return new _X(X,J,$,Y,K);if(X===403)return new fX(X,J,$,Y,K);if(X===404)return new bX(X,J,$,Y,K);if(X===409)return new hX(X,J,$,Y,K);if(X===422)return new vX(X,J,$,Y,K);if(X===429)return new gX(X,J,$,Y,K);if(X>=500)return new cX(X,J,$,Y,K);return new F(X,J,$,Y,K)}};S=class S extends F{constructor({message:X}={}){super(void 0,void 0,X||"Request was aborted.",void 0)}};WX=class WX extends F{constructor({message:X,cause:Z}){super(void 0,void 0,X||"Connection error.",void 0);if(Z)this.cause=Z}};PX=class PX extends WX{constructor({message:X}={}){super({message:X??"Request timed out."})}};yX=class yX extends F{};_X=class _X extends F{};fX=class fX extends F{};bX=class bX extends F{};hX=class hX extends F{};vX=class vX extends F{};gX=class gX extends F{};cX=class cX extends F{}});function G(X,Z,$,Y,J){if(Y==="m")throw TypeError("Private method is not writable");if(Y==="a"&&!J)throw TypeError("Private accessor was defined without a setter");if(typeof Z==="function"?X!==Z||!J:!Z.has(X))throw TypeError("Cannot write private member to an object whose class did not declare it");return Y==="a"?J.call(X,$):J?J.value=$:Z.set(X,$),$}function V(X,Z,$,Y){if($==="a"&&!Y)throw TypeError("Private accessor was defined without a getter");if(typeof Z==="function"?X!==Z||!Y:!Z.has(X))throw TypeError("Cannot read private member from an object whose class did not declare it");return $==="m"?Y:$==="a"?Y.call(X):Y?Y.value:Z.get(X)}var n=()=>{};var $6=function(){let{crypto:X}=globalThis;if(X?.randomUUID)return $6=X.randomUUID.bind(X),X.randomUUID();let Z=new Uint8Array(1),$=X?()=>X.getRandomValues(Z)[0]:()=>Math.random()*255&255;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(Y)=>(+Y^$()&15>>+Y/4).toString(16))};var q7=()=>{};function EZ(X){if(typeof X!=="object")return{};return X??{}}function K6(X){if(!X)return!0;for(let Z in X)return!1;return!0}function H7(X,Z){return Object.prototype.hasOwnProperty.call(X,Z)}var i8,C7=(X)=>{return i8.test(X)},Y6=(X)=>(Y6=Array.isArray,Y6(X)),J6,x7=(X,Z)=>{if(typeof Z!=="number"||!Number.isInteger(Z))throw new N(`${X} must be an integer`);if(Z<0)throw new N(`${X} must be a positive integer`);return Z},jZ=(X)=>{try{return JSON.parse(X)}catch(Z){return}};var VX=w(()=>{R();i8=/^[a-z][a-z0-9+.-]*:/i,J6=Y6});var O7=(X)=>new Promise((Z)=>setTimeout(Z,X));var M7=()=>{};var e="0.81.0";var W6=()=>{};function n8(){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 a8(){if(typeof navigator>"u"||!navigator)return null;let X=[{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:Z,pattern:$}of X){let Y=$.exec(navigator.userAgent);if(Y){let J=Y[1]||0,K=Y[2]||0,W=Y[3]||0;return{browser:Z,version:`${J}.${K}.${W}`}}}return null}var j7=()=>{return typeof window<"u"&&typeof window.document<"u"&&typeof navigator<"u"},o8=()=>{let X=n8();if(X==="deno")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":e,"X-Stainless-OS":D7(Deno.build.os),"X-Stainless-Arch":A7(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":e,"X-Stainless-OS":"Unknown","X-Stainless-Arch":`other:${EdgeRuntime}`,"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":globalThis.process.version};if(X==="node")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":e,"X-Stainless-OS":D7(globalThis.process.platform??"unknown"),"X-Stainless-Arch":A7(globalThis.process.arch??"unknown"),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":globalThis.process.version??"unknown"};let Z=a8();if(Z)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":e,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":`browser:${Z.browser}`,"X-Stainless-Runtime-Version":Z.version};return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":e,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}},A7=(X)=>{if(X==="x32")return"x32";if(X==="x86_64"||X==="x64")return"x64";if(X==="arm")return"arm";if(X==="aarch64"||X==="arm64")return"arm64";if(X)return`other:${X}`;return"unknown"},D7=(X)=>{if(X=X.toLowerCase(),X.includes("ios"))return"iOS";if(X==="android")return"Android";if(X==="darwin")return"MacOS";if(X==="win32")return"Windows";if(X==="freebsd")return"FreeBSD";if(X==="openbsd")return"OpenBSD";if(X==="linux")return"Linux";if(X)return`Other:${X}`;return"Unknown"},E7,T7=()=>{return E7??(E7=o8())};var V6=w(()=>{W6()});function I7(){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 Q6(...X){let Z=globalThis.ReadableStream;if(typeof Z>"u")throw Error("`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`");return new Z(...X)}function TZ(X){let Z=Symbol.asyncIterator in X?X[Symbol.asyncIterator]():X[Symbol.iterator]();return Q6({start(){},async pull($){let{done:Y,value:J}=await Z.next();if(Y)$.close();else $.enqueue(J)},async cancel(){await Z.return?.()}})}function dX(X){if(X[Symbol.asyncIterator])return X;let Z=X.getReader();return{async next(){try{let $=await Z.read();if($?.done)Z.releaseLock();return $}catch($){throw Z.releaseLock(),$}},async return(){let $=Z.cancel();return Z.releaseLock(),await $,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}async function F7(X){if(X===null||typeof X!=="object")return;if(X[Symbol.asyncIterator]){await X[Symbol.asyncIterator]().return?.();return}let Z=X.getReader(),$=Z.cancel();Z.releaseLock(),await $}var HX=()=>{};var B7=({headers:X,body:Z})=>{return{bodyHeaders:{"content-type":"application/json"},body:JSON.stringify(Z)}};var S7=()=>{};function L7(X){return Object.entries(X).filter(([Z,$])=>typeof $<"u").map(([Z,$])=>{if(typeof $==="string"||typeof $==="number"||typeof $==="boolean")return`${encodeURIComponent(Z)}=${encodeURIComponent($)}`;if($===null)return`${encodeURIComponent(Z)}=`;throw new N(`Cannot stringify type ${typeof $}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`)}).join("&")}var k7=w(()=>{R()});function y7(X){let Z=0;for(let J of X)Z+=J.length;let $=new Uint8Array(Z),Y=0;for(let J of X)$.set(J,Y),Y+=J.length;return $}function mX(X){let Z;return(R7??(Z=new globalThis.TextEncoder,R7=Z.encode.bind(Z)))(X)}function z6(X){let Z;return(P7??(Z=new globalThis.TextDecoder,P7=Z.decode.bind(Z)))(X)}var R7,P7;var G6=()=>{};class XX{constructor(){P.set(this,void 0),y.set(this,void 0),G(this,P,new Uint8Array,"f"),G(this,y,null,"f")}decode(X){if(X==null)return[];let Z=X instanceof ArrayBuffer?new Uint8Array(X):typeof X==="string"?mX(X):X;G(this,P,y7([V(this,P,"f"),Z]),"f");let $=[],Y;while((Y=s8(V(this,P,"f"),V(this,y,"f")))!=null){if(Y.carriage&&V(this,y,"f")==null){G(this,y,Y.index,"f");continue}if(V(this,y,"f")!=null&&(Y.index!==V(this,y,"f")+1||Y.carriage)){$.push(z6(V(this,P,"f").subarray(0,V(this,y,"f")-1))),G(this,P,V(this,P,"f").subarray(V(this,y,"f")),"f"),G(this,y,null,"f");continue}let J=V(this,y,"f")!==null?Y.preceding-1:Y.preceding,K=z6(V(this,P,"f").subarray(0,J));$.push(K),G(this,P,V(this,P,"f").subarray(Y.index),"f"),G(this,y,null,"f")}return $}flush(){if(!V(this,P,"f").length)return[];return this.decode(`
|
|
2
|
+
`)}}function s8(X,Z){for(let J=Z??0;J<X.length;J++){if(X[J]===10)return{preceding:J,index:J+1,carriage:!1};if(X[J]===13)return{preceding:J,index:J+1,carriage:!0}}return null}function _7(X){for(let Y=0;Y<X.length-1;Y++){if(X[Y]===10&&X[Y+1]===10)return Y+2;if(X[Y]===13&&X[Y+1]===13)return Y+2;if(X[Y]===13&&X[Y+1]===10&&Y+3<X.length&&X[Y+2]===13&&X[Y+3]===10)return Y+4}return-1}var P,y;var N6=w(()=>{n();G6();P=new WeakMap,y=new WeakMap;XX.NEWLINE_CHARS=new Set([`
|
|
3
|
+
`,"\r"]);XX.NEWLINE_REGEXP=/\r\n|[\n\r]/g});function uX(){}function IZ(X,Z,$){if(!Z||FZ[X]>FZ[$])return uX;else return Z[X].bind(Z)}function L(X){let Z=X.logger,$=X.logLevel??"off";if(!Z)return e8;let Y=f7.get(Z);if(Y&&Y[0]===$)return Y[1];let J={error:IZ("error",Z,$),warn:IZ("warn",Z,$),info:IZ("info",Z,$),debug:IZ("debug",Z,$)};return f7.set(Z,[$,J]),J}var FZ,w6=(X,Z,$)=>{if(!X)return;if(H7(FZ,X))return X;L($).warn(`${Z} was set to ${JSON.stringify(X)}, expected one of ${JSON.stringify(Object.keys(FZ))}`);return},e8,f7,o=(X)=>{if(X.options)X.options={...X.options},delete X.options.headers;if(X.headers)X.headers=Object.fromEntries((X.headers instanceof Headers?[...X.headers]:Object.entries(X.headers)).map(([Z,$])=>[Z,Z.toLowerCase()==="x-api-key"||Z.toLowerCase()==="authorization"||Z.toLowerCase()==="cookie"||Z.toLowerCase()==="set-cookie"?"***":$]));if("retryOfRequestLogID"in X){if(X.retryOfRequestLogID)X.retryOf=X.retryOfRequestLogID;delete X.retryOfRequestLogID}return X};var BZ=w(()=>{VX();FZ={off:0,error:200,warn:300,info:400,debug:500};e8={error:uX,warn:uX,info:uX,debug:uX},f7=new WeakMap});async function*X$(X,Z){if(!X.body){if(Z.abort(),typeof globalThis.navigator<"u"&&globalThis.navigator.product==="ReactNative")throw new N("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 N("Attempted to iterate over a response with no body")}let $=new b7,Y=new XX,J=dX(X.body);for await(let K of Z$(J))for(let W of Y.decode(K)){let Q=$.decode(W);if(Q)yield Q}for(let K of Y.flush()){let W=$.decode(K);if(W)yield W}}async function*Z$(X){let Z=new Uint8Array;for await(let $ of X){if($==null)continue;let Y=$ instanceof ArrayBuffer?new Uint8Array($):typeof $==="string"?mX($):$,J=new Uint8Array(Z.length+Y.length);J.set(Z),J.set(Y,Z.length),Z=J;let K;while((K=_7(Z))!==-1)yield Z.slice(0,K),Z=Z.slice(K)}if(Z.length>0)yield Z}class b7{constructor(){this.event=null,this.data=[],this.chunks=[]}decode(X){if(X.endsWith("\r"))X=X.substring(0,X.length-1);if(!X){if(!this.event&&!this.data.length)return null;let J={event:this.event,data:this.data.join(`
|
|
4
|
+
`),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],J}if(this.chunks.push(X),X.startsWith(":"))return null;let[Z,$,Y]=$$(X,":");if(Y.startsWith(" "))Y=Y.substring(1);if(Z==="event")this.event=Y;else if(Z==="data")this.data.push(Y);return null}}function $$(X,Z){let $=X.indexOf(Z);if($!==-1)return[X.substring(0,$),Z,X.substring($+Z.length)];return[X,"",""]}var pX,_;var U6=w(()=>{n();R();HX();N6();HX();CX();VX();G6();BZ();R();_=class _{constructor(X,Z,$){this.iterator=X,pX.set(this,void 0),this.controller=Z,G(this,pX,$,"f")}static fromSSEResponse(X,Z,$){let Y=!1,J=$?L($):console;async function*K(){if(Y)throw new N("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");Y=!0;let W=!1;try{for await(let Q of X$(X,Z)){if(Q.event==="completion")try{yield JSON.parse(Q.data)}catch(z){throw J.error("Could not parse message into JSON:",Q.data),J.error("From chunk:",Q.raw),z}if(Q.event==="message_start"||Q.event==="message_delta"||Q.event==="message_stop"||Q.event==="content_block_start"||Q.event==="content_block_delta"||Q.event==="content_block_stop")try{yield JSON.parse(Q.data)}catch(z){throw J.error("Could not parse message into JSON:",Q.data),J.error("From chunk:",Q.raw),z}if(Q.event==="ping")continue;if(Q.event==="error"){let z=jZ(Q.data)??Q.data,x=z?.error?.type;throw new F(void 0,z,void 0,X.headers,x)}}W=!0}catch(Q){if(i(Q))return;throw Q}finally{if(!W)Z.abort()}}return new _(K,Z,$)}static fromReadableStream(X,Z,$){let Y=!1;async function*J(){let W=new XX,Q=dX(X);for await(let z of Q)for(let x of W.decode(z))yield x;for(let z of W.flush())yield z}async function*K(){if(Y)throw new N("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");Y=!0;let W=!1;try{for await(let Q of J()){if(W)continue;if(Q)yield JSON.parse(Q)}W=!0}catch(Q){if(i(Q))return;throw Q}finally{if(!W)Z.abort()}}return new _(K,Z,$)}[(pX=new WeakMap,Symbol.asyncIterator)](){return this.iterator()}tee(){let X=[],Z=[],$=this.iterator(),Y=(J)=>{return{next:()=>{if(J.length===0){let K=$.next();X.push(K),Z.push(K)}return J.shift()}}};return[new _(()=>Y(X),this.controller,V(this,pX,"f")),new _(()=>Y(Z),this.controller,V(this,pX,"f"))]}toReadableStream(){let X=this,Z;return Q6({async start(){Z=X[Symbol.asyncIterator]()},async pull($){try{let{value:Y,done:J}=await Z.next();if(J)return $.close();let K=mX(JSON.stringify(Y)+`
|
|
5
|
+
`);$.enqueue(K)}catch(Y){$.error(Y)}},async cancel(){await Z.return?.()}})}}});async function SZ(X,Z){let{response:$,requestLogID:Y,retryOfRequestLogID:J,startTime:K}=Z,W=await(async()=>{if(Z.options.stream){if(L(X).debug("response",$.status,$.url,$.headers,$.body),Z.options.__streamClass)return Z.options.__streamClass.fromSSEResponse($,Z.controller);return _.fromSSEResponse($,Z.controller)}if($.status===204)return null;if(Z.options.__binaryResponse)return $;let z=$.headers.get("content-type")?.split(";")[0]?.trim();if(z?.includes("application/json")||z?.endsWith("+json")){if($.headers.get("content-length")==="0")return;let U=await $.json();return q6(U,$)}return await $.text()})();return L(X).debug(`[${Y}] response parsed`,o({retryOfRequestLogID:J,url:$.url,status:$.status,body:W,durationMs:Date.now()-K})),W}function q6(X,Z){if(!X||typeof X!=="object"||Array.isArray(X))return X;return Object.defineProperty(X,"_request_id",{value:Z.headers.get("request-id"),enumerable:!1})}var C6=w(()=>{U6();BZ()});var lX,QX;var LZ=w(()=>{n();C6();QX=class QX extends Promise{constructor(X,Z,$=SZ){super((Y)=>{Y(null)});this.responsePromise=Z,this.parseResponse=$,lX.set(this,void 0),G(this,lX,X,"f")}_thenUnwrap(X){return new QX(V(this,lX,"f"),this.responsePromise,async(Z,$)=>q6(X(await this.parseResponse(Z,$),$),$.response))}asResponse(){return this.responsePromise.then((X)=>X.response)}async withResponse(){let[X,Z]=await Promise.all([this.parse(),this.asResponse()]);return{data:X,response:Z,request_id:Z.headers.get("request-id")}}parse(){if(!this.parsedPromise)this.parsedPromise=this.responsePromise.then((X)=>this.parseResponse(V(this,lX,"f"),X));return this.parsedPromise}then(X,Z){return this.parse().then(X,Z)}catch(X){return this.parse().catch(X)}finally(X){return this.parse().finally(X)}};lX=new WeakMap});var kZ,H6,RZ,c,iX;var u=w(()=>{n();R();C6();LZ();VX();H6=class H6{constructor(X,Z,$,Y){kZ.set(this,void 0),G(this,kZ,X,"f"),this.options=Y,this.response=Z,this.body=$}hasNextPage(){if(!this.getPaginatedItems().length)return!1;return this.nextPageRequestOptions()!=null}async getNextPage(){let X=this.nextPageRequestOptions();if(!X)throw new N("No next page expected; please check `.hasNextPage()` before calling `.getNextPage()`.");return await V(this,kZ,"f").requestAPIList(this.constructor,X)}async*iterPages(){let X=this;yield X;while(X.hasNextPage())X=await X.getNextPage(),yield X}async*[(kZ=new WeakMap,Symbol.asyncIterator)](){for await(let X of this.iterPages())for(let Z of X.getPaginatedItems())yield Z}};RZ=class RZ extends QX{constructor(X,Z,$){super(X,Z,async(Y,J)=>new $(Y,J.response,await SZ(Y,J),J.options))}async*[Symbol.asyncIterator](){let X=await this;for await(let Z of X)yield Z}};c=class c extends H6{constructor(X,Z,$,Y){super(X,Z,$,Y);this.data=$.data||[],this.has_more=$.has_more||!1,this.first_id=$.first_id||null,this.last_id=$.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 Z=this.first_id;if(!Z)return null;return{...this.options,query:{...EZ(this.options.query),before_id:Z}}}let X=this.last_id;if(!X)return null;return{...this.options,query:{...EZ(this.options.query),after_id:X}}}};iX=class iX extends H6{constructor(X,Z,$,Y){super(X,Z,$,Y);this.data=$.data||[],this.has_more=$.has_more||!1,this.next_page=$.next_page||null}getPaginatedItems(){return this.data??[]}hasNextPage(){if(this.has_more===!1)return!1;return super.hasNextPage()}nextPageRequestOptions(){let X=this.next_page;if(!X)return null;return{...this.options,query:{...EZ(this.options.query),page:X}}}}});function zX(X,Z,$){return O6(),new File(X,Z??"unknown_file",$)}function nX(X,Z){let $=typeof X==="object"&&X!==null&&(("name"in X)&&X.name&&String(X.name)||("url"in X)&&X.url&&String(X.url)||("filename"in X)&&X.filename&&String(X.filename)||("path"in X)&&X.path&&String(X.path))||"";return Z?$.split(/[\\/]/).pop()||void 0:$}function J$(X){let Z=typeof X==="function"?X:X.fetch,$=h7.get(Z);if($)return $;let Y=(async()=>{try{let J="Response"in Z?Z.Response:(await Z("data:,")).constructor,K=new FormData;if(K.toString()===await new J(K).text())return!1;return!0}catch{return!0}})();return h7.set(Z,Y),Y}var O6=()=>{if(typeof File>"u"){let{process:X}=globalThis,Z=typeof X?.versions?.node==="string"&&parseInt(X.versions.node.split("."))<20;throw Error("`File` is not defined as a global, which is required for file uploads."+(Z?" Update to Node 20 LTS or newer, or set `globalThis.File` to `import('node:buffer').File`.":""))}},M6=(X)=>X!=null&&typeof X==="object"&&typeof X[Symbol.asyncIterator]==="function",xX=async(X,Z,$=!0)=>{return{...X,body:await K$(X.body,Z,$)}},h7,K$=async(X,Z,$=!0)=>{if(!await J$(Z))throw TypeError("The provided fetch function does not support file uploads with the current global FormData class.");let Y=new FormData;return await Promise.all(Object.entries(X||{}).map(([J,K])=>x6(Y,J,K,$))),Y},W$=(X)=>X instanceof Blob&&("name"in X),x6=async(X,Z,$,Y)=>{if($===void 0)return;if($==null)throw TypeError(`Received null for "${Z}"; to pass null in FormData, you must use the string 'null'`);if(typeof $==="string"||typeof $==="number"||typeof $==="boolean")X.append(Z,String($));else if($ instanceof Response){let J={},K=$.headers.get("Content-Type");if(K)J={type:K};X.append(Z,zX([await $.blob()],nX($,Y),J))}else if(M6($))X.append(Z,zX([await new Response(TZ($)).blob()],nX($,Y)));else if(W$($))X.append(Z,zX([$],nX($,Y),{type:$.type}));else if(Array.isArray($))await Promise.all($.map((J)=>x6(X,Z+"[]",J,Y)));else if(typeof $==="object")await Promise.all(Object.entries($).map(([J,K])=>x6(X,`${Z}[${J}]`,K,Y)));else throw TypeError(`Invalid value given to form, expected a string, number, boolean, object, Array, File or Blob but got ${$} instead`)};var OX=w(()=>{HX();h7=new WeakMap});async function PZ(X,Z,$){if(O6(),X=await X,Z||(Z=nX(X,!0)),V$(X)){if(X instanceof File&&Z==null&&$==null)return X;return zX([await X.arrayBuffer()],Z??X.name,{type:X.type,lastModified:X.lastModified,...$})}if(Q$(X)){let J=await X.blob();return Z||(Z=new URL(X.url).pathname.split(/[\\/]/).pop()),zX(await A6(J),Z,$)}let Y=await A6(X);if(!$?.type){let J=Y.find((K)=>typeof K==="object"&&("type"in K)&&K.type);if(typeof J==="string")$={...$,type:J}}return zX(Y,Z,$)}async function A6(X){let Z=[];if(typeof X==="string"||ArrayBuffer.isView(X)||X instanceof ArrayBuffer)Z.push(X);else if(v7(X))Z.push(X instanceof Blob?X:await X.arrayBuffer());else if(M6(X))for await(let $ of X)Z.push(...await A6($));else{let $=X?.constructor?.name;throw Error(`Unexpected data type: ${typeof X}${$?`; constructor: ${$}`:""}${z$(X)}`)}return Z}function z$(X){if(typeof X!=="object"||X===null)return"";return`; props: [${Object.getOwnPropertyNames(X).map(($)=>`"${$}"`).join(", ")}]`}var v7=(X)=>X!=null&&typeof X==="object"&&typeof X.size==="number"&&typeof X.type==="string"&&typeof X.text==="function"&&typeof X.slice==="function"&&typeof X.arrayBuffer==="function",V$=(X)=>X!=null&&typeof X==="object"&&typeof X.name==="string"&&typeof X.lastModified==="number"&&v7(X),Q$=(X)=>X!=null&&typeof X==="object"&&typeof X.url==="string"&&typeof X.blob==="function";var g7=w(()=>{OX();OX()});var D6=w(()=>{g7()});var c7=()=>{};class T{constructor(X){this._client=X}}var h=()=>{};function*N$(X){if(!X)return;if(d7 in X){let{values:Y,nulls:J}=X;yield*Y.entries();for(let K of J)yield[K,null];return}let Z=!1,$;if(X instanceof Headers)$=X.entries();else if(J6(X))$=X;else Z=!0,$=Object.entries(X??{});for(let Y of $){let J=Y[0];if(typeof J!=="string")throw TypeError("expected header name to be a string");let K=J6(Y[1])?Y[1]:[Y[1]],W=!1;for(let Q of K){if(Q===void 0)continue;if(Z&&!W)W=!0,yield[J,null];yield[J,Q]}}}var d7,q=(X)=>{let Z=new Headers,$=new Set;for(let Y of X){let J=new Set;for(let[K,W]of N$(Y)){let Q=K.toLowerCase();if(!J.has(Q))Z.delete(K),J.add(Q);if(W===null)Z.delete(K),$.add(Q);else Z.append(K,W),$.delete(Q)}}return{[d7]:!0,values:Z,nulls:$}};var f=w(()=>{VX();d7=Symbol.for("brand.privateNullableHeaders")});function yZ(X){return typeof X==="object"&&X!==null&&oX in X}function E6(X,Z){let $=new Set;if(X){for(let Y of X)if(yZ(Y))$.add(Y[oX])}if(Z)for(let Y of Z){if(yZ(Y))$.add(Y[oX]);if(Array.isArray(Y.content)){for(let J of Y.content)if(yZ(J))$.add(J[oX])}}return Array.from($)}function _Z(X,Z){let $=E6(X,Z);if($.length===0)return{};return{"x-stainless-helper":$.join(", ")}}function m7(X){if(yZ(X))return{"x-stainless-helper":X[oX]};return{}}var oX;var aX=w(()=>{oX=Symbol("anthropic.sdk.stainlessHelper")});function p7(X){return X.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g,encodeURIComponent)}var u7,w$=(X=p7)=>function($,...Y){if($.length===1)return $[0];let J=!1,K=[],W=$.reduce((H,M,U)=>{if(/[?#]/.test(M))J=!0;let O=Y[U],d=(J?encodeURIComponent:X)(""+O);if(U!==Y.length&&(O==null||typeof O==="object"&&O.toString===Object.getPrototypeOf(Object.getPrototypeOf(O.hasOwnProperty??u7)??u7)?.toString))d=O+"",K.push({start:H.length+M.length,length:d.length,error:`Value of type ${Object.prototype.toString.call(O).slice(8,-1)} is not a valid path parameter`});return H+M+(U===Y.length?"":d)},""),Q=W.split(/[?#]/,1)[0],z=/(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi,x;while((x=z.exec(Q))!==null)K.push({start:x.index,length:x[0].length,error:`Value "${x[0]}" can't be safely passed as a path parameter`});if(K.sort((H,M)=>H.start-M.start),K.length>0){let H=0,M=K.reduce((U,O)=>{let d=" ".repeat(O.start-H),kX="^".repeat(O.length);return H=O.start+O.length,U+d+kX},"");throw new N(`Path parameters result in path with invalid segments:
|
|
6
|
+
${K.map((U)=>U.error).join(`
|
|
7
|
+
`)}
|
|
8
|
+
${W}
|
|
9
|
+
${M}`)}return W},j;var ZX=w(()=>{R();u7=Object.freeze(Object.create(null)),j=w$(p7)});var rX;var j6=w(()=>{h();u();f();aX();OX();ZX();rX=class rX extends T{list(X={},Z){let{betas:$,...Y}=X??{};return this._client.getAPIList("/v1/files",c,{query:Y,...Z,headers:q([{"anthropic-beta":[...$??[],"files-api-2025-04-14"].toString()},Z?.headers])})}delete(X,Z={},$){let{betas:Y}=Z??{};return this._client.delete(j`/v1/files/${X}`,{...$,headers:q([{"anthropic-beta":[...Y??[],"files-api-2025-04-14"].toString()},$?.headers])})}download(X,Z={},$){let{betas:Y}=Z??{};return this._client.get(j`/v1/files/${X}/content`,{...$,headers:q([{"anthropic-beta":[...Y??[],"files-api-2025-04-14"].toString(),Accept:"application/binary"},$?.headers]),__binaryResponse:!0})}retrieveMetadata(X,Z={},$){let{betas:Y}=Z??{};return this._client.get(j`/v1/files/${X}`,{...$,headers:q([{"anthropic-beta":[...Y??[],"files-api-2025-04-14"].toString()},$?.headers])})}upload(X,Z){let{betas:$,...Y}=X;return this._client.post("/v1/files",xX({body:Y,...Z,headers:q([{"anthropic-beta":[...$??[],"files-api-2025-04-14"].toString()},m7(Y.file),Z?.headers])},this._client))}}});var tX;var T6=w(()=>{h();u();f();ZX();tX=class tX extends T{retrieve(X,Z={},$){let{betas:Y}=Z??{};return this._client.get(j`/v1/models/${X}?beta=true`,{...$,headers:q([{...Y?.toString()!=null?{"anthropic-beta":Y?.toString()}:void 0},$?.headers])})}list(X={},Z){let{betas:$,...Y}=X??{};return this._client.getAPIList("/v1/models?beta=true",c,{query:Y,...Z,headers:q([{...$?.toString()!=null?{"anthropic-beta":$?.toString()}:void 0},Z?.headers])})}}});var MX=w(()=>{R()});var fZ;var I6=w(()=>{fZ={"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 l7(X){return X?.output_format??X?.output_config?.format}function F6(X,Z,$){let Y=l7(Z);if(!Z||!("parse"in(Y??{})))return{...X,content:X.content.map((J)=>{if(J.type==="text"){let K=Object.defineProperty({...J},"parsed_output",{value:null,enumerable:!1});return Object.defineProperty(K,"parsed",{get(){return $.logger.warn("The `parsed` property on `text` blocks is deprecated, please use `parsed_output` instead."),null},enumerable:!1})}return J}),parsed_output:null};return B6(X,Z,$)}function B6(X,Z,$){let Y=null,J=X.content.map((K)=>{if(K.type==="text"){let W=C$(Z,K.text);if(Y===null)Y=W;let Q=Object.defineProperty({...K},"parsed_output",{value:W,enumerable:!1});return Object.defineProperty(Q,"parsed",{get(){return $.logger.warn("The `parsed` property on `text` blocks is deprecated, please use `parsed_output` instead."),W},enumerable:!1})}return K});return{...X,content:J,parsed_output:Y}}function C$(X,Z){let $=l7(X);if($?.type!=="json_schema")return null;try{if("parse"in $)return $.parse(Z);return JSON.parse(Z)}catch(Y){throw new N(`Failed to parse structured output: ${Y}`)}}var S6=w(()=>{R()});var H$=(X)=>{let Z=0,$=[];while(Z<X.length){let Y=X[Z];if(Y==="\\"){Z++;continue}if(Y==="{"){$.push({type:"brace",value:"{"}),Z++;continue}if(Y==="}"){$.push({type:"brace",value:"}"}),Z++;continue}if(Y==="["){$.push({type:"paren",value:"["}),Z++;continue}if(Y==="]"){$.push({type:"paren",value:"]"}),Z++;continue}if(Y===":"){$.push({type:"separator",value:":"}),Z++;continue}if(Y===","){$.push({type:"delimiter",value:","}),Z++;continue}if(Y==='"'){let Q="",z=!1;Y=X[++Z];while(Y!=='"'){if(Z===X.length){z=!0;break}if(Y==="\\"){if(Z++,Z===X.length){z=!0;break}Q+=Y+X[Z],Y=X[++Z]}else Q+=Y,Y=X[++Z]}if(Y=X[++Z],!z)$.push({type:"string",value:Q});continue}if(Y&&/\s/.test(Y)){Z++;continue}let K=/[0-9]/;if(Y&&K.test(Y)||Y==="-"||Y==="."){let Q="";if(Y==="-")Q+=Y,Y=X[++Z];while(Y&&K.test(Y)||Y===".")Q+=Y,Y=X[++Z];$.push({type:"number",value:Q});continue}let W=/[a-z]/i;if(Y&&W.test(Y)){let Q="";while(Y&&W.test(Y)){if(Z===X.length)break;Q+=Y,Y=X[++Z]}if(Q=="true"||Q=="false"||Q==="null")$.push({type:"name",value:Q});else{Z++;continue}continue}Z++}return $},AX=(X)=>{if(X.length===0)return X;let Z=X[X.length-1];switch(Z.type){case"separator":return X=X.slice(0,X.length-1),AX(X);break;case"number":let $=Z.value[Z.value.length-1];if($==="."||$==="-")return X=X.slice(0,X.length-1),AX(X);case"string":let Y=X[X.length-2];if(Y?.type==="delimiter")return X=X.slice(0,X.length-1),AX(X);else if(Y?.type==="brace"&&Y.value==="{")return X=X.slice(0,X.length-1),AX(X);break;case"delimiter":return X=X.slice(0,X.length-1),AX(X);break}return X},x$=(X)=>{let Z=[];if(X.map(($)=>{if($.type==="brace")if($.value==="{")Z.push("}");else Z.splice(Z.lastIndexOf("}"),1);if($.type==="paren")if($.value==="[")Z.push("]");else Z.splice(Z.lastIndexOf("]"),1)}),Z.length>0)Z.reverse().map(($)=>{if($==="}")X.push({type:"brace",value:"}"});else if($==="]")X.push({type:"paren",value:"]"})});return X},O$=(X)=>{let Z="";return X.map(($)=>{switch($.type){case"string":Z+='"'+$.value+'"';break;default:Z+=$.value;break}}),Z},bZ=(X)=>JSON.parse(O$(x$(AX(H$(X)))));var L6=()=>{};var k6=w(()=>{U6()});function a7(X){return X.type==="tool_use"||X.type==="server_tool_use"||X.type==="mcp_tool_use"}function r7(X){}var v,$X,DX,sX,hZ,eX,XZ,vZ,ZZ,a,$Z,gZ,cZ,GX,dZ,mZ,YZ,R6,i7,uZ,P6,y6,_6,n7,o7="__json_buf",JZ;var t7=w(()=>{n();L6();MX();CX();k6();S6();JZ=class JZ{constructor(X,Z){v.add(this),this.messages=[],this.receivedMessages=[],$X.set(this,void 0),DX.set(this,null),this.controller=new AbortController,sX.set(this,void 0),hZ.set(this,()=>{}),eX.set(this,()=>{}),XZ.set(this,void 0),vZ.set(this,()=>{}),ZZ.set(this,()=>{}),a.set(this,{}),$Z.set(this,!1),gZ.set(this,!1),cZ.set(this,!1),GX.set(this,!1),dZ.set(this,void 0),mZ.set(this,void 0),YZ.set(this,void 0),uZ.set(this,($)=>{if(G(this,gZ,!0,"f"),i($))$=new S;if($ instanceof S)return G(this,cZ,!0,"f"),this._emit("abort",$);if($ instanceof N)return this._emit("error",$);if($ instanceof Error){let Y=new N($.message);return Y.cause=$,this._emit("error",Y)}return this._emit("error",new N(String($)))}),G(this,sX,new Promise(($,Y)=>{G(this,hZ,$,"f"),G(this,eX,Y,"f")}),"f"),G(this,XZ,new Promise(($,Y)=>{G(this,vZ,$,"f"),G(this,ZZ,Y,"f")}),"f"),V(this,sX,"f").catch(()=>{}),V(this,XZ,"f").catch(()=>{}),G(this,DX,X,"f"),G(this,YZ,Z?.logger??console,"f")}get response(){return V(this,dZ,"f")}get request_id(){return V(this,mZ,"f")}async withResponse(){G(this,GX,!0,"f");let X=await V(this,sX,"f");if(!X)throw Error("Could not resolve a `Response` object");return{data:this,response:X,request_id:X.headers.get("request-id")}}static fromReadableStream(X){let Z=new JZ(null);return Z._run(()=>Z._fromReadableStream(X)),Z}static createMessage(X,Z,$,{logger:Y}={}){let J=new JZ(Z,{logger:Y});for(let K of Z.messages)J._addMessageParam(K);return G(J,DX,{...Z,stream:!0},"f"),J._run(()=>J._createMessage(X,{...Z,stream:!0},{...$,headers:{...$?.headers,"X-Stainless-Helper-Method":"stream"}})),J}_run(X){X().then(()=>{this._emitFinal(),this._emit("end")},V(this,uZ,"f"))}_addMessageParam(X){this.messages.push(X)}_addMessage(X,Z=!0){if(this.receivedMessages.push(X),Z)this._emit("message",X)}async _createMessage(X,Z,$){let Y=$?.signal,J;if(Y){if(Y.aborted)this.controller.abort();J=this.controller.abort.bind(this.controller),Y.addEventListener("abort",J)}try{V(this,v,"m",P6).call(this);let{response:K,data:W}=await X.create({...Z,stream:!0},{...$,signal:this.controller.signal}).withResponse();this._connected(K);for await(let Q of W)V(this,v,"m",y6).call(this,Q);if(W.controller.signal?.aborted)throw new S;V(this,v,"m",_6).call(this)}finally{if(Y&&J)Y.removeEventListener("abort",J)}}_connected(X){if(this.ended)return;G(this,dZ,X,"f"),G(this,mZ,X?.headers.get("request-id"),"f"),V(this,hZ,"f").call(this,X),this._emit("connect")}get ended(){return V(this,$Z,"f")}get errored(){return V(this,gZ,"f")}get aborted(){return V(this,cZ,"f")}abort(){this.controller.abort()}on(X,Z){return(V(this,a,"f")[X]||(V(this,a,"f")[X]=[])).push({listener:Z}),this}off(X,Z){let $=V(this,a,"f")[X];if(!$)return this;let Y=$.findIndex((J)=>J.listener===Z);if(Y>=0)$.splice(Y,1);return this}once(X,Z){return(V(this,a,"f")[X]||(V(this,a,"f")[X]=[])).push({listener:Z,once:!0}),this}emitted(X){return new Promise((Z,$)=>{if(G(this,GX,!0,"f"),X!=="error")this.once("error",$);this.once(X,Z)})}async done(){G(this,GX,!0,"f"),await V(this,XZ,"f")}get currentMessage(){return V(this,$X,"f")}async finalMessage(){return await this.done(),V(this,v,"m",R6).call(this)}async finalText(){return await this.done(),V(this,v,"m",i7).call(this)}_emit(X,...Z){if(V(this,$Z,"f"))return;if(X==="end")G(this,$Z,!0,"f"),V(this,vZ,"f").call(this);let $=V(this,a,"f")[X];if($)V(this,a,"f")[X]=$.filter((Y)=>!Y.once),$.forEach(({listener:Y})=>Y(...Z));if(X==="abort"){let Y=Z[0];if(!V(this,GX,"f")&&!$?.length)Promise.reject(Y);V(this,eX,"f").call(this,Y),V(this,ZZ,"f").call(this,Y),this._emit("end");return}if(X==="error"){let Y=Z[0];if(!V(this,GX,"f")&&!$?.length)Promise.reject(Y);V(this,eX,"f").call(this,Y),V(this,ZZ,"f").call(this,Y),this._emit("end")}}_emitFinal(){if(this.receivedMessages.at(-1))this._emit("finalMessage",V(this,v,"m",R6).call(this))}async _fromReadableStream(X,Z){let $=Z?.signal,Y;if($){if($.aborted)this.controller.abort();Y=this.controller.abort.bind(this.controller),$.addEventListener("abort",Y)}try{V(this,v,"m",P6).call(this),this._connected(null);let J=_.fromReadableStream(X,this.controller);for await(let K of J)V(this,v,"m",y6).call(this,K);if(J.controller.signal?.aborted)throw new S;V(this,v,"m",_6).call(this)}finally{if($&&Y)$.removeEventListener("abort",Y)}}[($X=new WeakMap,DX=new WeakMap,sX=new WeakMap,hZ=new WeakMap,eX=new WeakMap,XZ=new WeakMap,vZ=new WeakMap,ZZ=new WeakMap,a=new WeakMap,$Z=new WeakMap,gZ=new WeakMap,cZ=new WeakMap,GX=new WeakMap,dZ=new WeakMap,mZ=new WeakMap,YZ=new WeakMap,uZ=new WeakMap,v=new WeakSet,R6=function(){if(this.receivedMessages.length===0)throw new N("stream ended without producing a Message with role=assistant");return this.receivedMessages.at(-1)},i7=function(){if(this.receivedMessages.length===0)throw new N("stream ended without producing a Message with role=assistant");let Z=this.receivedMessages.at(-1).content.filter(($)=>$.type==="text").map(($)=>$.text);if(Z.length===0)throw new N("stream ended without producing a content block with type=text");return Z.join(" ")},P6=function(){if(this.ended)return;G(this,$X,void 0,"f")},y6=function(Z){if(this.ended)return;let $=V(this,v,"m",n7).call(this,Z);switch(this._emit("streamEvent",Z,$),Z.type){case"content_block_delta":{let Y=$.content.at(-1);switch(Z.delta.type){case"text_delta":{if(Y.type==="text")this._emit("text",Z.delta.text,Y.text||"");break}case"citations_delta":{if(Y.type==="text")this._emit("citation",Z.delta.citation,Y.citations??[]);break}case"input_json_delta":{if(a7(Y)&&Y.input)this._emit("inputJson",Z.delta.partial_json,Y.input);break}case"thinking_delta":{if(Y.type==="thinking")this._emit("thinking",Z.delta.thinking,Y.thinking);break}case"signature_delta":{if(Y.type==="thinking")this._emit("signature",Y.signature);break}case"compaction_delta":{if(Y.type==="compaction"&&Y.content)this._emit("compaction",Y.content);break}default:r7(Z.delta)}break}case"message_stop":{this._addMessageParam($),this._addMessage(F6($,V(this,DX,"f"),{logger:V(this,YZ,"f")}),!0);break}case"content_block_stop":{this._emit("contentBlock",$.content.at(-1));break}case"message_start":{G(this,$X,$,"f");break}case"content_block_start":case"message_delta":break}},_6=function(){if(this.ended)throw new N("stream has ended, this shouldn't happen");let Z=V(this,$X,"f");if(!Z)throw new N("request ended without sending any chunks");return G(this,$X,void 0,"f"),F6(Z,V(this,DX,"f"),{logger:V(this,YZ,"f")})},n7=function(Z){let $=V(this,$X,"f");if(Z.type==="message_start"){if($)throw new N(`Unexpected event order, got ${Z.type} before receiving "message_stop"`);return Z.message}if(!$)throw new N(`Unexpected event order, got ${Z.type} before "message_start"`);switch(Z.type){case"message_stop":return $;case"message_delta":if($.container=Z.delta.container,$.stop_reason=Z.delta.stop_reason,$.stop_sequence=Z.delta.stop_sequence,$.usage.output_tokens=Z.usage.output_tokens,$.context_management=Z.context_management,Z.usage.input_tokens!=null)$.usage.input_tokens=Z.usage.input_tokens;if(Z.usage.cache_creation_input_tokens!=null)$.usage.cache_creation_input_tokens=Z.usage.cache_creation_input_tokens;if(Z.usage.cache_read_input_tokens!=null)$.usage.cache_read_input_tokens=Z.usage.cache_read_input_tokens;if(Z.usage.server_tool_use!=null)$.usage.server_tool_use=Z.usage.server_tool_use;if(Z.usage.iterations!=null)$.usage.iterations=Z.usage.iterations;return $;case"content_block_start":return $.content.push(Z.content_block),$;case"content_block_delta":{let Y=$.content.at(Z.index);switch(Z.delta.type){case"text_delta":{if(Y?.type==="text")$.content[Z.index]={...Y,text:(Y.text||"")+Z.delta.text};break}case"citations_delta":{if(Y?.type==="text")$.content[Z.index]={...Y,citations:[...Y.citations??[],Z.delta.citation]};break}case"input_json_delta":{if(Y&&a7(Y)){let J=Y[o7]||"";J+=Z.delta.partial_json;let K={...Y};if(Object.defineProperty(K,o7,{value:J,enumerable:!1,writable:!0}),J)try{K.input=bZ(J)}catch(W){let Q=new N(`Unable to parse tool parameter JSON from model. Please retry your request or adjust your prompt. Error: ${W}. JSON: ${J}`);V(this,uZ,"f").call(this,Q)}$.content[Z.index]=K}break}case"thinking_delta":{if(Y?.type==="thinking")$.content[Z.index]={...Y,thinking:Y.thinking+Z.delta.thinking};break}case"signature_delta":{if(Y?.type==="thinking")$.content[Z.index]={...Y,signature:Z.delta.signature};break}case"compaction_delta":{if(Y?.type==="compaction")$.content[Z.index]={...Y,content:(Y.content||"")+Z.delta.content};break}default:r7(Z.delta)}return $}case"content_block_stop":return $}},Symbol.asyncIterator)](){let X=[],Z=[],$=!1;return this.on("streamEvent",(Y)=>{let J=Z.shift();if(J)J.resolve(Y);else X.push(Y)}),this.on("end",()=>{$=!0;for(let Y of Z)Y.resolve(void 0);Z.length=0}),this.on("abort",(Y)=>{$=!0;for(let J of Z)J.reject(Y);Z.length=0}),this.on("error",(Y)=>{$=!0;for(let J of Z)J.reject(Y);Z.length=0}),{next:async()=>{if(!X.length){if($)return{value:void 0,done:!0};return new Promise((J,K)=>Z.push({resolve:J,reject:K})).then((J)=>J?{value:J,done:!1}:{value:void 0,done:!0})}return{value:X.shift(),done:!1}},return:async()=>{return this.abort(),{value:void 0,done:!0}}}}toReadableStream(){return new _(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}}});var EX;var pZ=w(()=>{EX=class EX extends Error{constructor(X){let Z=typeof X==="string"?X:X.map(($)=>{if($.type==="text")return $.text;return`[${$.type}]`}).join(" ");super(Z);this.name="ToolError",this.content=X}}});var s7=1e5,e7=`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 X8=()=>{};function $8(){let X,Z;return{promise:new Promise((Y,J)=>{X=Y,Z=J}),resolve:X,reject:Z}}async function M$(X,Z=X.messages.at(-1)){if(!Z||Z.role!=="assistant"||!Z.content||typeof Z.content==="string")return null;let $=Z.content.filter((J)=>J.type==="tool_use");if($.length===0)return null;return{role:"user",content:await Promise.all($.map(async(J)=>{let K=X.tools.find((W)=>("name"in W?W.name:W.mcp_server_name)===J.name);if(!K||!("run"in K))return{type:"tool_result",tool_use_id:J.id,content:`Error: Tool '${J.name}' not found`,is_error:!0};try{let W=J.input;if("parse"in K&&K.parse)W=K.parse(W);let Q=await K.run(W);return{type:"tool_result",tool_use_id:J.id,content:Q}}catch(W){return{type:"tool_result",tool_use_id:J.id,content:W instanceof EX?W.content:`Error: ${W instanceof Error?W.message:String(W)}`,is_error:!0}}}))}}var KZ,jX,NX,B,WZ,b,r,YX,VZ,Z8,f6,QZ;var b6=w(()=>{n();pZ();R();f();X8();aX();QZ=class QZ{constructor(X,Z,$){KZ.add(this),this.client=X,jX.set(this,!1),NX.set(this,!1),B.set(this,void 0),WZ.set(this,void 0),b.set(this,void 0),r.set(this,void 0),YX.set(this,void 0),VZ.set(this,0),G(this,B,{params:{...Z,messages:structuredClone(Z.messages)}},"f");let J=["BetaToolRunner",...E6(Z.tools,Z.messages)].join(", ");G(this,WZ,{...$,headers:q([{"x-stainless-helper":J},$?.headers])},"f"),G(this,YX,$8(),"f")}async*[(jX=new WeakMap,NX=new WeakMap,B=new WeakMap,WZ=new WeakMap,b=new WeakMap,r=new WeakMap,YX=new WeakMap,VZ=new WeakMap,KZ=new WeakSet,Z8=async function(){let Z=V(this,B,"f").params.compactionControl;if(!Z||!Z.enabled)return!1;let $=0;if(V(this,b,"f")!==void 0)try{let z=await V(this,b,"f");$=z.usage.input_tokens+(z.usage.cache_creation_input_tokens??0)+(z.usage.cache_read_input_tokens??0)+z.usage.output_tokens}catch{return!1}let Y=Z.contextTokenThreshold??s7;if($<Y)return!1;let J=Z.model??V(this,B,"f").params.model,K=Z.summaryPrompt??e7,W=V(this,B,"f").params.messages;if(W[W.length-1].role==="assistant"){let z=W[W.length-1];if(Array.isArray(z.content)){let x=z.content.filter((H)=>H.type!=="tool_use");if(x.length===0)W.pop();else z.content=x}}let Q=await this.client.beta.messages.create({model:J,messages:[...W,{role:"user",content:[{type:"text",text:K}]}],max_tokens:V(this,B,"f").params.max_tokens},{headers:{"x-stainless-helper":"compaction"}});if(Q.content[0]?.type!=="text")throw new N("Expected text response for compaction");return V(this,B,"f").params.messages=[{role:"user",content:Q.content}],!0},Symbol.asyncIterator)](){var X;if(V(this,jX,"f"))throw new N("Cannot iterate over a consumed stream");G(this,jX,!0,"f"),G(this,NX,!0,"f"),G(this,r,void 0,"f");try{while(!0){let Z;try{if(V(this,B,"f").params.max_iterations&&V(this,VZ,"f")>=V(this,B,"f").params.max_iterations)break;G(this,NX,!1,"f"),G(this,r,void 0,"f"),G(this,VZ,(X=V(this,VZ,"f"),X++,X),"f"),G(this,b,void 0,"f");let{max_iterations:$,compactionControl:Y,...J}=V(this,B,"f").params;if(J.stream)Z=this.client.beta.messages.stream({...J},V(this,WZ,"f")),G(this,b,Z.finalMessage(),"f"),V(this,b,"f").catch(()=>{}),yield Z;else G(this,b,this.client.beta.messages.create({...J,stream:!1},V(this,WZ,"f")),"f"),yield V(this,b,"f");if(!await V(this,KZ,"m",Z8).call(this)){if(!V(this,NX,"f")){let{role:Q,content:z}=await V(this,b,"f");V(this,B,"f").params.messages.push({role:Q,content:z})}let W=await V(this,KZ,"m",f6).call(this,V(this,B,"f").params.messages.at(-1));if(W)V(this,B,"f").params.messages.push(W);else if(!V(this,NX,"f"))break}}finally{if(Z)Z.abort()}}if(!V(this,b,"f"))throw new N("ToolRunner concluded without a message from the server");V(this,YX,"f").resolve(await V(this,b,"f"))}catch(Z){throw G(this,jX,!1,"f"),V(this,YX,"f").promise.catch(()=>{}),V(this,YX,"f").reject(Z),G(this,YX,$8(),"f"),Z}}setMessagesParams(X){if(typeof X==="function")V(this,B,"f").params=X(V(this,B,"f").params);else V(this,B,"f").params=X;G(this,NX,!0,"f"),G(this,r,void 0,"f")}async generateToolResponse(){let X=await V(this,b,"f")??this.params.messages.at(-1);if(!X)return null;return V(this,KZ,"m",f6).call(this,X)}done(){return V(this,YX,"f").promise}async runUntilDone(){if(!V(this,jX,"f"))for await(let X of this);return this.done()}get params(){return V(this,B,"f").params}pushMessages(...X){this.setMessagesParams((Z)=>({...Z,messages:[...Z.messages,...X]}))}then(X,Z){return this.runUntilDone().then(X,Z)}};f6=async function(Z){if(V(this,r,"f")!==void 0)return V(this,r,"f");return G(this,r,M$(V(this,B,"f").params,Z),"f"),V(this,r,"f")}});var TX;var h6=w(()=>{R();HX();N6();TX=class TX{constructor(X,Z){this.iterator=X,this.controller=Z}async*decoder(){let X=new XX;for await(let Z of this.iterator)for(let $ of X.decode(Z))yield JSON.parse($);for(let Z of X.flush())yield JSON.parse(Z)}[Symbol.asyncIterator](){return this.decoder()}static fromResponse(X,Z){if(!X.body){if(Z.abort(),typeof globalThis.navigator<"u"&&globalThis.navigator.product==="ReactNative")throw new N("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 N("Attempted to iterate over a response with no body")}return new TX(dX(X.body),Z)}}});var zZ;var v6=w(()=>{h();u();f();h6();MX();ZX();zZ=class zZ extends T{create(X,Z){let{betas:$,...Y}=X;return this._client.post("/v1/messages/batches?beta=true",{body:Y,...Z,headers:q([{"anthropic-beta":[...$??[],"message-batches-2024-09-24"].toString()},Z?.headers])})}retrieve(X,Z={},$){let{betas:Y}=Z??{};return this._client.get(j`/v1/messages/batches/${X}?beta=true`,{...$,headers:q([{"anthropic-beta":[...Y??[],"message-batches-2024-09-24"].toString()},$?.headers])})}list(X={},Z){let{betas:$,...Y}=X??{};return this._client.getAPIList("/v1/messages/batches?beta=true",c,{query:Y,...Z,headers:q([{"anthropic-beta":[...$??[],"message-batches-2024-09-24"].toString()},Z?.headers])})}delete(X,Z={},$){let{betas:Y}=Z??{};return this._client.delete(j`/v1/messages/batches/${X}?beta=true`,{...$,headers:q([{"anthropic-beta":[...Y??[],"message-batches-2024-09-24"].toString()},$?.headers])})}cancel(X,Z={},$){let{betas:Y}=Z??{};return this._client.post(j`/v1/messages/batches/${X}/cancel?beta=true`,{...$,headers:q([{"anthropic-beta":[...Y??[],"message-batches-2024-09-24"].toString()},$?.headers])})}async results(X,Z={},$){let Y=await this.retrieve(X);if(!Y.results_url)throw new N(`No batch \`results_url\`; Has it finished processing? ${Y.processing_status} - ${Y.id}`);let{betas:J}=Z??{};return this._client.get(Y.results_url,{...$,headers:q([{"anthropic-beta":[...J??[],"message-batches-2024-09-24"].toString(),Accept:"application/binary"},$?.headers]),stream:!0,__binaryResponse:!0})._thenUnwrap((K,W)=>TX.fromResponse(W.response,W.controller))}}});function J8(X){if(!X.output_format)return X;if(X.output_config?.format)throw new N("Both output_format and output_config.format were provided. Please use only output_config.format (output_format is deprecated).");let{output_format:Z,...$}=X;return{...$,output_config:{...X.output_config,format:Z}}}var Y8,D$,JX;var g6=w(()=>{MX();h();I6();f();aX();S6();t7();b6();pZ();v6();v6();b6();pZ();Y8={"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"},D$=["claude-opus-4-6"];JX=class JX extends T{constructor(){super(...arguments);this.batches=new zZ(this._client)}create(X,Z){let $=J8(X),{betas:Y,...J}=$;if(J.model in Y8)console.warn(`The model '${J.model}' is deprecated and will reach end-of-life on ${Y8[J.model]}
|
|
32
|
+
Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.`);if(J.model in D$&&J.thinking&&J.thinking.type==="enabled")console.warn(`Using Claude with ${J.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 K=this._client._options.timeout;if(!J.stream&&K==null){let Q=fZ[J.model]??void 0;K=this._client.calculateNonstreamingTimeout(J.max_tokens,Q)}let W=_Z(J.tools,J.messages);return this._client.post("/v1/messages?beta=true",{body:J,timeout:K??600000,...Z,headers:q([{...Y?.toString()!=null?{"anthropic-beta":Y?.toString()}:void 0},W,Z?.headers]),stream:$.stream??!1})}parse(X,Z){return Z={...Z,headers:q([{"anthropic-beta":[...X.betas??[],"structured-outputs-2025-12-15"].toString()},Z?.headers])},this.create(X,Z).then(($)=>B6($,X,{logger:this._client.logger??console}))}stream(X,Z){return JZ.createMessage(this,X,Z)}countTokens(X,Z){let $=J8(X),{betas:Y,...J}=$;return this._client.post("/v1/messages/count_tokens?beta=true",{body:J,...Z,headers:q([{"anthropic-beta":[...Y??[],"token-counting-2024-11-01"].toString()},Z?.headers])})}toolRunner(X,Z){return new QZ(this._client,X,Z)}};JX.Batches=zZ;JX.BetaToolRunner=QZ;JX.ToolError=EX});var GZ;var c6=w(()=>{h();u();f();OX();ZX();GZ=class GZ extends T{create(X,Z={},$){let{betas:Y,...J}=Z??{};return this._client.post(j`/v1/skills/${X}/versions?beta=true`,xX({body:J,...$,headers:q([{"anthropic-beta":[...Y??[],"skills-2025-10-02"].toString()},$?.headers])},this._client))}retrieve(X,Z,$){let{skill_id:Y,betas:J}=Z;return this._client.get(j`/v1/skills/${Y}/versions/${X}?beta=true`,{...$,headers:q([{"anthropic-beta":[...J??[],"skills-2025-10-02"].toString()},$?.headers])})}list(X,Z={},$){let{betas:Y,...J}=Z??{};return this._client.getAPIList(j`/v1/skills/${X}/versions?beta=true`,iX,{query:J,...$,headers:q([{"anthropic-beta":[...Y??[],"skills-2025-10-02"].toString()},$?.headers])})}delete(X,Z,$){let{skill_id:Y,betas:J}=Z;return this._client.delete(j`/v1/skills/${Y}/versions/${X}?beta=true`,{...$,headers:q([{"anthropic-beta":[...J??[],"skills-2025-10-02"].toString()},$?.headers])})}}});var IX;var d6=w(()=>{h();c6();c6();u();f();OX();ZX();IX=class IX extends T{constructor(){super(...arguments);this.versions=new GZ(this._client)}create(X={},Z){let{betas:$,...Y}=X??{};return this._client.post("/v1/skills?beta=true",xX({body:Y,...Z,headers:q([{"anthropic-beta":[...$??[],"skills-2025-10-02"].toString()},Z?.headers])},this._client,!1))}retrieve(X,Z={},$){let{betas:Y}=Z??{};return this._client.get(j`/v1/skills/${X}?beta=true`,{...$,headers:q([{"anthropic-beta":[...Y??[],"skills-2025-10-02"].toString()},$?.headers])})}list(X={},Z){let{betas:$,...Y}=X??{};return this._client.getAPIList("/v1/skills?beta=true",iX,{query:Y,...Z,headers:q([{"anthropic-beta":[...$??[],"skills-2025-10-02"].toString()},Z?.headers])})}delete(X,Z={},$){let{betas:Y}=Z??{};return this._client.delete(j`/v1/skills/${X}?beta=true`,{...$,headers:q([{"anthropic-beta":[...Y??[],"skills-2025-10-02"].toString()},$?.headers])})}};IX.Versions=GZ});var p;var m6=w(()=>{h();j6();j6();T6();T6();g6();g6();d6();d6();p=class p extends T{constructor(){super(...arguments);this.models=new tX(this._client),this.messages=new JX(this._client),this.files=new rX(this._client),this.skills=new IX(this._client)}};p.Models=tX;p.Messages=JX;p.Files=rX;p.Skills=IX});var FX;var u6=w(()=>{h();f();FX=class FX extends T{create(X,Z){let{betas:$,...Y}=X;return this._client.post("/v1/complete",{body:Y,timeout:this._client._options.timeout??600000,...Z,headers:q([{...$?.toString()!=null?{"anthropic-beta":$?.toString()}:void 0},Z?.headers]),stream:X.stream??!1})}}});function K8(X){return X?.output_config?.format}function p6(X,Z,$){let Y=K8(Z);if(!Z||!("parse"in(Y??{})))return{...X,content:X.content.map((J)=>{if(J.type==="text")return Object.defineProperty({...J},"parsed_output",{value:null,enumerable:!1});return J}),parsed_output:null};return l6(X,Z,$)}function l6(X,Z,$){let Y=null,J=X.content.map((K)=>{if(K.type==="text"){let W=I$(Z,K.text);if(Y===null)Y=W;return Object.defineProperty({...K},"parsed_output",{value:W,enumerable:!1})}return K});return{...X,content:J,parsed_output:Y}}function I$(X,Z){let $=K8(X);if($?.type!=="json_schema")return null;try{if("parse"in $)return $.parse(Z);return JSON.parse(Z)}catch(Y){throw new N(`Failed to parse structured output: ${Y}`)}}var i6=w(()=>{R()});function z8(X){return X.type==="tool_use"||X.type==="server_tool_use"}function G8(X){}var g,KX,BX,NZ,lZ,wZ,UZ,iZ,qZ,t,CZ,nZ,oZ,wX,aZ,rZ,HZ,n6,W8,o6,a6,r6,t6,V8,Q8="__json_buf",xZ;var N8=w(()=>{n();CX();MX();k6();L6();i6();xZ=class xZ{constructor(X,Z){g.add(this),this.messages=[],this.receivedMessages=[],KX.set(this,void 0),BX.set(this,null),this.controller=new AbortController,NZ.set(this,void 0),lZ.set(this,()=>{}),wZ.set(this,()=>{}),UZ.set(this,void 0),iZ.set(this,()=>{}),qZ.set(this,()=>{}),t.set(this,{}),CZ.set(this,!1),nZ.set(this,!1),oZ.set(this,!1),wX.set(this,!1),aZ.set(this,void 0),rZ.set(this,void 0),HZ.set(this,void 0),o6.set(this,($)=>{if(G(this,nZ,!0,"f"),i($))$=new S;if($ instanceof S)return G(this,oZ,!0,"f"),this._emit("abort",$);if($ instanceof N)return this._emit("error",$);if($ instanceof Error){let Y=new N($.message);return Y.cause=$,this._emit("error",Y)}return this._emit("error",new N(String($)))}),G(this,NZ,new Promise(($,Y)=>{G(this,lZ,$,"f"),G(this,wZ,Y,"f")}),"f"),G(this,UZ,new Promise(($,Y)=>{G(this,iZ,$,"f"),G(this,qZ,Y,"f")}),"f"),V(this,NZ,"f").catch(()=>{}),V(this,UZ,"f").catch(()=>{}),G(this,BX,X,"f"),G(this,HZ,Z?.logger??console,"f")}get response(){return V(this,aZ,"f")}get request_id(){return V(this,rZ,"f")}async withResponse(){G(this,wX,!0,"f");let X=await V(this,NZ,"f");if(!X)throw Error("Could not resolve a `Response` object");return{data:this,response:X,request_id:X.headers.get("request-id")}}static fromReadableStream(X){let Z=new xZ(null);return Z._run(()=>Z._fromReadableStream(X)),Z}static createMessage(X,Z,$,{logger:Y}={}){let J=new xZ(Z,{logger:Y});for(let K of Z.messages)J._addMessageParam(K);return G(J,BX,{...Z,stream:!0},"f"),J._run(()=>J._createMessage(X,{...Z,stream:!0},{...$,headers:{...$?.headers,"X-Stainless-Helper-Method":"stream"}})),J}_run(X){X().then(()=>{this._emitFinal(),this._emit("end")},V(this,o6,"f"))}_addMessageParam(X){this.messages.push(X)}_addMessage(X,Z=!0){if(this.receivedMessages.push(X),Z)this._emit("message",X)}async _createMessage(X,Z,$){let Y=$?.signal,J;if(Y){if(Y.aborted)this.controller.abort();J=this.controller.abort.bind(this.controller),Y.addEventListener("abort",J)}try{V(this,g,"m",a6).call(this);let{response:K,data:W}=await X.create({...Z,stream:!0},{...$,signal:this.controller.signal}).withResponse();this._connected(K);for await(let Q of W)V(this,g,"m",r6).call(this,Q);if(W.controller.signal?.aborted)throw new S;V(this,g,"m",t6).call(this)}finally{if(Y&&J)Y.removeEventListener("abort",J)}}_connected(X){if(this.ended)return;G(this,aZ,X,"f"),G(this,rZ,X?.headers.get("request-id"),"f"),V(this,lZ,"f").call(this,X),this._emit("connect")}get ended(){return V(this,CZ,"f")}get errored(){return V(this,nZ,"f")}get aborted(){return V(this,oZ,"f")}abort(){this.controller.abort()}on(X,Z){return(V(this,t,"f")[X]||(V(this,t,"f")[X]=[])).push({listener:Z}),this}off(X,Z){let $=V(this,t,"f")[X];if(!$)return this;let Y=$.findIndex((J)=>J.listener===Z);if(Y>=0)$.splice(Y,1);return this}once(X,Z){return(V(this,t,"f")[X]||(V(this,t,"f")[X]=[])).push({listener:Z,once:!0}),this}emitted(X){return new Promise((Z,$)=>{if(G(this,wX,!0,"f"),X!=="error")this.once("error",$);this.once(X,Z)})}async done(){G(this,wX,!0,"f"),await V(this,UZ,"f")}get currentMessage(){return V(this,KX,"f")}async finalMessage(){return await this.done(),V(this,g,"m",n6).call(this)}async finalText(){return await this.done(),V(this,g,"m",W8).call(this)}_emit(X,...Z){if(V(this,CZ,"f"))return;if(X==="end")G(this,CZ,!0,"f"),V(this,iZ,"f").call(this);let $=V(this,t,"f")[X];if($)V(this,t,"f")[X]=$.filter((Y)=>!Y.once),$.forEach(({listener:Y})=>Y(...Z));if(X==="abort"){let Y=Z[0];if(!V(this,wX,"f")&&!$?.length)Promise.reject(Y);V(this,wZ,"f").call(this,Y),V(this,qZ,"f").call(this,Y),this._emit("end");return}if(X==="error"){let Y=Z[0];if(!V(this,wX,"f")&&!$?.length)Promise.reject(Y);V(this,wZ,"f").call(this,Y),V(this,qZ,"f").call(this,Y),this._emit("end")}}_emitFinal(){if(this.receivedMessages.at(-1))this._emit("finalMessage",V(this,g,"m",n6).call(this))}async _fromReadableStream(X,Z){let $=Z?.signal,Y;if($){if($.aborted)this.controller.abort();Y=this.controller.abort.bind(this.controller),$.addEventListener("abort",Y)}try{V(this,g,"m",a6).call(this),this._connected(null);let J=_.fromReadableStream(X,this.controller);for await(let K of J)V(this,g,"m",r6).call(this,K);if(J.controller.signal?.aborted)throw new S;V(this,g,"m",t6).call(this)}finally{if($&&Y)$.removeEventListener("abort",Y)}}[(KX=new WeakMap,BX=new WeakMap,NZ=new WeakMap,lZ=new WeakMap,wZ=new WeakMap,UZ=new WeakMap,iZ=new WeakMap,qZ=new WeakMap,t=new WeakMap,CZ=new WeakMap,nZ=new WeakMap,oZ=new WeakMap,wX=new WeakMap,aZ=new WeakMap,rZ=new WeakMap,HZ=new WeakMap,o6=new WeakMap,g=new WeakSet,n6=function(){if(this.receivedMessages.length===0)throw new N("stream ended without producing a Message with role=assistant");return this.receivedMessages.at(-1)},W8=function(){if(this.receivedMessages.length===0)throw new N("stream ended without producing a Message with role=assistant");let Z=this.receivedMessages.at(-1).content.filter(($)=>$.type==="text").map(($)=>$.text);if(Z.length===0)throw new N("stream ended without producing a content block with type=text");return Z.join(" ")},a6=function(){if(this.ended)return;G(this,KX,void 0,"f")},r6=function(Z){if(this.ended)return;let $=V(this,g,"m",V8).call(this,Z);switch(this._emit("streamEvent",Z,$),Z.type){case"content_block_delta":{let Y=$.content.at(-1);switch(Z.delta.type){case"text_delta":{if(Y.type==="text")this._emit("text",Z.delta.text,Y.text||"");break}case"citations_delta":{if(Y.type==="text")this._emit("citation",Z.delta.citation,Y.citations??[]);break}case"input_json_delta":{if(z8(Y)&&Y.input)this._emit("inputJson",Z.delta.partial_json,Y.input);break}case"thinking_delta":{if(Y.type==="thinking")this._emit("thinking",Z.delta.thinking,Y.thinking);break}case"signature_delta":{if(Y.type==="thinking")this._emit("signature",Y.signature);break}default:G8(Z.delta)}break}case"message_stop":{this._addMessageParam($),this._addMessage(p6($,V(this,BX,"f"),{logger:V(this,HZ,"f")}),!0);break}case"content_block_stop":{this._emit("contentBlock",$.content.at(-1));break}case"message_start":{G(this,KX,$,"f");break}case"content_block_start":case"message_delta":break}},t6=function(){if(this.ended)throw new N("stream has ended, this shouldn't happen");let Z=V(this,KX,"f");if(!Z)throw new N("request ended without sending any chunks");return G(this,KX,void 0,"f"),p6(Z,V(this,BX,"f"),{logger:V(this,HZ,"f")})},V8=function(Z){let $=V(this,KX,"f");if(Z.type==="message_start"){if($)throw new N(`Unexpected event order, got ${Z.type} before receiving "message_stop"`);return Z.message}if(!$)throw new N(`Unexpected event order, got ${Z.type} before "message_start"`);switch(Z.type){case"message_stop":return $;case"message_delta":if($.stop_reason=Z.delta.stop_reason,$.stop_sequence=Z.delta.stop_sequence,$.usage.output_tokens=Z.usage.output_tokens,Z.usage.input_tokens!=null)$.usage.input_tokens=Z.usage.input_tokens;if(Z.usage.cache_creation_input_tokens!=null)$.usage.cache_creation_input_tokens=Z.usage.cache_creation_input_tokens;if(Z.usage.cache_read_input_tokens!=null)$.usage.cache_read_input_tokens=Z.usage.cache_read_input_tokens;if(Z.usage.server_tool_use!=null)$.usage.server_tool_use=Z.usage.server_tool_use;return $;case"content_block_start":return $.content.push({...Z.content_block}),$;case"content_block_delta":{let Y=$.content.at(Z.index);switch(Z.delta.type){case"text_delta":{if(Y?.type==="text")$.content[Z.index]={...Y,text:(Y.text||"")+Z.delta.text};break}case"citations_delta":{if(Y?.type==="text")$.content[Z.index]={...Y,citations:[...Y.citations??[],Z.delta.citation]};break}case"input_json_delta":{if(Y&&z8(Y)){let J=Y[Q8]||"";J+=Z.delta.partial_json;let K={...Y};if(Object.defineProperty(K,Q8,{value:J,enumerable:!1,writable:!0}),J)K.input=bZ(J);$.content[Z.index]=K}break}case"thinking_delta":{if(Y?.type==="thinking")$.content[Z.index]={...Y,thinking:Y.thinking+Z.delta.thinking};break}case"signature_delta":{if(Y?.type==="thinking")$.content[Z.index]={...Y,signature:Z.delta.signature};break}default:G8(Z.delta)}return $}case"content_block_stop":return $}},Symbol.asyncIterator)](){let X=[],Z=[],$=!1;return this.on("streamEvent",(Y)=>{let J=Z.shift();if(J)J.resolve(Y);else X.push(Y)}),this.on("end",()=>{$=!0;for(let Y of Z)Y.resolve(void 0);Z.length=0}),this.on("abort",(Y)=>{$=!0;for(let J of Z)J.reject(Y);Z.length=0}),this.on("error",(Y)=>{$=!0;for(let J of Z)J.reject(Y);Z.length=0}),{next:async()=>{if(!X.length){if($)return{value:void 0,done:!0};return new Promise((J,K)=>Z.push({resolve:J,reject:K})).then((J)=>J?{value:J,done:!1}:{value:void 0,done:!0})}return{value:X.shift(),done:!1}},return:async()=>{return this.abort(),{value:void 0,done:!0}}}}toReadableStream(){return new _(this[Symbol.asyncIterator].bind(this),this.controller).toReadableStream()}}});var OZ;var s6=w(()=>{h();u();f();h6();MX();ZX();OZ=class OZ extends T{create(X,Z){return this._client.post("/v1/messages/batches",{body:X,...Z})}retrieve(X,Z){return this._client.get(j`/v1/messages/batches/${X}`,Z)}list(X={},Z){return this._client.getAPIList("/v1/messages/batches",c,{query:X,...Z})}delete(X,Z){return this._client.delete(j`/v1/messages/batches/${X}`,Z)}cancel(X,Z){return this._client.post(j`/v1/messages/batches/${X}/cancel`,Z)}async results(X,Z){let $=await this.retrieve(X);if(!$.results_url)throw new N(`No batch \`results_url\`; Has it finished processing? ${$.processing_status} - ${$.id}`);return this._client.get($.results_url,{...Z,headers:q([{Accept:"application/binary"},Z?.headers]),stream:!0,__binaryResponse:!0})._thenUnwrap((Y,J)=>TX.fromResponse(J.response,J.controller))}}});var UX,w8,B$;var e6=w(()=>{h();f();aX();N8();i6();s6();s6();I6();UX=class UX extends T{constructor(){super(...arguments);this.batches=new OZ(this._client)}create(X,Z){if(X.model in w8)console.warn(`The model '${X.model}' is deprecated and will reach end-of-life on ${w8[X.model]}
|
|
33
|
+
Please migrate to a newer model. Visit https://docs.anthropic.com/en/docs/resources/model-deprecations for more information.`);if(X.model in B$&&X.thinking&&X.thinking.type==="enabled")console.warn(`Using Claude with ${X.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 $=this._client._options.timeout;if(!X.stream&&$==null){let J=fZ[X.model]??void 0;$=this._client.calculateNonstreamingTimeout(X.max_tokens,J)}let Y=_Z(X.tools,X.messages);return this._client.post("/v1/messages",{body:X,timeout:$??600000,...Z,headers:q([Y,Z?.headers]),stream:X.stream??!1})}parse(X,Z){return this.create(X,Z).then(($)=>l6($,X,{logger:this._client.logger??console}))}stream(X,Z){return xZ.createMessage(this,X,Z,{logger:this._client.logger??console})}countTokens(X,Z){return this._client.post("/v1/messages/count_tokens",{body:X,...Z})}};w8={"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"},B$=["claude-opus-4-6"];UX.Batches=OZ});var SX;var X7=w(()=>{h();u();f();ZX();SX=class SX extends T{retrieve(X,Z={},$){let{betas:Y}=Z??{};return this._client.get(j`/v1/models/${X}`,{...$,headers:q([{...Y?.toString()!=null?{"anthropic-beta":Y?.toString()}:void 0},$?.headers])})}list(X={},Z){let{betas:$,...Y}=X??{};return this._client.getAPIList("/v1/models",c,{query:Y,...Z,headers:q([{...$?.toString()!=null?{"anthropic-beta":$?.toString()}:void 0},Z?.headers])})}}});var U8=w(()=>{m6();u6();e6();X7();c7()});var MZ=(X)=>{if(typeof globalThis.process<"u")return globalThis.process.env?.[X]?.trim()??void 0;if(typeof globalThis.Deno<"u")return globalThis.Deno.env?.get?.(X)?.trim();return};var q8=()=>{};class I{constructor({baseURL:X=MZ("ANTHROPIC_BASE_URL"),apiKey:Z=MZ("ANTHROPIC_API_KEY")??null,authToken:$=MZ("ANTHROPIC_AUTH_TOKEN")??null,...Y}={}){Z7.add(this),tZ.set(this,void 0);let J={apiKey:Z,authToken:$,...Y,baseURL:X||"https://api.anthropic.com"};if(!J.dangerouslyAllowBrowser&&j7())throw new N(`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=J.baseURL,this.timeout=J.timeout??$7.DEFAULT_TIMEOUT,this.logger=J.logger??console;let K="warn";this.logLevel=K,this.logLevel=w6(J.logLevel,"ClientOptions.logLevel",this)??w6(MZ("ANTHROPIC_LOG"),"process.env['ANTHROPIC_LOG']",this)??K,this.fetchOptions=J.fetchOptions,this.maxRetries=J.maxRetries??2,this.fetch=J.fetch??I7(),G(this,tZ,B7,"f"),this._options=J,this.apiKey=typeof Z==="string"?Z:null,this.authToken=$}withOptions(X){return new this.constructor({...this._options,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,...X})}defaultQuery(){return this._options.defaultQuery}validateHeaders({values:X,nulls:Z}){if(X.get("x-api-key")||X.get("authorization"))return;if(this.apiKey&&X.get("x-api-key"))return;if(Z.has("x-api-key"))return;if(this.authToken&&X.get("authorization"))return;if(Z.has("authorization"))return;throw Error('Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the "X-Api-Key" or "Authorization" headers to be explicitly omitted')}async authHeaders(X){return q([await this.apiKeyAuth(X),await this.bearerAuth(X)])}async apiKeyAuth(X){if(this.apiKey==null)return;return q([{"X-Api-Key":this.apiKey}])}async bearerAuth(X){if(this.authToken==null)return;return q([{Authorization:`Bearer ${this.authToken}`}])}stringifyQuery(X){return L7(X)}getUserAgent(){return`${this.constructor.name}/JS ${e}`}defaultIdempotencyKey(){return`stainless-node-retry-${$6()}`}makeStatusError(X,Z,$,Y){return F.generate(X,Z,$,Y)}buildURL(X,Z,$){let Y=!V(this,Z7,"m",C8).call(this)&&$||this.baseURL,J=C7(X)?new URL(X):new URL(Y+(Y.endsWith("/")&&X.startsWith("/")?X.slice(1):X)),K=this.defaultQuery(),W=Object.fromEntries(J.searchParams);if(!K6(K)||!K6(W))Z={...W,...K,...Z};if(typeof Z==="object"&&Z&&!Array.isArray(Z))J.search=this.stringifyQuery(Z);return J.toString()}_calculateNonstreamingTimeout(X){if(3600*X/128000>600)throw new N("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(X){}async prepareRequest(X,{url:Z,options:$}){}get(X,Z){return this.methodRequest("get",X,Z)}post(X,Z){return this.methodRequest("post",X,Z)}patch(X,Z){return this.methodRequest("patch",X,Z)}put(X,Z){return this.methodRequest("put",X,Z)}delete(X,Z){return this.methodRequest("delete",X,Z)}methodRequest(X,Z,$){return this.request(Promise.resolve($).then((Y)=>{return{method:X,path:Z,...Y}}))}request(X,Z=null){return new QX(this,this.makeRequest(X,Z,void 0))}async makeRequest(X,Z,$){let Y=await X,J=Y.maxRetries??this.maxRetries;if(Z==null)Z=J;await this.prepareOptions(Y);let{req:K,url:W,timeout:Q}=await this.buildRequest(Y,{retryCount:J-Z});await this.prepareRequest(K,{url:W,options:Y});let z="log_"+(Math.random()*16777216|0).toString(16).padStart(6,"0"),x=$===void 0?"":`, retryOf: ${$}`,H=Date.now();if(L(this).debug(`[${z}] sending request`,o({retryOfRequestLogID:$,method:Y.method,url:W,options:Y,headers:K.headers})),Y.signal?.aborted)throw new S;let M=new AbortController,U=await this.fetchWithTimeout(W,K,Q,M).catch(RX),O=Date.now();if(U instanceof globalThis.Error){let l=`retrying, ${Z} attempts remaining`;if(Y.signal?.aborted)throw new S;let m=i(U)||/timed? ?out/i.test(String(U)+("cause"in U?String(U.cause):""));if(Z)return L(this).info(`[${z}] connection ${m?"timed out":"failed"} - ${l}`),L(this).debug(`[${z}] connection ${m?"timed out":"failed"} (${l})`,o({retryOfRequestLogID:$,url:W,durationMs:O-H,message:U.message})),this.retryRequest(Y,Z,$??z);if(L(this).info(`[${z}] connection ${m?"timed out":"failed"} - error; no more retries left`),L(this).debug(`[${z}] connection ${m?"timed out":"failed"} (error; no more retries left)`,o({retryOfRequestLogID:$,url:W,durationMs:O-H,message:U.message})),m)throw new PX;throw new WX({cause:U})}let d=[...U.headers.entries()].filter(([l])=>l==="request-id").map(([l,m])=>", "+l+": "+JSON.stringify(m)).join(""),kX=`[${z}${x}${d}] ${K.method} ${W} ${U.ok?"succeeded":"failed"} with status ${U.status} in ${O-H}ms`;if(!U.ok){let l=await this.shouldRetry(U);if(Z&&l){let DZ=`retrying, ${Z} attempts remaining`;return await F7(U.body),L(this).info(`${kX} - ${DZ}`),L(this).debug(`[${z}] response error (${DZ})`,o({retryOfRequestLogID:$,url:U.url,status:U.status,headers:U.headers,durationMs:O-H})),this.retryRequest(Y,Z,$??z,U.headers)}let m=l?"error; no more retries left":"error; not retryable";L(this).info(`${kX} - ${m}`);let z7=await U.text().catch((DZ)=>RX(DZ).message),G7=jZ(z7),N7=G7?void 0:z7;throw L(this).debug(`[${z}] response error (${m})`,o({retryOfRequestLogID:$,url:U.url,status:U.status,headers:U.headers,message:N7,durationMs:Date.now()-H})),this.makeStatusError(U.status,G7,N7,U.headers)}return L(this).info(kX),L(this).debug(`[${z}] response start`,o({retryOfRequestLogID:$,url:U.url,status:U.status,headers:U.headers,durationMs:O-H})),{response:U,options:Y,controller:M,requestLogID:z,retryOfRequestLogID:$,startTime:H}}getAPIList(X,Z,$){return this.requestAPIList(Z,$&&"then"in $?$.then((Y)=>({method:"get",path:X,...Y})):{method:"get",path:X,...$})}requestAPIList(X,Z){let $=this.makeRequest(Z,null,void 0);return new RZ(this,$,X)}async fetchWithTimeout(X,Z,$,Y){let{signal:J,method:K,...W}=Z||{},Q=this._makeAbort(Y);if(J)J.addEventListener("abort",Q,{once:!0});let z=setTimeout(Q,$),x=globalThis.ReadableStream&&W.body instanceof globalThis.ReadableStream||typeof W.body==="object"&&W.body!==null&&Symbol.asyncIterator in W.body,H={signal:Y.signal,...x?{duplex:"half"}:{},method:"GET",...W};if(K)H.method=K.toUpperCase();try{return await this.fetch.call(void 0,X,H)}finally{clearTimeout(z)}}async shouldRetry(X){let Z=X.headers.get("x-should-retry");if(Z==="true")return!0;if(Z==="false")return!1;if(X.status===408)return!0;if(X.status===409)return!0;if(X.status===429)return!0;if(X.status>=500)return!0;return!1}async retryRequest(X,Z,$,Y){let J,K=Y?.get("retry-after-ms");if(K){let Q=parseFloat(K);if(!Number.isNaN(Q))J=Q}let W=Y?.get("retry-after");if(W&&!J){let Q=parseFloat(W);if(!Number.isNaN(Q))J=Q*1000;else J=Date.parse(W)-Date.now()}if(J===void 0){let Q=X.maxRetries??this.maxRetries;J=this.calculateDefaultRetryTimeoutMillis(Z,Q)}return await O7(J),this.makeRequest(X,Z-1,$)}calculateDefaultRetryTimeoutMillis(X,Z){let J=Z-X,K=Math.min(0.5*Math.pow(2,J),8),W=1-Math.random()*0.25;return K*W*1000}calculateNonstreamingTimeout(X,Z){if(3600000*X/128000>600000||Z!=null&&X>Z)throw new N("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(X,{retryCount:Z=0}={}){let $={...X},{method:Y,path:J,query:K,defaultBaseURL:W}=$,Q=this.buildURL(J,K,W);if("timeout"in $)x7("timeout",$.timeout);$.timeout=$.timeout??this.timeout;let{bodyHeaders:z,body:x}=this.buildBody({options:$}),H=await this.buildHeaders({options:X,method:Y,bodyHeaders:z,retryCount:Z});return{req:{method:Y,headers:H,...$.signal&&{signal:$.signal},...globalThis.ReadableStream&&x instanceof globalThis.ReadableStream&&{duplex:"half"},...x&&{body:x},...this.fetchOptions??{},...$.fetchOptions??{}},url:Q,timeout:$.timeout}}async buildHeaders({options:X,method:Z,bodyHeaders:$,retryCount:Y}){let J={};if(this.idempotencyHeader&&Z!=="get"){if(!X.idempotencyKey)X.idempotencyKey=this.defaultIdempotencyKey();J[this.idempotencyHeader]=X.idempotencyKey}let K=q([J,{Accept:"application/json","User-Agent":this.getUserAgent(),"X-Stainless-Retry-Count":String(Y),...X.timeout?{"X-Stainless-Timeout":String(Math.trunc(X.timeout/1000))}:{},...T7(),...this._options.dangerouslyAllowBrowser?{"anthropic-dangerous-direct-browser-access":"true"}:void 0,"anthropic-version":"2023-06-01"},await this.authHeaders(X),this._options.defaultHeaders,$,X.headers]);return this.validateHeaders(K),K.values}_makeAbort(X){return()=>X.abort()}buildBody({options:{body:X,headers:Z}}){if(!X)return{bodyHeaders:void 0,body:void 0};let $=q([Z]);if(ArrayBuffer.isView(X)||X instanceof ArrayBuffer||X instanceof DataView||typeof X==="string"&&$.values.has("content-type")||globalThis.Blob&&X instanceof globalThis.Blob||X instanceof FormData||X instanceof URLSearchParams||globalThis.ReadableStream&&X instanceof globalThis.ReadableStream)return{bodyHeaders:void 0,body:X};else if(typeof X==="object"&&((Symbol.asyncIterator in X)||(Symbol.iterator in X)&&("next"in X)&&typeof X.next==="function"))return{bodyHeaders:void 0,body:TZ(X)};else if(typeof X==="object"&&$.values.get("content-type")==="application/x-www-form-urlencoded")return{bodyHeaders:{"content-type":"application/x-www-form-urlencoded"},body:this.stringifyQuery(X)};else return V(this,tZ,"f").call(this,{body:X,headers:$})}}var Z7,$7,tZ,C8,H8="\\n\\nHuman:",x8="\\n\\nAssistant:",qX;var Y7=w(()=>{n();q7();VX();M7();CX();V6();HX();S7();k7();W6();R();u();D6();U8();LZ();u6();X7();m6();e6();V6();f();q8();BZ();VX();$7=I,tZ=new WeakMap,Z7=new WeakSet,C8=function(){return this.baseURL!=="https://api.anthropic.com"};I.Anthropic=$7;I.HUMAN_PROMPT=H8;I.AI_PROMPT=x8;I.DEFAULT_TIMEOUT=600000;I.AnthropicError=N;I.APIError=F;I.APIConnectionError=WX;I.APIConnectionTimeoutError=PX;I.APIUserAbortError=S;I.NotFoundError=bX;I.ConflictError=hX;I.RateLimitError=gX;I.BadRequestError=yX;I.AuthenticationError=_X;I.InternalServerError=cX;I.PermissionDeniedError=fX;I.UnprocessableEntityError=vX;I.toFile=PZ;qX=class qX extends I{constructor(){super(...arguments);this.completions=new FX(this),this.messages=new UX(this),this.models=new SX(this),this.beta=new p(this)}};qX.Completions=FX;qX.Messages=UX;qX.Models=SX;qX.Beta=p});var O8=w(()=>{Y7();D6();LZ();Y7();u();R()});function m4(X){return X instanceof M8||X instanceof S||X instanceof Error&&X.name==="AbortError"}function u4(X,Z){return X instanceof Error&&X.message===Z}function p4(X){return X instanceof Error?X:Error(String(X))}function f$(X){return X instanceof Error?X.message:String(X)}function LX(X){if(X&&typeof X==="object"&&"code"in X&&typeof X.code==="string")return X.code;return}function l4(X){return LX(X)==="ENOENT"}function i4(X){if(X&&typeof X==="object"&&"path"in X&&typeof X.path==="string")return X.path;return}function n4(X){let Z=LX(X);return Z==="ENOENT"||Z==="EACCES"||Z==="EPERM"||Z==="ENOTDIR"||Z==="ELOOP"}function o4(X){let Z=f$(X);if(!X||typeof X!=="object"||!("isAxiosError"in X)||!X.isAxiosError)return{kind:"other",message:Z};let $=X,Y=$.response?.status;if(Y===401||Y===403)return{kind:"auth",status:Y,message:Z};if($.code==="ECONNABORTED")return{kind:"timeout",status:Y,message:Z};if($.code==="ECONNREFUSED"||$.code==="ENOTFOUND")return{kind:"network",status:Y,message:Z};return{kind:"http",status:Y,message:Z}}var L$,k$,M8,R$,P$,y$,_$;var A8=w(()=>{O8();L$=class L$ extends Error{constructor(X){super(X);this.name=this.constructor.name}};k$=class k$ extends Error{};M8=class M8 extends Error{constructor(X){super(X);this.name="AbortError"}};R$=class R$ extends Error{filePath;defaultConfig;constructor(X,Z,$){super(X);this.name="ConfigParseError",this.filePath=Z,this.defaultConfig=$}};P$=class P$ extends Error{stdout;stderr;code;interrupted;constructor(X,Z,$,Y){super("Shell command failed");this.stdout=X;this.stderr=Z;this.code=$;this.interrupted=Y;this.name="ShellError"}};y$=class y$ extends Error{formattedMessage;constructor(X,Z){super(X);this.formattedMessage=Z;this.name="TeleportOperationError"}};_$=class _$ extends Error{telemetryMessage;constructor(X,Z){super(X);this.name="TelemetrySafeError",this.telemetryMessage=Z??X}}});function D8({writeFn:X,flushIntervalMs:Z=1000,maxBufferSize:$=100,maxBufferBytes:Y=1/0,immediateMode:J=!1}){let K=[],W=0,Q=null,z=null;function x(){if(Q)clearTimeout(Q),Q=null}function H(){if(z)X(z.join("")),z=null;if(K.length===0)return;X(K.join("")),K=[],W=0,x()}function M(){if(!Q)Q=setTimeout(H,Z)}function U(){if(z){z.push(...K),K=[],W=0,x();return}let O=K;K=[],W=0,x(),z=O,setImmediate(()=>{let d=z;if(z=null,d)X(d.join(""))})}return{write(O){if(J){X(O);return}if(K.push(O),W+=O.length,M(),K.length>=$||W>=Y)U()},flush:H,dispose(){H()}}}var E8=()=>{};function b$(X){let Z=[],$=X.match(/^MCP server ["']([^"']+)["']/);if($&&$[1])Z.push("mcp"),Z.push($[1].toLowerCase());else{let K=X.match(/^([^:[]+):/);if(K&&K[1])Z.push(K[1].trim().toLowerCase())}let Y=X.match(/^\[([^\]]+)]/);if(Y&&Y[1])Z.push(Y[1].trim().toLowerCase());if(X.toLowerCase().includes("1p event:"))Z.push("1p");let J=X.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(J&&J[1]){let K=J[1].trim().toLowerCase();if(K.length<30&&!K.includes(" "))Z.push(K)}return Array.from(new Set(Z))}function h$(X,Z){if(!Z)return!0;if(X.length===0)return!1;if(Z.isExclusive)return!X.some(($)=>Z.exclude.includes($));else return X.some(($)=>Z.include.includes($))}function I8(X,Z){if(!Z)return!0;let $=b$(X);return h$($,Z)}var T8;var F8=w(()=>{j8();T8=s((X)=>{if(!X||X.trim()==="")return null;let Z=X.split(",").map((K)=>K.trim()).filter(Boolean);if(Z.length===0)return null;let $=Z.some((K)=>K.startsWith("!")),Y=Z.some((K)=>!K.startsWith("!"));if($&&Y)return null;let J=Z.map((K)=>K.replace(/^!/,"").toLowerCase());return{include:$?[]:J,exclude:$?J:[],isExclusive:$}})});import*as C from"fs";import{mkdir as v$,open as sZ,readdir as g$,readFile as B8,rename as c$,rmdir as d$,rm as m$,stat as u$,unlink as p$}from"fs/promises";import{homedir as S8}from"os";import*as k from"path";function L8(X,Z){if(Z.startsWith("//")||Z.startsWith("\\\\"))return{resolvedPath:Z,isSymlink:!1,isCanonical:!1};try{let $=X.lstatSync(Z);if($.isFIFO()||$.isSocket()||$.isCharacterDevice()||$.isBlockDevice())return{resolvedPath:Z,isSymlink:!1,isCanonical:!1};let Y=X.realpathSync(Z);return{resolvedPath:Y,isSymlink:Y!==Z,isCanonical:!0}}catch($){return{resolvedPath:Z,isSymlink:!1,isCanonical:!1}}}function Y5(X,Z,$){let{resolvedPath:Y}=L8(X,Z);if($.has(Y))return!0;return $.add(Y),!1}function l$(X,Z){let $=Z,Y=[];while($!==k.dirname($)){let J;try{J=X.lstatSync($)}catch{Y.unshift(k.basename($)),$=k.dirname($);continue}if(J.isSymbolicLink())try{let K=X.realpathSync($);return Y.length===0?K:k.join(K,...Y)}catch{let K=X.readlinkSync($),W=k.isAbsolute(K)?K:k.resolve(k.dirname($),K);return Y.length===0?W:k.join(W,...Y)}try{let K=X.realpathSync($);if(K!==$)return Y.length===0?K:k.join(K,...Y)}catch{}return}return}function J5(X){let Z=X;if(Z==="~")Z=S8().normalize("NFC");else if(Z.startsWith("~/"))Z=k.join(S8().normalize("NFC"),Z.slice(2));let $=new Set,Y=eZ();if($.add(Z),Z.startsWith("//")||Z.startsWith("\\\\"))return Array.from($);try{let W=Z,Q=new Set,z=40;for(let x=0;x<z;x++){if(Q.has(W))break;if(Q.add(W),!Y.existsSync(W)){if(W===Z){let O=l$(Y,Z);if(O!==void 0)$.add(O)}break}let H=Y.lstatSync(W);if(H.isFIFO()||H.isSocket()||H.isCharacterDevice()||H.isBlockDevice())break;if(!H.isSymbolicLink())break;let M=Y.readlinkSync(W),U=k.isAbsolute(M)?M:k.resolve(k.dirname(W),M);$.add(U),W=U}}catch{}let{resolvedPath:J,isSymlink:K}=L8(Y,Z);if(K&&J!==Z)$.add(J);return Array.from($)}function eZ(){return n$}async function K5(X,Z,$){let z=[];try{const Y=A(z,await sZ(X,"r"),1);let J=(await Y.stat()).size;if(J<=Z)return null;let K=Math.min(J-Z,$);let W=Buffer.allocUnsafe(K);let Q=0;while(Q<K){let{bytesRead:O}=await Y.read(W,Q,K-Q,Z+Q);if(O===0)break;Q+=O}return{content:W.toString("utf8",0,Q),bytesRead:Q,bytesTotal:J}}catch(x){var H=x,M=1}finally{var U=D(z,H,M);U&&await U}}async function W5(X,Z){let z=[];try{const $=A(z,await sZ(X,"r"),1);let Y=(await $.stat()).size;if(Y===0)return{content:"",bytesRead:0,bytesTotal:0};let J=Math.max(0,Y-Z);let K=Y-J;let W=Buffer.allocUnsafe(K);let Q=0;while(Q<K){let{bytesRead:O}=await $.read(W,Q,K-Q,J+Q);if(O===0)break;Q+=O}return{content:W.toString("utf8",0,Q),bytesRead:Q,bytesTotal:Y}}catch(x){var H=x,M=1}finally{var U=D(z,H,M);U&&await U}}async function*V5(X){let $=await sZ(X,"r");try{let J=(await $.stat()).size,K=Buffer.alloc(0),W=Buffer.alloc(4096);while(J>0){let Q=Math.min(4096,J);J-=Q,await $.read(W,0,Q,J);let z=Buffer.concat([W.subarray(0,Q),K]),x=z.indexOf(10);if(x===-1){K=z;continue}K=Buffer.from(z.subarray(0,x));let H=z.toString("utf8",x+1).split(`
|
|
41
|
+
`);for(let M=H.length-1;M>=0;M--){let U=H[M];if(U)yield U}}if(K.length>0)yield K.toString("utf8")}finally{await $.close()}}var i$,n$;var k8=w(()=>{A8();J7();i$={cwd(){return process.cwd()},existsSync(X){let $=[];try{const Z=A($,E`fs.existsSync(${X})`,0);return C.existsSync(X)}catch(Y){var J=Y,K=1}finally{D($,J,K)}},async stat(X){return u$(X)},async readdir(X){return g$(X,{withFileTypes:!0})},async unlink(X){return p$(X)},async rmdir(X){return d$(X)},async rm(X,Z){return m$(X,Z)},async mkdir(X,Z){try{await v$(X,{recursive:!0,...Z})}catch($){if(LX($)!=="EEXIST")throw $}},async readFile(X,Z){return B8(X,{encoding:Z.encoding})},async rename(X,Z){return c$(X,Z)},statSync(X){let $=[];try{const Z=A($,E`fs.statSync(${X})`,0);return C.statSync(X)}catch(Y){var J=Y,K=1}finally{D($,J,K)}},lstatSync(X){let $=[];try{const Z=A($,E`fs.lstatSync(${X})`,0);return C.lstatSync(X)}catch(Y){var J=Y,K=1}finally{D($,J,K)}},readFileSync(X,Z){let Y=[];try{const $=A(Y,E`fs.readFileSync(${X})`,0);return C.readFileSync(X,{encoding:Z.encoding})}catch(J){var K=J,W=1}finally{D(Y,K,W)}},readFileBytesSync(X){let $=[];try{const Z=A($,E`fs.readFileBytesSync(${X})`,0);return C.readFileSync(X)}catch(Y){var J=Y,K=1}finally{D($,J,K)}},readSync(X,Z){let J=[];try{const $=A(J,E`fs.readSync(${X}, ${Z.length} bytes)`,0);let Y=void 0;try{Y=C.openSync(X,"r");let z=Buffer.alloc(Z.length),x=C.readSync(Y,z,0,Z.length,0);return{buffer:z,bytesRead:x}}finally{if(Y)C.closeSync(Y)}}catch(K){var W=K,Q=1}finally{D(J,W,Q)}},appendFileSync(X,Z,$){let J=[];try{const Y=A(J,E`fs.appendFileSync(${X}, ${Z.length} chars)`,0);if($?.mode!==void 0)try{let z=C.openSync(X,"ax",$.mode);try{C.appendFileSync(z,Z)}finally{C.closeSync(z)}return}catch(z){if(LX(z)!=="EEXIST")throw z}C.appendFileSync(X,Z)}catch(K){var W=K,Q=1}finally{D(J,W,Q)}},copyFileSync(X,Z){let Y=[];try{const $=A(Y,E`fs.copyFileSync(${X} → ${Z})`,0);C.copyFileSync(X,Z)}catch(J){var K=J,W=1}finally{D(Y,K,W)}},unlinkSync(X){let $=[];try{const Z=A($,E`fs.unlinkSync(${X})`,0);C.unlinkSync(X)}catch(Y){var J=Y,K=1}finally{D($,J,K)}},renameSync(X,Z){let Y=[];try{const $=A(Y,E`fs.renameSync(${X} → ${Z})`,0);C.renameSync(X,Z)}catch(J){var K=J,W=1}finally{D(Y,K,W)}},linkSync(X,Z){let Y=[];try{const $=A(Y,E`fs.linkSync(${X} → ${Z})`,0);C.linkSync(X,Z)}catch(J){var K=J,W=1}finally{D(Y,K,W)}},symlinkSync(X,Z,$){let J=[];try{const Y=A(J,E`fs.symlinkSync(${X} → ${Z})`,0);C.symlinkSync(X,Z,$)}catch(K){var W=K,Q=1}finally{D(J,W,Q)}},readlinkSync(X){let $=[];try{const Z=A($,E`fs.readlinkSync(${X})`,0);return C.readlinkSync(X)}catch(Y){var J=Y,K=1}finally{D($,J,K)}},realpathSync(X){let $=[];try{const Z=A($,E`fs.realpathSync(${X})`,0);return C.realpathSync(X).normalize("NFC")}catch(Y){var J=Y,K=1}finally{D($,J,K)}},mkdirSync(X,Z){let J=[];try{const $=A(J,E`fs.mkdirSync(${X})`,0);let Y={recursive:!0};if(Z?.mode!==void 0)Y.mode=Z.mode;try{C.mkdirSync(X,Y)}catch(z){if(LX(z)!=="EEXIST")throw z}}catch(K){var W=K,Q=1}finally{D(J,W,Q)}},readdirSync(X){let $=[];try{const Z=A($,E`fs.readdirSync(${X})`,0);return C.readdirSync(X,{withFileTypes:!0})}catch(Y){var J=Y,K=1}finally{D($,J,K)}},readdirStringSync(X){let $=[];try{const Z=A($,E`fs.readdirStringSync(${X})`,0);return C.readdirSync(X)}catch(Y){var J=Y,K=1}finally{D($,J,K)}},isDirEmptySync(X){let Y=[];try{const Z=A(Y,E`fs.isDirEmptySync(${X})`,0);let $=this.readdirSync(X);return $.length===0}catch(J){var K=J,W=1}finally{D(Y,K,W)}},rmdirSync(X){let $=[];try{const Z=A($,E`fs.rmdirSync(${X})`,0);C.rmdirSync(X)}catch(Y){var J=Y,K=1}finally{D($,J,K)}},rmSync(X,Z){let Y=[];try{const $=A(Y,E`fs.rmSync(${X})`,0);C.rmSync(X,Z)}catch(J){var K=J,W=1}finally{D(Y,K,W)}},createWriteStream(X){return C.createWriteStream(X)},async readFileBytes(X,Z){if(Z===void 0)return B8(X);let $=await sZ(X,"r");try{let{size:Y}=await $.stat(),J=Math.min(Y,Z),K=Buffer.allocUnsafe(J),W=0;while(W<J){let{bytesRead:Q}=await $.read(K,W,J-W,W);if(Q===0)break;W+=Q}return W<J?K.subarray(0,W):K}finally{await $.close()}}},n$=i$});import{appendFile as r$,mkdir as t$,symlink as s$,unlink as e$}from"fs/promises";import{dirname as b8,join as h8}from"path";function D5(){let X=AZ();return v8=!0,AZ.cache.clear?.(),X}function $1(X){if(!AZ())return!1;if(typeof process>"u"||typeof process.versions>"u"||typeof process.versions.node>"u")return!1;let Z=Z1();return I8(X,Z)}function E5(X){Q7=X}function j5(){return Q7}async function Y1(X,Z,$,Y){if(X)await t$(Z,{recursive:!0}).catch(()=>{});await r$($,Y),m8()}function J1(){}function K1(){if(!X6){let X=null;X6=D8({writeFn:(Z)=>{let $=d8(),Y=b8($),J=X!==Y;if(X=Y,AZ()){if(J)try{eZ().mkdirSync(Y)}catch{}eZ().appendFileSync($,Z),m8();return}K7=K7.then(Y1.bind(null,J,Y,$,Z)).catch(J1)},flushIntervalMs:1000,maxBufferSize:100,immediateMode:AZ()}),w7(async()=>{X6?.dispose(),await K7})}return X6}function W1(X,{level:Z}={level:"debug"}){if(V7[Z]<V7[X1()])return;if(!$1(X))return;if(Q7&&X.includes(`
|
|
42
|
+
`))X=_8(X);let Y=`${new Date().toISOString()} [${Z.toUpperCase()}] ${X.trim()}
|
|
43
|
+
`;if(g8()){f8(Y);return}K1().write(Y)}function d8(){return c8()??process.env.CLAUDE_CODE_DEBUG_LOGS_DIR??h8(y8(),"debug",`${R8()}.txt`)}function T5(X,Z){}var V7,X1,v8=!1,AZ,Z1,g8,c8,Q7=!1,X6=null,K7,m8;var u8=w(()=>{j8();P8();E8();U7();F8();o$();k8();a$();J7();V7={verbose:0,debug:1,info:2,warn:3,error:4},X1=s(()=>{let X=process.env.CLAUDE_CODE_DEBUG_LOG_LEVEL?.toLowerCase().trim();if(X&&Object.hasOwn(V7,X))return X;return"debug"}),AZ=s(()=>{return v8||W7(process.env.DEBUG)||W7(process.env.DEBUG_SDK)||process.argv.includes("--debug")||process.argv.includes("-d")||g8()||process.argv.some((X)=>X.startsWith("--debug="))||c8()!==null});Z1=s(()=>{let X=process.argv.find(($)=>$.startsWith("--debug="));if(!X)return null;let Z=X.substring(8);return T8(Z)}),g8=s(()=>{return process.argv.includes("--debug-to-stderr")||process.argv.includes("-d2e")}),c8=s(()=>{for(let X=0;X<process.argv.length;X++){let Z=process.argv[X];if(Z.startsWith("--debug-file="))return Z.substring(13);if(Z==="--debug-file"&&X+1<process.argv.length)return process.argv[X+1]}return null});K7=Promise.resolve();m8=s(async()=>{try{let X=d8(),Z=b8(X),$=h8(Z,"latest");await e$($).catch(()=>{}),await s$(X,$)}catch{}})});import{closeSync as V1,writeFileSync as p8,fsyncSync as Q1,openSync as z1}from"fs";function N1(){return G1}function _8(X,Z,$){let J=[];try{const Y=A(J,E`JSON.stringify(${X})`,0);return JSON.stringify(X,Z,$)}catch(K){var W=K,Q=1}finally{D(J,W,Q)}}function P5(X,Z){let Y=[];try{const $=A(Y,E`structuredClone(${X})`,0);return structuredClone(X,Z)}catch(J){var K=J,W=1}finally{D(Y,K,W)}}function y5(X,Z,$){let K=[];try{const Y=A(K,E`fs.writeFileSync(${X}, ${Z})`,0);let J=$!==null&&typeof $==="object"&&"flush"in $&&$.flush===!0;if(J){let x=typeof $==="object"&&"encoding"in $?$.encoding:void 0,H=typeof $==="object"&&"mode"in $?$.mode:void 0,M;try{M=z1(X,"w",H),p8(M,Z,{encoding:x??void 0}),Q1(M)}finally{if(M!==void 0)V1(M)}}else p8(X,Z,$)}catch(W){var Q=W,z=1}finally{D(K,Q,z)}}var k5,G1,E,R5=(X,Z)=>{let Y=[];try{const $=A(Y,E`JSON.parse(${X})`,0);return typeof Z>"u"?JSON.parse(X):JSON.parse(X,Z)}catch(J){var K=J,W=1}finally{D(Y,K,W)}};var J7=w(()=>{P8();u8();k5=(()=>{let X=process.env.CLAUDE_CODE_SLOW_OPERATION_THRESHOLD_MS;if(X!==void 0){let Z=Number(X);if(!Number.isNaN(Z)&&Z>=0)return Z}return 20})(),G1={[Symbol.dispose](){}};E=N1});
|
|
44
|
+
export{D8 as _fa,E8 as $fa,w7 as aga,U1 as bga,U7 as cga,F as dga,S as ega,WX as fga,PX as gga,_X as hga,bX as iga,MX as jga,qX as kga,O8 as lga,L$ as mga,k$ as nga,M8 as oga,m4 as pga,R$ as qga,P$ as rga,y$ as sga,_$ as tga,u4 as uga,p4 as vga,f$ as wga,LX as xga,l4 as yga,i4 as zga,n4 as Aga,o4 as Bga,A8 as Cga,E as Dga,_8 as Ega,R5 as Fga,P5 as Gga,y5 as Hga,J7 as Iga,L8 as Jga,Y5 as Kga,J5 as Lga,eZ as Mga,K5 as Nga,W5 as Oga,V5 as Pga,k8 as Qga,AZ as Rga,D5 as Sga,g8 as Tga,E5 as Uga,j5 as Vga,W1 as Wga,d8 as Xga,T5 as Yga,u8 as Zga};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{C5 as X,D5 as Ws,E5 as ws,F5 as Us,G5 as Ko,H5 as Vo,I5 as as,J5 as Ms,K5 as Qt,L5 as ks,M5 as Eo,N5 as Yt,O5 as k,P5 as ps,Q5 as ls,R5 as Es,S5 as Ps,T5 as ys,U5 as _s,V5 as Zr,W5 as Cr,X5 as so,Y5 as qs}from"./cli-0.1.10-n0kq1anb.mjs";import{Z5 as Se}from"./cli-0.1.10-kdqsv63d.mjs";import{nna as us}from"./cli-0.1.10-283zk2ee.mjs";import{tna as bo,vna as ct}from"./cli-0.1.10-9rh1hjrr.mjs";import{Ana as gt}from"./cli-0.1.10-7v1vvde4.mjs";import{Cna as ds}from"./cli-0.1.10-szz5tkt1.mjs";import{Dna as Jr}from"./cli-0.1.10-v385rk98.mjs";import{Fna as Xr}from"./cli-0.1.10-6p8tttyp.mjs";import{Ina as y}from"./cli-0.1.10-hyxg32sc.mjs";var Z=y((Ae)=>{Object.defineProperty(Ae,"__esModule",{value:!0});Ae.resolveHttpAuthSchemeConfig=Ae.resolveStsAuthConfig=Ae.defaultSTSHttpAuthSchemeProvider=Ae.defaultSTSHttpAuthSchemeParametersProvider=void 0;var ho=X(),J=bo(),No=C(),qo=async(e,t,r)=>{return{operation:(0,J.getSmithyContext)(t).operation,region:await(0,J.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};Ae.defaultSTSHttpAuthSchemeParametersProvider=qo;function Fo(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function Wo(e){return{schemeId:"smithy.api#noAuth"}}var wo=(e)=>{let t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(Wo(e));break}default:t.push(Fo(e))}return t};Ae.defaultSTSHttpAuthSchemeProvider=wo;var Uo=(e)=>Object.assign(e,{stsClientCtor:No.STSClient});Ae.resolveStsAuthConfig=Uo;var Mo=(e)=>{let t=Ae.resolveStsAuthConfig(e),r=(0,ho.resolveAwsSdkSigV4Config)(t);return Object.assign(r,{authSchemePreference:(0,J.normalizeProvider)(e.authSchemePreference??[])})};Ae.resolveHttpAuthSchemeConfig=Mo});var f=y((he)=>{Object.defineProperty(he,"__esModule",{value:!0});he.commonParams=he.resolveClientEndpointParameters=void 0;var jo=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"})};he.resolveClientEndpointParameters=jo;he.commonParams={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var fe=y((Ze)=>{Object.defineProperty(Ze,"__esModule",{value:!0});Ze.ruleSet=void 0;var Ke="required",o="type",n="fn",i="argv",v="ref",qe=!1,ee=!0,S="booleanEquals",p="stringEquals",Ve="sigv4",ze="sts",Be="us-east-1",c="endpoint",Fe="https://sts.{Region}.{PartitionResult#dnsSuffix}",R="tree",M="error",oe="getAttr",We={[Ke]:!1,[o]:"string"},te={[Ke]:!0,default:!1,[o]:"boolean"},ge={[v]:"Endpoint"},we={[n]:"isSet",[i]:[{[v]:"Region"}]},l={[v]:"Region"},Ue={[n]:"aws.partition",[i]:[l],assign:"PartitionResult"},Qe={[v]:"UseFIPS"},Ye={[v]:"UseDualStack"},P={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:Ve,signingName:ze,signingRegion:Be}]},headers:{}},_={},Me={conditions:[{[n]:p,[i]:[l,"aws-global"]}],[c]:P,[o]:c},He={[n]:S,[i]:[Qe,!0]},Je={[n]:S,[i]:[Ye,!0]},ke={[n]:oe,[i]:[{[v]:"PartitionResult"},"supportsFIPS"]},Xe={[v]:"PartitionResult"},Le={[n]:S,[i]:[!0,{[n]:oe,[i]:[Xe,"supportsDualStack"]}]},je=[{[n]:"isSet",[i]:[ge]}],Ge=[He],Oe=[Je],Oo={version:"1.0",parameters:{Region:We,UseDualStack:te,UseFIPS:te,Endpoint:We,UseGlobalEndpoint:te},rules:[{conditions:[{[n]:S,[i]:[{[v]:"UseGlobalEndpoint"},ee]},{[n]:"not",[i]:je},we,Ue,{[n]:S,[i]:[Qe,qe]},{[n]:S,[i]:[Ye,qe]}],rules:[{conditions:[{[n]:p,[i]:[l,"ap-northeast-1"]}],endpoint:P,[o]:c},{conditions:[{[n]:p,[i]:[l,"ap-south-1"]}],endpoint:P,[o]:c},{conditions:[{[n]:p,[i]:[l,"ap-southeast-1"]}],endpoint:P,[o]:c},{conditions:[{[n]:p,[i]:[l,"ap-southeast-2"]}],endpoint:P,[o]:c},Me,{conditions:[{[n]:p,[i]:[l,"ca-central-1"]}],endpoint:P,[o]:c},{conditions:[{[n]:p,[i]:[l,"eu-central-1"]}],endpoint:P,[o]:c},{conditions:[{[n]:p,[i]:[l,"eu-north-1"]}],endpoint:P,[o]:c},{conditions:[{[n]:p,[i]:[l,"eu-west-1"]}],endpoint:P,[o]:c},{conditions:[{[n]:p,[i]:[l,"eu-west-2"]}],endpoint:P,[o]:c},{conditions:[{[n]:p,[i]:[l,"eu-west-3"]}],endpoint:P,[o]:c},{conditions:[{[n]:p,[i]:[l,"sa-east-1"]}],endpoint:P,[o]:c},{conditions:[{[n]:p,[i]:[l,Be]}],endpoint:P,[o]:c},{conditions:[{[n]:p,[i]:[l,"us-east-2"]}],endpoint:P,[o]:c},{conditions:[{[n]:p,[i]:[l,"us-west-1"]}],endpoint:P,[o]:c},{conditions:[{[n]:p,[i]:[l,"us-west-2"]}],endpoint:P,[o]:c},{endpoint:{url:Fe,properties:{authSchemes:[{name:Ve,signingName:ze,signingRegion:"{Region}"}]},headers:_},[o]:c}],[o]:R},{conditions:je,rules:[{conditions:Ge,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[o]:M},{conditions:Oe,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[o]:M},{endpoint:{url:ge,properties:_,headers:_},[o]:c}],[o]:R},{conditions:[we],rules:[{conditions:[Ue],rules:[{conditions:[He,Je],rules:[{conditions:[{[n]:S,[i]:[ee,ke]},Le],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:_,headers:_},[o]:c}],[o]:R},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[o]:M}],[o]:R},{conditions:Ge,rules:[{conditions:[{[n]:S,[i]:[ke,ee]}],rules:[{conditions:[{[n]:p,[i]:[{[n]:oe,[i]:[Xe,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:_,headers:_},[o]:c},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:_,headers:_},[o]:c}],[o]:R},{error:"FIPS is enabled but this partition does not support FIPS",[o]:M}],[o]:R},{conditions:Oe,rules:[{conditions:[Le],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:_,headers:_},[o]:c}],[o]:R},{error:"DualStack is enabled but this partition does not support DualStack",[o]:M}],[o]:R},Me,{endpoint:{url:Fe,properties:_,headers:_},[o]:c}],[o]:R}],[o]:R},{error:"Invalid Configuration: Missing Region",[o]:M}]};Ze.ruleSet=Oo});var ot=y((et)=>{Object.defineProperty(et,"__esModule",{value:!0});et.defaultEndpointResolver=void 0;var zo=Vo(),re=Ko(),Bo=fe(),go=new re.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),Qo=(e,t={})=>{return go.get(e,()=>(0,re.resolveEndpoint)(Bo.ruleSet,{endpointParams:e,logger:t.logger}))};et.defaultEndpointResolver=Qo;re.customEndpointFunctions.aws=zo.awsEndpointFunctions});var O=y((ne)=>{Object.defineProperty(ne,"__esModule",{value:!0});ne.STSServiceException=ne.__ServiceException=void 0;var rt=k();Object.defineProperty(ne,"__ServiceException",{enumerable:!0,get:function(){return rt.ServiceException}});class se extends rt.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,se.prototype)}}ne.STSServiceException=se});var Ee=y((nt)=>{Object.defineProperty(nt,"__esModule",{value:!0});nt.IDPCommunicationErrorException=nt.InvalidIdentityTokenException=nt.IDPRejectedClaimException=nt.RegionDisabledException=nt.PackedPolicyTooLargeException=nt.MalformedPolicyDocumentException=nt.ExpiredTokenException=void 0;var A=O();class ie extends A.STSServiceException{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,ie.prototype)}}nt.ExpiredTokenException=ie;class ce extends A.STSServiceException{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,ce.prototype)}}nt.MalformedPolicyDocumentException=ce;class de extends A.STSServiceException{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,de.prototype)}}nt.PackedPolicyTooLargeException=de;class ue extends A.STSServiceException{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,ue.prototype)}}nt.RegionDisabledException=ue;class ae extends A.STSServiceException{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,ae.prototype)}}nt.IDPRejectedClaimException=ae;class pe extends A.STSServiceException{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,pe.prototype)}}nt.InvalidIdentityTokenException=pe;class le extends A.STSServiceException{name="IDPCommunicationErrorException";$fault="client";constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,le.prototype)}}nt.IDPCommunicationErrorException=le});var Te=y((Rt)=>{Object.defineProperty(Rt,"__esModule",{value:!0});Rt.AssumeRoleWithWebIdentity$=Rt.AssumeRole$=Rt.Tag$=Rt.ProvidedContext$=Rt.PolicyDescriptorType$=Rt.Credentials$=Rt.AssumeRoleWithWebIdentityResponse$=Rt.AssumeRoleWithWebIdentityRequest$=Rt.AssumeRoleResponse$=Rt.AssumeRoleRequest$=Rt.AssumedRoleUser$=Rt.errorTypeRegistries=Rt.RegionDisabledException$=Rt.PackedPolicyTooLargeException$=Rt.MalformedPolicyDocumentException$=Rt.InvalidIdentityTokenException$=Rt.IDPRejectedClaimException$=Rt.IDPCommunicationErrorException$=Rt.ExpiredTokenException$=Rt.STSServiceException$=void 0;var fo="Arn",er="AccessKeyId",tr="AssumeRole",or="AssumedRoleId",rr="AssumeRoleRequest",sr="AssumeRoleResponse",Pe="AssumedRoleUser",nr="AssumeRoleWithWebIdentity",ir="AssumeRoleWithWebIdentityRequest",cr="AssumeRoleWithWebIdentityResponse",dr="Audience",ye="Credentials",ur="ContextAssertion",dt="DurationSeconds",ar="Expiration",pr="ExternalId",lr="ExpiredTokenException",Er="IDPCommunicationErrorException",Pr="IDPRejectedClaimException",yr="InvalidIdentityTokenException",_r="Key",Ir="MalformedPolicyDocumentException",ut="Policy",at="PolicyArns",Rr="ProviderArn",Tr="ProvidedContexts",Sr="ProvidedContextsListType",vr="ProvidedContext",xr="PolicyDescriptorType",Dr="ProviderId",pt="PackedPolicySize",mr="PackedPolicyTooLargeException",Ar="Provider",lt="RoleArn",$r="RegionDisabledException",Et="RoleSessionName",br="SecretAccessKey",hr="SubjectFromWebIdentityToken",_e="SourceIdentity",Nr="SerialNumber",qr="SessionToken",Fr="Tags",Wr="TokenCode",wr="TransitiveTagKeys",Ur="Tag",Mr="Value",kr="WebIdentityToken",Lr="arn",jr="accessKeySecretType",$="awsQueryError",b="client",Gr="clientTokenType",h="error",N="httpError",q="message",Or="policyDescriptorListType",Pt="smithy.ts.sdk.synthetic.com.amazonaws.sts",Kr="tagListType",d="com.amazonaws.sts",yt=ct(),F=Ee(),Vr=O(),_t=yt.TypeRegistry.for(Pt);Rt.STSServiceException$=[-3,Pt,"STSServiceException",0,[],[]];_t.registerError(Rt.STSServiceException$,Vr.STSServiceException);var x=yt.TypeRegistry.for(d);Rt.ExpiredTokenException$=[-3,d,lr,{[$]:["ExpiredTokenException",400],[h]:b,[N]:400},[q],[0]];x.registerError(Rt.ExpiredTokenException$,F.ExpiredTokenException);Rt.IDPCommunicationErrorException$=[-3,d,Er,{[$]:["IDPCommunicationError",400],[h]:b,[N]:400},[q],[0]];x.registerError(Rt.IDPCommunicationErrorException$,F.IDPCommunicationErrorException);Rt.IDPRejectedClaimException$=[-3,d,Pr,{[$]:["IDPRejectedClaim",403],[h]:b,[N]:403},[q],[0]];x.registerError(Rt.IDPRejectedClaimException$,F.IDPRejectedClaimException);Rt.InvalidIdentityTokenException$=[-3,d,yr,{[$]:["InvalidIdentityToken",400],[h]:b,[N]:400},[q],[0]];x.registerError(Rt.InvalidIdentityTokenException$,F.InvalidIdentityTokenException);Rt.MalformedPolicyDocumentException$=[-3,d,Ir,{[$]:["MalformedPolicyDocument",400],[h]:b,[N]:400},[q],[0]];x.registerError(Rt.MalformedPolicyDocumentException$,F.MalformedPolicyDocumentException);Rt.PackedPolicyTooLargeException$=[-3,d,mr,{[$]:["PackedPolicyTooLarge",400],[h]:b,[N]:400},[q],[0]];x.registerError(Rt.PackedPolicyTooLargeException$,F.PackedPolicyTooLargeException);Rt.RegionDisabledException$=[-3,d,$r,{[$]:["RegionDisabledException",403],[h]:b,[N]:403},[q],[0]];x.registerError(Rt.RegionDisabledException$,F.RegionDisabledException);Rt.errorTypeRegistries=[_t,x];var zr=[0,d,jr,8,0],Br=[0,d,Gr,8,0];Rt.AssumedRoleUser$=[3,d,Pe,0,[or,fo],[0,0],2];Rt.AssumeRoleRequest$=[3,d,rr,0,[lt,Et,at,ut,dt,Fr,wr,pr,Nr,Wr,_e,Tr],[0,0,()=>It,0,1,()=>Qr,64,0,0,0,0,()=>gr],2];Rt.AssumeRoleResponse$=[3,d,sr,0,[ye,Pe,pt,_e],[[()=>Rt.Credentials$,0],()=>Rt.AssumedRoleUser$,1,0]];Rt.AssumeRoleWithWebIdentityRequest$=[3,d,ir,0,[lt,Et,kr,Dr,at,ut,dt],[0,0,[()=>Br,0],0,()=>It,0,1],3];Rt.AssumeRoleWithWebIdentityResponse$=[3,d,cr,0,[ye,hr,Pe,pt,Ar,dr,_e],[[()=>Rt.Credentials$,0],0,()=>Rt.AssumedRoleUser$,1,0,0,0]];Rt.Credentials$=[3,d,ye,0,[er,br,qr,ar],[0,[()=>zr,0],0,4],4];Rt.PolicyDescriptorType$=[3,d,xr,0,[Lr],[0]];Rt.ProvidedContext$=[3,d,vr,0,[Rr,ur],[0,0]];Rt.Tag$=[3,d,Ur,0,[_r,Mr],[0,0],2];var It=[1,d,Or,0,()=>Rt.PolicyDescriptorType$],gr=[1,d,Sr,0,()=>Rt.ProvidedContext$],Qr=[1,d,Kr,0,()=>Rt.Tag$];Rt.AssumeRole$=[9,d,tr,0,()=>Rt.AssumeRoleRequest$,()=>Rt.AssumeRoleResponse$];Rt.AssumeRoleWithWebIdentity$=[9,d,nr,0,()=>Rt.AssumeRoleWithWebIdentityRequest$,()=>Rt.AssumeRoleWithWebIdentityResponse$]});var Gt=y((Lt)=>{Object.defineProperty(Lt,"__esModule",{value:!0});Lt.getRuntimeConfig=void 0;var fr=X(),es=Zr(),ts=Se(),os=k(),rs=Jr(),Mt=Cr(),kt=Xr(),ss=Z(),ns=ot(),is=Te(),cs=(e)=>{return{apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??Mt.fromBase64,base64Encoder:e?.base64Encoder??Mt.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??ns.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ss.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new fr.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ts.NoAuthSigner}],logger:e?.logger??new os.NoOpLogger,protocol:e?.protocol??es.AwsQueryProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:is.errorTypeRegistries,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??rs.parseUrl,utf8Decoder:e?.utf8Decoder??kt.fromUtf8,utf8Encoder:e?.utf8Encoder??kt.toUtf8}};Lt.getRuntimeConfig=cs});var Xt=y((Ht)=>{Object.defineProperty(Ht,"__esModule",{value:!0});Ht.getRuntimeConfig=void 0;var Is=ps(),Rs=Is.__importDefault(ls()),Ts=gt(),Ot=X(),Kt=Es(),K=Qt(),Ss=Se(),vs=Ps(),Vt=Yt(),W=us(),zt=ds(),Bt=k(),xs=ys(),Ds=_s(),ms=as(),As=Gt(),$s=(e)=>{(0,Bt.emitWarningIfUnsupportedVersion)(process.version);let t=(0,Ds.resolveDefaultsModeConfig)(e),r=()=>t().then(Bt.loadConfigsForDefaultMode),u=(0,As.getRuntimeConfig)(e);(0,Ts.emitWarningIfUnsupportedVersion)(process.version);let s={profile:e?.profile,logger:u.logger};return{...u,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,W.loadConfig)(Ot.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:e?.bodyLengthChecker??xs.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Kt.createDefaultUserAgentProvider)({serviceId:u.serviceId,clientVersion:Rs.default.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(E)=>E.getIdentityProvider("aws.auth#sigv4")||(async(a)=>await e.credentialDefaultProvider(a?.__config||{})()),signer:new Ot.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(E)=>E.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ss.NoAuthSigner}],maxAttempts:e?.maxAttempts??(0,W.loadConfig)(Vt.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,W.loadConfig)(K.NODE_REGION_CONFIG_OPTIONS,{...K.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:zt.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,W.loadConfig)({...Vt.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await r()).retryMode||ms.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??vs.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??zt.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,W.loadConfig)(K.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:e?.useFipsEndpoint??(0,W.loadConfig)(K.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:e?.userAgentAppId??(0,W.loadConfig)(Kt.NODE_APP_ID_CONFIG_OPTIONS,s)}};Ht.getRuntimeConfig=$s});var ft=y((Zt)=>{Object.defineProperty(Zt,"__esModule",{value:!0});Zt.resolveHttpAuthRuntimeConfig=Zt.getHttpAuthExtensionConfiguration=void 0;var bs=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:r,credentials:u}=e;return{setHttpAuthScheme(s){let E=t.findIndex((a)=>a.schemeId===s.schemeId);if(E===-1)t.push(s);else t.splice(E,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){u=s},credentials(){return u}}};Zt.getHttpAuthExtensionConfiguration=bs;var hs=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};Zt.resolveHttpAuthRuntimeConfig=hs});var co=y((no)=>{Object.defineProperty(no,"__esModule",{value:!0});no.resolveRuntimeExtensions=void 0;var eo=so(),to=qs(),oo=k(),ro=ft(),Fs=(e,t)=>{let r=Object.assign((0,eo.getAwsRegionExtensionConfiguration)(e),(0,oo.getDefaultExtensionConfiguration)(e),(0,to.getHttpHandlerExtensionConfiguration)(e),(0,ro.getHttpAuthExtensionConfiguration)(e));return t.forEach((u)=>u.configure(r)),Object.assign(e,(0,eo.resolveAwsRegionExtensionConfiguration)(r),(0,oo.resolveDefaultRuntimeConfig)(r),(0,to.resolveHttpHandlerRuntimeConfig)(r),(0,ro.resolveHttpAuthRuntimeConfig)(r))};no.resolveRuntimeExtensions=Fs});var C=y((xe)=>{Object.defineProperty(xe,"__esModule",{value:!0});xe.STSClient=xe.__Client=void 0;var uo=Ws(),Ls=ws(),js=Us(),ao=Ms(),Gs=Qt(),ve=Se(),Os=ct(),Ks=ks(),Vs=Eo(),po=Yt(),Po=k();Object.defineProperty(xe,"__Client",{enumerable:!0,get:function(){return Po.Client}});var lo=Z(),zs=f(),Bs=Xt(),gs=co();class yo extends Po.Client{config;constructor(...[e]){let t=(0,Bs.getRuntimeConfig)(e||{});super(t);this.initConfig=t;let r=(0,zs.resolveClientEndpointParameters)(t),u=(0,ao.resolveUserAgentConfig)(r),s=(0,po.resolveRetryConfig)(u),E=(0,Gs.resolveRegionConfig)(s),a=(0,uo.resolveHostHeaderConfig)(E),T=(0,Vs.resolveEndpointConfig)(a),D=(0,lo.resolveHttpAuthSchemeConfig)(T),m=(0,gs.resolveRuntimeExtensions)(D,e?.extensions||[]);this.config=m,this.middlewareStack.use((0,Os.getSchemaSerdePlugin)(this.config)),this.middlewareStack.use((0,ao.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,po.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Ks.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,uo.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Ls.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,js.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,ve.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:lo.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(U)=>new ve.DefaultIdentityProviderConfig({"aws.auth#sigv4":U.credentials})})),this.middlewareStack.use((0,ve.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}xe.STSClient=yo});var cn=y((I)=>{var w=C(),z=k(),Io=Eo(),Ro=f(),L=Te(),V=Ee(),De=gt(),Qs=so(),Ys=O();class B extends z.Command.classBuilder().ep(Ro.commonParams).m(function(e,t,r,u){return[Io.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(L.AssumeRole$).build(){}class g extends z.Command.classBuilder().ep(Ro.commonParams).m(function(e,t,r,u){return[Io.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(L.AssumeRoleWithWebIdentity$).build(){}var Hs={AssumeRoleCommand:B,AssumeRoleWithWebIdentityCommand:g};class me extends w.STSClient{}z.createAggregatedClient(Hs,me);var To=(e)=>{if(typeof e?.Arn==="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}return},So=async(e,t,r,u={})=>{let s=typeof e==="function"?await e():e,E=typeof t==="function"?await t():t,a="",T=s??E??(a=await Qs.stsRegionDefaultResolver(u)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (credential provider clientConfig)`,`${E} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),T},Js=(e,t)=>{let r,u;return async(s,E)=>{if(u=s,!r){let{logger:U=e?.parentClientConfig?.logger,profile:j=e?.parentClientConfig?.profile,region:Q,requestHandler:G=e?.parentClientConfig?.requestHandler,credentialProviderLogger:Y,userAgentAppId:H=e?.parentClientConfig?.userAgentAppId}=e,Ao=await So(Q,e?.parentClientConfig?.region,Y,{logger:U,profile:j}),$o=!vo(G);r=new t({...e,userAgentAppId:H,profile:j,credentialDefaultProvider:()=>async()=>u,region:Ao,requestHandler:$o?G:void 0,logger:U})}let{Credentials:a,AssumedRoleUser:T}=await r.send(new B(E));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${E.RoleArn}`);let D=To(T),m={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...D&&{accountId:D}};return De.setCredentialFeature(m,"CREDENTIALS_STS_ASSUME_ROLE","i"),m}},Xs=(e,t)=>{let r;return async(u)=>{if(!r){let{logger:D=e?.parentClientConfig?.logger,profile:m=e?.parentClientConfig?.profile,region:U,requestHandler:j=e?.parentClientConfig?.requestHandler,credentialProviderLogger:Q,userAgentAppId:G=e?.parentClientConfig?.userAgentAppId}=e,Y=await So(U,e?.parentClientConfig?.region,Q,{logger:D,profile:m}),H=!vo(j);r=new t({...e,userAgentAppId:G,profile:m,region:Y,requestHandler:H?j:void 0,logger:D})}let{Credentials:s,AssumedRoleUser:E}=await r.send(new g(u));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${u.RoleArn}`);let a=To(E),T={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};if(a)De.setCredentialFeature(T,"RESOLVED_ACCOUNT_ID","T");return De.setCredentialFeature(T,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),T}},vo=(e)=>{return e?.metadata?.handlerProtocol==="h2"},xo=(e,t)=>{if(!t)return e;else return class extends e{constructor(u){super(u);for(let s of t)this.middlewareStack.use(s)}}},Do=(e={},t)=>Js(e,xo(w.STSClient,t)),mo=(e={},t)=>Xs(e,xo(w.STSClient,t)),Zs=(e)=>(t)=>e({roleAssumer:Do(t),roleAssumerWithWebIdentity:mo(t),...t});I.$Command=z.Command;I.STSServiceException=Ys.STSServiceException;I.AssumeRoleCommand=B;I.AssumeRoleWithWebIdentityCommand=g;I.STS=me;I.decorateDefaultCredentialProvider=Zs;I.getDefaultRoleAssumer=Do;I.getDefaultRoleAssumerWithWebIdentity=mo;Object.prototype.hasOwnProperty.call(w,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:w.__proto__});Object.keys(w).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=w[e]});Object.prototype.hasOwnProperty.call(L,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:L.__proto__});Object.keys(L).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=L[e]});Object.prototype.hasOwnProperty.call(V,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:V.__proto__});Object.keys(V).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=V[e]})});
|
|
2
|
+
export{cn as B5};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{BH as L,Ln as J,Mn as k,PH as z,YI as f,_I as P}from"./cli-0.1.10-y9mkzh11.mjs";import{Q9 as F,V9 as A}from"./cli-0.1.10-mt6tj76h.mjs";import{Oda as W,Qda as R,Rda as H,Sda as X}from"./cli-0.1.10-2mqddc7q.mjs";import{Yfa as Y,Zfa as h}from"./cli-0.1.10-f2jh6yv0.mjs";import{Wga as D,Zga as M}from"./cli-0.1.10-e4qewc1p.mjs";import{Ika as q,Oma as C}from"./cli-0.1.10-mqgz2v10.mjs";import{Kna as V}from"./cli-0.1.10-hyxg32sc.mjs";function S(U){let Q=[];for(let w of U){if(w.type!=="user"&&w.type!=="assistant")continue;if("isMeta"in w&&w.isMeta)continue;if("origin"in w&&w.origin&&w.origin.kind!=="human")continue;let K=w.message.content;if(typeof K==="string")Q.push(K);else if(Array.isArray(K)){for(let B of K)if("type"in B&&B.type==="text"&&"text"in B)Q.push(B.text)}}let G=Q.join(`
|
|
2
|
+
`);return G.length>$?G.slice(-$):G}async function T(U,Q){let G=U.trim();if(!G)return null;try{let w=await f({systemPrompt:J([v]),userPrompt:G,outputFormat:{type:"json_schema",schema:{type:"object",properties:{title:{type:"string"}},required:["title"],additionalProperties:!1}},signal:Q,options:{querySource:"generate_session_title",agents:[],isNonInteractiveSession:q(),hasAppendSystemPrompt:!1,mcpTools:[]}}),K=L(w.message.content),B=I().safeParse(F(K)),Z=B.success?B.data.title.trim()||null:null;return Y("tengu_session_title_generated",{success:Z!==null}),Z}catch(w){return D(`generateSessionTitle failed: ${w}`,{level:"error"}),Y("tengu_session_title_generated",{success:!1}),"Claudio"}}var $=1000,v=`Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.
|
|
3
|
+
|
|
4
|
+
Return JSON with a single "title" field.
|
|
5
|
+
|
|
6
|
+
Good examples:
|
|
7
|
+
{"title": "Fix login button on mobile"}
|
|
8
|
+
{"title": "Add OAuth authentication"}
|
|
9
|
+
{"title": "Debug failing CI tests"}
|
|
10
|
+
{"title": "Refactor API client error handling"}
|
|
11
|
+
|
|
12
|
+
Bad (too vague): {"title": "Code changes"}
|
|
13
|
+
Bad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}
|
|
14
|
+
Bad (wrong case): {"title": "Fix Login Button On Mobile"}`,I;var _=V(()=>{R();C();h();P();M();A();X();z();k();I=H(()=>W.object({title:W.string()}))});
|
|
15
|
+
export{S as je,T as ke,_ as le};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{GT as U,HT as _,IT as E,KT as $,LT as V,qU as v,rU as g,sU as B}from"./cli-0.1.10-gms4557v.mjs";import{kX as Y}from"./cli-0.1.10-v6gq9bxc.mjs";import{lX as p}from"./cli-0.1.10-28zx3btb.mjs";import{$ja as Z,Oma as I}from"./cli-0.1.10-mqgz2v10.mjs";import{Gna as T,Kna as H}from"./cli-0.1.10-hyxg32sc.mjs";function M({children:w,ref:A,stickyScroll:C,...L}){let G=K.useRef(null),[,F]=K.useState(0),N=K.useRef(new Set),O=K.useRef(!1),X=()=>{for(let q of N.current)q()};function P(q){if(Z(),U(q),$(),X(),O.current)return;O.current=!0,queueMicrotask(()=>{O.current=!1,_(q)})}return K.useImperativeHandle(A,()=>({scrollTo(q){let z=G.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor=void 0,z.scrollTop=Math.max(0,Math.floor(q)),P(z)},scrollToElement(q,z=0){let J=G.current;if(!J)return;J.stickyScroll=!1,J.pendingScrollDelta=void 0,J.scrollAnchor={el:q,offset:z},P(J)},scrollBy(q){let z=G.current;if(!z)return;z.stickyScroll=!1,z.scrollAnchor=void 0,z.pendingScrollDelta=(z.pendingScrollDelta??0)+Math.floor(q),P(z)},scrollToBottom(){let q=G.current;if(!q)return;q.pendingScrollDelta=void 0,q.stickyScroll=!0,U(q),X(),F((z)=>z+1)},getScrollTop(){return G.current?.scrollTop??0},getPendingDelta(){return G.current?.pendingScrollDelta??0},getScrollHeight(){return G.current?.scrollHeight??0},getFreshScrollHeight(){return G.current?.childNodes[0]?.yogaNode?.getComputedHeight()??G.current?.scrollHeight??0},getViewportHeight(){return G.current?.scrollViewportHeight??0},getViewportTop(){return G.current?.scrollViewportTop??0},isSticky(){let q=G.current;if(!q)return!1;return q.stickyScroll??Boolean(q.attributes.stickyScroll)},subscribe(q){return N.current.add(q),()=>N.current.delete(q)},setClampBounds(q,z){let J=G.current;if(!J)return;J.scrollClampMin=q,J.scrollClampMax=z}}),[]),W.jsxDEV("ink-box",{ref:(q)=>{if(G.current=q,q)q.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:L.flexDirection??"row",flexGrow:L.flexGrow??0,flexShrink:L.flexShrink??1,...L,overflowX:"scroll",overflowY:"scroll"},...C?{stickyScroll:!0}:{},children:W.jsxDEV(g,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:w},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var K,W,u;var Q=H(()=>{I();E();V();v();B();K=T(p(),1),W=T(Y(),1);u=M});
|
|
2
|
+
export{u as lg,Q as mg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{I8 as $,K8 as O,L7 as V,N7 as P,d8 as k,f8 as E,w$ as D,x$ as T}from"./cli-0.1.10-mt6tj76h.mjs";import{Aga as x,Cga as C,Wga as Z,Zga as N}from"./cli-0.1.10-e4qewc1p.mjs";import{Kna as B}from"./cli-0.1.10-hyxg32sc.mjs";import{readdirSync as y}from"fs";import{stat as W}from"fs/promises";import{homedir as F,platform as H,tmpdir as _,userInfo as M}from"os";import{join as J}from"path";function i(){let v=$(),G=F(),q=[];for(let z of X){let j=K[z],Q;switch(v){case"macos":Q=j.macos.dataPath;break;case"linux":case"wsl":Q=j.linux.dataPath;break;case"windows":{if(j.windows.dataPath.length>0){let Y=j.windows.useRoaming?J(G,"AppData","Roaming"):J(G,"AppData","Local");q.push({browser:z,path:J(Y,...j.windows.dataPath)})}continue}}if(Q&&Q.length>0)q.push({browser:z,path:J(G,...Q)})}return q}function c(){let v=$(),G=F(),q=[];for(let z of X){let j=K[z];switch(v){case"macos":if(j.macos.nativeMessagingPath.length>0)q.push({browser:z,path:J(G,...j.macos.nativeMessagingPath)});break;case"linux":case"wsl":if(j.linux.nativeMessagingPath.length>0)q.push({browser:z,path:J(G,...j.linux.nativeMessagingPath)});break;case"windows":break}}return q}function t(){let v=[];for(let G of X){let q=K[G];if(q.windows.registryKey)v.push({browser:G,key:q.windows.registryKey})}return v}async function w(){let v=$();for(let G of X){let q=K[G];switch(v){case"macos":{let z=`/Applications/${q.macos.appName}.app`;try{if((await W(z)).isDirectory())return Z(`[Claude in Chrome] Detected browser: ${q.name}`),G}catch(j){if(!x(j))throw j}break}case"wsl":case"linux":{for(let z of q.linux.binaries)if(await k(z).catch(()=>null))return Z(`[Claude in Chrome] Detected browser: ${q.name}`),G;break}case"windows":{let z=F();if(q.windows.dataPath.length>0){let j=q.windows.useRoaming?J(z,"AppData","Roaming"):J(z,"AppData","Local"),Q=J(j,...q.windows.dataPath);try{if((await W(Q)).isDirectory())return Z(`[Claude in Chrome] Detected browser: ${q.name}`),G}catch(Y){if(!x(Y))throw Y}}break}}}return null}function r(v){return D(v)===S}function o(v){if(L.size>=R&&!L.has(v))L.clear();L.add(v)}async function a(v){let G=$(),q=await w();if(!q)return Z("[Claude in Chrome] No compatible browser found"),!1;let z=K[q];switch(G){case"macos":{let{code:j}=await V("open",["-a",z.macos.appName,v]);return j===0}case"windows":{let{code:j}=await V("rundll32",["url,OpenURL",v]);return j===0}case"wsl":case"linux":{for(let j of z.linux.binaries){let{code:Q}=await V(j,[v]);if(Q===0)return!0}return!1}default:return!1}}function U(){return`/tmp/claude-mcp-browser-bridge-${A()}`}function e(){if(H()==="win32")return`\\\\.\\pipe\\${u()}`;return J(U(),`${process.pid}.sock`)}function jj(){if(H()==="win32")return[`\\\\.\\pipe\\${u()}`];let v=[],G=U();try{let Q=y(G);for(let Y of Q)if(Y.endsWith(".sock"))v.push(J(G,Y))}catch{}let q=`claude-mcp-browser-bridge-${A()}`,z=J(_(),q),j=`/tmp/${q}`;if(!v.includes(z))v.push(z);if(z!==j&&!v.includes(j))v.push(j);return v}function u(){return`claude-mcp-browser-bridge-${A()}`}function A(){try{return M().username||"default"}catch{return process.env.USER||process.env.USERNAME||"default"}}var S="claude-in-chrome",K,X,R=200,L;var b=B(()=>{T();N();C();P();O();E();K={chrome:{name:"Google Chrome",macos:{appName:"Google Chrome",dataPath:["Library","Application Support","Google","Chrome"],nativeMessagingPath:["Library","Application Support","Google","Chrome","NativeMessagingHosts"]},linux:{binaries:["google-chrome","google-chrome-stable"],dataPath:[".config","google-chrome"],nativeMessagingPath:[".config","google-chrome","NativeMessagingHosts"]},windows:{dataPath:["Google","Chrome","User Data"],registryKey:"HKCU\\Software\\Google\\Chrome\\NativeMessagingHosts"}},brave:{name:"Brave",macos:{appName:"Brave Browser",dataPath:["Library","Application Support","BraveSoftware","Brave-Browser"],nativeMessagingPath:["Library","Application Support","BraveSoftware","Brave-Browser","NativeMessagingHosts"]},linux:{binaries:["brave-browser","brave"],dataPath:[".config","BraveSoftware","Brave-Browser"],nativeMessagingPath:[".config","BraveSoftware","Brave-Browser","NativeMessagingHosts"]},windows:{dataPath:["BraveSoftware","Brave-Browser","User Data"],registryKey:"HKCU\\Software\\BraveSoftware\\Brave-Browser\\NativeMessagingHosts"}},arc:{name:"Arc",macos:{appName:"Arc",dataPath:["Library","Application Support","Arc","User Data"],nativeMessagingPath:["Library","Application Support","Arc","User Data","NativeMessagingHosts"]},linux:{binaries:[],dataPath:[],nativeMessagingPath:[]},windows:{dataPath:["Arc","User Data"],registryKey:"HKCU\\Software\\ArcBrowser\\Arc\\NativeMessagingHosts"}},chromium:{name:"Chromium",macos:{appName:"Chromium",dataPath:["Library","Application Support","Chromium"],nativeMessagingPath:["Library","Application Support","Chromium","NativeMessagingHosts"]},linux:{binaries:["chromium","chromium-browser"],dataPath:[".config","chromium"],nativeMessagingPath:[".config","chromium","NativeMessagingHosts"]},windows:{dataPath:["Chromium","User Data"],registryKey:"HKCU\\Software\\Chromium\\NativeMessagingHosts"}},edge:{name:"Microsoft Edge",macos:{appName:"Microsoft Edge",dataPath:["Library","Application Support","Microsoft Edge"],nativeMessagingPath:["Library","Application Support","Microsoft Edge","NativeMessagingHosts"]},linux:{binaries:["microsoft-edge","microsoft-edge-stable"],dataPath:[".config","microsoft-edge"],nativeMessagingPath:[".config","microsoft-edge","NativeMessagingHosts"]},windows:{dataPath:["Microsoft","Edge","User Data"],registryKey:"HKCU\\Software\\Microsoft\\Edge\\NativeMessagingHosts"}},vivaldi:{name:"Vivaldi",macos:{appName:"Vivaldi",dataPath:["Library","Application Support","Vivaldi"],nativeMessagingPath:["Library","Application Support","Vivaldi","NativeMessagingHosts"]},linux:{binaries:["vivaldi","vivaldi-stable"],dataPath:[".config","vivaldi"],nativeMessagingPath:[".config","vivaldi","NativeMessagingHosts"]},windows:{dataPath:["Vivaldi","User Data"],registryKey:"HKCU\\Software\\Vivaldi\\NativeMessagingHosts"}},opera:{name:"Opera",macos:{appName:"Opera",dataPath:["Library","Application Support","com.operasoftware.Opera"],nativeMessagingPath:["Library","Application Support","com.operasoftware.Opera","NativeMessagingHosts"]},linux:{binaries:["opera"],dataPath:[".config","opera"],nativeMessagingPath:[".config","opera","NativeMessagingHosts"]},windows:{dataPath:["Opera Software","Opera Stable"],registryKey:"HKCU\\Software\\Opera Software\\Opera Stable\\NativeMessagingHosts",useRoaming:!0}}},X=["chrome","brave","arc","edge","chromium","vivaldi","opera"];L=new Set});
|
|
2
|
+
export{S as MW,i as NW,c as OW,t as PW,r as QW,o as RW,a as SW,U as TW,e as UW,jj as VW,b as WW};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ta as c}from"./cli-0.1.10-h7egg5xp.mjs";import{qc as v,uc as Wq}from"./cli-0.1.10-qhh8pa5t.mjs";import{Ac as $,Bc as Xq,yc as I,zc as S}from"./cli-0.1.10-v582vfad.mjs";import{Aq as N,Cq as e,Dz as h,Ez as Bq,HG as M,KG as Qq,KJ as E,LJ as f,NJ as Tq,Nz as A,OJ as P,PJ as Vq,Pz as Gq,Sy as L,Yy as qq,pF as _,qF as Jq,xl as C,yl as r}from"./cli-0.1.10-y9mkzh11.mjs";import{lX as s}from"./cli-0.1.10-28zx3btb.mjs";import{D7 as n,h7 as y,j7 as o,m9 as w,o9 as t,y7 as D}from"./cli-0.1.10-mt6tj76h.mjs";import{Yfa as F,Zfa as a}from"./cli-0.1.10-f2jh6yv0.mjs";import{Cga as d,Wga as j,Zga as l,vga as x}from"./cli-0.1.10-e4qewc1p.mjs";import{Gna as p}from"./cli-0.1.10-hyxg32sc.mjs";Vq();a();Gq();Tq();Xq();t();l();o();d();n();r();Jq();qq();Bq();e();var V=p(s(),1);Wq();Qq();function hq({enabled:W=!0}={}){let b=V.useSyncExternalStore(S,I,I),H=f(),O=E((J)=>J.plugins.needsRefresh),{addNotification:z}=P(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await M();await c();let X=v();if(Object.keys(X).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let Y=[],Z=[];try{Y=await _(),$(Y)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Z=await C()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await L()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let u=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await N(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await h(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);A(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let i=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(i)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:T,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${T.length}, Commands: ${Y.length}, Agents: ${Z.length}, Errors: ${Q.length}`);let g=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:T.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:Y.length,agent_count:Z.length,hook_count:g,mcp_count:u,lsp_count:m}}catch(J){let T=x(J);return D(T),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let X=Q.plugins.errors.filter((Z)=>Z.source==="lsp-manager"||Z.source.startsWith("plugin:")),Y={type:"generic-error",source:"plugin-system",error:T.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...X,Y]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return V.useEffect(()=>{if(!W)return;R().then((J)=>{let{ant_enabled_names:T,...Q}=J,X={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDE_CODE_PLUGIN_CACHE_DIR};F("tengu_plugins_loaded",{...X,...T!==void 0&&{enabled_names:T}}),y("info","tengu_plugins_loaded",X)})},[R,W]),V.useEffect(()=>{if(W)return;$([])},[W]),V.useEffect(()=>{if(!W||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[W,O,z]),W?b:[]}
|
|
2
|
+
export{hq as R};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Zfa as Y}from"./cli-0.1.10-f2jh6yv0.mjs";import{Zga as V}from"./cli-0.1.10-e4qewc1p.mjs";import{Kna as X}from"./cli-0.1.10-hyxg32sc.mjs";var _,O;var F=X(()=>{_=Promise.resolve(),O=new Set(["if","then","elif","else","fi","while","until","for","in","do","done","case","esac","function","select"])});async function D(){}async function C(z){if(!z||z.length>G)return null;return null}async function u(z){if(!z||z.length>G)return null;return null}function b(z){if(z.type==="declaration_command"){let J=z.children[0];return J&&U.has(J.text)?[J.text]:[]}let Z=[],$=!1;for(let J of z.children){if(J.type==="variable_assignment")continue;if(J.type==="command_name"||!$&&J.type==="word"){$=!0,Z.push(J.text);continue}if(q.has(J.type))Z.push(H(J.text));else if(Q.has(J.type))break}return Z}function H(z){return z.length>=2&&(z[0]==='"'&&z.at(-1)==='"'||z[0]==="'"&&z.at(-1)==="'")?z.slice(1,-1):z}var G=1e4,U,q,Q,y;var M=X(()=>{Y();V();F();U=new Set(["export","declare","typeset","readonly","local","unset","unsetenv"]),q=new Set(["word","string","raw_string","number"]),Q=new Set(["command_substitution","process_substitution"]);y=Symbol("parse-aborted")});
|
|
2
|
+
export{O as LZ,F as MZ,D as NZ,C as OZ,y as PZ,u as QZ,b as RZ,M as SZ};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{CV as x}from"./cli-0.1.10-4n8rvtk0.mjs";import{b5 as q}from"./cli-0.1.10-vrd90nhd.mjs";import{gfa as f}from"./cli-0.1.10-w1hqcxj1.mjs";import{lha as p}from"./cli-0.1.10-y1bkenem.mjs";import{Kna as d}from"./cli-0.1.10-hyxg32sc.mjs";function N(){return!1}async function O(){return!1}function P(){return!1}function Q(){return!0}function R(){return null}var z=d(()=>{f();q();p();x()});
|
|
2
|
+
export{N as nf,O as of,P as pf,Q as qf,R as rf,z as sf};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{bha as w,lha as F}from"./cli-0.1.10-y1bkenem.mjs";import{Kna as D}from"./cli-0.1.10-hyxg32sc.mjs";function Q(b){z=b}function V(){let b=z?.()??{};if(!w(process.env.CLAUDE_CODE_SUBPROCESS_ENV_SCRUB))return Object.keys(b).length>0?{...process.env,...b}:process.env;let d={...process.env,...b};for(let q of J)delete d[q],delete d[`INPUT_${q}`];return d}var J,z;var L=D(()=>{F();J=["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_FOUNDRY_API_KEY","ANTHROPIC_CUSTOM_HEADERS","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_TRACES_HEADERS","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","GOOGLE_APPLICATION_CREDENTIALS","AZURE_CLIENT_SECRET","AZURE_CLIENT_CERTIFICATE_PATH","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","ACTIONS_RUNTIME_TOKEN","ACTIONS_RUNTIME_URL","ALL_INPUTS","OVERRIDE_GITHUB_TOKEN","DEFAULT_WORKFLOW_TOKEN","SSH_SIGNING_KEY"]});
|
|
2
|
+
export{Q as MP,V as NP,L as OP};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ina as D,Lna as J}from"./cli-0.1.10-hyxg32sc.mjs";var G=D((V,E)=>{E.exports=(O,k=process.argv)=>{let q=O.startsWith("-")?"":O.length===1?"-":"--",i=k.indexOf(q+O),B=k.indexOf("--");return i!==-1&&(B===-1||i<B)}});var U=D((W,K)=>{var M=J("os"),H=J("tty"),P=G(),{env:x}=process,j;if(P("no-color")||P("no-colors")||P("color=false")||P("color=never"))j=0;else if(P("color")||P("colors")||P("color=true")||P("color=always"))j=1;if("FORCE_COLOR"in x)if(x.FORCE_COLOR==="true")j=1;else if(x.FORCE_COLOR==="false")j=0;else j=x.FORCE_COLOR.length===0?1:Math.min(parseInt(x.FORCE_COLOR,10),3);function z(O){if(O===0)return!1;return{level:O,hasBasic:!0,has256:O>=2,has16m:O>=3}}function A(O,k){if(j===0)return 0;if(P("color=16m")||P("color=full")||P("color=truecolor"))return 3;if(P("color=256"))return 2;if(O&&!k&&j===void 0)return 0;let q=j||0;if(x.TERM==="dumb")return q;if(process.platform==="win32"){let i=M.release().split(".");if(Number(i[0])>=10&&Number(i[2])>=10586)return Number(i[2])>=14931?3:2;return 1}if("CI"in x){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((i)=>(i in x))||x.CI_NAME==="codeship")return 1;return q}if("TEAMCITY_VERSION"in x)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(x.TEAMCITY_VERSION)?1:0;if(x.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in x){let i=parseInt((x.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(x.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(x.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(x.TERM))return 1;if("COLORTERM"in x)return 1;return q}function Q(O){let k=A(O,O&&O.isTTY);return z(k)}K.exports={supportsColor:Q,stdout:z(A(!0,H.isatty(1))),stderr:z(A(!0,H.isatty(2)))}});
|
|
2
|
+
export{G as F6,U as G6};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{hf as PJ,if as SQ}from"./cli-0.1.10-bw6411be.mjs";import{uf as mJ,wf as tQ}from"./cli-0.1.10-rjz4ymc4.mjs";import{Ch as CJ,Eh as vJ,Fh as iQ}from"./cli-0.1.10-x2eaxa4s.mjs";import{Bi as dQ,Bt as NJ,Cv as JJ,Dv as ZQ,Dy as r,Et as bJ,Ft as DJ,Gt as _J,It as EJ,JL as gJ,Kj as O,Lj as cQ,Ly as nQ,Ot as lQ,PF as I,QF as rQ,Vk as TJ,YF as dJ,aN as JZ,el as hJ,gG as oQ,jv as LJ,kv as TQ,ml as uQ,oG as cJ,oq as SJ,ov as yJ,pv as hQ,rG as sQ,rM as rJ,sq as mQ,us as D,vs as QQ,xt as fJ,yi as xJ,zt as FJ}from"./cli-0.1.10-y9mkzh11.mjs";import{DQ as IQ,mQ as m,nQ as i}from"./cli-0.1.10-z4a84y0c.mjs";import{OQ as pJ,PQ as gQ}from"./cli-0.1.10-x1qs5ctr.mjs";import{_Q as YJ,kR as OQ}from"./cli-0.1.10-fhvyzg2m.mjs";import{NR as iJ,OR as lJ,PR as nJ,TR as eQ}from"./cli-0.1.10-t8rnwwhq.mjs";import{bS as uJ,hS as aQ}from"./cli-0.1.10-nfnje7ew.mjs";import{IU as R,JU as pQ,KU as l,MU as kJ,_S as AQ,pV as xQ}from"./cli-0.1.10-gms4557v.mjs";import{kX as WJ}from"./cli-0.1.10-v6gq9bxc.mjs";import{lX as wQ}from"./cli-0.1.10-28zx3btb.mjs";import{DX as BJ,FX as qQ}from"./cli-0.1.10-227xyew7.mjs";import{K4 as f,T2 as wJ,U2 as AJ,b5 as EQ,j1 as oJ,o1 as KZ,q3 as _Q}from"./cli-0.1.10-vrd90nhd.mjs";import{h5 as c,k5 as VQ,p5 as XJ,q5 as HJ,v5 as RQ}from"./cli-0.1.10-y6a8q1t3.mjs";import{x5 as jJ,y5 as DQ}from"./cli-0.1.10-wjmtd9vm.mjs";import{Aaa as g,Aba as E,Bba as e,D7 as x,G8 as a,I8 as $,Jaa as bQ,K8 as NQ,M7 as b,N7 as JQ,Oba as T,i8 as o,j8 as s,r_ as U,sba as M,t_ as t,vaa as IJ,vba as Y,y7 as W,z8 as OJ,zaa as F}from"./cli-0.1.10-mt6tj76h.mjs";import{Vda as N,Wda as eJ}from"./cli-0.1.10-4n8p34vn.mjs";import{Hea as KJ,Iea as UQ}from"./cli-0.1.10-594z8zdp.mjs";import{Wea as y,ffa as UJ,gfa as VJ}from"./cli-0.1.10-w1hqcxj1.mjs";import{Yfa as RJ,Zfa as jQ}from"./cli-0.1.10-f2jh6yv0.mjs";import{Cga as YQ,Ega as d,Fga as GJ,Iga as WQ,Wga as K,Zga as h,wga as zJ}from"./cli-0.1.10-e4qewc1p.mjs";import{lna as _,mna as tJ}from"./cli-0.1.10-akaq0zte.mjs";import{Gna as S,Lna as BQ}from"./cli-0.1.10-hyxg32sc.mjs";tJ();QQ();eJ();T();t();JQ();a();x();ZQ();var zQ=[/(?:^|\/)(?:package-lock\.json|yarn\.lock|bun\.lock|bun\.lockb|pnpm-lock\.yaml|Pipfile\.lock|poetry\.lock|Cargo\.lock|Gemfile\.lock|go\.sum|composer\.lock|uv\.lock)$/,/\.generated\./,/(?:^|\/)(?:dist|build|out|target|node_modules|\.next|__pycache__)\//,/\.(?:min\.js|min\.css|map|pyc|pyo)$/,/\.(?:json|ya?ml|toml|xml|ini|cfg|conf|env|lock|txt|md|mdx|rst|csv|log|svg)$/i,/(?:^|\/)\.?(?:eslintrc|prettierrc|babelrc|editorconfig|gitignore|gitattributes|dockerignore|npmrc)/,/(?:^|\/)(?:tsconfig|jsconfig|biome|vitest\.config|jest\.config|webpack\.config|vite\.config|rollup\.config)\.[a-z]+$/,/(?:^|\/)\.(?:github|vscode|idea|claude)\//,/(?:^|\/)(?:CHANGELOG|LICENSE|CONTRIBUTING|CODEOWNERS|README)(?:\.[a-z]+)?$/i];function GQ(Q){return!zQ.some((J)=>J.test(Q))}function KQ(Q,J){let Z=[],z=new Set,X=new Map;for(let G=1;Z.length<J&&G<=J;G++)for(let H of Q){if(Z.length>=J)break;if(!GQ(H))continue;let B=Math.max(H.lastIndexOf("/"),H.lastIndexOf("\\")),V=B>=0?H.slice(B+1):H;if(!V||z.has(V))continue;let k=B>=0?H.slice(0,B):".";if((X.get(k)??0)>=G)continue;Z.push(V),z.add(V),X.set(k,(X.get(k)??0)+1)}return Z.length>=J?Z:[]}async function XQ(){if(U.platform==="win32")return[];if(!await s())return[];try{let Q=await JJ(),J=["log","-n","1000","--pretty=format:","--name-only","--diff-filter=M"],Z=new Map,z=(G)=>{for(let H of G.split(`
|
|
2
|
+
`)){let B=H.trim();if(B)Z.set(B,(Z.get(B)??0)+1)}};if(Q){let{stdout:G}=await b("git",[...J,`--author=${Q}`],{cwd:N()});z(G)}if(Z.size<10){let{stdout:G}=await b(o(),J,{cwd:N()});z(G)}let X=Array.from(Z.entries()).sort((G,H)=>H[1]-G[1]).map(([G])=>G);return KQ(X,5)}catch(Q){return W(Q),[]}}var HQ=604800000,PZ=_(()=>{let Q=E(),J=Q.exampleFiles?.length?D(Q.exampleFiles):"<filepath>",Z=["fix lint errors","fix typecheck errors",`how does ${J} work?`,`refactor ${J}`,"how do I log an error?",`edit ${J} to...`,`write a test for ${J}`,"create a util logging.py that..."];return`Try "${D(Z)}"`}),qZ=_(async()=>{let Q=E(),J=Date.now(),Z=Q.exampleFilesGeneratedAt??0;if(J-Z>HQ)Q.exampleFiles=[];if(!Q.exampleFiles?.length)XQ().then((z)=>{if(z.length)e((X)=>({...X,exampleFiles:z,exampleFilesGeneratedAt:Date.now()}))})});h();x();qQ();UQ();h();YQ();x();VQ();RQ();WQ();import{randomUUID as kQ}from"crypto";var QJ=2000,ZJ=5,LQ=30000,p=3,yQ=new Set([4003]);function PQ(Q){if(typeof Q!=="object"||Q===null||!("type"in Q))return!1;return typeof Q.type==="string"}class u{sessionId;orgUuid;getAccessToken;callbacks;ws=null;state="closed";reconnectAttempts=0;sessionNotFoundRetries=0;pingInterval=null;reconnectTimer=null;constructor(Q,J,Z,z){this.sessionId=Q;this.orgUuid=J;this.getAccessToken=Z;this.callbacks=z}async connect(){if(this.state==="connecting"){K("[SessionsWebSocket] Already connecting");return}this.state="connecting";let J=`${KJ().BASE_API_URL.replace("https://","wss://")}/v1/sessions/ws/${this.sessionId}/subscribe?organization_uuid=${this.orgUuid}`;K(`[SessionsWebSocket] Connecting to ${J}`);let z={Authorization:`Bearer ${this.getAccessToken()}`,"anthropic-version":"2023-06-01"};if(typeof Bun<"u"){let X=new globalThis.WebSocket(J,{headers:z,proxy:HJ(J),tls:c()||void 0});this.ws=X,X.addEventListener("open",()=>{K("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),X.addEventListener("message",(G)=>{let H=typeof G.data==="string"?G.data:String(G.data);this.handleMessage(H)}),X.addEventListener("error",()=>{let G=Error("[SessionsWebSocket] WebSocket error");W(G),this.callbacks.onError?.(G)}),X.addEventListener("close",(G)=>{K(`[SessionsWebSocket] Closed: code=${G.code} reason=${G.reason}`),this.handleClose(G.code)}),X.addEventListener("pong",()=>{K("[SessionsWebSocket] Pong received")})}else{let{default:X}=await import("./wrapper-0.1.10-10976h3e.mjs"),G=new X(J,{headers:z,agent:XJ(J),...c()});this.ws=G,G.on("open",()=>{K("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),G.on("message",(H)=>{this.handleMessage(H.toString())}),G.on("error",(H)=>{W(Error(`[SessionsWebSocket] Error: ${H.message}`)),this.callbacks.onError?.(H)}),G.on("close",(H,B)=>{K(`[SessionsWebSocket] Closed: code=${H} reason=${B.toString()}`),this.handleClose(H)}),G.on("pong",()=>{K("[SessionsWebSocket] Pong received")})}}handleMessage(Q){try{let J=GJ(Q);if(PQ(J))this.callbacks.onMessage(J);else K(`[SessionsWebSocket] Ignoring message type: ${typeof J==="object"&&J!==null&&"type"in J?String(J.type):"unknown"}`)}catch(J){W(Error(`[SessionsWebSocket] Failed to parse message: ${zJ(J)}`))}}handleClose(Q){if(this.stopPingInterval(),this.state==="closed")return;this.ws=null;let J=this.state;if(this.state="closed",yQ.has(Q)){K(`[SessionsWebSocket] Permanent close code ${Q}, not reconnecting`),this.callbacks.onClose?.();return}if(Q===4001){if(this.sessionNotFoundRetries++,this.sessionNotFoundRetries>p){K(`[SessionsWebSocket] 4001 retry budget exhausted (${p}), not reconnecting`),this.callbacks.onClose?.();return}this.scheduleReconnect(QJ*this.sessionNotFoundRetries,`4001 attempt ${this.sessionNotFoundRetries}/${p}`);return}if(J==="connected"&&this.reconnectAttempts<ZJ)this.reconnectAttempts++,this.scheduleReconnect(QJ,`attempt ${this.reconnectAttempts}/${ZJ}`);else K("[SessionsWebSocket] Not reconnecting"),this.callbacks.onClose?.()}scheduleReconnect(Q,J){this.callbacks.onReconnecting?.(),K(`[SessionsWebSocket] Scheduling reconnect (${J}) in ${Q}ms`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},Q)}startPingInterval(){this.stopPingInterval(),this.pingInterval=setInterval(()=>{if(this.ws&&this.state==="connected")try{this.ws.ping?.()}catch{}},LQ)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}sendControlResponse(Q){if(!this.ws||this.state!=="connected"){W(Error("[SessionsWebSocket] Cannot send: not connected"));return}K("[SessionsWebSocket] Sending control response"),this.ws.send(d(Q))}sendControlRequest(Q){if(!this.ws||this.state!=="connected"){W(Error("[SessionsWebSocket] Cannot send: not connected"));return}let J={type:"control_request",request_id:kQ(),request:Q};K(`[SessionsWebSocket] Sending control request: ${Q.subtype}`),this.ws.send(d(J))}isConnected(){return this.state==="connected"}close(){if(K("[SessionsWebSocket] Closing connection"),this.state="closed",this.stopPingInterval(),this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.ws)this.ws.close(),this.ws=null}reconnect(){K("[SessionsWebSocket] Force reconnecting"),this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.close(),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},500)}}function MQ(Q){return Q.type!=="control_request"&&Q.type!=="control_response"&&Q.type!=="control_cancel_request"}class $Q{config;callbacks;websocket=null;pendingPermissionRequests=new Map;constructor(Q,J){this.config=Q;this.callbacks=J}connect(){K(`[RemoteSessionManager] Connecting to session ${this.config.sessionId}`);let Q={onMessage:(J)=>this.handleMessage(J),onConnected:()=>{K("[RemoteSessionManager] Connected"),this.callbacks.onConnected?.()},onClose:()=>{K("[RemoteSessionManager] Disconnected"),this.callbacks.onDisconnected?.()},onReconnecting:()=>{K("[RemoteSessionManager] Reconnecting"),this.callbacks.onReconnecting?.()},onError:(J)=>{W(J),this.callbacks.onError?.(J)}};this.websocket=new u(this.config.sessionId,this.config.orgUuid,this.config.getAccessToken,Q),this.websocket.connect()}handleMessage(Q){if(Q.type==="control_request"){this.handleControlRequest(Q);return}if(Q.type==="control_cancel_request"){let{request_id:J}=Q,Z=this.pendingPermissionRequests.get(J);K(`[RemoteSessionManager] Permission request cancelled: ${J}`),this.pendingPermissionRequests.delete(J),this.callbacks.onPermissionCancelled?.(J,Z?.tool_use_id);return}if(Q.type==="control_response"){K("[RemoteSessionManager] Received control response");return}if(MQ(Q))this.callbacks.onMessage(Q)}handleControlRequest(Q){let{request_id:J,request:Z}=Q;if(Z.subtype==="can_use_tool")K(`[RemoteSessionManager] Permission request for tool: ${Z.tool_name}`),this.pendingPermissionRequests.set(J,Z),this.callbacks.onPermissionRequest(Z,J);else{K(`[RemoteSessionManager] Unsupported control request subtype: ${Z.subtype}`);let z={type:"control_response",response:{subtype:"error",request_id:J,error:`Unsupported control request subtype: ${Z.subtype}`}};this.websocket?.sendControlResponse(z)}}async sendMessage(Q,J){K(`[RemoteSessionManager] Sending message to session ${this.config.sessionId}`);let Z=await BJ(this.config.sessionId,Q,J);if(!Z)W(Error(`[RemoteSessionManager] Failed to send message to session ${this.config.sessionId}`));return Z}respondToPermissionRequest(Q,J){if(!this.pendingPermissionRequests.get(Q)){W(Error(`[RemoteSessionManager] No pending permission request with ID: ${Q}`));return}this.pendingPermissionRequests.delete(Q);let z={type:"control_response",response:{subtype:"success",request_id:Q,response:{behavior:J.behavior,...J.behavior==="allow"?{updatedInput:J.updatedInput}:{message:J.message}}}};K(`[RemoteSessionManager] Sending permission response: ${J.behavior}`),this.websocket?.sendControlResponse(z)}isConnected(){return this.websocket?.isConnected()??!1}cancelSession(){K("[RemoteSessionManager] Sending interrupt signal"),this.websocket?.sendControlRequest({subtype:"interrupt"})}getSessionId(){return this.config.sessionId}disconnect(){K("[RemoteSessionManager] Disconnecting"),this.websocket?.close(),this.websocket=null,this.pendingPermissionRequests.clear()}reconnect(){K("[RemoteSessionManager] Reconnecting WebSocket"),this.websocket?.reconnect()}}function FZ(Q,J,Z,z=!1,X=!1){return{sessionId:Q,getAccessToken:J,orgUuid:Z,hasInitialPrompt:z,viewerOnly:X}}h();x();OQ();IQ();function pZ(){let Q=YJ();if(!Q?.teamName||!Q?.agentName){K("[Reconnection] computeInitialTeamContext: No teammate context set (not a teammate)");return}let{teamName:J,agentId:Z,agentName:z}=Q,X=i(J);if(!X){W(Error(`[computeInitialTeamContext] Could not read team file for ${J}`));return}let G=m(J),H=!Z;return K(`[Reconnection] Computed initial team context for ${H?"leader":`teammate ${z}`} in team ${J}`),{teamName:J,teamFilePath:G,leadAgentId:X.leadAgentId,selfAgentId:Z,selfAgentName:z,isLeader:H,teammates:{}}}function dZ(Q,J,Z){let z=i(J);if(!z){W(Error(`[initializeTeammateContextFromSession] Could not read team file for ${J} (agent: ${Z})`));return}let X=z.members.find((B)=>B.name===Z);if(!X)K(`[Reconnection] Member ${Z} not found in team ${J} - may have been removed`);let G=X?.agentId,H=m(J);Q((B)=>({...B,teamContext:{teamName:J,teamFilePath:H,leadAgentId:z.leadAgentId,selfAgentId:G,selfAgentName:Z,isLeader:!1,teammates:{}}})),K(`[Reconnection] Initialized agent context from session for ${Z} in team ${J}`)}xQ();VJ();jQ();T();TQ();SQ();hQ();var qJ=S(AQ(),1),C=S(wQ(),1),L=S(WJ(),1),CQ={enable_shortcut_tip:!1,enable_startup_dialog:!1};function n(){return UJ("tengu_desktop_upsell",CQ)}function vQ(){return process.platform==="darwin"||process.platform==="win32"&&process.arch==="x64"}function oZ(){if(!vQ())return!1;if(!n().enable_startup_dialog)return!1;let Q=Y();if(Q.desktopUpsellDismissed)return!1;if((Q.desktopUpsellSeenCount??0)>=3)return!1;return!0}function sZ(Q){let J=qJ.c(14),{onDone:Z}=Q,[z,X]=C.useState(!1),G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=[],J[0]=G;else G=J[0];if(C.useEffect(FQ,G),z){let q;if(J[1]!==Z)q=L.jsxDEV(PJ,{onDone:()=>Z()},void 0,!1,void 0,this),J[1]=Z,J[2]=q;else q=J[2];return q}let H;if(J[3]!==Z)H=function(aJ){switch(aJ){case"try":{X(!0);return}case"never":{M(fQ),Z();return}case"not-now":{Z();return}}},J[3]=Z,J[4]=H;else H=J[4];let B=H,V;if(J[5]===Symbol.for("react.memo_cache_sentinel"))V={label:"Open in Claude Code Desktop",value:"try"},J[5]=V;else V=J[5];let k;if(J[6]===Symbol.for("react.memo_cache_sentinel"))k={label:"Not now",value:"not-now"},J[6]=k;else k=J[6];let j;if(J[7]===Symbol.for("react.memo_cache_sentinel"))j=[V,k,{label:"Don't ask again",value:"never"}],J[7]=j;else j=J[7];let sJ=j,w;if(J[8]===Symbol.for("react.memo_cache_sentinel"))w=L.jsxDEV(l,{marginBottom:1,children:L.jsxDEV(kJ,{children:"Same Claude Code with visual diffs, live app preview, parallel sessions, and more."},void 0,!1,void 0,this)},void 0,!1,void 0,this),J[8]=w;else w=J[8];let P;if(J[9]!==B)P=()=>B("not-now"),J[9]=B,J[10]=P;else P=J[10];let A;if(J[11]!==B||J[12]!==P)A=L.jsxDEV(yJ,{title:"Try Claude Code Desktop",children:L.jsxDEV(l,{flexDirection:"column",paddingX:2,paddingY:1,children:[w,L.jsxDEV(LJ,{options:sJ,onChange:B,onCancel:P},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),J[11]=B,J[12]=P,J[13]=A;else A=J[13];return A}function fQ(Q){if(Q.desktopUpsellDismissed)return Q;return{...Q,desktopUpsellDismissed:!0}}function FQ(){let Q=(Y().desktopUpsellSeenCount??0)+1;M((J)=>{if((J.desktopUpsellSeenCount??0)>=Q)return J;return{...J,desktopUpsellSeenCount:Q}}),RJ("tengu_desktop_upsell_shown",{seen_count:Q})}DQ();h();nQ();bQ();aQ();pQ();tQ();cQ();mQ();EQ();gQ();T();uQ();t();dQ();a();lQ();_Q();NQ();sQ();oQ();rQ();JZ();VJ();iQ();eQ();T();function eZ(Q){let J=Y().numStartups;M((Z)=>{let z=Z.tipsHistory??{};if(z[Q]===J)return Z;return{...Z,tipsHistory:{...z,[Q]:J}}})}function MJ(Q){let J=Y(),Z=J.tipsHistory?.[Q];if(!Z)return 1/0;return J.numStartups-Z}var v;async function QZ(){if(v!==void 0)return v;let Q=await dJ();return v=I in Q,v}async function $J(Q,J,Z){if(!await QZ())return!1;if(cJ(`${Q}@${I}`))return!1;let{bashTools:z}=J??{};if(Z.cli&&z?.size){if(Z.cli.some((X)=>z.has(X)))return!0}if(Z.filePath&&J?.readFileState){if(xJ(J.readFileState).some((G)=>Z.filePath.test(G)))return!0}return!1}var ZZ=[{id:"new-user-warmup",content:async()=>"Start with small features or bug fixes, tell Claude to propose a plan, and verify its suggested edits",cooldownSessions:3,async isRelevant(){return Y().numStartups<10}},{id:"plan-mode-for-complex-tasks",content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${O("chat:cycleMode","Chat","shift+tab")} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let Q=Y();return(Q.lastPlanModeUse?(Date.now()-Q.lastPlanModeUse)/86400000:1/0)>7}},{id:"default-permission-mode-config",content:async()=>"Use /config to change your default permission mode (including Plan Mode)",cooldownSessions:10,isRelevant:async()=>{try{let Q=Y(),J=g(),Z=Boolean(Q.lastPlanModeUse),z=Boolean(J?.permissions?.defaultMode);return Z&&!z}catch(Q){return K(`Failed to check default-permission-mode-config tip relevance: ${Q}`,{level:"warn"}),!1}}},{id:"git-worktrees",content:async()=>"Use git worktrees to run multiple Claude sessions in parallel.",cooldownSessions:10,isRelevant:async()=>{try{let Q=Y();return await OJ()<=1&&Q.numStartups>50}catch(Q){return!1}}},{id:"color-when-multi-clauding",content:async()=>"Running multiple Claude sessions? Use /color and /rename to tell them apart at a glance.",cooldownSessions:10,isRelevant:async()=>{if(rJ())return!1;return await pJ()>=2}},{id:"terminal-setup",content:async()=>U.terminal==="Apple_Terminal"?"Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more":"Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more",cooldownSessions:10,async isRelevant(){let Q=Y();if(U.terminal==="Apple_Terminal")return!Q.optionAsMetaKeyInstalled;return!Q.shiftEnterKeyBindingInstalled}},{id:"shift-enter",content:async()=>U.terminal==="Apple_Terminal"?"Press Option+Enter to send a multi-line message":"Press Shift+Enter to send a multi-line message",cooldownSessions:10,async isRelevant(){let Q=Y();return Boolean((U.terminal==="Apple_Terminal"?Q.optionAsMetaKeyInstalled:Q.shiftEnterKeyBindingInstalled)&&Q.numStartups>3)}},{id:"shift-enter-setup",content:async()=>U.terminal==="Apple_Terminal"?"Run /terminal-setup to enable Option+Enter for new lines":"Run /terminal-setup to enable Shift+Enter for new lines",cooldownSessions:10,async isRelevant(){if(!uJ())return!1;let Q=Y();return!(U.terminal==="Apple_Terminal"?Q.optionAsMetaKeyInstalled:Q.shiftEnterKeyBindingInstalled)}},{id:"memory-command",content:async()=>"Use /memory to view and manage Claude memory",cooldownSessions:15,async isRelevant(){return Y().memoryUsageCount<=0}},{id:"theme-command",content:async()=>"Use /theme to change the color theme",cooldownSessions:20,isRelevant:async()=>!0},{id:"colorterm-truecolor",content:async()=>"Try setting environment variable COLORTERM=truecolor for richer colors",cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&jJ.level<3},{id:"powershell-tool-env",content:async()=>"Set CLAUDE_CODE_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)",cooldownSessions:10,isRelevant:async()=>$()==="windows"&&process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL===void 0},{id:"status-line",content:async()=>"Use /statusline to set up a custom status line that will display beneath the input box",cooldownSessions:25,isRelevant:async()=>g().statusLine===void 0},{id:"prompt-queue",content:async()=>"Hit Enter to queue up additional messages while Claude is working.",cooldownSessions:5,async isRelevant(){return Y().promptQueueUseCount<=3}},{id:"enter-to-steer-in-relatime",content:async()=>"Send messages to Claude while it works to steer Claude in real-time",cooldownSessions:20,isRelevant:async()=>!0},{id:"todo-list",content:async()=>"Ask Claude to create a todo list when working on complex tasks to track progress and remain on track",cooldownSessions:20,isRelevant:async()=>!0},{id:"vscode-command-install",content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${U.terminal==="vscode"?"code":U.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!fJ())return!1;if($()!=="macos")return!1;switch(U.terminal){case"vscode":return!await _J();case"cursor":return!await bJ();case"windsurf":return!await DJ();default:return!1}}},{id:"ide-upsell-external-terminal",content:async()=>"Connect Claude to your IDE · /ide",cooldownSessions:4,async isRelevant(){if(FJ())return!1;if((await NJ()).length!==0)return!1;return(await EJ()).length>0}},{id:"install-github-app",content:async()=>"Run /install-github-app to tag @claude right from your Github issues and PRs",cooldownSessions:10,isRelevant:async()=>!Y().githubActionSetupCount},{id:"install-slack-app",content:async()=>"Run /install-slack-app to use Claude in Slack",cooldownSessions:10,isRelevant:async()=>!Y().slackAppInstallCount},{id:"permissions",content:async()=>"Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools",cooldownSessions:10,async isRelevant(){return Y().numStartups>10}},{id:"drag-and-drop-images",content:async()=>"Did you know you can drag and drop image files into your terminal?",cooldownSessions:10,isRelevant:async()=>!U.isSSH()},{id:"paste-images-mac",content:async()=>"Paste images into Claude Code using control+v (not cmd+v!)",cooldownSessions:10,isRelevant:async()=>$()==="macos"},{id:"double-esc",content:async()=>"Double-tap esc to rewind the conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>!r()},{id:"double-esc-code-restore",content:async()=>"Double-tap esc to rewind the code and/or conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>r()},{id:"continue",content:async()=>"Run claude --continue or claude --resume to resume a conversation",cooldownSessions:10,isRelevant:async()=>!0},{id:"rename-conversation",content:async()=>"Name your conversations with /rename to find them easily in /resume later",cooldownSessions:15,isRelevant:async()=>gJ()&&Y().numStartups>10},{id:"custom-commands",content:async()=>"Create skills by adding .md files to .claude/skills/ in your project or ~/.claude/skills/ for skills that work in any project",cooldownSessions:15,async isRelevant(){return Y().numStartups>10}},{id:"shift-tab",content:async()=>`Hit ${O("chat:cycleMode","Chat","shift+tab")} to cycle between default mode, auto-accept edit mode, and plan mode`,cooldownSessions:10,isRelevant:async()=>!0},{id:"image-paste",content:async()=>`Use ${O("chat:imagePaste","Chat","ctrl+v")} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:"custom-agents",content:async()=>"Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer",cooldownSessions:15,async isRelevant(){return Y().numStartups>5}},{id:"agent-flag",content:async()=>"Use --agent <agent_name> to directly start a conversation with a subagent",cooldownSessions:15,async isRelevant(){return Y().numStartups>5}},{id:"desktop-app",content:async()=>"Run Claude Code locally or remotely using the Claude desktop app: clau.de/desktop",cooldownSessions:15,isRelevant:async()=>$()!=="linux"},{id:"desktop-shortcut",content:async(Q)=>{return`Continue your session in Claude Code Desktop with ${R("suggestion",Q.theme)("/desktop")}`},cooldownSessions:15,isRelevant:async()=>{if(!n().enable_shortcut_tip)return!1;return process.platform==="darwin"||process.platform==="win32"&&process.arch==="x64"}},{id:"web-app",content:async()=>"Run tasks in the cloud while you keep coding locally · clau.de/web",cooldownSessions:15,isRelevant:async()=>!0},{id:"mobile-app",content:async()=>"/mobile to use Claude Code from the Claude app on your phone",cooldownSessions:15,isRelevant:async()=>!0},{id:"opusplan-mode-reminder",content:async()=>`Your default model setting is Opus Plan Mode. Press ${O("chat:cycleMode","Chat","shift+tab")} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){let Q=Y(),Z=wJ()==="opusplan",z=Q.lastPlanModeUse?(Date.now()-Q.lastPlanModeUse)/86400000:1/0;return Z&&z>3}},{id:"frontend-design-plugin",content:async(Q)=>{return`Working with HTML/CSS? Install the frontend-design plugin:
|
|
3
|
+
${R("suggestion",Q.theme)(`/plugin install frontend-design@${I}`)}`},cooldownSessions:3,isRelevant:async(Q)=>$J("frontend-design",Q,{filePath:/\.(html|css|htm)$/i})},{id:"vercel-plugin",content:async(Q)=>{return`Working with Vercel? Install the vercel plugin:
|
|
4
|
+
${R("suggestion",Q.theme)(`/plugin install vercel@${I}`)}`},cooldownSessions:3,isRelevant:async(Q)=>$J("vercel",Q,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:["vercel"]})},{id:"effort-high-nudge",content:async(Q)=>{let Z=R("suggestion",Q.theme)("/effort high");return y("tengu_tide_elm","off")==="copy_b"?`Use ${Z} for better one-shot answers. Claude thinks it through first.`:`Working on something tricky? ${Z} gives better first answers`},cooldownSessions:3,isRelevant:async()=>{if(!f())return!1;if(!TJ(AJ()))return!1;if(IJ("policySettings")?.effortLevel!==void 0)return!1;if(hJ()!==void 0)return!1;let Q=F().effortLevel;if(Q==="high"||Q==="max")return!1;return y("tengu_tide_elm","off")!=="off"}},{id:"subagent-fanout-nudge",content:async(Q)=>{let J=R("suggestion",Q.theme);return y("tengu_tern_alloy","off")==="copy_b"?`For big tasks, tell Claude to ${J("use subagents")}. They work in parallel and keep your main thread clean.`:`Say ${J('"fan out subagents"')} and Claude sends a team. Each one digs deep so nothing gets missed.`},cooldownSessions:3,isRelevant:async()=>{if(!f())return!1;return y("tengu_tern_alloy","off")!=="off"}},{id:"loop-command-nudge",content:async(Q)=>{let J=R("suggestion",Q.theme);return y("tengu_timber_lark","off")==="copy_b"?`Use ${J("/loop 5m check the deploy")} to run any prompt on a schedule. Set it and forget it.`:`${J("/loop")} runs any prompt on a recurring schedule. Great for monitoring deploys, babysitting PRs, or polling status.`},cooldownSessions:3,isRelevant:async()=>{if(!f())return!1;if(!SJ())return!1;return y("tengu_timber_lark","off")!=="off"}},{id:"guest-passes",content:async(Q)=>{let J=R("claude",Q.theme),Z=nJ();return Z?`Share Claude Code and earn ${J(lJ(Z))} of extra usage · ${J("/passes")}`:`You have free guest passes to share · ${J("/passes")}`},cooldownSessions:3,isRelevant:async()=>{if(Y().hasVisitedPasses)return!1;let{eligible:J}=iJ();return J}},{id:"overage-credit",content:async(Q)=>{let J=R("claude",Q.theme),Z=CJ(),z=Z?vJ(Z):null;if(!z)return"";return`${J(`${z} in extra usage, on us`)} · third-party apps · ${J("/extra-usage")}`},cooldownSessions:3,isRelevant:async()=>mJ()},{id:"feedback-command",content:async()=>"Use /feedback to help us improve!",cooldownSessions:15,async isRelevant(){return Y().numStartups>5}}],zZ=[];function GZ(){let J=F().spinnerTipsOverride;if(!J?.tips?.length)return[];return J.tips.map((Z,z)=>({id:`custom-tip-${z}`,content:async()=>Z,cooldownSessions:0,isRelevant:async()=>!0}))}async function S0(Q){let Z=F().spinnerTipsOverride,z=GZ();if(Z?.excludeDefault&&z.length>0)return z;let X=[...ZZ,...zZ],G=await Promise.all(X.map((B)=>B.isRelevant(Q)));return[...X.filter((B,V)=>G[V]).filter((B)=>MJ(B.id)>=B.cooldownSessions),...z]}KZ();var XZ={"claude-3-opus":{modelName:"Claude 3 Opus",retirementDates:{firstParty:"January 5, 2026",bedrock:"January 15, 2026",vertex:"January 5, 2026",foundry:"January 5, 2026"}},"claude-3-7-sonnet":{modelName:"Claude 3.7 Sonnet",retirementDates:{firstParty:"February 19, 2026",bedrock:"April 28, 2026",vertex:"May 11, 2026",foundry:"February 19, 2026"}},"claude-3-5-haiku":{modelName:"Claude 3.5 Haiku",retirementDates:{firstParty:"February 19, 2026",bedrock:null,vertex:null,foundry:null}}};function HZ(Q){let J=Q.toLowerCase(),Z=oJ();for(let[z,X]of Object.entries(XZ)){let G=X.retirementDates[Z];if(!J.includes(z)||!G)continue;return{isDeprecated:!0,modelName:X.modelName,retirementDate:G}}return{isDeprecated:!1}}function f0(Q){if(!Q)return null;let J=HZ(Q);if(!J.isDeprecated)return null;return`⚠ ${J.modelName} will be retired on ${J.retirementDate}. Consider switching to a newer model.`}function N0(Q,J=process.argv){for(let Z=0;Z<J.length;Z++){let z=J[Z];if(z?.startsWith(`${Q}=`))return z.slice(Q.length+1);if(z===Q&&Z+1<J.length)return J[Z+1]}return}
|
|
5
|
+
export{PZ as va,qZ as wa,$Q as xa,FZ as ya,pZ as za,dZ as Aa,eZ as Ba,MJ as Ca,oZ as Da,sZ as Ea,S0 as Fa,f0 as Ga,N0 as Ha};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{bha as q,lha as U}from"./cli-0.1.10-y1bkenem.mjs";import{Jna as L,Kna as X}from"./cli-0.1.10-hyxg32sc.mjs";import{AsyncLocalStorage as F}from"async_hooks";function G(){return O.getStore()}function Y(z,B){return O.run(z,B)}function Z(){return O.getStore()!==void 0}function $(z){return{...z,isInProcess:!0}}var O;var Q=X(()=>{O=new F});var y={};L(y,{waitForTeammatesToBecomeIdle:()=>l,setDynamicTeamContext:()=>b,runWithTeammateContext:()=>Y,isTeammate:()=>u,isTeamLead:()=>S,isPlanModeRequired:()=>w,isInProcessTeammate:()=>Z,hasWorkingInProcessTeammates:()=>I,hasActiveInProcessTeammates:()=>P,getTeammateContext:()=>G,getTeammateColor:()=>f,getTeamName:()=>h,getParentSessionId:()=>_,getDynamicTeamContext:()=>v,getAgentName:()=>A,getAgentId:()=>E,createTeammateContext:()=>$,clearDynamicTeamContext:()=>j});function _(){let z=G();if(z)return z.parentSessionId;return D?.parentSessionId}function b(z){D=z}function j(){D=null}function v(){return D}function E(){let z=G();if(z)return z.agentId;return D?.agentId}function A(){let z=G();if(z)return z.agentName;return D?.agentName}function h(z){let B=G();if(B)return B.teamName;if(D?.teamName)return D.teamName;return z?.teamName}function u(){if(G())return!0;return!!(D?.agentId&&D?.teamName)}function f(){let z=G();if(z)return z.color;return D?.color}function w(){let z=G();if(z)return z.planModeRequired;if(D!==null)return D.planModeRequired;return q(process.env.CLAUDE_CODE_PLAN_MODE_REQUIRED)}function S(z){if(!z?.leadAgentId)return!1;let B=E(),H=z.leadAgentId;if(B===H)return!0;if(!B)return!0;return!1}function P(z){for(let B of Object.values(z.tasks))if(B.type==="in_process_teammate"&&B.status==="running")return!0;return!1}function I(z){for(let B of Object.values(z.tasks))if(B.type==="in_process_teammate"&&B.status==="running"&&!B.isIdle)return!0;return!1}function l(z,B){let H=[];for(let[M,J]of Object.entries(B.tasks))if(J.type==="in_process_teammate"&&J.status==="running"&&!J.isIdle)H.push(M);if(H.length===0)return Promise.resolve();return new Promise((M)=>{let J=H.length,R=()=>{if(J--,J===0)M()};z((V)=>{let N={...V.tasks};for(let W of H){let K=N[W];if(K&&K.type==="in_process_teammate")if(K.isIdle)R();else N[W]={...K,onIdleCallbacks:[...K.onIdleCallbacks??[],R]}}return{...V,tasks:N}})})}var D=null;var g=X(()=>{Q();U();Q()});
|
|
2
|
+
export{G as UQ,Y as VQ,Z as WQ,$ as XQ,Q as YQ,_ as ZQ,v as _Q,E as $Q,A as aR,h as bR,u as cR,f as dR,w as eR,S as fR,P as gR,I as hR,l as iR,y as jR,g as kR};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Br as L,yr as H}from"./cli-0.1.10-y9mkzh11.mjs";import{Y9 as G,d_ as K}from"./cli-0.1.10-mt6tj76h.mjs";import{Kna as J}from"./cli-0.1.10-hyxg32sc.mjs";function T(q,w){let z=new Map;for(let h of w)z.set(h.agentType,h);let C=new Set,E=[];for(let h of q){let F=`${h.agentType}:${h.source}`;if(C.has(F))continue;C.add(F);let x=z.get(h.agentType),I=x&&x.source!==h.source?x.source:void 0;E.push({...h,overriddenBy:I})}return E}function U(q){let w=q.model||H();if(!w)return;return w==="inherit"?"inherit":w}function V(q){return G(q).toLowerCase()}function W(q,w){return q.agentType.localeCompare(w.agentType,void 0,{sensitivity:"base"})}var R;var O=J(()=>{L();K();R=[{label:"User agents",source:"userSettings"},{label:"Project agents",source:"projectSettings"},{label:"Local agents",source:"localSettings"},{label:"Managed agents",source:"policySettings"},{label:"Plugin agents",source:"plugin"},{label:"CLI arg agents",source:"flagSettings"},{label:"Built-in agents",source:"built-in"}]});
|
|
2
|
+
export{R as Pb,T as Qb,U as Rb,V as Sb,W as Tb,O as Ub};
|