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
package/chunk-PPJYZRSQ.js
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
// packages/cli/tui/ciStatus.ts
|
|
2
|
-
import { execFile } from "node:child_process";
|
|
3
|
-
var DEFAULT_SSH_HOST = "root@62.83.99.45";
|
|
4
|
-
var DEFAULT_CI_PORT = "3900";
|
|
5
|
-
function resolveCiSshTarget(env = process.env) {
|
|
6
|
-
const override = env.NOLO_CI_SSH_HOST?.trim();
|
|
7
|
-
if (override) return override;
|
|
8
|
-
const raw = env.NOLO_CI_RAW_HOST?.trim() ?? env.NOLO_ALPHA_RAW_HOST?.trim();
|
|
9
|
-
if (raw) return `${env.NOLO_CI_SSH_USER?.trim() ?? env.NOLO_ALPHA_SSH_USER?.trim() ?? "nolotus"}@${raw}`;
|
|
10
|
-
return env.NOLO_ALPHA_SSH_CONFIG_HOST?.trim() || DEFAULT_SSH_HOST;
|
|
11
|
-
}
|
|
12
|
-
function resolveCiPort(env = process.env) {
|
|
13
|
-
const raw = env.NOLO_CI_PORT?.trim() ?? "";
|
|
14
|
-
return /^\d{1,5}$/.test(raw) && Number(raw) > 0 && Number(raw) <= 65535 ? raw : DEFAULT_CI_PORT;
|
|
15
|
-
}
|
|
16
|
-
function compactStatusBeforeTransport(command) {
|
|
17
|
-
const projection = 'import json,sys; d=json.load(sys.stdin); jobs=d.get("jobs",[d]); [j.get("source",{}).pop("push",None) for j in jobs]; print(json.dumps(d,separators=(",",":")))';
|
|
18
|
-
return `${command} | python3 -c '${projection}'`;
|
|
19
|
-
}
|
|
20
|
-
function buildCiStatusCommand(limit, env = process.env) {
|
|
21
|
-
const safeLimit = Math.max(1, Math.min(20, Math.trunc(limit) || 5));
|
|
22
|
-
return compactStatusBeforeTransport(`curl -s -m 3 "http://127.0.0.1:${resolveCiPort(env)}/status?limit=${safeLimit}"`);
|
|
23
|
-
}
|
|
24
|
-
function resolveSshTarget() {
|
|
25
|
-
return resolveCiSshTarget();
|
|
26
|
-
}
|
|
27
|
-
function asRecord(value) {
|
|
28
|
-
return typeof value === "object" && value !== null ? value : void 0;
|
|
29
|
-
}
|
|
30
|
-
function asString(value) {
|
|
31
|
-
return typeof value === "string" && value.trim() ? value.trim() : void 0;
|
|
32
|
-
}
|
|
33
|
-
function extractFailedPhase(raw) {
|
|
34
|
-
if (!Array.isArray(raw)) return void 0;
|
|
35
|
-
for (const entry of raw) {
|
|
36
|
-
const timing = asRecord(entry);
|
|
37
|
-
if (!timing) continue;
|
|
38
|
-
const status = timing.status;
|
|
39
|
-
const phase = asString(timing.phase);
|
|
40
|
-
if (phase && typeof status === "number" && status !== 0) return phase;
|
|
41
|
-
}
|
|
42
|
-
return void 0;
|
|
43
|
-
}
|
|
44
|
-
function toCiJob(value) {
|
|
45
|
-
const record = asRecord(value);
|
|
46
|
-
if (!record) return void 0;
|
|
47
|
-
const jobId = asString(record.jobId);
|
|
48
|
-
const status = asString(record.status);
|
|
49
|
-
if (!jobId || !status) return void 0;
|
|
50
|
-
const durationMs = typeof record.durationMs === "number" ? record.durationMs : void 0;
|
|
51
|
-
return {
|
|
52
|
-
jobId,
|
|
53
|
-
kind: asString(record.kind) ?? "unknown",
|
|
54
|
-
status,
|
|
55
|
-
shortSha: asString(record.shortSha) ?? asString(record.sha) ?? "",
|
|
56
|
-
startedAt: asString(record.startedAt),
|
|
57
|
-
durationMs,
|
|
58
|
-
failedPhase: extractFailedPhase(record.phaseTimings)
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
function parseCiStatusPayload(raw) {
|
|
62
|
-
let parsed;
|
|
63
|
-
try {
|
|
64
|
-
parsed = JSON.parse(raw);
|
|
65
|
-
} catch {
|
|
66
|
-
return void 0;
|
|
67
|
-
}
|
|
68
|
-
const root = asRecord(parsed);
|
|
69
|
-
if (!root) return void 0;
|
|
70
|
-
const jobs = root.jobs;
|
|
71
|
-
if (Array.isArray(jobs)) {
|
|
72
|
-
return jobs.map(toCiJob).filter((job) => job !== void 0);
|
|
73
|
-
}
|
|
74
|
-
const single = toCiJob(parsed);
|
|
75
|
-
return single ? [single] : void 0;
|
|
76
|
-
}
|
|
77
|
-
function buildRemoteCommand(limit) {
|
|
78
|
-
return buildCiStatusCommand(limit);
|
|
79
|
-
}
|
|
80
|
-
function fetchCiStatus(limit = 5, timeoutMs = 4e3, signal) {
|
|
81
|
-
return fetchCiPayload(buildRemoteCommand(limit), parseCiStatusPayload, timeoutMs, resolveSshTarget(), signal);
|
|
82
|
-
}
|
|
83
|
-
function fetchCiPayload(command, parse, timeoutMs, sshTarget, signal, execFileImpl = execFile) {
|
|
84
|
-
return new Promise((resolve) => {
|
|
85
|
-
let settled = false;
|
|
86
|
-
let guard;
|
|
87
|
-
const finish = (value) => {
|
|
88
|
-
if (settled) return;
|
|
89
|
-
settled = true;
|
|
90
|
-
if (guard) clearTimeout(guard);
|
|
91
|
-
signal?.removeEventListener("abort", onAbort);
|
|
92
|
-
resolve(value);
|
|
93
|
-
};
|
|
94
|
-
const onAbort = () => finish(void 0);
|
|
95
|
-
if (signal?.aborted) {
|
|
96
|
-
finish(void 0);
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
signal?.addEventListener("abort", onAbort, { once: true });
|
|
100
|
-
guard = setTimeout(() => finish(void 0), timeoutMs + 500);
|
|
101
|
-
guard.unref?.();
|
|
102
|
-
try {
|
|
103
|
-
execFileImpl(
|
|
104
|
-
"ssh",
|
|
105
|
-
["-o", "BatchMode=yes", "-o", `ConnectTimeout=3`, sshTarget, command],
|
|
106
|
-
{ timeout: timeoutMs, signal, encoding: "utf8", maxBuffer: 1024 * 1024 },
|
|
107
|
-
(error, stdout) => {
|
|
108
|
-
if (error) {
|
|
109
|
-
finish(void 0);
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
try {
|
|
113
|
-
finish(parse(stdout ?? ""));
|
|
114
|
-
} catch {
|
|
115
|
-
finish(void 0);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
} catch {
|
|
120
|
-
finish(void 0);
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
function summarizeLatest(jobs) {
|
|
125
|
-
const latest = jobs?.[0];
|
|
126
|
-
if (!latest) return void 0;
|
|
127
|
-
const sha = latest.shortSha ? latest.shortSha.slice(0, 7) : "???????";
|
|
128
|
-
if (latest.status === "running") return `ci:${sha} \u2026`;
|
|
129
|
-
if (latest.status === "succeeded") return `ci:${sha} \u2713`;
|
|
130
|
-
if (latest.status === "failed" || latest.status === "orphaned") {
|
|
131
|
-
return `ci:${sha} \u2717${latest.failedPhase ? ` ${latest.failedPhase}` : ""}`;
|
|
132
|
-
}
|
|
133
|
-
return `ci:${sha} ${latest.status}`;
|
|
134
|
-
}
|
|
135
|
-
function buildCancelCommand(jobId) {
|
|
136
|
-
const port = resolveCiPort();
|
|
137
|
-
const body = JSON.stringify({ jobId }).replace(/'/g, "'\\''");
|
|
138
|
-
const endpoint = `http://127.0.0.1:${port}/cancel`;
|
|
139
|
-
const tokenRef = `$(grep -m1 '^NOLO_CI_ADMIN_TOKEN=' "$HOME/.config/nolo-ci.env" 2>/dev/null | cut -d= -f2-)`;
|
|
140
|
-
return `curl -s -m 110 -H "Authorization: Bearer ${tokenRef}" -H 'Content-Type: application/json' -X POST --data '${body}' "${endpoint}"`;
|
|
141
|
-
}
|
|
142
|
-
function fetchCiCancel(jobId, timeoutMs = 12e4, execFileImpl = execFile) {
|
|
143
|
-
return fetchCiPayload(
|
|
144
|
-
buildCancelCommand(jobId),
|
|
145
|
-
(stdout) => {
|
|
146
|
-
const response = JSON.parse(stdout);
|
|
147
|
-
return response?.ok === true && response?.cancelled === true && response?.jobId === jobId ? true : false;
|
|
148
|
-
},
|
|
149
|
-
timeoutMs,
|
|
150
|
-
resolveSshTarget(),
|
|
151
|
-
void 0,
|
|
152
|
-
execFileImpl
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export {
|
|
157
|
-
fetchCiStatus,
|
|
158
|
-
summarizeLatest,
|
|
159
|
-
fetchCiCancel
|
|
160
|
-
};
|
package/chunk-TUSTONB3.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolveAuthToken,
|
|
3
|
-
resolveServerUrl
|
|
4
|
-
} from "./chunk-BIDSIRTS.js";
|
|
5
|
-
|
|
6
|
-
// packages/cli/subscriptionQuotaRefresh.ts
|
|
7
|
-
var CATALOG_QUOTA_REFRESH_TIMEOUT_MS = 2e3;
|
|
8
|
-
var CATALOG_QUOTA_STALE_MS = 6e4;
|
|
9
|
-
var EMPTY_REFRESH_BACKOFF_MS = 5 * 6e4;
|
|
10
|
-
var lastRefreshEmptyAt = 0;
|
|
11
|
-
function quotaIsFresh(entry, now) {
|
|
12
|
-
const observedAt = entry.quota?.observedAt;
|
|
13
|
-
return typeof observedAt === "number" && Number.isFinite(observedAt) && now - observedAt < CATALOG_QUOTA_STALE_MS;
|
|
14
|
-
}
|
|
15
|
-
async function refreshSubscriptionQuotas(args) {
|
|
16
|
-
const fresh = {};
|
|
17
|
-
try {
|
|
18
|
-
const now = Date.now();
|
|
19
|
-
const needsRefresh = args.entries.some(
|
|
20
|
-
(entry) => entry.probeable !== false && (!args.onlyKeys || args.onlyKeys.includes(entry.key)) && !quotaIsFresh(entry, now)
|
|
21
|
-
);
|
|
22
|
-
if (!needsRefresh) return fresh;
|
|
23
|
-
const wholeBatch = !args.onlyKeys || args.onlyKeys.length === 0;
|
|
24
|
-
if (wholeBatch && lastRefreshEmptyAt && now - lastRefreshEmptyAt < EMPTY_REFRESH_BACKOFF_MS) {
|
|
25
|
-
return fresh;
|
|
26
|
-
}
|
|
27
|
-
const env = args.env ?? process.env;
|
|
28
|
-
const authToken = resolveAuthToken(args.cliArgs ?? [], env);
|
|
29
|
-
if (!authToken) return fresh;
|
|
30
|
-
const fetchImpl = args.fetchImpl ?? fetch;
|
|
31
|
-
const refreshPromise = (async () => {
|
|
32
|
-
const res = await fetchImpl(
|
|
33
|
-
`${resolveServerUrl(args.cliArgs ?? [], env)}/api/agents/quota/refresh`,
|
|
34
|
-
{
|
|
35
|
-
method: "POST",
|
|
36
|
-
headers: {
|
|
37
|
-
"Content-Type": "application/json",
|
|
38
|
-
Authorization: `Bearer ${authToken}`
|
|
39
|
-
},
|
|
40
|
-
body: JSON.stringify(
|
|
41
|
-
args.onlyKeys && args.onlyKeys.length > 0 ? { agentKeys: args.onlyKeys } : {}
|
|
42
|
-
),
|
|
43
|
-
signal: AbortSignal.timeout(CATALOG_QUOTA_REFRESH_TIMEOUT_MS)
|
|
44
|
-
}
|
|
45
|
-
);
|
|
46
|
-
if (!res.ok) return;
|
|
47
|
-
const payload = await res.json().catch(() => null);
|
|
48
|
-
const quotas = payload?.quotas;
|
|
49
|
-
if (!quotas || typeof quotas !== "object") return;
|
|
50
|
-
const probed = typeof payload?.probed === "number" ? payload.probed : 0;
|
|
51
|
-
if (probed === 0 && Object.keys(quotas).length === 0) {
|
|
52
|
-
if (wholeBatch) lastRefreshEmptyAt = Date.now();
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
if (wholeBatch) lastRefreshEmptyAt = 0;
|
|
56
|
-
for (const entry of args.entries) {
|
|
57
|
-
const quota = quotas[entry.key];
|
|
58
|
-
if (quota && Array.isArray(quota.windows)) {
|
|
59
|
-
fresh[entry.key] = quota;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
})();
|
|
63
|
-
let timer;
|
|
64
|
-
await Promise.race([
|
|
65
|
-
refreshPromise,
|
|
66
|
-
new Promise((resolve) => {
|
|
67
|
-
timer = setTimeout(resolve, CATALOG_QUOTA_REFRESH_TIMEOUT_MS);
|
|
68
|
-
})
|
|
69
|
-
]).catch(() => {
|
|
70
|
-
});
|
|
71
|
-
if (timer) clearTimeout(timer);
|
|
72
|
-
refreshPromise.catch(() => {
|
|
73
|
-
});
|
|
74
|
-
} catch {
|
|
75
|
-
}
|
|
76
|
-
return fresh;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export {
|
|
80
|
-
refreshSubscriptionQuotas
|
|
81
|
-
};
|
package/chunk-ZXF6D3I6.js
DELETED
|
@@ -1,359 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DEFAULT_AGENT_BASE_POLICY,
|
|
3
|
-
DEFAULT_USER_PREFERENCE_PROFILE,
|
|
4
|
-
isAccountOnDemandWorkflowSkill,
|
|
5
|
-
resolveUserEnabledSkills
|
|
6
|
-
} from "./chunk-RBPUNSG5.js";
|
|
7
|
-
import {
|
|
8
|
-
collectAgentSkillConfigIssues,
|
|
9
|
-
describeAgentSkillModeValue,
|
|
10
|
-
isAgentSkillDisabled,
|
|
11
|
-
resolveAgentSkillConfig
|
|
12
|
-
} from "./chunk-FJSNBZXR.js";
|
|
13
|
-
import {
|
|
14
|
-
resolveBuiltinSkillEntry,
|
|
15
|
-
resolveBuiltinSkillPage,
|
|
16
|
-
resolveSkillGraphFromRoots
|
|
17
|
-
} from "./chunk-G7IUT2V3.js";
|
|
18
|
-
import {
|
|
19
|
-
parseSkillDocProtocol
|
|
20
|
-
} from "./chunk-W6RFEDN4.js";
|
|
21
|
-
|
|
22
|
-
// packages/ai/skills/agentSkillPreferenceDiagnostics.ts
|
|
23
|
-
var hasOwn = (value, key) => Object.prototype.hasOwnProperty.call(value, key);
|
|
24
|
-
var resolveAgentSkillPreferenceSource = (preferences) => {
|
|
25
|
-
if (!preferences || typeof preferences !== "object") {
|
|
26
|
-
return { source: "empty", field: null };
|
|
27
|
-
}
|
|
28
|
-
if (hasOwn(preferences, "enabledSkills")) {
|
|
29
|
-
return { source: "settings-record", field: "enabledSkills" };
|
|
30
|
-
}
|
|
31
|
-
if (hasOwn(preferences, "enabledPromptSkills")) {
|
|
32
|
-
return { source: "legacy-field", field: "enabledPromptSkills" };
|
|
33
|
-
}
|
|
34
|
-
return { source: "empty", field: null };
|
|
35
|
-
};
|
|
36
|
-
var buildAgentSkillPreferenceDiagnostic = (input) => {
|
|
37
|
-
const { source, field } = resolveAgentSkillPreferenceSource(input.preferences);
|
|
38
|
-
const config = resolveAgentSkillConfig(input.agentConfig);
|
|
39
|
-
const agentSkillModes = {};
|
|
40
|
-
for (const slug of Object.keys(config).sort()) {
|
|
41
|
-
agentSkillModes[slug] = config[slug];
|
|
42
|
-
}
|
|
43
|
-
const discardedSkills = collectAgentSkillConfigIssues(input.agentConfig).map(
|
|
44
|
-
(issue) => ({
|
|
45
|
-
slug: issue.slug,
|
|
46
|
-
value: describeAgentSkillModeValue(issue.value),
|
|
47
|
-
reason: issue.reason
|
|
48
|
-
})
|
|
49
|
-
);
|
|
50
|
-
return {
|
|
51
|
-
event: "agent_skill_preference_resolved",
|
|
52
|
-
preferenceSource: source,
|
|
53
|
-
preferenceField: field,
|
|
54
|
-
enabledSkills: [...input.enabledSkills],
|
|
55
|
-
enabledSkillCount: input.enabledSkills.length,
|
|
56
|
-
agentSkillModes,
|
|
57
|
-
agentSkillCount: Object.keys(agentSkillModes).length,
|
|
58
|
-
discardedSkills,
|
|
59
|
-
discardedSkillCount: discardedSkills.length
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
var DIAGNOSTIC_PREFIX = "[nolo.skill.diagnostics] ";
|
|
63
|
-
var seenSignatures = /* @__PURE__ */ new Set();
|
|
64
|
-
function skillDiagnosticsEnabled(env = typeof process === "undefined" ? {} : process.env ?? {}) {
|
|
65
|
-
const flag = env.NOLO_SKILL_DIAGNOSTICS?.trim();
|
|
66
|
-
return flag === "1" || flag === "true";
|
|
67
|
-
}
|
|
68
|
-
var reportAgentSkillPreferenceDiagnostic = (diagnostic, sink) => {
|
|
69
|
-
if (!sink && !skillDiagnosticsEnabled()) return false;
|
|
70
|
-
const stderr = typeof process === "undefined" ? void 0 : process.stderr;
|
|
71
|
-
const write = sink ?? (typeof stderr?.write === "function" ? (line) => {
|
|
72
|
-
stderr.write(line);
|
|
73
|
-
} : void 0);
|
|
74
|
-
if (!write) return false;
|
|
75
|
-
const signature = JSON.stringify(diagnostic);
|
|
76
|
-
if (seenSignatures.has(signature)) return false;
|
|
77
|
-
seenSignatures.add(signature);
|
|
78
|
-
write(`${DIAGNOSTIC_PREFIX}${signature}
|
|
79
|
-
`);
|
|
80
|
-
return true;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
// packages/ai/skills/userSkillRuntime.ts
|
|
84
|
-
async function resolveUserSkillRuntime(agentConfig, preferences) {
|
|
85
|
-
const effectiveConfig = agentConfig && typeof agentConfig === "object" ? "rawRecord" in agentConfig && agentConfig.rawRecord && typeof agentConfig.rawRecord === "object" ? agentConfig.rawRecord : agentConfig : null;
|
|
86
|
-
const disabledSlugs = /* @__PURE__ */ new Set();
|
|
87
|
-
const requiredSlugs = /* @__PURE__ */ new Set();
|
|
88
|
-
for (const [identifier, mode] of Object.entries(resolveAgentSkillConfig(effectiveConfig))) {
|
|
89
|
-
const entry = resolveBuiltinSkillEntry(identifier);
|
|
90
|
-
if (!entry) continue;
|
|
91
|
-
if (mode === "disabled") disabledSlugs.add(entry.slug);
|
|
92
|
-
if (mode === "required") requiredSlugs.add(entry.slug);
|
|
93
|
-
}
|
|
94
|
-
const enabledSkills = resolveUserEnabledSkills(preferences);
|
|
95
|
-
reportAgentSkillPreferenceDiagnostic(
|
|
96
|
-
buildAgentSkillPreferenceDiagnostic({
|
|
97
|
-
agentConfig: effectiveConfig,
|
|
98
|
-
preferences,
|
|
99
|
-
enabledSkills
|
|
100
|
-
})
|
|
101
|
-
);
|
|
102
|
-
const graph = await resolveSkillGraphFromRoots({
|
|
103
|
-
roots: enabledSkills.map((identifier) => ({
|
|
104
|
-
identifier,
|
|
105
|
-
mode: isAccountOnDemandWorkflowSkill(identifier) && !requiredSlugs.has(identifier) ? "recommended" : "required"
|
|
106
|
-
})),
|
|
107
|
-
loadPage: async (identifier) => {
|
|
108
|
-
const entry = resolveBuiltinSkillEntry(identifier);
|
|
109
|
-
return entry ? resolveBuiltinSkillPage(entry.skillId) : null;
|
|
110
|
-
},
|
|
111
|
-
strictRequiredDependencies: true,
|
|
112
|
-
admitSkill: (page, canonicalIdentifier) => {
|
|
113
|
-
const entry = resolveBuiltinSkillEntry(canonicalIdentifier) ?? resolveBuiltinSkillEntry(page?.dbKey);
|
|
114
|
-
return !!entry && !disabledSlugs.has(entry.slug) && !isAgentSkillDisabled(effectiveConfig, entry.slug);
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
const admittedKeys = new Set(graph.visits.map((visit) => visit.dbKey));
|
|
118
|
-
const contentByKey = new Map(
|
|
119
|
-
[...graph.contentByKey].filter(([, page]) => page?.dbKey && admittedKeys.has(page.dbKey))
|
|
120
|
-
);
|
|
121
|
-
const skillPromptPatches = /* @__PURE__ */ new Set();
|
|
122
|
-
const seen = /* @__PURE__ */ new Set();
|
|
123
|
-
for (const visit of graph.visits) {
|
|
124
|
-
if (visit.mode !== "required" || seen.has(visit.dbKey)) continue;
|
|
125
|
-
seen.add(visit.dbKey);
|
|
126
|
-
const page = contentByKey.get(visit.dbKey);
|
|
127
|
-
const patch = (visit.meta?.skillConfig?.promptPatch || parseSkillDocProtocol(page?.content ?? "", visit.meta).content).trim();
|
|
128
|
-
if (patch) skillPromptPatches.add(patch);
|
|
129
|
-
}
|
|
130
|
-
return { ...graph, contentByKey, skillPromptPatches: [...skillPromptPatches] };
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
// packages/ai/policy/runtimePolicy.ts
|
|
134
|
-
var clampLevel = (value, fallback) => {
|
|
135
|
-
const n = Number(value);
|
|
136
|
-
if (n === 1 || n === 2 || n === 3 || n === 4) {
|
|
137
|
-
return n;
|
|
138
|
-
}
|
|
139
|
-
return fallback;
|
|
140
|
-
};
|
|
141
|
-
var normalizeTonePreset = (value, fallback) => {
|
|
142
|
-
switch (value) {
|
|
143
|
-
case "professional":
|
|
144
|
-
case "friendly":
|
|
145
|
-
case "direct":
|
|
146
|
-
case "pragmatic":
|
|
147
|
-
case "default":
|
|
148
|
-
return value;
|
|
149
|
-
default:
|
|
150
|
-
return fallback;
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
var normalizeToneResolutionMode = (value, fallback) => {
|
|
154
|
-
switch (value) {
|
|
155
|
-
case "agent_first":
|
|
156
|
-
case "user_first":
|
|
157
|
-
case "blend":
|
|
158
|
-
return value;
|
|
159
|
-
default:
|
|
160
|
-
return fallback;
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
var normalizeSelfEvolutionMode = (value, fallback) => {
|
|
164
|
-
switch (value) {
|
|
165
|
-
case "none":
|
|
166
|
-
case "knowledge_only":
|
|
167
|
-
case "prompt_and_refs":
|
|
168
|
-
case "full":
|
|
169
|
-
return value;
|
|
170
|
-
default:
|
|
171
|
-
return fallback;
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
var resolveAgentBasePolicy = (agentConfig) => {
|
|
175
|
-
const raw = agentConfig?.basePolicy ?? {};
|
|
176
|
-
return {
|
|
177
|
-
version: 1,
|
|
178
|
-
tone: {
|
|
179
|
-
preset: normalizeTonePreset(
|
|
180
|
-
raw?.tone?.preset,
|
|
181
|
-
DEFAULT_AGENT_BASE_POLICY.tone?.preset ?? "default"
|
|
182
|
-
),
|
|
183
|
-
resolutionMode: normalizeToneResolutionMode(
|
|
184
|
-
raw?.tone?.resolutionMode,
|
|
185
|
-
DEFAULT_AGENT_BASE_POLICY.tone?.resolutionMode ?? "blend"
|
|
186
|
-
)
|
|
187
|
-
},
|
|
188
|
-
knowledgeCaptureMaxLevel: clampLevel(
|
|
189
|
-
raw?.knowledgeCaptureMaxLevel,
|
|
190
|
-
DEFAULT_AGENT_BASE_POLICY.knowledgeCaptureMaxLevel
|
|
191
|
-
),
|
|
192
|
-
spaceContextMaxLevel: clampLevel(
|
|
193
|
-
raw?.spaceContextMaxLevel,
|
|
194
|
-
DEFAULT_AGENT_BASE_POLICY.spaceContextMaxLevel
|
|
195
|
-
),
|
|
196
|
-
selfEvolutionMode: normalizeSelfEvolutionMode(
|
|
197
|
-
raw?.selfEvolutionMode,
|
|
198
|
-
DEFAULT_AGENT_BASE_POLICY.selfEvolutionMode
|
|
199
|
-
)
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
var resolveUserPreferenceProfile = (settingsRecord) => {
|
|
203
|
-
const fallbackSpaceLevel = settingsRecord?.enableReadCurrentSpace === false ? 1 : DEFAULT_USER_PREFERENCE_PROFILE.spaceContextLevel;
|
|
204
|
-
return {
|
|
205
|
-
version: 1,
|
|
206
|
-
tone: {
|
|
207
|
-
preset: normalizeTonePreset(
|
|
208
|
-
settingsRecord?.userTonePreset,
|
|
209
|
-
DEFAULT_USER_PREFERENCE_PROFILE.tone?.preset ?? "default"
|
|
210
|
-
)
|
|
211
|
-
},
|
|
212
|
-
knowledgeCaptureLevel: clampLevel(
|
|
213
|
-
settingsRecord?.knowledgeCaptureLevel,
|
|
214
|
-
DEFAULT_USER_PREFERENCE_PROFILE.knowledgeCaptureLevel
|
|
215
|
-
),
|
|
216
|
-
spaceContextLevel: clampLevel(
|
|
217
|
-
settingsRecord?.spaceContextLevel,
|
|
218
|
-
fallbackSpaceLevel
|
|
219
|
-
)
|
|
220
|
-
};
|
|
221
|
-
};
|
|
222
|
-
var containsAny = (text, patterns) => patterns.some((pattern) => text.includes(pattern));
|
|
223
|
-
var inferCaptureIntent = (userInput) => {
|
|
224
|
-
const normalized = userInput.toLowerCase();
|
|
225
|
-
if (containsAny(normalized, [
|
|
226
|
-
"\u4FDD\u5B58",
|
|
227
|
-
"\u5B58\u4E00\u4E0B",
|
|
228
|
-
"\u6C89\u6DC0",
|
|
229
|
-
"\u8BB0\u4F4F",
|
|
230
|
-
"\u5199\u5165\u6587\u6863",
|
|
231
|
-
"\u5EFA\u6587\u6863",
|
|
232
|
-
"\u521B\u5EFA\u6587\u6863",
|
|
233
|
-
"\u5BFC\u5165 skill",
|
|
234
|
-
"\u5BFC\u5165\u8FD9\u4E2A skill",
|
|
235
|
-
"\u786E\u8BA4\u5BFC\u5165",
|
|
236
|
-
"\u786E\u8BA4\u5BFC\u5165\u8FD9\u4E2A skill",
|
|
237
|
-
"\u5BFC\u5165\u8FD9\u4E2A\u6280\u80FD",
|
|
238
|
-
"\u786E\u8BA4\u5BFC\u5165\u8FD9\u4E2A\u6280\u80FD",
|
|
239
|
-
"\u521B\u5EFA skill",
|
|
240
|
-
"\u521B\u5EFA\u8FD9\u4E2A skill",
|
|
241
|
-
"skill \u6587\u6863",
|
|
242
|
-
"\u521B\u5EFA\u8868\u683C",
|
|
243
|
-
"createtable",
|
|
244
|
-
"addtablerow",
|
|
245
|
-
"addtablerows",
|
|
246
|
-
"\u5EFA\u8868",
|
|
247
|
-
"\u5EFA\u4E2A\u8868",
|
|
248
|
-
"\u505A\u4E2A\u8868",
|
|
249
|
-
"\u505A\u4E00\u5F20\u8868",
|
|
250
|
-
"\u5199\u8868",
|
|
251
|
-
"\u5199\u5165\u8868",
|
|
252
|
-
"\u5199\u5165\u4E00\u884C",
|
|
253
|
-
"\u5199\u5165 table",
|
|
254
|
-
"\u653E\u5230 table",
|
|
255
|
-
"\u5B58\u5230 table",
|
|
256
|
-
"\u4FDD\u5B58\u5230 table",
|
|
257
|
-
"\u8BB0\u5F55\u4E0B\u6765",
|
|
258
|
-
"\u91C7\u96C6",
|
|
259
|
-
"\u505A\u6570\u636E\u96C6",
|
|
260
|
-
"\u505A\u6210\u6570\u636E\u96C6",
|
|
261
|
-
"\u6574\u7406\u6210\u6570\u636E\u96C6",
|
|
262
|
-
"\u6574\u7406\u6210\u8868",
|
|
263
|
-
"\u6574\u7406\u6210\u4E00\u5F20\u8868",
|
|
264
|
-
"\u5EFA\u7ACB\u4E00\u4E2A\u8868",
|
|
265
|
-
"\u5EFA\u7ACB\u4E00\u5F20\u8868",
|
|
266
|
-
"\u5EFA\u7ACB\u6210\u8868",
|
|
267
|
-
"\u5EFA\u7ACB\u6210\u4E00\u5F20\u8868",
|
|
268
|
-
"\u521B\u5EFA\u8FD9\u4E2A\u8868\u683C",
|
|
269
|
-
"\u786E\u8BA4\u521B\u5EFA",
|
|
270
|
-
"\u786E\u8BA4\u521B\u5EFA\u8FD9\u5F20\u8868\u683C",
|
|
271
|
-
"create doc",
|
|
272
|
-
"import skill",
|
|
273
|
-
"confirm import",
|
|
274
|
-
"create skill",
|
|
275
|
-
"create table",
|
|
276
|
-
"write table",
|
|
277
|
-
"save to table",
|
|
278
|
-
"dataset",
|
|
279
|
-
"save this",
|
|
280
|
-
"remember this",
|
|
281
|
-
"document this"
|
|
282
|
-
])) {
|
|
283
|
-
return "strong";
|
|
284
|
-
}
|
|
285
|
-
if (containsAny(normalized, [
|
|
286
|
-
"\u603B\u7ED3",
|
|
287
|
-
"\u65B9\u6848",
|
|
288
|
-
"\u8C03\u7814",
|
|
289
|
-
"\u89C4\u8303",
|
|
290
|
-
"\u4F1A\u8BAE\u7EAA\u8981",
|
|
291
|
-
"\u603B\u7ED3\u4E00\u4E0B",
|
|
292
|
-
"research",
|
|
293
|
-
"proposal",
|
|
294
|
-
"spec",
|
|
295
|
-
"summary"
|
|
296
|
-
])) {
|
|
297
|
-
return "possible";
|
|
298
|
-
}
|
|
299
|
-
return "none";
|
|
300
|
-
};
|
|
301
|
-
var resolveTonePreset = (agentTone, userTone, mode) => {
|
|
302
|
-
if (mode === "agent_first") {
|
|
303
|
-
return agentTone === "default" ? userTone : agentTone;
|
|
304
|
-
}
|
|
305
|
-
if (mode === "user_first") {
|
|
306
|
-
return userTone === "default" ? agentTone : userTone;
|
|
307
|
-
}
|
|
308
|
-
if (userTone !== "default") return userTone;
|
|
309
|
-
return agentTone;
|
|
310
|
-
};
|
|
311
|
-
var preloadSummaryCountByLevel = (level) => ({ 1: 0, 2: 0, 3: 8, 4: 16 })[level];
|
|
312
|
-
var preloadBudgetRatioByLevel = (level) => ({ 1: 0, 2: 0.01, 3: 0.04, 4: 0.08 })[level];
|
|
313
|
-
var knowledgeCaptureLevelLabel = (level) => ({
|
|
314
|
-
1: "\u4E0D\u4E3B\u52A8\u521B\u5EFA",
|
|
315
|
-
2: "\u5148\u95EE\u518D\u521B\u5EFA",
|
|
316
|
-
3: "\u56DE\u7B54\u540E\u5EFA\u8BAE\u521B\u5EFA",
|
|
317
|
-
4: "\u9AD8\u4EF7\u503C\u7ED3\u679C\u53EF\u81EA\u52A8\u521B\u5EFA"
|
|
318
|
-
})[level] ?? "\u672A\u77E5\u7EA7\u522B";
|
|
319
|
-
var spaceContextLevelLabel = (level) => ({
|
|
320
|
-
1: "\u4E0D\u81EA\u52A8\u8BFB\u53D6",
|
|
321
|
-
2: "\u53EA\u770B\u7ED3\u6784\u548C\u6807\u9898",
|
|
322
|
-
3: "\u8F7B\u91CF\u8BFB\u53D6",
|
|
323
|
-
4: "\u81EA\u9002\u5E94\u8BFB\u53D6"
|
|
324
|
-
})[level] ?? "\u672A\u77E5\u7EA7\u522B";
|
|
325
|
-
var buildStaticUserPolicyContext = (params) => {
|
|
326
|
-
const agentBasePolicy = resolveAgentBasePolicy(params.agentConfig);
|
|
327
|
-
const userPreferenceProfile = resolveUserPreferenceProfile(params.settingsRecord);
|
|
328
|
-
const tonePreset = resolveTonePreset(
|
|
329
|
-
agentBasePolicy.tone?.preset ?? "default",
|
|
330
|
-
userPreferenceProfile.tone?.preset ?? "default",
|
|
331
|
-
agentBasePolicy.tone?.resolutionMode ?? "blend"
|
|
332
|
-
);
|
|
333
|
-
const knowledgeLevel = Math.min(
|
|
334
|
-
agentBasePolicy.knowledgeCaptureMaxLevel,
|
|
335
|
-
userPreferenceProfile.knowledgeCaptureLevel
|
|
336
|
-
);
|
|
337
|
-
const spaceLevel = Math.min(
|
|
338
|
-
agentBasePolicy.spaceContextMaxLevel,
|
|
339
|
-
userPreferenceProfile.spaceContextLevel
|
|
340
|
-
);
|
|
341
|
-
return [
|
|
342
|
-
`\u7528\u6237\u8BED\u6C14\u504F\u597D\uFF1A${tonePreset}`,
|
|
343
|
-
`\u77E5\u8BC6\u6C89\u6DC0\u7EA7\u522B\uFF1A${knowledgeLevel}\uFF08${knowledgeCaptureLevelLabel(knowledgeLevel)}\uFF09`,
|
|
344
|
-
`\u7A7A\u95F4\u4E0A\u4E0B\u6587\u7EA7\u522B\uFF1A${spaceLevel}\uFF08${spaceContextLevelLabel(spaceLevel)}\uFF09`,
|
|
345
|
-
"\u8BF7\u5C3D\u91CF\u4FDD\u7559 agent \u81EA\u8EAB\u89D2\u8272\u8BBE\u5B9A\uFF0C\u540C\u65F6\u6309\u7528\u6237\u504F\u597D\u8C03\u6574\u8868\u8FBE\u548C\u81EA\u52A8\u5316\u7A0B\u5EA6\u3002"
|
|
346
|
-
].join("\n");
|
|
347
|
-
};
|
|
348
|
-
var resolveSpaceContextPreloadPlan = (level) => ({
|
|
349
|
-
preloadSummaryCount: preloadSummaryCountByLevel(level),
|
|
350
|
-
preloadBudgetRatio: preloadBudgetRatioByLevel(level),
|
|
351
|
-
includeRecentContent: level >= 3
|
|
352
|
-
});
|
|
353
|
-
|
|
354
|
-
export {
|
|
355
|
-
inferCaptureIntent,
|
|
356
|
-
buildStaticUserPolicyContext,
|
|
357
|
-
resolveSpaceContextPreloadPlan,
|
|
358
|
-
resolveUserSkillRuntime
|
|
359
|
-
};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
readAgentFromStore,
|
|
3
|
-
readDialogMessageRecords,
|
|
4
|
-
readDialogMessages,
|
|
5
|
-
resolveBuiltinLocalCliAgentConfig
|
|
6
|
-
} from "./chunk-TCZ2VJZQ.js";
|
|
7
|
-
import "./chunk-DBUR22G5.js";
|
|
8
|
-
import "./chunk-S6K5F3KP.js";
|
|
9
|
-
import "./chunk-OJ45MEEI.js";
|
|
10
|
-
import "./chunk-BR3GT6MR.js";
|
|
11
|
-
import "./chunk-SRCCSTIM.js";
|
|
12
|
-
import "./chunk-VIDPVFP3.js";
|
|
13
|
-
import "./chunk-4JH2UMJR.js";
|
|
14
|
-
import "./chunk-3QIYD3VM.js";
|
|
15
|
-
import "./chunk-ZNFJWEN4.js";
|
|
16
|
-
import "./chunk-U2HBB7RS.js";
|
|
17
|
-
import "./chunk-PWTNI4N7.js";
|
|
18
|
-
import "./chunk-AL3TYDIF.js";
|
|
19
|
-
import "./chunk-HSSBDZLD.js";
|
|
20
|
-
import "./chunk-HNUWUO75.js";
|
|
21
|
-
import "./chunk-CHOZJMJS.js";
|
|
22
|
-
import "./chunk-XAG3FWBE.js";
|
|
23
|
-
import "./chunk-LKA64WH4.js";
|
|
24
|
-
import "./chunk-BYXBJQAS.js";
|
|
25
|
-
import "./chunk-DUUDXSLX.js";
|
|
26
|
-
import "./chunk-QYB23WUH.js";
|
|
27
|
-
import "./chunk-56GBUMO5.js";
|
|
28
|
-
import "./chunk-FPBJM2BW.js";
|
|
29
|
-
import "./chunk-EEOOBRA7.js";
|
|
30
|
-
import "./chunk-X4O7FJF5.js";
|
|
31
|
-
import "./chunk-MNEZUL5S.js";
|
|
32
|
-
import "./chunk-QJTZ76CP.js";
|
|
33
|
-
import "./chunk-VS276URX.js";
|
|
34
|
-
import "./chunk-TLE77UJ5.js";
|
|
35
|
-
import "./chunk-OBIC6EG7.js";
|
|
36
|
-
import "./chunk-WFGNWWJI.js";
|
|
37
|
-
import "./chunk-FJSNBZXR.js";
|
|
38
|
-
import "./chunk-2MBTWINN.js";
|
|
39
|
-
import "./chunk-QRGDJA4B.js";
|
|
40
|
-
import "./chunk-5ZUL4CUO.js";
|
|
41
|
-
import "./chunk-L32W3PRP.js";
|
|
42
|
-
import "./chunk-H57T64RA.js";
|
|
43
|
-
import "./chunk-UKZX3NHN.js";
|
|
44
|
-
import "./chunk-5MMAK75Q.js";
|
|
45
|
-
import "./chunk-USGHJSGO.js";
|
|
46
|
-
import "./chunk-KX6YBIHG.js";
|
|
47
|
-
import "./chunk-OQHIVPG4.js";
|
|
48
|
-
import "./chunk-DWLEOOGR.js";
|
|
49
|
-
import "./chunk-7DPNBQSV.js";
|
|
50
|
-
import "./chunk-OW765XBU.js";
|
|
51
|
-
import "./chunk-VMJVAJ6W.js";
|
|
52
|
-
import "./chunk-EWQ3HGNZ.js";
|
|
53
|
-
import "./chunk-PSCNXBYA.js";
|
|
54
|
-
import "./chunk-G7Y4GXTY.js";
|
|
55
|
-
import "./chunk-6UBGXX2W.js";
|
|
56
|
-
import "./chunk-G7IUT2V3.js";
|
|
57
|
-
import "./chunk-6OVNSQHN.js";
|
|
58
|
-
import "./chunk-W6RFEDN4.js";
|
|
59
|
-
import "./chunk-EVGU5P4U.js";
|
|
60
|
-
import "./chunk-ILHQ2AXT.js";
|
|
61
|
-
import "./chunk-M2EJHDJP.js";
|
|
62
|
-
import "./chunk-SYTHYBMI.js";
|
|
63
|
-
import "./chunk-OJKUU3LP.js";
|
|
64
|
-
import "./chunk-YZMNK53S.js";
|
|
65
|
-
import "./chunk-I42VC5KR.js";
|
|
66
|
-
import "./chunk-U6VC4MU4.js";
|
|
67
|
-
import "./chunk-42OKN2LI.js";
|
|
68
|
-
import "./chunk-JQZRSXS5.js";
|
|
69
|
-
import "./chunk-KHCLMKZZ.js";
|
|
70
|
-
import "./chunk-62HXNQVV.js";
|
|
71
|
-
import "./chunk-7JGMNKKG.js";
|
|
72
|
-
import "./chunk-RTHFJZ6M.js";
|
|
73
|
-
import "./chunk-HBRDSQ3M.js";
|
|
74
|
-
import "./chunk-HNMXYYJR.js";
|
|
75
|
-
import "./chunk-3EUW3WEO.js";
|
|
76
|
-
import "./chunk-CD3RU7XL.js";
|
|
77
|
-
import "./chunk-JRTNUU5Z.js";
|
|
78
|
-
import "./chunk-KUG52IAP.js";
|
|
79
|
-
import "./chunk-WWC7I6TA.js";
|
|
80
|
-
import "./chunk-G3SUCT4W.js";
|
|
81
|
-
import "./chunk-4SN6J65J.js";
|
|
82
|
-
import "./chunk-CF7PE763.js";
|
|
83
|
-
import "./chunk-OBSEKCVK.js";
|
|
84
|
-
import "./chunk-QSJ3HFEF.js";
|
|
85
|
-
import "./chunk-U67V476Y.js";
|
|
86
|
-
export {
|
|
87
|
-
readAgentFromStore,
|
|
88
|
-
readDialogMessageRecords,
|
|
89
|
-
readDialogMessages,
|
|
90
|
-
resolveBuiltinLocalCliAgentConfig
|
|
91
|
-
};
|