nolo-cli 0.225.0-alpha.1 → 0.225.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/{_executeModel-L5VHAXSU.js → _executeModel-UCWDB72C.js} +79 -73
- package/{action-CK64LS6S.js → action-24MZYW2B.js} +11 -8
- package/{addContentAction-EQXMFNPR.js → addContentAction-HEMCSSHT.js} +14 -13
- package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-SQYDOXHA.js} +15 -14
- package/{agentDeleteCommand-4WC7INCX.js → agentDeleteCommand-P7O3ACNJ.js} +131 -124
- package/{agentEmailCommands-3XFR6WY7.js → agentEmailCommands-A5BRSYWK.js} +134 -123
- package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
- package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
- package/{agentListCommands-BBCP5XYW.js → agentListCommands-LDRCOOMO.js} +112 -496
- package/{agentMachineCommands-YZDCOLQL.js → agentMachineCommands-AYL53KJV.js} +65 -58
- package/{agentProviderCommands-7BSJH7TO.js → agentProviderCommands-N5EA3ED2.js} +6 -6
- package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-QQQZSC6S.js} +6 -6
- package/agentRecordCommands-FICBZ57C.js +188 -0
- package/{agentRunCommand-NHYBV4G5.js → agentRunCommand-CTXQGDUM.js} +135 -120
- package/{agentRunControl-7A2FOXIJ.js → agentRunControl-CO6BASZF.js} +20 -14
- package/{agentRuntimeLocal-GSTYFEX4.js → agentRuntimeLocal-5YN4D5WT.js} +48 -41
- package/{agentSlice-O6IGTM3Y.js → agentSlice-DJ5D4DU4.js} +18 -17
- package/{appDeleteCommands-L7HL4AWF.js → appDeleteCommands-B4E7N7M2.js} +58 -51
- package/{appDeployCommands-SGSUNFZR.js → appDeployCommands-E4DTXRRM.js} +58 -51
- package/{appDeployStatusCommands-AAA3XD54.js → appDeployStatusCommands-FCNHYHZM.js} +58 -51
- package/{appGetCommands-LN72GAOA.js → appGetCommands-4DXSQHUZ.js} +58 -51
- package/{appListCommands-IJQQ3VND.js → appListCommands-2NN5E4F6.js} +58 -51
- package/{authCommand-7JXW54U4.js → authCommand-47DR6GZT.js} +33 -28
- package/{authCommands-YDNAIDEY.js → authCommands-ZZ3L5IFM.js} +16 -11
- package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-AYWYQVA4.js} +5 -5
- package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-VZWAY2KR.js} +6 -6
- package/{chunk-YDBMZ7FV.js → chunk-24GVXSWK.js} +3 -3
- package/{chunk-JCK3EFZS.js → chunk-25OCZXSX.js} +63 -32
- package/{chunk-P2ZLUIW2.js → chunk-2BSLGODA.js} +350 -25
- package/chunk-2SXN7LAY.js +15 -0
- package/{chunk-N5PQJKCY.js → chunk-2XMKW2OY.js} +13 -12
- package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
- package/{chunk-UKS7D2NL.js → chunk-3NFWMSTA.js} +111 -26
- package/{chunk-TZEP5J4A.js → chunk-3V6JT6WN.js} +2935 -1412
- package/{chunk-SBVTHMEG.js → chunk-4FE3IWRE.js} +1 -1
- package/{chunk-4JVNURX4.js → chunk-4YFC3DWW.js} +68 -16
- package/chunk-4ZCTKB27.js +31 -0
- package/chunk-53W5BXLN.js +340 -0
- package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
- package/{chunk-VFBVA3U2.js → chunk-5TJE4QCL.js} +131 -40
- package/{chunk-YXMBJ7UH.js → chunk-6BGJHJRN.js} +21 -21
- package/chunk-6D25V6CB.js +133 -0
- package/chunk-6RSNVJGO.js +279 -0
- package/{chunk-IZIN2UNJ.js → chunk-6X3CS6NJ.js} +203 -24
- package/{chunk-XZGQ6ZCV.js → chunk-6XBOPKUH.js} +27 -90
- package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
- package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
- package/chunk-7NIBQ4HY.js +138 -0
- package/{chunk-7Z6EW7AH.js → chunk-7OTNBI77.js} +13 -6
- package/{chunk-HOK3ILHA.js → chunk-7Q7MKJZN.js} +590 -330
- package/{chunk-KZU52OJ5.js → chunk-7U2TFUWW.js} +6 -6
- package/{chunk-IUD7YR3B.js → chunk-B72AFRR2.js} +15 -15
- package/{chunk-4HFTBHBF.js → chunk-BDERPCJW.js} +8 -8
- package/chunk-BEM6LPD2.js +734 -0
- package/chunk-BIDSIRTS.js +307 -0
- package/{chunk-6J4TTPS2.js → chunk-BIJTI5SX.js} +5 -5
- package/chunk-BWW6WRX6.js +1438 -0
- package/{chunk-AGP3YSEC.js → chunk-C3GOEQJF.js} +46 -1
- package/chunk-C5A54QS7.js +108 -0
- package/{chunk-MOMR7NMG.js → chunk-C646JEUV.js} +2 -2
- package/{chunk-YI5CDUJD.js → chunk-CT6GT2BG.js} +9 -9
- package/{chunk-PVZY6P3S.js → chunk-CZLSTOVM.js} +2 -2
- package/{chunk-LJSNEV7M.js → chunk-DGUUOHBF.js} +8 -8
- package/{chunk-C4WTX5TU.js → chunk-DIBQXNGW.js} +2 -2
- package/{chunk-YFLVRVYK.js → chunk-DLT2DN4M.js} +1 -1
- package/{chunk-K44HIUBX.js → chunk-DLTMAXLF.js} +13 -13
- package/chunk-DVYAFH2Q.js +103 -0
- package/{chunk-SOG7OEXX.js → chunk-DWWUVRB5.js} +1 -1
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-GNHMRBYZ.js → chunk-EBKHA63G.js} +106 -14
- package/{chunk-KC4SCKXO.js → chunk-EIFSCI4C.js} +990 -1370
- package/{chunk-F3YK7KIU.js → chunk-EW37CXCQ.js} +4 -4
- package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
- package/{chunk-2VUZSVAS.js → chunk-F3FQPVHE.js} +57 -20
- package/{chunk-ZRAARRA3.js → chunk-FCAMGBLY.js} +1399 -2978
- package/{chunk-AK5O76CC.js → chunk-FPMPWNVQ.js} +3 -3
- package/{chunk-WQEMD4Z4.js → chunk-FSIEHQNH.js} +420 -120
- package/{chunk-FNDSBM4J.js → chunk-FXX6VFMV.js} +571 -348
- package/{chunk-7XS4W5KP.js → chunk-G6OPRPXH.js} +128 -149
- package/{chunk-PMDVQBGA.js → chunk-GAHJLSDO.js} +14 -7
- package/{chunk-2TIQO6TC.js → chunk-GCVFX6ZL.js} +206 -308
- package/{chunk-P25E3CKY.js → chunk-H6CHPU6M.js} +4 -4
- package/chunk-HNWZJI4N.js +33394 -0
- package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
- package/{chunk-KNIIRXHF.js → chunk-IPRPYKBP.js} +46 -8
- package/{chunk-C4VAR65S.js → chunk-IUXBKS5L.js} +200 -120
- package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
- package/{chunk-Z6USB65D.js → chunk-KGIIZXPL.js} +347 -14
- package/chunk-KK3FCYZM.js +647 -0
- package/{chunk-GBZ4YKEO.js → chunk-KOIDLCAQ.js} +8 -8
- package/{chunk-2ZKFCIJJ.js → chunk-LCQJH7KN.js} +1 -1
- package/{chunk-N5Z2V73W.js → chunk-LELADM5Q.js} +1 -1
- package/{chunk-4NA3YTBC.js → chunk-LMFMV5UC.js} +8 -8
- package/{chunk-XN23AUVU.js → chunk-LMZRXDWG.js} +8 -5
- package/{chunk-EWPDMS4N.js → chunk-LN4ZVSO7.js} +30 -15
- package/{chunk-GOAPXKQU.js → chunk-LT3DMEIB.js} +4 -4
- package/{chunk-GGKNJ42M.js → chunk-LYDEFPQP.js} +18 -108
- package/{chunk-FTQWYWUI.js → chunk-MDVP5TLI.js} +1 -1
- package/{chunk-EOWLBDY6.js → chunk-MM73SP4K.js} +1 -1
- package/chunk-MVOZ22RZ.js +26 -0
- package/{chunk-3QFLXA24.js → chunk-N6EN3HK3.js} +3 -3
- package/{chunk-D726I5AZ.js → chunk-NBB2EBQD.js} +2 -2
- package/{chunk-DISQCYPE.js → chunk-NL7J2J5Z.js} +6 -6
- package/{chunk-JM5C4EUA.js → chunk-NQQL2DKF.js} +6 -6
- package/{chunk-LS2MGTUS.js → chunk-NWWQY2J5.js} +15 -15
- package/{chunk-TXGQ4O5S.js → chunk-OATIWAKN.js} +20 -174
- package/{chunk-KYH7XW3K.js → chunk-OJRTTERA.js} +77 -2
- package/{chunk-VV7TXWOC.js → chunk-OYHJ4TW7.js} +6 -6
- package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
- package/{chunk-2VA6TU4I.js → chunk-QES2NCVM.js} +17 -14
- package/{chunk-WG2LFJYB.js → chunk-QGMIUVBT.js} +39 -30
- package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
- package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/{chunk-AMEOV5VZ.js → chunk-S25VJYXV.js} +41 -35
- package/chunk-SR4FE5VD.js +9 -0
- package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
- package/{chunk-GVGOEMNV.js → chunk-T444ENEC.js} +3 -3
- package/{chunk-67BE44IS.js → chunk-TE2XH4KH.js} +1 -1
- package/{chunk-5RKUPJYL.js → chunk-TFGGNRT6.js} +11 -3
- package/{chunk-ZH6MUQEO.js → chunk-TTEBPPUV.js} +1 -1
- package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
- package/{chunk-AVHRSJUH.js → chunk-TXFYIWAW.js} +32 -25
- package/{chunk-KOXKKHFE.js → chunk-TXQVH72L.js} +9 -4
- package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
- package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
- package/{chunk-KDAGMRDA.js → chunk-UAHUJ4HH.js} +100 -32
- package/{chunk-BGGHA5DV.js → chunk-UAOFSUG7.js} +1 -1
- package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
- package/chunk-UKSKCDBG.js +62 -0
- package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
- package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
- package/chunk-WDWZPASX.js +29 -0
- package/chunk-WFGNWWJI.js +326 -0
- package/{chunk-UYOICCYG.js → chunk-WHO3LYDW.js} +64 -89
- package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
- package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-QLFCTYRH.js → chunk-X37RQEA3.js} +17 -10
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
- package/chunk-X7IA2B7R.js +166 -0
- package/{chunk-GIABSSWQ.js → chunk-XAFOLWLU.js} +4 -4
- package/{chunk-45LZIYXB.js → chunk-XNEDFWT4.js} +2 -2
- package/{chunk-EOJZGQAE.js → chunk-Y5RN44VH.js} +103 -100
- package/{chunk-OB6DVWPF.js → chunk-YFRJAE3R.js} +319 -95
- package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
- package/{chunk-3KNEE64G.js → chunk-YMCSR7PA.js} +14 -14
- package/chunk-YUZ2DAIH.js +34 -0
- package/chunk-Z6YTCDU4.js +24 -0
- package/{chunk-XQBIZRGW.js → chunk-ZBQ5UGYY.js} +3 -3
- package/{chunk-VREDDN25.js → chunk-ZQUCJBS4.js} +14 -9
- package/{chunk-UEKXWO7A.js → chunk-ZT3DYK5T.js} +15 -4
- package/{chunk-LM2PS3YS.js → chunk-ZTLTDUV6.js} +24 -11
- package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
- package/{cliAgentConfigHelpers-KICKKNYQ.js → cliAgentConfigHelpers-RFR7ZCSK.js} +12 -12
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
- package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
- package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
- package/{cliLocalAgentRecordReader-6FXGFBI3.js → cliLocalAgentRecordReader-AJ4UKHKT.js} +51 -45
- package/{commandRegistry-HJDPQSQ4.js → commandRegistry-IHWZVV4G.js} +98 -94
- package/{contentThunks-I6OR5ENG.js → contentThunks-YQRCBDKF.js} +38 -35
- package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-W67DE765.js} +4 -4
- package/{createAgentAutomationAction-7BCCTWO5.js → createAgentAutomationAction-ERSDNR4R.js} +38 -35
- package/{createDialogAction-CU27KSCJ.js → createDialogAction-QXC7JZPE.js} +39 -37
- package/{createPageAction-CWRTEYVA.js → createPageAction-RLZ7776F.js} +40 -37
- package/{db-CS4ZJQKV.js → db-6NRZLEW2.js} +10 -7
- package/{dbSlice-ZJPDIFER.js → dbSlice-7M2ESEUO.js} +13 -12
- package/{deleteFile-Q3YDB4ML.js → deleteFile-WO6WSSNK.js} +10 -7
- package/{dialogCommands-OPTRZWTE.js → dialogCommands-UIRO4QNN.js} +62 -56
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-77B57PL6.js → dialogNotifyCommand-VDUFYBZV.js} +14 -14
- package/{dialogSlice-XODSLDHY.js → dialogSlice-A4U3C76D.js} +36 -33
- package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-SEC6UZWM.js} +3 -3
- package/{docCreateCommands-36WS33BK.js → docCreateCommands-MHPYTJWR.js} +56 -49
- package/{docDeleteCommands-C4CS4XLF.js → docDeleteCommands-VYULMBAQ.js} +58 -51
- package/{docReadCommands-QZMSFMPN.js → docReadCommands-FV3GGZ7V.js} +56 -49
- package/{docStore-TVN4SNVE.js → docStore-AWWI72FA.js} +15 -14
- package/{docUpdateCommands-BYI64HVV.js → docUpdateCommands-JNS3HX7F.js} +56 -49
- package/fetchMessages-TQEUZD7H.js +2 -2
- package/{getPricing-VNGFM4PN.js → getPricing-U5AR7ZHS.js} +5 -5
- package/{handleSendMessageAction-NSEMVHWX.js → handleSendMessageAction-WDJOUDNV.js} +68 -63
- package/{hostCredentialCreate-WBZY7DZB.js → hostCredentialCreate-H3FF2SAO.js} +123 -111
- package/index.js +56 -18
- package/keys-RWF7UCB4.js +2 -2
- package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
- package/{localDialogRead-SVTPA5GY.js → localDialogRead-3T2KMCRC.js} +1 -1
- package/{localRuntimeAdapter-OAIWERFA.js → localRuntimeAdapter-JAQQXZJP.js} +126 -113
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-7DKIT7UH.js} +4 -2
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
- package/{machineCommands-OI37ZUQ4.js → machineCommands-WYOFNB5I.js} +146 -120
- package/{machineWsRunDispatch-73HKPV6D.js → machineWsRunDispatch-Y7UIAZNM.js} +118 -107
- package/markdownToSlate-KIYM7B3P.js +8 -0
- package/mcpLocalAuthorizeCommand-SCYEFLRK.js +106 -0
- package/{memberThunks-JRYNONYV.js → memberThunks-DIITWU4M.js} +22 -17
- package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
- package/{models-H5NNZRLH.js → models-CINY5UZR.js} +2 -2
- package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
- package/package.json +1 -1
- package/{projectArchive-GVEARCOG.js → projectArchive-IZJXBW5N.js} +43 -40
- package/{providerPresetApply-J3WMRPD2.js → providerPresetApply-2QWXPJXZ.js} +6 -6
- package/{providerRegistry-KJGB5XWS.js → providerRegistry-W4LCKK6V.js} +6 -6
- package/{read-Q7GOHGNP.js → read-OBLJNMA2.js} +9 -8
- package/{readDocTool-Z5OQ6422.js → readDocTool-QQZ4DAER.js} +1 -1
- package/{readlineWorkspace-5DWUGNSU.js → readlineWorkspace-WF3SWZGR.js} +7055 -5248
- package/rememberExplicit-CPAPONSI.js +15 -0
- package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-HC3SOY3G.js} +17 -16
- package/{runAgentClientLoop-RDXIPF34.js → runAgentClientLoop-Z7V6TA3O.js} +97 -72
- package/{runtimeDoctorCommands-UXKXYBW6.js → runtimeDoctorCommands-KX6YLPWV.js} +17 -17
- package/{secretCommands-LJXOOYA7.js → secretCommands-STRAX275.js} +4 -4
- package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-DDZUQPY6.js} +16 -15
- package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-EB67OMAJ.js} +17 -16
- package/{settingThunks-AXTBX3Q5.js → settingThunks-TN6GFASU.js} +181 -62
- package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
- package/{spaceCommands-GUKMDRWN.js → spaceCommands-HBYQUVJI.js} +61 -54
- package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
- package/{streamAgentChatTurn-XEYQZPDJ.js → streamAgentChatTurn-CM7QQXOS.js} +178 -173
- package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-XY5TKQQE.js} +15 -14
- package/{tableCommands-HITDSLHS.js → tableCommands-MXFL3JIT.js} +13 -10
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-53YMJ2G6.js} +8 -6
- package/{tools-6DFTHCFX.js → tools-AT6H73LD.js} +66 -62
- package/tuiRestart-272SAYSK.js +41 -0
- package/{tuiSummaryLlmCaller-7WLUKNP2.js → tuiSummaryLlmCaller-K2OVRVHG.js} +20 -19
- package/{updateCommands-RJVCRSBP.js → updateCommands-O3BOVVVN.js} +8 -6
- package/{updateDialogTitleAction-AMSBV2H7.js → updateDialogTitleAction-PGY4UPLH.js} +38 -35
- package/{usageCommand-YPJ2ZI2F.js → usageCommand-SCF3ROV2.js} +4 -4
- package/{usageRebuildCommand-FERQO74C.js → usageRebuildCommand-K5WPIBA5.js} +5 -5
- package/webapi-24RZDIIQ.js +2488 -0
- package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-WJDUZLEO.js} +2 -2
- package/workContext-Y3ADAPZU.js +14 -0
- package/workContextAccess-UZHDLBUR.js +11 -0
- package/workContextWriteNotice-YCSSMHN4.js +7 -0
- package/agentRecordCommands-KLYKI4Z7.js +0 -177
- package/chunk-2THCNKE4.js +0 -147
- package/chunk-2WZXXAQD.js +0 -57
- package/chunk-5ZMIIR23.js +0 -265
- package/chunk-652XYZGP.js +0 -352
- package/chunk-BJF2MHJ3.js +0 -118
- package/chunk-KEPOVMF4.js +0 -91
- package/chunk-QZI44GWV.js +0 -776
- package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
- package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
- package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
- package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
- package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
- package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
- package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
|
@@ -3,26 +3,19 @@ import {
|
|
|
3
3
|
} from "./chunk-HS7MLR74.js";
|
|
4
4
|
import {
|
|
5
5
|
performServerProxyFetchWithRetry
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QGMIUVBT.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchServerSyncedCredential
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DLTMAXLF.js";
|
|
10
10
|
import {
|
|
11
|
-
CREDENTIAL_HYGIENE_RULE,
|
|
12
|
-
DELETE_SAFETY_RED_LINE,
|
|
13
|
-
DISPATCH_BACKEND_POLICY,
|
|
14
|
-
DISPATCH_CANDIDATE_POLICY,
|
|
15
|
-
PARALLEL_DISPATCH_DEFAULT_RULE,
|
|
16
|
-
PLATFORM_RISK_CONTROL_RULE,
|
|
17
|
-
VERIFY_BEFORE_CONCLUDING_RULE,
|
|
18
|
-
buildConsultationModeBlock,
|
|
19
11
|
buildIdentityBlock,
|
|
12
|
+
buildPlatformStaticContextLayers,
|
|
20
13
|
buildResponseGuidelines,
|
|
21
14
|
buildRuntimeGuidanceBlocks,
|
|
22
15
|
compileContextLayers,
|
|
23
16
|
detectDispatchIntentFromMessages,
|
|
24
17
|
resolveToolGuidedSections
|
|
25
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GCVFX6ZL.js";
|
|
26
19
|
import {
|
|
27
20
|
convertMessagesToResponsesInput,
|
|
28
21
|
getUsageRequestOptions,
|
|
@@ -31,29 +24,33 @@ import {
|
|
|
31
24
|
resolveReasoningReplayOptions,
|
|
32
25
|
shouldStripReasoningContentForOutbound,
|
|
33
26
|
stablePromptCacheKey
|
|
34
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-NQQL2DKF.js";
|
|
35
28
|
import {
|
|
36
29
|
resolveAgentCallPlan,
|
|
37
30
|
resolveClientWire
|
|
38
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-NL7J2J5Z.js";
|
|
39
32
|
import {
|
|
40
33
|
createFileCredentialBroker
|
|
41
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-OQHIVPG4.js";
|
|
42
35
|
import {
|
|
43
|
-
WORKTREE_ISOLATION_PRELUDE,
|
|
44
36
|
buildSkillGuidancePromptBlock
|
|
45
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-EBKHA63G.js";
|
|
46
38
|
import {
|
|
47
39
|
canonicalizeToolNames
|
|
48
40
|
} from "./chunk-6OVNSQHN.js";
|
|
49
41
|
import {
|
|
50
42
|
MEMORY_USE_GUIDANCE,
|
|
51
|
-
buildUserResponseLanguageContext
|
|
43
|
+
buildUserResponseLanguageContext
|
|
44
|
+
} from "./chunk-YGDYYFRX.js";
|
|
45
|
+
import {
|
|
52
46
|
wrapHistoricalSummaryWithReplayGuard
|
|
53
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-2SXN7LAY.js";
|
|
48
|
+
import {
|
|
49
|
+
API_ENDPOINTS
|
|
50
|
+
} from "./chunk-LCBAMY2M.js";
|
|
54
51
|
import {
|
|
55
52
|
buildProviderAuthHeaders
|
|
56
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-LMFMV5UC.js";
|
|
57
54
|
import {
|
|
58
55
|
toErrorMessage
|
|
59
56
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -64,25 +61,22 @@ import {
|
|
|
64
61
|
clampReasoningEffort,
|
|
65
62
|
getModelConfig,
|
|
66
63
|
isModelSupportReasoningEffort
|
|
67
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-OJRTTERA.js";
|
|
68
65
|
import {
|
|
69
66
|
isRecord
|
|
70
67
|
} from "./chunk-KUG52IAP.js";
|
|
71
|
-
import {
|
|
72
|
-
isDeepInfraKimiModel,
|
|
73
|
-
isFireworksKimiModel,
|
|
74
|
-
isPlatformMimoProviderModel,
|
|
75
|
-
resolveFireworksKimiModel
|
|
76
|
-
} from "./chunk-OBSEKCVK.js";
|
|
77
|
-
import {
|
|
78
|
-
API_ENDPOINTS
|
|
79
|
-
} from "./chunk-LCBAMY2M.js";
|
|
80
68
|
import {
|
|
81
69
|
asOptionalTrimmedString
|
|
82
70
|
} from "./chunk-G3SUCT4W.js";
|
|
83
71
|
import {
|
|
84
72
|
isLoopbackUrl
|
|
85
73
|
} from "./chunk-4SN6J65J.js";
|
|
74
|
+
import {
|
|
75
|
+
isDeepInfraKimiModel,
|
|
76
|
+
isFireworksKimiModel,
|
|
77
|
+
isPlatformMimoProviderModel,
|
|
78
|
+
resolveFireworksKimiModel
|
|
79
|
+
} from "./chunk-U4VSBDO5.js";
|
|
86
80
|
|
|
87
81
|
// packages/agent-runtime/responsesConversationState.ts
|
|
88
82
|
function supportsResponsesConversationState(agent) {
|
|
@@ -247,8 +241,7 @@ ${mainPrompt}` : "";
|
|
|
247
241
|
emailRegistrationWorkflow
|
|
248
242
|
} = buildRuntimeGuidanceBlocks(agentTools);
|
|
249
243
|
const clarifyingSection = !mainPrompt || hasAskTool ? CLARIFICATION_MODE_INSTRUCTIONS : "";
|
|
250
|
-
const userGlobalPromptSection =
|
|
251
|
-
${contexts.userGlobalPrompt.trim()} ` : "";
|
|
244
|
+
const userGlobalPromptSection = "";
|
|
252
245
|
const effectiveViewport = viewport ?? contexts.viewport;
|
|
253
246
|
const isMobile = effectiveViewport !== void 0 ? effectiveViewport.width < mobileBreakpoint : typeof contexts.isMobile === "boolean" ? contexts.isMobile : isBrowser && typeof window !== "undefined" ? window.innerWidth < mobileBreakpoint : false;
|
|
254
247
|
const responseGuidelinesSection = buildResponseGuidelines(isMobile);
|
|
@@ -267,65 +260,8 @@ ${contexts.userGlobalPrompt.trim()} ` : "";
|
|
|
267
260
|
const dialogSummarySection = contexts.dialogSummary?.trim() ? `--- \u5386\u53F2\u5BF9\u8BDD\u6458\u8981 ---
|
|
268
261
|
${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
|
|
269
262
|
return compileContextLayers([
|
|
270
|
-
//
|
|
271
|
-
|
|
272
|
-
{
|
|
273
|
-
id: "delete-safety-red-line",
|
|
274
|
-
owner: "platform",
|
|
275
|
-
cacheScope: "static",
|
|
276
|
-
content: DELETE_SAFETY_RED_LINE
|
|
277
|
-
},
|
|
278
|
-
// 凭据纪律:与红线同为无条件系统层块,四条装配线同源。
|
|
279
|
-
{
|
|
280
|
-
id: "credential-hygiene",
|
|
281
|
-
owner: "platform",
|
|
282
|
-
cacheScope: "static",
|
|
283
|
-
content: CREDENTIAL_HYGIENE_RULE
|
|
284
|
-
},
|
|
285
|
-
// 先验证再下结论:一切动作的前提,紧随凭据纪律、先于并行/派发/发布规则。
|
|
286
|
-
{
|
|
287
|
-
id: "verify-before-concluding",
|
|
288
|
-
owner: "platform",
|
|
289
|
-
cacheScope: "static",
|
|
290
|
-
content: VERIFY_BEFORE_CONCLUDING_RULE
|
|
291
|
-
},
|
|
292
|
-
// 并行是默认:系统层固定块,紧随红线(同为无条件前缀,不随工具/轮次变化)。
|
|
293
|
-
{
|
|
294
|
-
id: "parallel-dispatch-default",
|
|
295
|
-
owner: "platform",
|
|
296
|
-
cacheScope: "static",
|
|
297
|
-
content: PARALLEL_DISPATCH_DEFAULT_RULE
|
|
298
|
-
},
|
|
299
|
-
// 派发落点:并行派发纪律的下一层(派到哪个执行后端),紧随并行块。
|
|
300
|
-
{
|
|
301
|
-
id: "dispatch-backend-policy",
|
|
302
|
-
owner: "platform",
|
|
303
|
-
cacheScope: "static",
|
|
304
|
-
content: DISPATCH_BACKEND_POLICY
|
|
305
|
-
},
|
|
306
|
-
// 派发选人:可用性重扫与速度口径(与后端块同级,紧随其后)。
|
|
307
|
-
{
|
|
308
|
-
id: "dispatch-candidate-policy",
|
|
309
|
-
owner: "platform",
|
|
310
|
-
cacheScope: "static",
|
|
311
|
-
content: DISPATCH_CANDIDATE_POLICY
|
|
312
|
-
},
|
|
313
|
-
// 平台风控纪律:无条件静态前缀,紧随并行派发块。
|
|
314
|
-
{
|
|
315
|
-
id: "platform-risk-control",
|
|
316
|
-
owner: "platform",
|
|
317
|
-
cacheScope: "static",
|
|
318
|
-
content: PLATFORM_RISK_CONTROL_RULE
|
|
319
|
-
},
|
|
320
|
-
{ id: "consultation-mode", owner: "platform", cacheScope: "static", content: buildConsultationModeBlock() },
|
|
321
|
-
// Git 任务隔离:仓库改动前置,系统层固定块(原 worktree-isolation skill 上移,
|
|
322
|
-
// 不受 skill 配置 disabled 影响)。排在既有平台块之后,不扰动其顺序契约。
|
|
323
|
-
{
|
|
324
|
-
id: "worktree-isolation-prelude",
|
|
325
|
-
owner: "platform",
|
|
326
|
-
cacheScope: "static",
|
|
327
|
-
content: WORKTREE_ISOLATION_PRELUDE
|
|
328
|
-
},
|
|
263
|
+
// 顶部固定平台层(唯一真源见 agent-runtime/platformStaticPromptLayers.ts)。
|
|
264
|
+
...buildPlatformStaticContextLayers(),
|
|
329
265
|
{ id: "identity", owner: "platform", cacheScope: "session", content: identitySection },
|
|
330
266
|
{ id: "user-response-language", owner: "platform", cacheScope: "session", content: buildUserResponseLanguageContext({ language: safeLanguage }) },
|
|
331
267
|
{ id: "startup-protocol", owner: "platform", cacheScope: "static", content: startupProtocol },
|
|
@@ -1234,6 +1170,7 @@ function sanitizeOutboundBody(body) {
|
|
|
1234
1170
|
|
|
1235
1171
|
// packages/ai/tools/stripModelConfirmationFlags.ts
|
|
1236
1172
|
var CONFIRMATION_INPUT_KEYS = {
|
|
1173
|
+
knowledge_capture_requires_confirmation: "__confirmedKnowledgeCapture",
|
|
1237
1174
|
self_evolution_requires_confirmation: "__confirmedSelfEvolution",
|
|
1238
1175
|
agent_update_requires_confirmation: "__confirmedSelfEvolution",
|
|
1239
1176
|
media_job_start_requires_confirmation: "__confirmedMediaJobStart"
|
|
@@ -8,7 +8,9 @@ var KNOWN_SYNC_FAILURE_CODES = /* @__PURE__ */ new Set([
|
|
|
8
8
|
"owner_oauth_unavailable",
|
|
9
9
|
"invalid_grant",
|
|
10
10
|
"auth_no_token",
|
|
11
|
-
"token_expired"
|
|
11
|
+
"token_expired",
|
|
12
|
+
"user_batch_authority_controlled",
|
|
13
|
+
"tombstone_conflict"
|
|
12
14
|
]);
|
|
13
15
|
var SYNC_FAILURE_CODE_RE = /"(?:code|error|reason)"\s*:\s*"([A-Za-z0-9_.:-]{1,48})"/;
|
|
14
16
|
function classifyDialogSyncFailure(error) {
|
|
@@ -122,7 +124,7 @@ async function runCliCommandWithSyncDrain(command, options) {
|
|
|
122
124
|
}
|
|
123
125
|
const complete = await drain(scope);
|
|
124
126
|
if (commandThrew) throw commandError;
|
|
125
|
-
options.exit(code === 0 && !complete ? 1 : code);
|
|
127
|
+
await options.exit(code === 0 && !complete ? 1 : code);
|
|
126
128
|
});
|
|
127
129
|
}
|
|
128
130
|
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
// packages/agent-runtime/mcpConnectionSpecs.ts
|
|
2
|
+
var MCP_TOOL_NAMES = Object.freeze(["listMcpConnections", "listMcpTools", "callMcpTool"]);
|
|
3
|
+
var failure = (code) => ({ ok: false, error: { code } });
|
|
4
|
+
function sameMcpPlacement(a, b) {
|
|
5
|
+
return a.kind === b.kind && (a.kind !== "machine" || b.kind === "machine" && a.machineId === b.machineId);
|
|
6
|
+
}
|
|
7
|
+
function freezeSchema(value) {
|
|
8
|
+
for (const child of Object.values(value)) if (child && typeof child === "object") freezeSchema(child);
|
|
9
|
+
return Object.freeze(value);
|
|
10
|
+
}
|
|
11
|
+
var text = (maxLength) => ({ type: "string", minLength: 1, maxLength, pattern: "^[^\\u0000-\\u001f\\u007f]+$" });
|
|
12
|
+
var idSchema = { ...text(128), pattern: "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$" };
|
|
13
|
+
var refSchema = { ...text(128), pattern: "^[A-Za-z0-9][A-Za-z0-9_:-]{0,127}$" };
|
|
14
|
+
var revisionSchema = { type: "integer", minimum: 1, maximum: Number.MAX_SAFE_INTEGER };
|
|
15
|
+
var objectSchema = (properties, required = Object.keys(properties)) => ({ type: "object", properties, required, additionalProperties: false });
|
|
16
|
+
var placements = { type: "object", required: ["kind"], properties: { kind: { const: "local" } }, additionalProperties: false };
|
|
17
|
+
var MCP_CONNECTION_WRITE_SCHEMA = {
|
|
18
|
+
type: "object",
|
|
19
|
+
required: ["schemaVersion", "label", "enabled", "placement", "transport", "auth", "allowedToolNames", "readPolicies"],
|
|
20
|
+
properties: {
|
|
21
|
+
schemaVersion: { const: 1 },
|
|
22
|
+
label: { type: "string", minLength: 1, maxLength: 160, pattern: "^[^:/\\\\\\r\\n]+$" },
|
|
23
|
+
enabled: { type: "boolean" },
|
|
24
|
+
presetId: { enum: ["zoho-mail"] },
|
|
25
|
+
placement: placements,
|
|
26
|
+
allowedToolNames: { type: "array", maxItems: 256, items: text(160) },
|
|
27
|
+
readPolicies: { type: "array", maxItems: 256, items: { type: "object", required: ["toolName", "arguments"], properties: { toolName: text(160), arguments: { type: "object", maxProperties: 128, additionalProperties: { type: "array", maxItems: 256 } } }, additionalProperties: false } },
|
|
28
|
+
transport: { type: "object", required: ["kind", "endpointRef"], properties: { kind: { const: "streamable-http" }, endpointRef: refSchema }, additionalProperties: false },
|
|
29
|
+
auth: { oneOf: [{ type: "object", required: ["kind"], properties: { kind: { const: "oauth" } }, additionalProperties: false }, { type: "object", required: ["kind"], properties: { kind: { const: "none" } }, additionalProperties: false }, { type: "object", required: ["kind", "credentialRef"], properties: { kind: { const: "bearer" }, credentialRef: refSchema }, additionalProperties: false }] }
|
|
30
|
+
},
|
|
31
|
+
additionalProperties: false
|
|
32
|
+
};
|
|
33
|
+
var MCP_CONNECTION_UPDATE_SCHEMA = freezeSchema(objectSchema({
|
|
34
|
+
connectionId: idSchema,
|
|
35
|
+
expectedRevision: revisionSchema,
|
|
36
|
+
connection: MCP_CONNECTION_WRITE_SCHEMA
|
|
37
|
+
}));
|
|
38
|
+
var MCP_LIST_TOOLS_INPUT_SCHEMA = freezeSchema(objectSchema({
|
|
39
|
+
connectionId: idSchema,
|
|
40
|
+
expectedRevision: revisionSchema,
|
|
41
|
+
cursor: text(2048)
|
|
42
|
+
}, ["connectionId", "expectedRevision"]));
|
|
43
|
+
var MCP_CALL_TOOL_INPUT_SCHEMA = freezeSchema(objectSchema({
|
|
44
|
+
connectionId: idSchema,
|
|
45
|
+
expectedRevision: revisionSchema,
|
|
46
|
+
catalogRevision: idSchema,
|
|
47
|
+
toolName: text(256),
|
|
48
|
+
arguments: { type: "object", additionalProperties: {} }
|
|
49
|
+
}));
|
|
50
|
+
function isRecord(value) {
|
|
51
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
|
|
52
|
+
return Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null;
|
|
53
|
+
}
|
|
54
|
+
function matches(schema, value) {
|
|
55
|
+
if (schema.oneOf && schema.oneOf.filter((branch) => matches(branch, value)).length !== 1) return false;
|
|
56
|
+
if (schema.const !== void 0 && value !== schema.const) return false;
|
|
57
|
+
if (schema.enum && (typeof value !== "string" || !schema.enum.includes(value))) return false;
|
|
58
|
+
switch (schema.type) {
|
|
59
|
+
case "string":
|
|
60
|
+
return typeof value === "string" && value.length >= (schema.minLength ?? 0) && value.length <= (schema.maxLength ?? Infinity) && (!schema.pattern || new RegExp(schema.pattern, "u").test(value));
|
|
61
|
+
case "integer":
|
|
62
|
+
return typeof value === "number" && Number.isSafeInteger(value) && value >= (schema.minimum ?? -Infinity) && value <= (schema.maximum ?? Infinity);
|
|
63
|
+
case "boolean":
|
|
64
|
+
return typeof value === "boolean";
|
|
65
|
+
case "array":
|
|
66
|
+
return Array.isArray(value) && value.length <= (schema.maxItems ?? Infinity) && value.every((item) => !schema.items || matches(schema.items, item));
|
|
67
|
+
case "object": {
|
|
68
|
+
if (!isRecord(value) || Object.keys(value).length > (schema.maxProperties ?? Infinity)) return false;
|
|
69
|
+
if (schema.required?.some((key) => !Object.hasOwn(value, key))) return false;
|
|
70
|
+
return Object.entries(value).every(([key, entry]) => {
|
|
71
|
+
if (schema.propertyNames && !matches(schema.propertyNames, key)) return false;
|
|
72
|
+
const property = schema.properties && Object.hasOwn(schema.properties, key) ? schema.properties[key] : schema.additionalProperties;
|
|
73
|
+
return property === void 0 || property === false ? property !== false : matches(property, entry);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
default:
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function isBoundedJson(value, depth = 0, budget = { nodes: 0, chars: 0 }) {
|
|
81
|
+
if (++budget.nodes > 1e4 || depth > 32) return false;
|
|
82
|
+
if (typeof value === "string") return (budget.chars += value.length) <= 262144;
|
|
83
|
+
if (value === null || typeof value === "boolean") return true;
|
|
84
|
+
if (typeof value === "number") return Number.isFinite(value);
|
|
85
|
+
if (!Array.isArray(value) && !isRecord(value)) return false;
|
|
86
|
+
return Object.entries(Object.getOwnPropertyDescriptors(value)).every(([key, descriptor]) => {
|
|
87
|
+
if (Array.isArray(value) && key === "length") return true;
|
|
88
|
+
if (["__proto__", "prototype", "constructor"].includes(key) || !Object.hasOwn(descriptor, "value")) return false;
|
|
89
|
+
budget.chars += key.length;
|
|
90
|
+
return budget.chars <= 262144 && isBoundedJson(descriptor.value, depth + 1, budget);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
function parse(schema, value) {
|
|
94
|
+
if (!isBoundedJson(value) || !matches(schema, value)) return failure("invalid_input");
|
|
95
|
+
return { ok: true, value: JSON.parse(JSON.stringify(value)) };
|
|
96
|
+
}
|
|
97
|
+
function parseMcpConnectionWrite(value) {
|
|
98
|
+
const parsed = parse(MCP_CONNECTION_WRITE_SCHEMA, value);
|
|
99
|
+
if (!parsed.ok) {
|
|
100
|
+
if (isRecord(value) && Object.getOwnPropertyDescriptor(value, "schemaVersion")?.value !== void 0 && Object.getOwnPropertyDescriptor(value, "schemaVersion")?.value !== 1) return failure("unsupported_version");
|
|
101
|
+
return parsed;
|
|
102
|
+
}
|
|
103
|
+
const connection = parsed.value;
|
|
104
|
+
if (new Set(connection.allowedToolNames).size !== connection.allowedToolNames.length || new Set(connection.readPolicies.map((p) => p.toolName)).size !== connection.readPolicies.length || connection.readPolicies.some((p) => !connection.allowedToolNames.includes(p.toolName))) return failure("invalid_input");
|
|
105
|
+
return parsed;
|
|
106
|
+
}
|
|
107
|
+
function parseMcpListToolsInput(value) {
|
|
108
|
+
return parse(MCP_LIST_TOOLS_INPUT_SCHEMA, value);
|
|
109
|
+
}
|
|
110
|
+
function parseMcpCallToolInput(value) {
|
|
111
|
+
return parse(MCP_CALL_TOOL_INPUT_SCHEMA, value);
|
|
112
|
+
}
|
|
113
|
+
function toMcpConnectionSummary(connection) {
|
|
114
|
+
return {
|
|
115
|
+
schemaVersion: 1,
|
|
116
|
+
id: connection.id,
|
|
117
|
+
label: connection.label,
|
|
118
|
+
enabled: connection.enabled,
|
|
119
|
+
revision: connection.revision,
|
|
120
|
+
...connection.presetId ? { presetId: connection.presetId } : {},
|
|
121
|
+
placement: connection.placement.kind === "machine" ? { kind: "machine", machineId: connection.placement.machineId } : { kind: connection.placement.kind },
|
|
122
|
+
transportKind: connection.transport.kind,
|
|
123
|
+
authKind: connection.auth.kind,
|
|
124
|
+
endpointConfigured: true,
|
|
125
|
+
credentialConfigured: connection.auth.kind === "bearer"
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export {
|
|
130
|
+
MCP_TOOL_NAMES,
|
|
131
|
+
sameMcpPlacement,
|
|
132
|
+
MCP_LIST_TOOLS_INPUT_SCHEMA,
|
|
133
|
+
MCP_CALL_TOOL_INPUT_SCHEMA,
|
|
134
|
+
parseMcpConnectionWrite,
|
|
135
|
+
parseMcpListToolsInput,
|
|
136
|
+
parseMcpCallToolInput,
|
|
137
|
+
toMcpConnectionSummary
|
|
138
|
+
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
googleSessionRequestToken,
|
|
3
|
+
isGoogleAuthoritySession
|
|
4
|
+
} from "./chunk-C3GOEQJF.js";
|
|
1
5
|
import {
|
|
2
6
|
selectIdentityToken
|
|
3
7
|
} from "./chunk-PXYBUFDB.js";
|
|
@@ -2191,17 +2195,17 @@ var logRequestFailure = (level, message) => {
|
|
|
2191
2195
|
console.error(message);
|
|
2192
2196
|
};
|
|
2193
2197
|
var noloRequest = async (server, config, state, signal) => {
|
|
2194
|
-
const headers = config.headers || {
|
|
2195
|
-
"Content-Type": "application/json"
|
|
2196
|
-
};
|
|
2198
|
+
const headers = { ...config.headers || { "Content-Type": "application/json" } };
|
|
2197
2199
|
const token = selectIdentityToken(state) ?? null;
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
+
const requestToken = googleSessionRequestToken(token ?? void 0, server);
|
|
2201
|
+
if (requestToken) {
|
|
2202
|
+
headers["Authorization"] = `Bearer ${requestToken}`;
|
|
2200
2203
|
}
|
|
2201
2204
|
return fetch(server + config.url, {
|
|
2202
2205
|
method: config.method || "GET",
|
|
2203
2206
|
headers,
|
|
2204
2207
|
body: config.body,
|
|
2208
|
+
...isGoogleAuthoritySession(token) ? { credentials: "omit", redirect: "error" } : {},
|
|
2205
2209
|
signal,
|
|
2206
2210
|
// 传递 AbortSignal
|
|
2207
2211
|
...config.keepalive ? { keepalive: true } : {}
|
|
@@ -2302,7 +2306,9 @@ var xhrUploadRequest = (url, formData, state, onProgress, signal) => new Promise
|
|
|
2302
2306
|
});
|
|
2303
2307
|
var noloUploadRequest = async (server, uploadConfig, state, signal, onProgress) => {
|
|
2304
2308
|
const { file, metadata, customKey, userId } = uploadConfig;
|
|
2309
|
+
const googleSession = isGoogleAuthoritySession(selectIdentityToken(state));
|
|
2305
2310
|
try {
|
|
2311
|
+
googleSessionRequestToken(selectIdentityToken(state) ?? void 0, server);
|
|
2306
2312
|
const isReactNative = typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
2307
2313
|
const isRNFile = (f) => f && typeof f.uri === "string" && typeof f.name === "string" && typeof f.type === "string";
|
|
2308
2314
|
if (isReactNative && isRNFile(file)) {
|
|
@@ -2328,7 +2334,7 @@ var noloUploadRequest = async (server, uploadConfig, state, signal, onProgress)
|
|
|
2328
2334
|
if (userId) {
|
|
2329
2335
|
formData.append("userId", userId);
|
|
2330
2336
|
}
|
|
2331
|
-
if (onProgress && typeof XMLHttpRequest !== "undefined") {
|
|
2337
|
+
if (onProgress && !googleSession && typeof XMLHttpRequest !== "undefined") {
|
|
2332
2338
|
const result = await xhrUploadRequest(
|
|
2333
2339
|
server + `${API_ENDPOINTS.DATABASE}/upload`,
|
|
2334
2340
|
formData,
|
|
@@ -2361,6 +2367,7 @@ var noloUploadRequest = async (server, uploadConfig, state, signal, onProgress)
|
|
|
2361
2367
|
`Upload request failed for ${customKey} on ${server}: HTTP ${response.status}`
|
|
2362
2368
|
);
|
|
2363
2369
|
}
|
|
2370
|
+
if (response.ok && googleSession && onProgress) onProgress(file.size, file.size);
|
|
2364
2371
|
return response.ok;
|
|
2365
2372
|
} catch (error) {
|
|
2366
2373
|
if (!isAbortError(error)) {
|