nolo-cli 0.228.0-alpha.1 → 0.228.0
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/README.md +3 -5
- package/{_executeModel-WZKT6XEU.js → _executeModel-GIFVXKDT.js} +89 -82
- package/{accountResolver-QETKNC7T.js → accountResolver-NGICIMEE.js} +1 -1
- package/{action-GDZDXPMB.js → action-WZTKEF5H.js} +9 -6
- package/{addContentAction-7RO4AMRI.js → addContentAction-MLI6GOBV.js} +14 -13
- package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-ARGQM22H.js} +17 -16
- package/{agentDeleteCommand-PZWRHNXY.js → agentDeleteCommand-UF7XVELS.js} +120 -111
- package/{agentEmailCommands-QTKMEICX.js → agentEmailCommands-SFHRPQYC.js} +120 -107
- package/agentListCommands-IXKBP3W5.js +644 -0
- package/{agentMachineCommands-7QGICJLM.js → agentMachineCommands-7NX6PWQ6.js} +56 -48
- package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-C5T7C5KZ.js} +2 -2
- package/{agentPullCommand-KHV4EELF.js → agentPullCommand-4EQZYHU4.js} +1 -1
- package/agentRecordCommands-IUNX6XD6.js +188 -0
- package/{agentRunCommand-OFQLOF5Y.js → agentRunCommand-LCR4XADM.js} +127 -111
- package/{agentRunControl-MBG4U6SL.js → agentRunControl-RN2P6AOD.js} +11 -9
- package/{agentRuntimeLocal-TU4LA353.js → agentRuntimeLocal-LVXPQ7QA.js} +57 -43
- package/{agentSlice-L4SBGWTB.js → agentSlice-ZGMOH6TE.js} +15 -14
- package/{appDeleteCommands-JWP3XPUA.js → appDeleteCommands-BESCJOQM.js} +56 -48
- package/{appDeployCommands-6E4TQCWI.js → appDeployCommands-LPTR6IOX.js} +56 -48
- package/{appDeployStatusCommands-ALU4SADG.js → appDeployStatusCommands-BZ7KZ5RD.js} +56 -48
- package/{appGetCommands-JEY4L6L4.js → appGetCommands-EDWGJV4S.js} +56 -48
- package/{appListCommands-PCAVHU7M.js → appListCommands-OPRWYPM6.js} +56 -48
- package/{authCommand-CGRIIOOV.js → authCommand-3C3RN4OU.js} +25 -19
- package/{authCommands-55OGQGCR.js → authCommands-ZMVEDCQD.js} +12 -6
- package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-VRCMQ77Q.js} +7 -7
- package/{chromeCommands-G5UDKVSV.js → chromeCommands-O4IIKTBD.js} +384 -7
- package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-NZITLHWO.js} +3 -3
- package/{chunk-AUAJTAFM.js → chunk-2BKNICGK.js} +4 -4
- package/{chunk-QYB23WUH.js → chunk-2FK2KZSL.js} +1 -1
- package/chunk-2SXN7LAY.js +15 -0
- package/{chunk-H6L2NFHY.js → chunk-3DJJ4CFG.js} +11 -11
- package/{chunk-TSPMLCWI.js → chunk-4IQN6FWY.js} +5 -5
- package/{chunk-GUXZK7SE.js → chunk-4OXPN3WC.js} +17 -6
- package/chunk-4ZCTKB27.js +31 -0
- package/chunk-53W5BXLN.js +340 -0
- package/{chunk-3P54D2E4.js → chunk-5HUO7SEX.js} +9 -107
- package/chunk-6ASGEP5D.js +21 -0
- package/{chunk-DDC6P6EH.js → chunk-6CXQ3YNJ.js} +68 -40
- package/{chunk-G7IUT2V3.js → chunk-6MTVACLN.js} +365 -64
- package/{chunk-ZOHO6MOF.js → chunk-6RSNVJGO.js} +2 -99
- package/{chunk-XSW4EXQV.js → chunk-6TVYUQRM.js} +55 -18
- package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
- package/{chunk-7Z6EW7AH.js → chunk-6XVPMGXK.js} +97 -11
- package/{chunk-ALAES342.js → chunk-73PZD7JZ.js} +9 -5
- package/{chunk-2MCB7CD7.js → chunk-7UVVLYKC.js} +9 -9
- package/{chunk-S6FDXXZV.js → chunk-ADOOL3PG.js} +2 -2
- package/{chunk-OWKNSIXL.js → chunk-AEZBAFC6.js} +334 -77
- package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
- package/{chunk-RG2DGNL6.js → chunk-ARFCL53U.js} +5 -5
- package/{chunk-SRCCSTIM.js → chunk-AS6L5KSD.js} +4 -4
- package/{chunk-GPOV42YM.js → chunk-BAH3BAUZ.js} +8 -8
- package/{chunk-N5Z2V73W.js → chunk-BFKJ2RS3.js} +1 -1
- package/{chunk-F6Z6ZCUV.js → chunk-BVEDT6DM.js} +3 -3
- package/chunk-C5A54QS7.js +108 -0
- package/{chunk-CD3RU7XL.js → chunk-CD2DK5JA.js} +120 -14
- package/{chunk-BP5ZJ6B4.js → chunk-CD64YXRB.js} +1 -1
- package/{chunk-VP3BINY7.js → chunk-CIGCTSBF.js} +31 -1
- package/{chunk-D6YNCNM6.js → chunk-CIUZXD5D.js} +12 -12
- package/{chunk-EVGU5P4U.js → chunk-CO6E7YK6.js} +1 -1
- package/{chunk-VMJVAJ6W.js → chunk-CTIEJRTP.js} +28 -4
- package/{chunk-7JGMNKKG.js → chunk-CTWCZKNS.js} +29 -8
- package/{chunk-YFLVRVYK.js → chunk-D25ONVOH.js} +1 -1
- package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
- package/{chunk-262R3XNN.js → chunk-E5RYFR7E.js} +334 -103
- package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
- package/{chunk-HSSBDZLD.js → chunk-EDT65EUE.js} +6 -6
- package/{chunk-IAAIUH64.js → chunk-EQZQUQ33.js} +7 -7
- package/{chunk-HBRDSQ3M.js → chunk-ESN4WNWU.js} +3 -2
- package/{chunk-2YGBI2XB.js → chunk-FE7G6DSP.js} +11 -1
- package/{chunk-547ENH5T.js → chunk-FFFKAOJN.js} +4 -4
- package/{chunk-5ZUOVCKT.js → chunk-FGHEF6WI.js} +3 -1
- package/{chunk-IXG6YXQM.js → chunk-FTWAOKFU.js} +795 -361
- package/chunk-GAHJLSDO.js +107 -0
- package/{chunk-2X7WFDT6.js → chunk-GX6DITLQ.js} +1 -1
- package/{chunk-GYS5FUYR.js → chunk-HCCQEMTK.js} +28 -28
- package/{chunk-CMMI3DAT.js → chunk-HZDK56EK.js} +33 -26
- package/{chunk-UE2EVEYS.js → chunk-IIOSZAJX.js} +4 -4
- package/chunk-IIRJ4P4I.js +24 -0
- package/{chunk-QCB42576.js → chunk-IJZC2KIJ.js} +1 -1
- package/{chunk-RYOLWYBK.js → chunk-ITBX27W6.js} +97 -21
- package/{chunk-VSYTM22R.js → chunk-J2VIGDJN.js} +6 -6
- package/{chunk-QBZCGP34.js → chunk-JEWMQR6J.js} +1 -1
- package/{chunk-6QHKRARD.js → chunk-JFRJEPFI.js} +29 -5
- package/{chunk-S6K5F3KP.js → chunk-JP2BH4NC.js} +1 -1
- package/{chunk-MDZWUD3R.js → chunk-JU7VN4LF.js} +38 -29
- package/{chunk-RTHFJZ6M.js → chunk-K26XPZRB.js} +2 -2
- package/{chunk-ZYKJBRZ3.js → chunk-K7VIXYTZ.js} +1 -3
- package/chunk-KK3FCYZM.js +647 -0
- package/chunk-KLAMJNKQ.js +33394 -0
- package/{chunk-4JVNURX4.js → chunk-KQHEGELM.js} +68 -16
- package/chunk-KXOPLLFP.js +190 -0
- package/{chunk-GOCSSER3.js → chunk-KZ5OD2MO.js} +4 -4
- package/{chunk-ILHQ2AXT.js → chunk-KZAT2M2V.js} +14 -8
- package/chunk-LHCGKAFO.js +739 -0
- package/{chunk-XJPLSAPJ.js → chunk-LMGFVH65.js} +107 -104
- package/{chunk-QRGDJA4B.js → chunk-LTVEOOZL.js} +19 -6
- package/{chunk-L32W3PRP.js → chunk-MAA42MMV.js} +233 -17
- package/{chunk-ATEKLSLR.js → chunk-MTM4LRVG.js} +14 -9
- package/chunk-MVOZ22RZ.js +26 -0
- package/{chunk-2NPD3FTX.js → chunk-MYYNZG2M.js} +139 -39
- package/{chunk-DBUR22G5.js → chunk-MZVCFV3T.js} +19 -15
- package/{chunk-K67C2JUC.js → chunk-N74XL3NI.js} +9 -9
- package/{chunk-VS276URX.js → chunk-NEG5LYK5.js} +1 -1
- package/{chunk-RBPUNSG5.js → chunk-OAZP4TSA.js} +18 -108
- package/{chunk-SMJEXX2S.js → chunk-ODBYGVO2.js} +232 -10
- package/{chunk-M4SFKP5L.js → chunk-OHUYN3YU.js} +3 -3
- package/{chunk-HYLRQDEE.js → chunk-OLGFIQN2.js} +6 -6
- package/{chunk-M3JEW6N6.js → chunk-OYUMJMC5.js} +15 -0
- package/chunk-P27E22MA.js +203 -0
- package/{chunk-BIWI5M4E.js → chunk-PBPXXMWZ.js} +1 -1
- package/{chunk-OBSEKCVK.js → chunk-PQ63BDV3.js} +210 -51
- package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
- package/{chunk-OG6MQOQG.js → chunk-QMNVV3YM.js} +10 -37
- package/{chunk-GACR7H6T.js → chunk-R5NRFXGD.js} +5 -5
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/{chunk-4WVJLODK.js → chunk-RHBD22LV.js} +9 -4
- package/{chunk-EXJK7TQO.js → chunk-RMWDKLBE.js} +1520 -562
- package/{chunk-TGNIKIHR.js → chunk-RR3MB26M.js} +2 -2
- package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
- package/{chunk-STJ6LSQE.js → chunk-SCMYAGQE.js} +1135 -712
- package/{chunk-YKY4OVOX.js → chunk-SPU3L3OR.js} +17 -170
- package/chunk-SR4FE5VD.js +9 -0
- package/{chunk-DUUDXSLX.js → chunk-SX6AWTNK.js} +28 -4
- package/{chunk-ZH3KXFHS.js → chunk-TMRJGSK2.js} +1 -1
- package/{chunk-S2NTVGA2.js → chunk-U35UUM5K.js} +2 -1
- package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
- package/{chunk-UAIHKQIA.js → chunk-U6RD332P.js} +18 -2
- package/{chunk-3U44JB3O.js → chunk-UF6J7NXV.js} +1 -1
- package/{chunk-Q3IVPFVO.js → chunk-UHW6SCVK.js} +1 -1
- package/chunk-UOUMPHS5.js +103 -0
- package/{chunk-HHFGE2WF.js → chunk-UPOW5HTG.js} +5 -5
- package/{chunk-DEA37IUY.js → chunk-V4IYI3SB.js} +2 -2
- package/{chunk-UWAIJOF2.js → chunk-VKCPKCSS.js} +66 -92
- package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
- package/{chunk-OBIC6EG7.js → chunk-VUHKG4KS.js} +3 -3
- package/{chunk-EEOOBRA7.js → chunk-W3HSD32M.js} +13 -6
- package/{chunk-P2ZLUIW2.js → chunk-W6T4FNZP.js} +351 -26
- package/chunk-WDWZPASX.js +29 -0
- package/chunk-WFGNWWJI.js +326 -0
- package/{chunk-R6Z5S5GA.js → chunk-WQDTSK5U.js} +51 -14
- package/{chunk-OYU2MA5S.js → chunk-X22AUZKL.js} +152 -167
- package/{chunk-4ZGPHFLE.js → chunk-X3OZ655T.js} +2 -2
- package/{chunk-NHY322ZU.js → chunk-XCA4WHX5.js} +588 -64
- package/{chunk-TI2EPRHE.js → chunk-XJSEST7D.js} +3 -3
- package/{chunk-JUSHVFNF.js → chunk-XNTZD4AE.js} +1230 -1356
- package/chunk-XSRSAU3O.js +133 -0
- package/{chunk-CYWNWA77.js → chunk-Y4NPF2UN.js} +6 -3
- package/{chunk-FJSNBZXR.js → chunk-YDRRGVT5.js} +1 -1
- package/{chunk-R3NEQZ53.js → chunk-YFW4H6DL.js} +405 -338
- package/{chunk-BNMPUQW6.js → chunk-YGDYYFRX.js} +20 -24
- package/{chunk-4N6G2CKP.js → chunk-YHNUDTU4.js} +49 -3
- package/chunk-YJPK35HB.js +175 -0
- package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
- package/{chunk-AGYPUBFW.js → chunk-Z7KE4K3H.js} +195 -123
- package/{chunk-DGYCDA6W.js → chunk-ZM5AZTQG.js} +20 -13
- package/{chunk-CBUZ6DKA.js → chunk-ZQ6K57FJ.js} +1 -1
- package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-37ZNEY5Y.js} +9 -9
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
- package/{cliLocalAgentRecordReader-M3F76NIP.js → cliLocalAgentRecordReader-MCQVRWBR.js} +59 -47
- package/{commandRegistry-ZLWHQVAI.js → commandRegistry-NTH5IAN5.js} +104 -92
- package/{contentThunks-4ZX2TO7C.js → contentThunks-SPXTX5U2.js} +38 -36
- package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-TIFCHCUN.js} +1 -1
- package/{createAgentAutomationAction-L4CYUZJG.js → createAgentAutomationAction-KUQKCOXB.js} +38 -36
- package/{createDialogAction-QTU2R2Q3.js → createDialogAction-HJN5U3XS.js} +39 -37
- package/{createPageAction-F3GJTHW2.js → createPageAction-ZAHRDOAU.js} +43 -41
- package/{db-M7FU2GNK.js → db-CMUTP3W5.js} +2 -2
- package/{dbSlice-XRUZOGSU.js → dbSlice-656PMWR2.js} +13 -12
- package/{deleteFile-6URDHYRB.js → deleteFile-ZCQESEEQ.js} +10 -7
- package/{dialogCommands-NRLCOPJR.js → dialogCommands-KZTZLWPZ.js} +61 -54
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-PST75COP.js} +11 -11
- package/{dialogSlice-P2S4LXQD.js → dialogSlice-BXIERQHO.js} +39 -37
- package/{dialogUsageCommand-W2WCSGKF.js → dialogUsageCommand-6RW2FY6K.js} +5 -5
- package/{docCreateCommands-YJRDA3RX.js → docCreateCommands-26HJ5NAY.js} +55 -47
- package/{docDeleteCommands-A5QIHZNF.js → docDeleteCommands-UAOHH5XK.js} +57 -49
- package/{docReadCommands-CF2LTMYH.js → docReadCommands-4ADG7YE6.js} +55 -47
- package/{docStore-6O7NYL6A.js → docStore-FZ75HWP2.js} +15 -14
- package/{docUpdateCommands-QRKV4ZXE.js → docUpdateCommands-OGFJZENF.js} +55 -47
- package/fetchMessages-TQEUZD7H.js +1 -1
- package/{getPricing-LF5C4XSI.js → getPricing-FCHYVRJU.js} +4 -4
- package/{handleSendMessageAction-7IHLR37A.js → handleSendMessageAction-KP6GGBFY.js} +84 -79
- package/{hostCredentialCreate-VNCQUAFT.js → hostCredentialCreate-23TX56G7.js} +119 -105
- package/index.js +8 -8
- package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
- package/{localDialogRead-CCOCVGAP.js → localDialogRead-CIOTQM5T.js} +1 -1
- package/{localRuntimeAdapter-FOWVNMIK.js → localRuntimeAdapter-MTUWOYPN.js} +126 -111
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-TYHQCTZN.js} +5 -3
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-BO7IVWAZ.js} +1 -1
- package/{machineCommands-ZGC3J4JB.js → machineCommands-4WJUJQHW.js} +260 -323
- package/{machineWsRunDispatch-KK5U4M3G.js → machineWsRunDispatch-V3U4JM67.js} +115 -102
- package/markdownToSlate-KIYM7B3P.js +8 -0
- package/mcpLocalAuthorizeCommand-TI656UWC.js +106 -0
- package/{memberThunks-7Y3OYSJQ.js → memberThunks-JFYC4Z5L.js} +20 -15
- package/{models-H5NNZRLH.js → models-EP7VG6N2.js} +2 -2
- package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
- package/package.json +1 -1
- package/{projectArchive-7ZDYBXAX.js → projectArchive-NU2Z5HOR.js} +45 -43
- package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-4H7YP5D7.js} +6 -6
- package/{providerRegistry-ZI2KORJ7.js → providerRegistry-F3UPOTIY.js} +6 -6
- package/{read-TYMBGEXO.js → read-BRZHXUJ6.js} +9 -8
- package/{readDocTool-SKQVHBLO.js → readDocTool-N7RVFQEE.js} +1 -1
- package/{readlineWorkspace-YHT4SX2C.js → readlineWorkspace-T56MRMS5.js} +6426 -3669
- package/rememberExplicit-CPAPONSI.js +15 -0
- package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-J7XU7OUX.js} +19 -18
- package/{runAgentClientLoop-H4ED5V3K.js → runAgentClientLoop-O2GRCGRZ.js} +97 -75
- package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-RDRJXMXC.js} +8 -8
- package/{secretCommands-KZWBZIYS.js → secretCommands-2FEMRUFM.js} +3 -3
- package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-Q4V2ZZW2.js} +16 -15
- package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-742H5S6T.js} +19 -18
- package/{settingThunks-ZRGWVGZD.js → settingThunks-T4FXSV6M.js} +185 -66
- package/{skillDiscovery-I37M5KJC.js → skillDiscovery-MDDKPTW3.js} +4 -3
- package/{spaceCommands-MEH3HJBC.js → spaceCommands-W5TAVFDT.js} +59 -51
- package/{streamAgentChatTurn-ZXPOXU33.js → streamAgentChatTurn-OWDJMU5E.js} +238 -178
- package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-HLDLHRRA.js} +17 -16
- package/{tableCommands-FTAOCBTX.js → tableCommands-44GC4N6J.js} +8 -5
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-N5PYW2R3.js} +8 -6
- package/{tools-2MRWA2PP.js → tools-O7SGGVA3.js} +67 -62
- package/{tuiRestart-2IL37YIB.js → tuiRestart-EOGC2BYY.js} +10 -10
- package/{tuiSummaryLlmCaller-W2QN4VAC.js → tuiSummaryLlmCaller-TM5BU73J.js} +16 -15
- package/{updateCommands-CPATDG6J.js → updateCommands-FBYA5WVG.js} +3 -3
- package/{updateDialogTitleAction-RZ3KZSGQ.js → updateDialogTitleAction-EXSZGTLL.js} +40 -38
- package/{usageCommand-2BF74MKF.js → usageCommand-L4OFWXEU.js} +2 -2
- package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-7JR33UHS.js} +3 -3
- package/webapi-QVV65DQF.js +2487 -0
- package/{windowsSelfUpdate-ZFD6J5HF.js → windowsSelfUpdate-M4V77OUB.js} +2 -2
- package/workContext-Y3ADAPZU.js +14 -0
- package/workContextAccess-VU5I4LKZ.js +11 -0
- package/workContextWriteNotice-YCSSMHN4.js +7 -0
- package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-ZCSQCHG3.js} +2 -2
- package/agentListCommands-GUGMORTK.js +0 -1005
- package/agentRecordCommands-SLLADS5C.js +0 -175
- package/chunk-2WZXXAQD.js +0 -57
- package/chunk-5ZMIIR23.js +0 -265
- package/chunk-62HXNQVV.js +0 -134
- package/chunk-TUSTONB3.js +0 -81
- package/chunk-ZXF6D3I6.js +0 -359
- package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
- /package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
// packages/agent-runtime/workspaceSearchPolicy.ts
|
|
2
|
+
var ALWAYS_EXCLUDED_GLOBS = [
|
|
3
|
+
".git/**",
|
|
4
|
+
".nolo/**",
|
|
5
|
+
"node_modules/**",
|
|
6
|
+
"*.tsbuildinfo",
|
|
7
|
+
"dist/**",
|
|
8
|
+
"build/**",
|
|
9
|
+
"out/**",
|
|
10
|
+
"coverage/**",
|
|
11
|
+
".next/**",
|
|
12
|
+
".turbo/**",
|
|
13
|
+
"public/assets/**",
|
|
14
|
+
"*.min.js",
|
|
15
|
+
"*.min.css",
|
|
16
|
+
"*.map",
|
|
17
|
+
"*.lock",
|
|
18
|
+
"bun.lockb",
|
|
19
|
+
"*.ldb"
|
|
20
|
+
];
|
|
21
|
+
|
|
1
22
|
// packages/agent-runtime/executionBackend.ts
|
|
2
23
|
var EXECUTION_BACKEND_KINDS = [
|
|
3
24
|
"full-host",
|
|
@@ -42,6 +63,7 @@ function buildExecutionTicket(args) {
|
|
|
42
63
|
}
|
|
43
64
|
|
|
44
65
|
export {
|
|
66
|
+
ALWAYS_EXCLUDED_GLOBS,
|
|
45
67
|
EXECUTION_BACKEND_KINDS,
|
|
46
68
|
buildExecutionTicket
|
|
47
69
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
selectCurrentServer
|
|
3
|
-
} from "./chunk-ATEKLSLR.js";
|
|
4
1
|
import {
|
|
5
2
|
patch
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HZDK56EK.js";
|
|
4
|
+
import {
|
|
5
|
+
selectCurrentServer
|
|
6
|
+
} from "./chunk-MTM4LRVG.js";
|
|
7
7
|
import {
|
|
8
8
|
getIsDesktopApp
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YHNUDTU4.js";
|
|
10
10
|
import {
|
|
11
11
|
selectIdentityToken
|
|
12
12
|
} from "./chunk-PXYBUFDB.js";
|
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
asOptionalPositiveFiniteNumber
|
|
9
9
|
} from "./chunk-U6VC4MU4.js";
|
|
10
|
-
import {
|
|
11
|
-
getModelConfig
|
|
12
|
-
} from "./chunk-CD3RU7XL.js";
|
|
13
10
|
import {
|
|
14
11
|
asOptionalFiniteNumber
|
|
15
12
|
} from "./chunk-WWC7I6TA.js";
|
|
13
|
+
import {
|
|
14
|
+
getModelConfig
|
|
15
|
+
} from "./chunk-CD2DK5JA.js";
|
|
16
16
|
import {
|
|
17
17
|
isPlatformHostedImageModel,
|
|
18
18
|
isPlatformManagedProvider,
|
|
19
19
|
resolvePlatformEffectiveModel
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-PQ63BDV3.js";
|
|
21
21
|
|
|
22
22
|
// packages/ai/llm/getPricing.ts
|
|
23
23
|
var MAX_OUTPUT_TOKENS = 8192;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defaultOpenBrowser
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SPU3L3OR.js";
|
|
4
4
|
import {
|
|
5
5
|
generateCloudflareEmailRoutingToken,
|
|
6
6
|
parseFlagWithOptionalValue,
|
|
7
7
|
runCloudflareOAuthLogin,
|
|
8
8
|
upsertEnvVariable
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UF6J7NXV.js";
|
|
10
10
|
import {
|
|
11
11
|
ANTHROPIC_OAUTH_AUTHORIZE_URL,
|
|
12
12
|
ANTHROPIC_OAUTH_CALLBACK_PORT,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
startCallbackServer,
|
|
51
51
|
validateXAIEndpoint,
|
|
52
52
|
xaiOAuthDiscovery
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-6TVYUQRM.js";
|
|
54
54
|
import {
|
|
55
55
|
extractGoogleValidationLink
|
|
56
56
|
} from "./chunk-BMQ2MJUK.js";
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
detectLocalDevinCredentials,
|
|
61
61
|
extractDevinToken,
|
|
62
62
|
fetchAntigravityCloudCodeCompletion
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-MYYNZG2M.js";
|
|
64
64
|
import {
|
|
65
65
|
createOAuthTokenStore,
|
|
66
66
|
resolveFreshAccessToken
|
|
@@ -74,19 +74,19 @@ import {
|
|
|
74
74
|
} from "./chunk-R5GO3YZP.js";
|
|
75
75
|
import {
|
|
76
76
|
t
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-E5RYFR7E.js";
|
|
78
78
|
import {
|
|
79
79
|
toErrorMessage
|
|
80
80
|
} from "./chunk-HNMXYYJR.js";
|
|
81
81
|
import {
|
|
82
82
|
asTrimmedString
|
|
83
83
|
} from "./chunk-3EUW3WEO.js";
|
|
84
|
-
import {
|
|
85
|
-
isRecord
|
|
86
|
-
} from "./chunk-KUG52IAP.js";
|
|
87
84
|
import {
|
|
88
85
|
asOptionalFiniteNumber
|
|
89
86
|
} from "./chunk-WWC7I6TA.js";
|
|
87
|
+
import {
|
|
88
|
+
isRecord
|
|
89
|
+
} from "./chunk-KUG52IAP.js";
|
|
90
90
|
|
|
91
91
|
// packages/cli/oauth/flows/xai.ts
|
|
92
92
|
function buildXAIAuthorizeUrl(opts) {
|
|
@@ -14,7 +14,7 @@ function buildCliLocalRuntimeDbEnv(env = process.env) {
|
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
async function getDefaultCliLocalRuntimeDb(options = {}) {
|
|
17
|
-
const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-
|
|
17
|
+
const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-TYHQCTZN.js");
|
|
18
18
|
return getAuthorityBackedDb(options);
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
} from "./chunk-YNIYE47Z.js";
|
|
37
37
|
import {
|
|
38
38
|
getDefaultCliLocalRuntimeDb
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-BFKJ2RS3.js";
|
|
40
40
|
import {
|
|
41
41
|
createTokenStatsKey
|
|
42
42
|
} from "./chunk-SYTHYBMI.js";
|
|
@@ -11658,7 +11658,7 @@ async function runUsageCommand(args, deps) {
|
|
|
11658
11658
|
const output = deps.output ?? process.stdout;
|
|
11659
11659
|
const errorOutput = deps.errorOutput ?? process.stderr;
|
|
11660
11660
|
if (args[0] === "rebuild") {
|
|
11661
|
-
const { runUsageRebuildCommand } = await import("./usageRebuildCommand-
|
|
11661
|
+
const { runUsageRebuildCommand } = await import("./usageRebuildCommand-7JR33UHS.js");
|
|
11662
11662
|
return runUsageRebuildCommand(args.slice(1), deps);
|
|
11663
11663
|
}
|
|
11664
11664
|
if (hasFlag(args, "-h") || hasFlag(args, "--help")) {
|
|
@@ -11729,7 +11729,7 @@ async function runUsageCommand(args, deps) {
|
|
|
11729
11729
|
return 0;
|
|
11730
11730
|
}
|
|
11731
11731
|
async function resolveUsageUserId(env) {
|
|
11732
|
-
const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-
|
|
11732
|
+
const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-37ZNEY5Y.js");
|
|
11733
11733
|
return resolveLocalUserId(env);
|
|
11734
11734
|
}
|
|
11735
11735
|
function isLocalDbMissingError(error) {
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import {
|
|
2
|
+
applyMemoryInterpreterMutation
|
|
3
|
+
} from "./chunk-6RSNVJGO.js";
|
|
4
|
+
import {
|
|
5
|
+
getMemoryEvidenceVNextStrict,
|
|
6
|
+
listMemoryStatesForEntityVNext,
|
|
7
|
+
loadMemoryVNextCatalog
|
|
8
|
+
} from "./chunk-324FWHUA.js";
|
|
9
|
+
|
|
10
|
+
// packages/ai/memory/vnext/workContext.ts
|
|
11
|
+
import { createHash } from "crypto";
|
|
12
|
+
var facet = "work-context";
|
|
13
|
+
var statuses = ["active", "paused", "completed", "cancelled"];
|
|
14
|
+
var hash = (v) => createHash("sha256").update(JSON.stringify(v)).digest("hex");
|
|
15
|
+
var isWorkContextState = (state) => state.facet === facet;
|
|
16
|
+
var bounded = (s, max) => typeof s === "string" && s.trim().length > 0 && s.length <= max;
|
|
17
|
+
var list = (x, maxCount, maxLength) => Array.isArray(x) && x.length <= maxCount && x.every((v) => bounded(v, maxLength));
|
|
18
|
+
var object = (x) => !!x && typeof x === "object" && !Array.isArray(x);
|
|
19
|
+
var validScope = (s) => {
|
|
20
|
+
if (!s || !bounded(s.ownerId, 256) || !bounded(s.dialogId, 512) || !(s.spaceId === null || bounded(s.spaceId, 256))) throw new Error("invalid authorized scope");
|
|
21
|
+
};
|
|
22
|
+
function validValue(v) {
|
|
23
|
+
return object(v) && v.version === 1 && Number.isSafeInteger(v.revision) && v.revision > 0 && statuses.includes(v.status) && bounded(v.goal, 4096) && list(v.constraints, 50, 2048) && list(v.openItems, 50, 2048) && (v.nextStep === void 0 || typeof v.nextStep === "string" && v.nextStep.length <= 4096) && list(v.latestSourceRefs, 20, 2048) && v.latestSourceRefs.length > 0 && (v.spaceId === null || bounded(v.spaceId, 256)) && list(v.dialogIds, 100, 512) && v.dialogIds.length > 0;
|
|
24
|
+
}
|
|
25
|
+
function validPatch(p) {
|
|
26
|
+
if (!object(p) || Object.keys(p).some((k) => !["status", "goal", "constraints", "openItems", "nextStep"].includes(k))) throw new Error("invalid patch");
|
|
27
|
+
if (p.status !== void 0 && !statuses.includes(p.status)) throw new Error("invalid status");
|
|
28
|
+
if (p.goal !== void 0 && !bounded(p.goal, 4096)) throw new Error("invalid goal");
|
|
29
|
+
if (p.nextStep !== void 0 && (typeof p.nextStep !== "string" || p.nextStep.length > 4096)) throw new Error("invalid nextStep");
|
|
30
|
+
for (const a of [p.constraints, p.openItems]) if (a !== void 0 && !list(a, 50, 2048)) throw new Error("invalid list");
|
|
31
|
+
}
|
|
32
|
+
async function updateWorkContext(db, scope, input) {
|
|
33
|
+
validScope(scope);
|
|
34
|
+
if (!object(input) || Object.keys(input).some((k) => !["activityId", "expectedRevision", "itemKey", "originRef", "changeId", "sourceRefs", "patch"].includes(k))) throw new Error("invalid input");
|
|
35
|
+
validPatch(input.patch);
|
|
36
|
+
if (!bounded(input.changeId, 256) || !list(input.sourceRefs, 20, 2048) || !input.sourceRefs.length) throw new Error("source and changeId required");
|
|
37
|
+
const creating = input.activityId === void 0;
|
|
38
|
+
if (creating && (!bounded(input.itemKey, 256) || !bounded(input.originRef, 2048) || input.expectedRevision !== void 0)) throw new Error("origin and itemKey required");
|
|
39
|
+
if (!creating && (!bounded(input.activityId, 256) || !Number.isSafeInteger(input.expectedRevision) || input.expectedRevision < 1 || input.itemKey !== void 0 || input.originRef !== void 0)) throw new Error("activityId and revision required");
|
|
40
|
+
const activityId = creating ? `work-${hash([scope.ownerId, scope.spaceId, input.originRef, input.itemKey])}` : input.activityId;
|
|
41
|
+
const evidenceId = `work-change-${hash([activityId, input.changeId])}`;
|
|
42
|
+
const fingerprint = hash([scope.spaceId, scope.dialogId, input]);
|
|
43
|
+
let result;
|
|
44
|
+
await applyMemoryInterpreterMutation(db, scope.ownerId, async () => {
|
|
45
|
+
const states = (await listMemoryStatesForEntityVNext(db, scope.ownerId, activityId)).filter(isWorkContextState);
|
|
46
|
+
const currents = states.filter((s) => !s.retiredAt);
|
|
47
|
+
if (currents.length > 1 || currents[0] && !validValue(currents[0].value)) throw new Error("invalid work context state");
|
|
48
|
+
const current = currents[0];
|
|
49
|
+
const old = current?.value;
|
|
50
|
+
if (old && old.spaceId !== scope.spaceId) {
|
|
51
|
+
result = { activityId, revision: 0, outcome: "conflict" };
|
|
52
|
+
return { action: "no_op", reason: "scope mismatch" };
|
|
53
|
+
}
|
|
54
|
+
const receipt = await getMemoryEvidenceVNextStrict(db, scope.ownerId, evidenceId);
|
|
55
|
+
if (receipt) {
|
|
56
|
+
const matching = states.find((s) => s.evidenceIds.includes(evidenceId));
|
|
57
|
+
const savedValue = matching && validValue(matching.value) ? matching.value : void 0;
|
|
58
|
+
const match = receipt.text === fingerprint && !!savedValue;
|
|
59
|
+
result = { activityId, revision: match ? savedValue.revision : old?.revision ?? 0, outcome: match ? savedValue.revision === 1 ? "created" : "updated" : "conflict" };
|
|
60
|
+
return { action: "no_op", reason: "duplicate change" };
|
|
61
|
+
}
|
|
62
|
+
if (creating && current || !creating && (!old || old.revision !== input.expectedRevision)) {
|
|
63
|
+
result = { activityId, revision: old?.revision ?? 0, outcome: "conflict" };
|
|
64
|
+
return { action: "no_op", reason: "revision conflict" };
|
|
65
|
+
}
|
|
66
|
+
if (!old && !input.patch.goal) throw new Error("goal required");
|
|
67
|
+
const status = input.patch.status ?? old?.status ?? "active";
|
|
68
|
+
const dialogIds = [.../* @__PURE__ */ new Set([...old?.dialogIds ?? [], scope.dialogId])];
|
|
69
|
+
if (dialogIds.length > 100) throw new Error("dialog association limit exceeded");
|
|
70
|
+
const value = { version: 1, revision: (old?.revision ?? 0) + 1, status, goal: input.patch.goal ?? old.goal, constraints: input.patch.constraints ?? old?.constraints ?? [], openItems: input.patch.openItems ?? old?.openItems ?? [], nextStep: input.patch.nextStep ?? old?.nextStep, latestSourceRefs: input.sourceRefs, spaceId: scope.spaceId, dialogIds };
|
|
71
|
+
const unchanged = !!old && JSON.stringify([old.status, old.goal, old.constraints, old.openItems, old.nextStep]) === JSON.stringify([value.status, value.goal, value.constraints, value.openItems, value.nextStep]);
|
|
72
|
+
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
73
|
+
result = { activityId, revision: unchanged ? old.revision : value.revision, outcome: unchanged ? "unchanged" : old ? "updated" : "created" };
|
|
74
|
+
if (unchanged) return { action: "no_op", reason: "unchanged" };
|
|
75
|
+
const evidence = { id: evidenceId, ownerId: scope.ownerId, text: fingerprint, sourceRef: input.sourceRefs[0], confidence: 1, createdAt: now };
|
|
76
|
+
return { action: old ? "update" : "create", reason: "work context", entities: old ? [] : [{ id: activityId, ownerId: scope.ownerId, type: "activity", subtype: facet, name: value.goal, createdAt: now, updatedAt: now }], evidence: [evidence], states: [{ id: `work-state-${hash([activityId, value.revision])}`, ownerId: scope.ownerId, entityId: activityId, facet, value, text: value.goal, evidenceIds: [evidenceId], createdAt: now, updatedAt: now }], supersededStateIds: current ? [current.id] : [] };
|
|
77
|
+
});
|
|
78
|
+
return result;
|
|
79
|
+
}
|
|
80
|
+
async function readWorkContexts(db, scope, query = {}) {
|
|
81
|
+
validScope(scope);
|
|
82
|
+
if (!object(query) || Object.keys(query).some((k) => !["activityId", "status", "query", "limit", "discovery"].includes(k))) throw new Error("invalid query");
|
|
83
|
+
const limit = query.limit ?? 20;
|
|
84
|
+
if (typeof limit !== "number" || !Number.isInteger(limit) || limit < 1 || limit > 100) throw new Error("limit must be 1..100");
|
|
85
|
+
if (query.status !== void 0 && query.status !== "all" && !statuses.some((status) => status === query.status)) throw new Error("invalid status");
|
|
86
|
+
if (query.discovery !== void 0 && query.discovery !== "dialog" && query.discovery !== "scope") throw new Error("invalid discovery");
|
|
87
|
+
if (query.activityId !== void 0 && !bounded(query.activityId, 256)) throw new Error("invalid activityId");
|
|
88
|
+
if (query.query !== void 0 && !bounded(query.query, 512)) throw new Error("invalid query text");
|
|
89
|
+
const states = query.activityId ? await listMemoryStatesForEntityVNext(db, scope.ownerId, query.activityId) : (await loadMemoryVNextCatalog(db, scope.ownerId)).states;
|
|
90
|
+
const items = [];
|
|
91
|
+
for (const state of states) {
|
|
92
|
+
if (!isWorkContextState(state) || state.retiredAt) continue;
|
|
93
|
+
if (!validValue(state.value) || !bounded(state.entityId, 256) || !bounded(state.updatedAt, 128)) throw new Error("invalid work context state");
|
|
94
|
+
const value = state.value;
|
|
95
|
+
if (value.spaceId !== scope.spaceId || !query.activityId && query.discovery !== "scope" && !value.dialogIds.includes(scope.dialogId)) continue;
|
|
96
|
+
if (query.status !== "all" && value.status !== (query.status ?? (query.activityId ? value.status : "active"))) continue;
|
|
97
|
+
if (query.query && !JSON.stringify([value.goal, value.constraints, value.openItems, value.nextStep]).toLowerCase().includes(query.query.toLowerCase())) continue;
|
|
98
|
+
items.push({ activityId: state.entityId, value, updatedAt: state.updatedAt });
|
|
99
|
+
}
|
|
100
|
+
items.sort((a, b) => Number(b.value.dialogIds.includes(scope.dialogId)) - Number(a.value.dialogIds.includes(scope.dialogId)) || b.updatedAt.localeCompare(a.updatedAt) || a.activityId.localeCompare(b.activityId));
|
|
101
|
+
return { items: items.slice(0, limit), hasMore: items.length > limit };
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export {
|
|
105
|
+
isWorkContextState,
|
|
106
|
+
updateWorkContext,
|
|
107
|
+
readWorkContexts
|
|
108
|
+
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
+
GEMINI_NEON_SERVICE_TIER_MULTIPLIERS,
|
|
3
|
+
GEMINI_NEON_STANDARD_PRICE_USD,
|
|
2
4
|
GMI_CHAT_COMPLETIONS_URL,
|
|
3
5
|
PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
|
|
4
6
|
PLATFORM_HOSTED_KIMI_PROVIDER,
|
|
@@ -10,7 +12,7 @@ import {
|
|
|
10
12
|
resolvePlatformEffectiveModel,
|
|
11
13
|
toCnyCredits,
|
|
12
14
|
zaiModels
|
|
13
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PQ63BDV3.js";
|
|
14
16
|
|
|
15
17
|
// packages/integrations/qwen/models.ts
|
|
16
18
|
var qwenModels = [
|
|
@@ -2649,6 +2651,31 @@ var googleModels = [
|
|
|
2649
2651
|
cachingWrite: 0.8,
|
|
2650
2652
|
cachingRead: 0.8
|
|
2651
2653
|
}
|
|
2654
|
+
},
|
|
2655
|
+
{
|
|
2656
|
+
name: "gemini-4-neon",
|
|
2657
|
+
displayName: "Gemini 4 Neon",
|
|
2658
|
+
provider: "google",
|
|
2659
|
+
description: "Gemini 4 Neon frontier model for complex software engineering, knowledge work, and science workflows.",
|
|
2660
|
+
hasVision: true,
|
|
2661
|
+
hasAudio: true,
|
|
2662
|
+
contextWindow: 1048576,
|
|
2663
|
+
maxOutputTokens: 65536,
|
|
2664
|
+
supportsTool: true,
|
|
2665
|
+
supportsReasoningEffort: true,
|
|
2666
|
+
// 官方 Gemini API pricing (Standard tier, checked 2026-11-19):
|
|
2667
|
+
// 数字真值在 ai/llm/geminiNeonPricing.ts(nolo 托管目录共用同一份,避免同一上游
|
|
2668
|
+
// 价目出现两份生产真值);× 8 = credits,与本文件其它条目同口径。
|
|
2669
|
+
// Implicit caching only (explicit caching unsupported), so cachingWrite mirrors cachingRead.
|
|
2670
|
+
// 档位:Flex = 0.5x、Priority = 1.8x(官方同步线路的 service_tier)。平台没有 Batch
|
|
2671
|
+
// 线路(Batch API 是独立的异步接口,本仓库不接),故不登记 batch 倍率。
|
|
2672
|
+
price: {
|
|
2673
|
+
input: GEMINI_NEON_STANDARD_PRICE_USD.input * 8,
|
|
2674
|
+
output: GEMINI_NEON_STANDARD_PRICE_USD.output * 8,
|
|
2675
|
+
cachingWrite: GEMINI_NEON_STANDARD_PRICE_USD.cache * 8,
|
|
2676
|
+
cachingRead: GEMINI_NEON_STANDARD_PRICE_USD.cache * 8
|
|
2677
|
+
},
|
|
2678
|
+
serviceTierPriceMultipliers: { ...GEMINI_NEON_SERVICE_TIER_MULTIPLIERS }
|
|
2652
2679
|
}
|
|
2653
2680
|
];
|
|
2654
2681
|
|
|
@@ -2708,6 +2735,26 @@ var GPT_6_ASTRA_LONG_CONTEXT_PRICE = {
|
|
|
2708
2735
|
output: 600,
|
|
2709
2736
|
inputCacheHit: 16
|
|
2710
2737
|
};
|
|
2738
|
+
var GPT_6_2_ASTRA_STANDARD_PRICE = {
|
|
2739
|
+
input: 64,
|
|
2740
|
+
output: 320,
|
|
2741
|
+
inputCacheHit: 3.2
|
|
2742
|
+
};
|
|
2743
|
+
var GPT_6_2_ASTRA_LONG_CONTEXT_PRICE = {
|
|
2744
|
+
input: 128,
|
|
2745
|
+
output: 480,
|
|
2746
|
+
inputCacheHit: 6.4
|
|
2747
|
+
};
|
|
2748
|
+
var GPT_6_2_SOL_STANDARD_PRICE = {
|
|
2749
|
+
input: 16,
|
|
2750
|
+
output: 80,
|
|
2751
|
+
inputCacheHit: 0.8
|
|
2752
|
+
};
|
|
2753
|
+
var GPT_6_2_SOL_LONG_CONTEXT_PRICE = {
|
|
2754
|
+
input: 32,
|
|
2755
|
+
output: 120,
|
|
2756
|
+
inputCacheHit: 1.6
|
|
2757
|
+
};
|
|
2711
2758
|
var openAIModels = [
|
|
2712
2759
|
{
|
|
2713
2760
|
name: "gpt-5.5",
|
|
@@ -2779,6 +2826,44 @@ var openAIModels = [
|
|
|
2779
2826
|
supportsReasoningEffort: true,
|
|
2780
2827
|
price: GPT_5_6_LUNA_PRICE
|
|
2781
2828
|
},
|
|
2829
|
+
{
|
|
2830
|
+
name: "gpt-6.2-astra",
|
|
2831
|
+
displayName: "GPT-6.2 Astra",
|
|
2832
|
+
endpointKey: "responses",
|
|
2833
|
+
hasVision: true,
|
|
2834
|
+
contextWindow: 105e4,
|
|
2835
|
+
maxOutputTokens: 128e3,
|
|
2836
|
+
supportsReasoningEffort: true,
|
|
2837
|
+
price: GPT_6_2_ASTRA_STANDARD_PRICE,
|
|
2838
|
+
pricingStrategy: {
|
|
2839
|
+
type: "tiered_context",
|
|
2840
|
+
tiers: [
|
|
2841
|
+
{
|
|
2842
|
+
minContext: 272001,
|
|
2843
|
+
price: GPT_6_2_ASTRA_LONG_CONTEXT_PRICE
|
|
2844
|
+
}
|
|
2845
|
+
]
|
|
2846
|
+
}
|
|
2847
|
+
},
|
|
2848
|
+
{
|
|
2849
|
+
name: "gpt-6.2-sol",
|
|
2850
|
+
displayName: "GPT-6.2 Sol",
|
|
2851
|
+
endpointKey: "responses",
|
|
2852
|
+
hasVision: true,
|
|
2853
|
+
contextWindow: 105e4,
|
|
2854
|
+
maxOutputTokens: 128e3,
|
|
2855
|
+
supportsReasoningEffort: true,
|
|
2856
|
+
price: GPT_6_2_SOL_STANDARD_PRICE,
|
|
2857
|
+
pricingStrategy: {
|
|
2858
|
+
type: "tiered_context",
|
|
2859
|
+
tiers: [
|
|
2860
|
+
{
|
|
2861
|
+
minContext: 272001,
|
|
2862
|
+
price: GPT_6_2_SOL_LONG_CONTEXT_PRICE
|
|
2863
|
+
}
|
|
2864
|
+
]
|
|
2865
|
+
}
|
|
2866
|
+
},
|
|
2782
2867
|
{
|
|
2783
2868
|
name: "gpt-6-astra",
|
|
2784
2869
|
displayName: "GPT-6 Astra",
|
|
@@ -3027,9 +3112,21 @@ function getCachedOpenRouterModelReasoning(modelId) {
|
|
|
3027
3112
|
var GATEWAY_PROVIDERS = /* @__PURE__ */ new Set(["openrouter", "nolo"]);
|
|
3028
3113
|
var THINKING_MECHANISM_PROVIDERS = /* @__PURE__ */ new Set(["anthropic", "google"]);
|
|
3029
3114
|
var MODEL_REASONING_OVERRIDES = [
|
|
3115
|
+
{
|
|
3116
|
+
// Google 官方 OpenAI 兼容文档给出 gemini-4-neon 的 reasoning_effort 映射
|
|
3117
|
+
// (minimal→low、low→low、medium→medium、high→high、xhigh→xhigh,其中
|
|
3118
|
+
// xhigh 仅 gemini-4-neon 与 gemini-4-hydrogen 支持):
|
|
3119
|
+
// https://aistudio.google.com/docs/openai#thinking(2026-11-19 核对)。
|
|
3120
|
+
// 只声明该模型:Google 的其它 Gemini 仍走 thinking_config,不在此列。
|
|
3121
|
+
providers: ["google"],
|
|
3122
|
+
prefix: "gemini-4-neon",
|
|
3123
|
+
exact: true,
|
|
3124
|
+
efforts: ["low", "medium", "high", "xhigh"],
|
|
3125
|
+
note: "Gemini 4 Neon \u5728 Google OpenAI \u517C\u5BB9\u7AEF\u70B9\u4E0A\u7684 reasoning_effort \u6863\u4F4D\uFF08\u5B98\u65B9\u6620\u5C04\u8868\uFF09"
|
|
3126
|
+
},
|
|
3030
3127
|
// Platform GPT models accept medium even though the nolo provider fallback
|
|
3031
3128
|
// describes DeepSeek's narrower low/high/max scale.
|
|
3032
|
-
...["gpt-6.1-sol", "gpt-6.1-terra", "gpt-6-luna", "gpt-6-astra"].map((prefix) => ({
|
|
3129
|
+
...["gpt-6.2-sol", "gpt-6.2-astra", "gpt-6.1-sol", "gpt-6.1-terra", "gpt-6-luna", "gpt-6-astra"].map((prefix) => ({
|
|
3033
3130
|
providers: ["openai"],
|
|
3034
3131
|
prefix,
|
|
3035
3132
|
exact: true,
|
|
@@ -3179,15 +3276,6 @@ function capabilityFromOpenRouterLive(live) {
|
|
|
3179
3276
|
function resolveModelReasoningCapability(provider, model) {
|
|
3180
3277
|
const p = (provider ?? "").toLowerCase();
|
|
3181
3278
|
const m = (model ?? "").trim();
|
|
3182
|
-
if (THINKING_MECHANISM_PROVIDERS.has(p)) {
|
|
3183
|
-
return {
|
|
3184
|
-
found: false,
|
|
3185
|
-
supportsReasoning: true,
|
|
3186
|
-
// 有推理能力,只是走 Thinking 机制而非 effort
|
|
3187
|
-
efforts: [],
|
|
3188
|
-
source: "provider-map"
|
|
3189
|
-
};
|
|
3190
|
-
}
|
|
3191
3279
|
if (m) {
|
|
3192
3280
|
const override = matchOverride(p, m);
|
|
3193
3281
|
if (override) {
|
|
@@ -3206,6 +3294,15 @@ function resolveModelReasoningCapability(provider, model) {
|
|
|
3206
3294
|
};
|
|
3207
3295
|
}
|
|
3208
3296
|
}
|
|
3297
|
+
if (THINKING_MECHANISM_PROVIDERS.has(p)) {
|
|
3298
|
+
return {
|
|
3299
|
+
found: false,
|
|
3300
|
+
supportsReasoning: true,
|
|
3301
|
+
// 有推理能力,只是走 Thinking 机制而非 effort
|
|
3302
|
+
efforts: [],
|
|
3303
|
+
source: "provider-map"
|
|
3304
|
+
};
|
|
3305
|
+
}
|
|
3209
3306
|
const providerEfforts = PROVIDER_REASONING_EFFORT_VALUES[p];
|
|
3210
3307
|
if (providerEfforts) {
|
|
3211
3308
|
return {
|
|
@@ -3243,12 +3340,18 @@ var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
|
|
|
3243
3340
|
"gemini-3.7-flash",
|
|
3244
3341
|
"gemini-3.8-flash",
|
|
3245
3342
|
"gemini-3.6-flash",
|
|
3343
|
+
// Gemini 4 Neon:Google OpenAI 兼容端点接受 reasoning_effort(官方映射表
|
|
3344
|
+
// https://aistudio.google.com/docs/openai#thinking,2026-11-19 核对,
|
|
3345
|
+
// xhigh 仅 gemini-4-neon / gemini-4-hydrogen 支持)。
|
|
3346
|
+
"gemini-4-neon",
|
|
3246
3347
|
// Legacy Gemini ids — 已从模型注册表下线,保留只为存量 agent 的 reasoning UI。
|
|
3247
3348
|
"gemini-3.5-flash",
|
|
3248
3349
|
"gemini-3-flash-preview",
|
|
3249
3350
|
"gemini-3-pro-preview",
|
|
3250
3351
|
"gemini-3.1-pro-preview",
|
|
3251
3352
|
"gpt-5.5-pro",
|
|
3353
|
+
"gpt-6.2-astra",
|
|
3354
|
+
"gpt-6.2-sol",
|
|
3252
3355
|
"gpt-6-astra",
|
|
3253
3356
|
"gpt-6.1-sol",
|
|
3254
3357
|
"gpt-6.1-terra",
|
|
@@ -3260,6 +3363,7 @@ var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
|
|
|
3260
3363
|
"glm-5.3",
|
|
3261
3364
|
"glm-5.2",
|
|
3262
3365
|
"kimi-k3",
|
|
3366
|
+
"kimi-k3.1-pro",
|
|
3263
3367
|
// Legacy OpenAI catalog ids — still support reasoning UI for agents that
|
|
3264
3368
|
// were never re-seeded after GPT-5.4 / GPT-5 were retired from the picker.
|
|
3265
3369
|
"gpt-5.4",
|
|
@@ -3313,11 +3417,13 @@ function clampReasoningEffort(effort, provider, model) {
|
|
|
3313
3417
|
if (!effort) return void 0;
|
|
3314
3418
|
const normalized = effort === "off" ? "none" : effort;
|
|
3315
3419
|
const providerLower = (provider ?? "").toLowerCase();
|
|
3316
|
-
|
|
3420
|
+
const modelCapability = model ? resolveModelReasoningCapabilityWithCache(provider, model) : void 0;
|
|
3421
|
+
const hasModelLevelEfforts = Boolean(modelCapability?.found && modelCapability.supportsReasoning) && (modelCapability?.efforts.length ?? 0) > 0;
|
|
3422
|
+
if (THINKING_MECHANISM_PROVIDERS.has(providerLower) && !hasModelLevelEfforts) {
|
|
3317
3423
|
return void 0;
|
|
3318
3424
|
}
|
|
3319
|
-
if (
|
|
3320
|
-
const cap =
|
|
3425
|
+
if (modelCapability) {
|
|
3426
|
+
const cap = modelCapability;
|
|
3321
3427
|
if (cap.found) {
|
|
3322
3428
|
if (!cap.supportsReasoning || cap.efforts.length === 0) {
|
|
3323
3429
|
return void 0;
|
|
@@ -206,7 +206,7 @@ async function readDocFunc(args, thunkApi) {
|
|
|
206
206
|
throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
|
|
207
207
|
}
|
|
208
208
|
try {
|
|
209
|
-
const { readAction } = await import("./read-
|
|
209
|
+
const { readAction } = await import("./read-BRZHXUJ6.js");
|
|
210
210
|
const pageData = await readAction({ dbKey: id }, thunkApi);
|
|
211
211
|
if (!pageData) {
|
|
212
212
|
throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveRunsDir
|
|
3
|
+
} from "./chunk-AEZBAFC6.js";
|
|
1
4
|
import {
|
|
2
5
|
isLoopbackHostname
|
|
3
6
|
} from "./chunk-4SN6J65J.js";
|
|
@@ -66,7 +69,34 @@ async function defaultLoopbackRequest(input, init) {
|
|
|
66
69
|
});
|
|
67
70
|
}
|
|
68
71
|
|
|
72
|
+
// packages/cli/tui/localRunChildDialogIds.ts
|
|
73
|
+
import { readdirSync, readFileSync } from "node:fs";
|
|
74
|
+
import { join } from "node:path";
|
|
75
|
+
function loadLocalRunChildDialogIds(args = {}) {
|
|
76
|
+
const ids = /* @__PURE__ */ new Set();
|
|
77
|
+
const runsDir = resolveRunsDir(args.env, args.homedir);
|
|
78
|
+
let entries;
|
|
79
|
+
try {
|
|
80
|
+
entries = readdirSync(runsDir);
|
|
81
|
+
} catch {
|
|
82
|
+
return ids;
|
|
83
|
+
}
|
|
84
|
+
for (const name of entries) {
|
|
85
|
+
if (!name.endsWith(".json")) continue;
|
|
86
|
+
try {
|
|
87
|
+
const record = JSON.parse(readFileSync(join(runsDir, name), "utf8"));
|
|
88
|
+
const dialogId = record?.dialogId;
|
|
89
|
+
if (typeof dialogId === "string" && dialogId.trim()) {
|
|
90
|
+
ids.add(dialogId.trim());
|
|
91
|
+
}
|
|
92
|
+
} catch {
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return ids;
|
|
96
|
+
}
|
|
97
|
+
|
|
69
98
|
export {
|
|
70
99
|
isLoopbackUrl,
|
|
71
|
-
defaultLoopbackRequest
|
|
100
|
+
defaultLoopbackRequest,
|
|
101
|
+
loadLocalRunChildDialogIds
|
|
72
102
|
};
|
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveDefaultReasoningEffort
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
buildRestorePatch
|
|
6
|
-
} from "./chunk-BV3FLP2L.js";
|
|
3
|
+
} from "./chunk-FGHEF6WI.js";
|
|
7
4
|
import {
|
|
8
5
|
buildLocalAgentLookupKeys,
|
|
9
6
|
shouldReadAgentKeyRemotely
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
resolveCliAgentKeyInput
|
|
13
|
-
} from "./chunk-BR3GT6MR.js";
|
|
7
|
+
} from "./chunk-IJZC2KIJ.js";
|
|
14
8
|
import {
|
|
15
9
|
createHostCredentialBrokerChain,
|
|
16
10
|
createStrictHostCredentialBroker
|
|
17
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LHCGKAFO.js";
|
|
18
12
|
import {
|
|
19
13
|
collectInvalidAgentSkillModes,
|
|
20
14
|
formatInvalidAgentSkillModeMessage,
|
|
21
15
|
formatInvalidAgentSkillModesFieldMessage,
|
|
22
16
|
isAgentSkillModesFieldShapeValid
|
|
23
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YDRRGVT5.js";
|
|
24
18
|
import {
|
|
25
19
|
buildAgentApiKeyCredentialRef,
|
|
26
20
|
migrateAgentSecrets
|
|
@@ -28,10 +22,16 @@ import {
|
|
|
28
22
|
import {
|
|
29
23
|
assertCredentialRef,
|
|
30
24
|
createFileCredentialBroker
|
|
31
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-E6A5NHDH.js";
|
|
26
|
+
import {
|
|
27
|
+
buildRestorePatch
|
|
28
|
+
} from "./chunk-BV3FLP2L.js";
|
|
32
29
|
import {
|
|
33
30
|
createAgentKey
|
|
34
31
|
} from "./chunk-SYTHYBMI.js";
|
|
32
|
+
import {
|
|
33
|
+
resolveCliAgentKeyInput
|
|
34
|
+
} from "./chunk-BR3GT6MR.js";
|
|
35
35
|
import {
|
|
36
36
|
parseUserIdFromAuthToken,
|
|
37
37
|
readOption,
|
|
@@ -766,7 +766,7 @@ async function buildCreatedAgentRecord(args) {
|
|
|
766
766
|
const resolvedAgentInput = resolveCliAgentKeyInput(args.parsed.agentInput);
|
|
767
767
|
const agentKey = resolvedAgentInput.startsWith("agent-") ? resolvedAgentInput : createAgentKey.private(userId || "local", resolvedAgentInput);
|
|
768
768
|
if (args.parsed.presetId) {
|
|
769
|
-
const { resolveProviderPresetFields } = await import("./providerPresetApply-
|
|
769
|
+
const { resolveProviderPresetFields } = await import("./providerPresetApply-4H7YP5D7.js");
|
|
770
770
|
const fields = resolveProviderPresetFields(args.parsed.presetId);
|
|
771
771
|
if (fields.kind === "manual") {
|
|
772
772
|
throw new Error(
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
toErrorMessage
|
|
9
9
|
} from "./chunk-HNMXYYJR.js";
|
|
10
|
-
import {
|
|
11
|
-
isRecord
|
|
12
|
-
} from "./chunk-KUG52IAP.js";
|
|
13
10
|
import {
|
|
14
11
|
asOptionalFiniteNumber
|
|
15
12
|
} from "./chunk-WWC7I6TA.js";
|
|
13
|
+
import {
|
|
14
|
+
isRecord
|
|
15
|
+
} from "./chunk-KUG52IAP.js";
|
|
16
16
|
import {
|
|
17
17
|
asOptionalTrimmedString
|
|
18
18
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -1106,6 +1106,29 @@ var shellChildEnvironment = new AsyncLocalStorage();
|
|
|
1106
1106
|
function withShellChildEnvironment(env, run) {
|
|
1107
1107
|
return shellChildEnvironment.run(env, run);
|
|
1108
1108
|
}
|
|
1109
|
+
var STRIPPED_WORKSPACE_CHILD_ENV_KEYS = [
|
|
1110
|
+
"NOLO_AGENT_RUN_ID",
|
|
1111
|
+
"NOLO_AGENT_RUN_PROTOCOL",
|
|
1112
|
+
"NOLO_AGENT_RUN_CONTENT_IDENTITY",
|
|
1113
|
+
"NOLO_WRITER_LAUNCH_ATTEMPT"
|
|
1114
|
+
];
|
|
1115
|
+
var STRIPPED_WORKSPACE_CHILD_ENV_UPPER = new Set(STRIPPED_WORKSPACE_CHILD_ENV_KEYS);
|
|
1116
|
+
function workspaceChildEnv(env = process.env, platform = process.platform) {
|
|
1117
|
+
const child = { ...env };
|
|
1118
|
+
if (platform === "win32") {
|
|
1119
|
+
const asciiUpper = (value) => value.replace(/[a-z]/g, (ch) => ch.toUpperCase());
|
|
1120
|
+
for (const key of Object.keys(child)) {
|
|
1121
|
+
if (STRIPPED_WORKSPACE_CHILD_ENV_UPPER.has(asciiUpper(key))) {
|
|
1122
|
+
delete child[key];
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
} else {
|
|
1126
|
+
for (const key of STRIPPED_WORKSPACE_CHILD_ENV_KEYS) {
|
|
1127
|
+
delete child[key];
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
return child;
|
|
1131
|
+
}
|
|
1109
1132
|
var EXEC_SHELL_TIMEOUT_ENV = "NOLO_EXEC_SHELL_TIMEOUT_MS";
|
|
1110
1133
|
var EXEC_SHELL_DETACH_ENV = "NOLO_EXEC_SHELL_DETACH_MS";
|
|
1111
1134
|
var DEFAULT_EXEC_SHELL_DETACH_MS = 12e4;
|
|
@@ -1767,7 +1790,7 @@ async function runWorkspaceCommand(args) {
|
|
|
1767
1790
|
const spawnedAt = Date.now();
|
|
1768
1791
|
const proc = spawnChildProcess(command[0] ?? "", command.slice(1), {
|
|
1769
1792
|
cwd: resolve2(args.workspaceRoot),
|
|
1770
|
-
env: { ...process.env, ...shellChildEnvironment.getStore() },
|
|
1793
|
+
env: workspaceChildEnv({ ...process.env, ...shellChildEnvironment.getStore() }),
|
|
1771
1794
|
stdio: [
|
|
1772
1795
|
args.stdin === void 0 ? "ignore" : "pipe",
|
|
1773
1796
|
"pipe",
|
|
@@ -2098,6 +2121,7 @@ export {
|
|
|
2098
2121
|
getProcessRegistry,
|
|
2099
2122
|
buildProcessTaskResultCapsule,
|
|
2100
2123
|
withShellChildEnvironment,
|
|
2124
|
+
workspaceChildEnv,
|
|
2101
2125
|
extractActivity,
|
|
2102
2126
|
findPowerShellExecutable,
|
|
2103
2127
|
buildWorkspaceShellPlan,
|