nolo-cli 0.228.0-alpha.2 → 0.228.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/README.md +3 -5
- package/{_executeModel-VYCHHZVT.js → _executeModel-AKCTHGMP.js} +89 -83
- package/{accountResolver-QETKNC7T.js → accountResolver-NGICIMEE.js} +1 -1
- package/{action-GDZDXPMB.js → action-C6IQAKN4.js} +8 -5
- package/{addContentAction-7RO4AMRI.js → addContentAction-53364YDW.js} +13 -12
- package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-U5DD5EN5.js} +16 -15
- package/{agentDeleteCommand-QWQKT54A.js → agentDeleteCommand-2E5FAGUO.js} +128 -115
- package/{agentEmailCommands-EISMBIRE.js → agentEmailCommands-UGZZAH7E.js} +128 -111
- package/{agentListCommands-4WLG32IW.js → agentListCommands-JCTW3J2K.js} +398 -179
- package/{agentMachineCommands-DC6NKWTU.js → agentMachineCommands-QPG5ZXF4.js} +58 -47
- package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-QLTABYR7.js} +2 -2
- package/{agentPullCommand-KHV4EELF.js → agentPullCommand-2EYJ5ENC.js} +1 -1
- package/agentRecordCommands-4NTVR6MZ.js +194 -0
- package/agentRunCommand-VHF34PYC.js +232 -0
- package/{agentRunControl-MBG4U6SL.js → agentRunControl-QYTXUQGY.js} +14 -9
- package/{agentRuntimeLocal-HOXKWCYO.js → agentRuntimeLocal-U54AKHXH.js} +58 -43
- package/{agentSlice-UG76KEBH.js → agentSlice-4JGDEXWK.js} +14 -13
- package/{appDeleteCommands-WWCC6WA5.js → appDeleteCommands-XBE5QJ6P.js} +58 -47
- package/{appDeployCommands-AU4IUN33.js → appDeployCommands-QIYLXXGA.js} +58 -47
- package/{appDeployStatusCommands-STUW7WXL.js → appDeployStatusCommands-JXS6ZQZZ.js} +58 -47
- package/{appGetCommands-BGTLIQ4K.js → appGetCommands-SZS7SJPK.js} +58 -47
- package/{appListCommands-CUCPRUXW.js → appListCommands-B3GBJSNV.js} +58 -47
- package/{authCommand-OZ2KTP4Z.js → authCommand-V6EOMZX6.js} +25 -19
- package/{authCommands-55OGQGCR.js → authCommands-T5FODCEG.js} +12 -6
- package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-ZQC3IIO2.js} +8 -7
- package/{chromeCommands-G5UDKVSV.js → chromeCommands-O4IIKTBD.js} +384 -7
- package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-OFX7ZGKP.js} +3 -3
- package/{chunk-DBUR22G5.js → chunk-223KZUJ6.js} +19 -15
- package/{chunk-3U44JB3O.js → chunk-2C5VN7NH.js} +1 -1
- package/{chunk-PWTNI4N7.js → chunk-2E4BYAUE.js} +22 -0
- package/{chunk-L32W3PRP.js → chunk-2FZVXOFX.js} +234 -18
- package/{chunk-HBRDSQ3M.js → chunk-2JHGUL5K.js} +3 -2
- package/chunk-2SXN7LAY.js +15 -0
- package/chunk-3A5NNQCN.js +64 -0
- package/chunk-3F2FRLIO.js +372 -0
- package/{chunk-DEA37IUY.js → chunk-46FETNLF.js} +2 -2
- package/{chunk-ZEVQHCLM.js → chunk-4GYVS4PM.js} +8 -6
- package/{chunk-CBUZ6DKA.js → chunk-4YPH5KRA.js} +1 -1
- package/chunk-4ZCTKB27.js +31 -0
- package/chunk-53W5BXLN.js +340 -0
- package/{chunk-7FEP5USX.js → chunk-5AYP5QBB.js} +5 -5
- package/{chunk-XAG3FWBE.js → chunk-5ISNPTQH.js} +5 -5
- package/{chunk-EVGU5P4U.js → chunk-5P3PPQVP.js} +1 -1
- package/{chunk-XSW4EXQV.js → chunk-6BMTKYAO.js} +55 -18
- package/chunk-6PAHSSD2.js +33401 -0
- package/{chunk-ZOHO6MOF.js → chunk-6RSNVJGO.js} +2 -99
- package/{chunk-7JGMNKKG.js → chunk-6SOWMEAY.js} +30 -9
- package/{chunk-RG2DGNL6.js → chunk-6VEO7Z3Y.js} +3 -3
- package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
- package/{chunk-DGYCDA6W.js → chunk-7BIJFGKS.js} +36 -17
- package/{chunk-WFDNADFX.js → chunk-7OVOZRZF.js} +8 -8
- package/{chunk-WCFFRBL5.js → chunk-7PON4LBY.js} +45 -27
- package/{chunk-QRGDJA4B.js → chunk-7WHCIA5V.js} +33 -7
- package/{chunk-CMMI3DAT.js → chunk-ADYWV732.js} +59 -30
- package/{chunk-QYB23WUH.js → chunk-AIFQKNPP.js} +1 -1
- package/{chunk-HGDKT2D6.js → chunk-BPB3T5EU.js} +174 -1
- package/{chunk-DUUDXSLX.js → chunk-BZLGPM5B.js} +28 -4
- package/{chunk-ATEKLSLR.js → chunk-BZMDWGQQ.js} +14 -9
- package/chunk-C5A54QS7.js +108 -0
- package/{chunk-S6K5F3KP.js → chunk-CEKRIR22.js} +1 -1
- package/{chunk-42OKN2LI.js → chunk-D634SL2Y.js} +9 -107
- package/{chunk-DLXMMTGM.js → chunk-DHRPLRIR.js} +1283 -786
- package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
- package/{chunk-OBIC6EG7.js → chunk-DNNPARJK.js} +9 -5
- package/{chunk-X3E6EHJW.js → chunk-E3LSO6EI.js} +292 -207
- package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
- package/chunk-EHFBP6IK.js +791 -0
- package/chunk-EJQE5HB7.js +21 -0
- package/{chunk-VQ5N5GSV.js → chunk-EL5NRJHI.js} +4 -4
- package/chunk-EUGTFFO6.js +42 -0
- package/{chunk-7BCG67EI.js → chunk-EVHTYVD2.js} +1199 -442
- package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
- package/{chunk-262R3XNN.js → chunk-FEIVARWR.js} +377 -112
- package/{chunk-3VZLEKV2.js → chunk-FLBJ7IJI.js} +14 -14
- package/{chunk-EEOOBRA7.js → chunk-FXEPZKNJ.js} +13 -6
- package/{chunk-XTJKU3Z4.js → chunk-FYAMUU55.js} +677 -140
- package/{chunk-M3OZRQNH.js → chunk-FZANZZ63.js} +1 -1
- package/chunk-GAHJLSDO.js +107 -0
- package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
- package/{chunk-4N6G2CKP.js → chunk-HDKMVYNJ.js} +47 -1
- package/chunk-HEVRQGGH.js +106 -0
- package/{chunk-BIWI5M4E.js → chunk-HFHJPHFK.js} +1 -1
- package/{chunk-R6Z5S5GA.js → chunk-HPDLPEUG.js} +60 -17
- package/{chunk-YKY4OVOX.js → chunk-HQUGB2HM.js} +17 -170
- package/chunk-IIRJ4P4I.js +24 -0
- package/chunk-IVK2KT3H.js +209 -0
- package/{chunk-ALAES342.js → chunk-IYLUK67R.js} +9 -5
- package/{chunk-N5Z2V73W.js → chunk-J55F3IEZ.js} +1 -1
- package/{chunk-S6FDXXZV.js → chunk-J7JRCOIW.js} +2 -2
- package/{chunk-OWKNSIXL.js → chunk-JAKRY74O.js} +470 -83
- package/{chunk-VS276URX.js → chunk-JCQ3WCQ3.js} +4 -2
- package/chunk-JLZJL3WC.js +988 -0
- package/{chunk-OBSEKCVK.js → chunk-JPXACKSW.js} +219 -52
- package/{chunk-OTKSESZR.js → chunk-KDBDOXOM.js} +138 -54
- package/{chunk-VP3BINY7.js → chunk-KDDHQMSH.js} +31 -1
- package/{chunk-RBPUNSG5.js → chunk-KG27JIG4.js} +18 -108
- package/{chunk-4WVJLODK.js → chunk-KHYSFS3W.js} +88 -7
- package/{chunk-TCZ2VJZQ.js → chunk-KKIQAVDR.js} +9 -9
- package/{chunk-4JVNURX4.js → chunk-KQHEGELM.js} +68 -16
- package/chunk-KXOPLLFP.js +190 -0
- package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
- package/{chunk-HYLRQDEE.js → chunk-LLUBUHNT.js} +6 -6
- package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
- package/{chunk-RTHFJZ6M.js → chunk-LVZVSLKO.js} +29 -9
- package/{chunk-TI2EPRHE.js → chunk-MNFUKRRU.js} +3 -3
- package/chunk-MVOZ22RZ.js +26 -0
- package/{chunk-CNMY2XM6.js → chunk-O3A2CHAL.js} +6 -6
- package/{chunk-TSPMLCWI.js → chunk-OB4FBZXJ.js} +5 -5
- package/{chunk-LYD6C7OU.js → chunk-OJSJJKHF.js} +6 -6
- package/{chunk-M4SFKP5L.js → chunk-OKAXQFON.js} +3 -3
- package/{chunk-CD3RU7XL.js → chunk-OKH74FML.js} +121 -14
- package/{chunk-U2HBB7RS.js → chunk-OOV5JN25.js} +130 -30
- package/{chunk-ZH3KXFHS.js → chunk-OOVOAG4Q.js} +1 -1
- package/chunk-OQFOE4SJ.js +405 -0
- package/{chunk-M3JEW6N6.js → chunk-OYUMJMC5.js} +15 -0
- package/chunk-P27E22MA.js +203 -0
- package/{chunk-SRCCSTIM.js → chunk-P4R5KXU7.js} +4 -4
- package/{chunk-FJ23FZXF.js → chunk-PHREU2KZ.js} +5 -3
- package/{chunk-HSSBDZLD.js → chunk-PIVTQRX6.js} +43 -13
- package/{chunk-XFXFPUO7.js → chunk-PJL7OJRC.js} +13 -39
- package/{chunk-RRDRQOEC.js → chunk-PNLDLUMO.js} +276 -303
- package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
- package/{chunk-HHFGE2WF.js → chunk-QGFLVQ6E.js} +5 -5
- package/{chunk-EGHP7KOY.js → chunk-QONAOHVW.js} +38 -29
- package/chunk-R3FZHW4Q.js +103 -0
- package/{chunk-ZYKJBRZ3.js → chunk-R3MV2GII.js} +1 -47
- package/chunk-R72QWIFO.js +50 -0
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/{chunk-ILHQ2AXT.js → chunk-RIWKZT7E.js} +36 -8
- package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
- package/{chunk-45CAVC35.js → chunk-S7H4KTMB.js} +2568 -337
- package/{chunk-OJ45MEEI.js → chunk-SA356NGW.js} +1 -1
- package/{chunk-F6Z6ZCUV.js → chunk-SCAC3NM5.js} +3 -3
- package/{chunk-YVFH2MFB.js → chunk-SLUN7W6S.js} +7 -7
- package/chunk-SQL7YNED.js +650 -0
- package/chunk-SR4FE5VD.js +9 -0
- package/{chunk-HF7BLF3F.js → chunk-SSOR2EDT.js} +107 -104
- package/chunk-TRRXYFTR.js +46 -0
- package/{chunk-3QIYD3VM.js → chunk-TUOHSUK5.js} +20068 -18402
- package/chunk-TYJCIA2O.js +835 -0
- package/{chunk-S2NTVGA2.js → chunk-U35UUM5K.js} +2 -1
- package/{chunk-GAYNXB6T.js → chunk-U3BUWDUP.js} +1031 -2155
- package/{chunk-BP5ZJ6B4.js → chunk-U6QNVOR5.js} +1 -1
- package/{chunk-UAIHKQIA.js → chunk-U6RD332P.js} +18 -2
- package/chunk-UAF5VQCE.js +77 -0
- package/{chunk-TQEKUOTI.js → chunk-UFGUJ2IH.js} +12 -12
- package/{chunk-VMJVAJ6W.js → chunk-UP7KBWLE.js} +109 -33
- package/{chunk-2X7WFDT6.js → chunk-UUCYUN6Y.js} +1 -1
- package/{chunk-5YMA6DDZ.js → chunk-UZKBVQUX.js} +1 -1
- package/chunk-V5TI7HJH.js +133 -0
- package/{chunk-WFGNWWJI.js → chunk-VH7UO6E5.js} +252 -114
- package/{chunk-MNEZUL5S.js → chunk-VJFDG3ZG.js} +63 -94
- package/{chunk-G7IUT2V3.js → chunk-WC3J5SL2.js} +635 -350
- package/{chunk-HXB4VDGK.js → chunk-WD5547ZF.js} +33 -30
- package/chunk-WDWZPASX.js +29 -0
- package/{chunk-4ZGPHFLE.js → chunk-WS36XPJD.js} +2 -2
- package/{chunk-6QHKRARD.js → chunk-WSLL7VV4.js} +29 -5
- package/chunk-XRGBJHZX.js +136 -0
- package/{chunk-MZG5CETE.js → chunk-Y2KWJTOZ.js} +4 -4
- package/{dialogUsageCommand-W2WCSGKF.js → chunk-Y2TCTNUD.js} +27 -20
- package/chunk-YJPK35HB.js +175 -0
- package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
- package/{chunk-547ENH5T.js → chunk-YN23INFZ.js} +4 -4
- package/{chunk-4QYJPWHH.js → chunk-YXK3GJF5.js} +232 -10
- package/{chunk-MJI3UAXN.js → chunk-Z2OWAYMI.js} +77 -51
- package/{chunk-7Z6EW7AH.js → chunk-ZTHAJU3O.js} +106 -14
- package/{chunk-YFLVRVYK.js → chunk-ZYPXOQS2.js} +1 -1
- package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-BXHQ3PXP.js} +9 -9
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
- package/cliAuthorityBrokerProcess-5ZFBTHLB.js +22 -0
- package/cliLocalAgentRecordReader-47PXMHPH.js +104 -0
- package/{commandRegistry-FVYPE2IN.js → commandRegistry-CTMPAQH2.js} +111 -162
- package/{contentThunks-GNFPG32S.js → contentThunks-CAHIIZO5.js} +38 -36
- package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-WDOI5VD7.js} +3 -3
- package/{createAgentAutomationAction-PB4QIFQ4.js → createAgentAutomationAction-M25XZSPD.js} +38 -36
- package/{createDialogAction-EVTOPY7A.js → createDialogAction-4SN7FKI7.js} +39 -37
- package/{createPageAction-2UYF2IDZ.js → createPageAction-N7QPDN3M.js} +43 -41
- package/{db-M7FU2GNK.js → db-VR74ADGC.js} +7 -2
- package/{dbSlice-XRUZOGSU.js → dbSlice-RWPSVHBC.js} +12 -11
- package/{deleteFile-6URDHYRB.js → deleteFile-ECU6FU5C.js} +15 -7
- package/{dialogCommands-6SZD4TYP.js → dialogCommands-BBHWCKDP.js} +69 -53
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-IASQGEMW.js} +11 -11
- package/{dialogSlice-5EQ2A6LY.js → dialogSlice-JI3J22RV.js} +39 -37
- package/dialogTraceCommand-EW2KK6A4.js +961 -0
- package/dialogUsageCommand-WJ3U6KZU.js +27 -0
- package/{docCreateCommands-25E6PGN3.js → docCreateCommands-QSX3X5U4.js} +57 -46
- package/{docDeleteCommands-F7ZVGEHW.js → docDeleteCommands-63JBG2HQ.js} +59 -48
- package/{docReadCommands-JY2E5XEN.js → docReadCommands-CQFKRQUI.js} +57 -46
- package/{docStore-OKKIKLT3.js → docStore-XLBKGGNM.js} +14 -13
- package/{docUpdateCommands-OZ4CUSIQ.js → docUpdateCommands-534LUK25.js} +57 -46
- package/ebookDownloaderAgentCommand-DYSKF5ZY.js +677 -0
- package/fetchMessages-TQEUZD7H.js +1 -1
- package/{getPricing-LF5C4XSI.js → getPricing-5BLZRPTM.js} +4 -4
- package/{handleSendMessageAction-LNT7SZND.js → handleSendMessageAction-Q2VMEVOR.js} +127 -81
- package/{hostCredentialCreate-XUU2CSHI.js → hostCredentialCreate-C57T7YPE.js} +127 -109
- package/index.js +23 -11
- package/{localDialogRead-CCOCVGAP.js → localDialogRead-BJJT3TF5.js} +1 -1
- package/{localRuntimeAdapter-IBSTMSX7.js → localRuntimeAdapter-OALZPFZU.js} +134 -115
- package/localRuntimeAuthority-UF2DAQ3F.js +28 -0
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-ZJFGNHML.js} +1 -1
- package/{machineCommands-HSQHDHOT.js → machineCommands-N6IVWRZT.js} +262 -325
- package/machineWsRunDispatch-PDWYB33B.js +209 -0
- package/markdownToSlate-PXYAIBVL.js +8 -0
- package/mcpLocalAuthorizeCommand-KYI4EGF5.js +110 -0
- package/{memberThunks-7Y3OYSJQ.js → memberThunks-43B7UYC5.js} +21 -16
- package/{models-H5NNZRLH.js → models-ZX2BYIMB.js} +2 -2
- package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
- package/package.json +2 -1
- package/{projectArchive-FQO654Z3.js → projectArchive-TJNW5DLM.js} +46 -44
- package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-NTJUINI6.js} +36 -17
- package/{providerRegistry-ZI2KORJ7.js → providerRegistry-W45SLUV6.js} +6 -6
- package/{read-TYMBGEXO.js → read-KG6INYUT.js} +13 -7
- package/{readDocTool-SKQVHBLO.js → readDocTool-N3GA52JR.js} +1 -1
- package/{readlineWorkspace-7U272DSA.js → readlineWorkspace-PJZJVGA5.js} +7486 -4492
- package/rememberExplicit-CPAPONSI.js +15 -0
- package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-EEVSOQOJ.js} +18 -17
- package/{runAgentClientLoop-AF4JQIJ7.js → runAgentClientLoop-3VC5TCDW.js} +107 -76
- package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-V3M3JTUV.js} +14 -11
- package/{secretCommands-KZWBZIYS.js → secretCommands-KVVZS7A6.js} +3 -3
- package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-DNO5POHA.js} +15 -14
- package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-QABBEO4C.js} +18 -17
- package/{settingThunks-ZRGWVGZD.js → settingThunks-DVKG4X4S.js} +181 -66
- package/{skillDiscovery-BHHPCUHZ.js → skillDiscovery-ZMJH36AK.js} +4 -3
- package/{spaceCommands-5VNWMDBE.js → spaceCommands-AGGZXPY3.js} +235 -87
- package/{streamAgentChatTurn-YSPEFY4K.js → streamAgentChatTurn-4GTLL2OF.js} +242 -169
- package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-KYWJSGOO.js} +16 -15
- package/{tableCommands-FTAOCBTX.js → tableCommands-EFA754RE.js} +7 -4
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-N5PYW2R3.js} +8 -6
- package/{tools-M35PTIFB.js → tools-5AGPOPLW.js} +69 -65
- package/{tuiRestart-2IL37YIB.js → tuiRestart-77E7PL4R.js} +11 -10
- package/{tuiSummaryLlmCaller-W2QN4VAC.js → tuiSummaryLlmCaller-HROLGN4F.js} +16 -15
- package/{updateCommands-CPATDG6J.js → updateCommands-GJGRS6JK.js} +3 -3
- package/{updateDialogTitleAction-IMIRJRQQ.js → updateDialogTitleAction-5OSEDGRK.js} +40 -38
- package/{usageCommand-2BF74MKF.js → usageCommand-WI6SQOPB.js} +2 -2
- package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-WQRLLZAT.js} +3 -3
- package/webapi-QVV65DQF.js +2487 -0
- package/{windowsSelfUpdate-ZFD6J5HF.js → windowsSelfUpdate-C7LGVWYX.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-P2SJVV3S.js} +2 -2
- package/agentRecordCommands-IZYUVHME.js +0 -177
- package/agentRunCommand-QM7ETUTX.js +0 -209
- package/chunk-2YGBI2XB.js +0 -30
- package/chunk-5ZMIIR23.js +0 -265
- package/chunk-5ZUOVCKT.js +0 -32
- package/chunk-62HXNQVV.js +0 -134
- package/chunk-FJSNBZXR.js +0 -142
- package/chunk-FPBJM2BW.js +0 -689
- package/chunk-JQZRSXS5.js +0 -90
- package/chunk-P2ZLUIW2.js +0 -795
- package/chunk-PPJYZRSQ.js +0 -160
- package/chunk-TUSTONB3.js +0 -81
- package/chunk-ZXF6D3I6.js +0 -359
- package/cliLocalAgentRecordReader-H3HYQRRR.js +0 -91
- package/lib-OT5OTXRU.js +0 -21046
- package/localRuntimeAuthority-IBJAT62G.js +0 -16
- package/machineWsRunDispatch-L6H7J66T.js +0 -192
- package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
|
@@ -1,26 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toolRegistry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-U3BUWDUP.js";
|
|
4
4
|
import {
|
|
5
|
+
INLINE_IMAGE_MAX_BYTES,
|
|
6
|
+
INLINE_IMAGE_TOTAL_MAX_BYTES,
|
|
5
7
|
runtime_default
|
|
6
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EVHTYVD2.js";
|
|
7
9
|
import {
|
|
8
10
|
canonicalizeToolNames
|
|
9
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YLAHYLDQ.js";
|
|
12
|
+
import {
|
|
13
|
+
API_ENDPOINTS,
|
|
14
|
+
NOLO_CLUSTER_SERVERS
|
|
15
|
+
} from "./chunk-LCBAMY2M.js";
|
|
10
16
|
import {
|
|
11
17
|
isRecord
|
|
12
18
|
} from "./chunk-KUG52IAP.js";
|
|
13
19
|
import {
|
|
14
20
|
isNoloHostedProvider
|
|
15
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-JPXACKSW.js";
|
|
16
22
|
import {
|
|
17
23
|
asTrimmedLowercaseString
|
|
18
24
|
} from "./chunk-QSJ3HFEF.js";
|
|
19
25
|
|
|
20
26
|
// packages/ai/chat/inlineImageUrlsForCustomProvider.ts
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
var FILE_CONTENT_PATH = `${API_ENDPOINTS.DATABASE}/file/content/`;
|
|
28
|
+
function trustedInlineFile(url, serverUrl, pageOrigin) {
|
|
29
|
+
try {
|
|
30
|
+
const source = new URL(url, pageOrigin ?? serverUrl);
|
|
31
|
+
const originOf = (base) => base ? new URL(base).origin : void 0;
|
|
32
|
+
if (!/^https?:$/.test(source.protocol) || source.username || source.password || !(source.origin === originOf(serverUrl) || source.origin === originOf(pageOrigin) || NOLO_CLUSTER_SERVERS.some((origin) => origin === source.origin))) return null;
|
|
33
|
+
const id = source.pathname.startsWith(FILE_CONTENT_PATH) ? source.pathname.slice(FILE_CONTENT_PATH.length) : "";
|
|
34
|
+
if (!/^[A-Za-z0-9._~-]{1,256}$/.test(id) || id === "." || id === "..") return null;
|
|
35
|
+
return { origin: source.origin, id, spaceId: source.searchParams.get("spaceId") };
|
|
36
|
+
} catch {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
24
40
|
var shouldInlineImageUrlsForAgent = (agentConfig) => {
|
|
25
41
|
const apiSource = agentConfig?.apiSource?.toLowerCase();
|
|
26
42
|
const provider = agentConfig?.provider?.toLowerCase();
|
|
@@ -29,7 +45,15 @@ var shouldInlineImageUrlsForAgent = (agentConfig) => {
|
|
|
29
45
|
if (isNoloHostedProvider(provider)) return true;
|
|
30
46
|
return provider === "openrouter" && model === "minimax/minimax-m3";
|
|
31
47
|
};
|
|
32
|
-
var isInlineCandidate = (url) =>
|
|
48
|
+
var isInlineCandidate = (url) => {
|
|
49
|
+
if (/^data:/i.test(url)) return false;
|
|
50
|
+
if (url.includes(FILE_CONTENT_PATH)) return true;
|
|
51
|
+
try {
|
|
52
|
+
return new URL(url, "https://relative.invalid").pathname.startsWith(FILE_CONTENT_PATH);
|
|
53
|
+
} catch {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
33
57
|
var bytesToBase64 = (bytes) => {
|
|
34
58
|
const chunks = [];
|
|
35
59
|
for (let offset = 0; offset < bytes.length; offset += 32768) {
|
|
@@ -37,84 +61,144 @@ var bytesToBase64 = (bytes) => {
|
|
|
37
61
|
}
|
|
38
62
|
return btoa(chunks.join(""));
|
|
39
63
|
};
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
if (!response.ok) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
error: `HTTP ${response.status}`
|
|
46
|
-
};
|
|
64
|
+
async function readBoundedInlineImage(response, maxBytes) {
|
|
65
|
+
const declaredSize = Number(response.headers.get("content-length"));
|
|
66
|
+
if (!response.ok || !response.body || declaredSize > maxBytes) {
|
|
67
|
+
await response.body?.cancel();
|
|
68
|
+
return declaredSize > maxBytes ? { ok: false, skippedSize: declaredSize } : { ok: false };
|
|
47
69
|
}
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
70
|
+
const reader = response.body.getReader();
|
|
71
|
+
const chunks = [];
|
|
72
|
+
let size = 0;
|
|
73
|
+
for (; ; ) {
|
|
74
|
+
const { value, done } = await reader.read();
|
|
75
|
+
if (done) break;
|
|
76
|
+
size += value.byteLength;
|
|
77
|
+
if (size > maxBytes) {
|
|
78
|
+
await reader.cancel();
|
|
79
|
+
return { ok: false, skippedSize: size };
|
|
80
|
+
}
|
|
81
|
+
chunks.push(value);
|
|
82
|
+
}
|
|
83
|
+
const bytes = new Uint8Array(size);
|
|
84
|
+
let offset = 0;
|
|
85
|
+
for (const chunk of chunks) {
|
|
86
|
+
bytes.set(chunk, offset);
|
|
87
|
+
offset += chunk.byteLength;
|
|
88
|
+
}
|
|
89
|
+
return { ok: true, bytes, mimeType: response.headers.get("content-type") ?? void 0 };
|
|
90
|
+
}
|
|
91
|
+
function publicImageFetcher(options) {
|
|
92
|
+
const timeout = AbortSignal.timeout(5e3);
|
|
93
|
+
const request = options.request ?? fetch;
|
|
94
|
+
const pageOrigin = typeof window === "undefined" ? void 0 : window.location?.origin;
|
|
95
|
+
return async (url, signal, maxBytes = INLINE_IMAGE_MAX_BYTES) => {
|
|
96
|
+
try {
|
|
97
|
+
const file = trustedInlineFile(url, options.serverUrl, pageOrigin);
|
|
98
|
+
if (!file) return { ok: false };
|
|
99
|
+
const init = {
|
|
100
|
+
credentials: "omit",
|
|
101
|
+
redirect: "error",
|
|
102
|
+
cache: "no-store",
|
|
103
|
+
signal: signal ? AbortSignal.any([signal, timeout]) : timeout
|
|
104
|
+
};
|
|
105
|
+
const base = `${file.origin}${API_ENDPOINTS.DATABASE}/file`;
|
|
106
|
+
const proof = await request(`${base}/public/${file.id}`, init);
|
|
107
|
+
if (!proof.ok || (await proof.json())?.public !== true) {
|
|
108
|
+
if (!proof.bodyUsed) await proof.body?.cancel();
|
|
109
|
+
return { ok: false };
|
|
110
|
+
}
|
|
111
|
+
return await readBoundedInlineImage(await request(`${base}/public-content/${file.id}?maxBytes=${maxBytes}`, init), maxBytes);
|
|
112
|
+
} catch {
|
|
113
|
+
signal?.throwIfAborted();
|
|
114
|
+
return { ok: false };
|
|
115
|
+
}
|
|
53
116
|
};
|
|
54
|
-
}
|
|
117
|
+
}
|
|
55
118
|
var cloneImagePartWithDataUrl = async (part, fetchImage, options, usedBytes) => {
|
|
56
|
-
const
|
|
57
|
-
|
|
119
|
+
const native = part?.type === "input_image";
|
|
120
|
+
const url = native && typeof part.image_url === "string" ? part.image_url : part?.image_url?.url;
|
|
121
|
+
const unavailable = { type: native ? "input_text" : "text", text: "[Image unavailable]" };
|
|
122
|
+
if (typeof url !== "string" || !isInlineCandidate(url)) return part;
|
|
58
123
|
if (options.signal?.aborted) throw new DOMException("The operation was aborted", "AbortError");
|
|
59
124
|
const remaining = options.maxTotalBytes === void 0 ? void 0 : options.maxTotalBytes - usedBytes.value;
|
|
125
|
+
if (remaining !== void 0 && remaining <= 0) {
|
|
126
|
+
options.onSkipTooLarge?.(url, void 0, "total-budget");
|
|
127
|
+
return unavailable;
|
|
128
|
+
}
|
|
60
129
|
const fetchLimit = options.maxBytes === void 0 ? remaining : remaining === void 0 ? options.maxBytes : Math.min(options.maxBytes, remaining);
|
|
61
|
-
const result = await fetchImage(url, options.signal, fetchLimit)
|
|
130
|
+
const result = await fetchImage(url, options.signal, fetchLimit).catch(() => {
|
|
131
|
+
options.signal?.throwIfAborted();
|
|
132
|
+
return { ok: false };
|
|
133
|
+
});
|
|
62
134
|
if (options.signal?.aborted) throw new DOMException("The operation was aborted", "AbortError");
|
|
63
135
|
if (result.skippedSize !== void 0) {
|
|
64
136
|
const reason = options.maxBytes !== void 0 && result.skippedSize > options.maxBytes ? "per-image" : "total-budget";
|
|
65
137
|
options.onSkipTooLarge?.(url, result.skippedSize, reason);
|
|
66
|
-
return
|
|
138
|
+
return unavailable;
|
|
67
139
|
}
|
|
68
|
-
if (!result.ok || !result.bytes) return
|
|
140
|
+
if (!result.ok || !result.bytes) return unavailable;
|
|
69
141
|
if (options.maxBytes !== void 0 && result.bytes.byteLength > options.maxBytes) {
|
|
70
142
|
options.onSkipTooLarge?.(url, result.bytes.byteLength, "per-image");
|
|
71
|
-
return
|
|
143
|
+
return unavailable;
|
|
72
144
|
}
|
|
73
145
|
if (options.maxTotalBytes !== void 0 && usedBytes.value + result.bytes.byteLength > options.maxTotalBytes) {
|
|
74
146
|
options.onSkipTooLarge?.(url, result.bytes.byteLength, "total-budget");
|
|
75
|
-
return
|
|
147
|
+
return unavailable;
|
|
76
148
|
}
|
|
77
149
|
usedBytes.value += result.bytes.byteLength;
|
|
78
150
|
const mimeType = (result.mimeType || "application/octet-stream").split(";")[0].trim() || "application/octet-stream";
|
|
79
|
-
|
|
151
|
+
const dataUrl = `data:${mimeType};base64,${bytesToBase64(result.bytes)}`;
|
|
152
|
+
return { ...part, image_url: native ? dataUrl : { ...part.image_url, url: dataUrl } };
|
|
80
153
|
};
|
|
81
154
|
var inlineImageUrlsForCustomProvider = async (bodyData, options) => {
|
|
82
155
|
if (!options.shouldInline) return bodyData;
|
|
83
156
|
const body = bodyData;
|
|
84
|
-
if (!Array.isArray(body?.messages)) return bodyData;
|
|
85
|
-
|
|
157
|
+
if (!Array.isArray(body?.messages) && !Array.isArray(body?.input)) return bodyData;
|
|
158
|
+
options = {
|
|
159
|
+
...options,
|
|
160
|
+
maxBytes: Math.min(options.maxBytes ?? INLINE_IMAGE_MAX_BYTES, INLINE_IMAGE_MAX_BYTES),
|
|
161
|
+
maxTotalBytes: Math.min(options.maxTotalBytes ?? INLINE_IMAGE_TOTAL_MAX_BYTES, INLINE_IMAGE_TOTAL_MAX_BYTES)
|
|
162
|
+
};
|
|
163
|
+
const fetchImage = options.fetchImage ?? publicImageFetcher(options);
|
|
86
164
|
const fetched = /* @__PURE__ */ new Map();
|
|
87
165
|
const fetchOnce = (url, signal, maxBytes) => {
|
|
88
|
-
let
|
|
89
|
-
if (!
|
|
90
|
-
|
|
91
|
-
fetched.set(url,
|
|
166
|
+
let result2 = fetched.get(url);
|
|
167
|
+
if (!result2) {
|
|
168
|
+
result2 = fetchImage(url, signal, maxBytes);
|
|
169
|
+
fetched.set(url, result2);
|
|
92
170
|
}
|
|
93
|
-
return
|
|
171
|
+
return result2;
|
|
94
172
|
};
|
|
95
173
|
const usedBytes = { value: 0 };
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
if (options.maxTotalBytes !== void 0 && usedBytes.value >= options.maxTotalBytes) {
|
|
106
|
-
if (typeof part?.image_url?.url === "string" && isInlineCandidate(part.image_url.url)) options.onSkipTooLarge?.(part.image_url.url, void 0, "total-budget");
|
|
107
|
-
continue;
|
|
174
|
+
const rewrite = async (items, imageType) => {
|
|
175
|
+
let output = items;
|
|
176
|
+
for (let i = items.length - 1; i >= 0; i--) {
|
|
177
|
+
const item = items[i];
|
|
178
|
+
let next = item;
|
|
179
|
+
if (item?.type === imageType) next = await cloneImagePartWithDataUrl(item, fetchOnce, options, usedBytes);
|
|
180
|
+
else if (Array.isArray(item?.content)) {
|
|
181
|
+
const content = await rewrite(item.content, imageType);
|
|
182
|
+
if (content !== item.content) next = { ...item, content };
|
|
108
183
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
184
|
+
if (imageType === "input_image" && item?.type === "function_call_output" && Array.isArray(item.output)) {
|
|
185
|
+
const outputItems = await rewrite(item.output, imageType);
|
|
186
|
+
if (outputItems !== item.output) next = { ...next, output: outputItems };
|
|
187
|
+
}
|
|
188
|
+
if (next !== item) {
|
|
189
|
+
if (output === items) output = [...items];
|
|
190
|
+
output[i] = next;
|
|
113
191
|
}
|
|
114
192
|
}
|
|
115
|
-
|
|
193
|
+
return output;
|
|
194
|
+
};
|
|
195
|
+
let result = body;
|
|
196
|
+
for (const [key, imageType] of [["messages", "image_url"], ["input", "input_image"]]) {
|
|
197
|
+
if (!Array.isArray(body[key])) continue;
|
|
198
|
+
const items = await rewrite(body[key], imageType);
|
|
199
|
+
if (items !== body[key]) result = { ...result, [key]: items };
|
|
116
200
|
}
|
|
117
|
-
return
|
|
201
|
+
return result;
|
|
118
202
|
};
|
|
119
203
|
|
|
120
204
|
// packages/ai/tools/toolSchemaCompatibility.ts
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveRunsDir
|
|
3
|
+
} from "./chunk-JAKRY74O.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,33 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
2
|
+
DEFAULT_USER_PREFERENCE_PROFILE
|
|
3
|
+
} from "./chunk-R3FZHW4Q.js";
|
|
4
4
|
import {
|
|
5
5
|
noloAgentId
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5P3PPQVP.js";
|
|
7
7
|
import {
|
|
8
8
|
normalizeServerOrigin
|
|
9
9
|
} from "./chunk-CF7PE763.js";
|
|
10
10
|
|
|
11
|
-
// packages/ai/policy/types.ts
|
|
12
|
-
var DEFAULT_AGENT_BASE_POLICY = {
|
|
13
|
-
version: 1,
|
|
14
|
-
tone: {
|
|
15
|
-
preset: "default",
|
|
16
|
-
resolutionMode: "blend"
|
|
17
|
-
},
|
|
18
|
-
knowledgeCaptureMaxLevel: 4,
|
|
19
|
-
spaceContextMaxLevel: 4,
|
|
20
|
-
selfEvolutionMode: "knowledge_only"
|
|
21
|
-
};
|
|
22
|
-
var DEFAULT_USER_PREFERENCE_PROFILE = {
|
|
23
|
-
version: 1,
|
|
24
|
-
tone: {
|
|
25
|
-
preset: "default"
|
|
26
|
-
},
|
|
27
|
-
knowledgeCaptureLevel: 2,
|
|
28
|
-
spaceContextLevel: 3
|
|
29
|
-
};
|
|
30
|
-
|
|
31
11
|
// packages/app/settings/settingTypes.ts
|
|
32
12
|
var SYSTEM_DEFAULT_AGENT_ID = "system-default";
|
|
33
13
|
|
|
@@ -80,86 +60,21 @@ var normalizeSystemBuiltinSkills = (value, defaults) => {
|
|
|
80
60
|
return result;
|
|
81
61
|
};
|
|
82
62
|
|
|
83
|
-
// packages/
|
|
84
|
-
var
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
);
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
const result =
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
if (typeof item !== "string") {
|
|
96
|
-
continue;
|
|
97
|
-
}
|
|
98
|
-
const trimmed = item.trim();
|
|
99
|
-
if (ALLOWED_PROMPT_SKILL_SLUGS.has(trimmed) && !seen.has(trimmed)) {
|
|
100
|
-
seen.add(trimmed);
|
|
101
|
-
result.push(trimmed);
|
|
102
|
-
}
|
|
63
|
+
// packages/app/plugins/uiPlugins.ts
|
|
64
|
+
var UI_PLUGIN_SPECS = Object.freeze([
|
|
65
|
+
{ id: "music", title: "\u97F3\u4E50", path: "/music" },
|
|
66
|
+
{ id: "calendar", title: "\u65E5\u5386", path: "/calendar" }
|
|
67
|
+
]);
|
|
68
|
+
var isRecordLike2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
69
|
+
var toUiPluginState = (value) => value === "enabled" || value === "disabled" || value === "absent" ? value : "absent";
|
|
70
|
+
var normalizeUiPlugins = (value) => {
|
|
71
|
+
const record = isRecordLike2(value) ? value : {};
|
|
72
|
+
const result = {};
|
|
73
|
+
for (const spec of UI_PLUGIN_SPECS) {
|
|
74
|
+
result[spec.id] = toUiPluginState(record[spec.id]);
|
|
103
75
|
}
|
|
104
76
|
return result;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// packages/ai/skills/userSkills.ts
|
|
108
|
-
var NEW_ACCOUNT_DEFAULT_WORKFLOW_SKILLS = WORKFLOW_GUIDANCE_SKILL_SLUGS;
|
|
109
|
-
function isAccountOnDemandWorkflowSkill(slug) {
|
|
110
|
-
return typeof slug === "string" && NEW_ACCOUNT_DEFAULT_WORKFLOW_SKILLS.some((candidate) => candidate === slug.trim());
|
|
111
|
-
}
|
|
112
|
-
var SUPPORTED_USER_SKILL_SLUGS = [
|
|
113
|
-
"ub-mode",
|
|
114
|
-
"auto-review",
|
|
115
|
-
"code-style",
|
|
116
|
-
"worktree-isolation",
|
|
117
|
-
"systematic-investigation",
|
|
118
|
-
"show-me",
|
|
119
|
-
"caveman",
|
|
120
|
-
"secrets-manager",
|
|
121
|
-
"skill-creator",
|
|
122
|
-
"code-planning",
|
|
123
|
-
"coding",
|
|
124
|
-
"coding-review",
|
|
125
|
-
"android-adb",
|
|
126
|
-
"stock-quotes",
|
|
127
|
-
...NEW_ACCOUNT_DEFAULT_WORKFLOW_SKILLS
|
|
128
|
-
];
|
|
129
|
-
var SUPPORTED_USER_SKILL_SLUG_SET = new Set(
|
|
130
|
-
SUPPORTED_USER_SKILL_SLUGS
|
|
131
|
-
);
|
|
132
|
-
function normalizeEnabledSkills(value) {
|
|
133
|
-
if (!Array.isArray(value)) {
|
|
134
|
-
return [];
|
|
135
|
-
}
|
|
136
|
-
const result = [];
|
|
137
|
-
const seen = /* @__PURE__ */ new Set();
|
|
138
|
-
for (const item of value) {
|
|
139
|
-
if (typeof item !== "string") {
|
|
140
|
-
continue;
|
|
141
|
-
}
|
|
142
|
-
const trimmed = item.trim();
|
|
143
|
-
if (SUPPORTED_USER_SKILL_SLUG_SET.has(trimmed) && !seen.has(trimmed)) {
|
|
144
|
-
seen.add(trimmed);
|
|
145
|
-
result.push(trimmed);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
return result;
|
|
149
|
-
}
|
|
150
|
-
function resolveUserEnabledSkills(preferences) {
|
|
151
|
-
if (!preferences || typeof preferences !== "object") {
|
|
152
|
-
return [];
|
|
153
|
-
}
|
|
154
|
-
if (Object.prototype.hasOwnProperty.call(preferences, "enabledSkills")) {
|
|
155
|
-
return normalizeEnabledSkills(preferences.enabledSkills);
|
|
156
|
-
}
|
|
157
|
-
if (Object.prototype.hasOwnProperty.call(preferences, "enabledPromptSkills")) {
|
|
158
|
-
const legacy = normalizeEnabledPromptSkills(preferences.enabledPromptSkills);
|
|
159
|
-
return legacy.filter((slug) => SUPPORTED_USER_SKILL_SLUG_SET.has(slug));
|
|
160
|
-
}
|
|
161
|
-
return [];
|
|
162
|
-
}
|
|
77
|
+
};
|
|
163
78
|
|
|
164
79
|
// packages/ai/policy/selfUpdateFields.ts
|
|
165
80
|
var AGENT_UPDATE_FIELD_NAMES = [
|
|
@@ -205,8 +120,7 @@ var normalizeAgentUpdateFieldList = (value, fallback = DEFAULT_AUTO_APPROVED_SEL
|
|
|
205
120
|
};
|
|
206
121
|
|
|
207
122
|
export {
|
|
208
|
-
|
|
209
|
-
DEFAULT_USER_PREFERENCE_PROFILE,
|
|
123
|
+
normalizeUiPlugins,
|
|
210
124
|
AGENT_UPDATE_FIELD_NAMES,
|
|
211
125
|
DEFAULT_AUTO_APPROVED_SELF_UPDATE_FIELDS,
|
|
212
126
|
normalizeAgentUpdateFieldList,
|
|
@@ -218,9 +132,5 @@ export {
|
|
|
218
132
|
normalizePolicyLevelSetting,
|
|
219
133
|
resolveDefaultAgentIdSetting,
|
|
220
134
|
omitKeys,
|
|
221
|
-
normalizeSystemBuiltinSkills
|
|
222
|
-
normalizeEnabledPromptSkills,
|
|
223
|
-
isAccountOnDemandWorkflowSkill,
|
|
224
|
-
normalizeEnabledSkills,
|
|
225
|
-
resolveUserEnabledSkills
|
|
135
|
+
normalizeSystemBuiltinSkills
|
|
226
136
|
};
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Database
|
|
3
3
|
} from "./chunk-IT3ZZRJE.js";
|
|
4
|
+
import {
|
|
5
|
+
createLegacyServerDb
|
|
6
|
+
} from "./chunk-TRRXYFTR.js";
|
|
4
7
|
import {
|
|
5
8
|
Level,
|
|
6
|
-
createLegacyServerDb,
|
|
7
9
|
createLevelAuthorityStore
|
|
8
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R3MV2GII.js";
|
|
11
|
+
import {
|
|
12
|
+
Mutex
|
|
13
|
+
} from "./chunk-IVK2KT3H.js";
|
|
14
|
+
import {
|
|
15
|
+
isDialogRecordKey
|
|
16
|
+
} from "./chunk-OJKUU3LP.js";
|
|
9
17
|
import {
|
|
10
18
|
asTrimmedLowercaseString
|
|
11
19
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -53,6 +61,74 @@ var SERVER_DB_ROLE_VIOLATION_MESSAGE = "\u5F53\u524D\u8FDB\u7A0B\u89D2\u8272\u4E
|
|
|
53
61
|
import fs from "fs";
|
|
54
62
|
import path from "path";
|
|
55
63
|
|
|
64
|
+
// packages/database-engine/activeDialogRunIndex.ts
|
|
65
|
+
var ACTIVE_DIALOG_RUN_PREFIX = "active-dialog-run-";
|
|
66
|
+
var DEPLOYMENT_DIALOG_RUN_PREFIX = "deployment-dialog-run-";
|
|
67
|
+
var DEPLOYMENT_DIALOG_CANCEL_MESSAGE = "Cancelled by deployment (will auto-recover)";
|
|
68
|
+
function dialogRunIndexPrefix(value) {
|
|
69
|
+
if (!value || typeof value !== "object") return;
|
|
70
|
+
const { status, errorMessage } = value;
|
|
71
|
+
if (status === "pending" || status === "running") return ACTIVE_DIALOG_RUN_PREFIX;
|
|
72
|
+
if (status === "cancelled" && errorMessage === DEPLOYMENT_DIALOG_CANCEL_MESSAGE) {
|
|
73
|
+
return DEPLOYMENT_DIALOG_RUN_PREFIX;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function dialogRunIndexOps(op) {
|
|
77
|
+
if (!isDialogRecordKey(op.key)) return [];
|
|
78
|
+
const member = op.type === "put" ? dialogRunIndexPrefix(op.value) : void 0;
|
|
79
|
+
return [ACTIVE_DIALOG_RUN_PREFIX, DEPLOYMENT_DIALOG_RUN_PREFIX].map((prefix) => {
|
|
80
|
+
const key = prefix + op.key;
|
|
81
|
+
return member === prefix ? { type: "put", key, value: true } : { type: "del", key };
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// packages/database-engine/publicationBatch.ts
|
|
86
|
+
function withPublicationBatch(store) {
|
|
87
|
+
const lock = new Mutex();
|
|
88
|
+
const batchWrite = (ops) => store.batchWrite(ops.flatMap((op) => [op, ...dialogRunIndexOps(op)]));
|
|
89
|
+
const put = (key, value) => {
|
|
90
|
+
const op = { type: "put", key, value };
|
|
91
|
+
const indexOps = dialogRunIndexOps(op);
|
|
92
|
+
return indexOps.length ? store.batchWrite([op, ...indexOps]) : store.put(key, value);
|
|
93
|
+
};
|
|
94
|
+
const del = (key) => {
|
|
95
|
+
const op = { type: "del", key };
|
|
96
|
+
const indexOps = dialogRunIndexOps(op);
|
|
97
|
+
return indexOps.length ? store.batchWrite([op, ...indexOps]) : store.del(key);
|
|
98
|
+
};
|
|
99
|
+
const wrapped = {
|
|
100
|
+
get location() {
|
|
101
|
+
return store.location;
|
|
102
|
+
},
|
|
103
|
+
get status() {
|
|
104
|
+
return store.status;
|
|
105
|
+
},
|
|
106
|
+
open: () => store.open(),
|
|
107
|
+
close: () => lock.runExclusive(() => store.close()),
|
|
108
|
+
get: (key) => store.get(key),
|
|
109
|
+
iterator: (options) => store.iterator(options),
|
|
110
|
+
put: (key, value) => lock.runExclusive(() => put(key, value)),
|
|
111
|
+
del: (key) => lock.runExclusive(() => del(key)),
|
|
112
|
+
batchWrite: (ops) => lock.runExclusive(() => batchWrite(ops)),
|
|
113
|
+
createBatch: () => {
|
|
114
|
+
const batch = store.createBatch();
|
|
115
|
+
const stage = (op) => {
|
|
116
|
+
for (const entry of [op, ...dialogRunIndexOps(op)]) {
|
|
117
|
+
if (entry.type === "put") batch.put(entry.key, entry.value);
|
|
118
|
+
else batch.del(entry.key);
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
return {
|
|
122
|
+
put: (key, value) => stage({ type: "put", key, value }),
|
|
123
|
+
del: (key) => stage({ type: "del", key }),
|
|
124
|
+
write: () => lock.runExclusive(() => batch.write())
|
|
125
|
+
};
|
|
126
|
+
},
|
|
127
|
+
runPublicationBatch: (task) => lock.runExclusive(() => task({ get: wrapped.get, batchWrite }))
|
|
128
|
+
};
|
|
129
|
+
return wrapped;
|
|
130
|
+
}
|
|
131
|
+
|
|
56
132
|
// packages/database-engine/memoryAuthorityStore.ts
|
|
57
133
|
var createNotFoundError = () => {
|
|
58
134
|
const error = new Error("NotFound");
|
|
@@ -113,9 +189,10 @@ var MemoryAuthorityBacking = class {
|
|
|
113
189
|
entries.reverse();
|
|
114
190
|
}
|
|
115
191
|
for (const entry of entries) {
|
|
116
|
-
if (options.
|
|
117
|
-
if (options.
|
|
118
|
-
if (options.
|
|
192
|
+
if (options.gt !== void 0 && entry.key <= options.gt) continue;
|
|
193
|
+
if (options.gte !== void 0 && entry.key < options.gte) continue;
|
|
194
|
+
if (options.lte !== void 0 && entry.key > options.lte) continue;
|
|
195
|
+
if (options.lt !== void 0 && entry.key >= options.lt) continue;
|
|
119
196
|
const value = options.values === false ? void 0 : entry.value;
|
|
120
197
|
yield [entry.key, value];
|
|
121
198
|
}
|
|
@@ -273,6 +350,10 @@ function createSqliteAuthorityStore(dbPath) {
|
|
|
273
350
|
async *iterator(options = {}) {
|
|
274
351
|
const conditions = [];
|
|
275
352
|
const params = [];
|
|
353
|
+
if (options.gt !== void 0) {
|
|
354
|
+
conditions.push("key > ?");
|
|
355
|
+
params.push(options.gt);
|
|
356
|
+
}
|
|
276
357
|
if (options.gte !== void 0) {
|
|
277
358
|
conditions.push("key >= ?");
|
|
278
359
|
params.push(options.gte);
|
|
@@ -389,10 +470,10 @@ function getOrCreateServerStoreRuntime(dbPath, options = {}) {
|
|
|
389
470
|
);
|
|
390
471
|
}
|
|
391
472
|
if (!globalScope.__serverAuthorityStore) {
|
|
392
|
-
globalScope.__serverAuthorityStore = createAuthorityStoreForDriver(
|
|
473
|
+
globalScope.__serverAuthorityStore = withPublicationBatch(createAuthorityStoreForDriver(
|
|
393
474
|
driver,
|
|
394
475
|
dbPath
|
|
395
|
-
);
|
|
476
|
+
));
|
|
396
477
|
globalScope.__serverAuthorityStoreDriver = driver;
|
|
397
478
|
} else if (!cachedDriver) {
|
|
398
479
|
globalScope.__serverAuthorityStoreDriver = driver;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyPublicAgentCatalogOverride
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-223KZUJ6.js";
|
|
4
4
|
import {
|
|
5
5
|
applyBuiltinAgentRuntimeOverride,
|
|
6
6
|
resolveBuiltinPlatformAgentConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CEKRIR22.js";
|
|
8
8
|
import {
|
|
9
9
|
buildLocalAgentLookupKeys
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
LOCAL_CODEX_AGENT_ID,
|
|
13
|
-
LOCAL_CODEX_AGENT_KEY
|
|
14
|
-
} from "./chunk-BR3GT6MR.js";
|
|
10
|
+
} from "./chunk-SA356NGW.js";
|
|
15
11
|
import {
|
|
16
12
|
localDialogMessageRecordToRuntimeMessage,
|
|
17
13
|
orderDialogHistory
|
|
18
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TUOHSUK5.js";
|
|
19
15
|
import {
|
|
20
16
|
resolveAgentRuntimeConfigFromRecord
|
|
21
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5ISNPTQH.js";
|
|
22
18
|
import {
|
|
23
19
|
dialogMessagePrefix,
|
|
24
20
|
dialogMessageRange
|
|
25
21
|
} from "./chunk-OJKUU3LP.js";
|
|
22
|
+
import {
|
|
23
|
+
LOCAL_CODEX_AGENT_ID,
|
|
24
|
+
LOCAL_CODEX_AGENT_KEY
|
|
25
|
+
} from "./chunk-BR3GT6MR.js";
|
|
26
26
|
|
|
27
27
|
// packages/cli/client/cliLocalAgentRecordReader.ts
|
|
28
28
|
function resolveBuiltinLocalCliAgentConfig(agentRef, userId) {
|