nolo-cli 0.225.0-alpha.1 → 0.225.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_executeModel-L5VHAXSU.js → _executeModel-UCWDB72C.js} +79 -73
- package/{action-CK64LS6S.js → action-24MZYW2B.js} +11 -8
- package/{addContentAction-EQXMFNPR.js → addContentAction-HEMCSSHT.js} +14 -13
- package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-SQYDOXHA.js} +15 -14
- package/{agentDeleteCommand-4WC7INCX.js → agentDeleteCommand-P7O3ACNJ.js} +131 -124
- package/{agentEmailCommands-3XFR6WY7.js → agentEmailCommands-A5BRSYWK.js} +134 -123
- package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
- package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
- package/{agentListCommands-BBCP5XYW.js → agentListCommands-LDRCOOMO.js} +112 -496
- package/{agentMachineCommands-YZDCOLQL.js → agentMachineCommands-AYL53KJV.js} +65 -58
- package/{agentProviderCommands-7BSJH7TO.js → agentProviderCommands-N5EA3ED2.js} +6 -6
- package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-QQQZSC6S.js} +6 -6
- package/agentRecordCommands-FICBZ57C.js +188 -0
- package/{agentRunCommand-NHYBV4G5.js → agentRunCommand-CTXQGDUM.js} +135 -120
- package/{agentRunControl-7A2FOXIJ.js → agentRunControl-CO6BASZF.js} +20 -14
- package/{agentRuntimeLocal-GSTYFEX4.js → agentRuntimeLocal-5YN4D5WT.js} +48 -41
- package/{agentSlice-O6IGTM3Y.js → agentSlice-DJ5D4DU4.js} +18 -17
- package/{appDeleteCommands-L7HL4AWF.js → appDeleteCommands-B4E7N7M2.js} +58 -51
- package/{appDeployCommands-SGSUNFZR.js → appDeployCommands-E4DTXRRM.js} +58 -51
- package/{appDeployStatusCommands-AAA3XD54.js → appDeployStatusCommands-FCNHYHZM.js} +58 -51
- package/{appGetCommands-LN72GAOA.js → appGetCommands-4DXSQHUZ.js} +58 -51
- package/{appListCommands-IJQQ3VND.js → appListCommands-2NN5E4F6.js} +58 -51
- package/{authCommand-7JXW54U4.js → authCommand-47DR6GZT.js} +33 -28
- package/{authCommands-YDNAIDEY.js → authCommands-ZZ3L5IFM.js} +16 -11
- package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-AYWYQVA4.js} +5 -5
- package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-VZWAY2KR.js} +6 -6
- package/{chunk-YDBMZ7FV.js → chunk-24GVXSWK.js} +3 -3
- package/{chunk-JCK3EFZS.js → chunk-25OCZXSX.js} +63 -32
- package/{chunk-P2ZLUIW2.js → chunk-2BSLGODA.js} +350 -25
- package/chunk-2SXN7LAY.js +15 -0
- package/{chunk-N5PQJKCY.js → chunk-2XMKW2OY.js} +13 -12
- package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
- package/{chunk-UKS7D2NL.js → chunk-3NFWMSTA.js} +111 -26
- package/{chunk-TZEP5J4A.js → chunk-3V6JT6WN.js} +2935 -1412
- package/{chunk-SBVTHMEG.js → chunk-4FE3IWRE.js} +1 -1
- package/{chunk-4JVNURX4.js → chunk-4YFC3DWW.js} +68 -16
- package/chunk-4ZCTKB27.js +31 -0
- package/chunk-53W5BXLN.js +340 -0
- package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
- package/{chunk-VFBVA3U2.js → chunk-5TJE4QCL.js} +131 -40
- package/{chunk-YXMBJ7UH.js → chunk-6BGJHJRN.js} +21 -21
- package/chunk-6D25V6CB.js +133 -0
- package/chunk-6RSNVJGO.js +279 -0
- package/{chunk-IZIN2UNJ.js → chunk-6X3CS6NJ.js} +203 -24
- package/{chunk-XZGQ6ZCV.js → chunk-6XBOPKUH.js} +27 -90
- package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
- package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
- package/chunk-7NIBQ4HY.js +138 -0
- package/{chunk-7Z6EW7AH.js → chunk-7OTNBI77.js} +13 -6
- package/{chunk-HOK3ILHA.js → chunk-7Q7MKJZN.js} +590 -330
- package/{chunk-KZU52OJ5.js → chunk-7U2TFUWW.js} +6 -6
- package/{chunk-IUD7YR3B.js → chunk-B72AFRR2.js} +15 -15
- package/{chunk-4HFTBHBF.js → chunk-BDERPCJW.js} +8 -8
- package/chunk-BEM6LPD2.js +734 -0
- package/chunk-BIDSIRTS.js +307 -0
- package/{chunk-6J4TTPS2.js → chunk-BIJTI5SX.js} +5 -5
- package/chunk-BWW6WRX6.js +1438 -0
- package/{chunk-AGP3YSEC.js → chunk-C3GOEQJF.js} +46 -1
- package/chunk-C5A54QS7.js +108 -0
- package/{chunk-MOMR7NMG.js → chunk-C646JEUV.js} +2 -2
- package/{chunk-YI5CDUJD.js → chunk-CT6GT2BG.js} +9 -9
- package/{chunk-PVZY6P3S.js → chunk-CZLSTOVM.js} +2 -2
- package/{chunk-LJSNEV7M.js → chunk-DGUUOHBF.js} +8 -8
- package/{chunk-C4WTX5TU.js → chunk-DIBQXNGW.js} +2 -2
- package/{chunk-YFLVRVYK.js → chunk-DLT2DN4M.js} +1 -1
- package/{chunk-K44HIUBX.js → chunk-DLTMAXLF.js} +13 -13
- package/chunk-DVYAFH2Q.js +103 -0
- package/{chunk-SOG7OEXX.js → chunk-DWWUVRB5.js} +1 -1
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-GNHMRBYZ.js → chunk-EBKHA63G.js} +106 -14
- package/{chunk-KC4SCKXO.js → chunk-EIFSCI4C.js} +990 -1370
- package/{chunk-F3YK7KIU.js → chunk-EW37CXCQ.js} +4 -4
- package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
- package/{chunk-2VUZSVAS.js → chunk-F3FQPVHE.js} +57 -20
- package/{chunk-ZRAARRA3.js → chunk-FCAMGBLY.js} +1399 -2978
- package/{chunk-AK5O76CC.js → chunk-FPMPWNVQ.js} +3 -3
- package/{chunk-WQEMD4Z4.js → chunk-FSIEHQNH.js} +420 -120
- package/{chunk-FNDSBM4J.js → chunk-FXX6VFMV.js} +571 -348
- package/{chunk-7XS4W5KP.js → chunk-G6OPRPXH.js} +128 -149
- package/{chunk-PMDVQBGA.js → chunk-GAHJLSDO.js} +14 -7
- package/{chunk-2TIQO6TC.js → chunk-GCVFX6ZL.js} +206 -308
- package/{chunk-P25E3CKY.js → chunk-H6CHPU6M.js} +4 -4
- package/chunk-HNWZJI4N.js +33394 -0
- package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
- package/{chunk-KNIIRXHF.js → chunk-IPRPYKBP.js} +46 -8
- package/{chunk-C4VAR65S.js → chunk-IUXBKS5L.js} +200 -120
- package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
- package/{chunk-Z6USB65D.js → chunk-KGIIZXPL.js} +347 -14
- package/chunk-KK3FCYZM.js +647 -0
- package/{chunk-GBZ4YKEO.js → chunk-KOIDLCAQ.js} +8 -8
- package/{chunk-2ZKFCIJJ.js → chunk-LCQJH7KN.js} +1 -1
- package/{chunk-N5Z2V73W.js → chunk-LELADM5Q.js} +1 -1
- package/{chunk-4NA3YTBC.js → chunk-LMFMV5UC.js} +8 -8
- package/{chunk-XN23AUVU.js → chunk-LMZRXDWG.js} +8 -5
- package/{chunk-EWPDMS4N.js → chunk-LN4ZVSO7.js} +30 -15
- package/{chunk-GOAPXKQU.js → chunk-LT3DMEIB.js} +4 -4
- package/{chunk-GGKNJ42M.js → chunk-LYDEFPQP.js} +18 -108
- package/{chunk-FTQWYWUI.js → chunk-MDVP5TLI.js} +1 -1
- package/{chunk-EOWLBDY6.js → chunk-MM73SP4K.js} +1 -1
- package/chunk-MVOZ22RZ.js +26 -0
- package/{chunk-3QFLXA24.js → chunk-N6EN3HK3.js} +3 -3
- package/{chunk-D726I5AZ.js → chunk-NBB2EBQD.js} +2 -2
- package/{chunk-DISQCYPE.js → chunk-NL7J2J5Z.js} +6 -6
- package/{chunk-JM5C4EUA.js → chunk-NQQL2DKF.js} +6 -6
- package/{chunk-LS2MGTUS.js → chunk-NWWQY2J5.js} +15 -15
- package/{chunk-TXGQ4O5S.js → chunk-OATIWAKN.js} +20 -174
- package/{chunk-KYH7XW3K.js → chunk-OJRTTERA.js} +77 -2
- package/{chunk-VV7TXWOC.js → chunk-OYHJ4TW7.js} +6 -6
- package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
- package/{chunk-2VA6TU4I.js → chunk-QES2NCVM.js} +17 -14
- package/{chunk-WG2LFJYB.js → chunk-QGMIUVBT.js} +39 -30
- package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
- package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/{chunk-AMEOV5VZ.js → chunk-S25VJYXV.js} +41 -35
- package/chunk-SR4FE5VD.js +9 -0
- package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
- package/{chunk-GVGOEMNV.js → chunk-T444ENEC.js} +3 -3
- package/{chunk-67BE44IS.js → chunk-TE2XH4KH.js} +1 -1
- package/{chunk-5RKUPJYL.js → chunk-TFGGNRT6.js} +11 -3
- package/{chunk-ZH6MUQEO.js → chunk-TTEBPPUV.js} +1 -1
- package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
- package/{chunk-AVHRSJUH.js → chunk-TXFYIWAW.js} +32 -25
- package/{chunk-KOXKKHFE.js → chunk-TXQVH72L.js} +9 -4
- package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
- package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
- package/{chunk-KDAGMRDA.js → chunk-UAHUJ4HH.js} +100 -32
- package/{chunk-BGGHA5DV.js → chunk-UAOFSUG7.js} +1 -1
- package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
- package/chunk-UKSKCDBG.js +62 -0
- package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
- package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
- package/chunk-WDWZPASX.js +29 -0
- package/chunk-WFGNWWJI.js +326 -0
- package/{chunk-UYOICCYG.js → chunk-WHO3LYDW.js} +64 -89
- package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
- package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-QLFCTYRH.js → chunk-X37RQEA3.js} +17 -10
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
- package/chunk-X7IA2B7R.js +166 -0
- package/{chunk-GIABSSWQ.js → chunk-XAFOLWLU.js} +4 -4
- package/{chunk-45LZIYXB.js → chunk-XNEDFWT4.js} +2 -2
- package/{chunk-EOJZGQAE.js → chunk-Y5RN44VH.js} +103 -100
- package/{chunk-OB6DVWPF.js → chunk-YFRJAE3R.js} +319 -95
- package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
- package/{chunk-3KNEE64G.js → chunk-YMCSR7PA.js} +14 -14
- package/chunk-YUZ2DAIH.js +34 -0
- package/chunk-Z6YTCDU4.js +24 -0
- package/{chunk-XQBIZRGW.js → chunk-ZBQ5UGYY.js} +3 -3
- package/{chunk-VREDDN25.js → chunk-ZQUCJBS4.js} +14 -9
- package/{chunk-UEKXWO7A.js → chunk-ZT3DYK5T.js} +15 -4
- package/{chunk-LM2PS3YS.js → chunk-ZTLTDUV6.js} +24 -11
- package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
- package/{cliAgentConfigHelpers-KICKKNYQ.js → cliAgentConfigHelpers-RFR7ZCSK.js} +12 -12
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
- package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
- package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
- package/{cliLocalAgentRecordReader-6FXGFBI3.js → cliLocalAgentRecordReader-AJ4UKHKT.js} +51 -45
- package/{commandRegistry-HJDPQSQ4.js → commandRegistry-IHWZVV4G.js} +98 -94
- package/{contentThunks-I6OR5ENG.js → contentThunks-YQRCBDKF.js} +38 -35
- package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-W67DE765.js} +4 -4
- package/{createAgentAutomationAction-7BCCTWO5.js → createAgentAutomationAction-ERSDNR4R.js} +38 -35
- package/{createDialogAction-CU27KSCJ.js → createDialogAction-QXC7JZPE.js} +39 -37
- package/{createPageAction-CWRTEYVA.js → createPageAction-RLZ7776F.js} +40 -37
- package/{db-CS4ZJQKV.js → db-6NRZLEW2.js} +10 -7
- package/{dbSlice-ZJPDIFER.js → dbSlice-7M2ESEUO.js} +13 -12
- package/{deleteFile-Q3YDB4ML.js → deleteFile-WO6WSSNK.js} +10 -7
- package/{dialogCommands-OPTRZWTE.js → dialogCommands-UIRO4QNN.js} +62 -56
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-77B57PL6.js → dialogNotifyCommand-VDUFYBZV.js} +14 -14
- package/{dialogSlice-XODSLDHY.js → dialogSlice-A4U3C76D.js} +36 -33
- package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-SEC6UZWM.js} +3 -3
- package/{docCreateCommands-36WS33BK.js → docCreateCommands-MHPYTJWR.js} +56 -49
- package/{docDeleteCommands-C4CS4XLF.js → docDeleteCommands-VYULMBAQ.js} +58 -51
- package/{docReadCommands-QZMSFMPN.js → docReadCommands-FV3GGZ7V.js} +56 -49
- package/{docStore-TVN4SNVE.js → docStore-AWWI72FA.js} +15 -14
- package/{docUpdateCommands-BYI64HVV.js → docUpdateCommands-JNS3HX7F.js} +56 -49
- package/fetchMessages-TQEUZD7H.js +2 -2
- package/{getPricing-VNGFM4PN.js → getPricing-U5AR7ZHS.js} +5 -5
- package/{handleSendMessageAction-NSEMVHWX.js → handleSendMessageAction-WDJOUDNV.js} +68 -63
- package/{hostCredentialCreate-WBZY7DZB.js → hostCredentialCreate-H3FF2SAO.js} +123 -111
- package/index.js +56 -18
- package/keys-RWF7UCB4.js +2 -2
- package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
- package/{localDialogRead-SVTPA5GY.js → localDialogRead-3T2KMCRC.js} +1 -1
- package/{localRuntimeAdapter-OAIWERFA.js → localRuntimeAdapter-JAQQXZJP.js} +126 -113
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-7DKIT7UH.js} +4 -2
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
- package/{machineCommands-OI37ZUQ4.js → machineCommands-WYOFNB5I.js} +146 -120
- package/{machineWsRunDispatch-73HKPV6D.js → machineWsRunDispatch-Y7UIAZNM.js} +118 -107
- package/markdownToSlate-KIYM7B3P.js +8 -0
- package/mcpLocalAuthorizeCommand-SCYEFLRK.js +106 -0
- package/{memberThunks-JRYNONYV.js → memberThunks-DIITWU4M.js} +22 -17
- package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
- package/{models-H5NNZRLH.js → models-CINY5UZR.js} +2 -2
- package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
- package/package.json +1 -1
- package/{projectArchive-GVEARCOG.js → projectArchive-IZJXBW5N.js} +43 -40
- package/{providerPresetApply-J3WMRPD2.js → providerPresetApply-2QWXPJXZ.js} +6 -6
- package/{providerRegistry-KJGB5XWS.js → providerRegistry-W4LCKK6V.js} +6 -6
- package/{read-Q7GOHGNP.js → read-OBLJNMA2.js} +9 -8
- package/{readDocTool-Z5OQ6422.js → readDocTool-QQZ4DAER.js} +1 -1
- package/{readlineWorkspace-5DWUGNSU.js → readlineWorkspace-WF3SWZGR.js} +7055 -5248
- package/rememberExplicit-CPAPONSI.js +15 -0
- package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-HC3SOY3G.js} +17 -16
- package/{runAgentClientLoop-RDXIPF34.js → runAgentClientLoop-Z7V6TA3O.js} +97 -72
- package/{runtimeDoctorCommands-UXKXYBW6.js → runtimeDoctorCommands-KX6YLPWV.js} +17 -17
- package/{secretCommands-LJXOOYA7.js → secretCommands-STRAX275.js} +4 -4
- package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-DDZUQPY6.js} +16 -15
- package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-EB67OMAJ.js} +17 -16
- package/{settingThunks-AXTBX3Q5.js → settingThunks-TN6GFASU.js} +181 -62
- package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
- package/{spaceCommands-GUKMDRWN.js → spaceCommands-HBYQUVJI.js} +61 -54
- package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
- package/{streamAgentChatTurn-XEYQZPDJ.js → streamAgentChatTurn-CM7QQXOS.js} +178 -173
- package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-XY5TKQQE.js} +15 -14
- package/{tableCommands-HITDSLHS.js → tableCommands-MXFL3JIT.js} +13 -10
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-53YMJ2G6.js} +8 -6
- package/{tools-6DFTHCFX.js → tools-AT6H73LD.js} +66 -62
- package/tuiRestart-272SAYSK.js +41 -0
- package/{tuiSummaryLlmCaller-7WLUKNP2.js → tuiSummaryLlmCaller-K2OVRVHG.js} +20 -19
- package/{updateCommands-RJVCRSBP.js → updateCommands-O3BOVVVN.js} +8 -6
- package/{updateDialogTitleAction-AMSBV2H7.js → updateDialogTitleAction-PGY4UPLH.js} +38 -35
- package/{usageCommand-YPJ2ZI2F.js → usageCommand-SCF3ROV2.js} +4 -4
- package/{usageRebuildCommand-FERQO74C.js → usageRebuildCommand-K5WPIBA5.js} +5 -5
- package/webapi-24RZDIIQ.js +2488 -0
- package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-WJDUZLEO.js} +2 -2
- package/workContext-Y3ADAPZU.js +14 -0
- package/workContextAccess-UZHDLBUR.js +11 -0
- package/workContextWriteNotice-YCSSMHN4.js +7 -0
- package/agentRecordCommands-KLYKI4Z7.js +0 -177
- package/chunk-2THCNKE4.js +0 -147
- package/chunk-2WZXXAQD.js +0 -57
- package/chunk-5ZMIIR23.js +0 -265
- package/chunk-652XYZGP.js +0 -352
- package/chunk-BJF2MHJ3.js +0 -118
- package/chunk-KEPOVMF4.js +0 -91
- package/chunk-QZI44GWV.js +0 -776
- package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
- package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
- package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
- package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
- package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
- package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
- package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
defaultLaunchWindowsUpdateHelper,
|
|
4
4
|
getWindowsUpdateStatus,
|
|
5
5
|
scheduleWindowsSelfUpdate
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-TFGGNRT6.js";
|
|
7
|
+
import "./chunk-YFRJAE3R.js";
|
|
8
8
|
import "./chunk-U67V476Y.js";
|
|
9
9
|
export {
|
|
10
10
|
buildWindowsUpdateHelperSource,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isWorkContextState,
|
|
3
|
+
readWorkContexts,
|
|
4
|
+
updateWorkContext
|
|
5
|
+
} from "./chunk-C5A54QS7.js";
|
|
6
|
+
import "./chunk-6RSNVJGO.js";
|
|
7
|
+
import "./chunk-324FWHUA.js";
|
|
8
|
+
import "./chunk-OW765XBU.js";
|
|
9
|
+
import "./chunk-U67V476Y.js";
|
|
10
|
+
export {
|
|
11
|
+
isWorkContextState,
|
|
12
|
+
readWorkContexts,
|
|
13
|
+
updateWorkContext
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveWorkContextAccess
|
|
3
|
+
} from "./chunk-Z6YTCDU4.js";
|
|
4
|
+
import "./chunk-BV3FLP2L.js";
|
|
5
|
+
import "./chunk-OJKUU3LP.js";
|
|
6
|
+
import "./chunk-YZMNK53S.js";
|
|
7
|
+
import "./chunk-U6VC4MU4.js";
|
|
8
|
+
import "./chunk-U67V476Y.js";
|
|
9
|
+
export {
|
|
10
|
+
resolveWorkContextAccess
|
|
11
|
+
};
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
runAgentCreateCommand,
|
|
3
|
-
runAgentReadCommand,
|
|
4
|
-
runAgentUpdateCommand
|
|
5
|
-
} from "./chunk-IUD7YR3B.js";
|
|
6
|
-
import "./chunk-QVBXJNZ2.js";
|
|
7
|
-
import "./chunk-YFLVRVYK.js";
|
|
8
|
-
import "./chunk-ZRAARRA3.js";
|
|
9
|
-
import "./chunk-2YGBI2XB.js";
|
|
10
|
-
import "./chunk-6QDYSCPW.js";
|
|
11
|
-
import "./chunk-VP3BINY7.js";
|
|
12
|
-
import "./chunk-FIYSMXHY.js";
|
|
13
|
-
import "./chunk-2VA6TU4I.js";
|
|
14
|
-
import "./chunk-XFYFMTOM.js";
|
|
15
|
-
import "./chunk-WOAZVUSN.js";
|
|
16
|
-
import "./chunk-UKS7D2NL.js";
|
|
17
|
-
import "./chunk-LKZPX6YH.js";
|
|
18
|
-
import "./chunk-VIWDGTDA.js";
|
|
19
|
-
import "./chunk-67BE44IS.js";
|
|
20
|
-
import "./chunk-HGDKT2D6.js";
|
|
21
|
-
import "./chunk-UAIHKQIA.js";
|
|
22
|
-
import "./chunk-KZU52OJ5.js";
|
|
23
|
-
import "./chunk-4HFTBHBF.js";
|
|
24
|
-
import "./chunk-M3JEW6N6.js";
|
|
25
|
-
import "./chunk-MK2Q7ZJD.js";
|
|
26
|
-
import "./chunk-ZEZC7IIM.js";
|
|
27
|
-
import "./chunk-ATNTHIZI.js";
|
|
28
|
-
import "./chunk-652XYZGP.js";
|
|
29
|
-
import "./chunk-XQBIZRGW.js";
|
|
30
|
-
import "./chunk-HS7MLR74.js";
|
|
31
|
-
import "./chunk-HOK3ILHA.js";
|
|
32
|
-
import "./chunk-KFHREHUQ.js";
|
|
33
|
-
import "./chunk-QZI44GWV.js";
|
|
34
|
-
import "./chunk-EOJZGQAE.js";
|
|
35
|
-
import "./chunk-NF64D32W.js";
|
|
36
|
-
import "./chunk-3L2WKC3W.js";
|
|
37
|
-
import "./chunk-GGKNJ42M.js";
|
|
38
|
-
import "./chunk-FJ23FZXF.js";
|
|
39
|
-
import "./chunk-AGIM7IMJ.js";
|
|
40
|
-
import "./chunk-63W5N6P3.js";
|
|
41
|
-
import "./chunk-VF4K2QE6.js";
|
|
42
|
-
import "./chunk-F3YK7KIU.js";
|
|
43
|
-
import "./chunk-KOXKKHFE.js";
|
|
44
|
-
import "./chunk-4JVNURX4.js";
|
|
45
|
-
import "./chunk-GIABSSWQ.js";
|
|
46
|
-
import "./chunk-BGGHA5DV.js";
|
|
47
|
-
import "./chunk-AK5O76CC.js";
|
|
48
|
-
import "./chunk-Z6USB65D.js";
|
|
49
|
-
import "./chunk-BJF2MHJ3.js";
|
|
50
|
-
import "./chunk-YXMBJ7UH.js";
|
|
51
|
-
import "./chunk-FNDSBM4J.js";
|
|
52
|
-
import "./chunk-TZXPT53C.js";
|
|
53
|
-
import "./chunk-BUDVRYES.js";
|
|
54
|
-
import "./chunk-KEPOVMF4.js";
|
|
55
|
-
import "./chunk-523DITKR.js";
|
|
56
|
-
import "./chunk-K44HIUBX.js";
|
|
57
|
-
import "./chunk-MOMR7NMG.js";
|
|
58
|
-
import "./chunk-BYXBJQAS.js";
|
|
59
|
-
import "./chunk-QYPE3TS3.js";
|
|
60
|
-
import "./chunk-GVGOEMNV.js";
|
|
61
|
-
import "./chunk-5RGU3J7P.js";
|
|
62
|
-
import "./chunk-UVLYNWIE.js";
|
|
63
|
-
import "./chunk-YNIYE47Z.js";
|
|
64
|
-
import "./chunk-S2NTVGA2.js";
|
|
65
|
-
import "./chunk-5FUN7EG4.js";
|
|
66
|
-
import "./chunk-VREDDN25.js";
|
|
67
|
-
import "./chunk-HXER7YJF.js";
|
|
68
|
-
import "./chunk-PVZY6P3S.js";
|
|
69
|
-
import "./chunk-UAD2WT54.js";
|
|
70
|
-
import "./chunk-AVHRSJUH.js";
|
|
71
|
-
import "./chunk-3PVYUPXK.js";
|
|
72
|
-
import "./chunk-C4WTX5TU.js";
|
|
73
|
-
import "./chunk-GBWGPTA7.js";
|
|
74
|
-
import "./chunk-N5Z2V73W.js";
|
|
75
|
-
import "./chunk-GLKOYSRU.js";
|
|
76
|
-
import "./chunk-QLFCTYRH.js";
|
|
77
|
-
import "./chunk-2VUZSVAS.js";
|
|
78
|
-
import "./chunk-UEILX4EV.js";
|
|
79
|
-
import "./chunk-7Z6EW7AH.js";
|
|
80
|
-
import "./chunk-AGP3YSEC.js";
|
|
81
|
-
import "./chunk-QQ56R7KS.js";
|
|
82
|
-
import "./chunk-PXYBUFDB.js";
|
|
83
|
-
import "./chunk-BV3FLP2L.js";
|
|
84
|
-
import "./chunk-N5PQJKCY.js";
|
|
85
|
-
import "./chunk-2ZKFCIJJ.js";
|
|
86
|
-
import "./chunk-BR3GT6MR.js";
|
|
87
|
-
import "./chunk-GOAPXKQU.js";
|
|
88
|
-
import "./chunk-JVRQ6YVK.js";
|
|
89
|
-
import "./chunk-KC4SCKXO.js";
|
|
90
|
-
import "./chunk-ZNFJWEN4.js";
|
|
91
|
-
import "./chunk-VFBVA3U2.js";
|
|
92
|
-
import "./chunk-CHOZJMJS.js";
|
|
93
|
-
import "./chunk-PWTNI4N7.js";
|
|
94
|
-
import "./chunk-AL3TYDIF.js";
|
|
95
|
-
import "./chunk-VV7TXWOC.js";
|
|
96
|
-
import "./chunk-HNUWUO75.js";
|
|
97
|
-
import "./chunk-LKA64WH4.js";
|
|
98
|
-
import "./chunk-UEKXWO7A.js";
|
|
99
|
-
import "./chunk-2WZXXAQD.js";
|
|
100
|
-
import "./chunk-KNIIRXHF.js";
|
|
101
|
-
import "./chunk-SOG7OEXX.js";
|
|
102
|
-
import "./chunk-56GBUMO5.js";
|
|
103
|
-
import "./chunk-2TIQO6TC.js";
|
|
104
|
-
import "./chunk-C4VAR65S.js";
|
|
105
|
-
import "./chunk-HOCHUZQ7.js";
|
|
106
|
-
import "./chunk-SOF4OWDM.js";
|
|
107
|
-
import "./chunk-JM5C4EUA.js";
|
|
108
|
-
import "./chunk-E2BESSAW.js";
|
|
109
|
-
import "./chunk-TLE77UJ5.js";
|
|
110
|
-
import "./chunk-EOWLBDY6.js";
|
|
111
|
-
import "./chunk-DISQCYPE.js";
|
|
112
|
-
import "./chunk-2MBTWINN.js";
|
|
113
|
-
import "./chunk-LM2PS3YS.js";
|
|
114
|
-
import "./chunk-5ZUL4CUO.js";
|
|
115
|
-
import "./chunk-IZIN2UNJ.js";
|
|
116
|
-
import "./chunk-H57T64RA.js";
|
|
117
|
-
import "./chunk-UKZX3NHN.js";
|
|
118
|
-
import "./chunk-5MMAK75Q.js";
|
|
119
|
-
import "./chunk-47ITIXO7.js";
|
|
120
|
-
import "./chunk-KX6YBIHG.js";
|
|
121
|
-
import "./chunk-SNBZZPYH.js";
|
|
122
|
-
import "./chunk-DWLEOOGR.js";
|
|
123
|
-
import "./chunk-OW765XBU.js";
|
|
124
|
-
import "./chunk-7DPNBQSV.js";
|
|
125
|
-
import "./chunk-62HXNQVV.js";
|
|
126
|
-
import "./chunk-EWPDMS4N.js";
|
|
127
|
-
import "./chunk-GNHMRBYZ.js";
|
|
128
|
-
import "./chunk-6OVNSQHN.js";
|
|
129
|
-
import "./chunk-W6RFEDN4.js";
|
|
130
|
-
import "./chunk-KN3HEZIQ.js";
|
|
131
|
-
import "./chunk-UJKTI5PG.js";
|
|
132
|
-
import "./chunk-M2EJHDJP.js";
|
|
133
|
-
import "./chunk-SYTHYBMI.js";
|
|
134
|
-
import "./chunk-OJKUU3LP.js";
|
|
135
|
-
import "./chunk-YZMNK53S.js";
|
|
136
|
-
import "./chunk-I42VC5KR.js";
|
|
137
|
-
import "./chunk-LJSNEV7M.js";
|
|
138
|
-
import "./chunk-VIDPVFP3.js";
|
|
139
|
-
import "./chunk-4JH2UMJR.js";
|
|
140
|
-
import "./chunk-JWXITTQB.js";
|
|
141
|
-
import "./chunk-L5I543VB.js";
|
|
142
|
-
import "./chunk-KHCLMKZZ.js";
|
|
143
|
-
import "./chunk-YGMBIXCF.js";
|
|
144
|
-
import "./chunk-R5GO3YZP.js";
|
|
145
|
-
import "./chunk-4O22PGNQ.js";
|
|
146
|
-
import "./chunk-OB6DVWPF.js";
|
|
147
|
-
import "./chunk-WQEMD4Z4.js";
|
|
148
|
-
import "./chunk-SBVTHMEG.js";
|
|
149
|
-
import "./chunk-AMEOV5VZ.js";
|
|
150
|
-
import "./chunk-KEN3N2TN.js";
|
|
151
|
-
import "./chunk-EWQ3HGNZ.js";
|
|
152
|
-
import "./chunk-PSCNXBYA.js";
|
|
153
|
-
import "./chunk-4NA3YTBC.js";
|
|
154
|
-
import "./chunk-45LZIYXB.js";
|
|
155
|
-
import "./chunk-HNMXYYJR.js";
|
|
156
|
-
import "./chunk-3EUW3WEO.js";
|
|
157
|
-
import "./chunk-KYH7XW3K.js";
|
|
158
|
-
import "./chunk-JRTNUU5Z.js";
|
|
159
|
-
import "./chunk-KUG52IAP.js";
|
|
160
|
-
import "./chunk-OBSEKCVK.js";
|
|
161
|
-
import "./chunk-QSJ3HFEF.js";
|
|
162
|
-
import "./chunk-U6VC4MU4.js";
|
|
163
|
-
import "./chunk-WWC7I6TA.js";
|
|
164
|
-
import "./chunk-2THCNKE4.js";
|
|
165
|
-
import "./chunk-OLZBQWZU.js";
|
|
166
|
-
import "./chunk-LCBAMY2M.js";
|
|
167
|
-
import "./chunk-G3SUCT4W.js";
|
|
168
|
-
import "./chunk-4SN6J65J.js";
|
|
169
|
-
import "./chunk-CF7PE763.js";
|
|
170
|
-
import "./chunk-G7Y4GXTY.js";
|
|
171
|
-
import "./chunk-6UBGXX2W.js";
|
|
172
|
-
import "./chunk-U67V476Y.js";
|
|
173
|
-
export {
|
|
174
|
-
runAgentCreateCommand,
|
|
175
|
-
runAgentReadCommand,
|
|
176
|
-
runAgentUpdateCommand
|
|
177
|
-
};
|
package/chunk-2THCNKE4.js
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DEFAULT_NOLO_SERVER_URL
|
|
3
|
-
} from "./chunk-OLZBQWZU.js";
|
|
4
|
-
import {
|
|
5
|
-
NOLO_CLUSTER_SERVERS
|
|
6
|
-
} from "./chunk-LCBAMY2M.js";
|
|
7
|
-
import {
|
|
8
|
-
asOptionalTrimmedString
|
|
9
|
-
} from "./chunk-G3SUCT4W.js";
|
|
10
|
-
import {
|
|
11
|
-
DEFAULT_LOCAL_API_ORIGIN
|
|
12
|
-
} from "./chunk-4SN6J65J.js";
|
|
13
|
-
import {
|
|
14
|
-
normalizeServerOrigin
|
|
15
|
-
} from "./chunk-CF7PE763.js";
|
|
16
|
-
|
|
17
|
-
// packages/cli/cliEnvHelpers.ts
|
|
18
|
-
import { dirname, extname, join } from "node:path";
|
|
19
|
-
import { fileURLToPath } from "node:url";
|
|
20
|
-
function resolveServerUrlFromEnv(env) {
|
|
21
|
-
return normalizeServerOrigin(
|
|
22
|
-
env.NOLO_SERVER || env.BASE_URL || DEFAULT_NOLO_SERVER_URL
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
function isCliArgs(value) {
|
|
26
|
-
return Array.isArray(value);
|
|
27
|
-
}
|
|
28
|
-
function buildServerCandidates(values) {
|
|
29
|
-
return [...new Set(
|
|
30
|
-
values.filter((value) => typeof value === "string" && value.trim().length > 0).map((value) => normalizeServerOrigin(value))
|
|
31
|
-
)];
|
|
32
|
-
}
|
|
33
|
-
function resolveServerUrl(input, env) {
|
|
34
|
-
if (isCliArgs(input)) {
|
|
35
|
-
const explicit = readOption(input, "--server-url") || readOption(input, "--server");
|
|
36
|
-
return normalizeServerOrigin(explicit) || resolveServerUrlFromEnv(env ?? {});
|
|
37
|
-
}
|
|
38
|
-
return resolveServerUrlFromEnv(input);
|
|
39
|
-
}
|
|
40
|
-
function resolveServerCandidates(input, envOrPreferred, preferred) {
|
|
41
|
-
if (isCliArgs(input)) {
|
|
42
|
-
const env2 = envOrPreferred ?? {};
|
|
43
|
-
const explicitServer = resolveServerUrl(input, env2);
|
|
44
|
-
return buildServerCandidates([
|
|
45
|
-
explicitServer,
|
|
46
|
-
preferred?.trim(),
|
|
47
|
-
env2.NOLO_SERVER,
|
|
48
|
-
env2.BASE_URL,
|
|
49
|
-
env2.NOLO_SERVER_URL,
|
|
50
|
-
DEFAULT_NOLO_SERVER_URL,
|
|
51
|
-
...NOLO_CLUSTER_SERVERS
|
|
52
|
-
]);
|
|
53
|
-
}
|
|
54
|
-
const env = input;
|
|
55
|
-
return buildServerCandidates([
|
|
56
|
-
asOptionalTrimmedString(envOrPreferred),
|
|
57
|
-
env.NOLO_SERVER,
|
|
58
|
-
env.BASE_URL,
|
|
59
|
-
env.NOLO_SERVER_URL,
|
|
60
|
-
DEFAULT_NOLO_SERVER_URL,
|
|
61
|
-
...NOLO_CLUSTER_SERVERS
|
|
62
|
-
]);
|
|
63
|
-
}
|
|
64
|
-
function resolveDeleteServerCandidatesFromEnv(env, ...preferredValues) {
|
|
65
|
-
return buildServerCandidates([
|
|
66
|
-
...preferredValues,
|
|
67
|
-
env.NOLO_SERVER,
|
|
68
|
-
env.BASE_URL,
|
|
69
|
-
env.NOLO_SERVER_URL,
|
|
70
|
-
env.READ_DIALOG_BASE,
|
|
71
|
-
DEFAULT_NOLO_SERVER_URL,
|
|
72
|
-
...NOLO_CLUSTER_SERVERS,
|
|
73
|
-
DEFAULT_LOCAL_API_ORIGIN
|
|
74
|
-
]);
|
|
75
|
-
}
|
|
76
|
-
function resolveDeleteServerCandidates(input, envOrPreferred, preferred) {
|
|
77
|
-
if (isCliArgs(input)) {
|
|
78
|
-
const env2 = envOrPreferred ?? {};
|
|
79
|
-
const explicitServer = resolveServerUrl(input, env2);
|
|
80
|
-
return resolveDeleteServerCandidatesFromEnv(env2, explicitServer, preferred?.trim());
|
|
81
|
-
}
|
|
82
|
-
const env = input;
|
|
83
|
-
return resolveDeleteServerCandidatesFromEnv(
|
|
84
|
-
env,
|
|
85
|
-
asOptionalTrimmedString(envOrPreferred)
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
function resolveAuthTokenFromEnv(env, extraEnvKeys = []) {
|
|
89
|
-
for (const key of ["AUTH_TOKEN", "AUTH", "NOLO_MACHINE_API_KEY", ...extraEnvKeys]) {
|
|
90
|
-
const value = env[key];
|
|
91
|
-
if (typeof value === "string" && value.trim()) return value;
|
|
92
|
-
}
|
|
93
|
-
return "";
|
|
94
|
-
}
|
|
95
|
-
function resolveAuthToken(input, envOrExtraEnvKeys, extraEnvKeys = []) {
|
|
96
|
-
if (isCliArgs(input)) {
|
|
97
|
-
const env = envOrExtraEnvKeys ?? {};
|
|
98
|
-
return readOption(input, "--token") || readOption(input, "--machine-key") || resolveAuthTokenFromEnv(env, extraEnvKeys);
|
|
99
|
-
}
|
|
100
|
-
return resolveAuthTokenFromEnv(input, envOrExtraEnvKeys ?? []);
|
|
101
|
-
}
|
|
102
|
-
function parseUserIdFromAuthToken(token) {
|
|
103
|
-
const parts = token.trim().split(".").filter(Boolean);
|
|
104
|
-
const payloadCandidates = parts.length >= 3 ? [parts[1], parts[0]] : [parts[0]];
|
|
105
|
-
for (const payload of payloadCandidates) {
|
|
106
|
-
if (!payload) continue;
|
|
107
|
-
try {
|
|
108
|
-
const parsed = JSON.parse(Buffer.from(payload, "base64").toString("utf8"));
|
|
109
|
-
if (typeof parsed?.userId === "string") return parsed.userId;
|
|
110
|
-
} catch {
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
return "";
|
|
114
|
-
}
|
|
115
|
-
function readOption(args, flag) {
|
|
116
|
-
const index = args.indexOf(flag);
|
|
117
|
-
return index >= 0 ? args[index + 1] : void 0;
|
|
118
|
-
}
|
|
119
|
-
function isCompiledBinary() {
|
|
120
|
-
try {
|
|
121
|
-
const url = import.meta.url;
|
|
122
|
-
return url.startsWith("file:///$bunfs/root/") || url.startsWith("/$bunfs/root/");
|
|
123
|
-
} catch {
|
|
124
|
-
return false;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
function resolveCliEntrypointPath(fromModuleUrl = import.meta.url) {
|
|
128
|
-
if (isCompiledBinary()) {
|
|
129
|
-
return process.execPath;
|
|
130
|
-
}
|
|
131
|
-
const sourcePath = fileURLToPath(fromModuleUrl);
|
|
132
|
-
const ext = extname(sourcePath) || ".ts";
|
|
133
|
-
return join(dirname(sourcePath), `index${ext}`);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export {
|
|
137
|
-
resolveServerUrlFromEnv,
|
|
138
|
-
resolveServerUrl,
|
|
139
|
-
resolveServerCandidates,
|
|
140
|
-
resolveDeleteServerCandidates,
|
|
141
|
-
resolveAuthTokenFromEnv,
|
|
142
|
-
resolveAuthToken,
|
|
143
|
-
parseUserIdFromAuthToken,
|
|
144
|
-
readOption,
|
|
145
|
-
isCompiledBinary,
|
|
146
|
-
resolveCliEntrypointPath
|
|
147
|
-
};
|
package/chunk-2WZXXAQD.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
// packages/ai/agent/toolOutputPolicy.ts
|
|
2
|
-
var MAX_IN_TURN_TOOL_CONTENT_CHARS = 4e3;
|
|
3
|
-
var DEFAULT_TOOL_OUTPUT_PROFILE = {
|
|
4
|
-
maxChars: MAX_IN_TURN_TOOL_CONTENT_CHARS,
|
|
5
|
-
headRatio: 0.5
|
|
6
|
-
};
|
|
7
|
-
var TOOL_OUTPUT_PROFILES = {
|
|
8
|
-
readFile: { maxChars: 4800, headRatio: 0.68, historicalMaxChars: 4800 },
|
|
9
|
-
read_file: { maxChars: 4800, headRatio: 0.68, historicalMaxChars: 4800 },
|
|
10
|
-
readWorkspaceFile: { maxChars: 4800, headRatio: 0.68, historicalMaxChars: 4800 },
|
|
11
|
-
globFiles: { maxChars: 2800, headRatio: 0.85 },
|
|
12
|
-
execShell: { maxChars: 4e3, headRatio: 0.35 },
|
|
13
|
-
runCommand: { maxChars: 4e3, headRatio: 0.35 },
|
|
14
|
-
launchProcess: { maxChars: 2800, headRatio: 0.35 },
|
|
15
|
-
editFile: { maxChars: 1200, headRatio: 0.62 },
|
|
16
|
-
writeFile: { maxChars: 1e3, headRatio: 0.62 },
|
|
17
|
-
readPastedText: { maxChars: 4800, headRatio: 0.5, historicalMaxChars: 4800 },
|
|
18
|
-
// loadSkill 内联的是文档正文(SKILL.md 全文),与 readFile 同类,不该因为工具名未登记就退回
|
|
19
|
-
// DEFAULT 的 4000。历史事故(nolo-plan omitted middle)正是 headRatio 0.5 掐掉中段,把
|
|
20
|
-
// 「MUST / 禁止」所在的中段静默省略。取 4800(与 readFile 同级),不激进放大;headRatio 同 DEFAULT。
|
|
21
|
-
loadSkill: { maxChars: 4800, headRatio: 0.5 }
|
|
22
|
-
};
|
|
23
|
-
function resolveToolOutputProfile(toolName) {
|
|
24
|
-
return (toolName ? TOOL_OUTPUT_PROFILES[toolName] : void 0) ?? DEFAULT_TOOL_OUTPUT_PROFILE;
|
|
25
|
-
}
|
|
26
|
-
function resolveHistoricalToolContentCap(toolName, historicalMaxChars) {
|
|
27
|
-
const profile = toolName ? TOOL_OUTPUT_PROFILES[toolName] : void 0;
|
|
28
|
-
return profile?.historicalMaxChars !== void 0 ? Math.max(historicalMaxChars, profile.historicalMaxChars) : historicalMaxChars;
|
|
29
|
-
}
|
|
30
|
-
function projectToolMessageContent(input) {
|
|
31
|
-
const { content, toolName } = input;
|
|
32
|
-
const maxChars = resolveToolOutputProfile(toolName).maxChars;
|
|
33
|
-
if (content.length <= maxChars) return content;
|
|
34
|
-
return clipToolText(
|
|
35
|
-
content,
|
|
36
|
-
maxChars,
|
|
37
|
-
resolveToolOutputProfile(toolName).headRatio,
|
|
38
|
-
`
|
|
39
|
-
\u2026[\u622A\u65AD\uFF0C\u539F\u59CB\u957F\u5EA6 ${content.length} \u5B57\u7B26]`
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
function clipToolText(content, maxChars, headRatio, marker = "\n\n[... tool output middle omitted; head/tail preserved ...]\n\n") {
|
|
43
|
-
const normalized = content.replace(/\r\n/g, "\n").trim();
|
|
44
|
-
if (normalized.length <= maxChars) return normalized;
|
|
45
|
-
if (maxChars <= marker.length + 2) return normalized.slice(0, maxChars);
|
|
46
|
-
const available = maxChars - marker.length;
|
|
47
|
-
const headChars = Math.max(1, Math.floor(available * headRatio));
|
|
48
|
-
const tailChars = Math.max(1, available - headChars);
|
|
49
|
-
return `${normalized.slice(0, headChars)}${marker}${normalized.slice(-tailChars)}`;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export {
|
|
53
|
-
resolveToolOutputProfile,
|
|
54
|
-
resolveHistoricalToolContentCap,
|
|
55
|
-
projectToolMessageContent,
|
|
56
|
-
clipToolText
|
|
57
|
-
};
|
package/chunk-5ZMIIR23.js
DELETED
|
@@ -1,265 +0,0 @@
|
|
|
1
|
-
// packages/database-engine/cliAuthorityBrokerClient.ts
|
|
2
|
-
import { createConnection } from "node:net";
|
|
3
|
-
var DEFAULT_ITERATOR_PAGE_SIZE = 200;
|
|
4
|
-
var CliAuthorityBrokerUnavailableError = class extends Error {
|
|
5
|
-
reason = "cli_authority_broker_unavailable";
|
|
6
|
-
status = 503;
|
|
7
|
-
endpoint;
|
|
8
|
-
constructor(endpoint, cause) {
|
|
9
|
-
super(`CLI authority broker unavailable at ${endpoint}. Start the local authority broker and retry.`);
|
|
10
|
-
this.name = "CliAuthorityBrokerUnavailableError";
|
|
11
|
-
this.endpoint = endpoint;
|
|
12
|
-
if (cause !== void 0) {
|
|
13
|
-
this.cause = cause;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
var CliAuthorityBrokerTimeoutError = class extends Error {
|
|
18
|
-
reason = "cli_authority_broker_timeout";
|
|
19
|
-
endpoint;
|
|
20
|
-
timeoutMs;
|
|
21
|
-
constructor(endpoint, timeoutMs, cause) {
|
|
22
|
-
super(`CLI authority broker request at ${endpoint} timed out after ${timeoutMs}ms`);
|
|
23
|
-
this.name = "CliAuthorityBrokerTimeoutError";
|
|
24
|
-
this.endpoint = endpoint;
|
|
25
|
-
this.timeoutMs = timeoutMs;
|
|
26
|
-
if (cause !== void 0) {
|
|
27
|
-
this.cause = cause;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
var CliAuthorityBrokerProtocolError = class extends Error {
|
|
32
|
-
code;
|
|
33
|
-
retryable;
|
|
34
|
-
constructor(error) {
|
|
35
|
-
super(error.message);
|
|
36
|
-
this.name = "CliAuthorityBrokerProtocolError";
|
|
37
|
-
this.code = error.code;
|
|
38
|
-
this.retryable = error.retryable === true;
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
function isCliAuthorityBrokerUnavailableError(error) {
|
|
42
|
-
return error instanceof CliAuthorityBrokerUnavailableError || typeof error === "object" && error !== null && error.reason === "cli_authority_broker_unavailable" && error.status === 503;
|
|
43
|
-
}
|
|
44
|
-
function isCliAuthorityBrokerTimeoutError(error) {
|
|
45
|
-
return error instanceof CliAuthorityBrokerTimeoutError || typeof error === "object" && error !== null && error.reason === "cli_authority_broker_timeout";
|
|
46
|
-
}
|
|
47
|
-
function isCliAuthorityBrokerProtocolError(error) {
|
|
48
|
-
return error instanceof CliAuthorityBrokerProtocolError || typeof error === "object" && error !== null && error.name === "CliAuthorityBrokerProtocolError";
|
|
49
|
-
}
|
|
50
|
-
function isBrokerUnavailableCause(error) {
|
|
51
|
-
if (!error) return false;
|
|
52
|
-
if (isCliAuthorityBrokerTimeoutError(error) || isCliAuthorityBrokerProtocolError(error)) {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
if (isCliAuthorityBrokerUnavailableError(error)) {
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
if (typeof error === "object") {
|
|
59
|
-
const code = error.code;
|
|
60
|
-
if (typeof code === "string" && /^(ECONNREFUSED|ENOENT|ECONNRESET|EPIPE|EADDRNOTAVAIL|ENETUNREACH|EHOSTUNREACH)$/i.test(code)) {
|
|
61
|
-
return true;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
65
|
-
if (/timed out/i.test(message)) return false;
|
|
66
|
-
if (/malformed response|protocol mismatch/i.test(message)) return false;
|
|
67
|
-
return /ECONNREFUSED|ENOENT|ECONNRESET|EPIPE|closed connection without response|returned no response/i.test(message);
|
|
68
|
-
}
|
|
69
|
-
function resolveBrokerSocketTarget(endpoint) {
|
|
70
|
-
if (endpoint.startsWith("unix://")) {
|
|
71
|
-
return { kind: "unix", path: endpoint.slice("unix://".length) };
|
|
72
|
-
}
|
|
73
|
-
if (endpoint.startsWith("tcp://")) {
|
|
74
|
-
const url = new URL(endpoint);
|
|
75
|
-
return {
|
|
76
|
-
kind: "tcp",
|
|
77
|
-
host: url.hostname,
|
|
78
|
-
port: Number(url.port)
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
throw new Error(`Unsupported CLI authority broker endpoint: ${endpoint}`);
|
|
82
|
-
}
|
|
83
|
-
function createCliAuthorityBrokerSocketInvoker(options) {
|
|
84
|
-
const target = resolveBrokerSocketTarget(options.endpoint);
|
|
85
|
-
const timeoutMs = options.timeoutMs ?? 5e3;
|
|
86
|
-
return async (request) => {
|
|
87
|
-
return await new Promise((resolve, reject) => {
|
|
88
|
-
const socket = target.kind === "unix" ? createConnection(target.path) : createConnection({ host: target.host, port: target.port });
|
|
89
|
-
let responseBuffer = "";
|
|
90
|
-
let settled = false;
|
|
91
|
-
const timeout = setTimeout(() => {
|
|
92
|
-
finish(() => {
|
|
93
|
-
socket.destroy();
|
|
94
|
-
socket.unref?.();
|
|
95
|
-
reject(new CliAuthorityBrokerTimeoutError(options.endpoint, timeoutMs));
|
|
96
|
-
});
|
|
97
|
-
}, timeoutMs);
|
|
98
|
-
const finish = (fn) => {
|
|
99
|
-
if (settled) return;
|
|
100
|
-
settled = true;
|
|
101
|
-
clearTimeout(timeout);
|
|
102
|
-
fn();
|
|
103
|
-
};
|
|
104
|
-
socket.setEncoding("utf8");
|
|
105
|
-
socket.on("connect", () => {
|
|
106
|
-
socket.write(`${JSON.stringify(request)}
|
|
107
|
-
`);
|
|
108
|
-
});
|
|
109
|
-
socket.on("data", (chunk) => {
|
|
110
|
-
responseBuffer += chunk;
|
|
111
|
-
});
|
|
112
|
-
socket.on("end", () => {
|
|
113
|
-
finish(() => {
|
|
114
|
-
const payload = responseBuffer.trim();
|
|
115
|
-
if (!payload) {
|
|
116
|
-
reject(
|
|
117
|
-
new CliAuthorityBrokerUnavailableError(
|
|
118
|
-
options.endpoint,
|
|
119
|
-
new Error(`CLI authority broker at ${options.endpoint} closed connection without response`)
|
|
120
|
-
)
|
|
121
|
-
);
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
124
|
-
try {
|
|
125
|
-
resolve(JSON.parse(payload));
|
|
126
|
-
} catch (parseError) {
|
|
127
|
-
reject(
|
|
128
|
-
new CliAuthorityBrokerProtocolError({
|
|
129
|
-
code: "MALFORMED_RESPONSE",
|
|
130
|
-
message: `CLI authority broker at ${options.endpoint} returned malformed response: ${parseError instanceof Error ? parseError.message : String(parseError)}`
|
|
131
|
-
})
|
|
132
|
-
);
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
});
|
|
136
|
-
socket.on("error", (error) => {
|
|
137
|
-
finish(() => {
|
|
138
|
-
if (isBrokerUnavailableCause(error)) {
|
|
139
|
-
reject(new CliAuthorityBrokerUnavailableError(options.endpoint, error));
|
|
140
|
-
} else {
|
|
141
|
-
reject(error);
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
});
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
async function invokeBrokerRequest(options, request) {
|
|
149
|
-
try {
|
|
150
|
-
const response = await options.invoke(request);
|
|
151
|
-
if (!response || typeof response !== "object" || typeof response.ok !== "boolean") {
|
|
152
|
-
throw new CliAuthorityBrokerProtocolError({
|
|
153
|
-
code: "MALFORMED_RESPONSE",
|
|
154
|
-
message: `CLI authority broker protocol mismatch at ${options.endpoint}`
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
if (response.ok) {
|
|
158
|
-
if (!response.result || typeof response.result !== "object") {
|
|
159
|
-
throw new CliAuthorityBrokerProtocolError({
|
|
160
|
-
code: "MALFORMED_RESPONSE",
|
|
161
|
-
message: `CLI authority broker protocol mismatch at ${options.endpoint}`
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
return response.result;
|
|
165
|
-
}
|
|
166
|
-
if (!response.error || typeof response.error !== "object" || typeof response.error.code !== "string" || typeof response.error.message !== "string") {
|
|
167
|
-
throw new CliAuthorityBrokerProtocolError({
|
|
168
|
-
code: "MALFORMED_RESPONSE",
|
|
169
|
-
message: `CLI authority broker protocol mismatch at ${options.endpoint}`
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
if (response.error.code === "BROKER_UNAVAILABLE") {
|
|
173
|
-
throw new CliAuthorityBrokerUnavailableError(options.endpoint, response.error);
|
|
174
|
-
}
|
|
175
|
-
throw new CliAuthorityBrokerProtocolError(response.error);
|
|
176
|
-
} catch (error) {
|
|
177
|
-
if (isCliAuthorityBrokerTimeoutError(error)) throw error;
|
|
178
|
-
if (isCliAuthorityBrokerUnavailableError(error)) throw error;
|
|
179
|
-
if (isCliAuthorityBrokerProtocolError(error)) throw error;
|
|
180
|
-
if (isBrokerUnavailableCause(error)) {
|
|
181
|
-
throw new CliAuthorityBrokerUnavailableError(options.endpoint, error);
|
|
182
|
-
}
|
|
183
|
-
throw error;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
function createCliAuthorityBrokerClient(options) {
|
|
187
|
-
const pageSize = options.iteratorPageSize ?? DEFAULT_ITERATOR_PAGE_SIZE;
|
|
188
|
-
return {
|
|
189
|
-
get location() {
|
|
190
|
-
return options.location ?? options.endpoint;
|
|
191
|
-
},
|
|
192
|
-
get status() {
|
|
193
|
-
return options.status ?? "broker";
|
|
194
|
-
},
|
|
195
|
-
async open() {
|
|
196
|
-
await invokeBrokerRequest(options, { type: "status" });
|
|
197
|
-
},
|
|
198
|
-
async close() {
|
|
199
|
-
},
|
|
200
|
-
async get(key) {
|
|
201
|
-
const result = await invokeBrokerRequest(options, { type: "get", key });
|
|
202
|
-
if (result.type !== "get") {
|
|
203
|
-
throw new Error(`CLI authority broker protocol mismatch for get at ${options.endpoint}`);
|
|
204
|
-
}
|
|
205
|
-
return result.value;
|
|
206
|
-
},
|
|
207
|
-
async put(key, value) {
|
|
208
|
-
await invokeBrokerRequest(options, { type: "put", key, value });
|
|
209
|
-
},
|
|
210
|
-
async del(key) {
|
|
211
|
-
await invokeBrokerRequest(options, { type: "del", key });
|
|
212
|
-
},
|
|
213
|
-
async batchWrite(ops) {
|
|
214
|
-
await invokeBrokerRequest(options, { type: "batchWrite", ops });
|
|
215
|
-
},
|
|
216
|
-
createBatch() {
|
|
217
|
-
const ops = [];
|
|
218
|
-
return {
|
|
219
|
-
put(key, value) {
|
|
220
|
-
ops.push({ type: "put", key, value });
|
|
221
|
-
},
|
|
222
|
-
del(key) {
|
|
223
|
-
ops.push({ type: "del", key });
|
|
224
|
-
},
|
|
225
|
-
async write() {
|
|
226
|
-
await invokeBrokerRequest(options, { type: "batchWrite", ops });
|
|
227
|
-
}
|
|
228
|
-
};
|
|
229
|
-
},
|
|
230
|
-
iterator(iteratorOptions = {}) {
|
|
231
|
-
return async function* iterate() {
|
|
232
|
-
let cursor = void 0;
|
|
233
|
-
while (true) {
|
|
234
|
-
const result = await invokeBrokerRequest(options, {
|
|
235
|
-
type: "iterator",
|
|
236
|
-
options: iteratorOptions,
|
|
237
|
-
cursor,
|
|
238
|
-
limit: pageSize
|
|
239
|
-
});
|
|
240
|
-
if (result.type !== "iterator") {
|
|
241
|
-
throw new Error(
|
|
242
|
-
`CLI authority broker protocol mismatch for iterator at ${options.endpoint}`
|
|
243
|
-
);
|
|
244
|
-
}
|
|
245
|
-
for (const entry of result.page.entries) {
|
|
246
|
-
yield entry;
|
|
247
|
-
}
|
|
248
|
-
if (result.page.done || !result.page.nextCursor) return;
|
|
249
|
-
cursor = result.page.nextCursor;
|
|
250
|
-
}
|
|
251
|
-
}();
|
|
252
|
-
}
|
|
253
|
-
};
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
export {
|
|
257
|
-
CliAuthorityBrokerUnavailableError,
|
|
258
|
-
CliAuthorityBrokerTimeoutError,
|
|
259
|
-
CliAuthorityBrokerProtocolError,
|
|
260
|
-
isCliAuthorityBrokerUnavailableError,
|
|
261
|
-
isCliAuthorityBrokerTimeoutError,
|
|
262
|
-
isCliAuthorityBrokerProtocolError,
|
|
263
|
-
createCliAuthorityBrokerSocketInvoker,
|
|
264
|
-
createCliAuthorityBrokerClient
|
|
265
|
-
};
|