nolo-cli 0.264.0-alpha.2 → 0.266.0-alpha.1
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/{chunk-LXP53WGF.js → chunk-05wkntba.js} +44 -40
- package/{chunk-XFYFMTOM.js → chunk-08ts2q1n.js} +9 -11
- package/{chromeCommands-MVEEIY4R.js → chunk-0a3m1n6h.js} +182 -238
- package/chunk-0gfvc7g8.js +13 -0
- package/{chunk-CF7PE763.js → chunk-0h0sncy4.js} +3 -4
- package/{chunk-3UH7SS4W.js → chunk-0nsxwrge.js} +232 -241
- package/chunk-0ra8cne4.js +11 -0
- package/{chunk-MRACVEPZ.js → chunk-0sgwk7am.js} +1 -3
- package/{chunk-PEXGRTTQ.js → chunk-0tsfn0dk.js} +44 -45
- package/{chunk-WOAZVUSN.js → chunk-0y8cbwzy.js} +26 -30
- package/chunk-12gz55kk.js +6 -0
- package/{chunk-GLKOYSRU.js → chunk-186gshgw.js} +3 -6
- package/chunk-19w4ss38.js +44 -0
- package/{chunk-RF576RYE.js → chunk-1cakzp6r.js} +23 -23
- package/chunk-1fbfwbzp.js +27 -0
- package/{chunk-4IVMDQBA.js → chunk-1fv9k8zt.js} +103 -68
- package/{chunk-Q5FJJ6XI.js → chunk-1js4cdzp.js} +11 -19
- package/{chunk-YECCIUYU.js → chunk-1nhx0er5.js} +63 -63
- package/chunk-1p152b7g.js +12 -0
- package/{chunk-HXEO5DNV.js → chunk-1ynbq3yr.js} +322 -353
- package/{chunk-6UBGXX2W.js → chunk-1zrg4h5n.js} +3 -4
- package/{chunk-Y5GCAMGP.js → chunk-2g6zsfq8.js} +1 -3
- package/chunk-2hekb0eh.js +17 -0
- package/chunk-2pj6qzq5.js +12 -0
- package/chunk-2tvd4jyp.js +226 -0
- package/chunk-2ygg7azv.js +846 -0
- package/chunk-33405wtv.js +50 -0
- package/chunk-34axejtd.js +30 -0
- package/{tableCommands-FCPDULSU.js → chunk-3700dvt3.js} +224 -276
- package/{pdf-KE3QI2V7.js → chunk-3j08t1nm.js} +12505 -10133
- package/chunk-3j9gq18v.js +111 -0
- package/{chunk-LYPJYBE5.js → chunk-3qfpcdkm.js} +486 -505
- package/{settingThunks-PNC7ZISV.js → chunk-3r2x7h64.js} +189 -272
- package/{agentGrantCommands-2VLLXGIU.js → chunk-3tbj5fxt.js} +61 -56
- package/chunk-40whhjj5.js +168 -0
- package/chunk-4301919y.js +7 -0
- package/chunk-43adz39e.js +77 -0
- package/{chunk-5ZUL4CUO.js → chunk-49v3zc4g.js} +1 -3
- package/chunk-4dd7mxkb.js +72 -0
- package/{chunk-BKP325XS.js → chunk-4hapfzpq.js} +66 -62
- package/chunk-4mm7dz0m.js +95 -0
- package/chunk-4pqxempz.js +440 -0
- package/chunk-4x9zf5pv.js +10 -0
- package/{chunk-CA7LGAHV.js → chunk-511q8qzv.js} +66 -57
- package/{chunk-U7OULUMF.js → chunk-53v9g0np.js} +49 -64
- package/chunk-572mg6q5.js +19 -0
- package/{chunk-QAW6BEWQ.js → chunk-57eyhmwr.js} +17173 -16165
- package/chunk-5hsr0zjm.js +156 -0
- package/chunk-5k883yyd.js +20 -0
- package/chunk-5m0wsee4.js +639 -0
- package/{memberThunks-NEZRAW5K.js → chunk-5r1sq2gt.js} +299 -373
- package/chunk-648rq4np.js +255 -0
- package/{chunk-IYRZKHA6.js → chunk-666yjw5c.js} +63 -86
- package/{chunk-4O22PGNQ.js → chunk-6cdcbmtp.js} +19 -19
- package/chunk-6dbyqcf7.js +59 -0
- package/{agentProviderCommands-2W3VXDLV.js → chunk-6e8mgp1x.js} +82 -105
- package/chunk-6n0pw7sx.js +44 -0
- package/chunk-6q1b7381.js +361 -0
- package/chunk-6sj756ry.js +23 -0
- package/{chunk-4UNN45DS.js → chunk-6t7a7zck.js} +14785 -14454
- package/chunk-6yarwtxh.js +776 -0
- package/chunk-708h542p.js +18 -0
- package/chunk-76f076t8.js +266 -0
- package/chunk-782rrrwv.js +523 -0
- package/{workloadLifecycle-P2SJVV3S.js → chunk-7gk330wp.js} +77 -84
- package/{chunk-EZKIRVLJ.js → chunk-7ks60vxy.js} +146 -128
- package/{chunk-FI4DPLR7.js → chunk-7mrqbxe8.js} +342 -228
- package/chunk-7sztayrd.js +169 -0
- package/chunk-7vgt2mxz.js +15 -0
- package/{localFirstLog-OIETGK66.js → chunk-7z8y4k6y.js} +0 -2
- package/{chunk-KDDXC2IH.js → chunk-82htft2m.js} +49 -11
- package/{updateDialogTitleAction-XOSLNRT3.js → chunk-88vrtxxg.js} +65 -137
- package/{chunk-LS5KAVFQ.js → chunk-8dtjbp79.js} +293 -229
- package/chunk-8fajbkaz.js +50 -0
- package/chunk-8m1ebxpw.js +65 -0
- package/{accountResolver-JYG5L7YP.js → chunk-8mgfeg0w.js} +37 -30
- package/{chunk-LPXBBC32.js → chunk-8myksy35.js} +156 -160
- package/{chunk-BMQ2MJUK.js → chunk-8nrj7dc7.js} +75 -66
- package/{commandRegistry-ENNFT77C.js → chunk-8t8x64ec.js} +228 -286
- package/chunk-8yj4pq79.js +458 -0
- package/{chunk-5MKPNTJP.js → chunk-8z6pepcx.js} +43 -48
- package/{chunk-UYQILGDR.js → chunk-90egc9vb.js} +122 -102
- package/{chunk-EODBQPRM.js → chunk-91q5dc5r.js} +10 -14
- package/{chunk-U6VC4MU4.js → chunk-96jtrqk1.js} +2 -4
- package/{chunk-H57T64RA.js → chunk-996j61av.js} +28 -31
- package/{chunk-Q6FKWH66.js → chunk-9cxgb9jy.js} +137 -243
- package/{chunk-2ZBPWX7N.js → chunk-9q1gbmet.js} +62 -104
- package/chunk-9qtjh73q.js +344 -0
- package/{chunk-SR57FDTX.js → chunk-9raka469.js} +72 -155
- package/{chunk-V6K5U4YE.js → chunk-9vh4v046.js} +32 -41
- package/{chunk-AGIM7IMJ.js → chunk-9yr1fy7j.js} +14 -49
- package/{chunk-FGFJUFPS.js → chunk-a16x0wt6.js} +11 -18
- package/chunk-a5b2rvzs.js +131 -0
- package/{chunk-7DPNBQSV.js → chunk-a7bz6nc3.js} +3 -4
- package/chunk-ac85azv9.js +29 -0
- package/{chunk-VXL2FZTP.js → chunk-ahhbkad4.js} +16 -20
- package/{chunk-37DGW762.js → chunk-anhksj2j.js} +16 -29
- package/{cliAuthorityBrokerServer-27C5YBYP.js → chunk-atvmx76t.js} +180 -186
- package/{chunk-E6A5NHDH.js → chunk-av2mzeqz.js} +16 -17
- package/chunk-avbwrb0z.js +614 -0
- package/chunk-avr6rqe5.js +544 -0
- package/{workContextQueryProjection-CACY5VFE.js → chunk-axx60d5a.js} +7 -7
- package/{chunk-EWQ3HGNZ.js → chunk-b00vzjkb.js} +30 -23
- package/chunk-b0m6ezxr.js +132 -0
- package/chunk-bbd5mgdt.js +47 -0
- package/chunk-bcecft0r.js +28 -0
- package/chunk-beyr4pyp.js +33 -0
- package/{chunk-BR3GT6MR.js → chunk-bge0cagn.js} +7 -18
- package/{offlineMarxistsAgentCommand-MFURGWHL.js → chunk-bh53zg3t.js} +33 -43
- package/chunk-bmx1cw89.js +37 -0
- package/chunk-br2195h4.js +22 -0
- package/chunk-bsqkwveq.js +56 -0
- package/{chunk-QAU6KM2U.js → chunk-c09s2z1m.js} +139 -98
- package/chunk-c235kypv.js +24636 -0
- package/{chunk-2JMYAH5O.js → chunk-c30j6pyh.js} +213 -256
- package/chunk-c3v6r6sq.js +29 -0
- package/{chunk-PDSXYHNI.js → chunk-c5z7qspt.js} +1177 -1196
- package/{chunk-GWB6AGME.js → chunk-c6jvz0mp.js} +34 -50
- package/{chunk-PRJ473FK.js → chunk-cd6h9qqs.js} +14 -12
- package/chunk-cdt0amyy.js +37 -0
- package/{chunk-2AJLG6PY.js → chunk-cfh6tfc3.js} +73 -86
- package/{chunk-WIVVNJUS.js → chunk-ch4ck1yz.js} +38 -68
- package/chunk-chtvrtp5.js +55 -0
- package/{chunk-EYLGAEB4.js → chunk-ckvz7abv.js} +170 -165
- package/{chunk-YZMNK53S.js → chunk-csf18m5w.js} +32 -25
- package/{chunk-C36L6ZID.js → chunk-cwnvf8dt.js} +2 -10
- package/chunk-cy7thb6n.js +19877 -0
- package/{dialogPortabilityCommands-YQJNB2KL.js → chunk-d61q9nah.js} +439 -487
- package/chunk-d6xdy0gp.js +142 -0
- package/{chunk-EBH4RFJ6.js → chunk-dh69vqbd.js} +6390 -6496
- package/{chunk-KJ4J2XQB.js → chunk-dj4ggbc6.js} +17 -19
- package/{chunk-LISC7BD4.js → chunk-djrrhbk3.js} +29 -37
- package/chunk-drqzzzvr.js +822 -0
- package/chunk-e1n7edjk.js +33 -0
- package/chunk-e3atr4hk.js +59 -0
- package/chunk-e9bn2aav.js +13 -0
- package/chunk-ed396rfq.js +87 -0
- package/chunk-eha8ggh6.js +10 -0
- package/{chunk-MALPQFGT.js → chunk-ek122zzt.js} +893 -948
- package/chunk-epnmvek4.js +22 -0
- package/{chunk-S25VJYXV.js → chunk-eqzvk3xm.js} +69 -80
- package/chunk-ex34n71b.js +2874 -0
- package/{chunk-56OAS5RZ.js → chunk-f3ad6q4h.js} +7 -11
- package/{chunk-3PVYUPXK.js → chunk-f8jepva1.js} +6 -7
- package/{chunk-GH34JXNV.js → chunk-f9yvy9t9.js} +114 -92
- package/chunk-fbdz4f0j.js +90 -0
- package/{chunk-J44TXB4J.js → chunk-fcsc2day.js} +216 -164
- package/chunk-fevdhnbh.js +19 -0
- package/chunk-fkrgqq8w.js +3300 -0
- package/{chunk-TSBJVMNW.js → chunk-fs3bvh2p.js} +42 -57
- package/chunk-fvwzyhah.js +134 -0
- package/chunk-g0mpxdp9.js +101 -0
- package/{chunk-LTQ6ECCF.js → chunk-g35f20d1.js} +450 -414
- package/{chunk-3L2WKC3W.js → chunk-g5fhtjqg.js} +13 -16
- package/{chunk-DBEOW57U.js → chunk-gcq01td7.js} +270 -227
- package/{chunk-ADMRXWXJ.js → chunk-ge97b11r.js} +121 -42
- package/chunk-ghjtgbkw.js +180 -0
- package/chunk-gkra36c1.js +16 -0
- package/chunk-gmz86t60.js +1000 -0
- package/{localDialogRead-GWGWSL5K.js → chunk-gszpesze.js} +5 -12
- package/chunk-gvsfec9m.js +16536 -0
- package/{chunk-QSJ3HFEF.js → chunk-h1hzmqph.js} +1 -3
- package/chunk-h30dg154.js +17 -0
- package/chunk-h3hkb7cw.js +241 -0
- package/chunk-h40py996.js +28 -0
- package/{chunk-47T3QP4V.js → chunk-h60gnewh.js} +112 -116
- package/{agentPullCommand-XEGOUYQT.js → chunk-hkwsv9xf.js} +33 -45
- package/chunk-hnyg0gwj.js +28 -0
- package/{chunk-KSV6T4AH.js → chunk-hqqqph5w.js} +12 -4
- package/{chunk-YQJEXXDK.js → chunk-hrngs1wy.js} +157 -246
- package/{chunk-LRLLWD4P.js → chunk-htf69s94.js} +14 -12
- package/chunk-j0yxesh3.js +83 -0
- package/{chunk-VF4K2QE6.js → chunk-j22t9g05.js} +3 -6
- package/{chunk-3R4AYHJR.js → chunk-j4a8m2zn.js} +5 -34
- package/chunk-j9p4jnwg.js +27 -0
- package/{chunk-R72QWIFO.js → chunk-jdycmfsm.js} +9 -9
- package/chunk-jdyvrne0.js +52 -0
- package/{spacePruneCommand-YKIEUIDQ.js → chunk-je0b66qf.js} +44 -62
- package/{chunk-HNMXYYJR.js → chunk-jec44fkj.js} +3 -4
- package/{chunk-526GLZJE.js → chunk-jf1ex00r.js} +107 -73
- package/chunk-jgqdec9b.js +31 -0
- package/{chunk-56GBUMO5.js → chunk-jkw9n4h5.js} +16 -25
- package/{chunk-7422ZLGL.js → chunk-jmnzdwjt.js} +867 -965
- package/chunk-jqq57s0a.js +58 -0
- package/{chunk-OKUSDVRS.js → chunk-jtkn5aj6.js} +27 -38
- package/chunk-jwvzn9r0.js +316 -0
- package/chunk-k1re0fc7.js +107 -0
- package/chunk-k2ep3rb2.js +103 -0
- package/{chunk-JEXVIMYZ.js → chunk-k6ycb24w.js} +5 -8
- package/{chunk-RI7SXDJW.js → chunk-kawvydbk.js} +383 -195
- package/chunk-kf2ghpzh.js +10 -0
- package/{chunk-S6FAHQDH.js → chunk-kgah9e46.js} +28 -59
- package/{chunk-T3MWVUBE.js → chunk-kjjepkvc.js} +71 -82
- package/chunk-kn4dgg4j.js +4113 -0
- package/{chunk-2LFYMWM3.js → chunk-kn5p91n8.js} +43 -53
- package/{chunk-MVOZ22RZ.js → chunk-kntqrbwc.js} +8 -12
- package/{chunk-I6YIA2TY.js → chunk-kq3vr7mx.js} +25 -20
- package/chunk-kz1x1d8n.js +15 -0
- package/{mcpLocalAuthorizeCommand-IKOFKY5U.js → chunk-m22e7tt2.js} +53 -71
- package/{chunk-ZNFJWEN4.js → chunk-m32rwr4d.js} +11 -8
- package/chunk-m39e9m18.js +93 -0
- package/{chunk-4D4QD7FT.js → chunk-m5518371.js} +64 -56
- package/{chunk-LHTXSC2E.js → chunk-mb5hnfyp.js} +9 -11
- package/chunk-mexet11v.js +11 -0
- package/chunk-mg2hgfgh.js +185 -0
- package/chunk-mmdhm4kx.js +10317 -0
- package/chunk-mz002yz8.js +2821 -0
- package/chunk-mzadqnyq.js +56 -0
- package/{chunk-VIDPVFP3.js → chunk-n3r1ebdm.js} +5 -6
- package/chunk-n438qea7.js +33 -0
- package/chunk-n5ffnhnb.js +93 -0
- package/chunk-nbvd87fy.js +9 -0
- package/{chunk-E36V7MPY.js → chunk-ndej7jc9.js} +53 -43
- package/{chunk-B767MA64.js → chunk-nen6rwe4.js} +62 -22
- package/chunk-nf06tr3v.js +16 -0
- package/chunk-ng8z355q.js +16 -0
- package/{chunk-4MEKE5D3.js → chunk-nhtxfv8k.js} +78 -63
- package/{runAgentClientLoop-2SFASHDS.js → chunk-nj62jscj.js} +132 -214
- package/{chunk-GBWGPTA7.js → chunk-nkryrkyp.js} +16 -19
- package/chunk-nmesxem8.js +197 -0
- package/{chunk-YR4J7RFS.js → chunk-nmq0qwbn.js} +117 -164
- package/chunk-nph8brvw.js +7 -0
- package/chunk-nr8fees9.js +10 -0
- package/{chunk-DFI7MVCQ.js → chunk-nvewvf7h.js} +1441 -1427
- package/{chunk-G7Y4GXTY.js → chunk-nyamhphs.js} +70 -79
- package/chunk-nz1c8tcg.js +111 -0
- package/{chunk-GPLUFN2E.js → chunk-nzc5yffh.js} +176 -217
- package/{chunk-G3SUCT4W.js → chunk-p1vg4bx8.js} +2 -4
- package/chunk-p3k3abe8.js +202 -0
- package/chunk-p4zy30q5.js +8 -0
- package/{chunk-ZJACPM5O.js → chunk-p6se1rx0.js} +102 -102
- package/chunk-p9dpshev.js +6968 -0
- package/chunk-pa42wxr0.js +116 -0
- package/{chunk-TA5QI4MM.js → chunk-paxthgqp.js} +56 -107
- package/{readlineWorkspace-ZH5FGDMI.js → chunk-pb35s8d9.js} +5395 -5786
- package/{chunk-XT6C2QZW.js → chunk-pbebzbcq.js} +8 -8
- package/chunk-pbx7e1mb.js +11 -0
- package/chunk-pe5czfn9.js +8 -0
- package/chunk-pextk1j4.js +62 -0
- package/chunk-pf5rywc6.js +575 -0
- package/chunk-pjfhd3fz.js +136 -0
- package/{chunk-ZCMAKAZM.js → chunk-pkhqb0fs.js} +118 -59
- package/chunk-pm5xb9jh.js +26 -0
- package/{chunk-Y3KGWZKF.js → chunk-ppdmmdkx.js} +110 -97
- package/chunk-pqp6y2hs.js +9 -0
- package/{chunk-QHEN7NZ7.js → chunk-ptz8fm2n.js} +12 -17
- package/{chunk-EUHMI5KG.js → chunk-pwqnvbt7.js} +65 -46
- package/chunk-pzr31nz7.js +12 -0
- package/{chunk-WWC7I6TA.js → chunk-q3cx89sw.js} +2 -4
- package/chunk-q5pe7be3.js +78 -0
- package/{chunk-ZHWTBHT3.js → chunk-q6zqbxp2.js} +418 -409
- package/chunk-q7r0e1p3.js +15 -0
- package/chunk-q8t2fecd.js +6 -0
- package/{chunk-2QAZCYOM.js → chunk-q94zx4d0.js} +721 -753
- package/{runtimeDoctorCommands-52MBG5JN.js → chunk-qarz1az1.js} +65 -85
- package/{chunk-4INJGWE3.js → chunk-qdcvr25b.js} +72 -53
- package/{streamAgentChatTurn-KOUWITHH.js → chunk-qxs27wfg.js} +1079 -1475
- package/{chunk-GIXWVN2W.js → chunk-r06ycjjr.js} +50 -47
- package/{chunk-63W5N6P3.js → chunk-r20jw5hb.js} +57 -38
- package/{chunk-I5BYFTYK.js → chunk-r7sfwdka.js} +1201 -1142
- package/{chunk-UMADT6B2.js → chunk-r9sp1yyb.js} +6 -8
- package/{handleSendMessageAction-FHGUFT2X.js → chunk-rbd2vgb3.js} +627 -757
- package/chunk-rc37js46.js +12 -0
- package/{chunk-5YI447UL.js → chunk-rmngk6r3.js} +67 -76
- package/chunk-rnhbnbrq.js +15 -0
- package/{chunk-WRHVVIGI.js → chunk-rsfnmrt5.js} +111 -131
- package/{chunk-YFSM2366.js → chunk-rvvn2rhj.js} +28 -22
- package/{chunk-4Y6CZ2N4.js → chunk-s0fpz7ht.js} +37 -33
- package/{chunk-VI4SWTUO.js → chunk-s1cqzb2r.js} +77 -65
- package/{chunk-6QDYSCPW.js → chunk-s8q81tda.js} +73 -65
- package/chunk-s9hy639e.js +6 -0
- package/{chunk-R5GO3YZP.js → chunk-s9vbwme8.js} +115 -106
- package/chunk-sger1m1b.js +20 -0
- package/chunk-spe6crvk.js +60 -0
- package/chunk-spwsrvh9.js +70 -0
- package/chunk-sr05zpk7.js +573 -0
- package/{chunk-M2EJHDJP.js → chunk-srncrd3f.js} +1 -12
- package/{chunk-QXHFIX7W.js → chunk-sry80bpx.js} +71 -53
- package/{chunk-PSCNXBYA.js → chunk-t6q69p83.js} +3 -4
- package/{chunk-UAD2WT54.js → chunk-t714r4q0.js} +9 -28
- package/chunk-t7vbraqe.js +42 -0
- package/{chunk-CVMMWN6P.js → chunk-td7653rr.js} +10 -20
- package/{chunk-3BQDF4QB.js → chunk-tmytcetz.js} +17 -21
- package/{chunk-AMWMV56B.js → chunk-tta4prwg.js} +16 -15
- package/chunk-tvh8azgq.js +4829 -0
- package/{chunk-ID4G2MAR.js → chunk-v08kbfm8.js} +10 -11
- package/{chunk-OKPOQGQJ.js → chunk-v1x702q8.js} +801 -852
- package/{chunk-KHCLMKZZ.js → chunk-v39fea91.js} +576 -247
- package/{chunk-OW765XBU.js → chunk-vejtd8p2.js} +3 -4
- package/chunk-vep7zkha.js +368 -0
- package/chunk-vfwn1k7n.js +142 -0
- package/chunk-vg68vxhx.js +20 -0
- package/chunk-vgcqgnsm.js +31 -0
- package/{chunk-NF64D32W.js → chunk-vnzyjdea.js} +1 -3
- package/{chunk-ZCLSM5AK.js → chunk-vqgtw1px.js} +800 -717
- package/chunk-vv1gr5xz.js +76 -0
- package/{spaceCommands-Z2CTQD6G.js → chunk-w1qeadpq.js} +176 -242
- package/chunk-w468ez1p.js +13 -0
- package/chunk-w49s0t79.js +14 -0
- package/{mcpLocalManageCommands-KUDZQRM4.js → chunk-w58zhfbn.js} +91 -93
- package/chunk-w5b74aq6.js +11 -0
- package/chunk-w7y41qyw.js +117 -0
- package/chunk-w820gg1w.js +4165 -0
- package/{chunk-DBJAJ4UD.js → chunk-wdsmaqmt.js} +399 -453
- package/{chunk-3EUW3WEO.js → chunk-wfvvnmmj.js} +1 -3
- package/{chunk-QY4NZCDA.js → chunk-wkr04bhk.js} +432 -651
- package/{chunk-KUG52IAP.js → chunk-ws402twv.js} +1 -3
- package/chunk-wzwh311q.js +164 -0
- package/{runtimeModeArgs-X7DL7PUN.js → chunk-x5vtgvwn.js} +6 -5
- package/{agentMachineCommands-COJD2KPZ.js → chunk-x8h2csmq.js} +152 -195
- package/{chunk-BAZCS5XG.js → chunk-x9zfjnrc.js} +59 -47
- package/{chunk-WTIJKWCI.js → chunk-xcarc2rf.js} +50 -56
- package/chunk-xf33gz0a.js +8 -0
- package/{chunk-PVFYPUIM.js → chunk-y7b3gwx1.js} +78 -71
- package/{memoryCommands-SVLAVFCV.js → chunk-y7sphmnh.js} +119 -95
- package/{agentListCommands-436FHOIT.js → chunk-ycvaafhc.js} +260 -374
- package/chunk-yd7zprb0.js +9 -0
- package/chunk-yfz3d27k.js +40 -0
- package/{chunk-MKR6KDD3.js → chunk-ykv9g3m4.js} +141 -125
- package/chunk-ystjgb9e.js +544 -0
- package/chunk-yysxn7ep.js +12 -0
- package/{chunk-AL3TYDIF.js → chunk-z17eyawk.js} +18 -16
- package/{machineCommands-RVB5OG2X.js → chunk-z17q416p.js} +442 -563
- package/chunk-z1n98pcf.js +12 -0
- package/{dialogTraceCommand-HWXGIGZX.js → chunk-z566jx5r.js} +292 -397
- package/chunk-zjxd6942.js +6 -0
- package/{versionChangeNotice-RFABJGJE.js → chunk-zk11x9y5.js} +7 -9
- package/{chunk-TEFD5E2D.js → chunk-zt73yc33.js} +48 -51
- package/chunk-zvs2fra1.js +5 -0
- package/{chunk-SVFFKLMR.js → chunk-zwee84rh.js} +117 -141
- package/chunk-zxgfqv72.js +8 -0
- package/index.js +53 -69
- package/package.json +4 -4
- package/_executeModel-YQNZNR2Y.js +0 -341
- package/action-UK3HXGXF.js +0 -30
- package/addContentAction-CAKFVBDM.js +0 -38
- package/addDialogAgentAction-KLJ2YWWM.js +0 -77
- package/agentDeleteCommand-S5FVPYKT.js +0 -523
- package/agentEmailCommands-ZEFMGVKM.js +0 -742
- package/agentRecordCommands-JZ35AC5A.js +0 -211
- package/agentRun-UIO43TUG.js +0 -251
- package/agentRunCommand-ATLKKD6O.js +0 -249
- package/agentRunControl-U2MV74WR.js +0 -211
- package/agentRuntimeLocal-P4MMGIR6.js +0 -189
- package/agentSlice-HHNKNNYM.js +0 -52
- package/appConfigCommands-W4JQHMOJ.js +0 -417
- package/appDeleteCommands-IXR47IAV.js +0 -183
- package/appDeployCommands-LB6DHDF4.js +0 -232
- package/appDeployStatusCommands-UQ6MJL6D.js +0 -204
- package/appGetCommands-M5JCTDDQ.js +0 -185
- package/appListCommands-TE3ZHE3I.js +0 -186
- package/appMigrateCommands-FOXH6R4B.js +0 -230
- package/appSourceCommands-3ACYB6I7.js +0 -279
- package/authCommand-I5OBJP5S.js +0 -66
- package/authCommands-I6KCGOCN.js +0 -54
- package/builtinSkillRegistry-MIXYSZUU.js +0 -35
- package/chromeOpsCommands-IZRCYDSW.js +0 -579
- package/chunk-24BICQPB.js +0 -25
- package/chunk-2E4BYAUE.js +0 -69
- package/chunk-2O72G3U2.js +0 -17157
- package/chunk-2OROOEOQ.js +0 -229
- package/chunk-2R6M34JP.js +0 -27225
- package/chunk-2SXN7LAY.js +0 -15
- package/chunk-35JIFLIG.js +0 -30
- package/chunk-3VXVE2LF.js +0 -12
- package/chunk-4DBTBNTX.js +0 -477
- package/chunk-4JH2UMJR.js +0 -40
- package/chunk-4RUQ2PFX.js +0 -432
- package/chunk-4SN6J65J.js +0 -38
- package/chunk-5MMAK75Q.js +0 -15
- package/chunk-6NYQHXMV.js +0 -1737
- package/chunk-6R4IY46J.js +0 -14
- package/chunk-7E6YXSFZ.js +0 -441
- package/chunk-7K4J76JQ.js +0 -917
- package/chunk-7LR2IFUH.js +0 -100
- package/chunk-AETZ7AD6.js +0 -274
- package/chunk-ATNTHIZI.js +0 -13
- package/chunk-BPB3T5EU.js +0 -791
- package/chunk-BV3FLP2L.js +0 -133
- package/chunk-BVYHE6QD.js +0 -110
- package/chunk-BWJLEN6X.js +0 -1388
- package/chunk-CHOZJMJS.js +0 -78
- package/chunk-D2LTQAGN.js +0 -464
- package/chunk-DALXH7BG.js +0 -3392
- package/chunk-DBCWXGOC.js +0 -15210
- package/chunk-DLXL4NSL.js +0 -1179
- package/chunk-DSBRIUX5.js +0 -23
- package/chunk-DWLEOOGR.js +0 -8
- package/chunk-E2KZNP6C.js +0 -13
- package/chunk-E5JV4DCB.js +0 -272
- package/chunk-EUGTFFO6.js +0 -42
- package/chunk-FBNVJ2TO.js +0 -294
- package/chunk-FGXG6OLW.js +0 -34
- package/chunk-G22P2J7O.js +0 -1775
- package/chunk-HEVRQGGH.js +0 -106
- package/chunk-HHXF57CL.js +0 -180
- package/chunk-HI5RS2O4.js +0 -2109
- package/chunk-HJTI7RZV.js +0 -94
- package/chunk-HRWRIPTB.js +0 -531
- package/chunk-HYCVEESH.js +0 -2824
- package/chunk-I42VC5KR.js +0 -15
- package/chunk-IB5AR52X.js +0 -15
- package/chunk-IIRJ4P4I.js +0 -24
- package/chunk-IT3ZZRJE.js +0 -12
- package/chunk-IV6VUVLJ.js +0 -88
- package/chunk-J42X32PV.js +0 -472
- package/chunk-JDMWYVUF.js +0 -449
- package/chunk-JKVOKKMQ.js +0 -53
- package/chunk-JRTNUU5Z.js +0 -54
- package/chunk-K7HLFORE.js +0 -226
- package/chunk-KGBASAB5.js +0 -74
- package/chunk-KGKTN2NX.js +0 -25
- package/chunk-KX6YBIHG.js +0 -8
- package/chunk-KYHNSSL2.js +0 -62
- package/chunk-KZO2MTVM.js +0 -140
- package/chunk-LKZPX6YH.js +0 -0
- package/chunk-LLP2NDED.js +0 -201
- package/chunk-LOFRSJX2.js +0 -47
- package/chunk-M75RM77T.js +0 -3970
- package/chunk-MDAYRIP7.js +0 -1889
- package/chunk-MI6HRMCK.js +0 -25
- package/chunk-MTNQNLSE.js +0 -1029
- package/chunk-NH4PUEWK.js +0 -762
- package/chunk-NHLLXINQ.js +0 -8
- package/chunk-NTUNHTJV.js +0 -40
- package/chunk-OJKUU3LP.js +0 -67
- package/chunk-OQH3TAB7.js +0 -299
- package/chunk-P62DHV4F.js +0 -443
- package/chunk-PHIERFHT.js +0 -574
- package/chunk-PKDFU6MY.js +0 -102
- package/chunk-PL5RKESU.js +0 -40
- package/chunk-PSJJBBWV.js +0 -42
- package/chunk-QKM55LP2.js +0 -739
- package/chunk-QQ56R7KS.js +0 -88
- package/chunk-QYPE3TS3.js +0 -43
- package/chunk-REAE2SZK.js +0 -62
- package/chunk-RGQ4UUWZ.js +0 -208
- package/chunk-RIRFHJTW.js +0 -353
- package/chunk-RYMLMTPZ.js +0 -547
- package/chunk-SSGTV4FC.js +0 -303
- package/chunk-SVKWZ3EG.js +0 -607
- package/chunk-T7KODHYS.js +0 -317
- package/chunk-TGVVE5BA.js +0 -3085
- package/chunk-TKLBBR7P.js +0 -779
- package/chunk-TZXPT53C.js +0 -8
- package/chunk-U67V476Y.js +0 -35
- package/chunk-UEILX4EV.js +0 -15
- package/chunk-VIWDGTDA.js +0 -8
- package/chunk-VXUQWCEZ.js +0 -138
- package/chunk-W5GKF5ZW.js +0 -32
- package/chunk-WDWZPASX.js +0 -29
- package/chunk-WX266G2C.js +0 -9594
- package/chunk-YCITCYSJ.js +0 -356
- package/chunk-Z3KTXWWB.js +0 -76
- package/chunk-ZC3CMUKU.js +0 -322
- package/chunk-ZSZBHRLP.js +0 -1710
- package/chunk-ZV7ZY46L.js +0 -1343
- package/cliAgentConfigHelpers-WB2S7PDO.js +0 -47
- package/cliAuthorityBrokerClient-3SKOA7OZ.js +0 -23
- package/cliAuthorityBrokerProcess-BMBVXPKU.js +0 -24
- package/cliAuthorityStoreDriver-6FE3BJNB.js +0 -20
- package/cliEnvHelpers-7V5ZWUJA.js +0 -34
- package/cliExecutor-N3445G2Z.js +0 -45
- package/cliLocalAgentRecordReader-QKKRK53P.js +0 -113
- package/cloudAutomationCommands-S52NKCLL.js +0 -310
- package/contentThunks-ERA42OXW.js +0 -100
- package/cooldownCommands-ZFDAL4MR.js +0 -79
- package/createAgentAutomationAction-DMD2VDPI.js +0 -173
- package/createDialogAction-3SPOJQAK.js +0 -87
- package/createPageAction-AVXUMZVT.js +0 -91
- package/cursorProvider-2RACMEMF.js +0 -6123
- package/db-LTHLW7QA.js +0 -178
- package/dbSlice-WNUHTF4C.js +0 -76
- package/deleteDbKey-KV6MYBAI.js +0 -87
- package/desktopFolderProjects-4POAMVJN.js +0 -45
- package/dialogCommands-4MOLJW4G.js +0 -165
- package/dialogMessageRecord-2HJTEXQX.js +0 -7
- package/dialogNotifyCommand-YL2GFKLO.js +0 -45
- package/dialogSlice-Q7H2YVNO.js +0 -200
- package/dialogUsageCommand-IO2BQKL2.js +0 -31
- package/docCreateCommands-OYLRBK2M.js +0 -255
- package/docDeleteCommands-3NF6QPJU.js +0 -226
- package/docReadCommands-CBAERJAP.js +0 -184
- package/docStore-GWPFDV6Y.js +0 -89
- package/docUpdateCommands-BAMCGX6F.js +0 -326
- package/ebookDownloaderAgentCommand-NOIZ6U7Y.js +0 -675
- package/fetchMessages-P7FSCSXV.js +0 -19
- package/getPricing-KNXVEIUI.js +0 -40
- package/hostCredentialCreate-2VEYBXJV.js +0 -402
- package/i18n-SAK6DDY4.js +0 -51
- package/keys-FXEGMKSG.js +0 -183
- package/legacyMigration-TF4SYJCZ.js +0 -19
- package/levelAuthorityStore-L5SVDM5O.js +0 -10
- package/localAutomationCommands-XSK7SM7I.js +0 -199
- package/localAutomationRuntime-5WBO7HGQ.js +0 -61
- package/localRecall-BDYKXB46.js +0 -17
- package/localRuntimeAdapter-Y6H6XRIH.js +0 -310
- package/localRuntimeAuthority-Q5C2KWGF.js +0 -45
- package/localRuntimeDb-MM3DINZM.js +0 -12
- package/machineInfo-HNPJHQFU.js +0 -14
- package/machineWsRunDispatch-Y5SJGCEE.js +0 -228
- package/models-TOXYINNM.js +0 -10
- package/oauthTokenStore-RUYNYALS.js +0 -24
- package/overlay-JA3SPVUS.js +0 -15
- package/parityCommands-5OCBPVES.js +0 -613
- package/processSpawn-6GEO77KV.js +0 -11
- package/profileConfig-KOWK4HOG.js +0 -49
- package/projectArchive-WE3VVPZ2.js +0 -132
- package/providerPresetApply-YCVSP2WX.js +0 -235
- package/providerRegistry-26PAUYH2.js +0 -24
- package/read-D4WYJQJQ.js +0 -32
- package/readDocTool-3S3OQFOH.js +0 -22
- package/rememberExplicit-ZPI6KK5M.js +0 -16
- package/remove-AHRMUDMH.js +0 -32
- package/removeDialogAgentAction-AALRBFSA.js +0 -81
- package/secretCommands-2PSS3QNZ.js +0 -24
- package/setDialogExtraReferencesAction-SLHQ3GYL.js +0 -39
- package/setPrimaryDialogAgentAction-XKCSGJ7M.js +0 -96
- package/skillDiscovery-IUEZZG2B.js +0 -29
- package/skillSummaryMarker-62UW7HI7.js +0 -9
- package/slateToRenderMarkdown-R3X74MCX.js +0 -7
- package/slateUtils-ESQAJ6RN.js +0 -19
- package/store-WSAVTR32.js +0 -50
- package/switchDialogAgentAction-YJIWQGIR.js +0 -70
- package/tombstones-FQQMEDOW.js +0 -32
- package/toolApiClient-FVXTIIEN.js +0 -42
- package/tools-WN4AVSNS.js +0 -147
- package/tuiRestart-LU2BDLAW.js +0 -50
- package/tuiSummaryLlmCaller-Z2ZVBIGN.js +0 -53
- package/updateCommands-4QP7WJLA.js +0 -63
- package/usageCommand-AZX7D3LB.js +0 -31
- package/usageRebuildCommand-XV5QQCHK.js +0 -623
- package/userDataMerge-HT2ZVHBJ.js +0 -13
- package/windowsSelfUpdate-5OFKSW6Y.js +0 -14
- package/workContext-ZAW6VXT7.js +0 -18
- package/workContextAccess-VU5I4LKZ.js +0 -11
- package/workContextWriteNotice-YCSSMHN4.js +0 -7
- /package/{chunk-BYXBJQAS.js → chunk-0bcc25vg.js} +0 -0
|
@@ -1,41 +1,48 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
zaiModels
|
|
12
|
-
} from "./chunk-35JIFLIG.js";
|
|
13
|
-
import {
|
|
14
|
-
commandCodeModels,
|
|
15
|
-
kimiCodeModels,
|
|
16
|
-
minimaxModels,
|
|
17
|
-
moonshotModels,
|
|
18
|
-
opencodeGoModels,
|
|
2
|
+
PLATFORM_HOSTED_KIMI_PROVIDER,
|
|
3
|
+
PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
|
|
4
|
+
resolvePlatformEffectiveModel,
|
|
5
|
+
resolvePlatformHostedRouting,
|
|
6
|
+
GEMINI_NEON_STANDARD_PRICE_USD,
|
|
7
|
+
GEMINI_NEON_SERVICE_TIER_MULTIPLIERS,
|
|
8
|
+
isPlatformHostedOpenAIImageModel,
|
|
9
|
+
isPlatformHostedDeepseekModel,
|
|
10
|
+
platformHostedModels,
|
|
19
11
|
qwenModels,
|
|
20
12
|
qwenTokenPlanModels,
|
|
13
|
+
moonshotModels,
|
|
14
|
+
kimiCodeModels,
|
|
21
15
|
stepfunModels,
|
|
22
|
-
stepfunStepPlanModels
|
|
23
|
-
|
|
16
|
+
stepfunStepPlanModels,
|
|
17
|
+
minimaxModels,
|
|
18
|
+
commandCodeModels,
|
|
19
|
+
opencodeGoModels
|
|
20
|
+
} from "./chunk-fkrgqq8w.js";
|
|
24
21
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
asTrimmedLowercaseString
|
|
23
|
+
} from "./chunk-h1hzmqph.js";
|
|
24
|
+
import {
|
|
25
|
+
minLength,
|
|
26
|
+
transform,
|
|
27
|
+
trim,
|
|
28
|
+
array,
|
|
29
|
+
literal,
|
|
30
|
+
looseObject,
|
|
31
|
+
object,
|
|
32
|
+
optional,
|
|
33
|
+
picklist,
|
|
34
|
+
record,
|
|
35
|
+
string,
|
|
36
|
+
pipe
|
|
37
|
+
} from "./chunk-7mrqbxe8.js";
|
|
32
38
|
|
|
33
39
|
// packages/agent-runtime/agentRoutingConfig.ts
|
|
34
40
|
function declaresNoloPlatformSource(config) {
|
|
35
41
|
return config?.apiSource === "platform" && config.provider === "nolo";
|
|
36
42
|
}
|
|
37
43
|
function effectiveAgentRoutingConfig(config) {
|
|
38
|
-
if (!declaresNoloPlatformSource(config))
|
|
44
|
+
if (!declaresNoloPlatformSource(config))
|
|
45
|
+
return config;
|
|
39
46
|
const {
|
|
40
47
|
customProviderUrl,
|
|
41
48
|
apiKey,
|
|
@@ -56,7 +63,7 @@ var anthropicModels = [
|
|
|
56
63
|
displayName: "Claude 3.5 Sonnet",
|
|
57
64
|
hasVision: true,
|
|
58
65
|
description: "Our most intelligent model to date",
|
|
59
|
-
contextWindow:
|
|
66
|
+
contextWindow: 200000,
|
|
60
67
|
maxOutputTokens: 8192,
|
|
61
68
|
price: {
|
|
62
69
|
input: 27,
|
|
@@ -70,7 +77,7 @@ var anthropicModels = [
|
|
|
70
77
|
displayName: "Claude 3.7 Sonnet",
|
|
71
78
|
hasVision: true,
|
|
72
79
|
description: "Our most intelligent model to date",
|
|
73
|
-
contextWindow:
|
|
80
|
+
contextWindow: 200000,
|
|
74
81
|
maxOutputTokens: 8192,
|
|
75
82
|
price: {
|
|
76
83
|
input: 27,
|
|
@@ -84,7 +91,7 @@ var anthropicModels = [
|
|
|
84
91
|
displayName: "Claude 3.5 Haiku",
|
|
85
92
|
hasVision: false,
|
|
86
93
|
description: "Fastest, most cost-effective model",
|
|
87
|
-
contextWindow:
|
|
94
|
+
contextWindow: 200000,
|
|
88
95
|
maxOutputTokens: 8192,
|
|
89
96
|
price: {
|
|
90
97
|
input: 7.2,
|
|
@@ -95,24 +102,24 @@ var anthropicModels = [
|
|
|
95
102
|
}
|
|
96
103
|
];
|
|
97
104
|
function isAdaptiveThinkingModelId(model) {
|
|
98
|
-
if (!model)
|
|
105
|
+
if (!model)
|
|
106
|
+
return false;
|
|
99
107
|
const n = model.toLowerCase();
|
|
100
108
|
return n.includes("fable-5") || n.includes("opus-5") || n.includes("sonnet-5") || n.includes("haiku-5") || n.includes("opus-4-8") || n.includes("opus-4-7") || n.includes("sonnet-4-6") || n.includes("opus-4-6");
|
|
101
109
|
}
|
|
102
110
|
var PUBLISHED_MAX_OUTPUT_TOKENS = {
|
|
103
|
-
|
|
104
|
-
"claude-
|
|
105
|
-
"claude-
|
|
106
|
-
"claude-
|
|
107
|
-
"claude-
|
|
108
|
-
"claude-
|
|
109
|
-
"claude-sonnet-5": 128e3
|
|
111
|
+
"claude-opus-5-5": 128000,
|
|
112
|
+
"claude-sonnet-5-5": 128000,
|
|
113
|
+
"claude-haiku-5-5": 128000,
|
|
114
|
+
"claude-fable-5": 128000,
|
|
115
|
+
"claude-opus-5": 128000,
|
|
116
|
+
"claude-sonnet-5": 128000
|
|
110
117
|
};
|
|
111
118
|
function anthropicPublishedMaxOutputTokens(model) {
|
|
112
|
-
if (!model)
|
|
119
|
+
if (!model)
|
|
120
|
+
return;
|
|
113
121
|
return PUBLISHED_MAX_OUTPUT_TOKENS[model];
|
|
114
122
|
}
|
|
115
|
-
|
|
116
123
|
// packages/ai/agent/liveAudioModel.ts
|
|
117
124
|
var DEFAULT_GOOGLE_LIVE_AUDIO_MODEL = "gemini-3.8-live";
|
|
118
125
|
|
|
@@ -169,7 +176,6 @@ var googleModels = [
|
|
|
169
176
|
maxOutputTokens: 65536,
|
|
170
177
|
supportsTool: true,
|
|
171
178
|
supportsReasoningEffort: true,
|
|
172
|
-
// Antigravity's subscription wire route is tiered; Gemini API uses this logical id.
|
|
173
179
|
price: {
|
|
174
180
|
input: 6,
|
|
175
181
|
output: 30,
|
|
@@ -220,12 +226,10 @@ var googleModels = [
|
|
|
220
226
|
description: "Gemini 4 Argon flagship reasoning, coding, and multimodal model.",
|
|
221
227
|
hasVision: true,
|
|
222
228
|
hasAudio: true,
|
|
223
|
-
// TODO(model-spec): 上下文/最大输出沿用 Gemini 3.x 的 1M/64K 占位,待官方模型页确认后更新。
|
|
224
229
|
contextWindow: 1048576,
|
|
225
230
|
maxOutputTokens: 65536,
|
|
226
231
|
supportsTool: true,
|
|
227
232
|
supportsReasoningEffort: true,
|
|
228
|
-
// so cachingWrite mirrors cachingRead).
|
|
229
233
|
price: {
|
|
230
234
|
input: 32,
|
|
231
235
|
output: 160,
|
|
@@ -244,12 +248,6 @@ var googleModels = [
|
|
|
244
248
|
maxOutputTokens: 65536,
|
|
245
249
|
supportsTool: true,
|
|
246
250
|
supportsReasoningEffort: true,
|
|
247
|
-
// 官方 Gemini API pricing (Standard tier, checked 2026-11-19):
|
|
248
|
-
// 数字真值在 ai/llm/geminiNeonPricing.ts(nolo 托管目录共用同一份,避免同一上游
|
|
249
|
-
// 价目出现两份生产真值);× 8 = credits,与本文件其它条目同口径。
|
|
250
|
-
// Implicit caching only (explicit caching unsupported), so cachingWrite mirrors cachingRead.
|
|
251
|
-
// 档位:Flex = 0.5x、Priority = 1.8x(官方同步线路的 service_tier)。平台没有 Batch
|
|
252
|
-
// 线路(Batch API 是独立的异步接口,本仓库不接),故不登记 batch 倍率。
|
|
253
251
|
price: {
|
|
254
252
|
input: GEMINI_NEON_STANDARD_PRICE_USD.input * 8,
|
|
255
253
|
output: GEMINI_NEON_STANDARD_PRICE_USD.output * 8,
|
|
@@ -343,7 +341,7 @@ var openAIModels = [
|
|
|
343
341
|
endpointKey: "responses",
|
|
344
342
|
hasVision: true,
|
|
345
343
|
contextWindow: 1047576,
|
|
346
|
-
maxOutputTokens:
|
|
344
|
+
maxOutputTokens: 128000,
|
|
347
345
|
supportsReasoningEffort: true,
|
|
348
346
|
price: GPT_5_5_STANDARD_PRICE,
|
|
349
347
|
pricingStrategy: {
|
|
@@ -361,8 +359,8 @@ var openAIModels = [
|
|
|
361
359
|
displayName: "GPT-5.6 Sol (Flagship)",
|
|
362
360
|
endpointKey: "responses",
|
|
363
361
|
hasVision: true,
|
|
364
|
-
contextWindow:
|
|
365
|
-
maxOutputTokens:
|
|
362
|
+
contextWindow: 1050000,
|
|
363
|
+
maxOutputTokens: 128000,
|
|
366
364
|
supportsReasoningEffort: true,
|
|
367
365
|
price: GPT_5_6_SOL_STANDARD_PRICE,
|
|
368
366
|
pricingStrategy: {
|
|
@@ -380,8 +378,8 @@ var openAIModels = [
|
|
|
380
378
|
displayName: "GPT-5.6 Terra (Balanced)",
|
|
381
379
|
endpointKey: "responses",
|
|
382
380
|
hasVision: true,
|
|
383
|
-
contextWindow:
|
|
384
|
-
maxOutputTokens:
|
|
381
|
+
contextWindow: 1050000,
|
|
382
|
+
maxOutputTokens: 128000,
|
|
385
383
|
supportsReasoningEffort: true,
|
|
386
384
|
price: GPT_5_6_TERRA_STANDARD_PRICE,
|
|
387
385
|
pricingStrategy: {
|
|
@@ -397,13 +395,10 @@ var openAIModels = [
|
|
|
397
395
|
{
|
|
398
396
|
name: "gpt-5.6-luna",
|
|
399
397
|
displayName: "GPT-5.6 Luna (Fast)",
|
|
400
|
-
// 已知缺口(2026-09-24 官网核对):官方对 >272K 输入有 2x/1.5x 规则,本条目
|
|
401
|
-
// 未建模档位;平台托管侧又明确「价不随档位浮动」。是否给 BYO 档位属于计费
|
|
402
|
-
// 策略决定,留待 owner 决策,不在此顺手改。
|
|
403
398
|
endpointKey: "responses",
|
|
404
399
|
hasVision: true,
|
|
405
|
-
contextWindow:
|
|
406
|
-
maxOutputTokens:
|
|
400
|
+
contextWindow: 1050000,
|
|
401
|
+
maxOutputTokens: 128000,
|
|
407
402
|
supportsReasoningEffort: true,
|
|
408
403
|
price: GPT_5_6_LUNA_PRICE
|
|
409
404
|
},
|
|
@@ -412,8 +407,8 @@ var openAIModels = [
|
|
|
412
407
|
displayName: "GPT-6.2 Astra",
|
|
413
408
|
endpointKey: "responses",
|
|
414
409
|
hasVision: true,
|
|
415
|
-
contextWindow:
|
|
416
|
-
maxOutputTokens:
|
|
410
|
+
contextWindow: 1050000,
|
|
411
|
+
maxOutputTokens: 128000,
|
|
417
412
|
supportsReasoningEffort: true,
|
|
418
413
|
price: GPT_6_2_ASTRA_STANDARD_PRICE,
|
|
419
414
|
pricingStrategy: {
|
|
@@ -431,8 +426,8 @@ var openAIModels = [
|
|
|
431
426
|
displayName: "GPT-6.2 Sol",
|
|
432
427
|
endpointKey: "responses",
|
|
433
428
|
hasVision: true,
|
|
434
|
-
contextWindow:
|
|
435
|
-
maxOutputTokens:
|
|
429
|
+
contextWindow: 1050000,
|
|
430
|
+
maxOutputTokens: 128000,
|
|
436
431
|
supportsReasoningEffort: true,
|
|
437
432
|
price: GPT_6_2_SOL_STANDARD_PRICE,
|
|
438
433
|
pricingStrategy: {
|
|
@@ -450,8 +445,8 @@ var openAIModels = [
|
|
|
450
445
|
displayName: "GPT-6 Astra",
|
|
451
446
|
endpointKey: "responses",
|
|
452
447
|
hasVision: true,
|
|
453
|
-
contextWindow:
|
|
454
|
-
maxOutputTokens:
|
|
448
|
+
contextWindow: 1050000,
|
|
449
|
+
maxOutputTokens: 128000,
|
|
455
450
|
supportsReasoningEffort: true,
|
|
456
451
|
price: GPT_6_ASTRA_STANDARD_PRICE,
|
|
457
452
|
pricingStrategy: {
|
|
@@ -470,7 +465,7 @@ var openAIModels = [
|
|
|
470
465
|
endpointKey: "responses",
|
|
471
466
|
hasVision: true,
|
|
472
467
|
contextWindow: 1047576,
|
|
473
|
-
maxOutputTokens:
|
|
468
|
+
maxOutputTokens: 128000,
|
|
474
469
|
supportsReasoningEffort: true,
|
|
475
470
|
price: GPT_5_5_PRO_STANDARD_PRICE,
|
|
476
471
|
pricingStrategy: {
|
|
@@ -485,6 +480,10 @@ var openAIModels = [
|
|
|
485
480
|
}
|
|
486
481
|
];
|
|
487
482
|
|
|
483
|
+
// packages/ai/llm/openrouterModels.ts
|
|
484
|
+
var OPENROUTER_MODELS = [];
|
|
485
|
+
var openrouterModels = OPENROUTER_MODELS;
|
|
486
|
+
|
|
488
487
|
// packages/ai/llm/deepinfra.ts
|
|
489
488
|
var DEEPINFRA_CLAUDE_HAIKU_PRICE = {
|
|
490
489
|
input: 1 * 9,
|
|
@@ -508,7 +507,7 @@ var deepinfraModels = [
|
|
|
508
507
|
displayName: "Anthropic: Claude Haiku 4.5",
|
|
509
508
|
hasVision: true,
|
|
510
509
|
price: { ...DEEPINFRA_CLAUDE_HAIKU_PRICE },
|
|
511
|
-
contextWindow:
|
|
510
|
+
contextWindow: 195000,
|
|
512
511
|
maxOutputTokens: 4092,
|
|
513
512
|
supportsTool: false
|
|
514
513
|
},
|
|
@@ -517,7 +516,7 @@ var deepinfraModels = [
|
|
|
517
516
|
displayName: "Anthropic: Claude Sonnet 5",
|
|
518
517
|
hasVision: true,
|
|
519
518
|
price: { ...DEEPINFRA_CLAUDE_SONNET_PRICE },
|
|
520
|
-
contextWindow:
|
|
519
|
+
contextWindow: 976000,
|
|
521
520
|
maxOutputTokens: 4092,
|
|
522
521
|
supportsTool: false
|
|
523
522
|
},
|
|
@@ -526,7 +525,7 @@ var deepinfraModels = [
|
|
|
526
525
|
displayName: "Anthropic: Claude Opus 5",
|
|
527
526
|
hasVision: true,
|
|
528
527
|
price: { ...DEEPINFRA_CLAUDE_OPUS_PRICE },
|
|
529
|
-
contextWindow:
|
|
528
|
+
contextWindow: 976000,
|
|
530
529
|
maxOutputTokens: 4092,
|
|
531
530
|
supportsTool: false
|
|
532
531
|
},
|
|
@@ -535,7 +534,7 @@ var deepinfraModels = [
|
|
|
535
534
|
displayName: "Anthropic: Claude Fable 5",
|
|
536
535
|
hasVision: true,
|
|
537
536
|
price: { ...DEEPINFRA_CLAUDE_FABLE_PRICE },
|
|
538
|
-
contextWindow:
|
|
537
|
+
contextWindow: 976000,
|
|
539
538
|
maxOutputTokens: 4092,
|
|
540
539
|
supportsTool: false
|
|
541
540
|
}
|
|
@@ -587,7 +586,7 @@ var xaiModels = [
|
|
|
587
586
|
name: "grok-4.6",
|
|
588
587
|
displayName: "Grok 4.6",
|
|
589
588
|
hasVision: true,
|
|
590
|
-
contextWindow:
|
|
589
|
+
contextWindow: 500000,
|
|
591
590
|
price: { input: 16, output: 48, inputCacheHit: 4 },
|
|
592
591
|
pricingStrategy: {
|
|
593
592
|
type: "tiered_context",
|
|
@@ -606,22 +605,19 @@ var xaiModels = [
|
|
|
606
605
|
// packages/ai/llm/fireworks.ts
|
|
607
606
|
var fireworksModels = [
|
|
608
607
|
{
|
|
609
|
-
// 2026-11-04:Kimi 三条历史 id 统一指向这里。Fireworks 真实 id 为 kimi-k3
|
|
610
|
-
// (https://app.fireworks.ai/models/fireworks/kimi-k3);价格沿用平台 Kimi K3 目录价。
|
|
611
608
|
name: "accounts/fireworks/models/kimi-k3",
|
|
612
609
|
displayName: "MoonshotAI: Kimi K3",
|
|
613
610
|
hasVision: true,
|
|
614
611
|
price: { input: 24, output: 120, cachingRead: 2.4 },
|
|
615
|
-
contextWindow:
|
|
612
|
+
contextWindow: 256000,
|
|
616
613
|
supportsTool: true
|
|
617
614
|
},
|
|
618
615
|
{
|
|
619
|
-
// 2026-11-04:minimax-m3 记录迁移到这里。Fireworks 真实 id 为 minimax-m3p1-flash
|
|
620
616
|
name: "accounts/fireworks/models/minimax-m3p1-flash",
|
|
621
617
|
displayName: "MiniMax: MiniMax M3.1 Flash",
|
|
622
618
|
hasVision: true,
|
|
623
619
|
price: { input: 0.6, output: 2.4, cachingRead: 0.06 },
|
|
624
|
-
contextWindow:
|
|
620
|
+
contextWindow: 512000,
|
|
625
621
|
supportsTool: true
|
|
626
622
|
},
|
|
627
623
|
{
|
|
@@ -633,11 +629,139 @@ var fireworksModels = [
|
|
|
633
629
|
output: 9.6,
|
|
634
630
|
cachingRead: 0.48
|
|
635
631
|
},
|
|
636
|
-
contextWindow:
|
|
632
|
+
contextWindow: 512000,
|
|
637
633
|
supportsTool: true
|
|
638
634
|
}
|
|
639
635
|
];
|
|
640
636
|
|
|
637
|
+
// packages/ai/llm/cloudflare.ts
|
|
638
|
+
var getCloudflareWorkersAiChatCompletionsUrl = (accountId = (typeof process !== "undefined" ? process.env?.CLOUDFLARE_ACCOUNT_ID : undefined)?.trim()) => {
|
|
639
|
+
if (!accountId) {
|
|
640
|
+
throw new Error("CLOUDFLARE_ACCOUNT_ID is required for Cloudflare Workers AI chat completions");
|
|
641
|
+
}
|
|
642
|
+
return `https://api.cloudflare.com/client/v4/accounts/${accountId}/ai/v1/chat/completions`;
|
|
643
|
+
};
|
|
644
|
+
var cloudflareModels = [];
|
|
645
|
+
|
|
646
|
+
// packages/ai/llm/gmi.ts
|
|
647
|
+
var GMI_CHAT_COMPLETIONS_URL = "https://api.gmi-serving.com/v1/chat/completions";
|
|
648
|
+
var gmiModels = [];
|
|
649
|
+
|
|
650
|
+
// packages/ai/llm/zai.ts
|
|
651
|
+
var zaiModels = [];
|
|
652
|
+
|
|
653
|
+
// packages/ai/agent/cliProviders.ts
|
|
654
|
+
var CLI_PROVIDER_VALUES = [
|
|
655
|
+
"claude",
|
|
656
|
+
"codex",
|
|
657
|
+
"agy",
|
|
658
|
+
"opencode",
|
|
659
|
+
"copilot",
|
|
660
|
+
"qoder",
|
|
661
|
+
"grok",
|
|
662
|
+
"kimi",
|
|
663
|
+
"gemini"
|
|
664
|
+
];
|
|
665
|
+
var CREATABLE_CLI_PROVIDERS = CLI_PROVIDER_VALUES.filter((value) => value !== "gemini");
|
|
666
|
+
function isCliProvider(value) {
|
|
667
|
+
return typeof value === "string" && CLI_PROVIDER_VALUES.includes(value);
|
|
668
|
+
}
|
|
669
|
+
var CLI_PROVIDER_DISPLAY_LABELS = {
|
|
670
|
+
copilot: "GitHub Copilot CLI(gh copilot)",
|
|
671
|
+
gemini: "Gemini CLI(gemini)",
|
|
672
|
+
codex: "OpenAI Codex CLI(codex exec)",
|
|
673
|
+
claude: "Claude CLI(claude)",
|
|
674
|
+
agy: "Google Antigravity CLI(agy)",
|
|
675
|
+
qoder: "Qoder CLI(qoder)",
|
|
676
|
+
opencode: "OpenCode CLI(opencode)",
|
|
677
|
+
grok: "Grok CLI(grok)",
|
|
678
|
+
kimi: "Kimi Code CLI(kimi)"
|
|
679
|
+
};
|
|
680
|
+
var CLI_PROVIDER_GROUPS = [
|
|
681
|
+
{
|
|
682
|
+
id: "coding",
|
|
683
|
+
label: "代码与工程协同 CLI",
|
|
684
|
+
items: ["copilot", "claude", "codex", "qoder", "opencode"].map((value) => ({
|
|
685
|
+
value,
|
|
686
|
+
label: CLI_PROVIDER_DISPLAY_LABELS[value]
|
|
687
|
+
}))
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
id: "multimodal",
|
|
691
|
+
label: "推理与通用多模态 CLI",
|
|
692
|
+
items: ["gemini", "grok", "kimi", "agy"].map((value) => ({
|
|
693
|
+
value,
|
|
694
|
+
label: CLI_PROVIDER_DISPLAY_LABELS[value]
|
|
695
|
+
}))
|
|
696
|
+
}
|
|
697
|
+
];
|
|
698
|
+
var CLI_PROVIDER_OPTIONS = CREATABLE_CLI_PROVIDERS.map((value) => ({
|
|
699
|
+
value,
|
|
700
|
+
label: CLI_PROVIDER_DISPLAY_LABELS[value]
|
|
701
|
+
}));
|
|
702
|
+
// packages/ai/agent/createAgentSchema.ts
|
|
703
|
+
var DEFAULT_REASONING_EFFORT = "medium";
|
|
704
|
+
var REASONING_EFFORT_OPTIONS = [
|
|
705
|
+
"none",
|
|
706
|
+
"minimal",
|
|
707
|
+
"low",
|
|
708
|
+
"medium",
|
|
709
|
+
"high",
|
|
710
|
+
"xhigh",
|
|
711
|
+
"max",
|
|
712
|
+
"ultra"
|
|
713
|
+
];
|
|
714
|
+
var PROVIDER_REASONING_EFFORT_VALUES = {
|
|
715
|
+
openai: ["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"],
|
|
716
|
+
openrouter: ["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"],
|
|
717
|
+
deepseek: ["low", "high", "max"],
|
|
718
|
+
nolo: ["low", "high", "max"],
|
|
719
|
+
xai: ["low", "medium", "high"],
|
|
720
|
+
grok: ["low", "medium", "high"],
|
|
721
|
+
kimi: ["none", "low", "high", "max"],
|
|
722
|
+
moonshot: ["none", "low", "high", "max"],
|
|
723
|
+
qwen: [],
|
|
724
|
+
minimax: ["none", "low", "medium", "high"],
|
|
725
|
+
cursor: [],
|
|
726
|
+
mimo: ["low", "medium", "high"],
|
|
727
|
+
commandcode: ["low", "medium", "high", "xhigh", "max"],
|
|
728
|
+
stepfun: ["none", "low", "medium", "high"],
|
|
729
|
+
lithosai: ["low", "high", "max"],
|
|
730
|
+
agy: ["low", "medium", "high", "xhigh", "max"]
|
|
731
|
+
};
|
|
732
|
+
var greetingMenuItemSchema = object({
|
|
733
|
+
id: pipe(string(), minLength(1)),
|
|
734
|
+
label: pipe(string(), minLength(1)),
|
|
735
|
+
userMessage: optional(string())
|
|
736
|
+
});
|
|
737
|
+
var greetingConfigSchema = object({
|
|
738
|
+
text: optional(pipe(string(), trim())),
|
|
739
|
+
menu: optional(array(greetingMenuItemSchema))
|
|
740
|
+
});
|
|
741
|
+
var runtimeToolPolicySchema = looseObject({
|
|
742
|
+
version: optional(literal(1)),
|
|
743
|
+
agentTools: optional(array(string())),
|
|
744
|
+
runtimeTools: optional(array(string())),
|
|
745
|
+
workspace: optional(object({
|
|
746
|
+
mode: optional(picklist(["none", "current", "lease"])),
|
|
747
|
+
writableRoots: optional(array(string())),
|
|
748
|
+
cwd: optional(string())
|
|
749
|
+
})),
|
|
750
|
+
shell: optional(record(string(), string())),
|
|
751
|
+
isolation: optional(record(string(), string())),
|
|
752
|
+
git: optional(record(string(), string())),
|
|
753
|
+
budget: optional(record(string(), string())),
|
|
754
|
+
audit: optional(record(string(), string()))
|
|
755
|
+
});
|
|
756
|
+
var referenceItemSchema = pipe(object({
|
|
757
|
+
dbKey: string(),
|
|
758
|
+
title: string(),
|
|
759
|
+
type: picklist(["knowledge", "instruction", "page"])
|
|
760
|
+
}), transform((data) => ({
|
|
761
|
+
...data,
|
|
762
|
+
type: data.type === "page" ? "knowledge" : data.type
|
|
763
|
+
})));
|
|
764
|
+
|
|
641
765
|
// packages/ai/agent/openrouterModelCapability.ts
|
|
642
766
|
var VALID_EFFORTS_SET = new Set(REASONING_EFFORT_OPTIONS);
|
|
643
767
|
function extractOpenRouterReasoningCapability(rawModel) {
|
|
@@ -659,9 +783,7 @@ function extractOpenRouterReasoningCapability(rawModel) {
|
|
|
659
783
|
};
|
|
660
784
|
}
|
|
661
785
|
const rawEfforts = reasoning?.supported_efforts ?? [];
|
|
662
|
-
const supportedEfforts = rawEfforts.filter(
|
|
663
|
-
(e) => VALID_EFFORTS_SET.has(e)
|
|
664
|
-
);
|
|
786
|
+
const supportedEfforts = rawEfforts.filter((e) => VALID_EFFORTS_SET.has(e));
|
|
665
787
|
let defaultEffort;
|
|
666
788
|
if (reasoning?.default_effort && VALID_EFFORTS_SET.has(reasoning.default_effort) && supportedEfforts.includes(reasoning.default_effort)) {
|
|
667
789
|
defaultEffort = reasoning.default_effort;
|
|
@@ -677,36 +799,31 @@ function extractOpenRouterReasoningCapability(rawModel) {
|
|
|
677
799
|
};
|
|
678
800
|
}
|
|
679
801
|
var cachedModels = null;
|
|
680
|
-
var CACHE_TTL_MS = 10 * 60 *
|
|
802
|
+
var CACHE_TTL_MS = 10 * 60 * 1000;
|
|
681
803
|
function getCachedOpenRouterModelReasoning(modelId) {
|
|
682
804
|
const trimmed = modelId.trim().toLowerCase();
|
|
683
|
-
if (!trimmed)
|
|
805
|
+
if (!trimmed)
|
|
806
|
+
return null;
|
|
684
807
|
if (!cachedModels || Date.now() - cachedModels.timestamp >= CACHE_TTL_MS) {
|
|
685
808
|
return null;
|
|
686
809
|
}
|
|
687
810
|
const rawModel = cachedModels.data.get(trimmed);
|
|
688
|
-
if (!rawModel)
|
|
811
|
+
if (!rawModel)
|
|
812
|
+
return null;
|
|
689
813
|
return extractOpenRouterReasoningCapability(rawModel);
|
|
690
814
|
}
|
|
691
815
|
|
|
692
816
|
// packages/ai/agent/modelReasoningCapability.ts
|
|
693
|
-
var GATEWAY_PROVIDERS =
|
|
694
|
-
var THINKING_MECHANISM_PROVIDERS =
|
|
817
|
+
var GATEWAY_PROVIDERS = new Set(["openrouter", "nolo"]);
|
|
818
|
+
var THINKING_MECHANISM_PROVIDERS = new Set(["anthropic", "google"]);
|
|
695
819
|
var MODEL_REASONING_OVERRIDES = [
|
|
696
820
|
{
|
|
697
|
-
// Google 官方 OpenAI 兼容文档给出 gemini-4-neon 的 reasoning_effort 映射
|
|
698
|
-
// (minimal→low、low→low、medium→medium、high→high、xhigh→xhigh,其中
|
|
699
|
-
// xhigh 仅 gemini-4-neon 与 gemini-4-hydrogen 支持):
|
|
700
|
-
// https://aistudio.google.com/docs/openai#thinking(2026-11-19 核对)。
|
|
701
|
-
// 只声明该模型:Google 的其它 Gemini 仍走 thinking_config,不在此列。
|
|
702
821
|
providers: ["google"],
|
|
703
822
|
prefix: "gemini-4-neon",
|
|
704
823
|
exact: true,
|
|
705
824
|
efforts: ["low", "medium", "high", "xhigh"],
|
|
706
|
-
note: "Gemini 4 Neon
|
|
825
|
+
note: "Gemini 4 Neon 在 Google OpenAI 兼容端点上的 reasoning_effort 档位(官方映射表)"
|
|
707
826
|
},
|
|
708
|
-
// Platform GPT models accept medium even though the nolo provider fallback
|
|
709
|
-
// describes DeepSeek's narrower low/high/max scale.
|
|
710
827
|
...["gpt-6.2-sol", "gpt-6.2-astra", "gpt-6.1-sol", "gpt-6.1-terra", "gpt-6-luna", "gpt-6-astra"].map((prefix) => ({
|
|
711
828
|
providers: ["openai"],
|
|
712
829
|
prefix,
|
|
@@ -714,110 +831,104 @@ var MODEL_REASONING_OVERRIDES = [
|
|
|
714
831
|
efforts: ["none", "low", "medium", "high", "xhigh", "max"],
|
|
715
832
|
note: "GPT-6 model-specific reasoning scale (platformHosted.ts model metadata)"
|
|
716
833
|
})),
|
|
717
|
-
// ---- OpenAI ----
|
|
718
834
|
{
|
|
719
835
|
providers: ["openai"],
|
|
720
836
|
prefix: "gpt-5",
|
|
721
837
|
includes: "-pro",
|
|
722
838
|
efforts: ["high"],
|
|
723
|
-
note: "gpt-5-pro
|
|
839
|
+
note: "gpt-5-pro 系列只暴露 high 档(OpenAI 文档:pro 变体不可调低)"
|
|
724
840
|
},
|
|
725
841
|
{
|
|
726
842
|
providers: ["openai"],
|
|
727
843
|
prefix: "o1-preview",
|
|
728
844
|
supportsReasoning: false,
|
|
729
|
-
note: "o1-preview
|
|
845
|
+
note: "o1-preview 不接受 reasoning_effort 参数"
|
|
730
846
|
},
|
|
731
847
|
{
|
|
732
848
|
providers: ["openai"],
|
|
733
849
|
prefix: "o1-mini",
|
|
734
850
|
supportsReasoning: false,
|
|
735
|
-
note: "o1-mini
|
|
851
|
+
note: "o1-mini 不接受 reasoning_effort 参数"
|
|
736
852
|
},
|
|
737
853
|
{
|
|
738
854
|
providers: ["openai"],
|
|
739
855
|
prefix: "o1",
|
|
740
856
|
efforts: ["low", "medium", "high"],
|
|
741
|
-
note: "o1
|
|
857
|
+
note: "o1 支持 low/medium/high,无 none/minimal/xhigh/max"
|
|
742
858
|
},
|
|
743
859
|
{
|
|
744
860
|
providers: ["openai"],
|
|
745
861
|
prefix: "o3",
|
|
746
862
|
efforts: ["low", "medium", "high"],
|
|
747
|
-
note: "o3 / o3-mini
|
|
863
|
+
note: "o3 / o3-mini 支持 low/medium/high"
|
|
748
864
|
},
|
|
749
865
|
{
|
|
750
866
|
providers: ["openai"],
|
|
751
867
|
prefix: "o4-mini",
|
|
752
868
|
efforts: ["low", "medium", "high"],
|
|
753
|
-
note: "o4-mini
|
|
869
|
+
note: "o4-mini 支持 low/medium/high"
|
|
754
870
|
},
|
|
755
871
|
{
|
|
756
872
|
providers: ["openai"],
|
|
757
873
|
prefix: "gpt-4o",
|
|
758
874
|
supportsReasoning: false,
|
|
759
|
-
note: "gpt-4o
|
|
875
|
+
note: "gpt-4o 系列非推理模型"
|
|
760
876
|
},
|
|
761
877
|
{
|
|
762
878
|
providers: ["openai"],
|
|
763
879
|
prefix: "gpt-4.1",
|
|
764
880
|
supportsReasoning: false,
|
|
765
|
-
note: "gpt-4.1
|
|
881
|
+
note: "gpt-4.1 系列非推理模型"
|
|
766
882
|
},
|
|
767
883
|
{
|
|
768
884
|
providers: ["openai"],
|
|
769
885
|
prefix: "chatgpt-4o",
|
|
770
886
|
supportsReasoning: false,
|
|
771
|
-
note: "chatgpt-4o
|
|
887
|
+
note: "chatgpt-4o 非推理模型"
|
|
772
888
|
},
|
|
773
|
-
// ---- xAI / Grok ----
|
|
774
889
|
{
|
|
775
890
|
providers: ["xai", "grok"],
|
|
776
891
|
prefix: "grok-3-mini",
|
|
777
892
|
efforts: ["low", "high"],
|
|
778
|
-
note: "grok-3-mini
|
|
893
|
+
note: "grok-3-mini 仅 low/high,无 medium(xAI 文档)"
|
|
779
894
|
},
|
|
780
895
|
{
|
|
781
896
|
providers: ["xai", "grok"],
|
|
782
897
|
prefix: "grok-3",
|
|
783
898
|
exact: true,
|
|
784
|
-
// 只匹配 grok-3 本体;grok-3-fast 等变体不被误伤
|
|
785
899
|
supportsReasoning: false,
|
|
786
|
-
note: "grok-3
|
|
900
|
+
note: "grok-3(非 mini)不支持 reasoning_effort"
|
|
787
901
|
},
|
|
788
902
|
{
|
|
789
903
|
providers: ["xai", "grok"],
|
|
790
904
|
prefix: "grok-2",
|
|
791
905
|
supportsReasoning: false,
|
|
792
|
-
note: "grok-2
|
|
906
|
+
note: "grok-2 系列非推理模型"
|
|
793
907
|
},
|
|
794
|
-
// ---- DeepSeek ----
|
|
795
908
|
{
|
|
796
909
|
providers: ["deepseek"],
|
|
797
910
|
prefix: "deepseek-chat",
|
|
798
911
|
exact: true,
|
|
799
|
-
// 只匹配 deepseek-chat 本体;deepseek-chat-v3.1 是混合推理模型
|
|
800
912
|
supportsReasoning: false,
|
|
801
|
-
note: "deepseek-chat
|
|
913
|
+
note: "deepseek-chat(V3 非推理线)无推理强度"
|
|
802
914
|
},
|
|
803
|
-
// ---- Kimi / Moonshot ----
|
|
804
915
|
{
|
|
805
916
|
providers: ["kimi", "moonshot"],
|
|
806
917
|
prefix: "moonshot-v1",
|
|
807
918
|
supportsReasoning: false,
|
|
808
|
-
note: "moonshot-v1
|
|
919
|
+
note: "moonshot-v1 系列非推理模型"
|
|
809
920
|
},
|
|
810
921
|
{
|
|
811
922
|
providers: ["kimi", "moonshot"],
|
|
812
923
|
prefix: "kimi-k2-instruct",
|
|
813
924
|
supportsReasoning: false,
|
|
814
|
-
note: "kimi-k2-instruct
|
|
925
|
+
note: "kimi-k2-instruct 非 thinking 变体"
|
|
815
926
|
},
|
|
816
927
|
{
|
|
817
928
|
providers: ["kimi", "moonshot"],
|
|
818
929
|
prefix: "kimi-latest",
|
|
819
930
|
supportsReasoning: false,
|
|
820
|
-
note: "kimi-latest
|
|
931
|
+
note: "kimi-latest 指向非推理快照"
|
|
821
932
|
}
|
|
822
933
|
];
|
|
823
934
|
function modelBasename(model) {
|
|
@@ -831,9 +942,11 @@ function matchOverride(provider, model) {
|
|
|
831
942
|
let best = null;
|
|
832
943
|
let bestPrefixLen = -1;
|
|
833
944
|
for (const o of MODEL_REASONING_OVERRIDES) {
|
|
834
|
-
if (!isGateway && !o.providers.includes(provider))
|
|
945
|
+
if (!isGateway && !o.providers.includes(provider))
|
|
946
|
+
continue;
|
|
835
947
|
const hit = o.exact ? m === o.prefix || base === o.prefix : m.startsWith(o.prefix) || base.startsWith(o.prefix);
|
|
836
|
-
if (!hit)
|
|
948
|
+
if (!hit)
|
|
949
|
+
continue;
|
|
837
950
|
if (o.includes && !m.includes(o.includes) && !base.includes(o.includes)) {
|
|
838
951
|
continue;
|
|
839
952
|
}
|
|
@@ -879,7 +992,6 @@ function resolveModelReasoningCapability(provider, model) {
|
|
|
879
992
|
return {
|
|
880
993
|
found: false,
|
|
881
994
|
supportsReasoning: true,
|
|
882
|
-
// 有推理能力,只是走 Thinking 机制而非 effort
|
|
883
995
|
efforts: [],
|
|
884
996
|
source: "provider-map"
|
|
885
997
|
};
|
|
@@ -913,7 +1025,7 @@ function resolveModelReasoningCapabilityWithCache(provider, model) {
|
|
|
913
1025
|
}
|
|
914
1026
|
|
|
915
1027
|
// packages/ai/llm/reasoningModels.ts
|
|
916
|
-
var REASONING_MODEL_NAMES =
|
|
1028
|
+
var REASONING_MODEL_NAMES = new Set([
|
|
917
1029
|
"deepseek-flash",
|
|
918
1030
|
"deepseek-v4-flash",
|
|
919
1031
|
"deepseek-v4.1-flash",
|
|
@@ -921,11 +1033,7 @@ var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
|
|
|
921
1033
|
"gemini-3.7-flash",
|
|
922
1034
|
"gemini-3.8-flash",
|
|
923
1035
|
"gemini-3.6-flash",
|
|
924
|
-
// Gemini 4 Neon:Google OpenAI 兼容端点接受 reasoning_effort(官方映射表
|
|
925
|
-
// https://aistudio.google.com/docs/openai#thinking,2026-11-19 核对,
|
|
926
|
-
// xhigh 仅 gemini-4-neon / gemini-4-hydrogen 支持)。
|
|
927
1036
|
"gemini-4-neon",
|
|
928
|
-
// Legacy Gemini ids — 已从模型注册表下线,保留只为存量 agent 的 reasoning UI。
|
|
929
1037
|
"gemini-3.5-flash",
|
|
930
1038
|
"gemini-3-flash-preview",
|
|
931
1039
|
"gemini-3-pro-preview",
|
|
@@ -945,8 +1053,6 @@ var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
|
|
|
945
1053
|
"glm-5.2",
|
|
946
1054
|
"kimi-k3",
|
|
947
1055
|
"kimi-k3.1-pro",
|
|
948
|
-
// Legacy OpenAI catalog ids — still support reasoning UI for agents that
|
|
949
|
-
// were never re-seeded after GPT-5.4 / GPT-5 were retired from the picker.
|
|
950
1056
|
"gpt-5.4",
|
|
951
1057
|
"gpt-5.4-mini",
|
|
952
1058
|
"gpt-5.4-nano",
|
|
@@ -980,9 +1086,11 @@ var EFFORT_ORDER = [
|
|
|
980
1086
|
];
|
|
981
1087
|
function nearestSupportedEffort(effort, supported) {
|
|
982
1088
|
const effortIdx = EFFORT_ORDER.indexOf(effort);
|
|
983
|
-
if (effortIdx === -1)
|
|
1089
|
+
if (effortIdx === -1)
|
|
1090
|
+
return;
|
|
984
1091
|
const supportedIdxs = supported.map((s) => EFFORT_ORDER.indexOf(s)).filter((idx) => idx >= 0).sort((a, b) => a - b);
|
|
985
|
-
if (supportedIdxs.length === 0)
|
|
1092
|
+
if (supportedIdxs.length === 0)
|
|
1093
|
+
return;
|
|
986
1094
|
let best = supportedIdxs[0];
|
|
987
1095
|
let bestDist = Math.abs(best - effortIdx);
|
|
988
1096
|
for (const idx of supportedIdxs) {
|
|
@@ -995,21 +1103,23 @@ function nearestSupportedEffort(effort, supported) {
|
|
|
995
1103
|
return EFFORT_ORDER[best];
|
|
996
1104
|
}
|
|
997
1105
|
function clampReasoningEffort(effort, provider, model) {
|
|
998
|
-
if (!effort)
|
|
1106
|
+
if (!effort)
|
|
1107
|
+
return;
|
|
999
1108
|
const normalized = effort === "off" ? "none" : effort;
|
|
1000
1109
|
const providerLower = (provider ?? "").toLowerCase();
|
|
1001
|
-
const modelCapability = model ? resolveModelReasoningCapabilityWithCache(provider, model) :
|
|
1110
|
+
const modelCapability = model ? resolveModelReasoningCapabilityWithCache(provider, model) : undefined;
|
|
1002
1111
|
const hasModelLevelEfforts = Boolean(modelCapability?.found && modelCapability.supportsReasoning) && (modelCapability?.efforts.length ?? 0) > 0;
|
|
1003
1112
|
if (THINKING_MECHANISM_PROVIDERS.has(providerLower) && !hasModelLevelEfforts) {
|
|
1004
|
-
return
|
|
1113
|
+
return;
|
|
1005
1114
|
}
|
|
1006
1115
|
if (modelCapability) {
|
|
1007
1116
|
const cap = modelCapability;
|
|
1008
1117
|
if (cap.found) {
|
|
1009
1118
|
if (!cap.supportsReasoning || cap.efforts.length === 0) {
|
|
1010
|
-
return
|
|
1119
|
+
return;
|
|
1011
1120
|
}
|
|
1012
|
-
if (cap.efforts.includes(normalized))
|
|
1121
|
+
if (cap.efforts.includes(normalized))
|
|
1122
|
+
return normalized;
|
|
1013
1123
|
return nearestSupportedEffort(normalized, cap.efforts);
|
|
1014
1124
|
}
|
|
1015
1125
|
}
|
|
@@ -1018,17 +1128,19 @@ function clampReasoningEffort(effort, provider, model) {
|
|
|
1018
1128
|
if (normalized === "low" || normalized === "medium" || normalized === "high") {
|
|
1019
1129
|
return normalized;
|
|
1020
1130
|
}
|
|
1021
|
-
const effortIdx = EFFORT_ORDER.indexOf(
|
|
1022
|
-
normalized
|
|
1023
|
-
);
|
|
1131
|
+
const effortIdx = EFFORT_ORDER.indexOf(normalized);
|
|
1024
1132
|
const highIdx = EFFORT_ORDER.indexOf("high");
|
|
1025
1133
|
const lowIdx = EFFORT_ORDER.indexOf("low");
|
|
1026
|
-
if (effortIdx === -1)
|
|
1027
|
-
|
|
1028
|
-
if (effortIdx
|
|
1134
|
+
if (effortIdx === -1)
|
|
1135
|
+
return;
|
|
1136
|
+
if (effortIdx > highIdx)
|
|
1137
|
+
return "high";
|
|
1138
|
+
if (effortIdx < lowIdx)
|
|
1139
|
+
return "low";
|
|
1029
1140
|
return normalized;
|
|
1030
1141
|
}
|
|
1031
|
-
if (supported.includes(normalized))
|
|
1142
|
+
if (supported.includes(normalized))
|
|
1143
|
+
return normalized;
|
|
1032
1144
|
return nearestSupportedEffort(normalized, supported);
|
|
1033
1145
|
}
|
|
1034
1146
|
|
|
@@ -1037,15 +1149,14 @@ var stepfunAllModels = [...stepfunModels, ...stepfunStepPlanModels];
|
|
|
1037
1149
|
var moonshotAllModels = [...moonshotModels, ...kimiCodeModels];
|
|
1038
1150
|
var qwenAllModels = [...qwenModels, ...qwenTokenPlanModels];
|
|
1039
1151
|
var devinModels = [
|
|
1040
|
-
{ name: "swe-2-max", displayName: "SWE-2 Max", hasVision: true, contextWindow:
|
|
1041
|
-
{ name: "swe-2-high", displayName: "SWE-2 High", hasVision: true, contextWindow:
|
|
1042
|
-
{ name: "swe-2-medium", displayName: "SWE-2 Medium", hasVision: true, contextWindow:
|
|
1043
|
-
{ name: "swe-1-7", displayName: "SWE-1.7 Max", hasVision: true, contextWindow:
|
|
1152
|
+
{ name: "swe-2-max", displayName: "SWE-2 Max", hasVision: true, contextWindow: 262000, price: { input: 0, output: 0 } },
|
|
1153
|
+
{ name: "swe-2-high", displayName: "SWE-2 High", hasVision: true, contextWindow: 262000, price: { input: 0, output: 0 } },
|
|
1154
|
+
{ name: "swe-2-medium", displayName: "SWE-2 Medium", hasVision: true, contextWindow: 262000, price: { input: 0, output: 0 } },
|
|
1155
|
+
{ name: "swe-1-7", displayName: "SWE-1.7 Max", hasVision: true, contextWindow: 262000, price: { input: 0, output: 0 } },
|
|
1044
1156
|
{ name: "swe-1-7-lightning", displayName: "SWE-1.7 Lightning Max", hasVision: true, contextWindow: 202752, price: { input: 0, output: 0 } },
|
|
1045
|
-
{ name: "swe-1-6-fast", displayName: "SWE-1.6 Fast", hasVision: true, contextWindow:
|
|
1157
|
+
{ name: "swe-1-6-fast", displayName: "SWE-1.6 Fast", hasVision: true, contextWindow: 200000, price: { input: 0, output: 0 } }
|
|
1046
1158
|
];
|
|
1047
1159
|
var MODEL_MAP = {
|
|
1048
|
-
// anthropic: anthropicModels,
|
|
1049
1160
|
google: googleModels,
|
|
1050
1161
|
openai: openAIModels,
|
|
1051
1162
|
deepinfra: deepinfraModels,
|
|
@@ -1069,9 +1180,6 @@ var MODEL_LOOKUP_MAP = {
|
|
|
1069
1180
|
"opencode-go": opencodeGoModels,
|
|
1070
1181
|
opencode: opencodeGoModels,
|
|
1071
1182
|
...MODEL_MAP,
|
|
1072
|
-
// CommandCode Provider API(api.commandcode.ai):CommandCode 清单是窗口真值源,
|
|
1073
|
-
// 但只把「带官方口径 contextWindow」的条目挂进窗口表——官方未公布窗口的模型不进表、
|
|
1074
|
-
// 不猜值。用过滤而非整表:整表会让 displayName 与其它 provider 的同名条目互相覆盖。
|
|
1075
1183
|
commandcode: commandCodeModels.filter((m) => typeof m.contextWindow === "number")
|
|
1076
1184
|
};
|
|
1077
1185
|
var ANTHROPIC_MODEL_ALIASES = {
|
|
@@ -1086,10 +1194,10 @@ var NOLO_MODEL_ALIASES = {
|
|
|
1086
1194
|
"glm-5.3-flash": "glm-5-3-flash",
|
|
1087
1195
|
"deepseek-v4-flash": "deepseek-flash",
|
|
1088
1196
|
"deepseek-v4-flash-vision-exp": "deepseek-flash"
|
|
1089
|
-
// deepseek-v4-pro 已恢复为平台托管一等模型(2026-09-14 官方继续提供),不再折到 flash。
|
|
1090
1197
|
};
|
|
1091
1198
|
var normalizeLookupProvider = (provider) => {
|
|
1092
|
-
if (!provider)
|
|
1199
|
+
if (!provider)
|
|
1200
|
+
return null;
|
|
1093
1201
|
const normalized = provider.toLowerCase();
|
|
1094
1202
|
if (normalized === "ollama-cloud" || normalized === "deepseek") {
|
|
1095
1203
|
return "nolo";
|
|
@@ -1110,7 +1218,7 @@ var normalizeLookupModelName = (provider, name) => {
|
|
|
1110
1218
|
};
|
|
1111
1219
|
var toModel = (candidate) => ({
|
|
1112
1220
|
name: typeof candidate.id === "string" && candidate.id.trim() ? candidate.id : candidate.name,
|
|
1113
|
-
displayName: candidate.displayName ?? (typeof candidate.id === "string" && candidate.id !== candidate.name ? candidate.name :
|
|
1221
|
+
displayName: candidate.displayName ?? (typeof candidate.id === "string" && candidate.id !== candidate.name ? candidate.name : undefined),
|
|
1114
1222
|
hasVision: typeof candidate.hasVision === "boolean" ? candidate.hasVision : !!candidate.supportVision,
|
|
1115
1223
|
contextWindow: candidate.contextWindow,
|
|
1116
1224
|
price: candidate.price ?? candidate.pricing ?? { input: 0, output: 0 },
|
|
@@ -1120,7 +1228,6 @@ var toModel = (candidate) => ({
|
|
|
1120
1228
|
serviceTierPriceMultipliers: candidate.serviceTierPriceMultipliers,
|
|
1121
1229
|
maxOutputTokens: candidate.maxOutputTokens ?? candidate.maxTokens,
|
|
1122
1230
|
jsonOutput: candidate.jsonOutput,
|
|
1123
|
-
/** Preserve model-level native wire protocol metadata through catalog projection. */
|
|
1124
1231
|
nativeProtocol: candidate.nativeProtocol,
|
|
1125
1232
|
fnCall: typeof candidate.fnCall === "boolean" ? candidate.fnCall : candidate.supportTool,
|
|
1126
1233
|
provider: candidate.provider,
|
|
@@ -1148,31 +1255,34 @@ var toModel = (candidate) => ({
|
|
|
1148
1255
|
var findCandidateInProvider = (provider, name) => {
|
|
1149
1256
|
const normalizedName = normalizeLookupModelName(provider, name);
|
|
1150
1257
|
const list = MODEL_LOOKUP_MAP[provider];
|
|
1151
|
-
const candidate = list.find(
|
|
1152
|
-
(item) => item.name === normalizedName || item.displayName === normalizedName || item.id === normalizedName
|
|
1153
|
-
);
|
|
1258
|
+
const candidate = list.find((item) => item.name === normalizedName || item.displayName === normalizedName || item.id === normalizedName);
|
|
1154
1259
|
return candidate ? toModel(candidate) : null;
|
|
1155
1260
|
};
|
|
1156
1261
|
var findOpenRouterUpstreamModel = (name) => {
|
|
1157
1262
|
const slash = name.indexOf("/");
|
|
1158
|
-
if (slash <= 0)
|
|
1263
|
+
if (slash <= 0)
|
|
1264
|
+
return null;
|
|
1159
1265
|
const upstreamProvider = normalizeLookupProvider(name.slice(0, slash));
|
|
1160
|
-
if (!upstreamProvider)
|
|
1266
|
+
if (!upstreamProvider)
|
|
1267
|
+
return null;
|
|
1161
1268
|
const upstreamModelName = name.slice(slash + 1);
|
|
1162
1269
|
return findCandidateInProvider(upstreamProvider, upstreamModelName);
|
|
1163
1270
|
};
|
|
1164
1271
|
function findModelConfig(provider, name) {
|
|
1165
1272
|
const normalizedProvider = normalizeLookupProvider(provider);
|
|
1166
|
-
if (!normalizedProvider)
|
|
1273
|
+
if (!normalizedProvider)
|
|
1274
|
+
return null;
|
|
1167
1275
|
if (normalizedProvider === "nolo") {
|
|
1168
1276
|
const effective = resolvePlatformEffectiveModel(name);
|
|
1169
1277
|
if (effective && effective !== name) {
|
|
1170
1278
|
const aliased = findCandidateInProvider(normalizedProvider, effective);
|
|
1171
|
-
if (aliased)
|
|
1279
|
+
if (aliased)
|
|
1280
|
+
return aliased;
|
|
1172
1281
|
}
|
|
1173
1282
|
}
|
|
1174
1283
|
const direct = findCandidateInProvider(normalizedProvider, name);
|
|
1175
|
-
if (direct)
|
|
1284
|
+
if (direct)
|
|
1285
|
+
return direct;
|
|
1176
1286
|
if (normalizedProvider === "openrouter") {
|
|
1177
1287
|
return findOpenRouterUpstreamModel(name);
|
|
1178
1288
|
}
|
|
@@ -1199,9 +1309,6 @@ var API_ENDPOINTS = {
|
|
|
1199
1309
|
fireworks: {
|
|
1200
1310
|
default: "https://api.fireworks.ai/inference/v1/chat/completions"
|
|
1201
1311
|
},
|
|
1202
|
-
/* 平台托管 provider(nolo / legacy ollama-cloud / deepseek)不放本地默认端点:
|
|
1203
|
-
* 直连语义已移除(历史 ollama.com 兜底废弃),端点由服务端按模型决议;
|
|
1204
|
-
* getApiEndpoint 对它们直接返回 ""。 */
|
|
1205
1312
|
cloudflare: {
|
|
1206
1313
|
default: "__cloudflare_workers_ai_chat_completions__"
|
|
1207
1314
|
},
|
|
@@ -1209,15 +1316,12 @@ var API_ENDPOINTS = {
|
|
|
1209
1316
|
default: GMI_CHAT_COMPLETIONS_URL
|
|
1210
1317
|
},
|
|
1211
1318
|
qwen: {
|
|
1212
|
-
// 千问 AI 平台 OpenAI 兼容模式
|
|
1213
1319
|
default: "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"
|
|
1214
1320
|
},
|
|
1215
1321
|
moonshot: {
|
|
1216
|
-
// Moonshot AI(月之暗面)开放平台 OpenAI 兼容模式(按量计费)
|
|
1217
1322
|
default: "https://api.moonshot.cn/v1/chat/completions"
|
|
1218
1323
|
},
|
|
1219
1324
|
stepfun: {
|
|
1220
|
-
// 阶跃星辰(StepFun)开放平台 OpenAI 兼容模式
|
|
1221
1325
|
default: "https://api.stepfun.com/v1/chat/completions"
|
|
1222
1326
|
}
|
|
1223
1327
|
};
|
|
@@ -1234,21 +1338,20 @@ function getProviderByModelName(modelName) {
|
|
|
1234
1338
|
return provider;
|
|
1235
1339
|
}
|
|
1236
1340
|
}
|
|
1237
|
-
return
|
|
1341
|
+
return;
|
|
1238
1342
|
}
|
|
1239
1343
|
var DEFAULT_MODEL = {
|
|
1240
1344
|
provider: PLATFORM_HOSTED_KIMI_PROVIDER,
|
|
1241
1345
|
name: PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL
|
|
1242
1346
|
};
|
|
1243
1347
|
function getApiEndpoint(agent) {
|
|
1244
|
-
if (declaresNoloPlatformSource(agent))
|
|
1348
|
+
if (declaresNoloPlatformSource(agent))
|
|
1349
|
+
return "";
|
|
1245
1350
|
const { provider, customProviderUrl, endpointKey, model } = agent;
|
|
1246
1351
|
const effectiveProvider = provider;
|
|
1247
1352
|
const effectiveModel = model;
|
|
1248
1353
|
if (agent.apiSource === "cli") {
|
|
1249
|
-
throw new Error(
|
|
1250
|
-
"Routing error: CLI agent should not call getApiEndpoint. Check streamAgentChatTurn."
|
|
1251
|
-
);
|
|
1354
|
+
throw new Error("Routing error: CLI agent should not call getApiEndpoint. Check streamAgentChatTurn.");
|
|
1252
1355
|
}
|
|
1253
1356
|
if (customProviderUrl) {
|
|
1254
1357
|
const url = customProviderUrl.trim().replace(/\/$/, "");
|
|
@@ -1257,7 +1360,7 @@ function getApiEndpoint(agent) {
|
|
|
1257
1360
|
}
|
|
1258
1361
|
return url;
|
|
1259
1362
|
}
|
|
1260
|
-
const OAUTH_API_KEY_REFS =
|
|
1363
|
+
const OAUTH_API_KEY_REFS = new Set([
|
|
1261
1364
|
"chatgpt",
|
|
1262
1365
|
"xai",
|
|
1263
1366
|
"cursor",
|
|
@@ -1277,41 +1380,126 @@ function getApiEndpoint(agent) {
|
|
|
1277
1380
|
if (effectiveProvider && API_ENDPOINTS[effectiveProvider]) {
|
|
1278
1381
|
return "";
|
|
1279
1382
|
}
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1383
|
+
if (agent.apiSource !== "custom" && !effectiveProvider) {
|
|
1384
|
+
throw new Error(`Model provider is missing for agent configuration (apiSource: '${String(agent.apiSource ?? "unset")}').`);
|
|
1385
|
+
}
|
|
1386
|
+
throw new Error("Custom provider URL is required when apiSource is 'custom'.");
|
|
1283
1387
|
}
|
|
1284
1388
|
if (effectiveProvider === "cloudflare") {
|
|
1285
1389
|
return getCloudflareWorkersAiChatCompletionsUrl();
|
|
1286
1390
|
}
|
|
1287
1391
|
const endpoints = API_ENDPOINTS[effectiveProvider];
|
|
1288
|
-
if (!endpoints)
|
|
1392
|
+
if (!endpoints)
|
|
1393
|
+
throw new Error(`Unsupported provider: ${provider}`);
|
|
1289
1394
|
let key = endpointKey;
|
|
1290
1395
|
if (!key && effectiveModel) {
|
|
1291
1396
|
try {
|
|
1292
1397
|
key = getModelConfig(effectiveProvider, effectiveModel).endpointKey;
|
|
1293
|
-
} catch {
|
|
1294
|
-
}
|
|
1398
|
+
} catch {}
|
|
1295
1399
|
}
|
|
1296
|
-
if (key && endpoints[key])
|
|
1297
|
-
|
|
1400
|
+
if (key && endpoints[key])
|
|
1401
|
+
return endpoints[key];
|
|
1402
|
+
if (endpoints.default)
|
|
1403
|
+
return endpoints.default;
|
|
1298
1404
|
const first = Object.values(endpoints)[0];
|
|
1299
|
-
if (first)
|
|
1405
|
+
if (first)
|
|
1406
|
+
return first;
|
|
1300
1407
|
throw new Error(`No endpoint found for provider ${provider}`);
|
|
1301
1408
|
}
|
|
1302
1409
|
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1410
|
+
// packages/agent-runtime/platformProviderEndpoints.ts
|
|
1411
|
+
var OPENAI_RESPONSES_ENDPOINT = "https://api.openai.com/v1/responses";
|
|
1412
|
+
var DEEPSEEK_RESPONSES_ENDPOINT = "https://api.deepseek.com/responses";
|
|
1413
|
+
var PLATFORM_CHAT_COMPLETIONS_ENDPOINTS = {
|
|
1414
|
+
deepinfra: "https://api.deepinfra.com/v1/openai/chat/completions",
|
|
1415
|
+
fireworks: "https://api.fireworks.ai/inference/v1/chat/completions",
|
|
1416
|
+
google: "https://generativelanguage.googleapis.com/v1beta/openai/chat/completions",
|
|
1417
|
+
openai: "https://api.openai.com/v1/chat/completions",
|
|
1418
|
+
xai: "https://api.x.ai/v1/chat/completions",
|
|
1419
|
+
openrouter: "https://openrouter.ai/api/v1/chat/completions",
|
|
1420
|
+
qwen: "https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions",
|
|
1421
|
+
moonshot: "https://api.moonshot.cn/v1/chat/completions",
|
|
1422
|
+
stepfun: "https://api.stepfun.com/v1/chat/completions",
|
|
1423
|
+
runinfra: "https://api.runinfra.ai/v1/chat/completions"
|
|
1424
|
+
};
|
|
1425
|
+
function isOpenAiResponsesModel(args) {
|
|
1426
|
+
const provider = asTrimmedLowercaseString(args.provider);
|
|
1427
|
+
if (provider === "openai") {
|
|
1428
|
+
if (args.endpointKey === "responses")
|
|
1429
|
+
return true;
|
|
1430
|
+
if (!args.model)
|
|
1431
|
+
return false;
|
|
1432
|
+
try {
|
|
1433
|
+
return getModelConfig("openai", args.model).endpointKey === "responses";
|
|
1434
|
+
} catch {
|
|
1435
|
+
return false;
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
if (provider === "deepseek" || provider === "nolo" || provider === "ollama-cloud") {
|
|
1439
|
+
const hostedRoute = resolvePlatformHostedRouting(args.model);
|
|
1440
|
+
if (hostedRoute)
|
|
1441
|
+
return hostedRoute.wire === "responses";
|
|
1442
|
+
if (isPlatformHostedDeepseekModel(args.model))
|
|
1443
|
+
return true;
|
|
1444
|
+
if (isPlatformHostedOpenAIImageModel(args.model))
|
|
1445
|
+
return true;
|
|
1446
|
+
}
|
|
1447
|
+
return false;
|
|
1448
|
+
}
|
|
1449
|
+
var PLATFORM_HOSTED_RESPONSES_GATEWAY_MARKER = "nolo-platform-gateway://responses";
|
|
1450
|
+
var PLATFORM_HOSTED_CHAT_GATEWAY_MARKER = "nolo-platform-gateway://chat";
|
|
1451
|
+
var CLOUDFLARE_ACCOUNT_ID_PLACEHOLDER = "{account}";
|
|
1452
|
+
function resolvePlatformResponsesEndpoint(provider, model) {
|
|
1453
|
+
const normalized = asTrimmedLowercaseString(provider);
|
|
1454
|
+
if (normalized === "openai")
|
|
1455
|
+
return OPENAI_RESPONSES_ENDPOINT;
|
|
1456
|
+
if (normalized === "deepseek" || normalized === "nolo" || normalized === "ollama-cloud") {
|
|
1457
|
+
const route = resolvePlatformHostedRouting(model);
|
|
1458
|
+
if (route && route.wire === "responses") {
|
|
1459
|
+
return route.endpoint.includes(CLOUDFLARE_ACCOUNT_ID_PLACEHOLDER) ? PLATFORM_HOSTED_RESPONSES_GATEWAY_MARKER : route.endpoint;
|
|
1460
|
+
}
|
|
1461
|
+
if (!model || isPlatformHostedDeepseekModel(model)) {
|
|
1462
|
+
return DEEPSEEK_RESPONSES_ENDPOINT;
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
return;
|
|
1466
|
+
}
|
|
1467
|
+
var PLATFORM_PROVIDER_ENDPOINT_ALIASES = {
|
|
1468
|
+
"ollama-cloud": "nolo",
|
|
1469
|
+
deepseek: "nolo"
|
|
1317
1470
|
};
|
|
1471
|
+
function resolvePlatformChatCompletionsEndpoint(provider, model) {
|
|
1472
|
+
const key = asTrimmedLowercaseString(provider);
|
|
1473
|
+
if (!key)
|
|
1474
|
+
return;
|
|
1475
|
+
const aliased = PLATFORM_PROVIDER_ENDPOINT_ALIASES[key] ?? key;
|
|
1476
|
+
if (aliased === "nolo") {
|
|
1477
|
+
const route = resolvePlatformHostedRouting(model);
|
|
1478
|
+
if (route && route.wire === "chat.completions") {
|
|
1479
|
+
return route.endpoint;
|
|
1480
|
+
}
|
|
1481
|
+
return;
|
|
1482
|
+
}
|
|
1483
|
+
return PLATFORM_CHAT_COMPLETIONS_ENDPOINTS[aliased];
|
|
1484
|
+
}
|
|
1485
|
+
function resolvePlatformProxyChatGatewayEndpoint(provider, model) {
|
|
1486
|
+
const key = asTrimmedLowercaseString(provider);
|
|
1487
|
+
if (!key)
|
|
1488
|
+
return;
|
|
1489
|
+
const aliased = PLATFORM_PROVIDER_ENDPOINT_ALIASES[key] ?? key;
|
|
1490
|
+
if (aliased !== "nolo")
|
|
1491
|
+
return;
|
|
1492
|
+
const route = resolvePlatformHostedRouting(model);
|
|
1493
|
+
return route?.wire === "anthropic.messages" && route.keyName === "cloudflare" ? PLATFORM_HOSTED_CHAT_GATEWAY_MARKER : undefined;
|
|
1494
|
+
}
|
|
1495
|
+
function resolvePlatformHostedCredentialProvider(provider, model) {
|
|
1496
|
+
const key = asTrimmedLowercaseString(provider);
|
|
1497
|
+
if (!key)
|
|
1498
|
+
return;
|
|
1499
|
+
const aliased = PLATFORM_PROVIDER_ENDPOINT_ALIASES[key] ?? key;
|
|
1500
|
+
if (aliased !== "nolo")
|
|
1501
|
+
return;
|
|
1502
|
+
return resolvePlatformHostedRouting(model)?.keyName;
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
export { effectiveAgentRoutingConfig, isAdaptiveThinkingModelId, anthropicPublishedMaxOutputTokens, openrouterModels, cloudflareModels, gmiModels, zaiModels, CLI_PROVIDER_VALUES, isCliProvider, DEFAULT_REASONING_EFFORT, REASONING_EFFORT_OPTIONS, resolveModelReasoningCapability, resolveModelReasoningCapabilityWithCache, isModelSupportReasoningEffort, clampReasoningEffort, MODEL_LOOKUP_MAP, findModelConfig, getModelConfig, getProviderByModelName, DEFAULT_MODEL, getApiEndpoint, OPENAI_RESPONSES_ENDPOINT, isOpenAiResponsesModel, resolvePlatformResponsesEndpoint, resolvePlatformChatCompletionsEndpoint, resolvePlatformProxyChatGatewayEndpoint, resolvePlatformHostedCredentialProvider };
|