nolo-cli 0.261.0-alpha.2 → 0.262.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-KWURYHY6.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-2U5Q7SNW.js} +135 -131
- package/{agentEmailCommands-FHENHUBF.js → agentEmailCommands-4AWNMWBA.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-EISFUXWT.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-HDLFE4ZJ.js} +127 -126
- package/{agentRun-QVFG3CI4.js → agentRun-EXDLR6OV.js} +137 -136
- package/{agentRunCommand-YV4V5HSL.js → agentRunCommand-5KXVUONI.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-ATJWWHSU.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-LUTSMSIL.js → chunk-23X7C23G.js} +7 -7
- 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-ULPU4C43.js → chunk-36RT7KMI.js} +24 -24
- 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-NJCTPWJU.js → chunk-4X6FTGMU.js} +6 -6
- package/{chunk-2FGFY72B.js → chunk-4ZM3UL4E.js} +14 -14
- package/chunk-526GLZJE.js +275 -0
- package/{chunk-TJXO66M2.js → chunk-5MKPNTJP.js} +5 -5
- package/{chunk-L43DGEPZ.js → chunk-5YI447UL.js} +1 -1
- package/{chunk-U5PSCTMR.js → chunk-6NYQHXMV.js} +13 -13
- package/chunk-6R4IY46J.js +14 -0
- package/{chunk-A4O76A6V.js → chunk-6VQIFSWL.js} +11 -11
- package/{chunk-MMXHIHJZ.js → chunk-7K4J76JQ.js} +20 -20
- package/{chunk-NLS7F5DW.js → chunk-7T54GD3I.js} +22 -22
- package/{chunk-SU4NCTW4.js → chunk-B767MA64.js} +1 -1
- package/{chunk-RNLKWUVY.js → chunk-BAZCS5XG.js} +4 -4
- package/{chunk-NTBTVKKB.js → chunk-BWJLEN6X.js} +7 -7
- package/{chunk-UB7NV7NN.js → chunk-C36L6ZID.js} +1 -1
- 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-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-ERCSHBUD.js → chunk-G2JNJRTO.js} +95 -95
- package/{chunk-CL33RFD7.js → chunk-GH34JXNV.js} +1 -1
- package/{chunk-WY6DMHMG.js → chunk-GWB6AGME.js} +1 -1
- package/{chunk-KALCFXQO.js → chunk-HCXCKCNT.js} +200 -151
- package/{chunk-SWJRX4M5.js → chunk-HI5RS2O4.js} +328 -9
- package/{chunk-J22PFCQN.js → chunk-HRWRIPTB.js} +7 -7
- package/{chunk-VZDSNDUD.js → chunk-HT6MY27X.js} +35 -35
- 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-VC3MAT33.js → chunk-J6Y6ZDS3.js} +195 -151
- 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-Z7EP5HDL.js → chunk-KYHNSSL2.js} +1 -1
- package/chunk-KZO2MTVM.js +140 -0
- package/{chunk-FP46RAJQ.js → chunk-LCCDDHAO.js} +3 -3
- 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-JPYOHIHX.js → chunk-NFE75Q5M.js} +18 -18
- package/{chunk-M7VNNPVX.js → chunk-NGGXRK2P.js} +117 -121
- package/{chunk-D3ONA3FP.js → chunk-NH4PUEWK.js} +2 -2
- package/{chunk-OSZNERNW.js → chunk-NICEA4IW.js} +11 -11
- package/{chunk-SRVLHMES.js → chunk-NLADA5ZM.js} +32 -32
- package/{chunk-IWWJSSST.js → chunk-NTUNHTJV.js} +4 -4
- package/{chunk-XREMPMNK.js → chunk-OKUSDVRS.js} +3 -3
- package/{chunk-63G7JWEA.js → chunk-OQH3TAB7.js} +6 -6
- 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-QZYQ3Y3G.js → chunk-PKDFU6MY.js} +1 -1
- package/{chunk-EQOWWSNQ.js → chunk-PRVXRSDG.js} +13 -13
- package/chunk-PSJJBBWV.js +42 -0
- package/{chunk-3B7OTHDW.js → chunk-Q6FKWH66.js} +14 -14
- package/{chunk-6BBXJGIQ.js → chunk-QUF3LDVD.js} +36 -36
- 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-UJL23HBL.js → chunk-RQKCLVCB.js} +24 -24
- 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-GEC4CHS2.js → chunk-TXLXASSY.js} +5 -5
- package/{chunk-UEZL3RBG.js → chunk-UAO54ORL.js} +37 -36
- 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-P4I55ASV.js → chunk-VLAPKV76.js} +12 -12
- 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-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-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/{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-I2WAEYSQ.js} +131 -131
- package/{contentThunks-G3HEIRXC.js → contentThunks-W4OUEDRF.js} +48 -47
- package/{cooldownCommands-FPAFS7XG.js → cooldownCommands-ZFDAL4MR.js} +1 -1
- package/{createAgentAutomationAction-DSBL3X3A.js → createAgentAutomationAction-VQBQDCAD.js} +50 -49
- package/{createDialogAction-OHFUHC53.js → createDialogAction-YSZU5IE4.js} +49 -48
- package/{createPageAction-E6JZSZLU.js → createPageAction-HLT7DUBR.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-ZFWKDNAP.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-EOZLTLFB.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-G5NLVWCF.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-6U3CWHQZ.js} +95 -93
- package/{hostCredentialCreate-FPUZ7RMI.js → hostCredentialCreate-7Z7JIE57.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-P56DPCU7.js} +32 -31
- package/{localAutomationRuntime-MU5FGJ3V.js → localAutomationRuntime-KPMMJZAU.js} +30 -29
- package/{localDialogRead-W2EVXISA.js → localDialogRead-GWGWSL5K.js} +2 -2
- package/{localRuntimeAdapter-YBXQBV4G.js → localRuntimeAdapter-724CCDG5.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-KLZ73HOC.js} +132 -131
- package/{machineInfo-BJIU3WQ5.js → machineInfo-HNPJHQFU.js} +5 -3
- package/{machineWsRunDispatch-VBKV3FFE.js → machineWsRunDispatch-WFSV66WP.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-NSYL7QZA.js} +20 -20
- 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-63LQ5IOO.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-ECCRLGE5.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-4644DF32.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-EGRXP3Q6.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-X25IU3XJ.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-5WP7TUDJ.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,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"
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import {
|
|
2
|
+
loadCliAuthorityBrokerTls
|
|
3
|
+
} from "./chunk-3BQDF4QB.js";
|
|
4
|
+
import {
|
|
5
|
+
getLogger
|
|
6
|
+
} from "./chunk-EYLGAEB4.js";
|
|
7
|
+
import {
|
|
8
|
+
getHostRuntimeExecutable,
|
|
9
|
+
isCompiledBinary,
|
|
10
|
+
resolveCliEntrypointPath
|
|
11
|
+
} from "./chunk-2AJLG6PY.js";
|
|
12
|
+
import {
|
|
13
|
+
createCliAuthorityBrokerSocketInvoker
|
|
14
|
+
} from "./chunk-LPXBBC32.js";
|
|
15
|
+
|
|
16
|
+
// packages/cli/cliAuthorityBrokerProcess.ts
|
|
17
|
+
import { spawn } from "node:child_process";
|
|
18
|
+
import { dirname, isAbsolute, resolve } from "node:path";
|
|
19
|
+
import { setTimeout as delay } from "node:timers/promises";
|
|
20
|
+
var testOwnedBroker = () => process.env.NOLO_TEST_AUTHORITY_BROKER_LIFETIME === "1";
|
|
21
|
+
function stopOnParentExit(stop) {
|
|
22
|
+
process.stdin.once("end", stop);
|
|
23
|
+
process.stdin.once("error", stop);
|
|
24
|
+
process.stdin.resume();
|
|
25
|
+
}
|
|
26
|
+
function describeFailure(error, depth = 0) {
|
|
27
|
+
if (!(error instanceof Error)) return { message: String(error) };
|
|
28
|
+
const { message, code, ownerPid, cause } = error;
|
|
29
|
+
return {
|
|
30
|
+
message,
|
|
31
|
+
...typeof code === "string" ? { code } : {},
|
|
32
|
+
...typeof ownerPid === "number" ? { ownerPid } : {},
|
|
33
|
+
...cause !== void 0 && depth < 4 ? { cause: describeFailure(cause, depth + 1) } : {}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
async function startCliAuthorityBrokerProcess(options) {
|
|
37
|
+
const child = await launchBroker(options, true);
|
|
38
|
+
child.unref();
|
|
39
|
+
}
|
|
40
|
+
async function launchBroker(options, detached) {
|
|
41
|
+
const { endpoint, dbPath, metadataPath, healthPath } = options;
|
|
42
|
+
if (!dbPath || !metadataPath || !healthPath) throw new Error("Missing authority broker paths");
|
|
43
|
+
const entrypoint = isCompiledBinary() ? [] : [resolveCliEntrypointPath(import.meta.url)];
|
|
44
|
+
const { PATH, HOME, USERPROFILE, LOCALAPPDATA, SystemRoot, TMPDIR, TEMP, TMP } = process.env;
|
|
45
|
+
const testOwned = testOwnedBroker();
|
|
46
|
+
const child = spawn(getHostRuntimeExecutable(), [
|
|
47
|
+
...entrypoint,
|
|
48
|
+
detached ? "__authority-broker-supervise" : "__authority-broker",
|
|
49
|
+
endpoint,
|
|
50
|
+
resolve(dbPath),
|
|
51
|
+
resolve(metadataPath),
|
|
52
|
+
resolve(healthPath),
|
|
53
|
+
...detached ? [] : [String(process.pid)]
|
|
54
|
+
], {
|
|
55
|
+
detached,
|
|
56
|
+
windowsHide: true,
|
|
57
|
+
// Only tests hold a lifetime pipe. Production deliberately outlives its launcher.
|
|
58
|
+
stdio: [testOwned ? "pipe" : "ignore", "pipe", "ignore"],
|
|
59
|
+
env: {
|
|
60
|
+
PATH,
|
|
61
|
+
HOME,
|
|
62
|
+
USERPROFILE,
|
|
63
|
+
LOCALAPPDATA,
|
|
64
|
+
SystemRoot,
|
|
65
|
+
TMPDIR,
|
|
66
|
+
TEMP,
|
|
67
|
+
TMP,
|
|
68
|
+
NOLO_HOME: dirname(dirname(resolve(dbPath))),
|
|
69
|
+
...testOwned ? { NOLO_TEST_AUTHORITY_BROKER_LIFETIME: "1" } : {}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
child.stdin?.on("error", () => {
|
|
73
|
+
});
|
|
74
|
+
const output = child.stdout;
|
|
75
|
+
try {
|
|
76
|
+
await new Promise((resolve2, reject) => {
|
|
77
|
+
let response = "";
|
|
78
|
+
const timer = setTimeout(() => reject(new Error(`Authority broker startup timed out at ${endpoint}`)), 3e4);
|
|
79
|
+
const done = (error) => {
|
|
80
|
+
clearTimeout(timer);
|
|
81
|
+
if (error) reject(error);
|
|
82
|
+
else resolve2();
|
|
83
|
+
};
|
|
84
|
+
child.once("error", done);
|
|
85
|
+
child.once("exit", (_code, signal) => {
|
|
86
|
+
if (signal) done(new Error(`Authority broker exited during startup (${signal})`));
|
|
87
|
+
});
|
|
88
|
+
output.once("error", done);
|
|
89
|
+
output.once("end", () => done(new Error("Authority broker exited before reporting readiness")));
|
|
90
|
+
output.setEncoding("utf8");
|
|
91
|
+
output.on("data", (chunk) => {
|
|
92
|
+
response += chunk;
|
|
93
|
+
if (response.length > 64 * 1024) return done(new Error("Oversized authority broker startup response"));
|
|
94
|
+
const newline = response.indexOf("\n");
|
|
95
|
+
if (newline < 0) return;
|
|
96
|
+
try {
|
|
97
|
+
const result = JSON.parse(response.slice(0, newline));
|
|
98
|
+
if (result.ok === true) done();
|
|
99
|
+
else if (result.error) done(Object.assign(new Error(result.error.message), result.error));
|
|
100
|
+
else done(new Error("Invalid authority broker startup response"));
|
|
101
|
+
} catch {
|
|
102
|
+
done(new Error("Invalid authority broker startup response"));
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
return child;
|
|
107
|
+
} catch (error) {
|
|
108
|
+
child.stdin?.end();
|
|
109
|
+
child.unref();
|
|
110
|
+
throw error;
|
|
111
|
+
} finally {
|
|
112
|
+
output.destroy();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
async function superviseCliAuthorityBrokerProcess(args) {
|
|
116
|
+
const [endpoint, dbPath, metadataPath, healthPath] = args;
|
|
117
|
+
const options = { endpoint: endpoint ?? "", dbPath, metadataPath, healthPath };
|
|
118
|
+
const logger = getLogger("cli.authorityBroker");
|
|
119
|
+
const stop = new AbortController();
|
|
120
|
+
const requestStop = () => stop.abort();
|
|
121
|
+
process.once("SIGTERM", requestStop);
|
|
122
|
+
process.once("SIGINT", requestStop);
|
|
123
|
+
if (testOwnedBroker()) stopOnParentExit(requestStop);
|
|
124
|
+
process.stdout.on("error", () => {
|
|
125
|
+
});
|
|
126
|
+
let ready = false;
|
|
127
|
+
try {
|
|
128
|
+
if (!metadataPath) throw new Error("Missing authority broker metadata path");
|
|
129
|
+
const tls = await loadCliAuthorityBrokerTls(metadataPath);
|
|
130
|
+
while (!stop.signal.aborted) {
|
|
131
|
+
const child = await launchBroker(options, false);
|
|
132
|
+
logger.info("Authority broker worker ready", { endpoint, workerPid: child.pid, supervisorPid: process.pid });
|
|
133
|
+
if (!ready) {
|
|
134
|
+
process.stdout.write('{"ok":true}\n');
|
|
135
|
+
ready = true;
|
|
136
|
+
}
|
|
137
|
+
const workerExit = new AbortController();
|
|
138
|
+
const exited = child.exitCode !== null || child.signalCode !== null ? Promise.resolve(workerExit.abort()) : new Promise((resolve2) => child.once("exit", () => {
|
|
139
|
+
workerExit.abort();
|
|
140
|
+
resolve2();
|
|
141
|
+
}));
|
|
142
|
+
const workerRunning = AbortSignal.any([workerExit.signal, stop.signal]);
|
|
143
|
+
const invoke = createCliAuthorityBrokerSocketInvoker({ endpoint: options.endpoint, timeoutMs: 2e3, tls });
|
|
144
|
+
let failures = 0;
|
|
145
|
+
while (!workerRunning.aborted && failures < 3) {
|
|
146
|
+
await delay(5e3, void 0, { signal: workerRunning }).catch(() => {
|
|
147
|
+
});
|
|
148
|
+
if (workerRunning.aborted) break;
|
|
149
|
+
try {
|
|
150
|
+
const health = await invoke({ type: "get", key: "cli-authority-broker-health" });
|
|
151
|
+
failures = health.ok && health.result.type === "get" ? 0 : failures + 1;
|
|
152
|
+
} catch (error) {
|
|
153
|
+
failures += 1;
|
|
154
|
+
logger.warn("Authority broker storage probe failed", error, { endpoint, workerPid: child.pid, failures });
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
invoke.close?.();
|
|
158
|
+
if (child.exitCode === null && child.signalCode === null) {
|
|
159
|
+
if (!stop.signal.aborted) logger.warn("Restarting unresponsive authority broker worker", { endpoint, workerPid: child.pid });
|
|
160
|
+
if (child.stdin) child.stdin.end();
|
|
161
|
+
else child.kill("SIGTERM");
|
|
162
|
+
const killed = await Promise.race([exited.then(() => true), delay(5e3, false, { ref: false })]);
|
|
163
|
+
if (!killed) {
|
|
164
|
+
child.kill("SIGKILL");
|
|
165
|
+
await exited;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
if (!stop.signal.aborted) await delay(1e3);
|
|
169
|
+
}
|
|
170
|
+
} catch (error) {
|
|
171
|
+
process.exitCode = 1;
|
|
172
|
+
const failure = JSON.stringify({ ok: false, error: describeFailure(error) });
|
|
173
|
+
if (!ready) process.stdout.write(`${failure}
|
|
174
|
+
`);
|
|
175
|
+
logger.error("Authority broker supervisor stopped", error, { endpoint, ready });
|
|
176
|
+
} finally {
|
|
177
|
+
process.off("SIGTERM", requestStop);
|
|
178
|
+
process.off("SIGINT", requestStop);
|
|
179
|
+
if (testOwnedBroker()) process.stdin.destroy();
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
async function runCliAuthorityBrokerProcess(args) {
|
|
183
|
+
const [endpoint, dbPath, metadataPath, healthPath, supervisor] = args;
|
|
184
|
+
process.stdout.on("error", () => {
|
|
185
|
+
});
|
|
186
|
+
try {
|
|
187
|
+
if (args.length !== 4 && args.length !== 5 || ![dbPath, metadataPath, healthPath].every(isAbsolute)) {
|
|
188
|
+
throw new Error("Expected authority broker endpoint and absolute database, metadata and health paths");
|
|
189
|
+
}
|
|
190
|
+
if (!/^tcp:\/\/127\.0\.0\.1:[0-9]+$/.test(endpoint)) {
|
|
191
|
+
throw new Error("Authority broker must listen on IPv4 loopback");
|
|
192
|
+
}
|
|
193
|
+
const [{ getOrCreateCliAuthorityBrokerServer }, { createLevelAuthorityStore }] = await Promise.all([
|
|
194
|
+
import("./cliAuthorityBrokerServer-27C5YBYP.js"),
|
|
195
|
+
import("./levelAuthorityStore-L5SVDM5O.js")
|
|
196
|
+
]);
|
|
197
|
+
const broker = await getOrCreateCliAuthorityBrokerServer({
|
|
198
|
+
endpoint,
|
|
199
|
+
dbPath,
|
|
200
|
+
metadataPath,
|
|
201
|
+
healthPath,
|
|
202
|
+
keepProcessAlive: true,
|
|
203
|
+
tls: await loadCliAuthorityBrokerTls(metadataPath),
|
|
204
|
+
...supervisor === String(process.ppid) ? { supervisorPid: process.ppid } : {},
|
|
205
|
+
createStore: () => createLevelAuthorityStore(dbPath)
|
|
206
|
+
});
|
|
207
|
+
const close = () => {
|
|
208
|
+
if (testOwnedBroker()) process.stdin.destroy();
|
|
209
|
+
void broker.close().catch((error) => {
|
|
210
|
+
getLogger("cli.authorityBroker").error("Authority broker worker shutdown failed", error);
|
|
211
|
+
process.exit(1);
|
|
212
|
+
});
|
|
213
|
+
};
|
|
214
|
+
process.once("SIGTERM", close);
|
|
215
|
+
process.once("SIGINT", close);
|
|
216
|
+
if (testOwnedBroker()) stopOnParentExit(close);
|
|
217
|
+
process.stdout.write('{"ok":true}\n');
|
|
218
|
+
} catch (error) {
|
|
219
|
+
process.exitCode = 1;
|
|
220
|
+
process.stdout.write(`${JSON.stringify({ ok: false, error: describeFailure(error) })}
|
|
221
|
+
`);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export {
|
|
226
|
+
startCliAuthorityBrokerProcess,
|
|
227
|
+
superviseCliAuthorityBrokerProcess,
|
|
228
|
+
runCliAuthorityBrokerProcess
|
|
229
|
+
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toolRegistry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HCXCKCNT.js";
|
|
4
4
|
import {
|
|
5
5
|
INLINE_IMAGE_MAX_BYTES,
|
|
6
6
|
INLINE_IMAGE_TOTAL_MAX_BYTES,
|
|
7
7
|
runtime_default
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NGGXRK2P.js";
|
|
9
9
|
import {
|
|
10
10
|
canonicalizeToolNames
|
|
11
11
|
} from "./chunk-HJTI7RZV.js";
|
|
12
12
|
import {
|
|
13
13
|
isRecord
|
|
14
14
|
} from "./chunk-KUG52IAP.js";
|
|
15
|
-
import {
|
|
16
|
-
API_ENDPOINTS,
|
|
17
|
-
NOLO_CLUSTER_SERVERS
|
|
18
|
-
} from "./chunk-JKVOKKMQ.js";
|
|
19
15
|
import {
|
|
20
16
|
isNoloHostedProvider
|
|
21
17
|
} from "./chunk-G22P2J7O.js";
|
|
22
18
|
import {
|
|
23
19
|
asTrimmedLowercaseString
|
|
24
20
|
} from "./chunk-QSJ3HFEF.js";
|
|
21
|
+
import {
|
|
22
|
+
API_ENDPOINTS,
|
|
23
|
+
NOLO_CLUSTER_SERVERS
|
|
24
|
+
} from "./chunk-JKVOKKMQ.js";
|
|
25
25
|
|
|
26
26
|
// packages/ai/chat/inlineImageUrlsForCustomProvider.ts
|
|
27
27
|
var FILE_CONTENT_PATH = `${API_ENDPOINTS.DATABASE}/file/content/`;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BIGMODEL_PROVIDER_TARGET,
|
|
3
|
+
buildCredentialUseGrant,
|
|
4
|
+
verifyCredentialUseGrant
|
|
5
|
+
} from "./chunk-XFYFMTOM.js";
|
|
1
6
|
import {
|
|
2
7
|
refreshSubscriptionQuotas
|
|
3
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5YI447UL.js";
|
|
4
9
|
import {
|
|
5
10
|
getReadableCliDb
|
|
6
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LRLLWD4P.js";
|
|
7
12
|
import {
|
|
8
13
|
clearCliLocalRuntimePreparedAgentCache
|
|
9
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-J6Y6ZDS3.js";
|
|
10
15
|
import {
|
|
11
16
|
readCredentialAvailability
|
|
12
17
|
} from "./chunk-GIXWVN2W.js";
|
|
13
|
-
import {
|
|
14
|
-
BIGMODEL_PROVIDER_TARGET,
|
|
15
|
-
buildCredentialUseGrant,
|
|
16
|
-
verifyCredentialUseGrant
|
|
17
|
-
} from "./chunk-XFYFMTOM.js";
|
|
18
18
|
import {
|
|
19
19
|
buildCreatedAgentRecord,
|
|
20
20
|
buildUpdatedAgentRecord,
|
|
@@ -25,17 +25,17 @@ import {
|
|
|
25
25
|
resolveAgentRecordFromHybridStore,
|
|
26
26
|
sanitizeAgentRecordForCliOutput,
|
|
27
27
|
writeAgentRecord
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import {
|
|
30
|
-
toErrorMessage
|
|
31
|
-
} from "./chunk-HNMXYYJR.js";
|
|
28
|
+
} from "./chunk-7K4J76JQ.js";
|
|
32
29
|
import {
|
|
33
30
|
resolveCliAgentKeyInput
|
|
34
31
|
} from "./chunk-BR3GT6MR.js";
|
|
32
|
+
import {
|
|
33
|
+
toErrorMessage
|
|
34
|
+
} from "./chunk-HNMXYYJR.js";
|
|
35
35
|
import {
|
|
36
36
|
parseUserIdFromAuthToken,
|
|
37
37
|
resolveAuthToken
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-2AJLG6PY.js";
|
|
39
39
|
|
|
40
40
|
// packages/cli/agentRecordCommands.ts
|
|
41
41
|
async function runAgentReadCommand(args, deps = {}) {
|
|
@@ -256,7 +256,7 @@ async function runAgentCreateCommand(args, deps = {}) {
|
|
|
256
256
|
let verifyResult;
|
|
257
257
|
if (parsed.verify) {
|
|
258
258
|
try {
|
|
259
|
-
const { verifyCustomProvider } = await import("./agentProviderCommands-
|
|
259
|
+
const { verifyCustomProvider } = await import("./agentProviderCommands-2W3VXDLV.js");
|
|
260
260
|
const rec = built.nextRecord;
|
|
261
261
|
const verifyCredentialRef = typeof rec.credentialRef === "string" && rec.credentialRef.trim() ? rec.credentialRef.trim() : "";
|
|
262
262
|
if (verifyCredentialRef) {
|