nolo-cli 0.261.0-alpha.2 → 0.263.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_executeModel-PODMRXJJ.js → _executeModel-GZEGNZDC.js} +97 -96
- package/{accountResolver-NGICIMEE.js → accountResolver-JYG5L7YP.js} +2 -2
- package/{action-NJTYNXXR.js → action-UK3HXGXF.js} +9 -9
- package/{addContentAction-RUPXLROG.js → addContentAction-CAKFVBDM.js} +14 -14
- package/{addDialogAgentAction-57EJ2UBC.js → addDialogAgentAction-KLJ2YWWM.js} +16 -16
- package/{agentDeleteCommand-DRFCOTYP.js → agentDeleteCommand-PYQFS2IO.js} +135 -131
- package/{agentEmailCommands-FHENHUBF.js → agentEmailCommands-MSPYHNQA.js} +137 -136
- package/{agentGrantCommands-BMVKNYIY.js → agentGrantCommands-2VLLXGIU.js} +10 -9
- package/{agentListCommands-W66W5K3V.js → agentListCommands-436FHOIT.js} +68 -68
- package/{agentMachineCommands-C3BUBCXU.js → agentMachineCommands-HHH7DR26.js} +65 -65
- package/{agentProviderCommands-VIWKP7DM.js → agentProviderCommands-2W3VXDLV.js} +4 -3
- package/{agentPullCommand-5SNSXOY7.js → agentPullCommand-XEGOUYQT.js} +9 -8
- package/{agentRecordCommands-DYMHWTID.js → agentRecordCommands-ANOOR7DX.js} +127 -126
- package/{agentRun-QVFG3CI4.js → agentRun-P6GEVWAT.js} +137 -136
- package/{agentRunCommand-YV4V5HSL.js → agentRunCommand-SF4QKUF2.js} +139 -138
- package/{agentRunControl-RGBHKPKJ.js → agentRunControl-U2MV74WR.js} +17 -16
- package/{agentRuntimeLocal-LVEMOYS2.js → agentRuntimeLocal-P4MMGIR6.js} +55 -55
- package/{agentSlice-OJCM7OUX.js → agentSlice-NWSWCYRW.js} +17 -17
- package/{appConfigCommands-ZUXQLE7L.js → appConfigCommands-W4JQHMOJ.js} +61 -61
- package/{appDeleteCommands-L5UKUMXY.js → appDeleteCommands-IXR47IAV.js} +61 -61
- package/{appDeployCommands-KX2BRQUW.js → appDeployCommands-LB6DHDF4.js} +61 -61
- package/{appDeployStatusCommands-7LHRSWW7.js → appDeployStatusCommands-UQ6MJL6D.js} +61 -61
- package/{appGetCommands-F7SDFCUK.js → appGetCommands-M5JCTDDQ.js} +61 -61
- package/{appListCommands-U4NJKSMZ.js → appListCommands-TE3ZHE3I.js} +61 -61
- package/{appMigrateCommands-JAPOLYSW.js → appMigrateCommands-FOXH6R4B.js} +61 -61
- package/{appSourceCommands-TLXPWXUH.js → appSourceCommands-3ACYB6I7.js} +61 -61
- package/{authCommand-AU3GZBZ2.js → authCommand-I5OBJP5S.js} +20 -19
- package/{authCommands-JKBWMUQ4.js → authCommands-I6KCGOCN.js} +13 -12
- package/{builtinSkillRegistry-6XUWMAV5.js → builtinSkillRegistry-MIXYSZUU.js} +3 -6
- package/{chromeCommands-O4IIKTBD.js → chromeCommands-MVEEIY4R.js} +2 -2
- package/{chromeOpsCommands-F47WYQWF.js → chromeOpsCommands-IZRCYDSW.js} +7 -6
- package/{chunk-GF4LYNNZ.js → chunk-24BICQPB.js} +2 -2
- package/{chunk-LTCZOOAM.js → chunk-2AJLG6PY.js} +4 -4
- package/{chunk-HMFKYZKP.js → chunk-2JMYAH5O.js} +16 -16
- package/{chunk-WMBJDXMY.js → chunk-2LFYMWM3.js} +13 -16
- package/{chunk-VOO3YQQP.js → chunk-2O72G3U2.js} +1 -1
- package/{chunk-2I4R6ZRV.js → chunk-2QAZCYOM.js} +38 -10
- package/{chunk-CNYPQYXT.js → chunk-2R6M34JP.js} +75 -75
- package/{chunk-ZB2E724W.js → chunk-37DGW762.js} +4 -4
- package/{chunk-3A5NNQCN.js → chunk-3BQDF4QB.js} +46 -12
- package/{chunk-RWXHGPWJ.js → chunk-3UH7SS4W.js} +1 -1
- package/chunk-3VXVE2LF.js +12 -0
- package/{chunk-HAZ6UVH4.js → chunk-47T3QP4V.js} +3 -3
- package/{chunk-YRPIUIEQ.js → chunk-4DBTBNTX.js} +3 -6
- package/chunk-4MEKE5D3.js +229 -0
- package/chunk-526GLZJE.js +275 -0
- package/{chunk-FP46RAJQ.js → chunk-5MGXBQ3H.js} +3 -3
- package/{chunk-TJXO66M2.js → chunk-5MKPNTJP.js} +5 -5
- package/{chunk-L43DGEPZ.js → chunk-5YI447UL.js} +1 -1
- package/{chunk-SRVLHMES.js → chunk-6KA4XDEI.js} +32 -32
- package/{chunk-U5PSCTMR.js → chunk-6NYQHXMV.js} +13 -13
- package/chunk-6R4IY46J.js +14 -0
- package/{chunk-A4O76A6V.js → chunk-6S4VPBSW.js} +11 -11
- package/{chunk-MMXHIHJZ.js → chunk-7K4J76JQ.js} +20 -20
- package/{chunk-SU4NCTW4.js → chunk-B767MA64.js} +1 -1
- package/{chunk-RNLKWUVY.js → chunk-BAZCS5XG.js} +4 -4
- package/{chunk-EQOWWSNQ.js → chunk-BUO76CEE.js} +13 -13
- package/{chunk-NTBTVKKB.js → chunk-BWJLEN6X.js} +7 -7
- package/{chunk-UB7NV7NN.js → chunk-C36L6ZID.js} +1 -1
- package/{chunk-OSZNERNW.js → chunk-CQNGHKSG.js} +11 -11
- package/{chunk-TXMFSGRY.js → chunk-D2LTQAGN.js} +1 -1
- package/{chunk-DDKA6V6X.js → chunk-DBJAJ4UD.js} +3 -3
- package/{chunk-2MIZHEND.js → chunk-DFI7MVCQ.js} +4 -4
- package/{chunk-NJCTPWJU.js → chunk-DPFHC2DK.js} +6 -6
- package/{chunk-LHJB4BXJ.js → chunk-E2KZNP6C.js} +1 -1
- package/{chunk-IN4B6Z2D.js → chunk-E5JV4DCB.js} +4 -4
- package/{chunk-OIOMBPCA.js → chunk-EHFDVQF5.js} +2 -2
- package/{chunk-XJW6SLBZ.js → chunk-EZKIRVLJ.js} +6 -6
- package/{chunk-ER6NTALN.js → chunk-FGXG6OLW.js} +1 -1
- package/{chunk-CL33RFD7.js → chunk-GH34JXNV.js} +1 -1
- package/{chunk-WY6DMHMG.js → chunk-GWB6AGME.js} +1 -1
- package/{chunk-SWJRX4M5.js → chunk-HI5RS2O4.js} +328 -9
- package/{chunk-J22PFCQN.js → chunk-HRWRIPTB.js} +7 -7
- package/{chunk-KAHYBAEN.js → chunk-HYCVEESH.js} +12 -72
- package/{chunk-7X4BFUJV.js → chunk-I5BYFTYK.js} +3 -3
- package/{chunk-AQNWWJLH.js → chunk-I6YIA2TY.js} +1 -1
- package/{chunk-ZQAADXSF.js → chunk-IB5AR52X.js} +1 -1
- package/{chunk-TCOHWKDM.js → chunk-IYRZKHA6.js} +1 -1
- package/{chunk-XUDXQT7R.js → chunk-J44TXB4J.js} +20 -18
- package/{chunk-VZDSNDUD.js → chunk-JTRU7WEG.js} +35 -35
- package/{chunk-FNLT7NKG.js → chunk-K7HLFORE.js} +3 -3
- package/{chunk-UBOTXA3Z.js → chunk-KGBASAB5.js} +6 -6
- package/chunk-KJ4J2XQB.js +129 -0
- package/{chunk-GEC4CHS2.js → chunk-KTK64ZZN.js} +5 -5
- package/{chunk-6BBXJGIQ.js → chunk-KUZSTAE3.js} +36 -36
- package/{chunk-Z7EP5HDL.js → chunk-KYHNSSL2.js} +1 -1
- package/chunk-KZO2MTVM.js +140 -0
- package/{chunk-ERCSHBUD.js → chunk-L4KZCAIJ.js} +95 -95
- package/{chunk-72VWN4VK.js → chunk-LHTXSC2E.js} +18 -6
- package/{chunk-MSFKHPA6.js → chunk-LRLLWD4P.js} +1 -1
- package/{chunk-RIOAPUGV.js → chunk-M75RM77T.js} +9 -0
- package/{chunk-SARJZIGR.js → chunk-MI6HRMCK.js} +1 -1
- package/{chunk-A454UXB6.js → chunk-MKR6KDD3.js} +13 -9
- package/{chunk-MPWQI36J.js → chunk-MTNQNLSE.js} +12 -12
- package/{chunk-D3ONA3FP.js → chunk-NH4PUEWK.js} +2 -2
- package/{chunk-IWWJSSST.js → chunk-NTUNHTJV.js} +4 -4
- package/{chunk-XREMPMNK.js → chunk-OKUSDVRS.js} +3 -3
- package/{chunk-UEZL3RBG.js → chunk-OLJSB44A.js} +37 -36
- package/{chunk-63G7JWEA.js → chunk-OQH3TAB7.js} +6 -6
- package/{chunk-M7VNNPVX.js → chunk-OV47NSYQ.js} +117 -121
- package/{chunk-WEEB2JKA.js → chunk-P62DHV4F.js} +4 -4
- package/{chunk-3QMN3T6L.js → chunk-PEXGRTTQ.js} +4 -4
- package/{chunk-4HZCBA4Q.js → chunk-PHIERFHT.js} +4 -4
- package/{chunk-P4I55ASV.js → chunk-PJVJIDTH.js} +12 -12
- package/{chunk-QZYQ3Y3G.js → chunk-PKDFU6MY.js} +1 -1
- package/chunk-PSJJBBWV.js +42 -0
- package/{chunk-3B7OTHDW.js → chunk-Q6FKWH66.js} +14 -14
- package/{chunk-NLS7F5DW.js → chunk-QAUBNGF2.js} +22 -22
- package/{chunk-LUTSMSIL.js → chunk-QHSF7SPP.js} +7 -7
- package/{chunk-7LS5ATRP.js → chunk-QXHFIX7W.js} +82 -2
- package/{chunk-W2Z5E2R7.js → chunk-QY4NZCDA.js} +10 -10
- package/{chunk-BUGLH2A7.js → chunk-RIRFHJTW.js} +4 -4
- package/{chunk-G5IAIGGD.js → chunk-RYMLMTPZ.js} +10 -10
- package/{chunk-XKNDVHF5.js → chunk-S6FAHQDH.js} +4 -4
- package/{chunk-GH6SS2DZ.js → chunk-SVFFKLMR.js} +11 -11
- package/{chunk-YVOUSIIA.js → chunk-SVKWZ3EG.js} +1 -1
- package/{chunk-Q5IXZF3S.js → chunk-T7KODHYS.js} +3 -3
- package/{chunk-P4XAHM4B.js → chunk-TA5QI4MM.js} +1 -1
- package/{chunk-VCESLFF4.js → chunk-TEFD5E2D.js} +3 -3
- package/{chunk-EDKMRDET.js → chunk-UMADT6B2.js} +3 -3
- package/{chunk-3TII7WCF.js → chunk-V6K5U4YE.js} +9 -9
- package/{chunk-LHCIIUCX.js → chunk-VI4SWTUO.js} +7 -7
- package/{chunk-Z27AH6A5.js → chunk-VXUQWCEZ.js} +4 -4
- package/{chunk-QXWXRBOL.js → chunk-WJ5IXN23.js} +3 -3
- package/{chunk-T3Y2NA4H.js → chunk-WRHVVIGI.js} +4 -4
- package/chunk-WTIJKWCI.js +118 -0
- package/{chunk-UJL23HBL.js → chunk-WWE3TYSA.js} +24 -24
- package/{chunk-ULPU4C43.js → chunk-XCPC4RXE.js} +24 -24
- package/{chunk-CK2LMTYO.js → chunk-Y3KGWZKF.js} +5 -5
- package/{chunk-SJFL32RD.js → chunk-YCITCYSJ.js} +2 -2
- package/{chunk-HB4J5HA6.js → chunk-YR4J7RFS.js} +3 -3
- package/{chunk-KALCFXQO.js → chunk-YSYTCIFN.js} +200 -151
- package/{chunk-2FGFY72B.js → chunk-Z7TB2J74.js} +14 -14
- package/{chunk-CEIWXKHP.js → chunk-ZCLSM5AK.js} +12 -12
- package/{chunk-L45P4JTE.js → chunk-ZHWTBHT3.js} +17 -17
- package/{chunk-FF5ZRKW7.js → chunk-ZJACPM5O.js} +2 -2
- package/{chunk-JPYOHIHX.js → chunk-ZMOKHBV5.js} +18 -18
- package/{chunk-VC3MAT33.js → chunk-ZZOXGB2Z.js} +195 -151
- package/{cliAgentConfigHelpers-BJJEXHSZ.js → cliAgentConfigHelpers-WB2S7PDO.js} +16 -15
- package/{cliAuthorityBrokerProcess-VIJEKQSX.js → cliAuthorityBrokerProcess-BMBVXPKU.js} +7 -17
- package/{chunk-O77F26YB.js → cliAuthorityBrokerServer-27C5YBYP.js} +31 -504
- package/{cliEnvHelpers-NDMKN4X2.js → cliEnvHelpers-7V5ZWUJA.js} +4 -3
- package/{cliLocalAgentRecordReader-KCZS2MZU.js → cliLocalAgentRecordReader-QKKRK53P.js} +61 -61
- package/{cloudAutomationCommands-2WQUGQSW.js → cloudAutomationCommands-S52NKCLL.js} +61 -61
- package/{commandRegistry-C64JBZJ3.js → commandRegistry-ZEZY7MPW.js} +131 -131
- package/{contentThunks-G3HEIRXC.js → contentThunks-N3DDKRNJ.js} +48 -47
- package/{cooldownCommands-FPAFS7XG.js → cooldownCommands-ZFDAL4MR.js} +1 -1
- package/{createAgentAutomationAction-DSBL3X3A.js → createAgentAutomationAction-W3B6KOIW.js} +50 -49
- package/{createDialogAction-OHFUHC53.js → createDialogAction-V6WA7USR.js} +49 -48
- package/{createPageAction-E6JZSZLU.js → createPageAction-P2HDHBCU.js} +51 -50
- package/{db-KTQ3LL2Q.js → db-LTHLW7QA.js} +6 -4
- package/{dbSlice-U3GPLEL3.js → dbSlice-WNUHTF4C.js} +13 -13
- package/{deleteDbKey-DRXKWJX5.js → deleteDbKey-TDXLWHVF.js} +49 -48
- package/{dialogCommands-4EX2OTIC.js → dialogCommands-4MOLJW4G.js} +71 -71
- package/{dialogNotifyCommand-4SCE2Z2R.js → dialogNotifyCommand-YL2GFKLO.js} +19 -18
- package/{dialogPortabilityCommands-ZSFFHRX4.js → dialogPortabilityCommands-YQJNB2KL.js} +4 -3
- package/{dialogSlice-PRZCIJCH.js → dialogSlice-TEV6XXOO.js} +46 -45
- package/{dialogTraceCommand-RKB76OVX.js → dialogTraceCommand-HWXGIGZX.js} +79 -79
- package/{dialogUsageCommand-BP7HMRYP.js → dialogUsageCommand-IO2BQKL2.js} +6 -5
- package/{docCreateCommands-JGPNGIZ7.js → docCreateCommands-OYLRBK2M.js} +60 -60
- package/{docDeleteCommands-XRJTNRDH.js → docDeleteCommands-3NF6QPJU.js} +61 -61
- package/{docReadCommands-6GFO4ARS.js → docReadCommands-CBAERJAP.js} +60 -60
- package/{docStore-QRLIWFTU.js → docStore-OVBEONC7.js} +15 -15
- package/{docUpdateCommands-W2GXMUXW.js → docUpdateCommands-BAMCGX6F.js} +60 -60
- package/{ebookDownloaderAgentCommand-2DHPGEOQ.js → ebookDownloaderAgentCommand-NOIZ6U7Y.js} +8 -7
- package/{fetchMessages-RGPIYEPZ.js → fetchMessages-P7FSCSXV.js} +2 -2
- package/{getPricing-BK6CUBAE.js → getPricing-KNXVEIUI.js} +6 -6
- package/{handleSendMessageAction-DHGWURJZ.js → handleSendMessageAction-5GZ44SKK.js} +95 -93
- package/{hostCredentialCreate-FPUZ7RMI.js → hostCredentialCreate-WOLFFVCM.js} +130 -129
- package/i18n-SAK6DDY4.js +51 -0
- package/index.js +163 -184
- package/levelAuthorityStore-L5SVDM5O.js +10 -0
- package/{localAutomationCommands-ZMU22RQJ.js → localAutomationCommands-L333FJPR.js} +32 -31
- package/{localAutomationRuntime-MU5FGJ3V.js → localAutomationRuntime-CIHGJBSC.js} +30 -29
- package/{localDialogRead-W2EVXISA.js → localDialogRead-GWGWSL5K.js} +2 -2
- package/{localRuntimeAdapter-YBXQBV4G.js → localRuntimeAdapter-6WNR7IYN.js} +123 -122
- package/{localRuntimeAuthority-LDXMEDO5.js → localRuntimeAuthority-Q5C2KWGF.js} +11 -10
- package/{localRuntimeDb-6TQZDLNU.js → localRuntimeDb-MM3DINZM.js} +1 -1
- package/{machineCommands-57RTUYRV.js → machineCommands-CP7NCD6O.js} +132 -131
- package/{machineInfo-BJIU3WQ5.js → machineInfo-HNPJHQFU.js} +5 -3
- package/{machineWsRunDispatch-VBKV3FFE.js → machineWsRunDispatch-YIAY2LPK.js} +124 -123
- package/{mcpLocalAuthorizeCommand-J76SOJVZ.js → mcpLocalAuthorizeCommand-IKOFKY5U.js} +32 -31
- package/{mcpLocalManageCommands-USETIMHB.js → mcpLocalManageCommands-KUDZQRM4.js} +32 -31
- package/{memberThunks-7UERUEMI.js → memberThunks-TD76IFGA.js} +209 -26
- package/{memoryCommands-N7NHEE55.js → memoryCommands-SVLAVFCV.js} +4 -3
- package/{offlineMarxistsAgentCommand-WZBJBCPZ.js → offlineMarxistsAgentCommand-MFURGWHL.js} +5 -4
- package/package.json +1 -1
- package/{parityCommands-LYDLWSLK.js → parityCommands-5OCBPVES.js} +61 -61
- package/{projectArchive-KCNQDVWJ.js → projectArchive-KJRBIY3O.js} +55 -54
- package/{read-SPSQ6NLR.js → read-D4WYJQJQ.js} +10 -10
- package/{readDocTool-ENUL2GNL.js → readDocTool-3S3OQFOH.js} +2 -2
- package/{readlineWorkspace-MKS7TAEF.js → readlineWorkspace-2PLTEZDM.js} +223 -222
- package/{rememberExplicit-7KX4HXQC.js → rememberExplicit-ZPI6KK5M.js} +3 -2
- package/{remove-TNNDO635.js → remove-AHRMUDMH.js} +10 -10
- package/{removeDialogAgentAction-POPUZ3WU.js → removeDialogAgentAction-AALRBFSA.js} +19 -19
- package/{runAgentClientLoop-KVILXQNI.js → runAgentClientLoop-IBWSCK2D.js} +93 -92
- package/{runtimeDoctorCommands-4J2DP4LZ.js → runtimeDoctorCommands-52MBG5JN.js} +25 -24
- package/{secretCommands-CSTQYB6T.js → secretCommands-2PSS3QNZ.js} +2 -2
- package/{setDialogExtraReferencesAction-35THMVBP.js → setDialogExtraReferencesAction-SLHQ3GYL.js} +15 -15
- package/{setPrimaryDialogAgentAction-WLXBNIG7.js → setPrimaryDialogAgentAction-XKCSGJ7M.js} +19 -19
- package/{settingThunks-6Y5U5M5N.js → settingThunks-PNC7ZISV.js} +22 -22
- package/{spaceCommands-LXNJBO2U.js → spaceCommands-Z2CTQD6G.js} +62 -62
- package/{spacePruneCommand-2ITUFYBM.js → spacePruneCommand-YKIEUIDQ.js} +4 -3
- package/{streamAgentChatTurn-EY6MFKCA.js → streamAgentChatTurn-JAAROGLD.js} +123 -122
- package/{switchDialogAgentAction-TG6BQRDA.js → switchDialogAgentAction-YJIWQGIR.js} +16 -16
- package/{tableCommands-35G34R4B.js → tableCommands-FCPDULSU.js} +19 -18
- package/{toolApiClient-MPQIFYXP.js → toolApiClient-FVXTIIEN.js} +9 -9
- package/{tools-CSLTRRUR.js → tools-TCOYT5DJ.js} +73 -72
- package/{tuiRestart-ALR4Q3JM.js → tuiRestart-LU2BDLAW.js} +18 -17
- package/{tuiSummaryLlmCaller-3Y3JEXJK.js → tuiSummaryLlmCaller-Z2ZVBIGN.js} +23 -22
- package/{updateCommands-GHQVP6Z5.js → updateCommands-4QP7WJLA.js} +9 -8
- package/{updateDialogTitleAction-LFAWF5EW.js → updateDialogTitleAction-O3TRFRIH.js} +51 -50
- package/{usageCommand-5VKW6T4C.js → usageCommand-AZX7D3LB.js} +2 -2
- package/{usageRebuildCommand-VUQETFMW.js → usageRebuildCommand-XV5QQCHK.js} +3 -3
- package/versionChangeNotice-RFABJGJE.js +35 -0
- package/{windowsSelfUpdate-SXSVXK4X.js → windowsSelfUpdate-5OFKSW6Y.js} +2 -2
- package/chunk-AMNZPQCY.js +0 -635
- package/chunk-IVK2KT3H.js +0 -209
- package/chunk-KGWE224L.js +0 -246
- package/{chunk-YY7IGJMN.js → chunk-ADMRXWXJ.js} +3 -3
- package/{chunk-CW6LRDSF.js → chunk-LLP2NDED.js} +6 -6
- package/{chunk-GX2MFKF3.js → chunk-SSGTV4FC.js} +3 -3
- package/{chunk-FOC4TORM.js → chunk-TSBJVMNW.js} +5 -5
- package/{chunk-O7ZY6SUK.js → chunk-UYQILGDR.js} +9 -9
- package/{chunk-HXER7YJF.js → chunk-VXL2FZTP.js} +3 -3
- package/{chunk-WSQLCWLQ.js → chunk-YECCIUYU.js} +3 -3
- package/{chunk-U6RD332P.js → chunk-YQJEXXDK.js} +3 -3
- package/{chunk-HVRG27HI.js → chunk-ZV7ZY46L.js} +7 -7
- package/{providerPresetApply-IRJ56XIZ.js → providerPresetApply-YCVSP2WX.js} +3 -3
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
// node_modules/@noble/hashes/_u64.js
|
|
2
|
-
var fromNumH = (n) => n / 2 ** 32 | 0;
|
|
3
|
-
var fromNumL = (n) => n >>> 0;
|
|
4
|
-
function setU64FromNum(view, byteOffset, n, isLE) {
|
|
5
|
-
const h = fromNumH(n);
|
|
6
|
-
const l = fromNumL(n);
|
|
7
|
-
view.setUint32(byteOffset, isLE ? l : h, isLE);
|
|
8
|
-
view.setUint32(byteOffset + 4, isLE ? h : l, isLE);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
1
|
// node_modules/@noble/hashes/utils.js
|
|
12
2
|
function isBytes(a) {
|
|
13
3
|
return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array" && "BYTES_PER_ELEMENT" in a && a.BYTES_PER_ELEMENT === 1;
|
|
@@ -120,6 +110,16 @@ var oidNist = (suffix) => ({
|
|
|
120
110
|
oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, suffix])
|
|
121
111
|
});
|
|
122
112
|
|
|
113
|
+
// node_modules/@noble/hashes/_u64.js
|
|
114
|
+
var fromNumH = (n) => n / 2 ** 32 | 0;
|
|
115
|
+
var fromNumL = (n) => n >>> 0;
|
|
116
|
+
function setU64FromNum(view, byteOffset, n, isLE) {
|
|
117
|
+
const h = fromNumH(n);
|
|
118
|
+
const l = fromNumL(n);
|
|
119
|
+
view.setUint32(byteOffset, isLE ? l : h, isLE);
|
|
120
|
+
view.setUint32(byteOffset + 4, isLE ? h : l, isLE);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
123
|
// node_modules/@noble/hashes/_md.js
|
|
124
124
|
function Chi(a, b, c) {
|
|
125
125
|
return a & b ^ ~a & c;
|
|
@@ -398,11 +398,8 @@ var sha256 = /* @__PURE__ */ createHasher(
|
|
|
398
398
|
/* @__PURE__ */ oidNist(1)
|
|
399
399
|
);
|
|
400
400
|
|
|
401
|
-
// packages/core/sha256.ts
|
|
402
|
-
function sha256Hex(text) {
|
|
403
|
-
return bytesToHex(sha256(utf8ToBytes(text)));
|
|
404
|
-
}
|
|
405
|
-
|
|
406
401
|
export {
|
|
407
|
-
|
|
402
|
+
bytesToHex,
|
|
403
|
+
utf8ToBytes,
|
|
404
|
+
sha256
|
|
408
405
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
2
|
+
isRecord
|
|
3
|
+
} from "./chunk-KUG52IAP.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveNoloStateDir
|
|
6
6
|
} from "./chunk-6UBGXX2W.js";
|
|
7
|
+
import {
|
|
8
|
+
toErrorMessage
|
|
9
|
+
} from "./chunk-HNMXYYJR.js";
|
|
7
10
|
import {
|
|
8
11
|
asOptionalFiniteNumber
|
|
9
12
|
} from "./chunk-WWC7I6TA.js";
|
|
10
13
|
import {
|
|
11
14
|
asOptionalPositiveFiniteNumber
|
|
12
15
|
} from "./chunk-U6VC4MU4.js";
|
|
13
|
-
import {
|
|
14
|
-
isRecord
|
|
15
|
-
} from "./chunk-KUG52IAP.js";
|
|
16
16
|
import {
|
|
17
17
|
asOptionalTrimmedString
|
|
18
18
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -742,10 +742,36 @@ var DEFAULT_SPILL_TTL_MS = 24 * 60 * 60 * 1e3;
|
|
|
742
742
|
var SPILL_CLEANUP_THROTTLE_MS = 60 * 1e3;
|
|
743
743
|
var SPILL_THROTTLE_MAX_DIRS = 64;
|
|
744
744
|
var lastSpillCleanupAtMsByDir = /* @__PURE__ */ new Map();
|
|
745
|
+
var MIN_SPILL_TTL_MS = 60 * 1e3;
|
|
746
|
+
var MIN_SPILL_DIR_BYTES = 1 * 1024 * 1024;
|
|
747
|
+
function parseBoundedPositiveInt(raw, min) {
|
|
748
|
+
const trimmed = raw?.trim();
|
|
749
|
+
if (!trimmed || !/^[0-9]+$/.test(trimmed)) return void 0;
|
|
750
|
+
const parsed = Number.parseInt(trimmed, 10);
|
|
751
|
+
if (!Number.isSafeInteger(parsed) || parsed < min) return void 0;
|
|
752
|
+
return parsed;
|
|
753
|
+
}
|
|
754
|
+
function resolveConfiguredSpillDir(env = process.env) {
|
|
755
|
+
const configured = env.NOLO_SPILL_DIR?.trim();
|
|
756
|
+
if (configured && isAbsolute(configured)) {
|
|
757
|
+
return configured;
|
|
758
|
+
}
|
|
759
|
+
return void 0;
|
|
760
|
+
}
|
|
761
|
+
function resolveSpillRetentionDefaults(env = process.env) {
|
|
762
|
+
return {
|
|
763
|
+
maxAgeMs: parseBoundedPositiveInt(env.NOLO_SPILL_TTL_MS, MIN_SPILL_TTL_MS) ?? DEFAULT_SPILL_TTL_MS,
|
|
764
|
+
maxTotalBytes: parseBoundedPositiveInt(env.NOLO_SPILL_MAX_BYTES, MIN_SPILL_DIR_BYTES) ?? DEFAULT_MAX_SPILL_DIR_BYTES
|
|
765
|
+
};
|
|
766
|
+
}
|
|
745
767
|
function resolveSpillDirectory(options) {
|
|
746
768
|
if (options?.baseDir) {
|
|
747
769
|
return options.baseDir;
|
|
748
770
|
}
|
|
771
|
+
const configured = resolveConfiguredSpillDir(options?.env);
|
|
772
|
+
if (configured) {
|
|
773
|
+
return configured;
|
|
774
|
+
}
|
|
749
775
|
if (options?.workspaceRoot) {
|
|
750
776
|
return join2(options.workspaceRoot, ".nolo", "spills");
|
|
751
777
|
}
|
|
@@ -819,8 +845,9 @@ async function promoteToolSpillFile(sourcePath, options) {
|
|
|
819
845
|
new Set(
|
|
820
846
|
[
|
|
821
847
|
resolveSpillDirectory({ workspaceRoot }),
|
|
848
|
+
workspaceRoot ? join2(workspaceRoot, ".nolo", "spills") : void 0,
|
|
822
849
|
resolveNoloStateDir("spills")
|
|
823
|
-
].filter(Boolean)
|
|
850
|
+
].filter((dir) => Boolean(dir))
|
|
824
851
|
)
|
|
825
852
|
);
|
|
826
853
|
for (const dir of candidateDirs) {
|
|
@@ -853,9 +880,9 @@ async function promoteToolSpillFile(sourcePath, options) {
|
|
|
853
880
|
ops.cleanup(dir);
|
|
854
881
|
} catch {
|
|
855
882
|
}
|
|
856
|
-
const displayPath = workspaceRoot && isAbsolute(workspaceRoot)
|
|
883
|
+
const displayPath = workspaceRoot && isAbsolute(workspaceRoot) ? (() => {
|
|
857
884
|
const rel = relative(workspaceRoot, final);
|
|
858
|
-
return !rel.startsWith("
|
|
885
|
+
return rel !== ".." && !rel.startsWith("../") && !rel.startsWith("..\\") && !isAbsolute(rel) ? rel : final;
|
|
859
886
|
})() : final;
|
|
860
887
|
return { ok: true, spillPath: final, displayPath };
|
|
861
888
|
} catch {
|
|
@@ -894,8 +921,9 @@ function cleanupExpiredSpills(spillDir, options) {
|
|
|
894
921
|
}
|
|
895
922
|
lastSpillCleanupAtMsByDir.set(spillDir, now2);
|
|
896
923
|
}
|
|
897
|
-
const
|
|
898
|
-
const
|
|
924
|
+
const envDefaults = resolveSpillRetentionDefaults();
|
|
925
|
+
const maxAge = options?.maxAgeMs ?? envDefaults.maxAgeMs;
|
|
926
|
+
const maxBytes = options?.maxTotalBytes ?? envDefaults.maxTotalBytes;
|
|
899
927
|
const now = Date.now();
|
|
900
928
|
try {
|
|
901
929
|
const entries = readdirSync2(spillDir, { withFileTypes: true });
|
|
@@ -18,26 +18,23 @@ import {
|
|
|
18
18
|
providerHttpFailure,
|
|
19
19
|
readSseFrames,
|
|
20
20
|
throwIfChatCompletionStreamFailed
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-DBJAJ4UD.js";
|
|
22
22
|
import {
|
|
23
23
|
evaluateFileWritePolicy,
|
|
24
24
|
summarizeToolArguments
|
|
25
25
|
} from "./chunk-CHOZJMJS.js";
|
|
26
|
-
import {
|
|
27
|
-
resolveToolExecutionContract
|
|
28
|
-
} from "./chunk-3R4AYHJR.js";
|
|
29
|
-
import {
|
|
30
|
-
projectChatUsage
|
|
31
|
-
} from "./chunk-AQNWWJLH.js";
|
|
32
26
|
import {
|
|
33
27
|
evaluateRequestBudget,
|
|
34
28
|
hasImageInRuntimeMessages,
|
|
35
29
|
stripImagePartsFromMessages
|
|
36
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-EZKIRVLJ.js";
|
|
31
|
+
import {
|
|
32
|
+
resolveToolExecutionContract
|
|
33
|
+
} from "./chunk-3R4AYHJR.js";
|
|
37
34
|
import {
|
|
38
35
|
resolveAgentImageInputSupport,
|
|
39
36
|
resolveToolImagePolicy
|
|
40
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-BAZCS5XG.js";
|
|
41
38
|
import {
|
|
42
39
|
applyShapingCounts,
|
|
43
40
|
attachProjectionFacts,
|
|
@@ -48,7 +45,7 @@ import {
|
|
|
48
45
|
projectUserPartForModel,
|
|
49
46
|
resolveOutboundDiagnosticSink,
|
|
50
47
|
writeThinkingFacts
|
|
51
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-GH34JXNV.js";
|
|
52
49
|
import {
|
|
53
50
|
createThinkParserState,
|
|
54
51
|
createToolCallAccumulator,
|
|
@@ -56,6 +53,9 @@ import {
|
|
|
56
53
|
extractThinkContent,
|
|
57
54
|
finalizeAccumulatedToolCalls
|
|
58
55
|
} from "./chunk-56GBUMO5.js";
|
|
56
|
+
import {
|
|
57
|
+
projectChatUsage
|
|
58
|
+
} from "./chunk-I6YIA2TY.js";
|
|
59
59
|
import {
|
|
60
60
|
TOOL_GUIDED_SECTION_ORDER,
|
|
61
61
|
buildIdentityBlock,
|
|
@@ -65,22 +65,7 @@ import {
|
|
|
65
65
|
hashStablePrefixContent,
|
|
66
66
|
resolveResponseGuidelines,
|
|
67
67
|
resolveToolGuidedSections
|
|
68
|
-
} from "./chunk-
|
|
69
|
-
import {
|
|
70
|
-
BRIDGE_STREAM_MAX_CHARS,
|
|
71
|
-
CLI_NOLO_WORKSPACE_TOOL_NAMES,
|
|
72
|
-
DEFAULT_READ_DIALOG_MAX_RESPONSE_CHARS,
|
|
73
|
-
NOLO_WORKSPACE_TOOL_NAMES,
|
|
74
|
-
buildDialogReadEnvelope,
|
|
75
|
-
buildNoloWorkspaceCommandArgs,
|
|
76
|
-
buildNoloWorkspaceOpenAiTools,
|
|
77
|
-
createStreamingDialogReadProjector,
|
|
78
|
-
noloPositiveIntegerString,
|
|
79
|
-
noloStringArg,
|
|
80
|
-
parseNoloWorkspaceToolArguments,
|
|
81
|
-
readTextStreamUpToChars,
|
|
82
|
-
resolveNoloDialogInput
|
|
83
|
-
} from "./chunk-HVRG27HI.js";
|
|
68
|
+
} from "./chunk-NH4PUEWK.js";
|
|
84
69
|
import {
|
|
85
70
|
TOOL_HAD_IMAGES,
|
|
86
71
|
TOOL_IMAGES,
|
|
@@ -116,7 +101,7 @@ import {
|
|
|
116
101
|
toolImages,
|
|
117
102
|
transferDowngradedToolTurnOrigin,
|
|
118
103
|
withoutToolImages
|
|
119
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-DFI7MVCQ.js";
|
|
120
105
|
import {
|
|
121
106
|
TOOL_DISCOVERY_CALL_NAME,
|
|
122
107
|
TOOL_DISCOVERY_ID_PREFIX,
|
|
@@ -129,6 +114,21 @@ import {
|
|
|
129
114
|
splitHostedToolDiscovery,
|
|
130
115
|
stablePromptCacheKey
|
|
131
116
|
} from "./chunk-4IVMDQBA.js";
|
|
117
|
+
import {
|
|
118
|
+
BRIDGE_STREAM_MAX_CHARS,
|
|
119
|
+
CLI_NOLO_WORKSPACE_TOOL_NAMES,
|
|
120
|
+
DEFAULT_READ_DIALOG_MAX_RESPONSE_CHARS,
|
|
121
|
+
NOLO_WORKSPACE_TOOL_NAMES,
|
|
122
|
+
buildDialogReadEnvelope,
|
|
123
|
+
buildNoloWorkspaceCommandArgs,
|
|
124
|
+
buildNoloWorkspaceOpenAiTools,
|
|
125
|
+
createStreamingDialogReadProjector,
|
|
126
|
+
noloPositiveIntegerString,
|
|
127
|
+
noloStringArg,
|
|
128
|
+
parseNoloWorkspaceToolArguments,
|
|
129
|
+
readTextStreamUpToChars,
|
|
130
|
+
resolveNoloDialogInput
|
|
131
|
+
} from "./chunk-ZV7ZY46L.js";
|
|
132
132
|
import {
|
|
133
133
|
isContextOverflowText
|
|
134
134
|
} from "./chunk-2OROOEOQ.js";
|
|
@@ -148,7 +148,7 @@ import {
|
|
|
148
148
|
sanitizeToolOutputText,
|
|
149
149
|
scrubObjectSecrets,
|
|
150
150
|
scrubSecrets
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-D2LTQAGN.js";
|
|
152
152
|
import {
|
|
153
153
|
buildDialogFallbackTitleFromUserInput
|
|
154
154
|
} from "./chunk-LXP53WGF.js";
|
|
@@ -168,7 +168,7 @@ import {
|
|
|
168
168
|
resolveEmptyAssistantFallbackMessage,
|
|
169
169
|
resolveEmptyAssistantOutcome,
|
|
170
170
|
resolveTruncatedReasoningTailLog
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-RYMLMTPZ.js";
|
|
172
172
|
import {
|
|
173
173
|
COMPACTION_SUMMARY_SCHEMA_VERSION,
|
|
174
174
|
COMPACTION_SUMMARY_SYSTEM_PROMPT,
|
|
@@ -191,7 +191,7 @@ import {
|
|
|
191
191
|
runSummaryWithContract,
|
|
192
192
|
summaryCompletionTokens,
|
|
193
193
|
truncateToolOutputForContext
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-ZCLSM5AK.js";
|
|
195
195
|
import {
|
|
196
196
|
createProviderCallTimingTracker,
|
|
197
197
|
finalizeProviderCallTiming,
|
|
@@ -199,15 +199,21 @@ import {
|
|
|
199
199
|
observeMeaningfulProviderResponse,
|
|
200
200
|
withProviderCallTimingFields
|
|
201
201
|
} from "./chunk-H57T64RA.js";
|
|
202
|
-
import {
|
|
203
|
-
sha256Hex
|
|
204
|
-
} from "./chunk-WMBJDXMY.js";
|
|
205
202
|
import {
|
|
206
203
|
clipCompactText
|
|
207
204
|
} from "./chunk-5MMAK75Q.js";
|
|
205
|
+
import {
|
|
206
|
+
sha256Hex
|
|
207
|
+
} from "./chunk-6R4IY46J.js";
|
|
208
208
|
import {
|
|
209
209
|
asRecordOrEmpty
|
|
210
210
|
} from "./chunk-KX6YBIHG.js";
|
|
211
|
+
import {
|
|
212
|
+
Mutex
|
|
213
|
+
} from "./chunk-PSJJBBWV.js";
|
|
214
|
+
import {
|
|
215
|
+
isAbortError
|
|
216
|
+
} from "./chunk-7DPNBQSV.js";
|
|
211
217
|
import {
|
|
212
218
|
TOOL_OUTPUT_SPILL_BYTES,
|
|
213
219
|
TOOL_OUTPUT_SPILL_LINES,
|
|
@@ -236,7 +242,7 @@ import {
|
|
|
236
242
|
toProcessTaskView,
|
|
237
243
|
truncateToolOutput,
|
|
238
244
|
workspaceChildEnv
|
|
239
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-2QAZCYOM.js";
|
|
240
246
|
import {
|
|
241
247
|
resolveModelTier
|
|
242
248
|
} from "./chunk-HEVRQGGH.js";
|
|
@@ -244,11 +250,29 @@ import {
|
|
|
244
250
|
estimateTokenCount
|
|
245
251
|
} from "./chunk-PSCNXBYA.js";
|
|
246
252
|
import {
|
|
247
|
-
|
|
248
|
-
} from "./chunk-
|
|
253
|
+
isTombstoneRecord
|
|
254
|
+
} from "./chunk-BV3FLP2L.js";
|
|
249
255
|
import {
|
|
250
|
-
|
|
251
|
-
} from "./chunk-
|
|
256
|
+
dialogMessageRecordToAgentRuntimeMessage
|
|
257
|
+
} from "./chunk-W5GKF5ZW.js";
|
|
258
|
+
import {
|
|
259
|
+
resolveLocalUserId
|
|
260
|
+
} from "./chunk-KGBASAB5.js";
|
|
261
|
+
import {
|
|
262
|
+
applyToolSurfaceConstraints,
|
|
263
|
+
isSubtaskRun
|
|
264
|
+
} from "./chunk-TSBJVMNW.js";
|
|
265
|
+
import {
|
|
266
|
+
buildProviderAuthHeaders,
|
|
267
|
+
buildProviderExecutionPlan
|
|
268
|
+
} from "./chunk-UYQILGDR.js";
|
|
269
|
+
import {
|
|
270
|
+
canonicalizeToolName,
|
|
271
|
+
canonicalizeToolNames
|
|
272
|
+
} from "./chunk-HJTI7RZV.js";
|
|
273
|
+
import {
|
|
274
|
+
isRecord
|
|
275
|
+
} from "./chunk-KUG52IAP.js";
|
|
252
276
|
import {
|
|
253
277
|
buildAgentsMdLayer,
|
|
254
278
|
buildAgentsMdLayerHeader,
|
|
@@ -260,39 +284,24 @@ import {
|
|
|
260
284
|
buildUserResponseLanguageContext
|
|
261
285
|
} from "./chunk-Z3KTXWWB.js";
|
|
262
286
|
import {
|
|
263
|
-
|
|
264
|
-
} from "./chunk-
|
|
287
|
+
PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL
|
|
288
|
+
} from "./chunk-G22P2J7O.js";
|
|
265
289
|
import {
|
|
266
|
-
|
|
267
|
-
} from "./chunk-
|
|
290
|
+
asTrimmedLowercaseString
|
|
291
|
+
} from "./chunk-QSJ3HFEF.js";
|
|
268
292
|
import {
|
|
269
293
|
resolveNoloStateDir
|
|
270
294
|
} from "./chunk-6UBGXX2W.js";
|
|
271
295
|
import {
|
|
272
|
-
|
|
273
|
-
} from "./chunk-
|
|
296
|
+
isLevelNotFoundError
|
|
297
|
+
} from "./chunk-OW765XBU.js";
|
|
274
298
|
import {
|
|
275
|
-
|
|
276
|
-
} from "./chunk-
|
|
299
|
+
toErrorMessage
|
|
300
|
+
} from "./chunk-HNMXYYJR.js";
|
|
277
301
|
import {
|
|
278
302
|
dialogMessageKey,
|
|
279
303
|
dialogMessageRange
|
|
280
304
|
} from "./chunk-OJKUU3LP.js";
|
|
281
|
-
import {
|
|
282
|
-
resolveLocalUserId
|
|
283
|
-
} from "./chunk-UBOTXA3Z.js";
|
|
284
|
-
import {
|
|
285
|
-
applyToolSurfaceConstraints,
|
|
286
|
-
isSubtaskRun
|
|
287
|
-
} from "./chunk-FOC4TORM.js";
|
|
288
|
-
import {
|
|
289
|
-
buildProviderAuthHeaders,
|
|
290
|
-
buildProviderExecutionPlan
|
|
291
|
-
} from "./chunk-O7ZY6SUK.js";
|
|
292
|
-
import {
|
|
293
|
-
canonicalizeToolName,
|
|
294
|
-
canonicalizeToolNames
|
|
295
|
-
} from "./chunk-HJTI7RZV.js";
|
|
296
305
|
import {
|
|
297
306
|
asTrimmedNonEmptyStringArray
|
|
298
307
|
} from "./chunk-I42VC5KR.js";
|
|
@@ -302,21 +311,12 @@ import {
|
|
|
302
311
|
import {
|
|
303
312
|
asOptionalPositiveFiniteNumber
|
|
304
313
|
} from "./chunk-U6VC4MU4.js";
|
|
305
|
-
import {
|
|
306
|
-
isRecord
|
|
307
|
-
} from "./chunk-KUG52IAP.js";
|
|
308
|
-
import {
|
|
309
|
-
asOptionalTrimmedString
|
|
310
|
-
} from "./chunk-G3SUCT4W.js";
|
|
311
314
|
import {
|
|
312
315
|
normalizeServerOrigin
|
|
313
316
|
} from "./chunk-CF7PE763.js";
|
|
314
317
|
import {
|
|
315
|
-
|
|
316
|
-
} from "./chunk-
|
|
317
|
-
import {
|
|
318
|
-
asTrimmedLowercaseString
|
|
319
|
-
} from "./chunk-QSJ3HFEF.js";
|
|
318
|
+
asOptionalTrimmedString
|
|
319
|
+
} from "./chunk-G3SUCT4W.js";
|
|
320
320
|
import {
|
|
321
321
|
__export
|
|
322
322
|
} from "./chunk-U67V476Y.js";
|
|
@@ -26050,7 +26050,7 @@ async function saveCliPendingUserMessages(args2) {
|
|
|
26050
26050
|
if (ops.length) await args2.store.batch(ops);
|
|
26051
26051
|
}
|
|
26052
26052
|
async function readCliPendingUserMessages(store, dialogId) {
|
|
26053
|
-
const { readDialogMessageRecords } = await import("./cliLocalAgentRecordReader-
|
|
26053
|
+
const { readDialogMessageRecords } = await import("./cliLocalAgentRecordReader-QKKRK53P.js");
|
|
26054
26054
|
const rows = await readDialogMessageRecords({ store, dialogId });
|
|
26055
26055
|
const uncertain = rows.filter(({ record: record2 }) => record2.metadata?.cliBatchPhase === "requested" && !record2.metadata?.cliBatchResolution);
|
|
26056
26056
|
const recovery = uncertain.length ? {
|
|
@@ -26352,7 +26352,7 @@ function buildLoadSkillExecutor(args2) {
|
|
|
26352
26352
|
const { resolveSkillByName } = await import("./skillDiscovery-IUEZZG2B.js");
|
|
26353
26353
|
const resolved = resolveSkillByName(args2.cwd, name);
|
|
26354
26354
|
if (!resolved) {
|
|
26355
|
-
const { resolveBuiltinSkillByName } = await import("./builtinSkillRegistry-
|
|
26355
|
+
const { resolveBuiltinSkillByName } = await import("./builtinSkillRegistry-MIXYSZUU.js");
|
|
26356
26356
|
const builtin = resolveBuiltinSkillByName(name);
|
|
26357
26357
|
if (builtin) {
|
|
26358
26358
|
const denied = await rejectDisabledBuiltin(args2.agentSkillSource, builtin.slug, name, args2.resolveAgentSkillSource);
|
|
@@ -26431,7 +26431,7 @@ async function loadPreciseSkill(cwd, parsed, agentSkillSource, resolveAgentSkill
|
|
|
26431
26431
|
if (!nonEmpty(parsed.slug) || has2("projectBinding") || has2("relativePath")) {
|
|
26432
26432
|
return reject("builtin requires only an exact slug.");
|
|
26433
26433
|
}
|
|
26434
|
-
const { listBuiltinSkills } = await import("./builtinSkillRegistry-
|
|
26434
|
+
const { listBuiltinSkills } = await import("./builtinSkillRegistry-MIXYSZUU.js");
|
|
26435
26435
|
const builtin = listBuiltinSkills().find((entry) => entry.slug === parsed.slug);
|
|
26436
26436
|
if (!builtin) return reject("builtin slug not found.");
|
|
26437
26437
|
const denied = await rejectDisabledBuiltin(agentSkillSource, builtin.slug, builtin.slug, resolveAgentSkillSource);
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
deleteDbRecord,
|
|
3
3
|
queryUserRecords,
|
|
4
4
|
readDbRecord
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7K4J76JQ.js";
|
|
6
6
|
import {
|
|
7
7
|
mergeAndDedupUserData
|
|
8
8
|
} from "./chunk-GBWGPTA7.js";
|
|
9
|
-
import {
|
|
10
|
-
toErrorMessage
|
|
11
|
-
} from "./chunk-HNMXYYJR.js";
|
|
12
9
|
import {
|
|
13
10
|
isTombstoneRecord
|
|
14
11
|
} from "./chunk-BV3FLP2L.js";
|
|
12
|
+
import {
|
|
13
|
+
toErrorMessage
|
|
14
|
+
} from "./chunk-HNMXYYJR.js";
|
|
15
15
|
|
|
16
16
|
// packages/cli/globalRecordOperations.ts
|
|
17
17
|
async function listUserRecordsFromServers(args) {
|
|
@@ -1,8 +1,33 @@
|
|
|
1
1
|
// packages/cli/cliAuthorityBrokerTls.ts
|
|
2
|
-
import { createHash, randomUUID } from "node:crypto";
|
|
3
|
-
import { link, lstat, mkdir, readFile, realpath, unlink, writeFile } from "node:fs/promises";
|
|
2
|
+
import { createHash, randomUUID, X509Certificate } from "node:crypto";
|
|
3
|
+
import { link, lstat, mkdir, readFile, realpath, rename, unlink, writeFile } from "node:fs/promises";
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
|
+
var CERT_VALIDITY_DAYS = 365;
|
|
7
|
+
var CERT_ROTATE_BEFORE_EXPIRY_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
8
|
+
function isIdentityReusable(identity, nowMs = Date.now()) {
|
|
9
|
+
try {
|
|
10
|
+
const x509 = new X509Certificate(identity.cert);
|
|
11
|
+
const validToMs = Date.parse(x509.validTo);
|
|
12
|
+
if (!Number.isFinite(validToMs)) return false;
|
|
13
|
+
return validToMs - nowMs > CERT_ROTATE_BEFORE_EXPIRY_MS;
|
|
14
|
+
} catch {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
async function generateLocalBrokerIdentity() {
|
|
19
|
+
const { generate } = await import("selfsigned");
|
|
20
|
+
const notBeforeDate = /* @__PURE__ */ new Date();
|
|
21
|
+
const notAfterDate = new Date(notBeforeDate.getTime() + CERT_VALIDITY_DAYS * 24 * 60 * 60 * 1e3);
|
|
22
|
+
const certificate = await generate([{ name: "commonName", value: "localhost" }], {
|
|
23
|
+
keyType: "ec",
|
|
24
|
+
curve: "P-384",
|
|
25
|
+
algorithm: "sha384",
|
|
26
|
+
notBeforeDate,
|
|
27
|
+
notAfterDate
|
|
28
|
+
});
|
|
29
|
+
return { cert: certificate.cert, key: certificate.private };
|
|
30
|
+
}
|
|
6
31
|
async function loadCliAuthorityBrokerTls(metadataPath) {
|
|
7
32
|
const runDirectory = dirname(metadataPath);
|
|
8
33
|
await mkdir(runDirectory, { recursive: true });
|
|
@@ -35,24 +60,33 @@ async function loadCliAuthorityBrokerTls(metadataPath) {
|
|
|
35
60
|
}
|
|
36
61
|
return JSON.parse(await readFile(identityPath, "utf8"));
|
|
37
62
|
}
|
|
38
|
-
let identity;
|
|
63
|
+
let identity = null;
|
|
64
|
+
let needsRotation = false;
|
|
39
65
|
try {
|
|
40
|
-
|
|
66
|
+
const existing = await readIdentity();
|
|
67
|
+
if (isIdentityReusable(existing)) {
|
|
68
|
+
identity = existing;
|
|
69
|
+
} else {
|
|
70
|
+
needsRotation = true;
|
|
71
|
+
}
|
|
41
72
|
} catch (error) {
|
|
42
73
|
if (error.code !== "ENOENT") throw error;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
notAfterDate: /* @__PURE__ */ new Date("2099-01-01")
|
|
47
|
-
});
|
|
74
|
+
}
|
|
75
|
+
if (!identity) {
|
|
76
|
+
const generated = await generateLocalBrokerIdentity();
|
|
48
77
|
const temporary = join(directory, randomUUID());
|
|
49
|
-
await writeFile(temporary, JSON.stringify(
|
|
78
|
+
await writeFile(temporary, JSON.stringify(generated), { mode: 384, flag: "wx" });
|
|
50
79
|
try {
|
|
51
|
-
|
|
80
|
+
if (needsRotation) {
|
|
81
|
+
await rename(temporary, identityPath);
|
|
82
|
+
} else {
|
|
83
|
+
await link(temporary, identityPath);
|
|
84
|
+
}
|
|
52
85
|
} catch (linkError) {
|
|
53
86
|
if (linkError.code !== "EEXIST") throw linkError;
|
|
54
87
|
} finally {
|
|
55
|
-
await unlink(temporary)
|
|
88
|
+
await unlink(temporary).catch(() => {
|
|
89
|
+
});
|
|
56
90
|
}
|
|
57
91
|
identity = await readIdentity();
|
|
58
92
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// packages/database-engine/compareUtf8Keys.ts
|
|
2
|
+
import { Buffer } from "node:buffer";
|
|
3
|
+
function compareUtf8Keys(a, b) {
|
|
4
|
+
return Buffer.compare(
|
|
5
|
+
typeof a === "string" ? Buffer.from(a, "utf8") : a,
|
|
6
|
+
typeof b === "string" ? Buffer.from(b, "utf8") : b
|
|
7
|
+
);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
compareUtf8Keys
|
|
12
|
+
};
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-PL5RKESU.js";
|
|
7
7
|
import {
|
|
8
8
|
getDefaultCliLocalRuntimeDb
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MI6HRMCK.js";
|
|
10
10
|
import {
|
|
11
11
|
createTokenStatsKey
|
|
12
12
|
} from "./chunk-DLXL4NSL.js";
|
|
@@ -276,7 +276,7 @@ async function runUsageCommand(args, deps) {
|
|
|
276
276
|
const output = deps.output ?? process.stdout;
|
|
277
277
|
const errorOutput = deps.errorOutput ?? process.stderr;
|
|
278
278
|
if (args[0] === "rebuild") {
|
|
279
|
-
const { runUsageRebuildCommand } = await import("./usageRebuildCommand-
|
|
279
|
+
const { runUsageRebuildCommand } = await import("./usageRebuildCommand-XV5QQCHK.js");
|
|
280
280
|
return runUsageRebuildCommand(args.slice(1), deps);
|
|
281
281
|
}
|
|
282
282
|
if (hasFlag(args, "-h") || hasFlag(args, "--help")) {
|
|
@@ -347,7 +347,7 @@ async function runUsageCommand(args, deps) {
|
|
|
347
347
|
return 0;
|
|
348
348
|
}
|
|
349
349
|
async function resolveUsageUserId(env) {
|
|
350
|
-
const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-
|
|
350
|
+
const { resolveLocalUserId } = await import("./cliAgentConfigHelpers-WB2S7PDO.js");
|
|
351
351
|
return resolveLocalUserId(env);
|
|
352
352
|
}
|
|
353
353
|
function isLocalDbMissingError(error) {
|
|
@@ -55,13 +55,10 @@ var BUILTIN_AGENT_CATALOG = [
|
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
id: "01NOLOFEEDBACKA000000000R2",
|
|
58
|
-
//
|
|
59
|
-
//
|
|
60
|
-
// 只豁免这个 key(tableToolHandlers / modelUsageToolHandlers 的
|
|
61
|
-
// 反馈入口白名单)。改成通用 Agent + feedback 技能会让普通用户写反馈报 403,
|
|
62
|
-
// 而给任意通用 Agent 打开跨租户写权限是不可接受的安全降级。
|
|
63
|
-
// 因此 app-builder / agent-creator 转内置 skill 退场,反馈入口继续在架。
|
|
58
|
+
// 已退场:反馈入口已收归「默认 Agent + feedback 技能 + 窄权限 submitFeedback 服务端工具」,
|
|
59
|
+
// 不再依赖跨租户 addTableRow/notifyUser 白名单;保持 builtin 组做历史对话兼容。
|
|
64
60
|
group: "builtin",
|
|
61
|
+
lifecycle: "retired",
|
|
65
62
|
name: "\u53CD\u9988\u5165\u53E3",
|
|
66
63
|
provider: "nolo",
|
|
67
64
|
model: "deepseek-flash"
|