@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
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ag as t}from"./cli-0.1.9-ywf6743k.mjs";import{Lk as W,Mk as n}from"./cli-0.1.9-04ez73f7.mjs";import{xV as J}from"./cli-0.1.9-90h21nv5.mjs";import{JX as P,KX as p}from"./cli-0.1.9-x7qrvj9f.mjs";import{LX as I,MX as i}from"./cli-0.1.9-nsgdz4rd.mjs";import{A0 as H,D0 as l,z0 as C}from"./cli-0.1.9-gandxpzf.mjs";import{F4 as c,G3 as v,Q0 as S,V0 as m,f4 as R,l4 as V}from"./cli-0.1.9-4sqfjw8t.mjs";import{M5 as Q,b6 as u}from"./cli-0.1.9-b6zp931m.mjs";import{Waa as T,X6 as Z,Y6 as M,Zaa as X,a7 as _,f7 as f,nca as k,oca as Y,qba as O,tca as y,wca as D,zca as g}from"./cli-0.1.9-86kws2c7.mjs";import{sda as $,tda as h}from"./cli-0.1.9-0dtdhejj.mjs";import{dea as q,iea as E,jea as A}from"./cli-0.1.9-7ftnjyps.mjs";import{Aga as b,xga as x}from"./cli-0.1.9-vdw09f8y.mjs";import{lna as U}from"./cli-0.1.9-kbrf27z8.mjs";async function s(){if(Z())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let G=`${E().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await P(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":q};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(G,{headers:{"Content-Type":"application/json","User-Agent":I(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=k(),G=await H({baseUrl:F,apiKey:D()?.apiKey});if(G===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=C(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:G.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:G,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,G)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),T((B)=>({...B,clientDataCache:G,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){_(w)}}var d;var r=U(()=>{u();n();c();t();A();O();b();p();h();f();m();M();l();i();g();y();d=$(()=>J.object({client_data:J.record(J.unknown()).nullish(),additional_model_options:J.array(J.object({model:J.string(),name:J.string(),description:J.string()}).transform(({model:w,name:F,description:G})=>({value:w,label:F,description:G}))).nullish()}))});
|
|
2
|
-
export{Yj as lb,r as mb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{HJ as S,IJ as Zf,KJ as Vf}from"./cli-0.1.9-04ez73f7.mjs";import{xP as Xf,yP as _f}from"./cli-0.1.9-ak0b9xfs.mjs";import{uS as Wf,vS as Uf}from"./cli-0.1.9-gpd1bhnf.mjs";import{FS as s,LS as n,MS as If,UU as a,lU as x,mU as cf,nU as y,pU as q,tU as Qf}from"./cli-0.1.9-nw3rpxdd.mjs";import{zX as _}from"./cli-0.1.9-2v4s8yf9.mjs";import{AX as Tf}from"./cli-0.1.9-hy9s1fnj.mjs";import{P1 as Nf,R1 as D,S1 as j,T1 as Hf,V1 as A,Y1 as qf,_1 as zf,g2 as Jf,h2 as hf,l2 as M,o2 as p,p2 as Rf}from"./cli-0.1.9-4sqfjw8t.mjs";import{$4 as l,a5 as Pf}from"./cli-0.1.9-f8ga1n8r.mjs";import{$$ as Gf,Zaa as i,b_ as Y,laa as Cf,n_ as yf,qba as Bf}from"./cli-0.1.9-86kws2c7.mjs";import{$ea as mf,hfa as Of}from"./cli-0.1.9-mkfnnvz7.mjs";import{Afa as Lf,zfa as u}from"./cli-0.1.9-5ryrgdzg.mjs";import{hna as k,lna as o}from"./cli-0.1.9-kbrf27z8.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 Fb,ff as Gb,jf as Hb,G0 as Ib,xf as Jb};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Oc as w,Pc as _,Qc as D,Rc as L,Sc as A,Tc as h,Uc as y}from"./cli-0.1.9-a95nqhbd.mjs";import{Pu as j,Qu as I,hk as R,kk as b,pG as X,pu as W,qG as O,su as V,uu as C}from"./cli-0.1.9-04ez73f7.mjs";import{a7 as U,f7 as M,g7 as K,h7 as N}from"./cli-0.1.9-86kws2c7.mjs";import{Afa as S,zfa as Q}from"./cli-0.1.9-5ryrgdzg.mjs";import{Zfa as B,dga as v}from"./cli-0.1.9-vdw09f8y.mjs";import{Qga as x,Uga as F}from"./cli-0.1.9-sv3awdsv.mjs";N();v();I();M();O();b();F();C();S();y();function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${K.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=R(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...W(Y,$,X())}})():{};Q("tengu_plugin_command_failed",{command:J,error_category:V(z),...H}),process.exit(1)}async function g(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await w(z,J);if(!q.success)throw Error(q.message);console.log(`${K.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);Q("tengu_plugin_installed_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function a(z,J="user",q=!1){try{let G=await _(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${K.tick} ${G.message}`);let{name:H,marketplace:Y}=R(G.pluginId||z);Q("tengu_plugin_uninstalled_cli",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...W(H,Y,X())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function i(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${K.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);Q("tengu_plugin_enabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function u(z,J){try{let q=await L(z,J);if(!q.success)throw Error(q.message);console.log(`${K.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);Q("tengu_plugin_disabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function n(){try{let z=await A();if(!z.success)throw Error(z.message);console.log(`${K.tick} ${z.message}`),Q("tengu_plugin_disabled_all_cli",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function r(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope…
|
|
2
|
-
`);let q=await h(z,J);if(!q.success)throw Error(q.message);if(x(`${K.tick} ${q.message}
|
|
3
|
-
`),!q.alreadyUpToDate){let{name:G,marketplace:H}=R(q.pluginId||z);Q("tengu_plugin_updated_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},old_version:q.oldVersion||"unknown",new_version:q.newVersion||"unknown",...W(G,H,X())})}await j(0)}catch(q){Z(q,"update",z)}}
|
|
4
|
-
export{g as k,a as l,i as m,u as n,n as o,r as p};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{kc as K,lc as Y}from"./cli-0.1.9-5zhhyq4q.mjs";import{Lm as G,Mm as B,Nq as J,Vq as X,sq as H,tq as U,xq as V,yq as W}from"./cli-0.1.9-04ez73f7.mjs";import{ina as q,lna as v}from"./cli-0.1.9-kbrf27z8.mjs";function P(h){return x.some((g)=>h.endsWith(g))}function C(h){return h.filter((g)=>H.has(g.name)||P(g.name))}function A(h,g,E){let[Q,Z]=K(G([...h,...g],"name"),J),k=($,j)=>$.name.localeCompare(j.name),w=[...Z.sort(k),...Q.sort(k)];if(z){if(z.isCoordinatorMode())return C(w)}return w}var x,z;var D=v(()=>{Y();B();U();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];z=(W(),q(V))});
|
|
2
|
-
export{P as gc,C as hc,A as ic,D as jc};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{lna as j}from"./cli-0.1.9-kbrf27z8.mjs";function c(){let q=new Map;for(let[V,z]of Object.entries(J)){for(let[D,H]of Object.entries(z))J[D]={open:`\x1B[${H[0]}m`,close:`\x1B[${H[1]}m`},z[D]=J[D],q.set(H[0],H[1]);Object.defineProperty(J,V,{value:z,enumerable:!1})}return Object.defineProperty(J,"codes",{value:q,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=M(),J.color.ansi256=Y(),J.color.ansi16m=k(),J.bgColor.ansi=M(10),J.bgColor.ansi256=Y(10),J.bgColor.ansi16m=k(10),Object.defineProperties(J,{rgbToAnsi256:{value(V,z,D){if(V===z&&z===D){if(V<8)return 16;if(V>248)return 231;return Math.round((V-8)/247*24)+232}return 16+36*Math.round(V/255*5)+6*Math.round(z/255*5)+Math.round(D/255*5)},enumerable:!1},hexToRgb:{value(V){let z=/[a-f\d]{6}|[a-f\d]{3}/i.exec(V.toString(16));if(!z)return[0,0,0];let[D]=z;if(D.length===3)D=[...D].map((Q)=>Q+Q).join("");let H=Number.parseInt(D,16);return[H>>16&255,H>>8&255,H&255]},enumerable:!1},hexToAnsi256:{value:(V)=>J.rgbToAnsi256(...J.hexToRgb(V)),enumerable:!1},ansi256ToAnsi:{value(V){if(V<8)return 30+V;if(V<16)return 90+(V-8);let z,D,H;if(V>=232)z=((V-232)*10+8)/255,D=z,H=z;else{V-=16;let N=V%36;z=Math.floor(V/36)/5,D=Math.floor(N/6)/5,H=N%6/5}let Q=Math.max(z,D,H)*2;if(Q===0)return 30;let U=30+(Math.round(H)<<2|Math.round(D)<<1|Math.round(z));if(Q===2)U+=60;return U},enumerable:!1},rgbToAnsi:{value:(V,z,D)=>J.ansi256ToAnsi(J.rgbToAnsi256(V,z,D)),enumerable:!1},hexToAnsi:{value:(V)=>J.ansi256ToAnsi(J.hexToAnsi256(V)),enumerable:!1}}),J}var M=(q=0)=>(V)=>`\x1B[${V+q}m`,Y=(q=0)=>(V)=>`\x1B[${38+q};5;${V}m`,k=(q=0)=>(V,z,D)=>`\x1B[${38+q};2;${V};${z};${D}m`,J,V1,u,m,q1,p,X;var R=j(()=>{J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V1=Object.keys(J.modifier),u=Object.keys(J.color),m=Object.keys(J.bgColor),q1=[...u,...m];p=c(),X=p});import I from"node:process";import d from"node:os";import E from"node:tty";function W(q,V=globalThis.Deno?globalThis.Deno.args:I.argv){let z=q.startsWith("-")?"":q.length===1?"-":"--",D=V.indexOf(z+q),H=V.indexOf("--");return D!==-1&&(H===-1||D<H)}function y(){if("FORCE_COLOR"in K){if(K.FORCE_COLOR==="true")return 1;if(K.FORCE_COLOR==="false")return 0;return K.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(K.FORCE_COLOR,10),3)}}function g(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function i(q,{streamIsTTY:V,sniffFlags:z=!0}={}){let D=y();if(D!==void 0)B=D;let H=z?B:D;if(H===0)return 0;if(z){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if("TF_BUILD"in K&&"AGENT_NAME"in K)return 1;if(q&&!V&&H===void 0)return 0;let Q=H||0;if(K.TERM==="dumb")return Q;if(I.platform==="win32"){let U=d.release().split(".");if(Number(U[0])>=10&&Number(U[2])>=10586)return Number(U[2])>=14931?3:2;return 1}if("CI"in K){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((U)=>(U in K)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((U)=>(U in K))||K.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if(K.COLORTERM==="truecolor")return 3;if(K.TERM==="xterm-kitty")return 3;if(K.TERM==="xterm-ghostty")return 3;if(K.TERM==="wezterm")return 3;if("TERM_PROGRAM"in K){let U=Number.parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return U>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM))return 1;if("COLORTERM"in K)return 1;return Q}function T(q,V={}){let z=i(q,{streamIsTTY:q&&q.isTTY,...V});return g(z)}var K,B,a,A;var C=j(()=>{({env:K}=I);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))B=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))B=1;a={stdout:T({isTTY:E.isatty(1)}),stderr:T({isTTY:E.isatty(2)})},A=a});function F(q,V,z){let D=q.indexOf(V);if(D===-1)return q;let H=V.length,Q=0,U="";do U+=q.slice(Q,D)+V+z,Q=D+H,D=q.indexOf(V,Q);while(D!==-1);return U+=q.slice(Q),U}function _(q,V,z,D){let H=0,Q="";do{let U=q[D-1]==="\r";Q+=q.slice(H,U?D-1:D)+V+(U?`\r
|
|
2
|
-
`:`
|
|
3
|
-
`)+z,H=D+1,D=q.indexOf(`
|
|
4
|
-
`,H)}while(D!==-1);return Q+=q.slice(H),Q}var b=()=>{};class o{constructor(q){return v(q)}}function G(q){return v(q)}var S,h,L,Z,O,f,$,n=(q,V={})=>{if(V.level&&!(Number.isInteger(V.level)&&V.level>=0&&V.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let z=S?S.level:0;q.level=V.level===void 0?z:V.level},v=(q)=>{let V=(...z)=>z.join(" ");return n(V,q),Object.setPrototypeOf(V,G.prototype),V},P=(q,V,z,...D)=>{if(q==="rgb"){if(V==="ansi16m")return X[z].ansi16m(...D);if(V==="ansi256")return X[z].ansi256(X.rgbToAnsi256(...D));return X[z].ansi(X.rgbToAnsi(...D))}if(q==="hex")return P("rgb",V,z,...X.hexToRgb(...D));return X[z][q](...D)},t,r,x=(q,V,z)=>{let D,H;if(z===void 0)D=q,H=V;else D=z.openAll+q,H=V+z.closeAll;return{open:q,close:V,openAll:D,closeAll:H,parent:z}},w=(q,V,z)=>{let D=(...H)=>l(D,H.length===1?""+H[0]:H.join(" "));return Object.setPrototypeOf(D,r),D[L]=q,D[Z]=V,D[O]=z,D},l=(q,V)=>{if(q.level<=0||!V)return q[O]?"":V;let z=q[Z];if(z===void 0)return V;let{openAll:D,closeAll:H}=z;if(V.includes("\x1B"))while(z!==void 0)V=F(V,z.close,z.open),z=z.parent;let Q=V.indexOf(`
|
|
5
|
-
`);if(Q!==-1)V=_(V,H,D,Q);return D+V+H},s,Z1,O1;var e=j(()=>{R();C();b();({stdout:S,stderr:h}=A),L=Symbol("GENERATOR"),Z=Symbol("STYLER"),O=Symbol("IS_EMPTY"),f=["ansi","ansi","ansi256","ansi16m"],$=Object.create(null);Object.setPrototypeOf(G.prototype,Function.prototype);for(let[q,V]of Object.entries(X))$[q]={get(){let z=w(this,x(V.open,V.close,this[Z]),this[O]);return Object.defineProperty(this,q,{value:z}),z}};$.visible={get(){let q=w(this,this[Z],!0);return Object.defineProperty(this,"visible",{value:q}),q}};t=["rgb","hex","ansi256"];for(let q of t){$[q]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"color",...D),X.color.close,this[Z]);return w(this,H,this[O])}}};let V="bg"+q[0].toUpperCase()+q.slice(1);$[V]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"bgColor",...D),X.bgColor.close,this[Z]);return w(this,H,this[O])}}}}r=Object.defineProperties(()=>{},{...$,level:{enumerable:!0,get(){return this[L].level},set(q){this[L].level=q}}});Object.defineProperties(G.prototype,$);s=G(),Z1=G({level:h?h.level:0}),O1=s});
|
|
6
|
-
export{o as _4,O1 as $4,e as a5};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Zaa as B,a7 as A,f7 as L,qba as N}from"./cli-0.1.9-86kws2c7.mjs";import{Aga as K,xga as z}from"./cli-0.1.9-vdw09f8y.mjs";import{kna as I,lna as J}from"./cli-0.1.9-kbrf27z8.mjs";var V={};I(V,{setCliTeammateModeOverride:()=>P,getTeammateModeFromSnapshot:()=>U,getCliTeammateModeOverride:()=>Q,clearCliTeammateModeOverride:()=>R,captureTeammateModeSnapshot:()=>H});function P(x){y=x}function Q(){return y}function R(x){y=null,q=x,z(`[TeammateModeSnapshot] CLI override cleared, new mode: ${x}`)}function H(){if(y)q=y,z(`[TeammateModeSnapshot] Captured from CLI override: ${q}`);else q=B().teammateMode??"auto",z(`[TeammateModeSnapshot] Captured from config: ${q}`)}function U(){if(q===null)A(Error("getTeammateModeFromSnapshot called before capture - this indicates an initialization bug")),H();return q??"auto"}var q=null,y=null;var W=J(()=>{N();K();L()});
|
|
2
|
-
export{P as gP,Q as hP,R as iP,H as jP,U as kP,V as lP,W as mP};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{E as f}from"./cli-0.1.9-r3ha1332.mjs";import{bA as F,cA as i}from"./cli-0.1.9-04ez73f7.mjs";import{QO as T,TO as e,UO as k,VO as z,_O as d}from"./cli-0.1.9-9vab0er5.mjs";import{L4 as W,O4 as m,T4 as y,U4 as U,Z4 as c}from"./cli-0.1.9-x257hapj.mjs";import{M5 as S,b6 as s}from"./cli-0.1.9-b6zp931m.mjs";import{L6 as Z,N6 as R}from"./cli-0.1.9-86kws2c7.mjs";import{pda as V,rda as I,sda as N,tda as v}from"./cli-0.1.9-0dtdhejj.mjs";import{Jea as b,yea as E}from"./cli-0.1.9-wpvrabrk.mjs";import{Afa as p,zfa as q}from"./cli-0.1.9-5ryrgdzg.mjs";import{Aga as _,fga as O,jga as w,xga as Y}from"./cli-0.1.9-vdw09f8y.mjs";import{Ega as H,Oga as h}from"./cli-0.1.9-v7ajk1nz.mjs";import{mna as u}from"./cli-0.1.9-kbrf27z8.mjs";I();b();v();var j={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var x={message:"must be 0 (disabled) or ≥100ms"},C=N(()=>V.object({poll_interval_ms_not_at_capacity:V.number().int().min(100),poll_interval_ms_at_capacity:V.number().int().refine((J)=>J===0||J>=100,x),non_exclusive_heartbeat_interval_ms:V.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:V.number().int().min(100).default(j.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:V.number().int().min(100).default(j.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:V.number().int().refine((J)=>J===0||J>=100,x).default(j.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:V.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:V.number().int().min(0).default(120000)}).refine((J)=>J.non_exclusive_heartbeat_interval_ms>0||J.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((J)=>J.non_exclusive_heartbeat_interval_ms>0||J.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function BJ(){let J=E("tengu_bridge_poll_interval_config",j,300000),K=C().safeParse(J);return K.success?K.data:j}s();_();R();e();p();i();_();R();h();m();c();d();w();var g=`{"type":"keep_alive"}
|
|
2
|
-
`,t=1000,l=1000,D=30000,n=600000,r=1e4,o=300000,A=D*2,a=new Set([1002,4001,4003]);class L{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;isBridge;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,X,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=X,this.autoReconnect=$?.autoReconnect??!0,this.isBridge=$?.isBridge??!1,this.messageBuffer=new F(t)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Y(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Z("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),Y(`WebSocketTransport: Opening ${this.url.href}`),Z("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,Y(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:U(this.url.href),tls:W()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-0.1.9-eh46qafm.mjs"),Q=new K(this.url.href,{headers:J,agent:y(this.url.href),...W()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{Y("WebSocketTransport: Error",{level:"error"}),Z("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;Y(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let X=Q.headers["x-last-request-id"];this.replayBufferedMessages(X)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{Y(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),Z("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;Y(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;if(Y("WebSocketTransport: Connected"),Z("info","cli_websocket_connect_connected",{duration_ms:J}),this.isBridge&&this.reconnectStartTime!==null)q("tengu_ws_transport_reconnected",{attempts:this.reconnectAttempts,downtimeMs:Date.now()-this.reconnectStartTime});this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),k(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return Y("WebSocketTransport: Not connected"),Z("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return Y(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),Z("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),z(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(Y(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),Z("info","cli_websocket_disconnected"),this.isBridge)q("tengu_ws_transport_closed",{closeCode:J,msSinceLastActivity:this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1,wasConnected:this.state==="connected",reconnectAttempts:this.reconnectAttempts});if(this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,Y("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),Z("info","cli_websocket_4003_token_refreshed")}if(J!=null&&a.has(J)&&!K){Y(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),Z("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>A)Y(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),Z("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let X=Q-this.reconnectStartTime;if(X<n){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let B=this.refreshHeaders();Object.assign(this.headers,B),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(l*Math.pow(2,this.reconnectAttempts-1),D),G=Math.max(0,$+$*0.25*(2*Math.random()-1));if(Y(`WebSocketTransport: Reconnecting in ${Math.round(G)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.isBridge)q("tengu_ws_transport_reconnecting",{attempt:this.reconnectAttempts,elapsedMs:X,delayMs:Math.round(G)});this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},G)}else if(Y(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(X/1000)}s for ${this.url.href}`,{level:"error"}),Z("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:X}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),z(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((G)=>("uuid"in G)&&G.uuid===J);if($>=0){Q=$+1;let G=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(G),G.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${G.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:G.length})}}let X=K.slice(Q);if(X.length===0){Y("WebSocketTransport: No new messages to replay"),Z("info","cli_websocket_no_messages_to_replay");return}Y(`WebSocketTransport: Replaying ${X.length} buffered messages`),Z("info","cli_websocket_messages_to_replay",{count:X.length});for(let $ of X){let G=O($)+`
|
|
3
|
-
`;if(!this.sendLine(G)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=O(J)+`
|
|
4
|
-
`;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",X=this.getControlMessageDetailLabel(J);Y(`WebSocketTransport: Sending message type=${J.type}${Q}${X}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,X=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${X?` tool=${X}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>A){Y(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),Z("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){Y("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),Z("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(X){Y(`WebSocketTransport: Ping failed: ${X}`,{level:"error"}),Z("error","cli_websocket_ping_failed")}}},r)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),H(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send(g),this.lastActivityTime=Date.now(),Y("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){Y(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),Z("error","cli_websocket_keepalive_failed")}},o)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var JJ=100,KJ=15000,QJ=3000;class XJ extends L{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,X,$){super(J,K,Q,X,$);let{maxConsecutiveFailures:G,onBatchDropped:B}=$??{};this.postUrl=YJ(J),this.uploader=new f({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:G,onBatchDropped:(M,P)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:M,failures:P}),B?.(M,P)},send:(M)=>this.postOnce(M)}),Y(`HybridTransport: POST URL = ${this.postUrl}`),Z("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),JJ);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,QJ)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=T();if(!K){Y("HybridTransport: No session token available for POST"),Z("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},X;try{X=await S.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:KJ})}catch($){throw Y(`HybridTransport: POST error: ${$.message}`),Z("warn","cli_hybrid_post_network_error"),$}if(X.status>=200&&X.status<300){Y(`HybridTransport: POST success count=${J.length}`);return}if(X.status>=400&&X.status<500&&X.status!==429){Y(`HybridTransport: POST returned ${X.status} (permanent), dropping`),Z("warn","cli_hybrid_post_client_error",{status:X.status});return}throw Y(`HybridTransport: POST returned ${X.status} (retryable)`),Z("warn","cli_hybrid_post_retryable_error",{status:X.status}),Error(`POST failed with ${X.status}`)}}function YJ(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}
|
|
5
|
-
export{j as q,BJ as r,L as s,XJ as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{AR as ZJ,iR as YJ,mR as DJ,qR as CJ,rR as c,sR as vJ}from"./cli-0.1.9-gsc0t4gy.mjs";import{jX as SJ,qX as TJ}from"./cli-0.1.9-e7ewtpew.mjs";import{M7 as xJ,S8 as yJ,a7 as p,f7 as jJ,i8 as NJ,o7 as OJ,p7 as FJ,uaa as S,waa as wJ}from"./cli-0.1.9-86kws2c7.mjs";import{pda as R,rda as VJ,sda as w,tda as XJ}from"./cli-0.1.9-0dtdhejj.mjs";import{Aga as QJ,Zfa as W,_fa as C,dga as e,fga as v,gga as y,jga as JJ,xga as G}from"./cli-0.1.9-vdw09f8y.mjs";import{Bga as s,Cga as I,Ega as t,Oga as a}from"./cli-0.1.9-v7ajk1nz.mjs";import{Ela as L,jka as i,pma as m,uia as r,via as MJ,wia as d}from"./cli-0.1.9-7fp0smtp.mjs";import{lna as T,mna as BJ}from"./cli-0.1.9-kbrf27z8.mjs";import{mkdir as PJ,readdir as l,readFile as $J,unlink as qJ,writeFile as b}from"fs/promises";import{join as D}from"path";function HQ(J){if(M===J)return;M=J,U()}function UQ(){if(M===void 0)return;M=void 0,U()}function U(){try{GJ.emit()}catch{}}function KJ(J){return D(E(J),cJ)}async function g(J){let Q=KJ(J);try{let V=(await $J(Q,"utf-8")).trim(),X=parseInt(V,10);return isNaN(X)?0:X}catch{return 0}}async function RJ(J,Q){let V=KJ(J);await b(V,String(Q))}function OQ(){if(t(process.env.CLAUDE_CODE_ENABLE_TASKS))return!0;return!i()}async function xQ(J){let Q=E(J),V=await o(J),X;try{X=await S(V,P);let Z=await WJ(J);if(Z>0){let $=await g(J);if(Z>$)await RJ(J,Z)}let Y;try{Y=await l(Q)}catch{Y=[]}for(let $ of Y)if($.endsWith(".json")&&!$.startsWith(".")){let q=D(Q,$);try{await qJ(q)}catch{}}U()}finally{if(X)await X()}}function CQ(){if(process.env.CLAUDE_CODE_TASK_LIST_ID)return process.env.CLAUDE_CODE_TASK_LIST_ID;let J=YJ();if(J)return J.teamName;return c()||M||d()}function _J(J){return J.replace(/[^a-zA-Z0-9_-]/g,"-")}function E(J){return D(s(),"tasks",_J(J))}function A(J,Q){return D(E(J),`${_J(Q)}.json`)}async function bJ(J){let Q=E(J);try{await PJ(Q,{recursive:!0})}catch{}}async function WJ(J){let Q=E(J),V;try{V=await l(Q)}catch{return 0}let X=0;for(let Z of V){if(!Z.endsWith(".json"))continue;let Y=parseInt(Z.replace(".json",""),10);if(!isNaN(Y)&&Y>X)X=Y}return X}async function hJ(J){let[Q,V]=await Promise.all([WJ(J),g(J)]);return Math.max(Q,V)}async function vQ(J,Q){let V=await o(J),X;try{X=await S(V,P);let Z=await hJ(J),Y=String(Z+1),$={id:Y,...Q},q=A(J,Y);return await b(q,v($,null,2)),U(),Y}finally{if(X)await X()}}async function O(J,Q){let V=A(J,Q);try{let X=await $J(V,"utf-8"),Z=y(X),Y=pJ().safeParse(Z);if(!Y.success)return G(`[Tasks] Task ${Q} failed schema validation: ${Y.error.message}`),null;return Y.data}catch(X){if(C(X)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${Q}: ${W(X)}`),p(X),null}}async function EJ(J,Q,V){let X=await O(J,Q);if(!X)return null;let Z={...X,...V,id:Q},Y=A(J,Q);return await b(Y,v(Z,null,2)),U(),Z}async function j(J,Q,V){let X=A(J,Q);if(!await O(J,Q))return null;let Y;try{return Y=await S(X,P),await EJ(J,Q,V)}finally{await Y?.()}}async function SQ(J,Q){let V=A(J,Q);try{let X=parseInt(Q,10);if(!isNaN(X)){let Y=await g(J);if(X>Y)await RJ(J,X)}try{await qJ(V)}catch(Y){if(C(Y)==="ENOENT")return!1;throw Y}let Z=await h(J);for(let Y of Z){let $=Y.blocks.filter((K)=>K!==Q),q=Y.blockedBy.filter((K)=>K!==Q);if($.length!==Y.blocks.length||q.length!==Y.blockedBy.length)await j(J,Y.id,{blocks:$,blockedBy:q})}return U(),!0}catch{return!1}}async function h(J){let Q=E(J),V;try{V=await l(Q)}catch{return[]}let X=V.filter((Y)=>Y.endsWith(".json")).map((Y)=>Y.replace(".json",""));return(await Promise.all(X.map((Y)=>O(J,Y)))).filter((Y)=>Y!==null)}async function AQ(J,Q,V){let[X,Z]=await Promise.all([O(J,Q),O(J,V)]);if(!X||!Z)return!1;if(!X.blocks.includes(V))await j(J,Q,{blocks:[...X.blocks,V]});if(!Z.blockedBy.includes(Q))await j(J,V,{blockedBy:[...Z.blockedBy,Q]});return!0}function LJ(J){return D(E(J),".lock")}async function o(J){await bJ(J);let Q=LJ(J);try{await b(Q,"",{flag:"wx"})}catch{}return Q}async function zQ(J,Q,V,X={}){let Z=A(J,Q);if(!await O(J,Q))return{success:!1,reason:"task_not_found"};if(X.checkAgentBusy)return uJ(J,Q,V);let $;try{$=await S(Z,P);let q=await O(J,Q);if(!q)return{success:!1,reason:"task_not_found"};if(q.owner&&q.owner!==V)return{success:!1,reason:"already_claimed",task:q};if(q.status==="completed")return{success:!1,reason:"already_resolved",task:q};let K=await h(J),B=new Set(K.filter((z)=>z.status!=="completed").map((z)=>z.id)),N=q.blockedBy.filter((z)=>B.has(z));if(N.length>0)return{success:!1,reason:"blocked",task:q,blockedByTasks:N};return{success:!0,task:await EJ(J,Q,{owner:V})}}catch(q){return G(`[Tasks] Failed to claim task ${Q}: ${W(q)}`),p(q),{success:!1,reason:"task_not_found"}}finally{if($)await $()}}async function uJ(J,Q,V){let X=await o(J),Z;try{Z=await S(X,P);let Y=await h(J),$=Y.find((_)=>_.id===Q);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==V)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let q=new Set(Y.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=$.blockedBy.filter((_)=>q.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:K};let B=Y.filter((_)=>_.status!=="completed"&&_.owner===V&&_.id!==Q);if(B.length>0)return{success:!1,reason:"agent_busy",task:$,busyWithTasks:B.map((_)=>_.id)};return{success:!0,task:await j(J,Q,{owner:V})}}catch(Y){return G(`[Tasks] Failed to claim task ${Q} with busy check: ${W(Y)}`),p(Y),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function MQ(J,Q,V,X){let Y=(await h(J)).filter((K)=>K.status!=="completed"&&(K.owner===Q||K.owner===V));for(let K of Y)await j(J,K.id,{owner:void 0,status:"pending"});if(Y.length>0)G(`[Tasks] Unassigned ${Y.length} task(s) from ${V}`);let q=`${V} ${X==="terminated"?"was terminated":"has shut down"}.`;if(Y.length>0){let K=Y.map((B)=>`#${B.id} "${B.subject}"`).join(", ");q+=` ${Y.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:Y.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:q}}var GJ,M,BQ,fJ,pJ,cJ=".highwatermark",P;var HJ=T(()=>{VJ();m();yJ();QJ();a();e();XJ();wJ();jJ();MJ();JJ();ZJ();DJ();GJ=r();BQ=GJ.subscribe;fJ=w(()=>R.enum(["pending","in_progress","completed"])),pJ=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fJ(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),P={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(J){return J==="tmux"||J==="iterm2"}var UJ=()=>{};import{mkdirSync as IJ,readFileSync as lJ,writeFileSync as gJ}from"fs";import{mkdir as oJ,readFile as AJ,rm as k,writeFile as nJ}from"fs/promises";import{join as f}from"path";function zJ(J){return J.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function nQ(J){return J.replace(/@/g,"-")}function u(J){return f(I(),zJ(J))}function F(J){return f(u(J),"config.json")}function H(J){try{let Q=lJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}async function kJ(J){try{let Q=await AJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}function x(J,Q){let V=u(J);IJ(V,{recursive:!0}),gJ(F(J),v(Q,null,2))}async function rJ(J,Q){let V=u(J);await oJ(V,{recursive:!0}),await nJ(F(J),v(Q,null,2))}function kQ(J,Q){let V=Q.agentId||Q.name;if(!V)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let X=H(J);if(!X)return G(`[TeammateTool] Cannot remove teammate ${V}: failed to read team file for "${J}"`),!1;let Z=X.members.length;if(X.members=X.members.filter((Y)=>{if(Q.agentId&&Y.agentId===Q.agentId)return!1;if(Q.name&&Y.name===Q.name)return!1;return!0}),X.members.length===Z)return G(`[TeammateTool] Teammate ${V} not found in team file for "${J}"`),!1;return x(J,X),G(`[TeammateTool] Removed teammate from team file: ${V}`),!0}function rQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[];if(!X.includes(Q))X.push(Q),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Added ${Q} to hidden panes for team ${J}`);return!0}function dQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[],Z=X.indexOf(Q);if(Z!==-1)X.splice(Z,1),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Removed ${Q} from hidden panes for team ${J}`);return!0}function iQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.tmuxPaneId===Q);if(X===-1)return!1;if(V.members.splice(X,1),V.hiddenPaneIds){let Z=V.hiddenPaneIds.indexOf(Q);if(Z!==-1)V.hiddenPaneIds.splice(Z,1)}return x(J,V),G(`[TeammateTool] Removed member with pane ${Q} from team ${J}`),!0}function mQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.agentId===Q);if(X===-1)return!1;return V.members.splice(X,1),x(J,V),G(`[TeammateTool] Removed member ${Q} from team ${J}`),!0}function dJ(J,Q,V){let X=H(J);if(!X)return!1;let Z=X.members.find(($)=>$.name===Q);if(!Z)return G(`[TeammateTool] Cannot set member mode: member ${Q} not found in team ${J}`),!1;if(Z.mode===V)return!0;let Y=X.members.map(($)=>$.name===Q?{...$,mode:V}:$);return x(J,{...X,members:Y}),G(`[TeammateTool] Set member ${Q} in team ${J} to mode: ${V}`),!0}function sQ(J,Q){if(!vJ())return;let V=Q??c(),X=CJ();if(V&&X)dJ(V,X,J)}function tQ(J,Q){let V=H(J);if(!V)return!1;let X=new Map(Q.map(($)=>[$.memberName,$.mode])),Z=!1,Y=V.members.map(($)=>{let q=X.get($.name);if(q!==void 0&&$.mode!==q)return Z=!0,{...$,mode:q};return $});if(Z)x(J,{...V,members:Y}),G(`[TeammateTool] Set ${Q.length} member modes in team ${J}`);return!0}async function aQ(J,Q,V){let X=await kJ(J);if(!X){G(`[TeammateTool] Cannot set member active: team ${J} not found`);return}let Z=X.members.find((Y)=>Y.name===Q);if(!Z){G(`[TeammateTool] Cannot set member active: member ${Q} not found in team ${J}`);return}if(Z.isActive===V)return;Z.isActive=V,await rJ(J,X),G(`[TeammateTool] Set member ${Q} in team ${J} to ${V?"active":"idle"}`)}async function iJ(J){let Q=f(J,".git"),V=null;try{let Z=(await AJ(Q,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Z&&Z[1]){let Y=Z[1],$=f(Y,"..","..");V=f($,"..")}}catch{}if(V){let X=await OJ(xJ(),["worktree","remove","--force",J],{cwd:V});if(X.code===0){G(`[TeammateTool] Removed worktree via git: ${J}`);return}if(X.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${J}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${X.stderr}`)}try{await k(J,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${J}`)}catch(X){G(`[TeammateTool] Failed to remove worktree ${J}: ${W(X)}`)}}function eQ(J){L().add(J)}function JV(J){L().delete(J)}async function QV(){let J=L();if(J.size===0)return;let Q=Array.from(J);G(`cleanupSessionTeams: removing ${Q.length} orphan team dir(s): ${Q.join(", ")}`),await Promise.allSettled(Q.map((V)=>mJ(V))),await Promise.allSettled(Q.map((V)=>sJ(V))),J.clear()}async function mJ(J){let Q=H(J);if(!Q)return;let V=Q.members.filter((q)=>q.name!==SJ&&q.tmuxPaneId&&q.backendType&&n(q.backendType));if(V.length===0)return;let[{ensureBackendsRegistered:X,getBackendByType:Z},{isInsideTmux:Y}]=await Promise.all([import("./registry-0.1.9-xxrsbce3.mjs"),import("./detection-0.1.9-ry1q2ym2.mjs")]);await X();let $=!await Y();await Promise.allSettled(V.map(async(q)=>{if(!q.tmuxPaneId||!q.backendType||!n(q.backendType))return;let K=await Z(q.backendType).killPane(q.tmuxPaneId,$);G(`cleanupSessionTeams: killPane ${q.name} (${q.backendType} ${q.tmuxPaneId}) → ${K}`)}))}async function sJ(J){let Q=zJ(J),V=H(J),X=[];if(V){for(let $ of V.members)if($.worktreePath)X.push($.worktreePath)}for(let $ of X)await iJ($);let Z=u(J);try{await k(Z,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Z}`)}catch($){G(`[TeammateTool] Failed to clean up team directory ${Z}: ${W($)}`)}let Y=E(Q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${Y}`),U()}catch($){G(`[TeammateTool] Failed to clean up tasks directory ${Y}: ${W($)}`)}}var oQ;var tJ=T(()=>{VJ();m();QJ();a();e();FJ();NJ();XJ();JJ();HJ();ZJ();UJ();TJ();oQ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
|
|
2
|
-
export{HQ as MP,UQ as NP,BQ as OP,fJ as PP,OQ as QP,xQ as RP,CQ as SP,_J as TP,E as UP,bJ as VP,vQ as WP,O as XP,j as YP,SQ as ZP,h as _P,AQ as $P,zQ as aQ,MQ as bQ,HJ as cQ,n as dQ,UJ as eQ,oQ as fQ,zJ as gQ,nQ as hQ,u as iQ,F as jQ,H as kQ,kJ as lQ,rJ as mQ,kQ as nQ,rQ as oQ,dQ as pQ,iQ as qQ,mQ as rQ,dJ as sQ,sQ as tQ,tQ as uQ,aQ as vQ,eQ as wQ,JV as xQ,QV as yQ,sJ as zQ,tJ as AQ};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ta as Uq}from"./cli-0.1.9-jdpz959j.mjs";import{$o as hq,Au as iq,BH as $q,CA as Y,Dp as zq,EA as p,EO as eq,FA as d,FN as l,Fp as pq,HA as _q,Iy as Kq,KA as Qq,Ki as b,Ky as lq,LA as Xq,MH as sq,Ml as qq,PA as oq,PL as Bq,Pl as _,QL as Vq,Qp as W,RL as Yq,UM as tq,Vl as cq,Vp as dq,YK as u,YN as a,Yi as mq,Yp as Gq,ZK as i,Zp as gq,hL as Oq,iF as g,iO as Tq,kM as yq,kO as D,lA as v,lF as Lq,lO as x,mA as aq,rM as Rq,sM as L,wC as w,xC as nq,zu as Jq}from"./cli-0.1.9-04ez73f7.mjs";import{HP as h,IP as Mq}from"./cli-0.1.9-4vmbyj20.mjs";import{QP as Hq,cQ as uq}from"./cli-0.1.9-fm2yycpj.mjs";import{aR as Zq,dR as rq}from"./cli-0.1.9-pgwsmwz1.mjs";import{R2 as e,X2 as Aq}from"./cli-0.1.9-4sqfjw8t.mjs";import{wda as T,xda as Sq}from"./cli-0.1.9-mj88t3jf.mjs";import{Afa as Nq,zfa as c}from"./cli-0.1.9-5ryrgdzg.mjs";import{Aga as m,Dfa as S,Ffa as Fq,nga as A,rga as Iq,xga as B}from"./cli-0.1.9-vdw09f8y.mjs";import{Eia as O,Hja as s,Jja as t,Qla as E,Yla as C,pma as f,uia as P,via as Eq,wia as n,zia as r}from"./cli-0.1.9-7fp0smtp.mjs";Mq();f();Oq();Nq();_q();Lq();Fq();m();Iq();Tq();Eq();import*as $ from"path";var bq=1000,Wq=500,vq=300,wq=2000,Dq=typeof Bun<"u",X=null,Z=null,y=new Set,N=!1,M=!1,k=!1,j=null,U=P(),R=null;async function xq(){if(N||M)return;if(N=!0,!k)k=!0,d(()=>{u(),U.emit()});let q=await Pq();if(q.length===0)return;B(`Watching for changes in skill/command directories: ${q.join(", ")}...`),X=h.watch(q,{persistent:!0,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:R?.stabilityThreshold??bq,pollInterval:R?.pollInterval??Wq},ignored:(z,G)=>{if(G&&!G.isFile()&&!G.isDirectory())return!0;return z.split($.sep).some((H)=>H===".git")},ignorePermissionErrors:!0,usePolling:Dq,interval:R?.chokidarInterval??wq,atomic:!0}),X.on("add",I),X.on("change",I),X.on("unlink",I),j=S(async()=>{await o()})}function o(){if(M=!0,j)j(),j=null;let q=Promise.resolve();if(X)q=X.close(),X=null;if(Z)clearTimeout(Z),Z=null;return y.clear(),U.clear(),q}var kq=U.subscribe;async function Pq(){let q=A(),z=[],G=Y("userSettings","skills");if(G)try{await q.stat(G),z.push(G)}catch{}let H=Y("userSettings","commands");if(H)try{await q.stat(H),z.push(H)}catch{}let J=Y("projectSettings","skills");if(J)try{let K=$.resolve(J);await q.stat(K),z.push(K)}catch{}let Q=Y("projectSettings","commands");if(Q)try{let K=$.resolve(Q);await q.stat(K),z.push(K)}catch{}for(let K of C()){let V=$.join(K,".claude","skills");try{await q.stat(V),z.push(V)}catch{}}return z}function I(q){B(`Detected skill change: ${q}`),c("tengu_skill_file_changed",{source:"chokidar"}),Cq(q)}function Cq(q){if(y.add(q),Z)clearTimeout(Z);Z=setTimeout(async()=>{Z=null;let z=[...y];y.clear();let G=await a("skills",z[0]);if(l(G)){B(`ConfigChange hook blocked skill reload (${z.length} paths)`);return}p(),i(),g(),U.emit()},R?.reloadDebounce??vq)}async function fq(q){if(X)await X.close(),X=null;if(Z)clearTimeout(Z),Z=null;y.clear(),U.clear(),N=!1,M=!1,R=q??null}var Fz={initialize:xq,dispose:o,subscribe:kq,resetForTesting:fq};f();nq();oq();cq();gq();pq();import{dirname as qz}from"path";mq();hq();rq();Sq();m();lq();sq();Aq();dq();aq();tq();uq();iq();eq();function zz(q){for(let z=q.length-1;z>=0;z--){let G=q[z];if(G?.type!=="assistant")continue;let H=G.message.content.find((K)=>K.type==="tool_use"&&K.name===Gq);if(!H||H.type!=="tool_use")continue;let J=H.input;if(J===null||typeof J!=="object")return[];let Q=Jq().safeParse(J.todos);return Q.success?Q.data:[]}return[]}function uz(q,z){if(q.fileHistorySnapshots&&q.fileHistorySnapshots.length>0)Kq(q.fileHistorySnapshots,(G)=>{z((H)=>({...H,fileHistory:G}))});if(!Hq()&&q.messages&&q.messages.length>0){let G=zz(q.messages);if(G.length>0){let H=n();z((J)=>({...J,todos:{...J.todos,[H]:G}}))}}}function Gz(q){return}function Hz(q,z){if(!q&&!z)return;return{name:q??"",color:z==="default"?void 0:z}}function Jz(q,z,G){if(z)return{agentDefinition:z,agentType:void 0};if(!q)return E(void 0),{agentDefinition:void 0,agentType:void 0};let H=G.activeAgents.find((J)=>J.agentType===q);if(!H)return B(`Resumed session had agent "${q}" but it is no longer available. Using default behavior.`),E(void 0),{agentDefinition:void 0,agentType:void 0};if(E(H.agentType),!s()&&H.model&&H.model!=="inherit")t(e(H.model));return{agentDefinition:H,agentType:H.agentType}}async function Kz(q,z,G,H){if(!q)return H;_.cache.clear?.();let J=await _(z),Q=[...J.allAgents,...G];return{...J,allAgents:Q,activeAgents:qq(Q)}}function Qz(q){let z=D();if(z){L(z);return}if(!q)return;try{process.chdir(q.worktreePath)}catch{L(null);return}v(q.worktreePath),O(T()),x(q),b(),w(),W.cache.clear?.()}function iz(){let q=D();if(!q)return;x(null),b(),w(),W.cache.clear?.();try{process.chdir(q.originalCwd)}catch{return}v(q.originalCwd),O(T())}async function lz(q,z,G){let H;if(H=G.modeApi?.matchSessionMode(q.mode),H)q.messages.push($q(H,"warning"));if(!z.forkSession){let F=z.sessionIdOverride??q.sessionId;if(F){if(r(zq(F),z.transcriptPath?qz(z.transcriptPath):null),await Uq(),await Vq(),!Qq(F))Xq(q.messages)}}else if(q.contentReplacements?.length)await Bq(q.contentReplacements);if(yq(z.forkSession?{...q,worktreeSession:void 0}:q),!z.forkSession)Qz(q.worktreeSession),Yq();let{agentDefinition:J,agentType:Q}=Jz(q.agentSetting,G.mainThreadAgentDefinition,G.agentDefinitions);Rq(G.modeApi?.isCoordinatorMode()?"coordinator":"normal");let K=z.includeAttribution?Gz(q):void 0,V=Hz(q.agentName,q.agentColor);Zq(q.agentName);let jq=await Kz(!!H,G.currentCwd,G.cliAgents,G.agentDefinitions);return{messages:q.messages,fileHistorySnapshots:q.fileHistorySnapshots,contentReplacements:q.contentReplacements,agentName:q.agentName,agentColor:q.agentColor==="default"?void 0:q.agentColor,restoredAgentDef:J,initialState:{...G.initialState,...Q&&{agent:Q},...K&&{attribution:K},...V&&{standaloneAgentContext:V},agentDefinitions:jq}}}
|
|
2
|
-
export{Fz as za,uz as Aa,Hz as Ba,Jz as Ca,Qz as Da,iz as Ea,lz as Fa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{gca as F,tca as v,wca as N,zca as E}from"./cli-0.1.9-86kws2c7.mjs";import{lna as P}from"./cli-0.1.9-kbrf27z8.mjs";function Y(G){let j=new AbortController,K=setTimeout(()=>j.abort(),G);return{signal:j.signal,clear:()=>clearTimeout(K)}}function Z(G){return G.replace(/\/+$/,"")}function x(G,j=180){let K=G.trim().replace(/\s+/g," ");if(!K)return"";if(K.length<=j)return K;return`${K.slice(0,j)}...`}function f(G){return(G.models??[]).filter((j)=>Boolean(j.name)).map((j)=>({name:j.name,sizeBytes:typeof j.size==="number"?j.size:null,family:j.details?.family??null,families:j.details?.families??[],parameterSize:j.details?.parameter_size??null,quantizationLevel:j.details?.quantization_level??null}))}async function _(G,j=5000){let{signal:K,clear:Q}=Y(j);try{let V=await fetch(`${R(G)}/api/tags`,{method:"GET",signal:K});if(!V.ok)return{reachable:!1,models:[]};let J=await V.json().catch(()=>({}));return{reachable:!0,models:f(J)}}catch{return{reachable:!1,models:[]}}finally{Q()}}function R(G){let j=new URL(G||process.env.OLLAMA_BASE_URL||q),K=Z(j.pathname);return j.pathname=K.endsWith("/v1")?K.slice(0,-3)||"/":K||"/",j.search="",j.hash="",Z(j.toString())}function C(G){let j=new URL(G||process.env.ATOMIC_CHAT_BASE_URL||w),K=Z(j.pathname);return j.pathname=K.endsWith("/v1")?K.slice(0,-3)||"/":K||"/",j.search="",j.hash="",Z(j.toString())}function D(G){return`${C(G)}/v1`}function I(G){return(G||N()?.baseUrl||F).replace(/\/+$/,"")}function k(G){try{let j=new URL(I(G)),K=j.host.toLowerCase(),Q=j.hostname.toLowerCase(),V=j.pathname.toLowerCase(),J=`${Q} ${V}`;if(K.endsWith(":1234")||J.includes("lmstudio")||J.includes("lm-studio"))return"LM Studio";if(K.endsWith(":11434")||J.includes("ollama"))return"Ollama";if(J.includes("localai"))return"LocalAI";if(J.includes("jan"))return"Jan";if(J.includes("kobold"))return"KoboldCpp";if(J.includes("llama.cpp")||J.includes("llamacpp"))return"llama.cpp";if(J.includes("vllm"))return"vLLM";if(J.includes("open-webui")||J.includes("openwebui"))return"Open WebUI";if(J.includes("text-generation-webui")||J.includes("oobabooga"))return"text-generation-webui";if(K.includes("nvidia")||J.includes("nvidia")||K.includes("integrate.api.nvidia"))return"NVIDIA NIM";if(K.includes("minimax")||J.includes("minimax"))return"MiniMax";if(Q==="api.kimi.com"&&V.includes("/coding"))return"Moonshot AI - Kimi Code";if(K.includes("bankr")||J.includes("bankr"))return"Bankr";if(K.includes("moonshot")||J.includes("moonshot")||J.includes("kimi"))return"Moonshot AI - API"}catch{}return"Local OpenAI-compatible"}async function A(G){let{signal:j,clear:K}=Y(5000);try{let Q=I(G?.baseUrl),V=Q.toLowerCase().includes("bankr"),J=await fetch(`${Q}/models`,{method:"GET",headers:G?.apiKey?V?{"X-API-Key":G.apiKey}:{Authorization:`Bearer ${G.apiKey}`}:void 0,signal:j});if(!J.ok)return null;let $=await J.json();return Array.from(new Set(($.data??[]).filter((X)=>Boolean(X.id)).map((X)=>X.id)))}catch{return null}finally{K()}}async function L(G){let{signal:j,clear:K}=Y(1200);try{return(await fetch(`${D(G)}/models`,{method:"GET",signal:j})).ok}catch{return!1}finally{K()}}async function O(G){let{signal:j,clear:K}=Y(5000);try{let Q=await fetch(`${D(G)}/models`,{method:"GET",signal:j});if(!Q.ok)return[];return((await Q.json()).data??[]).filter((J)=>Boolean(J.id)).map((J)=>J.id)}catch{return[]}finally{K()}}async function y(G){if(!await L(G?.baseUrl))return{state:"unreachable"};let j=await O(G?.baseUrl);if(j.length===0)return{state:"no_models"};return{state:"ready",models:j}}async function u(G){let j=G?.timeoutMs??8000,{reachable:K,models:Q}=await _(G?.baseUrl,j);if(!K)return{state:"unreachable",models:[]};if(Q.length===0)return{state:"no_models",models:[]};let V=G?.model?.trim()||void 0;if(V&&!Q.some((W)=>W.name===V))return{state:"generation_failed",models:Q,probeModel:V,detail:`requested model not installed: ${V}`};let J=V??Q[0].name,{signal:$,clear:X}=Y(j);try{let W=await fetch(`${R(G?.baseUrl)}/api/chat`,{method:"POST",headers:{"Content-Type":"application/json"},signal:$,body:JSON.stringify({model:J,stream:!1,messages:[{role:"user",content:"Reply with OK."}],options:{temperature:0,num_predict:8}})});if(!W.ok){let z=await W.text().catch(()=>""),H=x(z);return{state:"generation_failed",models:Q,probeModel:J,detail:H?`status ${W.status}: ${H}`:`status ${W.status}`}}try{await W.json()}catch{return{state:"generation_failed",models:Q,probeModel:J,detail:"invalid JSON response"}}return{state:"ready",models:Q,probeModel:J}}catch(W){let z=W instanceof Error?W.name==="AbortError"?"request timed out":W.message:String(W);return{state:"generation_failed",models:Q,probeModel:J,detail:z}}finally{X()}}var q="http://localhost:11434",w="http://127.0.0.1:1337";var B=P(()=>{E();v()});
|
|
2
|
-
export{R as y0,k as z0,A as A0,y as B0,u as C0,B as D0};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{RX as Y,TX as Z,YX as F}from"./cli-0.1.9-mme2x7fq.mjs";import{F4 as f,k4 as x,n4 as L,q4 as H}from"./cli-0.1.9-4sqfjw8t.mjs";import{M5 as X,b6 as w}from"./cli-0.1.9-b6zp931m.mjs";import{Waa as q,X6 as v,Y6 as T,Zaa as Q,a7 as G,f7 as P,qba as U}from"./cli-0.1.9-86kws2c7.mjs";import{iea as W,jea as A}from"./cli-0.1.9-7ftnjyps.mjs";import{Aga as R,xga as K}from"./cli-0.1.9-vdw09f8y.mjs";import{lna as O}from"./cli-0.1.9-kbrf27z8.mjs";async function D(j="claude_code_guest_pass"){let{accessToken:B,orgUUID:z}=await Y(),J={...Z(B),"x-organization-uuid":z},M=`${W().BASE_API_URL}/api/oauth/organizations/${z}/referral/eligibility`;return(await X.get(M,{headers:J,params:{campaign:j},timeout:5000})).data}async function t(j="claude_code_guest_pass"){let{accessToken:B,orgUUID:z}=await Y(),J={...Z(B),"x-organization-uuid":z},M=`${W().BASE_API_URL}/api/oauth/organizations/${z}/referral/redemptions`;return(await X.get(M,{headers:J,params:{campaign:j},timeout:1e4})).data}function k(){return!!(L()?.organizationUuid&&x()&&H()==="max")}function i(){if(!k())return{eligible:!1,needsRefresh:!1,hasCache:!1};let j=L()?.organizationUuid;if(!j)return{eligible:!1,needsRefresh:!1,hasCache:!1};let z=Q().passesEligibilityCache?.[j];if(!z)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:J,timestamp:M}=z,_=Date.now()-M>S;return{eligible:J,needsRefresh:_,hasCache:!0}}function n(j){let B=m[j.currency]??`${j.currency} `,z=j.amount_minor_units/100,J=z%1===0?z.toString():z.toFixed(2);return`${B}${J}`}function a(){let j=L()?.organizationUuid;if(!j)return null;return Q().passesEligibilityCache?.[j]?.referrer_reward??null}function s(){let j=L()?.organizationUuid;if(!j)return null;return Q().passesEligibilityCache?.[j]?.remaining_passes??null}async function $(){if(N)return K("Passes: Reusing in-flight eligibility fetch"),N;let j=L()?.organizationUuid;if(!j)return null;return N=(async()=>{try{let B=await D(),z={...B,timestamp:Date.now()};return q((J)=>({...J,passesEligibilityCache:{...J.passesEligibilityCache,[j]:z}})),K(`Passes eligibility cached for org ${j}: ${B.eligible}`),B}catch(B){return K("Failed to fetch and cache passes eligibility"),G(B),null}finally{N=null}})(),N}async function E(){if(!k())return null;let j=L()?.organizationUuid;if(!j)return null;let z=Q().passesEligibilityCache?.[j],J=Date.now();if(!z)return K("Passes: No cache, fetching eligibility in background (command unavailable this session)"),$(),null;if(J-z.timestamp>S){K("Passes: Cache stale, returning cached data and refreshing in background"),$();let{timestamp:_,...C}=z;return C}K("Passes: Using fresh cached eligibility data");let{timestamp:M,...V}=z;return V}async function g(){if(v())return;E()}var S=86400000,N=null,m;var b=O(()=>{w();A();f();U();R();P();T();F();m={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
|
|
2
|
-
export{t as ER,i as FR,n as GR,a as HR,s as IR,E as JR,g as KR,b as LR};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ne as O0,oe as I0,qe as FP}from"./cli-0.1.9-ksv4ntar.mjs";import{DI as E0,Gq as MP,HJ as Q0,IJ as WP,Iq as U0,Jq as C0,KJ as x0,Kq as p0,Lq as $0,NI as EP,Oq as b0,Vq as D0,ar as zP,iv as L0,jr as uP,kv as v0,oI as ZP,pI as V0,rI as qP,ty as J0,uK as KP,uy as YP,vK as jP,wI as VP}from"./cli-0.1.9-04ez73f7.mjs";import{pP as p,qP as u0,rP as j,sP as y0,tP as e,uP as z0,xP as A0,yP as HP}from"./cli-0.1.9-ak0b9xfs.mjs";import{OR as B0,PR as XP}from"./cli-0.1.9-68vwvmkw.mjs";import{fS as QP,gS as pP,tS as w0,vS as $P}from"./cli-0.1.9-gpd1bhnf.mjs";import{DT as JP,FS as h0,IT as CP,JU as LP,OS as N0,UU as K0,lU as E,nU as Q,pU as L,tU as k0}from"./cli-0.1.9-nw3rpxdd.mjs";import{zX as l}from"./cli-0.1.9-2v4s8yf9.mjs";import{AX as i0}from"./cli-0.1.9-hy9s1fnj.mjs";import{$X as cP,_X as c0}from"./cli-0.1.9-v6x9pr1t.mjs";import{F4 as dP,n4 as GP}from"./cli-0.1.9-4sqfjw8t.mjs";import{B$ as j0,d7 as e0,e$ as S0,f$ as g0,f7 as hP,g$ as fP,g7 as T,h7 as PP,s$ as R0,t$ as wP}from"./cli-0.1.9-86kws2c7.mjs";import{iea as d0,jea as mP}from"./cli-0.1.9-7ftnjyps.mjs";import{Afa as TP,zfa as V}from"./cli-0.1.9-5ryrgdzg.mjs";import{Zfa as M0,dga as r0}from"./cli-0.1.9-vdw09f8y.mjs";import{hna as B,lna as G0}from"./cli-0.1.9-kbrf27z8.mjs";function f0(G){let P=s0.c(9),{serverToolsCount:X,serverPromptsCount:k,serverResourcesCount:Z}=G,w;if(P[0]!==k||P[1]!==Z||P[2]!==X){if(w=[],X>0)w.push("tools");if(Z>0)w.push("resources");if(k>0)w.push("prompts");P[0]=k,P[1]=Z,P[2]=X,P[3]=w}else w=P[3];let M;if(P[4]===Symbol.for("react.memo_cache_sentinel"))M=W0.jsxDEV(L,{bold:!0,children:"Capabilities: "},void 0,!1,void 0,this),P[4]=M;else M=P[4];let K;if(P[5]!==w)K=w.length>0?W0.jsxDEV(e,{children:w},void 0,!1,void 0,this):"none",P[5]=w,P[6]=K;else K=P[6];let R;if(P[7]!==K)R=W0.jsxDEV(Q,{children:[M,W0.jsxDEV(L,{color:"text",children:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P[7]=K,P[8]=R;else R=P[8];return R}var s0,W0;var T0=G0(()=>{K0();z0();s0=B(h0(),1),W0=B(l(),1)});function H0(G,P){switch(G.client.type){case"connected":return{message:`Reconnected to ${P}.`,success:!0};case"needs-auth":return{message:`${P} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${P}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${P}.`,success:!1}}}function F0(G,P){let X=G instanceof Error?G.message:String(G);return`Error reconnecting to ${P}: ${X}`}var m0=()=>{};function IG({server:G,serverToolsCount:P,onViewTools:X,onCancel:k,onComplete:Z,borderless:w=!1}){let[M]=N0(),K=B0(),{columns:R}=QP(),[g,O]=z.default.useState(!1),[i,I]=z.default.useState(null),m=Q0((q)=>q.mcp),b=WP(),[_,F]=z.default.useState(null),[W,N]=z.useState(!1),y=z.useRef(null),[d,u]=z.useState(!1),[D,$]=z.useState(null),[C,S]=z.useState(!1),[v,x]=z.useState(null),[o,a]=z.useState(!1),[t,P0]=z.useState(!1),n=z.useRef(void 0),A=z.useRef(!1),[n0,X0]=z.useState(""),[NP,UP]=z.useState(0),[l0,o0]=z.useState(null);z.useEffect(()=>()=>{if(A.current=!0,y.current?.abort(),n.current!==void 0)clearTimeout(n.current)},[]);let Y0=G.isAuthenticated||G.client.type==="connected"&&P>0,Z0=O0(),bP=z.default.useCallback(async()=>{u(!1),$(null),N(!0);try{let q=await Z0(G.name),H=q.client.type==="connected";if(V("tengu_claudeai_mcp_auth_completed",{success:H}),H)Z?.(`Authentication successful. Connected to ${G.name}.`);else if(q.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}catch(q){V("tengu_claudeai_mcp_auth_completed",{success:!1}),Z?.(F0(q,G.name))}finally{N(!1)}},[Z0,G.name,Z]),yP=z.default.useCallback(async()=>{await E0(G.name,{...G.config,scope:G.scope}),b((q)=>{let H=q.mcp.clients.map((s)=>s.name===G.name?{...s,type:"needs-auth"}:s),U=C0(q.mcp.tools,G.name),c=p0(q.mcp.commands,G.name),q0=$0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:H,tools:U,commands:c,resources:q0}}}),V("tengu_claudeai_mcp_clear_auth_completed",{}),Z?.(`Disconnected from ${G.name}.`),S(!1),x(null),a(!1)},[G.name,G.config,G.scope,b,Z]);w0("confirm:no",()=>{y.current?.abort(),y.current=null,O(!1),F(null)},{context:"Confirmation",isActive:g}),w0("confirm:no",()=>{u(!1),$(null)},{context:"Confirmation",isActive:d}),w0("confirm:no",()=>{S(!1),x(null),a(!1)},{context:"Confirmation",isActive:C}),LP((q,H)=>{if(H.return&&d)bP();if(H.return&&C)if(o)yP();else{let U=`${d0().CLAUDE_AI_ORIGIN}/settings/connectors`;x(U),a(!0),c0(U)}if(q==="c"&&!t){let U=_||D||v;if(U)JP(U).then((c)=>{if(A.current)return;if(c)process.stdout.write(c);if(P0(!0),n.current!==void 0)clearTimeout(n.current);n.current=setTimeout(P0,2000,!1)})}});let BP=R0(String(G.name)),OP=U0(m.commands,G.name).length,t0=I0(),IP=z.default.useCallback(async()=>{let q=d0().CLAUDE_AI_ORIGIN,U=GP()?.organizationUuid,c;if(U&&G.config.type==="claudeai-proxy"&&G.config.id){let q0=G.config.id.startsWith("mcprs")?"mcpsrv"+G.config.id.slice(5):G.config.id,s=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");c=`${q}/api/organizations/${U}/mcp/start-auth/${q0}?product_surface=${s}`}else c=`${q}/settings/connectors`;$(c),u(!0),V("tengu_claudeai_mcp_auth_started",{}),await c0(c)},[G.config]),_P=z.default.useCallback(()=>{S(!0),V("tengu_claudeai_mcp_clear_auth_started",{})},[]),SP=z.default.useCallback(async()=>{let q=G.client.type!=="disabled";try{if(await t0(G.name),G.config.type==="claudeai-proxy")V("tengu_claudeai_mcp_toggle",{new_state:q?"disabled":"enabled"});k()}catch(H){Z?.(`Failed to ${q?"disable":"enable"} MCP server '${G.name}': ${M0(H)}`)}},[G.client.type,G.config.type,G.name,t0,k,Z]),gP=z.default.useCallback(async()=>{if(G.config.type==="claudeai-proxy")return;O(!0),I(null);let q=new AbortController;y.current=q;try{if(G.isAuthenticated&&G.config)await V0(G.name,G.config,{preserveStepUpState:!0});if(G.config){await qP(G.name,G.config,F,q.signal,{onWaitingForCallback:(U)=>{o0(()=>U)}}),V("tengu_mcp_auth_config_authenticate",{wasAuthenticated:G.isAuthenticated});let H=await Z0(G.name);if(H.client.type==="connected"){let U=Y0?`Authentication successful. Reconnected to ${G.name}.`:`Authentication successful. Connected to ${G.name}.`;Z?.(U)}else if(H.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else e0(G.name,"Reconnection failed after authentication"),Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}}catch(H){if(H instanceof Error&&!(H instanceof ZP))I(H.message)}finally{O(!1),y.current=null,o0(null),X0("")}},[G.isAuthenticated,G.config,G.name,Z,Z0,Y0]),AP=async()=>{if(G.config.type==="claudeai-proxy")return;if(G.config)await V0(G.name,G.config),V("tengu_mcp_auth_config_clear",{}),await E0(G.name,{...G.config,scope:G.scope}),b((q)=>{let H=q.mcp.clients.map((s)=>s.name===G.name?{...s,type:"failed"}:s),U=C0(q.mcp.tools,G.name),c=p0(q.mcp.commands,G.name),q0=$0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:H,tools:U,commands:c,resources:q0}}}),Z?.(`Authentication cleared for ${G.name}.`)};if(g){let q=G.config.type!=="claudeai-proxy"&&G.config.oauth?.xaa?" Authenticating via your identity provider":" A browser window will open for authentication";return J.jsxDEV(Q,{flexDirection:"column",gap:1,padding:1,children:[J.jsxDEV(L,{color:"claude",children:["Authenticating with ",G.name,"…"]},void 0,!0,void 0,this),J.jsxDEV(Q,{children:[J.jsxDEV(J0,{},void 0,!1,void 0,this),J.jsxDEV(L,{children:q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_&&J.jsxDEV(Q,{flexDirection:"column",children:[J.jsxDEV(Q,{children:[J.jsxDEV(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]},void 0,!0,void 0,this),t?J.jsxDEV(L,{color:"success",children:"(Copied!)"},void 0,!1,void 0,this):J.jsxDEV(L,{dimColor:!0,children:J.jsxDEV(p,{shortcut:"c",action:"copy",parens:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(k0,{url:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this),g&&_&&l0&&J.jsxDEV(Q,{flexDirection:"column",marginTop:1,children:[J.jsxDEV(L,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"},void 0,!1,void 0,this),J.jsxDEV(Q,{children:[J.jsxDEV(L,{dimColor:!0,children:["URL ",">"," "]},void 0,!0,void 0,this),J.jsxDEV(KP,{value:n0,onChange:X0,onSubmit:(H)=>{l0(H.trim()),X0("")},cursorOffset:NP,onChangeCursorOffset:UP,columns:R-8},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Q,{marginLeft:3,children:J.jsxDEV(L,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}if(d)return J.jsxDEV(Q,{flexDirection:"column",gap:1,padding:1,children:[J.jsxDEV(L,{color:"claude",children:["Authenticating with ",G.name,"…"]},void 0,!0,void 0,this),J.jsxDEV(Q,{children:[J.jsxDEV(J0,{},void 0,!1,void 0,this),J.jsxDEV(L,{children:" A browser window will open for authentication"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),D&&J.jsxDEV(Q,{flexDirection:"column",children:[J.jsxDEV(Q,{children:[J.jsxDEV(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]},void 0,!0,void 0,this),t?J.jsxDEV(L,{color:"success",children:"(Copied!)"},void 0,!1,void 0,this):J.jsxDEV(L,{dimColor:!0,children:J.jsxDEV(p,{shortcut:"c",action:"copy",parens:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(k0,{url:D},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Q,{marginLeft:3,flexDirection:"column",children:[J.jsxDEV(L,{color:"permission",children:["Press ",J.jsxDEV(L,{bold:!0,children:"Enter"},void 0,!1,void 0,this)," after authenticating in your browser."]},void 0,!0,void 0,this),J.jsxDEV(L,{dimColor:!0,italic:!0,children:J.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(C)return J.jsxDEV(Q,{flexDirection:"column",gap:1,padding:1,children:[J.jsxDEV(L,{color:"claude",children:["Clear authentication for ",G.name]},void 0,!0,void 0,this),o?J.jsxDEV(J.Fragment,{children:[J.jsxDEV(L,{children:'Find the MCP server in the browser and click "Disconnect".'},void 0,!1,void 0,this),v&&J.jsxDEV(Q,{flexDirection:"column",children:[J.jsxDEV(Q,{children:[J.jsxDEV(L,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]},void 0,!0,void 0,this),t?J.jsxDEV(L,{color:"success",children:"(Copied!)"},void 0,!1,void 0,this):J.jsxDEV(L,{dimColor:!0,children:J.jsxDEV(p,{shortcut:"c",action:"copy",parens:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(k0,{url:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Q,{marginLeft:3,flexDirection:"column",children:[J.jsxDEV(L,{color:"permission",children:["Press ",J.jsxDEV(L,{bold:!0,children:"Enter"},void 0,!1,void 0,this)," when done."]},void 0,!0,void 0,this),J.jsxDEV(L,{dimColor:!0,italic:!0,children:J.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):J.jsxDEV(J.Fragment,{children:[J.jsxDEV(L,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'},void 0,!1,void 0,this),J.jsxDEV(Q,{marginLeft:3,flexDirection:"column",children:[J.jsxDEV(L,{color:"permission",children:["Press ",J.jsxDEV(L,{bold:!0,children:"Enter"},void 0,!1,void 0,this)," to open the browser."]},void 0,!0,void 0,this),J.jsxDEV(L,{dimColor:!0,italic:!0,children:J.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);if(W)return J.jsxDEV(Q,{flexDirection:"column",gap:1,padding:1,children:[J.jsxDEV(L,{color:"text",children:["Connecting to ",J.jsxDEV(L,{bold:!0,children:G.name},void 0,!1,void 0,this),"…"]},void 0,!0,void 0,this),J.jsxDEV(Q,{children:[J.jsxDEV(J0,{},void 0,!1,void 0,this),J.jsxDEV(L,{children:" Establishing connection to MCP server"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(L,{dimColor:!0,children:"This may take a few moments."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);let h=[];if(G.client.type==="disabled")h.push({label:"Enable",value:"toggle-enabled"});if(G.client.type==="connected"&&P>0)h.push({label:"View tools",value:"tools"});if(G.config.type==="claudeai-proxy"){if(G.client.type==="connected")h.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(G.client.type!=="disabled")h.push({label:"Authenticate",value:"claudeai-auth"})}else{if(Y0)h.push({label:"Re-authenticate",value:"reauth"}),h.push({label:"Clear authentication",value:"clear-auth"});if(!Y0)h.push({label:"Authenticate",value:"auth"})}if(G.client.type!=="disabled"){if(G.client.type!=="needs-auth")h.push({label:"Reconnect",value:"reconnectMcpServer"});h.push({label:"Disable",value:"toggle-enabled"})}if(h.length===0)h.push({label:"Back",value:"back"});return J.jsxDEV(Q,{flexDirection:"column",children:[J.jsxDEV(Q,{flexDirection:"column",paddingX:1,borderStyle:w?void 0:"round",children:[J.jsxDEV(Q,{marginBottom:1,children:J.jsxDEV(L,{bold:!0,children:[BP," MCP Server"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(Q,{flexDirection:"column",gap:0,children:[J.jsxDEV(Q,{children:[J.jsxDEV(L,{bold:!0,children:"Status: "},void 0,!1,void 0,this),G.client.type==="disabled"?J.jsxDEV(L,{children:[E("inactive",M)(T.radioOff)," disabled"]},void 0,!0,void 0,this):G.client.type==="connected"?J.jsxDEV(L,{children:[E("success",M)(T.tick)," connected"]},void 0,!0,void 0,this):G.client.type==="pending"?J.jsxDEV(J.Fragment,{children:[J.jsxDEV(L,{dimColor:!0,children:T.radioOff},void 0,!1,void 0,this),J.jsxDEV(L,{children:" connecting…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):G.client.type==="needs-auth"?J.jsxDEV(L,{children:[E("warning",M)(T.triangleUpOutline)," needs authentication"]},void 0,!0,void 0,this):J.jsxDEV(L,{children:[E("error",M)(T.cross)," failed"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),G.transport!=="claudeai-proxy"&&J.jsxDEV(Q,{children:[J.jsxDEV(L,{bold:!0,children:"Auth: "},void 0,!1,void 0,this),Y0?J.jsxDEV(L,{children:[E("success",M)(T.tick)," authenticated"]},void 0,!0,void 0,this):J.jsxDEV(L,{children:[E("error",M)(T.cross)," not authenticated"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Q,{children:[J.jsxDEV(L,{bold:!0,children:"URL: "},void 0,!1,void 0,this),J.jsxDEV(L,{dimColor:!0,children:G.config.url},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Q,{children:[J.jsxDEV(L,{bold:!0,children:"Config location: "},void 0,!1,void 0,this),J.jsxDEV(L,{dimColor:!0,children:b0(G.scope)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G.client.type==="connected"&&J.jsxDEV(f0,{serverToolsCount:P,serverPromptsCount:OP,serverResourcesCount:m.resources[G.name]?.length||0},void 0,!1,void 0,this),G.client.type==="connected"&&P>0&&J.jsxDEV(Q,{children:[J.jsxDEV(L,{bold:!0,children:"Tools: "},void 0,!1,void 0,this),J.jsxDEV(L,{dimColor:!0,children:[P," tools"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),i&&J.jsxDEV(Q,{marginTop:1,children:J.jsxDEV(L,{color:"error",children:["Error: ",i]},void 0,!0,void 0,this)},void 0,!1,void 0,this),h.length>0&&J.jsxDEV(Q,{marginTop:1,children:J.jsxDEV(L0,{options:h,onChange:async(q)=>{switch(q){case"tools":X();break;case"auth":case"reauth":await gP();break;case"clear-auth":await AP();break;case"claudeai-auth":await IP();break;case"claudeai-clear-auth":_P();break;case"reconnectMcpServer":N(!0);try{let H=await Z0(G.name);if(G.config.type==="claudeai-proxy")V("tengu_claudeai_mcp_reconnect",{success:H.client.type==="connected"});let{message:U}=H0(H,G.name);Z?.(U)}catch(H){if(G.config.type==="claudeai-proxy")V("tengu_claudeai_mcp_reconnect",{success:!1});Z?.(F0(H,G.name))}finally{N(!1)}break;case"toggle-enabled":await SP();break;case"back":k();break}},onCancel:k},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Q,{marginTop:1,children:J.jsxDEV(L,{dimColor:!0,italic:!0,children:K.pending?J.jsxDEV(J.Fragment,{children:["Press ",K.keyName," again to exit"]},void 0,!0,void 0,this):J.jsxDEV(e,{children:[J.jsxDEV(p,{shortcut:"↑↓",action:"navigate"},void 0,!1,void 0,this),J.jsxDEV(p,{shortcut:"Enter",action:"select"},void 0,!1,void 0,this),J.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var z,J;var iP=G0(()=>{PP();TP();mP();XP();pP();CP();K0();$P();VP();EP();FP();D0();x0();dP();cP();r0();hP();j0();y0();v0();z0();u0();YP();jP();T0();m0();z=B(i0(),1),J=B(l(),1)});function DG({server:G,serverToolsCount:P,onViewTools:X,onCancel:k,onComplete:Z,borderless:w=!1}){let[M]=N0(),K=B0(),R=Q0((W)=>W.mcp),g=O0(),O=I0(),[i,I]=_0.useState(!1),m=_0.default.useCallback(async()=>{let W=G.client.type!=="disabled";try{await O(G.name),k()}catch(N){Z(`Failed to ${W?"disable":"enable"} MCP server '${G.name}': ${M0(N)}`)}},[G.client.type,G.name,O,k,Z]),b=R0(String(G.name)),_=U0(R.commands,G.name).length,F=[];if(G.client.type!=="disabled"&&P>0)F.push({label:"View tools",value:"tools"});if(G.client.type!=="disabled")F.push({label:"Reconnect",value:"reconnectMcpServer"});if(F.push({label:G.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),F.length===0)F.push({label:"Back",value:"back"});if(i)return Y.jsxDEV(Q,{flexDirection:"column",gap:1,padding:1,children:[Y.jsxDEV(L,{color:"text",children:["Reconnecting to ",Y.jsxDEV(L,{bold:!0,children:G.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(Q,{children:[Y.jsxDEV(J0,{},void 0,!1,void 0,this),Y.jsxDEV(L,{children:" Restarting MCP server process"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(L,{dimColor:!0,children:"This may take a few moments."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return Y.jsxDEV(Q,{flexDirection:"column",children:[Y.jsxDEV(Q,{flexDirection:"column",paddingX:1,borderStyle:w?void 0:"round",children:[Y.jsxDEV(Q,{marginBottom:1,children:Y.jsxDEV(L,{bold:!0,children:[b," MCP Server"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Y.jsxDEV(Q,{flexDirection:"column",gap:0,children:[Y.jsxDEV(Q,{children:[Y.jsxDEV(L,{bold:!0,children:"Status: "},void 0,!1,void 0,this),G.client.type==="disabled"?Y.jsxDEV(L,{children:[E("inactive",M)(T.radioOff)," disabled"]},void 0,!0,void 0,this):G.client.type==="connected"?Y.jsxDEV(L,{children:[E("success",M)(T.tick)," connected"]},void 0,!0,void 0,this):G.client.type==="pending"?Y.jsxDEV(Y.Fragment,{children:[Y.jsxDEV(L,{dimColor:!0,children:T.radioOff},void 0,!1,void 0,this),Y.jsxDEV(L,{children:" connecting…"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):Y.jsxDEV(L,{children:[E("error",M)(T.cross)," failed"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(Q,{children:[Y.jsxDEV(L,{bold:!0,children:"Command: "},void 0,!1,void 0,this),Y.jsxDEV(L,{dimColor:!0,children:G.config.command},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G.config.args&&G.config.args.length>0&&Y.jsxDEV(Q,{children:[Y.jsxDEV(L,{bold:!0,children:"Args: "},void 0,!1,void 0,this),Y.jsxDEV(L,{dimColor:!0,children:G.config.args.join(" ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(Q,{children:[Y.jsxDEV(L,{bold:!0,children:"Config location: "},void 0,!1,void 0,this),Y.jsxDEV(L,{dimColor:!0,children:b0(zP(G.name)?.scope??"dynamic")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G.client.type==="connected"&&Y.jsxDEV(f0,{serverToolsCount:P,serverPromptsCount:_,serverResourcesCount:R.resources[G.name]?.length||0},void 0,!1,void 0,this),G.client.type==="connected"&&P>0&&Y.jsxDEV(Q,{children:[Y.jsxDEV(L,{bold:!0,children:"Tools: "},void 0,!1,void 0,this),Y.jsxDEV(L,{dimColor:!0,children:[P," tools"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F.length>0&&Y.jsxDEV(Q,{marginTop:1,children:Y.jsxDEV(L0,{options:F,onChange:async(W)=>{if(W==="tools")X();else if(W==="reconnectMcpServer"){I(!0);try{let N=await g(G.name),{message:y}=H0(N,G.name);Z?.(y)}catch(N){Z?.(F0(N,G.name))}finally{I(!1)}}else if(W==="toggle-enabled")await m();else if(W==="back")k()},onCancel:k},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(Q,{marginTop:1,children:Y.jsxDEV(L,{dimColor:!0,italic:!0,children:K.pending?Y.jsxDEV(Y.Fragment,{children:["Press ",K.keyName," again to exit"]},void 0,!0,void 0,this):Y.jsxDEV(e,{children:[Y.jsxDEV(p,{shortcut:"↑↓",action:"navigate"},void 0,!1,void 0,this),Y.jsxDEV(p,{shortcut:"Enter",action:"select"},void 0,!1,void 0,this),Y.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var _0,Y;var DP=G0(()=>{PP();XP();K0();uP();FP();D0();x0();r0();j0();y0();v0();z0();u0();YP();T0();m0();_0=B(i0(),1),Y=B(l(),1)});function oG(G){let P=kP.c(44),{tool:X,server:k,onBack:Z}=G,[w,M]=a0.default.useState(""),K,R;if(P[0]!==k.name||P[1]!==X){R=S0(X.name,k.name);let P0=X.userFacingName?X.userFacingName({}):R;K=g0(P0),P[0]=k.name,P[1]=X,P[2]=K,P[3]=R}else K=P[2],R=P[3];let g=K,O;if(P[4]!==X)O=X.isReadOnly?.({})??!1,P[4]=X,P[5]=O;else O=P[5];let i=O,I;if(P[6]!==X)I=X.isDestructive?.({})??!1,P[6]=X,P[7]=I;else I=P[7];let m=I,b;if(P[8]!==X)b=X.isOpenWorld?.({})??!1,P[8]=X,P[9]=b;else b=P[9];let _=b,F,W;if(P[10]!==X)F=()=>{(async function(){try{let A=await X.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});M(A)}catch{M("Failed to load description")}})()},W=[X],P[10]=X,P[11]=F,P[12]=W;else F=P[11],W=P[12];a0.default.useEffect(F,W);let N;if(P[13]!==i)N=i&&f.jsxDEV(L,{color:"success",children:" [read-only]"},void 0,!1,void 0,this),P[13]=i,P[14]=N;else N=P[14];let y;if(P[15]!==m)y=m&&f.jsxDEV(L,{color:"error",children:" [destructive]"},void 0,!1,void 0,this),P[15]=m,P[16]=y;else y=P[16];let d;if(P[17]!==_)d=_&&f.jsxDEV(L,{dimColor:!0,children:" [open-world]"},void 0,!1,void 0,this),P[17]=_,P[18]=d;else d=P[18];let u;if(P[19]!==g||P[20]!==N||P[21]!==y||P[22]!==d)u=f.jsxDEV(f.Fragment,{children:[g,N,y,d]},void 0,!0,void 0,this),P[19]=g,P[20]=N,P[21]=y,P[22]=d,P[23]=u;else u=P[23];let D=u,$;if(P[24]===Symbol.for("react.memo_cache_sentinel"))$=f.jsxDEV(L,{bold:!0,children:"Tool name: "},void 0,!1,void 0,this),P[24]=$;else $=P[24];let C;if(P[25]!==R)C=f.jsxDEV(Q,{children:[$,f.jsxDEV(L,{dimColor:!0,children:R},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P[25]=R,P[26]=C;else C=P[26];let S;if(P[27]===Symbol.for("react.memo_cache_sentinel"))S=f.jsxDEV(L,{bold:!0,children:"Full name: "},void 0,!1,void 0,this),P[27]=S;else S=P[27];let v;if(P[28]!==X.name)v=f.jsxDEV(Q,{children:[S,f.jsxDEV(L,{dimColor:!0,children:X.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P[28]=X.name,P[29]=v;else v=P[29];let x;if(P[30]!==w)x=w&&f.jsxDEV(Q,{flexDirection:"column",marginTop:1,children:[f.jsxDEV(L,{bold:!0,children:"Description:"},void 0,!1,void 0,this),f.jsxDEV(L,{wrap:"wrap",children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P[30]=w,P[31]=x;else x=P[31];let o;if(P[32]!==X.inputJSONSchema)o=X.inputJSONSchema&&X.inputJSONSchema.properties&&Object.keys(X.inputJSONSchema.properties).length>0&&f.jsxDEV(Q,{flexDirection:"column",marginTop:1,children:[f.jsxDEV(L,{bold:!0,children:"Parameters:"},void 0,!1,void 0,this),f.jsxDEV(Q,{marginLeft:2,flexDirection:"column",children:Object.entries(X.inputJSONSchema.properties).map((P0)=>{let[n,A]=P0,X0=X.inputJSONSchema?.required?.includes(n);return f.jsxDEV(L,{children:["• ",n,X0&&f.jsxDEV(L,{dimColor:!0,children:" (required)"},void 0,!1,void 0,this),":"," ",f.jsxDEV(L,{dimColor:!0,children:typeof A==="object"&&A&&"type"in A?String(A.type):"unknown"},void 0,!1,void 0,this),typeof A==="object"&&A&&"description"in A&&f.jsxDEV(L,{dimColor:!0,children:[" - ",String(A.description)]},void 0,!0,void 0,this)]},n,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this),P[32]=X.inputJSONSchema,P[33]=o;else o=P[33];let a;if(P[34]!==C||P[35]!==v||P[36]!==x||P[37]!==o)a=f.jsxDEV(Q,{flexDirection:"column",children:[C,v,x,o]},void 0,!0,void 0,this),P[34]=C,P[35]=v,P[36]=x,P[37]=o,P[38]=a;else a=P[38];let t;if(P[39]!==Z||P[40]!==k.name||P[41]!==a||P[42]!==D)t=f.jsxDEV(A0,{title:D,subtitle:k.name,onCancel:Z,inputGuide:vP,children:a},void 0,!1,void 0,this),P[39]=Z,P[40]=k.name,P[41]=a,P[42]=D,P[43]=t;else t=P[43];return t}function vP(G){return G.pending?f.jsxDEV(L,{children:["Press ",G.keyName," again to exit"]},void 0,!0,void 0,this):f.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"},void 0,!1,void 0,this)}var kP,a0,f;var xP=G0(()=>{K0();fP();y0();HP();kP=B(h0(),1),a0=B(i0(),1),f=B(l(),1)});function ZJ(G){let P=RP.c(21),{server:X,onSelectTool:k,onBack:Z}=G,w=Q0(nP),M;P:{if(X.client.type!=="connected"){let W;if(P[0]===Symbol.for("react.memo_cache_sentinel"))W=[],P[0]=W;else W=P[0];M=W;break P}let F;if(P[1]!==w||P[2]!==X.name)F=MP(w,X.name),P[1]=w,P[2]=X.name,P[3]=F;else F=P[3];M=F}let K=M,R;if(P[4]!==X.name||P[5]!==K){let F;if(P[7]!==X.name)F=(W,N)=>{let y=S0(W.name,X.name),d=W.userFacingName?W.userFacingName({}):y,u=g0(d),D=W.isReadOnly?.({})??!1,$=W.isDestructive?.({})??!1,C=W.isOpenWorld?.({})??!1,S=[];if(D)S.push("read-only");if($)S.push("destructive");if(C)S.push("open-world");return{label:u,value:N.toString(),description:S.length>0?S.join(", "):void 0,descriptionColor:$?"error":D?"success":void 0}},P[7]=X.name,P[8]=F;else F=P[8];R=K.map(F),P[4]=X.name,P[5]=K,P[6]=R}else R=P[6];let g=R,O=`Tools for ${X.name}`,i=K.length,I;if(P[9]!==K.length)I=wP(K.length,"tool"),P[9]=K.length,P[10]=I;else I=P[10];let m=`${i} ${I}`,b;if(P[11]!==Z||P[12]!==k||P[13]!==K||P[14]!==g)b=K.length===0?r.jsxDEV(L,{dimColor:!0,children:"No tools available"},void 0,!1,void 0,this):r.jsxDEV(L0,{options:g,onChange:(F)=>{let W=parseInt(F),N=K[W];if(N)k(N,W)},onCancel:Z},void 0,!1,void 0,this),P[11]=Z,P[12]=k,P[13]=K,P[14]=g,P[15]=b;else b=P[15];let _;if(P[16]!==Z||P[17]!==O||P[18]!==m||P[19]!==b)_=r.jsxDEV(A0,{title:O,subtitle:m,onCancel:Z,inputGuide:aP,children:b},void 0,!1,void 0,this),P[16]=Z,P[17]=O,P[18]=m,P[19]=b,P[20]=_;else _=P[20];return _}function aP(G){return G.pending?r.jsxDEV(L,{children:["Press ",G.keyName," again to exit"]},void 0,!0,void 0,this):r.jsxDEV(e,{children:[r.jsxDEV(p,{shortcut:"↑↓",action:"navigate"},void 0,!1,void 0,this),r.jsxDEV(p,{shortcut:"Enter",action:"select"},void 0,!1,void 0,this),r.jsxDEV(j,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function nP(G){return G.mcp.tools}var RP,r;var lP=G0(()=>{K0();fP();D0();x0();j0();y0();v0();z0();HP();u0();RP=B(h0(),1),r=B(l(),1)});
|
|
2
|
-
export{IG as ee,iP as fe,DG as ge,DP as he,oG as ie,xP as je,ZJ as ke,lP as le};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$T as BQ,FS as C,JU as h,UU as y,_T as k,nU as p,pU as $,vU as HQ}from"./cli-0.1.9-nw3rpxdd.mjs";import{zX as j}from"./cli-0.1.9-2v4s8yf9.mjs";import{AX as m}from"./cli-0.1.9-hy9s1fnj.mjs";import{Rea as qQ,Sea as wQ}from"./cli-0.1.9-mkfnnvz7.mjs";import{hna as z,lna as E}from"./cli-0.1.9-kbrf27z8.mjs";function d(){let Y=c.useContext(k);if(!Y)throw Error("useTerminalSize must be used within an Ink App component");return Y}var c;var a=E(()=>{BQ();c=z(m(),1)});function o(Y,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(Y.length===1)return Y.toLowerCase();return null}var s=()=>{};function r(Y){let Q=Y.split("+"),X={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let J of Q){let Z=J.toLowerCase();switch(Z){case"ctrl":case"control":X.ctrl=!0;break;case"alt":case"opt":case"option":X.alt=!0;break;case"shift":X.shift=!0;break;case"meta":X.meta=!0;break;case"cmd":case"command":case"super":case"win":X.super=!0;break;case"esc":X.key="escape";break;case"return":X.key="enter";break;case"space":X.key=" ";break;case"↑":X.key="up";break;case"↓":X.key="down";break;case"←":X.key="left";break;case"→":X.key="right";break;default:X.key=Z;break}}return X}function VQ(Y){if(Y===" ")return[r("space")];return Y.trim().split(/\s+/).map(r)}function zQ(Y){let Q=[];if(Y.ctrl)Q.push("ctrl");if(Y.alt)Q.push("alt");if(Y.shift)Q.push("shift");if(Y.meta)Q.push("meta");if(Y.super)Q.push("cmd");let X=NQ(Y.key);return Q.push(X),Q.join("+")}function NQ(Y){switch(Y){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return Y}}function b(Y){return Y.map(zQ).join(" ")}function DQ(Y){let Q=[];for(let X of Y)for(let[J,Z]of Object.entries(X.bindings))Q.push({chord:VQ(J),action:Z,context:X.context});return Q}var i=()=>{};function n(Y,Q,X){let J=X.findLast((Z)=>Z.action===Y&&Z.context===Q);return J?b(J.chord):void 0}function SQ(Y,Q){let X=o(Y,Q);if(!X)return null;let J=Q.escape?!1:Q.meta;return{key:X,ctrl:Q.ctrl,alt:J,shift:Q.shift,meta:J,super:Q.super}}function t(Y,Q){return Y.key===Q.key&&Y.ctrl===Q.ctrl&&Y.shift===Q.shift&&(Y.alt||Y.meta)===(Q.alt||Q.meta)&&Y.super===Q.super}function _Q(Y,Q){if(Y.length>=Q.chord.length)return!1;for(let X=0;X<Y.length;X++){let J=Y[X],Z=Q.chord[X];if(!J||!Z)return!1;if(!t(J,Z))return!1}return!0}function PQ(Y,Q){if(Y.length!==Q.chord.length)return!1;for(let X=0;X<Y.length;X++){let J=Y[X],Z=Q.chord[X];if(!J||!Z)return!1;if(!t(J,Z))return!1}return!0}function e(Y,Q,X,J,Z){if(Q.escape&&Z!==null)return{type:"chord_cancelled"};let G=SQ(Y,Q);if(!G){if(Z!==null)return{type:"chord_cancelled"};return{type:"none"}}let U=Z?[...Z,G]:[G],H=new Set(X),B=J.filter((q)=>H.has(q.context)),I=new Map;for(let q of B)if(q.chord.length>U.length&&_Q(U,q))I.set(b(q.chord),q.action);let V=!1;for(let q of I.values())if(q!==null){V=!0;break}if(V)return{type:"chord_started",pending:U};let L;for(let q of B)if(PQ(U,q))L=q;if(L){if(L.action===null)return{type:"unbound"};return{type:"match",action:L.action}}if(Z!==null)return{type:"chord_cancelled"};return{type:"none"}}var QQ=E(()=>{s();i()});function pQ(Y){let Q=x.c(24),{bindings:X,pendingChordRef:J,pendingChord:Z,setPendingChord:G,activeContexts:U,registerActiveContext:H,unregisterActiveContext:B,handlerRegistryRef:I,children:V}=Y,L;if(Q[0]!==X)L=(O,F)=>n(O,F,X),Q[0]=X,Q[1]=L;else L=Q[1];let q=L,P;if(Q[2]!==I)P=(O)=>{let F=I.current;if(!F)return RQ;if(!F.has(O.action))F.set(O.action,new Set);return F.get(O.action).add(O),()=>{let R=F.get(O.action);if(R){if(R.delete(O),R.size===0)F.delete(O.action)}}},Q[2]=I,Q[3]=P;else P=Q[3];let K=P,A;if(Q[4]!==U||Q[5]!==I)A=(O)=>{let F=I.current;if(!F)return!1;let R=F.get(O);if(!R||R.size===0)return!1;for(let g of R)if(U.has(g.context))return g.handler(),!0;return!1},Q[4]=U,Q[5]=I,Q[6]=A;else A=Q[6];let w=A,S;if(Q[7]!==X||Q[8]!==J)S=(O,F,R)=>e(O,F,R,X,J.current),Q[7]=X,Q[8]=J,Q[9]=S;else S=Q[9];let W;if(Q[10]!==U||Q[11]!==X||Q[12]!==q||Q[13]!==w||Q[14]!==Z||Q[15]!==H||Q[16]!==K||Q[17]!==G||Q[18]!==S||Q[19]!==B)W={resolve:S,setPendingChord:G,getDisplayText:q,bindings:X,pendingChord:Z,activeContexts:U,registerActiveContext:H,unregisterActiveContext:B,registerHandler:K,invokeAction:w},Q[10]=U,Q[11]=X,Q[12]=q,Q[13]=w,Q[14]=Z,Q[15]=H,Q[16]=K,Q[17]=G,Q[18]=S,Q[19]=B,Q[20]=W;else W=Q[20];let _=W,N;if(Q[21]!==V||Q[22]!==_)N=YQ.jsxDEV(XQ.Provider,{value:_,children:V},void 0,!1,void 0,this),Q[21]=V,Q[22]=_,Q[23]=N;else N=Q[23];return N}function RQ(){}function u(){return T.useContext(XQ)}function bQ(Y,Q){let X=x.c(5),J=Q===void 0?!0:Q,Z=u(),G,U;if(X[0]!==Y||X[1]!==J||X[2]!==Z)G=()=>{if(!Z||!J)return;return Z.registerActiveContext(Y),()=>{Z.unregisterActiveContext(Y)}},U=[Y,Z,J],X[0]=Y,X[1]=J,X[2]=Z,X[3]=G,X[4]=U;else G=X[3],U=X[4];T.useLayoutEffect(G,U)}var x,T,YQ,XQ;var ZQ=E(()=>{QQ();x=z(C(),1),T=z(m(),1),YQ=z(j(),1),XQ=T.createContext(null)});function lQ(Y,Q,X={}){let{context:J="Global",isActive:Z=!0}=X,G=u();D.useEffect(()=>{if(!G||!Z)return;return G.registerHandler({action:Y,context:J,handler:Q})},[Y,J,Q,G,Z]);let U=D.useCallback((H,B,I)=>{if(!G)return;let V=[...G.activeContexts,J,"Global"],L=[...new Set(V)],q=G.resolve(H,B,L);switch(q.type){case"match":if(G.setPendingChord(null),q.action===Y){if(Q()!==!1)I.stopImmediatePropagation()}break;case"chord_started":G.setPendingChord(q.pending),I.stopImmediatePropagation();break;case"chord_cancelled":G.setPendingChord(null);break;case"unbound":G.setPendingChord(null),I.stopImmediatePropagation();break;case"none":break}},[Y,J,Q,G]);h(U,{isActive:Z})}function gQ(Y,Q={}){let{context:X="Global",isActive:J=!0}=Q,Z=u();D.useEffect(()=>{if(!Z||!J)return;let U=[];for(let[H,B]of Object.entries(Y))U.push(Z.registerHandler({action:H,context:X,handler:B}));return()=>{for(let H of U)H()}},[X,Y,Z,J]);let G=D.useCallback((U,H,B)=>{if(!Z)return;let I=[...Z.activeContexts,X,"Global"],V=[...new Set(I)],L=Z.resolve(U,H,V);switch(L.type){case"match":if(Z.setPendingChord(null),L.action in Y){let q=Y[L.action];if(q&&q()!==!1)B.stopImmediatePropagation()}break;case"chord_started":Z.setPendingChord(L.pending),B.stopImmediatePropagation();break;case"chord_cancelled":Z.setPendingChord(null);break;case"unbound":Z.setPendingChord(null),B.stopImmediatePropagation();break;case"none":break}},[X,Y,Z]);h(G,{isActive:J})}var D;var EQ=E(()=>{y();ZQ();D=z(m(),1)});function GQ(){return M.useContext(l)!==null}function cQ(Y){let Q=JQ.c(3),X=M.useContext(l),J;if(Q[0]!==X||Q[1]!==Y)J=X?{rows:X.rows,columns:X.columns}:Y,Q[0]=X,Q[1]=Y,Q[2]=J;else J=Q[2];return J}function dQ(){return M.useContext(l)?.scrollRef??null}var JQ,M,l;var UQ=E(()=>{JQ=z(C(),1),M=z(m(),1),l=M.createContext(null)});function OQ(Y){let Q=LQ.c(21),{width:X,color:J,char:Z,padding:G,title:U}=Y,H=Z===void 0?"─":Z,B=G===void 0?0:G,{columns:I}=d(),V=Math.max(0,(X??I)-B);if(U){let K=qQ(U)+2,A=Math.max(0,V-K),w=Math.floor(A/2),S=A-w,W=!J,_;if(Q[0]!==H||Q[1]!==w)_=H.repeat(w),Q[0]=H,Q[1]=w,Q[2]=_;else _=Q[2];let N;if(Q[3]!==U)N=f.jsxDEV($,{dimColor:!0,children:f.jsxDEV(HQ,{children:U},void 0,!1,void 0,this)},void 0,!1,void 0,this),Q[3]=U,Q[4]=N;else N=Q[4];let O;if(Q[5]!==H||Q[6]!==S)O=H.repeat(S),Q[5]=H,Q[6]=S,Q[7]=O;else O=Q[7];let F;if(Q[8]!==J||Q[9]!==W||Q[10]!==_||Q[11]!==N||Q[12]!==O)F=f.jsxDEV($,{color:J,dimColor:W,children:[_," ",N," ",O]},void 0,!0,void 0,this),Q[8]=J,Q[9]=W,Q[10]=_,Q[11]=N,Q[12]=O,Q[13]=F;else F=Q[13];return F}let L=!J,q;if(Q[14]!==H||Q[15]!==V)q=H.repeat(V),Q[14]=H,Q[15]=V,Q[16]=q;else q=Q[16];let P;if(Q[17]!==J||Q[18]!==L||Q[19]!==q)P=f.jsxDEV($,{color:J,dimColor:L,children:q},void 0,!1,void 0,this),Q[17]=J,Q[18]=L,Q[19]=q,Q[20]=P;else P=Q[20];return P}var LQ,f;var FQ=E(()=>{a();wQ();y();LQ=z(C(),1),f=z(j(),1)});function QX(Y){let Q=IQ.c(9),{children:X,color:J}=Y;if(GQ()){let H;if(Q[0]!==X)H=v.jsxDEV(p,{flexDirection:"column",paddingX:1,flexShrink:0,children:X},void 0,!1,void 0,this),Q[0]=X,Q[1]=H;else H=Q[1];return H}let Z;if(Q[2]!==J)Z=v.jsxDEV(OQ,{color:J},void 0,!1,void 0,this),Q[2]=J,Q[3]=Z;else Z=Q[3];let G;if(Q[4]!==X)G=v.jsxDEV(p,{flexDirection:"column",paddingX:2,children:X},void 0,!1,void 0,this),Q[4]=X,Q[5]=G;else G=Q[5];let U;if(Q[6]!==Z||Q[7]!==G)U=v.jsxDEV(p,{flexDirection:"column",paddingTop:1,children:[Z,G]},void 0,!0,void 0,this),Q[6]=Z,Q[7]=G,Q[8]=U;else U=Q[8];return U}var IQ,v;var WQ=E(()=>{UQ();y();FQ();IQ=z(C(),1),v=z(j(),1)});
|
|
2
|
-
export{d as fS,a as gS,r as hS,VQ as iS,b as jS,DQ as kS,i as lS,n as mS,e as nS,QQ as oS,pQ as pS,u as qS,bQ as rS,ZQ as sS,lQ as tS,gQ as uS,EQ as vS,l as wS,GQ as xS,cQ as yS,dQ as zS,UQ as AS,OQ as BS,FQ as CS,QX as DS,WQ as ES};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ega as q,Oga as U}from"./cli-0.1.9-v7ajk1nz.mjs";import{kna as L,lna as X}from"./cli-0.1.9-kbrf27z8.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 iR,Y as jR,Z as kR,$ as lR,Q as mR,_ as nR,v as oR,E as pR,A as qR,h as rR,u as sR,f as tR,w as uR,S as vR,P as wR,I as xR,l as yR,y as zR,g as AR};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{kna as x,lna as z}from"./cli-0.1.9-kbrf27z8.mjs";var H={};x(H,{toInfraSessionId:()=>G,toCompatSessionId:()=>F,setCseShimGate:()=>A});function A(j){q=j}function F(j){if(!j.startsWith("cse_"))return j;if(q&&!q())return j;return"session_"+j.slice(4)}function G(j){if(!j.startsWith("session_"))return j;return"cse_"+j.slice(8)}var q;var J=()=>{};
|
|
2
|
-
export{A as aS,F as bS,G as cS,H as dS,J as eS};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Iba as f,Waa as M,Zaa as L,pba as G,qba as h,uba as v,vba as P,yba as k}from"./cli-0.1.9-86kws2c7.mjs";import{aea as E,jea as x}from"./cli-0.1.9-7ftnjyps.mjs";import{Bga as T,Oga as u}from"./cli-0.1.9-v7ajk1nz.mjs";import{lna as C}from"./cli-0.1.9-kbrf27z8.mjs";import{chmodSync as K,cpSync as S,existsSync as V,mkdirSync as m,readFileSync as _,readdirSync as w,statSync as D,writeFileSync as O}from"fs";import{homedir as R}from"os";import{join as Y}from"path";function b(j){return Y(j,".claude")}function A(j){try{let q=_(j,"utf8"),B=JSON.parse(q);if(B&&typeof B==="object"&&!Array.isArray(B))return B;return null}catch{return null}}function F(j,q){O(j,JSON.stringify(q,null,2),{encoding:"utf8"})}function $(j){m(j,{recursive:!0})}function l(j,q,B,Q){let z=Y(j,".credentials.json"),I=Y(q,".credentials.json");if(!V(z))return 0;try{if(V(I)){let W=_(z),X=_(I);if(W.equals(X))return K(I,384),0;return Q.push(`${I} already exists with different content — kept new file untouched`),0}$(q);let N=_(z);return O(I,N),K(I,384),d(N)}catch(N){return B.push(`failed to copy .credentials.json: ${N instanceof Error?N.message:String(N)}`),0}}function d(j){try{let q=JSON.parse(j.toString("utf8"));if(q&&typeof q==="object")return Object.keys(q).length}catch{}return 1}function y(j,q,B){let Q=Y(j,"CLAUDE.md"),z=Y(q,"CLAUDE.md");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy CLAUDE.md: ${I instanceof Error?I.message:String(I)}`),!1}}function c(j,q,B){let Q=Y(j,"keybindings.json"),z=Y(q,"keybindings.json");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy keybindings.json: ${I instanceof Error?I.message:String(I)}`),!1}}function H(j,q,B,Q){let z=Y(j,B),I=Y(q,B);if(!V(z))return 0;let N=0;try{if(!D(z).isDirectory())return 0;$(q),S(z,I,{recursive:!0,force:!1,errorOnExist:!1}),N=p(I)}catch(W){Q.push(`failed to copy ${B}/: ${W instanceof Error?W.message:String(W)}`)}return N}function p(j){try{if(!V(j))return 0;return w(j).length}catch{return 0}}function a(j,q,B){let Q=Y(j,"settings.json");if(!V(Q))return 0;let z=A(Q);if(!z)return B.push("legacy settings.json could not be parsed; skipped"),0;let I=Y(q,"settings.json"),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of g){if(!(U in z))continue;if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{$(q),F(I,W)}catch(U){return B.push(`failed to write settings.json: ${U instanceof Error?U.message:String(U)}`),0}return X}function J(j){return Y(j,`.claude${E()}.json`)}function n(j){return Y(j,`config${E()}.json`)}function t(j,q,B){let Q=J(j);if(!V(Q))return 0;let z=A(Q);if(!z)return B.push(`legacy ${Q} could not be parsed; skipped`),0;let I=n(q),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of Object.keys(z)){if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{F(I,W)}catch(U){return B.push(`failed to write ${I}: ${U instanceof Error?U.message:String(U)}`),0}return G(null),X}function o(){let q=L().claudeToClaudioMigratedAt;if(typeof q==="string"&&q.length>0)return{migrated:!0,at:q};return{migrated:!1}}function s(j){M((q)=>({...q,claudeToClaudioMigratedAt:j}))}async function Vj(j={}){let q=j.homeDir??R(),B=b(q),Q=j.newDir??T(),z=[],I=[],N={tokens:0,settingsKeys:0,globalConfigKeys:0,claudeMd:!1,plugins:0,skills:0,agents:0,commands:0,keybindings:!1,anthropicProfileCreated:!1,errors:z,warnings:I,alreadyMigrated:!1,legacyDir:B,newDir:Q},W=V(J(q));if(!V(B)&&!W)return N;let X=o();if(X.migrated&&!j.force)return N.alreadyMigrated=!0,N.migratedAt=X.at,N;try{$(Q)}catch(U){return z.push(`failed to create ${Q}: ${U instanceof Error?U.message:String(U)}`),N}if(V(B))N.tokens=l(B,Q,z,I),N.settingsKeys=a(B,Q,z),N.claudeMd=y(B,Q,z),N.plugins=H(B,Q,"plugins",z),N.skills=H(B,Q,"skills",z),N.agents=H(B,Q,"agents",z),N.commands=H(B,Q,"commands",z),N.keybindings=c(B,Q,z);if(N.globalConfigKeys=t(q,Q,I),N.anthropicProfileCreated=i(Q,N.tokens,I),z.length===0){let U=new Date().toISOString();s(U),N.migratedAt=U}return N}function i(j,q,B){if(q<=0)return!1;let Q=Y(j,".credentials.json"),z;try{z=JSON.parse(_(Q,"utf8"))}catch(Z){return B.push(`failed to read migrated .credentials.json for profile bootstrap: ${Z instanceof Error?Z.message:String(Z)}`),!1}let N=z?.claudeAiOauth?.accessToken;if(typeof N!=="string"||N.length===0)return!1;let W=P();if(W.some((Z)=>Z.provider==="anthropic"))return!1;let X=v("anthropic"),U={provider:"anthropic",name:X.name,baseUrl:X.baseUrl,model:X.model};try{if(!k(U,{makeActive:W.length===0}))return B.push("anthropic profile could not be saved after migration"),!1;return!0}catch(Z){return B.push(`failed to create anthropic profile: ${Z instanceof Error?Z.message:String(Z)}`),!1}}function Wj(j){if(j.alreadyMigrated)return`nothing to do (last run: ${j.migratedAt??"unknown"}). Pass --force to re-run.`;let q=[];q.push(`${j.tokens} token${j.tokens===1?"":"s"}`),q.push(`${j.settingsKeys} settings key${j.settingsKeys===1?"":"s"}`),q.push(`${j.globalConfigKeys} global config key${j.globalConfigKeys===1?"":"s"}`),q.push(`${j.claudeMd?1:0} CLAUDE.md`),q.push(`${j.plugins} plugin${j.plugins===1?"":"s"}`),q.push(`${j.skills} skill${j.skills===1?"":"s"}`),q.push(`${j.agents} agent${j.agents===1?"":"s"}`),q.push(`${j.commands} command${j.commands===1?"":"s"}`),q.push(`${j.keybindings?"keybindings copied":"no keybindings"}`),q.push(j.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let B=q.join(", "),Q=`. ${j.legacyDir} kept untouched.`,z=`${B}${Q}`;if(j.warnings.length>0)z+=` Warnings: ${j.warnings.join("; ")}`;if(j.errors.length>0)z+=` Errors: ${j.errors.join("; ")}`;return z}function e(j=R()){return V(b(j))}function r(j=R()){return V(J(j))}function Xj(j=R()){let q=L();if(q.claudeToClaudioMigratedAt)return!1;if(q.legacyMigrationSkipped===!0)return!1;return e(j)||r(j)}function Yj(){M((j)=>({...j,legacyMigrationSkipped:!0}))}var g;var jj=C(()=>{x();h();u();f();g=["theme","model","customApiKeyResponses","permissions","verbose","editorMode","mcpServers","providerProfiles","activeProviderProfileId"]});
|
|
2
|
-
export{Vj as Ub,Wj as Vb,e as Wb,Xj as Xb,Yj as Yb,jj as Zb};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import{Sb as xt,Tb as ie}from"./cli-0.1.9-7q9461ka.mjs";import{Ub as xn,Vb as pn,Wb as un,Xb as Kt,Zb as ce}from"./cli-0.1.9-h8xne7z8.mjs";import{Hv as kt,IJ as Wt,Iv as Ha,Jv as Nt,KJ as re,Kv as qt,Lv as Tt,Mv as Ja,iv as q,jv as za,kv as te,ty as mt,uK as An,un as It,uy as Ra,vK as oe,vn as va,wy as ae,xy as ee}from"./cli-0.1.9-04ez73f7.mjs";import{DS as Ut,ES as ne,tS as D,vS as Da}from"./cli-0.1.9-gpd1bhnf.mjs";import{UU as st,nU as b,pU as c}from"./cli-0.1.9-nw3rpxdd.mjs";import{zX as wn}from"./cli-0.1.9-2v4s8yf9.mjs";import{AX as Fn}from"./cli-0.1.9-hy9s1fnj.mjs";import{$X as Wa,_X as Gt}from"./cli-0.1.9-v6x9pr1t.mjs";import{WZ as ot,XZ as ct,YZ as it,ZZ as ut,_Z as pa,b0 as lt,f0 as ht,g0 as Jt,h0 as dt}from"./cli-0.1.9-b9kbpf6n.mjs";import{B0 as Zt,C0 as Pt,D0 as Ba}from"./cli-0.1.9-gandxpzf.mjs";import{$ba as Mt,Dba as rn,Eba as Un,Iba as rt,Tba as Hn,Uba as pt,Vba as zt,Wba as fn,Xba as Jn,Yba as Rt,Zba as Xn,_ba as _t,aca as Xa,bca as Wn,cca as $t,dca as Kn,fca as Ft,g7 as j,h7 as Ea,hca as Ht,rba as Xt,sba as In,tba as Va,tca as ja,uba as zn,vba as Z,xba as B,yba as E,zba as en}from"./cli-0.1.9-86kws2c7.mjs";import{Gga as cn,Oga as Lt}from"./cli-0.1.9-v7ajk1nz.mjs";import{hna as J,ina as xa,lna as x}from"./cli-0.1.9-kbrf27z8.mjs";function Ma(n,a=$n){let e=Z().find((i)=>i.provider==="openai"&&i.extras?.githubToken!==void 0);if(e)return en(e.id,{provider:"openai",name:e.name,baseUrl:e.baseUrl,model:e.model||a,apiKey:n,extras:{...e.extras,githubToken:n}}),rn(e.id),{mode:"updated"};return E({provider:"openai",name:"GitHub Copilot",baseUrl:_a,model:a,apiKey:n,extras:{githubToken:n}},{makeActive:!0}),{mode:"created"}}function yt({onDone:n,onBack:a,onChangeAPIKey:e}){let i=lt()?.trim()?"already-authed":"menu",[h,d]=H.useState(i),[R,O]=H.useState(null),[w,l]=H.useState(null),g=H.useCallback(async(p,A=$n,L)=>{let P=ht(p,L);if(!P.success){O(P.warning??"Could not save token to secure storage."),d("error");return}Ma(p,A),e?.(),n("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[e,n]),k=H.useCallback(async()=>{d("device-busy"),O(null),l(null);try{let p=await ot();l({user_code:p.user_code,verification_uri:p.verification_uri}),await it(p.verification_uri);let A=await ct(p.device_code,{initialInterval:p.interval,timeoutSeconds:p.expires_in}),L=await ut(A);await g(L.token,$n,A)}catch(p){O(p instanceof Error?p.message:String(p)),d("error")}},[g]);if(h==="already-authed")return z.jsxDEV(b,{flexDirection:"column",gap:1,children:[z.jsxDEV(c,{bold:!0,children:"GitHub Copilot"},void 0,!1,void 0,this),z.jsxDEV(c,{children:"You are already signed in to GitHub Copilot."},void 0,!1,void 0,this),z.jsxDEV(c,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'},void 0,!1,void 0,this),z.jsxDEV(q,{options:[{label:"Sign in again",value:"sign-in-again"},{label:a?"Back to /provider menu":"Cancel",value:"back"}],onChange:(A)=>{if(A==="sign-in-again"){k();return}if(a){a();return}n("GitHub onboard cancelled",{display:"system"})}},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(h==="error"&&R)return z.jsxDEV(b,{flexDirection:"column",gap:1,children:[z.jsxDEV(c,{color:"red",children:R},void 0,!1,void 0,this),z.jsxDEV(q,{options:[{label:a?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(A)=>{if(A==="back"){if(a){a();return}d("menu"),O(null);return}n("GitHub onboard cancelled",{display:"system"})}},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(h==="device-busy")return z.jsxDEV(b,{flexDirection:"column",gap:1,children:[z.jsxDEV(c,{children:"GitHub Copilot sign-in"},void 0,!1,void 0,this),w?z.jsxDEV(z.Fragment,{children:[z.jsxDEV(c,{children:["Enter code ",z.jsxDEV(c,{bold:!0,children:w.user_code},void 0,!1,void 0,this)," at"," ",w.verification_uri]},void 0,!0,void 0,this),z.jsxDEV(c,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):z.jsxDEV(c,{dimColor:!0,children:"Requesting device code from GitHub..."},void 0,!1,void 0,this),z.jsxDEV(mt,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return z.jsxDEV(b,{flexDirection:"column",gap:1,children:[z.jsxDEV(c,{bold:!0,children:"GitHub Copilot setup"},void 0,!1,void 0,this),z.jsxDEV(c,{dimColor:!0,children:"Stores your token in the OS credential store (macOS Keychain when available) and creates a /provider profile so Copilot is the active provider — no manual env exports required."},void 0,!1,void 0,this),z.jsxDEV(q,{options:[{label:"Sign in with browser",value:"device"},{label:a?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(p)=>{if(p==="cancel"){if(a){a();return}n("GitHub onboard cancelled",{display:"system"});return}k()}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var H,z,$n="github:copilot",_a="https://api.githubcopilot.com";var Ct=x(()=>{za();Ra();st();pa();dt();rt();H=J(Fn(),1),z=J(wn(),1)});function gt(n){return[n.name,n.family??"",...n.families??[],n.parameterSize??"",n.quantizationLevel??""].join(" ").toLowerCase()}function on(n,a){return a.some((e)=>n.includes(e))}function Ta(n){return!on(gt(n),bt)}function Sa(n){return n.find(Ta)??null}function Gn(n){let e=`${n.parameterSize??""} ${n.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(e?.[1])return Number(e[1]);if(typeof n.sizeBytes==="number"&&n.sizeBytes>0)return Number((n.sizeBytes/1e9).toFixed(1));return null}function La(n){return(n.quantizationLevel??n.name).toLowerCase()}function $a(n,a,e){if(n===null)return e.push("unknown size"),0;if(a==="latency"){if(n<=4)return e.push("tiny model for low latency"),32;if(n<=8)return e.push("small model for fast responses"),26;if(n<=14)return e.push("mid-sized model with acceptable latency"),16;if(n<=24)return e.push("larger model may be slower"),8;return e.push("large model likely slower locally"),n<=40?0:-8}if(a==="coding"){if(n>=7&&n<=14)return e.push("strong coding size tier"),24;if(n>14&&n<=34)return e.push("large coding-capable size tier"),28;if(n>34)return e.push("very large model with higher quality potential"),18;return e.push("compact model may trade off coding depth"),12}if(n>=7&&n<=14)return e.push("great balanced size tier"),26;if(n>=3&&n<7)return e.push("compact balanced size tier"),18;if(n>14&&n<=24)return e.push("high quality balanced size tier"),20;if(n>24)return e.push("large model for quality-first usage"),10;return e.push("very small model for general usage"),8}function Fa(n,a,e){let i=La(n);if(i.includes("q4"))return e.push("efficient Q4 quantization"),a==="latency"?8:4;if(i.includes("q5"))return e.push("balanced Q5 quantization"),a==="latency"?6:5;if(i.includes("q8"))return e.push("higher quality Q8 quantization"),a==="latency"?2:5;return 0}function Ga(n,a,e){if(a.score!==n.score)return a.score-n.score;let i=Gn(n)??Number.POSITIVE_INFINITY,h=Gn(a)??Number.POSITIVE_INFINITY;if(e==="latency")return i-h;if(e==="coding")return h-i;let d=14;return Math.abs(i-d)-Math.abs(h-d)}function Yn(n,a){return n.map((e)=>{let i=gt(e),h=[],d=0;if(on(i,bt))d-=40,h.push("not a chat-first model");if(on(i,ka))d+=a==="coding"?24:a==="balanced"?10:4,h.push("coding-oriented model family");if(on(i,Na))d+=a==="latency"?4:a==="coding"?6:8,h.push("strong general-purpose model family");if(on(i,qa))d+=a==="latency"?2:6,h.push("chat/instruct tuned");if(i.includes("vision")||i.includes("vl"))d-=2,h.push("vision model adds extra overhead");d+=$a(Gn(e),a,h),d+=Fa(e,a,h);let R=h.slice(0,3).join(", ");return{...e,score:d,reasons:h,summary:R}}).sort((e,i)=>Ga(e,i,a))}function wt(n,a){return Sa(Yn(n,a))}var ka,Na,qa,bt;var ft=x(()=>{ka=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],Na=["llama","qwen","mistral","gemma","phi","deepseek"],qa=["instruct","chat","assistant"],bt=["embed","embedding","rerank","bge","whisper"]});function Qa(n){let a=n.toLowerCase();return Ya.some((e)=>a.includes(e))}function Qn(n){try{let a=new URL(n);if(a.username)a.username="redacted";if(a.password)a.password="redacted";for(let e of a.searchParams.keys())if(Qa(e))a.searchParams.set(e,"redacted");return a.toString()}catch{return n.replace(/\/\/[^/@\s]+(?::[^/@\s]*)?@/g,"//redacted@").replace(/([?&](?:token|access_token|refresh_token|api_key|apikey|key|password|passwd|pwd|auth|authorization|signature|sig|secret)=)[^&#]*/gi,"$1redacted")}}var Ya;var Ot=x(()=>{Ya=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function Za(n){let a=`http://localhost:${n.port}/auth/callback`,e=new URL(`${Hn}/oauth/authorize`);return e.searchParams.append("response_type","code"),e.searchParams.append("client_id",Jn()),e.searchParams.append("redirect_uri",a),e.searchParams.append("scope",pt),e.searchParams.append("code_challenge",n.codeChallenge),e.searchParams.append("code_challenge_method","S256"),e.searchParams.append("id_token_add_organizations","true"),e.searchParams.append("codex_cli_simplified_flow","true"),e.searchParams.append("state",n.state),e.searchParams.append("originator",zt),e.toString()}function Pa(){return`<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title>Codex Login Complete</title>
|
|
6
|
-
<style>
|
|
7
|
-
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
8
|
-
h1 { margin: 0 0 12px; font-size: 22px; }
|
|
9
|
-
p { margin: 0 0 10px; }
|
|
10
|
-
</style>
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<h1>Codex login complete</h1>
|
|
14
|
-
<p>You can return to Claudio now.</p>
|
|
15
|
-
<p>Claudio will finish activating your new Codex OAuth login.</p>
|
|
16
|
-
</body>
|
|
17
|
-
</html>`}function Ia(n){return`<!doctype html>
|
|
18
|
-
<html lang="en">
|
|
19
|
-
<head>
|
|
20
|
-
<meta charset="utf-8" />
|
|
21
|
-
<title>Codex Login Failed</title>
|
|
22
|
-
<style>
|
|
23
|
-
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
24
|
-
h1 { margin: 0 0 12px; font-size: 22px; color: #991b1b; }
|
|
25
|
-
p { margin: 0 0 10px; }
|
|
26
|
-
</style>
|
|
27
|
-
</head>
|
|
28
|
-
<body>
|
|
29
|
-
<h1>Codex login failed</h1>
|
|
30
|
-
<p>${_t(n)}</p>
|
|
31
|
-
<p>You can close this window and try again in Claudio.</p>
|
|
32
|
-
</body>
|
|
33
|
-
</html>`}function At(){return`<!doctype html>
|
|
34
|
-
<html lang="en">
|
|
35
|
-
<head>
|
|
36
|
-
<meta charset="utf-8" />
|
|
37
|
-
<title>Codex Login Cancelled</title>
|
|
38
|
-
<style>
|
|
39
|
-
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
40
|
-
h1 { margin: 0 0 12px; font-size: 22px; }
|
|
41
|
-
p { margin: 0 0 10px; }
|
|
42
|
-
</style>
|
|
43
|
-
</head>
|
|
44
|
-
<body>
|
|
45
|
-
<h1>Codex login cancelled</h1>
|
|
46
|
-
<p>You can close this window and retry in Claudio.</p>
|
|
47
|
-
</body>
|
|
48
|
-
</html>`}async function Ua(n){let a=`http://localhost:${n.port}/auth/callback`,e=new URLSearchParams({grant_type:"authorization_code",code:n.authorizationCode,redirect_uri:a,client_id:Jn(),code_verifier:n.codeVerifier}),i=await fetch(`${Hn}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:e,signal:n.signal?AbortSignal.any([n.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!i.ok){let l=await i.text().catch(()=>"");throw Error(l.trim()?`Codex OAuth token exchange failed (${i.status}): ${l.trim()}`:`Codex OAuth token exchange failed with status ${i.status}.`)}let h=await i.json(),d=fn(h.access_token),R=fn(h.refresh_token);if(!d||!R)throw Error("Codex OAuth completed, but the token response was missing credentials.");let O=fn(h.id_token);return{apiKey:O?await Mt(O).catch(()=>{return}):void 0,accessToken:d,refreshToken:R,idToken:O,accountId:Xn(O)??Xn(d)}}class Zn{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(n){let a=Nt(),e=Rt(),i=new kt("/auth/callback");this.authCodeListener=i,this.port=null;try{let h=await i.start(e);this.port=h;let d=Tt(),R=await qt(a),O=Za({port:h,codeChallenge:R,state:d});try{let w=await i.waitForAuthorization(d,async()=>{await n(O)}),l=new AbortController;this.tokenExchangeAbortController=l;let g;try{g=await Ua({authorizationCode:w,codeVerifier:a,port:h,signal:l.signal})}finally{if(this.tokenExchangeAbortController===l)this.tokenExchangeAbortController=null}if(this.authCodeListener!==i)throw this.buildCancellationError();return i.handleSuccessRedirect([],(k)=>{k.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),k.end(Pa())}),g}catch(w){let l=this.authCodeListener===i?w:this.buildCancellationError();if(i.hasPendingResponse()){let g=l instanceof Error&&l.message==="Codex OAuth flow was cancelled.";i.handleErrorRedirect((k)=>{k.writeHead(g?200:400,{"Content-Type":"text/html; charset=utf-8"}),k.end(g?At():Ia(l instanceof Error?l.message:String(l)))})}throw l}finally{this.cleanup()}}catch(h){let d=h instanceof Error?h.message:String(h);if(d.includes("EADDRINUSE")||d.includes(String(e)))throw Error(`Codex OAuth needs localhost:${e} for its callback. Close any app already using that port and try again.`);throw h}}cleanup(){let n=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(n),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((a)=>{a.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),a.end(At())});this.authCodeListener?.cancelPendingAuthorization(n),this.authCodeListener=null,this.port=null}}var St=x(()=>{Ha();Ja();Xa()});function Ka(){return new Zn}function Yt(n){let{onAuthenticated:a}=n,e=n.deps?.createOAuthService??Ka,i=n.deps?.openBrowser??Gt,h=n.deps?.saveCodexCredentials??$t,d=n.deps?.isBareMode??cn,[R,O]=On.useState({state:"starting"});return On.useEffect(()=>{if(d()){O({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let w=!1,l=e();return l.startOAuthFlow(async(g)=>{if(w)return;O({state:"waiting",authUrl:g,browserOpened:null});let k=await i(g);if(w)return;O({state:"waiting",authUrl:g,browserOpened:k})}).then(async(g)=>{if(w)return;await a(g,(v)=>{let p=h({apiKey:g.apiKey,accessToken:g.accessToken,refreshToken:g.refreshToken,idToken:g.idToken,accountId:g.accountId,profileId:v?.profileId});if(!p.success)throw Error(p.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((g)=>{if(w)return;O({state:"error",message:g instanceof Error?g.message:String(g)})}),()=>{w=!0,l.cleanup()}},[e,d,a,i,h]),R}var On;var Qt=x(()=>{St();Wa();Ft();Lt();On=J(Fn(),1)});function he(n){return{name:n.name,baseUrl:n.baseUrl,model:n.model,apiKey:n.apiKey??""}}function de(n){let a=zn(n);return{name:a.name,baseUrl:a.baseUrl,model:a.model,apiKey:a.apiKey??""}}function se(n){let a={};for(let e of n.split(/\r?\n/)){let i=e.trim();if(!i)continue;let h=i.indexOf(":");if(h<=0)continue;let d=i.slice(0,h).trim(),R=i.slice(h+1).trim();if(d&&R)a[d]=R}return a}function me(n){if(!n)return"";return Object.entries(n).map(([a,e])=>`${a}: ${e}`).join(`
|
|
49
|
-
`)}function ye(n,a){let e={},i=n.awsRegion?.trim();if(i)e.awsRegion=i;let h=n.gcpProject?.trim();if(h)e.gcpProject=h;let d=n.gcpRegion?.trim();if(d)e.gcpRegion=d;let R=n.azureResource?.trim();if(R)e.azureResource=R;let O=se(a);if(Object.keys(O).length>0)e.customHeaders=O;return Object.keys(e).length>0?e:void 0}function be(n,a){let e=a?" (active)":"",i=n.apiKey?"key set":"no key",h=n.provider==="anthropic"?"anthropic":"openai-compatible",d=Xt(n.model),R=d.length<=3?d.join(", "):`${d[0]}, ${d[1]} + ${d.length-2} more`;return`${h} · ${n.baseUrl} · ${R} · ${i}${e}`}function ge(n,a){if(n.state==="unreachable")return`Could not reach Atomic Chat at ${Qn(a)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(n.state==="no_models")return"Atomic Chat is running, but no models are loaded. Download and load a model inside the Atomic Chat app first, or enter details manually.";return""}function we(n,a){if(n.state==="unreachable")return`Could not reach Ollama at ${Qn(a)}. Start Ollama first, or enter the endpoint manually.`;if(n.state==="no_models")return"Ollama is running, but no installed models were found. Pull a chat model such as qwen2.5-coder:7b or llama3.1:8b first, or enter details manually.";if(n.state==="generation_failed"){let e=n.probeModel??"the selected model",i=n.detail?` Details: ${n.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${e}.${i} Run "ollama run ${e}" once and retry, or enter details manually.`}return""}function Pn(n,a){if(!a)return;return n.find((e)=>e.id===a)}function fe(n,a){return Boolean(n&&a&&n.id===a)}function Oe({onBack:n,onConfigured:a}){let e=y.useCallback(async(h,d)=>{await a(h,d)},[a]);D("confirm:no",n,[n]);let i=Yt({onAuthenticated:e});if(i.state==="error")return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"error",bold:!0,children:"Codex OAuth failed"},void 0,!1,void 0,this),t.jsxDEV(c,{children:i.message},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Press Enter or Esc to go back."},void 0,!1,void 0,this),t.jsxDEV(q,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:n,onCancel:n,visibleOptionCount:1},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Codex OAuth"},void 0,!1,void 0,this),t.jsxDEV(c,{children:"Sign in with your ChatGPT account in the browser. Claudio will store the resulting Codex credentials securely and switch this session to the new Codex login when setup completes."},void 0,!1,void 0,this),i.state==="starting"?t.jsxDEV(c,{dimColor:!0,children:"Starting local callback and preparing your browser..."},void 0,!1,void 0,this):i.browserOpened===!1?t.jsxDEV(t.Fragment,{children:[t.jsxDEV(c,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"},void 0,!1,void 0,this),t.jsxDEV(c,{children:i.authUrl},void 0,!1,void 0,this)]},void 0,!0,void 0,this):i.browserOpened===!0?t.jsxDEV(t.Fragment,{children:[t.jsxDEV(c,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."},void 0,!1,void 0,this),t.jsxDEV(c,{children:i.authUrl},void 0,!1,void 0,this)]},void 0,!0,void 0,this):t.jsxDEV(c,{dimColor:!0,children:"Opening your browser..."},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Press Esc to cancel and go back."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ir({mode:n,onDone:a}){let e=Wt(),[i,h]=y.useState([]),[d,R]=y.useState(),O=y.useRef(0),[w,l]=y.useState(n==="first-run"?"select-preset":"menu"),[g,k]=y.useState(null),[v,p]=y.useState("openai"),[A,L]=y.useState(()=>de("ollama")),[P,ln]=y.useState({}),[En,Rn]=y.useState(""),[Et,Vt]=y.useState(0),[jt,Bt]=y.useState(0),[_n,Vn]=y.useState(null),[I,nn]=y.useState(0),[U,Y]=y.useState(0),[Dt,Q]=y.useState(0),[jn,$]=y.useState(),[W,f]=y.useState(),[vt,na]=y.useState(),[Bn,hn]=y.useState(!1),[dn,tn]=y.useState(),[F,sn]=y.useState({state:"idle"}),[G,mn]=y.useState({state:"idle"}),[ta,aa]=y.useState(!0),[ea,yn]=y.useState(!1),Mn=y.useRef(!1),[kn,Nn]=y.useState(()=>un()),[Dn,ra]=y.useState(()=>Kt());y.useEffect(()=>{queueMicrotask(()=>{let r=Z(),o=B()?.id;h(r),R(o),aa(!1)})},[]);let K=V[U]??V[0],Cn=K.key,oa=A[Cn],qn=i.length>0,Tn=qn,vn=y.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...kn?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider",description:"Switch the active provider profile",disabled:!Tn},{value:"edit",label:"Edit provider",description:"Update URL, model, or key",disabled:!qn},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!Tn},...Bn?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[Tn,qn,Bn,kn]),Sn=y.useCallback(()=>{if(cn()){O.current+=1,hn(!1),tn(void 0);return}let r=++O.current;(async()=>{let o=await Wn();if(r!==O.current)return;hn(Boolean(o?.apiKey||o?.accessToken||o?.refreshToken||o?.idToken)),tn(o?.profileId)})()},[]);y.useEffect(()=>{return Sn(),()=>{O.current+=1}},[Sn]),y.useEffect(()=>{if(w!=="select-ollama-model")return;let r=!1;return sn({state:"loading"}),(async()=>{let o=await Pt({baseUrl:A.baseUrl});if(o.state!=="ready"){if(!r)sn({state:"unavailable",message:we(o,A.baseUrl)});return}let u=Yn(o.models,"balanced"),s=wt(o.models,"balanced");if(!r)sn({state:"ready",defaultValue:s?.name??u[0]?.name,options:u.map((m)=>({label:m.name,value:m.name,description:m.summary}))})})(),()=>{r=!0}},[A.baseUrl,w]),y.useEffect(()=>{if(w!=="select-atomic-chat-model")return;let r=!1;return mn({state:"loading"}),(async()=>{let o=await Zt({baseUrl:A.baseUrl});if(o.state!=="ready"){if(!r)mn({state:"unavailable",message:ge(o,A.baseUrl)});return}if(!r)mn({state:"ready",defaultValue:o.models[0],options:o.models.map((u)=>({label:u,value:u}))})})(),()=>{r=!0}},[A.baseUrl,w]);function S(){if(Mn.current)return;Mn.current=!0,queueMicrotask(()=>{let r=Z();h(r),R(B()?.id),Sn(),Mn.current=!1})}function an(){return null}function nt(r){if(r.activationWarning)return`${r.prefix}. Saved for next startup. Warning: ${r.warnings.join("; ")}.`;if(r.warnings.length>0)return`${r.prefix}. Claudio switched to it for this session with warnings: ${r.warnings.join("; ")}.`;return`${r.prefix}. Claudio switched to it for this session.`}async function tt(r){if(r?.accessToken&&r.accountId)return null;let o=await Wn();if(!o)return"stored Codex OAuth credentials could not be loaded";if(!o.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function at(){It()}async function ca(r){let o="provider";yn(!0),$("Activating provider...");try{await new Promise((X)=>queueMicrotask(X));let u=rn(r);if(!u){f("Could not change active provider."),yn(!1),M();return}let s=In(u.model);e((X)=>({...X,mainLoopModel:s,mainLoopModelForSession:null})),o=u.name;let m=an(),C=fe(u,dn),_=C?await tt():null;S();let T=C?nt({prefix:`Active provider: ${u.name}`,activationWarning:_,warnings:[_,m?`could not clear startup provider override (${m})`:null].filter((X)=>Boolean(X))}):m?`Active provider: ${u.name}. Warning: could not clear startup provider override (${m}).`:`Active provider: ${u.name}`;$(T),yn(!1),a({action:"activated",activeProfileId:u.id,activeProviderName:u.name,activeProviderModel:s,message:`Provider switched to ${u.name} (${s})`}),M()}catch(u){S(),$(void 0),yn(!1);let s=u instanceof Error?u.message:String(u);f(`Could not finish activating ${o}: ${s}`),M()}}function M(){na("done"),l("menu")}function bn(r){a({action:"cancelled",message:r})}function ia(r){let o=zn(r),u={name:o.name,baseUrl:o.baseUrl,model:o.model,apiKey:o.apiKey??""};if(k(null),p(o.provider??"openai"),L(u),ln({}),Rn(""),Vn(r),Y(0),nn(0),Q(u.name.length),f(void 0),r==="ollama"){sn({state:"loading"}),l("select-ollama-model");return}if(r==="atomic-chat"){mn({state:"loading"}),l("select-atomic-chat-model");return}if(r==="anthropic"){l("anthropic-auth-choice");return}if(r==="bedrock"||r==="vertex"||r==="foundry"){l("cloud-extras");return}l("form")}function ua(r){let o=i.find((s)=>s.id===r);if(!o)return;let u=he(o);k(r),p(o.provider??"openai"),L(u),ln({awsRegion:o.extras?.awsRegion,gcpProject:o.extras?.gcpProject,gcpRegion:o.extras?.gcpRegion,azureResource:o.extras?.azureResource}),Rn(me(o.extras?.customHeaders)),Vn(null),Y(0),nn(0),Q(u.name.length),f(void 0),l("form")}function gn(r=A){let o=ye(P,En),u={provider:v,name:r.name,baseUrl:r.baseUrl,model:r.model,apiKey:r.apiKey,extras:o},s=g?en(g,u):E(u,{makeActive:!0});if(!s){f("Could not save provider. Fill all required fields.");return}let m=B()?.id===s.id;if(m)e((T)=>({...T,mainLoopModel:In(s.model),mainLoopModelForSession:null}));let C=m?an():null;S();let _=g?`Updated provider: ${s.name}`:`Added provider: ${s.name} (now active)`;if($(C?`${_}. Warning: could not clear startup provider override (${C}).`:_),n==="first-run"){a({action:"saved",activeProfileId:s.id,message:`Provider configured: ${s.name}`});return}k(null),Y(0),f(void 0),M()}function la(){if(G.state==="loading"||G.state==="idle")return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Checking Atomic Chat"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(G.state==="unavailable")return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Atomic Chat setup"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:G.message},void 0,!1,void 0,this),t.jsxDEV(q,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(r)=>{if(r==="manual"){Y(0),Q(A.name.length),l("form");return}l("select-preset")},onCancel:()=>l("select-preset"),visibleOptionCount:2},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."},void 0,!1,void 0,this),t.jsxDEV(q,{options:G.options,defaultValue:G.defaultValue,defaultFocusValue:G.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,G.options.length),onChange:(r)=>{let o={...A,model:r};L(o),gn(o)},onCancel:()=>l("select-preset")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ha(){if(F.state==="loading"||F.state==="idle")return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Checking Ollama"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Looking for installed Ollama models..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(F.state==="unavailable")return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Ollama setup"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:F.message},void 0,!1,void 0,this),t.jsxDEV(q,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(r)=>{if(r==="manual"){Y(0),Q(A.name.length),l("form");return}l("select-preset")},onCancel:()=>l("select-preset"),visibleOptionCount:2},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Choose an Ollama model"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."},void 0,!1,void 0,this),t.jsxDEV(q,{options:F.options,defaultValue:F.defaultValue,defaultFocusValue:F.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,F.options.length),onChange:(r)=>{let o={...A,model:r};L(o),gn(o)},onCancel:()=>l("select-preset")},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function da(r){let o=r.trim();if(!K.optional&&o.length===0){f(`${K.label} is required.`);return}let u={...A,[Cn]:o};if(L(u),f(void 0),U<V.length-1){let s=U+1,m=V[s]?.key??"name";Y(s),Q(u[m].length);return}if((_n==="anthropic"||_n==="custom")&&w==="form"){L(u),l("custom-headers");return}gn(u)}function sa(){if(f(void 0),U>0){let r=U-1,o=V[r]?.key??"name";Y(r),Q(A[o].length);return}if(n==="first-run"){l("select-preset");return}M()}D("confirm:no",sa,{context:"Settings",isActive:w==="form"});function ma(){if(f(void 0),I>0){nn(I-1);return}l("select-preset")}D("confirm:no",ma,{context:"Settings",isActive:w==="cloud-extras"}),D("confirm:no",()=>l("form"),{context:"Settings",isActive:w==="custom-headers"}),D("confirm:no",()=>l("select-preset"),{context:"Settings",isActive:w==="anthropic-auth-choice"||w==="anthropic-oauth"});function ya(){let r=!cn(),o=[...kn?[{value:"import-legacy",label:"Import from Claude Code",description:"Reuse ~/.claude/ tokens, settings, theme, MCP, skills, agents, plugins."}]:[],{value:"dashscope-intl",label:"Alibaba Coding Plan",description:"Alibaba DashScope International endpoint"},{value:"dashscope-cn",label:"Alibaba Coding Plan (China)",description:"Alibaba DashScope China endpoint"},{value:"anthropic",label:"Anthropic",description:"Native Claude API (x-api-key auth)"},{value:"atomic-chat",label:"Atomic Chat",description:"Local Model Provider"},{value:"azure-openai",label:"Azure OpenAI",description:"Azure OpenAI endpoint (model=deployment name)"},{value:"foundry",label:"Azure AI Foundry",description:"Anthropic models hosted on Azure AI Foundry (resource-scoped)"},{value:"bedrock",label:"AWS Bedrock",description:"Anthropic models on AWS Bedrock (region-scoped, AWS creds)"},{value:"bankr",label:"Bankr",description:"Bankr LLM Gateway (OpenAI-compatible)"},...r?[{value:"codex-oauth",label:"Codex OAuth",description:"Sign in with ChatGPT in your browser and store Codex credentials securely"}]:[],{value:"github-onboard",label:"GitHub Copilot",description:"Sign in with GitHub in your browser to use Copilot models"},{value:"deepseek",label:"DeepSeek",description:"DeepSeek OpenAI-compatible endpoint"},{value:"gemini",label:"Google Gemini",description:"Gemini OpenAI-compatible endpoint"},{value:"vertex",label:"Google Vertex AI",description:"Anthropic models on Vertex AI (project + region, ADC)"},{value:"groq",label:"Groq",description:"Groq OpenAI-compatible endpoint"},{value:"lmstudio",label:"LM Studio",description:"Local LM Studio endpoint"},{value:"minimax",label:"MiniMax",description:"MiniMax API endpoint"},{value:"mistral",label:"Mistral",description:"Mistral OpenAI-compatible endpoint"},{value:"moonshotai",label:"Moonshot AI - API",description:"Moonshot AI - API endpoint"},{value:"kimi-code",label:"Moonshot AI - Kimi Code",description:"Moonshot AI - Kimi Code Subscription endpoint"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM endpoint"},{value:"ollama",label:"Ollama",description:"Local or remote Ollama endpoint"},{value:"openai",label:"OpenAI",description:"OpenAI API with API key"},{value:"openrouter",label:"OpenRouter",description:"OpenRouter OpenAI-compatible endpoint"},{value:"together",label:"Together AI",description:"Together chat/completions endpoint"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...n==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:n==="first-run"?"Set up provider":"Choose provider preset"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."},void 0,!1,void 0,this),t.jsxDEV(q,{options:o,onChange:(u)=>{if(u==="skip"){bn("Provider setup skipped");return}if(u==="codex-oauth"){l("codex-oauth");return}if(u==="github-onboard"){l("github-onboard");return}if(u==="import-legacy"){(async()=>{let s=await xn({force:!0});Nn(un()),S();let m=pn(s);if(s.errors.length>0){f(m);return}let C=B();if(n==="first-run"&&C){a({action:"saved",activeProfileId:C.id,activeProviderName:C.name,activeProviderModel:C.model,message:m});return}if($(m),f(void 0),n==="manage")M()})();return}ia(u)},onCancel:()=>{if(n==="first-run"){bn("Provider setup skipped");return}M()},visibleOptionCount:Math.min(13,o.length)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Ca(){return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Anthropic — choose authentication"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."},void 0,!1,void 0,this),t.jsxDEV(q,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Claude, and store tokens in ~/.claudio/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste an x-api-key value (sk-ant-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(r)=>{if(r==="oauth"){l("anthropic-oauth");return}if(r==="apiKey"){l("form");return}l("select-preset")},onCancel:()=>l("select-preset"),visibleOptionCount:3},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ba(){let r=(ee(),xa(ae)).ConsoleOAuthFlow;return t.jsxDEV(b,{flexDirection:"column",gap:1,children:t.jsxDEV(r,{mode:"login",onDone:()=>{let o=zn("anthropic"),u={provider:"anthropic",name:o.name,baseUrl:o.baseUrl,model:o.model},s=E(u,{makeActive:!0});if(!s){f("OAuth completed, but the Anthropic profile could not be saved."),l("select-preset");return}let m=`Anthropic OAuth configured: ${s.name}`;if(S(),n==="first-run"){a({action:"saved",activeProfileId:s.id,message:m});return}$(m),f(void 0),M()}},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function ga(){let r=_n;if(r!=="bedrock"&&r!=="vertex"&&r!=="foundry")return null;let o=Ce[r],u=o[I]??o[0],s=P[u.key]??"";function m(C){let _=C.trim();if(_.length===0){f(`${u.label} is required.`);return}let T={...P,[u.key]:_};if(ln(T),f(void 0),I<o.length-1){nn(I+1);return}nn(0),l("form")}return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:`${r==="bedrock"?"AWS Bedrock":r==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:u.helpText},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:["Step ",I+1," of ",o.length,": ",u.label]},void 0,!0,void 0,this),t.jsxDEV(b,{flexDirection:"row",gap:1,children:[t.jsxDEV(c,{children:j.pointer},void 0,!1,void 0,this),t.jsxDEV(An,{value:s,onChange:(C)=>ln((_)=>({..._,[u.key]:C})),onSubmit:m,focus:!0,showCursor:!0,placeholder:`${u.placeholder}${j.ellipsis}`,columns:80,cursorOffset:Et,onChangeCursorOffset:Vt},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W&&t.jsxDEV(c,{color:"error",children:W},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function wa(){return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Custom headers (optional)"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",t.jsxDEV(c,{children:"Header: Value"},void 0,!1,void 0,this),". Leave empty to skip."]},void 0,!0,void 0,this),t.jsxDEV(b,{flexDirection:"row",gap:1,children:[t.jsxDEV(c,{children:j.pointer},void 0,!1,void 0,this),t.jsxDEV(An,{value:En,onChange:Rn,onSubmit:()=>gn(A),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:jt,onChangeCursorOffset:Bt},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W&&t.jsxDEV(c,{color:"error",children:W},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function fa(){return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:g?"Edit provider profile":"Create provider profile"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:K.helpText},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:["Provider type:"," ",v==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]},void 0,!0,void 0,this),t.jsxDEV(c,{dimColor:!0,children:["Step ",U+1," of ",V.length,": ",K.label]},void 0,!0,void 0,this),t.jsxDEV(b,{flexDirection:"row",gap:1,children:[t.jsxDEV(c,{children:j.pointer},void 0,!1,void 0,this),t.jsxDEV(An,{value:oa,onChange:(r)=>L((o)=>({...o,[Cn]:r})),onSubmit:da,focus:!0,showCursor:!0,placeholder:`${K.placeholder}${j.ellipsis}`,mask:Cn==="apiKey"?"*":void 0,columns:80,cursorOffset:Dt,onChangeCursorOffset:Q},void 0,!1,void 0,this)]},void 0,!0,void 0,this),W&&t.jsxDEV(c,{color:"error",children:W},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Oa(){let r=i.length>0,o=r;return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Provider manager"},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."},void 0,!1,void 0,this),jn&&t.jsxDEV(c,{children:jn},void 0,!1,void 0,this),t.jsxDEV(b,{flexDirection:"column",children:i.length===0?t.jsxDEV(c,{dimColor:!0,children:"No provider profiles configured yet."},void 0,!1,void 0,this):i.map((u)=>t.jsxDEV(c,{dimColor:!0,children:["- ",u.name,": ",be(u,u.id===d)]},u.id,!0,void 0,this))},void 0,!1,void 0,this),t.jsxDEV(q,{options:vn,onChange:(u)=>{switch(f(void 0),u){case"add":l("select-preset");break;case"import-legacy":{(async()=>{let s=await xn({force:!0});if(Nn(un()),S(),s.errors.length>0)f(pn(s));else $(pn(s))})();break}case"activate":if(o)l("select-active");break;case"edit":if(r)l("select-edit");break;case"delete":if(o)l("select-delete");break;case"logout-codex-oauth":{let s=Kn();if(!s.success){f(s.warning??"Could not clear Codex OAuth credentials.");break}hn(!1),tn(void 0);let m=Pn(Z(),dn),C=null;if(m){let _=Un(m.id);if(!_.removed){f("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),S();break}at(),C=_.activeProfileId?an():null}S(),$(C?`Codex OAuth logged out. Warning: could not clear startup provider override (${C}).`:"Codex OAuth logged out.");break}default:bn("Provider manager closed");break}},onCancel:()=>bn("Provider manager closed"),defaultFocusValue:vt,visibleOptionCount:vn.length},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Ln(r,o,u){let s=i.map((m)=>({value:m.id,label:m.id===d?`${m.name} (active)`:m.name,description:`${m.provider==="anthropic"?"anthropic":"openai-compatible"} · ${m.baseUrl} · ${m.model}`}));if(s.length===0)return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:r},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:o},void 0,!1,void 0,this),t.jsxDEV(q,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>M(),onCancel:()=>M(),visibleOptionCount:1},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:r},void 0,!1,void 0,this),t.jsxDEV(q,{options:s,onChange:u,onCancel:()=>M(),visibleOptionCount:Math.min(10,Math.max(2,s.length))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}let N;switch(w){case"select-preset":N=ya();break;case"select-ollama-model":N=ha();break;case"select-atomic-chat-model":N=la();break;case"codex-oauth":N=t.jsxDEV(Oe,{onBack:()=>l("select-preset"),onConfigured:async(r,o)=>{let u={provider:"openai",name:ue,baseUrl:Ht,model:le,apiKey:""},s=Pn(Z(),dn),m=s?en(s.id,u):E(u,{makeActive:!0});if(!m){f("Codex OAuth login finished, but the provider profile could not be saved."),M();return}let C=s&&d!==m.id?rn(m.id):m;if(!C){f("Codex OAuth login finished, but the provider could not be set as the startup provider."),M();return}o({profileId:m.id});let _=an(),T=await tt(r);hn(!0),tn(m.id),S();let X=[T,_?`could not clear startup provider override (${_})`:null].filter((Aa)=>Boolean(Aa)),et=nt({prefix:"Codex OAuth configured",activationWarning:T,warnings:X});if(n==="first-run"){a({action:"saved",activeProfileId:C.id,message:et});return}$(et),f(void 0),M()}},void 0,!1,void 0,this);break;case"github-onboard":N=t.jsxDEV(yt,{onDone:(r)=>{if(r)$(r),f(void 0);S(),M()},onBack:()=>l("select-preset"),onChangeAPIKey:S},void 0,!1,void 0,this);break;case"anthropic-auth-choice":N=Ca();break;case"anthropic-oauth":N=ba();break;case"cloud-extras":N=ga();break;case"custom-headers":N=wa();break;case"form":N=fa();break;case"select-active":N=Ln("Set active provider","No providers available. Add one first.",(r)=>{ca(r)});break;case"select-edit":N=Ln("Edit provider","No providers available. Add one first.",(r)=>{ua(r)});break;case"select-delete":N=Ln("Delete provider","No providers available. Add one first.",(r)=>{let o=i.find((C)=>C.id===r),u=o?.provider==="openai"&&o?.extras?.githubToken!==void 0,s=Pn(i,dn)?.id===r,m=Un(r);if(!m.removed)f("Could not delete provider.");else{let C=[];if(s){let T=Kn();if(!T.success)C.push(T.warning??"could not clear Codex OAuth credentials");else tn(void 0);at()}if(u){let T=Jt();if(!T.success)C.push(T.warning??"could not clear GitHub Copilot token")}let _=m.activeProfileId?an():null;if(_)C.push(`could not clear startup provider override (${_})`);S(),$(C.length>0?`Provider deleted. Warning: ${C.join("; ")}.`:"Provider deleted")}M()});break;case"menu":default:N=Oa();break}return t.jsxDEV(Ut,{color:"permission",children:[t.jsxDEV(xt,{enabled:Dn,onDismiss:(r)=>{Nn(un()),ra(!1),S();let o=B();if(r==="migrated"&&n==="first-run"&&o)a({action:"saved",activeProfileId:o.id,activeProviderName:o.name,activeProviderModel:o.model})}},void 0,!1,void 0,this),Dn?null:ta?t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Loading providers..."},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Reading provider profiles from disk."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):ea?t.jsxDEV(b,{flexDirection:"column",gap:1,children:[t.jsxDEV(c,{color:"remember",bold:!0,children:"Activating provider..."},void 0,!1,void 0,this),t.jsxDEV(c,{dimColor:!0,children:"Please wait while the provider is being configured."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):N]},void 0,!0,void 0,this)}var y,t,V,ue="Codex OAuth",le="codexplan",Ce;var Ae=x(()=>{Ea();Ct();ja();st();Da();re();Ft();Lt();Va();va();rt();dt();Ba();ft();Ot();te();ne();ie();oe();Qt();ce();y=J(Fn(),1),t=J(wn(),1),V=[{key:"name",label:"Provider name",placeholder:"e.g. Ollama Home, OpenAI Work",helpText:"A short label shown in /provider and startup setup."},{key:"baseUrl",label:"Base URL",placeholder:"e.g. http://localhost:11434/v1",helpText:"API base URL used for this provider profile."},{key:"model",label:"Default model",placeholder:"e.g. llama3.1:8b or glm-4.7; glm-4.7-flash",helpText:'Model name(s) to use. Separate multiple with ";" or ","; first is default.'},{key:"apiKey",label:"API key",placeholder:"Leave empty if your provider does not require one",helpText:"Optional. Press Enter with empty value to skip.",optional:!0}];Ce={bedrock:[{key:"awsRegion",label:"AWS region",placeholder:"e.g. us-east-1",helpText:"Region of your Bedrock-enabled AWS account. Credentials are picked up from the AWS SDK chain."}],vertex:[{key:"gcpProject",label:"GCP project ID",placeholder:"e.g. my-project-123456",helpText:"Google Cloud project where Vertex AI is enabled. Credentials are picked up from ADC."},{key:"gcpRegion",label:"GCP region",placeholder:"e.g. us-central1",helpText:"Vertex AI region for the model."}],foundry:[{key:"azureResource",label:"Azure resource",placeholder:"e.g. my-foundry-resource",helpText:"Name of your Azure AI Foundry resource. Credentials are picked up from DefaultAzureCredential."}]}});
|
|
50
|
-
export{Qn as Nb,Ot as Ob,se as Pb,ir as Qb,Ae as Rb};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Vca as d,Wca as f,Yca as z,Zca as Q,_ca as l,ada as I,bda as x,cda as w,dda as X,eda as G,fda as h,gda as q,hda as B,ida as Y,jda as D,kda as H,lda as a,mda as S,rda as Of}from"./cli-0.1.9-0dtdhejj.mjs";import{lna as R}from"./cli-0.1.9-kbrf27z8.mjs";var Pf="2025-11-25",Fy,Tf="io.modelcontextprotocol/related-task",M="2.0",K,o,r,by,kf,Uf,g,Z,J,jy=(y)=>J.safeParse(y).success,V,_,$,W,p,e,Jy=(y)=>e.safeParse(y).success,ff,Ny=(y)=>ff.safeParse(y).success,n,Oy=(y)=>n.safeParse(y).success,U,m,Py=(y)=>m.safeParse(y).success,wf,Ty,yf,Lf,Df,Mf,N,F,xf,pf,Rf,hf,qf,Sf,gf,nf,mf,cf,zf,ky=(y)=>zf.safeParse(y).success,Bf,vf,tf,Gf,Ef,O,P,Cf,T,Hf,uf,If,Kf,Qf,Vf,Uy,Wf,Xf,Yf,Ly,Zf,_f,c,$f,k,b,Af,sf,df,lf,af,of,i,rf,ef,fw,ww,yw,Dw,xw,zw,Bw,Gw,Hw,Iw,Kw,Qw,Vw,Ww,v,t,E,Xw,Yw,Zw,C,_w,$w,Aw,Fw,bw,Ff,jw,Jw,bf,My,Nw,Ow,Pw,py,jf,Tw,kw,Uw,Lw,Mw,pw,Rw,hw,qw,L,Sw,gw,nw,mw,cw,iw,vw,tw,Ew,Cw,uw,sw,dw,lw,aw,ow,rw,ew,fy,wy,yy,Dy,xy,zy,By,Gy,Hy,Iy,Ky,Qy,Vy,Wy,Xy,Ry,hy,qy,Sy,gy,ny,u,Jf;var Nf=R(()=>{Of();Fy=[Pf,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],K=a((y)=>y!==null&&(typeof y==="object"||typeof y==="function")),o=G([f(),z().int()]),r=f(),by=X({ttl:z().optional(),pollInterval:z().optional()}),kf=w({ttl:z().optional()}),Uf=w({taskId:f()}),g=X({progressToken:o.optional(),[Tf]:Uf.optional()}),Z=w({_meta:g.optional()}),J=Z.extend({task:kf.optional()}),V=w({method:f(),params:Z.loose().optional()}),_=w({_meta:g.optional()}),$=w({method:f(),params:_.loose().optional()}),W=X({_meta:g.optional()}),p=G([f(),z().int()]),e=w({jsonrpc:D(M),id:p,...V.shape}).strict(),ff=w({jsonrpc:D(M),...$.shape}).strict(),n=w({jsonrpc:D(M),id:p,result:W}).strict();(function(y){y[y.ConnectionClosed=-32000]="ConnectionClosed",y[y.RequestTimeout=-32001]="RequestTimeout",y[y.ParseError=-32700]="ParseError",y[y.InvalidRequest=-32600]="InvalidRequest",y[y.MethodNotFound=-32601]="MethodNotFound",y[y.InvalidParams=-32602]="InvalidParams",y[y.InternalError=-32603]="InternalError",y[y.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(U||(U={}));m=w({jsonrpc:D(M),id:p.optional(),error:w({code:z().int(),message:f(),data:I().optional()})}).strict(),wf=G([e,ff,n,m]),Ty=G([n,m]),yf=W.strict(),Lf=_.extend({requestId:p.optional(),reason:f().optional()}),Df=$.extend({method:D("notifications/cancelled"),params:Lf}),Mf=w({src:f(),mimeType:f().optional(),sizes:x(f()).optional(),theme:Y(["light","dark"]).optional()}),N=w({icons:x(Mf).optional()}),F=w({name:f(),title:f().optional()}),xf=F.extend({...F.shape,...N.shape,version:f(),websiteUrl:f().optional(),description:f().optional()}),pf=q(w({applyDefaults:Q().optional()}),B(f(),I())),Rf=S((y)=>{if(y&&typeof y==="object"&&!Array.isArray(y)){if(Object.keys(y).length===0)return{form:{}}}return y},q(w({form:pf.optional(),url:K.optional()}),B(f(),I()).optional())),hf=X({list:K.optional(),cancel:K.optional(),requests:X({sampling:X({createMessage:K.optional()}).optional(),elicitation:X({create:K.optional()}).optional()}).optional()}),qf=X({list:K.optional(),cancel:K.optional(),requests:X({tools:X({call:K.optional()}).optional()}).optional()}),Sf=w({experimental:B(f(),K).optional(),sampling:w({context:K.optional(),tools:K.optional()}).optional(),elicitation:Rf.optional(),roots:w({listChanged:Q().optional()}).optional(),tasks:hf.optional(),extensions:B(f(),K).optional()}),gf=Z.extend({protocolVersion:f(),capabilities:Sf,clientInfo:xf}),nf=V.extend({method:D("initialize"),params:gf}),mf=w({experimental:B(f(),K).optional(),logging:K.optional(),completions:K.optional(),prompts:w({listChanged:Q().optional()}).optional(),resources:w({subscribe:Q().optional(),listChanged:Q().optional()}).optional(),tools:w({listChanged:Q().optional()}).optional(),tasks:qf.optional(),extensions:B(f(),K).optional()}),cf=W.extend({protocolVersion:f(),capabilities:mf,serverInfo:xf,instructions:f().optional()}),zf=$.extend({method:D("notifications/initialized"),params:_.optional()}),Bf=V.extend({method:D("ping"),params:Z.optional()}),vf=w({progress:z(),total:H(z()),message:H(f())}),tf=w({..._.shape,...vf.shape,progressToken:o}),Gf=$.extend({method:D("notifications/progress"),params:tf}),Ef=Z.extend({cursor:r.optional()}),O=V.extend({params:Ef.optional()}),P=W.extend({nextCursor:r.optional()}),Cf=Y(["working","input_required","completed","failed","cancelled"]),T=w({taskId:f(),status:Cf,ttl:G([z(),l()]),createdAt:f(),lastUpdatedAt:f(),pollInterval:H(z()),statusMessage:H(f())}),Hf=W.extend({task:T}),uf=_.merge(T),If=$.extend({method:D("notifications/tasks/status"),params:uf}),Kf=V.extend({method:D("tasks/get"),params:Z.extend({taskId:f()})}),Qf=W.merge(T),Vf=V.extend({method:D("tasks/result"),params:Z.extend({taskId:f()})}),Uy=W.loose(),Wf=O.extend({method:D("tasks/list")}),Xf=P.extend({tasks:x(T)}),Yf=V.extend({method:D("tasks/cancel"),params:Z.extend({taskId:f()})}),Ly=W.merge(T),Zf=w({uri:f(),mimeType:H(f()),_meta:B(f(),I()).optional()}),_f=Zf.extend({text:f()}),c=f().refine((y)=>{try{return atob(y),!0}catch{return!1}},{message:"Invalid Base64 string"}),$f=Zf.extend({blob:c}),k=Y(["user","assistant"]),b=w({audience:x(k).optional(),priority:z().min(0).max(1).optional(),lastModified:d.datetime({offset:!0}).optional()}),Af=w({...F.shape,...N.shape,uri:f(),description:H(f()),mimeType:H(f()),size:H(z()),annotations:b.optional(),_meta:H(X({}))}),sf=w({...F.shape,...N.shape,uriTemplate:f(),description:H(f()),mimeType:H(f()),annotations:b.optional(),_meta:H(X({}))}),df=O.extend({method:D("resources/list")}),lf=P.extend({resources:x(Af)}),af=O.extend({method:D("resources/templates/list")}),of=P.extend({resourceTemplates:x(sf)}),i=Z.extend({uri:f()}),rf=i,ef=V.extend({method:D("resources/read"),params:rf}),fw=W.extend({contents:x(G([_f,$f]))}),ww=$.extend({method:D("notifications/resources/list_changed"),params:_.optional()}),yw=i,Dw=V.extend({method:D("resources/subscribe"),params:yw}),xw=i,zw=V.extend({method:D("resources/unsubscribe"),params:xw}),Bw=_.extend({uri:f()}),Gw=$.extend({method:D("notifications/resources/updated"),params:Bw}),Hw=w({name:f(),description:H(f()),required:H(Q())}),Iw=w({...F.shape,...N.shape,description:H(f()),arguments:H(x(Hw)),_meta:H(X({}))}),Kw=O.extend({method:D("prompts/list")}),Qw=P.extend({prompts:x(Iw)}),Vw=Z.extend({name:f(),arguments:B(f(),f()).optional()}),Ww=V.extend({method:D("prompts/get"),params:Vw}),v=w({type:D("text"),text:f(),annotations:b.optional(),_meta:B(f(),I()).optional()}),t=w({type:D("image"),data:c,mimeType:f(),annotations:b.optional(),_meta:B(f(),I()).optional()}),E=w({type:D("audio"),data:c,mimeType:f(),annotations:b.optional(),_meta:B(f(),I()).optional()}),Xw=w({type:D("tool_use"),name:f(),id:f(),input:B(f(),I()),_meta:B(f(),I()).optional()}),Yw=w({type:D("resource"),resource:G([_f,$f]),annotations:b.optional(),_meta:B(f(),I()).optional()}),Zw=Af.extend({type:D("resource_link")}),C=G([v,t,E,Zw,Yw]),_w=w({role:k,content:C}),$w=W.extend({description:f().optional(),messages:x(_w)}),Aw=$.extend({method:D("notifications/prompts/list_changed"),params:_.optional()}),Fw=w({title:f().optional(),readOnlyHint:Q().optional(),destructiveHint:Q().optional(),idempotentHint:Q().optional(),openWorldHint:Q().optional()}),bw=w({taskSupport:Y(["required","optional","forbidden"]).optional()}),Ff=w({...F.shape,...N.shape,description:f().optional(),inputSchema:w({type:D("object"),properties:B(f(),K).optional(),required:x(f()).optional()}).catchall(I()),outputSchema:w({type:D("object"),properties:B(f(),K).optional(),required:x(f()).optional()}).catchall(I()).optional(),annotations:Fw.optional(),execution:bw.optional(),_meta:B(f(),I()).optional()}),jw=O.extend({method:D("tools/list")}),Jw=P.extend({tools:x(Ff)}),bf=W.extend({content:x(C).default([]),structuredContent:B(f(),I()).optional(),isError:Q().optional()}),My=bf.or(W.extend({toolResult:I()})),Nw=J.extend({name:f(),arguments:B(f(),I()).optional()}),Ow=V.extend({method:D("tools/call"),params:Nw}),Pw=$.extend({method:D("notifications/tools/list_changed"),params:_.optional()}),py=w({autoRefresh:Q().default(!0),debounceMs:z().int().nonnegative().default(300)}),jf=Y(["debug","info","notice","warning","error","critical","alert","emergency"]),Tw=Z.extend({level:jf}),kw=V.extend({method:D("logging/setLevel"),params:Tw}),Uw=_.extend({level:jf,logger:f().optional(),data:I()}),Lw=$.extend({method:D("notifications/message"),params:Uw}),Mw=w({name:f().optional()}),pw=w({hints:x(Mw).optional(),costPriority:z().min(0).max(1).optional(),speedPriority:z().min(0).max(1).optional(),intelligencePriority:z().min(0).max(1).optional()}),Rw=w({mode:Y(["auto","required","none"]).optional()}),hw=w({type:D("tool_result"),toolUseId:f().describe("The unique identifier for the corresponding tool call."),content:x(C).default([]),structuredContent:w({}).loose().optional(),isError:Q().optional(),_meta:B(f(),I()).optional()}),qw=h("type",[v,t,E]),L=h("type",[v,t,E,Xw,hw]),Sw=w({role:k,content:G([L,x(L)]),_meta:B(f(),I()).optional()}),gw=J.extend({messages:x(Sw),modelPreferences:pw.optional(),systemPrompt:f().optional(),includeContext:Y(["none","thisServer","allServers"]).optional(),temperature:z().optional(),maxTokens:z().int(),stopSequences:x(f()).optional(),metadata:K.optional(),tools:x(Ff).optional(),toolChoice:Rw.optional()}),nw=V.extend({method:D("sampling/createMessage"),params:gw}),mw=W.extend({model:f(),stopReason:H(Y(["endTurn","stopSequence","maxTokens"]).or(f())),role:k,content:qw}),cw=W.extend({model:f(),stopReason:H(Y(["endTurn","stopSequence","maxTokens","toolUse"]).or(f())),role:k,content:G([L,x(L)])}),iw=w({type:D("boolean"),title:f().optional(),description:f().optional(),default:Q().optional()}),vw=w({type:D("string"),title:f().optional(),description:f().optional(),minLength:z().optional(),maxLength:z().optional(),format:Y(["email","uri","date","date-time"]).optional(),default:f().optional()}),tw=w({type:Y(["number","integer"]),title:f().optional(),description:f().optional(),minimum:z().optional(),maximum:z().optional(),default:z().optional()}),Ew=w({type:D("string"),title:f().optional(),description:f().optional(),enum:x(f()),default:f().optional()}),Cw=w({type:D("string"),title:f().optional(),description:f().optional(),oneOf:x(w({const:f(),title:f()})),default:f().optional()}),uw=w({type:D("string"),title:f().optional(),description:f().optional(),enum:x(f()),enumNames:x(f()).optional(),default:f().optional()}),sw=G([Ew,Cw]),dw=w({type:D("array"),title:f().optional(),description:f().optional(),minItems:z().optional(),maxItems:z().optional(),items:w({type:D("string"),enum:x(f())}),default:x(f()).optional()}),lw=w({type:D("array"),title:f().optional(),description:f().optional(),minItems:z().optional(),maxItems:z().optional(),items:w({anyOf:x(w({const:f(),title:f()}))}),default:x(f()).optional()}),aw=G([dw,lw]),ow=G([uw,sw,aw]),rw=G([ow,iw,vw,tw]),ew=J.extend({mode:D("form").optional(),message:f(),requestedSchema:w({type:D("object"),properties:B(f(),rw),required:x(f()).optional()})}),fy=J.extend({mode:D("url"),message:f(),elicitationId:f(),url:f().url()}),wy=G([ew,fy]),yy=V.extend({method:D("elicitation/create"),params:wy}),Dy=_.extend({elicitationId:f()}),xy=$.extend({method:D("notifications/elicitation/complete"),params:Dy}),zy=W.extend({action:Y(["accept","decline","cancel"]),content:S((y)=>y===null?void 0:y,B(f(),G([f(),z(),Q(),x(f())])).optional())}),By=w({type:D("ref/resource"),uri:f()}),Gy=w({type:D("ref/prompt"),name:f()}),Hy=Z.extend({ref:G([Gy,By]),argument:w({name:f(),value:f()}),context:w({arguments:B(f(),f()).optional()}).optional()}),Iy=V.extend({method:D("completion/complete"),params:Hy}),Ky=W.extend({completion:X({values:x(f()).max(100),total:H(z().int()),hasMore:H(Q())})}),Qy=w({uri:f().startsWith("file://"),name:f().optional(),_meta:B(f(),I()).optional()}),Vy=V.extend({method:D("roots/list"),params:Z.optional()}),Wy=W.extend({roots:x(Qy)}),Xy=$.extend({method:D("notifications/roots/list_changed"),params:_.optional()}),Ry=G([Bf,nf,Iy,kw,Ww,Kw,df,af,ef,Dw,zw,Ow,jw,Kf,Vf,Wf,Yf]),hy=G([Df,Gf,zf,Xy,If]),qy=G([yf,mw,cw,zy,Wy,Qf,Xf,Hf]),Sy=G([Bf,nw,yy,Vy,Kf,Vf,Wf,Yf]),gy=G([Df,Gf,Lw,Gw,ww,Pw,Aw,If,xy]),ny=G([yf,cf,Ky,$w,Qw,lf,of,fw,bf,Jw,Qf,Xf,Hf]);u=class u extends Error{constructor(y,A,j){super(`MCP error ${y}: ${A}`);this.code=y,this.data=j,this.name="McpError"}static fromError(y,A,j){if(y===U.UrlElicitationRequired&&j){let s=j;if(s.elicitations)return new Jf(s.elicitations,A)}return new u(y,A,j)}};Jf=class Jf extends u{constructor(y,A=`URL elicitation${y.length>1?"s":""} required`){super(U.UrlElicitationRequired,A,{elicitations:y})}get elicitations(){return this.data?.elicitations??[]}}});async function cy(){}var Yy=()=>{};class Zy{append(y){this._buffer=this._buffer?Buffer.concat([this._buffer,y]):y}readMessage(){if(!this._buffer)return null;let y=this._buffer.indexOf(`
|
|
2
|
-
`);if(y===-1)return null;let A=this._buffer.toString("utf8",0,y).replace(/\r$/,"");return this._buffer=this._buffer.subarray(y+1),_y(A)}clear(){this._buffer=void 0}}function _y(y){return wf.parse(JSON.parse(y))}function ty(y){return JSON.stringify(y)+`
|
|
3
|
-
`}var $y=R(()=>{Nf()});
|
|
4
|
-
export{Pf as EV,Fy as FV,Tf as GV,jy as HV,Jy as IV,Ny as JV,Oy as KV,U as LV,Py as MV,wf as NV,yf as OV,Df as PV,nf as QV,cf as RV,zf as SV,ky as TV,Bf as UV,Gf as VV,Hf as WV,If as XV,Kf as YV,Qf as ZV,Vf as _V,Wf as $V,Xf as aW,Yf as bW,Ly as cW,lf as dW,of as eW,fw as fW,ww as gW,Qw as hW,$w as iW,Aw as jW,jw as kW,Jw as lW,bf as mW,Ow as nW,Pw as oW,py as pW,jf as qW,kw as rW,nw as sW,mw as tW,cw as uW,yy as vW,xy as wW,zy as xW,Ky as yW,Vy as zW,Wy as AW,u as BW,Nf as CW,Zy as DW,ty as EW,$y as FW,cy as GW,Yy as HW};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{FS as i,OS as p,UU as t,lU as j,mU as s,nU as K,pU as D}from"./cli-0.1.9-nw3rpxdd.mjs";import{zX as y}from"./cli-0.1.9-2v4s8yf9.mjs";import{g7 as P,h7 as a,n6 as _,o6 as n}from"./cli-0.1.9-86kws2c7.mjs";import{hna as E,lna as v}from"./cli-0.1.9-kbrf27z8.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,H){if(!H)return Y;return j(H,W)(Y)}function O(Y,H,F,$=0){if(typeof Y==="string"){X.push(H+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let U=String(Y);X.push(H+Z(U,Q.value))}return}if(I.has(Y)){X.push(H+Z("[Circular]",Q.value));return}I.add(Y);let S=Object.keys(Y).filter((U)=>{let g=Y[U];if(G&&typeof g==="function")return!1;return!0});S.forEach((U,g)=>{let N=Y[U],V=g===S.length-1,T=$===0&&g===0?"":H,u=V?A.lastBranch:A.branch,d=Z(u,Q.treeChar),C=U.trim()===""?"":Z(U,Q.key),w=T+d+(C?" "+C:""),z=U.trim()!=="";if(N&&typeof N==="object"&&I.has(N)){let R=Z("[Circular]",Q.value);X.push(w+(z?": ":w?" ":"")+R)}else if(N&&typeof N==="object"&&!Array.isArray(N)){X.push(w);let R=V?A.empty:A.line,k=Z(R,Q.treeChar),c=T+k+" ";O(N,c,V,$+1)}else if(Array.isArray(N))X.push(w+(z?": ":w?" ":"")+"[Array("+N.length+")]");else if(M){let R=typeof N==="function"?"[Function]":String(N),k=Z(R,Q.value);w+=(z?": ":w?" ":"")+k,X.push(w)}else X.push(w)})}let L=Object.keys(J);if(L.length===0)return Z("(empty)",Q.value);if(L.length===1&&L[0]!==void 0&&L[0].trim()===""&&typeof J[L[0]]==="string"){let Y=L[0],H=Z(A.lastBranch,Q.treeChar),F=Z(J[Y],Q.value);return H+" "+F}return O(J,"",!0),X.join(`
|
|
2
|
-
`)}var A;var m=v(()=>{a();s();A={branch:P.lineUpDownRight,lastBranch:P.lineUpRight,line:P.lineVertical,empty:" "}});function o(J){let q={};return J.forEach((M)=>{if(!M.path){q[""]=M.message;return}let G=M.path.split("."),W=M.path;if(M.invalidValue!==null&&M.invalidValue!==void 0&&G.length>0){let Q=[];for(let X=0;X<G.length;X++){let I=G[X];if(!I)continue;let Z=parseInt(I,10);if(!isNaN(Z)&&X===G.length-1){let O;if(typeof M.invalidValue==="string")O=`"${M.invalidValue}"`;else if(M.invalidValue===null)O="null";else if(M.invalidValue===void 0)O="undefined";else O=String(M.invalidValue);Q.push(O)}else Q.push(I)}W=Q.join(".")}b(q,W,M.message,Object)}),q}function Hq(J){let q=h.c(9),{errors:M}=J,[G]=p();if(M.length===0)return null;let W,Q,X;if(q[0]!==M||q[1]!==G){let Z=M.reduce(qq,{}),O=Object.keys(Z).sort();W=K,Q="column",X=O.map((L)=>{let Y=Z[L]||[];Y.sort(e);let H=o(Y),F=new Map;Y.forEach((S)=>{if(S.suggestion||S.docLink){let U=`${S.suggestion||""}|${S.docLink||""}`;if(!F.has(U))F.set(U,{suggestion:S.suggestion,docLink:S.docLink})}});let $=x(H,{showValues:!0,themeName:G,treeCharColors:{treeChar:"inactive",key:"text",value:"inactive"}});return B.jsxDEV(K,{flexDirection:"column",children:[B.jsxDEV(D,{children:L},void 0,!1,void 0,this),B.jsxDEV(K,{marginLeft:1,children:B.jsxDEV(D,{dimColor:!0,children:$},void 0,!1,void 0,this)},void 0,!1,void 0,this),F.size>0&&B.jsxDEV(K,{flexDirection:"column",marginTop:1,children:Array.from(F.values()).map(r)},void 0,!1,void 0,this)]},L,!0,void 0,this)}),q[0]=M,q[1]=G,q[2]=W,q[3]=Q,q[4]=X}else W=q[2],Q=q[3],X=q[4];let I;if(q[5]!==W||q[6]!==Q||q[7]!==X)I=B.jsxDEV(W,{flexDirection:Q,children:X},void 0,!1,void 0,this),q[5]=W,q[6]=Q,q[7]=X,q[8]=I;else I=q[8];return I}function r(J,q){return B.jsxDEV(K,{flexDirection:"column",marginBottom:1,children:[J.suggestion&&B.jsxDEV(D,{dimColor:!0,wrap:"wrap",children:J.suggestion},void 0,!1,void 0,this),J.docLink&&B.jsxDEV(D,{dimColor:!0,wrap:"wrap",children:["Learn more: ",J.docLink]},void 0,!0,void 0,this)]},`suggestion-pair-${q}`,!0,void 0,this)}function e(J,q){if(!J.path&&q.path)return-1;if(J.path&&!q.path)return 1;return(J.path||"").localeCompare(q.path||"")}function qq(J,q){let M=q.file||"(file not specified)";if(!J[M])J[M]=[];return J[M].push(q),J}var h,B;var Jq=v(()=>{f();t();m();h=E(i(),1),B=E(y(),1)});
|
|
3
|
-
export{Hq as Ne,Jq as Oe};
|