nolo-cli 0.212.0-alpha.1 → 0.222.0-alpha.2
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 -2
- package/{_executeModel-KE6MBNUJ.js → _executeModel-4GGQQHOB.js} +111 -82
- package/{accountResolver-4LKIHEKL.js → accountResolver-EK2S4PWF.js} +6 -6
- package/{action-DF5UYSJF.js → action-CK64LS6S.js} +12 -11
- package/{addContentAction-N2YC5IL3.js → addContentAction-GDHDOF4U.js} +18 -17
- package/{addDialogAgentAction-3NKVQCEC.js → addDialogAgentAction-CAKRU3ZT.js} +21 -20
- package/{agentDeleteCommand-NWK7VU4N.js → agentDeleteCommand-BPV2XZL7.js} +128 -119
- package/{agentEmailCommands-UZ4DHEX2.js → agentEmailCommands-EJOS75YL.js} +132 -124
- package/{agentFavoriteCommands-EDK743YA.js → agentFavoriteCommands-2LKGKSUD.js} +7 -8
- package/{agentGrantCommands-RQWK2TEV.js → agentGrantCommands-QQV4N4JW.js} +5 -5
- package/{agentListCommands-HE7L2A6L.js → agentListCommands-HIZODBF3.js} +196 -124
- package/{agentMachineCommands-6TE4MBMP.js → agentMachineCommands-ZMQ2CY7Y.js} +62 -53
- package/{agentProviderCommands-Q5O33MED.js → agentProviderCommands-WKJOAWBP.js} +5 -5
- package/{agentPullCommand-6EM3URVK.js → agentPullCommand-XN6ZPBUW.js} +7 -7
- package/agentRecordCommands-OMXVDLDX.js +176 -0
- package/agentRunCommand-CB34YWMV.js +206 -0
- package/{agentRunControl-OI3LOENH.js → agentRunControl-JNONH3RP.js} +30 -15
- package/{agentRuntimeLocal-HL526DNQ.js → agentRuntimeLocal-QZPFWMLG.js} +52 -45
- package/{agentSlice-TMYP2UEA.js → agentSlice-RD2CDU7T.js} +20 -19
- package/{appDeleteCommands-ZERW4AXY.js → appDeleteCommands-QCCFDIEQ.js} +61 -52
- package/{appDeployCommands-DUWSMYHL.js → appDeployCommands-V2T7TNMQ.js} +61 -52
- package/{appDeployStatusCommands-N2KIE4BF.js → appDeployStatusCommands-6PGH7ZCG.js} +61 -52
- package/{appGetCommands-YVR4NPVY.js → appGetCommands-3L7WWJA6.js} +61 -52
- package/{appListCommands-JS6HOHZS.js → appListCommands-ENJCK4PO.js} +61 -52
- package/{authCommand-FE2C3ZUM.js → authCommand-6V47SYGK.js} +29 -28
- package/{authCommands-HV3EAU3V.js → authCommands-GAJ3NIXO.js} +14 -13
- package/{builtinSkillRegistry-3YOIGEF6.js → builtinSkillRegistry-2ECA42FC.js} +11 -13
- package/{chromeCommands-REEAH4SX.js → chromeCommands-G5UDKVSV.js} +3 -3
- package/{chromeOpsCommands-HEN5AX2J.js → chromeOpsCommands-YKX2QX3A.js} +20 -10
- package/{chunk-DM6UMOEL.js → chunk-27PCUMJI.js} +2 -2
- package/chunk-2CI3ZFWD.js +97 -0
- package/{chunk-HIRC32DV.js → chunk-2GJKRKI6.js} +543 -29
- package/{chunk-SM3NSZJV.js → chunk-2UCBGYO4.js} +20 -1
- package/{chunk-PYRUW7XN.js → chunk-2VUZSVAS.js} +136 -54
- package/chunk-2YGBI2XB.js +30 -0
- package/chunk-2ZKFCIJJ.js +13 -0
- package/{chunk-CJRONOYL.js → chunk-34J5K2YA.js} +19 -75
- package/{chunk-LOEO7LRC.js → chunk-3IK6ILVW.js} +4 -1
- package/{chunk-CTPXME7U.js → chunk-3LMUPOHG.js} +29 -6
- package/chunk-44X52WOJ.js +1621 -0
- package/{chunk-6VLJ6YA7.js → chunk-4DESLZTK.js} +9 -9
- package/{chunk-MYOH447Z.js → chunk-4JVNURX4.js} +1 -1
- package/chunk-5CHGAKRT.js +364 -0
- package/{chunk-YDH3FDFQ.js → chunk-5FUN7EG4.js} +1 -1
- package/{chunk-LKDF3ATR.js → chunk-5RKUPJYL.js} +1 -1
- package/{chunk-ZC3CMUKU.js → chunk-6OVNSQHN.js} +84 -2
- package/{chunk-IF45XG7K.js → chunk-6WU5572L.js} +40 -24
- package/{chunk-OHNELDTO.js → chunk-7EEZJ6BS.js} +11 -152
- package/{chunk-Y6ORVLSS.js → chunk-7ET2U67U.js} +1 -1
- package/{chunk-G7MLNNEX.js → chunk-7JLY4WYF.js} +5 -5
- package/{chunk-P5L7CXOC.js → chunk-7Z6EW7AH.js} +3 -2
- package/{chunk-IIQ6JGRI.js → chunk-AD5EWDFD.js} +2 -2
- package/{chunk-WXYLV624.js → chunk-AIHYNKGV.js} +4 -4
- package/{chunk-HPFCI4SK.js → chunk-AK5O76CC.js} +3 -3
- package/{chunk-Y63ZSOR6.js → chunk-AL3TYDIF.js} +1 -1
- package/{chunk-PJNFNEJE.js → chunk-AMEOV5VZ.js} +59 -13
- package/chunk-AN74ON4G.js +675 -0
- package/{chunk-HRMJUN5J.js → chunk-AQZ6BMRK.js} +1 -1
- package/{chunk-CQ46IRNN.js → chunk-B4GOW4MT.js} +445 -201
- package/{chunk-4KB6WQUL.js → chunk-BGP2EDFG.js} +1 -1
- package/{chunk-NBTY7YJF.js → chunk-BR3GT6MR.js} +1 -0
- package/{chunk-7RFNTILS.js → chunk-BUDVRYES.js} +2 -2
- package/{chunk-D2MDMY2M.js → chunk-BV3FLP2L.js} +47 -1
- package/{chunk-25JZEIXN.js → chunk-C4VAR65S.js} +92 -150
- package/{chunk-AVTVGMDY.js → chunk-C4WTX5TU.js} +2 -2
- package/{chunk-ZL5RAEEB.js → chunk-CIRB724Q.js} +1 -1
- package/{chunk-F6UUQOG6.js → chunk-CKT6QUE2.js} +4 -4
- package/{chunk-M6RL5JCD.js → chunk-CMZ3Z5PT.js} +14 -14
- package/{secretCommands-4QS3HCA2.js → chunk-D726I5AZ.js} +191 -16
- package/{chunk-INSBKSBB.js → chunk-DNKTQ3IN.js} +4 -4
- package/chunk-DVQH4BTR.js +1137 -0
- package/{chunk-SOHTHFV2.js → chunk-DWX2HEVC.js} +91 -132
- package/{chunk-NOMIGOST.js → chunk-EIAI3PPH.js} +116 -124
- package/chunk-EUCFKKDM.js +247 -0
- package/chunk-EWQ3HGNZ.js +90 -0
- package/{chunk-RPQXPZZF.js → chunk-F3GRJO4Z.js} +908 -13
- package/{chunk-GSQNH63I.js → chunk-FIYSMXHY.js} +3 -19
- package/{chunk-KSTEXKL6.js → chunk-FJ23FZXF.js} +76 -31
- package/{chunk-INN4LTAJ.js → chunk-FJK526XH.js} +2 -2
- package/chunk-FS2XP5D7.js +142 -0
- package/{chunk-QT6PKHYJ.js → chunk-FYF2TONJ.js} +5 -5
- package/{chunk-OXME3PEE.js → chunk-GBWGPTA7.js} +2 -1
- package/{chunk-RU4SD66C.js → chunk-GYVCJABP.js} +30 -254
- package/{chunk-YUXQAVRD.js → chunk-HOCHUZQ7.js} +257 -90
- package/{chunk-Y2WUYX4I.js → chunk-HXER7YJF.js} +4 -4
- package/chunk-HYIETXA6.js +99 -0
- package/{chunk-H2TJUNCH.js → chunk-I4EADJ4P.js} +6 -6
- package/{chunk-TCZHTTUU.js → chunk-I7WBYGBP.js} +8 -8
- package/{chunk-5RYBGBQH.js → chunk-IILMY4W4.js} +14 -9
- package/chunk-JA3ICVJY.js +271 -0
- package/{chunk-ZRSNONOB.js → chunk-JWXITTQB.js} +8 -3
- package/{chunk-JNKSDZFS.js → chunk-KEN3N2TN.js} +310 -66
- package/{chunk-LEC5ALIN.js → chunk-KEPOVMF4.js} +1 -1
- package/{chunk-UHJGXRJ4.js → chunk-KQSYAIZR.js} +3 -3
- package/{chunk-4VJAC32I.js → chunk-L5I543VB.js} +3 -2
- package/chunk-LKA64WH4.js +227 -0
- package/{chunk-6OQUPIQF.js → chunk-LVL6GFCM.js} +4 -4
- package/{chunk-UTV2AYEG.js → chunk-MAIITKBT.js} +2 -2
- package/chunk-MBG66ZBH.js +226 -0
- package/{chunk-YUA6OAH5.js → chunk-MDLS23JK.js} +2 -2
- package/{chunk-VL5KOY2C.js → chunk-MK2Q7ZJD.js} +67 -5
- package/{chunk-B7NJ3T4A.js → chunk-MS4NZNKI.js} +10 -10
- package/{chunk-3AKFVZ2I.js → chunk-MYHNBEXD.js} +3 -3
- package/{chunk-VZKUKCA6.js → chunk-MZLE5HQ3.js} +3673 -241
- package/{chunk-AZMYUSVF.js → chunk-N5Z2V73W.js} +1 -1
- package/chunk-NIZ2BXFD.js +526 -0
- package/{chunk-YPD3VJZW.js → chunk-NWP2OYOX.js} +20 -20
- package/{chunk-3FOQHGHN.js → chunk-O6J3OTOP.js} +4 -4
- package/{chunk-3RQVYR4B.js → chunk-OB6DVWPF.js} +197 -65
- package/{chunk-YWSEPJ7C.js → chunk-OBWT45ZU.js} +3 -3
- package/{chunk-5AQR3DGV.js → chunk-ODJ7BVSI.js} +80 -11
- package/{chunk-XJWWBO34.js → chunk-OJKUU3LP.js} +5 -7
- package/{chunk-GNDJKC4B.js → chunk-ON37YXGX.js} +29 -29
- package/{chunk-D5RCRX4A.js → chunk-P5ZJRTCH.js} +9415 -5169
- package/{chunk-6XIE5ZGI.js → chunk-PDCV7P5W.js} +1 -1
- package/{chunk-EZFQ6XRV.js → chunk-PJCIP64Z.js} +861 -59
- package/{chunk-GPO7FCEZ.js → chunk-PJVKMGPZ.js} +1222 -1719
- package/{chunk-CKAHAVMK.js → chunk-PPJYZRSQ.js} +40 -26
- package/chunk-QHEN7NZ7.js +46 -0
- package/{chunk-4KH4J3G5.js → chunk-QNWG52I4.js} +19 -7
- package/{chunk-YGILMZ7N.js → chunk-QVBXJNZ2.js} +1 -1
- package/chunk-RDH5CQ4T.js +1382 -0
- package/{chunk-C6KNNXWU.js → chunk-RGQ4UUWZ.js} +25 -2
- package/{chunk-OWYYDMGJ.js → chunk-S2NTVGA2.js} +4 -2
- package/{chunk-KC4XDTT3.js → chunk-SOF4OWDM.js} +6 -4
- package/{chunk-IAPCBNEE.js → chunk-SQYIK6HO.js} +1 -1
- package/{chunk-22CIEBYO.js → chunk-SVT62ULE.js} +50 -48
- package/{chunk-KIM6CLW5.js → chunk-SY3C4SQ7.js} +42 -15
- package/{chunk-JY5NGFFH.js → chunk-SYTHYBMI.js} +5 -5
- package/{chunk-6NSSLV67.js → chunk-T6DXNI6Z.js} +52 -50
- package/chunk-TLE77UJ5.js +230 -0
- package/{chunk-4VNS5WPM.js → chunk-U67V476Y.js} +1 -8
- package/{chunk-F7CI2ZC5.js → chunk-UAIHKQIA.js} +2 -1
- package/{chunk-MMNYUVLW.js → chunk-UB3D4TRQ.js} +11 -77
- package/{chunk-WPORQFYN.js → chunk-UVLYNWIE.js} +2 -2
- package/{chunk-YOIW77S2.js → chunk-UYOICCYG.js} +29 -19
- package/{chunk-4I7ERB7F.js → chunk-VREDDN25.js} +1 -1
- package/{chunk-JIT6FSXJ.js → chunk-WAE3GFCJ.js} +3 -3
- package/{chunk-IJXYFTV7.js → chunk-WI67URFP.js} +20 -20
- package/{chunk-7OCO4TDT.js → chunk-WJVYAO6P.js} +1 -1
- package/{chunk-T43B7LB2.js → chunk-WKGQSYTB.js} +1 -1
- package/{chunk-YJMRHHGY.js → chunk-WUUH4LWZ.js} +60 -30
- package/{chunk-PDGKOTO7.js → chunk-X7UF53VA.js} +33 -22
- package/{chunk-TY3TIUJK.js → chunk-XI2BWJM5.js} +65 -0
- package/{chunk-OOF4UPC5.js → chunk-XWVCYUUU.js} +16 -159
- package/{chunk-J5JTMQIA.js → chunk-YFLVRVYK.js} +1 -1
- package/{chunk-EYLGAEB4.js → chunk-YGMBIXCF.js} +132 -0
- package/chunk-YL3EFYL3.js +199 -0
- package/{chunk-MMA3LZ3W.js → chunk-YNIYE47Z.js} +1 -1
- package/{chunk-W4S457LU.js → chunk-YU4ZPWVF.js} +41 -5
- package/{chunk-NJR3WKVP.js → chunk-YWWDC3O7.js} +281 -159
- package/chunk-YZMNK53S.js +68 -0
- package/{chunk-FHU44LN3.js → chunk-Z2PITYZN.js} +2179 -552
- package/{chunk-FY7F4Q6X.js → chunk-Z4PCXPUE.js} +2 -2
- package/{cliAgentConfigHelpers-WJBZQTLW.js → cliAgentConfigHelpers-TKYL43MT.js} +15 -16
- package/{cliAuthorityBrokerClient-PM3U6Q6J.js → cliAuthorityBrokerClient-XHH7MH2P.js} +1 -1
- package/{cliAuthorityStoreDriver-TKLXNNTG.js → cliAuthorityStoreDriver-6FE3BJNB.js} +1 -1
- package/{cliEnvHelpers-BVYTMUPJ.js → cliEnvHelpers-VPSJ4XWC.js} +3 -3
- package/{cliExecutor-BWBF2MTI.js → cliExecutor-4MAX3PZL.js} +2 -2
- package/cliLocalAgentRecordReader-MHHD4T7R.js +90 -0
- package/{commandRegistry-VVMTPFAX.js → commandRegistry-5DA5UP7S.js} +106 -98
- package/{contentThunks-N52O67MI.js → contentThunks-5GUQ7FWJ.js} +47 -43
- package/{cooldownCommands-YXLWOXWR.js → cooldownCommands-X7P5M2V5.js} +5 -4
- package/{createAgentAutomationAction-ZC57YRSV.js → createAgentAutomationAction-UCLTHQRI.js} +51 -49
- package/{createDialogAction-VQW5WDYX.js → createDialogAction-UPN774AF.js} +46 -48
- package/{createPageAction-M5VDA7SC.js → createPageAction-JRQ2TA4O.js} +50 -48
- package/{cursorProvider-YGGNMVWX.js → cursorProvider-2RACMEMF.js} +1 -1
- package/{db-HUCI5R4G.js → db-CS4ZJQKV.js} +1 -1
- package/{dbSlice-HP7G4LX3.js → dbSlice-WNON7TOL.js} +17 -16
- package/{deleteFile-7VQGLK2V.js → deleteFile-Q3YDB4ML.js} +9 -9
- package/{desktopFolderProjects-SFY5EZS3.js → desktopFolderProjects-4POAMVJN.js} +2 -2
- package/{dialogCommands-JHMR2N2Y.js → dialogCommands-VRI7VCXH.js} +64 -57
- package/dialogNotifyCommand-6TMCX4D2.js +36 -0
- package/{dialogSlice-GRSVGDTF.js → dialogSlice-LFNVUSAN.js} +42 -40
- package/{dialogUsageCommand-7KCPYGHG.js → dialogUsageCommand-HTVPR2CX.js} +11 -10
- package/{docCreateCommands-F2K3UPSQ.js → docCreateCommands-AMPXMOX3.js} +61 -54
- package/{docDeleteCommands-XGXB5RFT.js → docDeleteCommands-I5WFAEHP.js} +63 -57
- package/{docReadCommands-7HWZZV6J.js → docReadCommands-X53ELNIE.js} +61 -54
- package/{docStore-KNZK6Y2G.js → docStore-2VAWVLWH.js} +21 -20
- package/{docUpdateCommands-OZZ7NQII.js → docUpdateCommands-6QPNDC7M.js} +64 -57
- package/{fetchMessages-M3QU7ZCQ.js → fetchMessages-TQEUZD7H.js} +8 -7
- package/{getPricing-2MNMXEVG.js → getPricing-MB2GBXOK.js} +6 -6
- package/{handleSendMessageAction-SHIH74GJ.js → handleSendMessageAction-AAJOHXOB.js} +193 -301
- package/{hostCredentialCreate-X64WK4JD.js → hostCredentialCreate-GLMJ22M6.js} +123 -114
- package/index.js +29 -29
- package/{keys-BEGDOTRL.js → keys-RWF7UCB4.js} +5 -4
- package/legacyMigration-TF4SYJCZ.js +19 -0
- package/{lib-5KKIBFIT.js → lib-OT5OTXRU.js} +7087 -6664
- package/{localDialogRead-XRLAH4CZ.js → localDialogRead-SVTPA5GY.js} +3 -3
- package/{localFirstLog-DHNOY2NA.js → localFirstLog-OIETGK66.js} +1 -1
- package/localRecall-2J6QPOK2.js +15 -0
- package/{localRuntimeAdapter-A7K3ABA6.js → localRuntimeAdapter-BMP57P42.js} +119 -110
- package/{localRuntimeAuthority-OYH4AE4G.js → localRuntimeAuthority-IBJAT62G.js} +1 -1
- package/{localRuntimeDb-VBIMCWUC.js → localRuntimeDb-N7KHDXS2.js} +2 -2
- package/{machineCommands-DE3MR7CJ.js → machineCommands-3MLIAK5Q.js} +128 -119
- package/{machineInfo-UKPTZO5Y.js → machineInfo-LWHTEBHJ.js} +1 -1
- package/machineWsRunDispatch-FKIGROQF.js +191 -0
- package/{memberThunks-7WJAY5V6.js → memberThunks-ZGLZ36PK.js} +29 -28
- package/{memoryCommands-ASCE5STX.js → memoryCommands-5WC3T66U.js} +4 -4
- package/models-ULVWLSQ6.js +9 -0
- package/{oauthTokenStore-OEERZFUC.js → oauthTokenStore-RUYNYALS.js} +1 -1
- package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-4IC3Y4C6.js} +4 -4
- package/overlay-THLKYIWY.js +11 -0
- package/package.json +2 -2
- package/{pdf-U6KSUEZZ.js → pdf-KE3QI2V7.js} +1 -1
- package/{processSpawn-ZU5QFM43.js → processSpawn-6GEO77KV.js} +1 -1
- package/{profileConfig-KN3N2BLF.js → profileConfig-KOWK4HOG.js} +1 -1
- package/{projectArchive-GGL5HLMD.js → projectArchive-HK63GMF4.js} +52 -50
- package/{providerPresetApply-YXGV6NXB.js → providerPresetApply-OIFQ73LH.js} +19 -12
- package/{providerRegistry-S6UL6UNA.js → providerRegistry-KZ3SDZ3D.js} +10 -10
- package/{read-4VZQODSN.js → read-MRQHJMJ2.js} +10 -10
- package/{readDocTool-AVD32RUJ.js → readDocTool-4BGTXTXA.js} +2 -2
- package/{readlineWorkspace-XKYKNL2I.js → readlineWorkspace-AKAHSCNY.js} +6505 -4634
- package/{removeDialogAgentAction-FKL4BYMR.js → removeDialogAgentAction-B6H7DXFM.js} +23 -22
- package/{runAgentClientLoop-V7E2WBVM.js → runAgentClientLoop-UVAWGEON.js} +81 -79
- package/{runtimeDoctorCommands-QAI3MBKQ.js → runtimeDoctorCommands-FW6XKDUG.js} +12 -12
- package/{runtimeModeArgs-2Y7BALTO.js → runtimeModeArgs-X7DL7PUN.js} +1 -1
- package/secretCommands-LJXOOYA7.js +24 -0
- package/{setDialogExtraReferencesAction-TLIOLWWI.js → setDialogExtraReferencesAction-EVCY3TRW.js} +22 -21
- package/{setPrimaryDialogAgentAction-2OLWRFYR.js → setPrimaryDialogAgentAction-KPFVPHCJ.js} +23 -22
- package/{settingThunks-UGBPCNYF.js → settingThunks-ENOAK2WV.js} +97 -88
- package/{skillDiscovery-XKHROSH2.js → skillDiscovery-B5V23AXP.js} +4 -4
- package/{skillSummaryMarker-42HKSXYY.js → skillSummaryMarker-62UW7HI7.js} +1 -1
- package/{slateToRenderMarkdown-Y5IYN73U.js → slateToRenderMarkdown-R3X74MCX.js} +1 -1
- package/{slateUtils-NGV2NMKM.js → slateUtils-ESQAJ6RN.js} +1 -1
- package/{spaceCommands-4KSLKVNF.js → spaceCommands-DTTNAS2L.js} +61 -53
- package/store-JRVN62NM.js +46 -0
- package/{streamAgentChatTurn-7FR7X2NU.js → streamAgentChatTurn-R5UY25VB.js} +875 -618
- package/{switchDialogAgentAction-UZSAG2N5.js → switchDialogAgentAction-SZ44XDRY.js} +21 -20
- package/{tableCommands-MP6VFSVT.js → tableCommands-HITDSLHS.js} +10 -10
- package/tombstones-FQQMEDOW.js +32 -0
- package/{toolApiClient-HGNO53TC.js → toolApiClient-OGQEBQVX.js} +4 -4
- package/{tools-ZLKCC25W.js → tools-HWFG6GMJ.js} +75 -74
- package/tuiSummaryLlmCaller-HQQZAMYF.js +44 -0
- package/{updateCommands-4744PL3P.js → updateCommands-RJVCRSBP.js} +10 -8
- package/{updateDialogTitleAction-U53ZT7PJ.js → updateDialogTitleAction-KNPOAMVS.js} +48 -46
- package/{usageCommand-F4IPVMIZ.js → usageCommand-FWZCB7AM.js} +11 -10
- package/{usageRebuildCommand-HAW2AD5N.js → usageRebuildCommand-SP2BLNJU.js} +12 -11
- package/userDataMerge-HT2ZVHBJ.js +13 -0
- package/{windowsSelfUpdate-XSQVF2GK.js → windowsSelfUpdate-KERHIAB4.js} +3 -3
- package/{workloadLifecycle-4BEQHMSD.js → workloadLifecycle-DYNEYHV5.js} +7 -6
- package/agentRecordCommands-L3QQ7HZ4.js +0 -167
- package/agentRunCommand-2IFGQHCO.js +0 -196
- package/chunk-3CGG2PAL.js +0 -594
- package/chunk-5XBUWM6I.js +0 -89
- package/chunk-BFM34N54.js +0 -842
- package/chunk-CJEIOP3E.js +0 -0
- package/chunk-CZM5YTZ7.js +0 -977
- package/chunk-EYUBHHFB.js +0 -636
- package/chunk-JTDORD5P.js +0 -415
- package/chunk-NRFKLKRU.js +0 -339
- package/chunk-VPAZOH2D.js +0 -115
- package/chunk-WJZOQR2J.js +0 -151
- package/chunk-ZCWRMUWT.js +0 -89
- package/dist-M676ULYG.js +0 -7314
- package/machineWsRunDispatch-R26P5V36.js +0 -182
- package/models-PJBE6JDV.js +0 -9
- package/tuiSummaryLlmCaller-WC54MVGP.js +0 -160
- package/{chunk-WACI5I6V.js → chunk-2THCNKE4.js} +3 -3
- package/{chunk-2QHFH3DR.js → chunk-47ITIXO7.js} +6 -6
- package/{chunk-GOO6G4PY.js → chunk-CKG3PRZ7.js} +0 -0
- package/{chunk-OQHIVPG4.js → chunk-SNBZZPYH.js} +3 -3
- package/{chunk-AETZ7AD6.js → chunk-W6RFEDN4.js} +3 -3
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
// packages/ai/memory/constants.ts
|
|
2
|
+
var EXPLICIT_REMEMBER_PREFIX_REGEX = /^(你要记住|请记住|以后记住|记住)[,,。.\s::]*/u;
|
|
3
|
+
|
|
4
|
+
// packages/ai/memory/source.ts
|
|
5
|
+
var getMemorySourceKind = (item) => {
|
|
6
|
+
if (item.sourceKind) return item.sourceKind;
|
|
7
|
+
if (item.patternKey === "explicit-remember") return "explicit-user-directive";
|
|
8
|
+
if (item.patternKey === "agent-remember" || item.patternKey === "procedural-runbook")
|
|
9
|
+
return "agent-tool";
|
|
10
|
+
if (item.patternKey?.startsWith("dialog-learning:"))
|
|
11
|
+
return "dialog-learning";
|
|
12
|
+
if (item.tags?.includes("understanding-memory"))
|
|
13
|
+
return "inferred-understanding";
|
|
14
|
+
return "agent-tool";
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// packages/ai/memory/overlay.ts
|
|
18
|
+
var KIND_TITLES = {
|
|
19
|
+
episodic: "Episodic",
|
|
20
|
+
semantic: "Semantic",
|
|
21
|
+
procedural: "Procedural"
|
|
22
|
+
};
|
|
23
|
+
var estimateTokens = (text) => {
|
|
24
|
+
let cjk = 0;
|
|
25
|
+
let ascii = 0;
|
|
26
|
+
for (const ch of text) {
|
|
27
|
+
const code = ch.codePointAt(0) ?? 0;
|
|
28
|
+
if (code >= 13312 && code <= 40959) cjk += 1;
|
|
29
|
+
else ascii += 1;
|
|
30
|
+
}
|
|
31
|
+
return Math.ceil(cjk * 1.5 + ascii / 4);
|
|
32
|
+
};
|
|
33
|
+
var OVERLAY_HEADER_LINES = [
|
|
34
|
+
"--- Memory (\u76F8\u5173\u65F6\u53C2\u8003\uFF0C\u7528\u6237\u8F93\u5165\u4F18\u5148) ---",
|
|
35
|
+
""
|
|
36
|
+
];
|
|
37
|
+
var OVERLAY_HEADER_TOKENS = estimateTokens(OVERLAY_HEADER_LINES.join("\n"));
|
|
38
|
+
var KIND_PRIORITY = {
|
|
39
|
+
semantic: 0,
|
|
40
|
+
procedural: 1,
|
|
41
|
+
episodic: 2
|
|
42
|
+
};
|
|
43
|
+
var FACET_DISPLAY = {
|
|
44
|
+
unfinished: { label: "\u8FD8\u6CA1\u5B9A\u4E0B", strip: "\u8FD8\u6CA1\u51B3\u5B9A" },
|
|
45
|
+
tension: { label: "\u5728\u6743\u8861", strip: "\u5728\u6743\u8861" },
|
|
46
|
+
preference: { label: "\u66F4\u5728\u610F", strip: "\u66F4\u5728\u610F" },
|
|
47
|
+
style: { label: "\u66F4\u504F\u597D", strip: "\u66F4\u559C\u6B22" },
|
|
48
|
+
goal: { label: "\u60F3\u63A8\u8FDB", strip: "\u60F3\u63A8\u8FDB" }
|
|
49
|
+
};
|
|
50
|
+
var INFERRED_SOURCE_KINDS = /* @__PURE__ */ new Set(["inferred-understanding", "dialog-learning"]);
|
|
51
|
+
var isInferredMemory = (item) => INFERRED_SOURCE_KINDS.has(getMemorySourceKind(item));
|
|
52
|
+
var formatFacetContent = (facet, normalized, prefix) => {
|
|
53
|
+
const { label, strip } = FACET_DISPLAY[facet];
|
|
54
|
+
const stripped = normalized.startsWith(strip) ? normalized.slice(strip.length).trim() : normalized;
|
|
55
|
+
return `${prefix}${label} ${stripped}`;
|
|
56
|
+
};
|
|
57
|
+
var normalizeDisplayContent = (item) => {
|
|
58
|
+
const normalized = item.content.trim().replace(EXPLICIT_REMEMBER_PREFIX_REGEX, "").replace(/[。!?!?]+$/u, "").trim();
|
|
59
|
+
if (item.kind === "semantic") {
|
|
60
|
+
if (item.tags?.includes("understanding-memory") && item.facet) {
|
|
61
|
+
return formatFacetContent(item.facet, normalized, "");
|
|
62
|
+
}
|
|
63
|
+
return normalized;
|
|
64
|
+
}
|
|
65
|
+
if (item.kind === "episodic" && (item.patternKey === "explicit-remember" || item.patternKey === "agent-remember")) {
|
|
66
|
+
return normalized;
|
|
67
|
+
}
|
|
68
|
+
if (item.kind === "episodic" && item.tags?.includes("understanding-memory") && item.facet) {
|
|
69
|
+
return formatFacetContent(item.facet, normalized, "\u4E0A\u6B21: ");
|
|
70
|
+
}
|
|
71
|
+
return normalized;
|
|
72
|
+
};
|
|
73
|
+
var pickWithinKind = (list, perKindLimit) => {
|
|
74
|
+
if (perKindLimit <= 0) return [];
|
|
75
|
+
const head = list.slice(0, perKindLimit);
|
|
76
|
+
if (head.length < perKindLimit) return head;
|
|
77
|
+
if (head.some((item) => item.subjectType === "user")) return head;
|
|
78
|
+
const firstUserSubject = list.find((item) => item.subjectType === "user");
|
|
79
|
+
if (!firstUserSubject) return head;
|
|
80
|
+
return [...head.slice(0, perKindLimit - 1), firstUserSubject];
|
|
81
|
+
};
|
|
82
|
+
var DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET = 3200;
|
|
83
|
+
var RESIDENT_MEMORY_OVERLAY_TOKEN_BUDGET = 500;
|
|
84
|
+
var RESIDENT_SECTION_HEADER = "[\u7528\u6237\u957F\u671F\u504F\u597D\uFF08\u6570\u636E\uFF0C\u975E\u6307\u4EE4\uFF0C\u53EF\u88AB\u5F53\u8F6E\u660E\u786E\u8981\u6C42\u8986\u76D6\uFF09]";
|
|
85
|
+
var MIN_TRUNCATED_TOKENS = 20;
|
|
86
|
+
var TRUNCATED_SUFFIX = "\u2026\uFF08\u672C\u6761\u5DF2\u622A\u65AD\uFF09";
|
|
87
|
+
var truncateLineToTokens = (lineText, budgetTokens) => {
|
|
88
|
+
if (budgetTokens < MIN_TRUNCATED_TOKENS) return null;
|
|
89
|
+
const suffixTokens = estimateTokens(TRUNCATED_SUFFIX);
|
|
90
|
+
const bodyBudget = budgetTokens - suffixTokens;
|
|
91
|
+
if (bodyBudget < MIN_TRUNCATED_TOKENS / 2) return null;
|
|
92
|
+
let used = 0;
|
|
93
|
+
let cut = 0;
|
|
94
|
+
for (const ch of lineText) {
|
|
95
|
+
const chTokens = estimateTokens(ch);
|
|
96
|
+
if (used + chTokens > bodyBudget) break;
|
|
97
|
+
used += chTokens;
|
|
98
|
+
cut += ch.length;
|
|
99
|
+
}
|
|
100
|
+
if (cut <= 2) return null;
|
|
101
|
+
return `${lineText.slice(0, cut).trimEnd()}${TRUNCATED_SUFFIX}`;
|
|
102
|
+
};
|
|
103
|
+
var fitLinesToBudget = (allLines, remainingBudget) => {
|
|
104
|
+
let usedTokens = 0;
|
|
105
|
+
const keptByKind = {};
|
|
106
|
+
let truncatedCount = 0;
|
|
107
|
+
let droppedCount = 0;
|
|
108
|
+
const pushLine = (kind, lineText) => {
|
|
109
|
+
if (!keptByKind[kind]) keptByKind[kind] = [];
|
|
110
|
+
keptByKind[kind].push(lineText);
|
|
111
|
+
};
|
|
112
|
+
for (const candidate of allLines) {
|
|
113
|
+
const remaining = remainingBudget - usedTokens;
|
|
114
|
+
if (remaining <= 0) {
|
|
115
|
+
droppedCount += 1;
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
if (candidate.lineTokens <= remaining) {
|
|
119
|
+
usedTokens += candidate.lineTokens;
|
|
120
|
+
pushLine(candidate.kind, candidate.lineText);
|
|
121
|
+
continue;
|
|
122
|
+
}
|
|
123
|
+
const truncated = truncateLineToTokens(candidate.lineText, remaining);
|
|
124
|
+
if (!truncated) {
|
|
125
|
+
droppedCount += 1;
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
128
|
+
usedTokens += estimateTokens(truncated);
|
|
129
|
+
pushLine(candidate.kind, truncated);
|
|
130
|
+
truncatedCount += 1;
|
|
131
|
+
}
|
|
132
|
+
return { keptByKind, truncatedCount, droppedCount };
|
|
133
|
+
};
|
|
134
|
+
var EMPTY_RETRIEVAL_FIT = {
|
|
135
|
+
keptByKind: {},
|
|
136
|
+
truncatedCount: 0,
|
|
137
|
+
droppedCount: 0
|
|
138
|
+
};
|
|
139
|
+
var EMPTY_RESIDENT_FIT = {
|
|
140
|
+
keptLines: [],
|
|
141
|
+
truncatedCount: 0,
|
|
142
|
+
droppedCount: 0
|
|
143
|
+
};
|
|
144
|
+
var fitResidentLines = (lines, remainingBudget) => {
|
|
145
|
+
let usedTokens = 0;
|
|
146
|
+
const keptLines = [];
|
|
147
|
+
let truncatedCount = 0;
|
|
148
|
+
let droppedCount = 0;
|
|
149
|
+
for (const candidate of lines) {
|
|
150
|
+
const remaining = remainingBudget - usedTokens;
|
|
151
|
+
if (remaining <= 0) {
|
|
152
|
+
droppedCount += 1;
|
|
153
|
+
continue;
|
|
154
|
+
}
|
|
155
|
+
if (candidate.lineTokens <= remaining) {
|
|
156
|
+
usedTokens += candidate.lineTokens;
|
|
157
|
+
keptLines.push(candidate.lineText);
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
const truncated = truncateLineToTokens(candidate.lineText, remaining);
|
|
161
|
+
if (!truncated) {
|
|
162
|
+
droppedCount += 1;
|
|
163
|
+
continue;
|
|
164
|
+
}
|
|
165
|
+
usedTokens += estimateTokens(truncated);
|
|
166
|
+
keptLines.push(truncated);
|
|
167
|
+
truncatedCount += 1;
|
|
168
|
+
}
|
|
169
|
+
return { keptLines, truncatedCount, droppedCount };
|
|
170
|
+
};
|
|
171
|
+
var buildBudgetFooter = (fit, residentFit) => {
|
|
172
|
+
const notices = [];
|
|
173
|
+
if (residentFit.truncatedCount > 0) {
|
|
174
|
+
notices.push(`${residentFit.truncatedCount} \u6761\u957F\u671F\u504F\u597D\u56E0\u9884\u7B97\u88AB\u622A\u65AD`);
|
|
175
|
+
}
|
|
176
|
+
if (residentFit.droppedCount > 0) {
|
|
177
|
+
notices.push(`${residentFit.droppedCount} \u6761\u957F\u671F\u504F\u597D\u672A\u663E\u793A`);
|
|
178
|
+
}
|
|
179
|
+
if (fit.truncatedCount > 0) {
|
|
180
|
+
notices.push(`${fit.truncatedCount} \u6761\u56E0\u9884\u7B97\u88AB\u622A\u65AD`);
|
|
181
|
+
}
|
|
182
|
+
if (fit.droppedCount > 0) {
|
|
183
|
+
notices.push(`${fit.droppedCount} \u6761\u672A\u663E\u793A`);
|
|
184
|
+
}
|
|
185
|
+
if (notices.length === 0) return [];
|
|
186
|
+
return [`\uFF08${notices.join("\u3001")}\uFF1B\u9700\u8981\u5B8C\u6574\u5185\u5BB9\u6216\u66F4\u591A\u76F8\u5173\u8BB0\u5FC6\u65F6\u7528 queryMemory \u68C0\u7D22\uFF09`];
|
|
187
|
+
};
|
|
188
|
+
var buildMemoryOverlay = (items, options) => {
|
|
189
|
+
if (items.length === 0) return null;
|
|
190
|
+
const maxTokens = options?.maxTokens ?? DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET;
|
|
191
|
+
const perKindLimit = options?.perKindLimit ?? 3;
|
|
192
|
+
const residentMaxTokens = options?.residentMaxTokens ?? RESIDENT_MEMORY_OVERLAY_TOKEN_BUDGET;
|
|
193
|
+
const residentItems = items.filter((item) => item.resident === true).sort((a, b) => b.createdAt.localeCompare(a.createdAt));
|
|
194
|
+
const retrievalItems = items.filter((item) => item.resident !== true);
|
|
195
|
+
const residentFit = residentItems.length === 0 ? EMPTY_RESIDENT_FIT : fitResidentLines(
|
|
196
|
+
residentItems.map((item) => {
|
|
197
|
+
const lineText = `- ${isInferredMemory(item) ? "\uFF08\u63A8\u65AD\uFF09" : ""}${normalizeDisplayContent(item)}`;
|
|
198
|
+
return { kind: item.kind, lineText, lineTokens: estimateTokens(lineText) };
|
|
199
|
+
}),
|
|
200
|
+
residentMaxTokens - estimateTokens(RESIDENT_SECTION_HEADER)
|
|
201
|
+
);
|
|
202
|
+
const byKind = {
|
|
203
|
+
episodic: [],
|
|
204
|
+
semantic: [],
|
|
205
|
+
procedural: []
|
|
206
|
+
};
|
|
207
|
+
for (const item of retrievalItems) {
|
|
208
|
+
byKind[item.kind].push(item);
|
|
209
|
+
}
|
|
210
|
+
const remainingBudget = maxTokens - OVERLAY_HEADER_TOKENS;
|
|
211
|
+
let retrievalFit = EMPTY_RETRIEVAL_FIT;
|
|
212
|
+
let retrievalSections = [];
|
|
213
|
+
if (remainingBudget > 0 && retrievalItems.length > 0) {
|
|
214
|
+
const allLines = Object.entries(byKind).filter(([, list]) => list.length > 0).flatMap(
|
|
215
|
+
([kind, list]) => pickWithinKind(list, perKindLimit).map((item) => {
|
|
216
|
+
const lineText = `- ${isInferredMemory(item) ? "\uFF08\u63A8\u65AD\uFF09" : ""}${normalizeDisplayContent(item)}`;
|
|
217
|
+
return { kind, lineText, lineTokens: estimateTokens(lineText) };
|
|
218
|
+
})
|
|
219
|
+
).sort((a, b) => (KIND_PRIORITY[a.kind] ?? 99) - (KIND_PRIORITY[b.kind] ?? 99));
|
|
220
|
+
retrievalFit = fitLinesToBudget(allLines, remainingBudget);
|
|
221
|
+
const kindOrder = ["semantic", "procedural", "episodic"];
|
|
222
|
+
retrievalSections = kindOrder.filter(
|
|
223
|
+
(kind) => retrievalFit.keptByKind[kind] && retrievalFit.keptByKind[kind].length > 0
|
|
224
|
+
).map((kind) => {
|
|
225
|
+
return [`[${KIND_TITLES[kind]}]`, ...retrievalFit.keptByKind[kind]].join("\n");
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
const sections = [
|
|
229
|
+
...residentFit.keptLines.length > 0 ? [[RESIDENT_SECTION_HEADER, ...residentFit.keptLines].join("\n")] : [],
|
|
230
|
+
...retrievalSections
|
|
231
|
+
];
|
|
232
|
+
if (sections.length === 0) {
|
|
233
|
+
return OVERLAY_HEADER_LINES.join("\n");
|
|
234
|
+
}
|
|
235
|
+
return [
|
|
236
|
+
...OVERLAY_HEADER_LINES,
|
|
237
|
+
...sections,
|
|
238
|
+
...buildBudgetFooter(retrievalFit, residentFit)
|
|
239
|
+
].join("\n");
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
export {
|
|
243
|
+
EXPLICIT_REMEMBER_PREFIX_REGEX,
|
|
244
|
+
DEFAULT_MEMORY_OVERLAY_TOKEN_BUDGET,
|
|
245
|
+
RESIDENT_MEMORY_OVERLAY_TOKEN_BUDGET,
|
|
246
|
+
buildMemoryOverlay
|
|
247
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// packages/ai/tools/agent/quotaCircuitBreaker.ts
|
|
2
|
+
var QUOTA_ERROR_PATTERNS = [
|
|
3
|
+
/429/,
|
|
4
|
+
/quota/i,
|
|
5
|
+
/access_terminated_error/i,
|
|
6
|
+
/(?:weekly|monthly)\s*(?:\([^)]*\)\s*)?usage\s+limit/i,
|
|
7
|
+
/rate\s*limit/i,
|
|
8
|
+
/too\s*many\s*requests/i,
|
|
9
|
+
/额度/,
|
|
10
|
+
/上限/,
|
|
11
|
+
/用尽/,
|
|
12
|
+
/CliProviderQuotaError/i
|
|
13
|
+
];
|
|
14
|
+
var AUTH_ERROR_PATTERNS = [
|
|
15
|
+
/401/,
|
|
16
|
+
/403/,
|
|
17
|
+
/unauthori[sz]ed/i,
|
|
18
|
+
/authentication\s+failed/i,
|
|
19
|
+
/invalid\s+(api[-\s]?key|token|credential)/i,
|
|
20
|
+
/api[-\s]?key\s+(invalid|missing|not\s+found)/i,
|
|
21
|
+
/token\s*(invalid|expired|失效|过期)/i,
|
|
22
|
+
/未授权/,
|
|
23
|
+
/认证失败/,
|
|
24
|
+
/凭证/
|
|
25
|
+
];
|
|
26
|
+
function isCliProviderQuotaErrorShape(error) {
|
|
27
|
+
if (!error || typeof error !== "object") return false;
|
|
28
|
+
const e = error;
|
|
29
|
+
return e.name === "CliProviderQuotaError" || typeof e.message === "string" && e.message.startsWith("[QUOTA_LIMITED:");
|
|
30
|
+
}
|
|
31
|
+
function isQuotaExhaustedError(error) {
|
|
32
|
+
if (!error) return false;
|
|
33
|
+
if (isCliProviderQuotaErrorShape(error)) return true;
|
|
34
|
+
if (error instanceof Error) {
|
|
35
|
+
return QUOTA_ERROR_PATTERNS.some((pattern) => pattern.test(error.message));
|
|
36
|
+
}
|
|
37
|
+
if (typeof error === "string") {
|
|
38
|
+
return QUOTA_ERROR_PATTERNS.some((pattern) => pattern.test(error));
|
|
39
|
+
}
|
|
40
|
+
const maybeStatus = error.status;
|
|
41
|
+
const maybeStatusCode = error.statusCode;
|
|
42
|
+
const status = typeof maybeStatus === "number" ? maybeStatus : maybeStatusCode;
|
|
43
|
+
if (status === 429) return true;
|
|
44
|
+
if (status === 403) {
|
|
45
|
+
const message = extractMessage(error);
|
|
46
|
+
return QUOTA_ERROR_PATTERNS.some((pattern) => pattern.test(message));
|
|
47
|
+
}
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
function extractMessage(error) {
|
|
51
|
+
if (typeof error === "string") return error;
|
|
52
|
+
if (error instanceof Error) return error.message;
|
|
53
|
+
if (error && typeof error === "object") {
|
|
54
|
+
const m = error.message;
|
|
55
|
+
return typeof m === "string" ? m : "";
|
|
56
|
+
}
|
|
57
|
+
return "";
|
|
58
|
+
}
|
|
59
|
+
function parseResetsInMs(text) {
|
|
60
|
+
if (!text) return void 0;
|
|
61
|
+
const sanitized = text.replace(/\btrace[\s_-]?id\b[^)\n]*/gi, " ").replace(/\b[0-9a-f]{16,}\b/gi, " ");
|
|
62
|
+
const unitMs = (n, unit) => {
|
|
63
|
+
if (/^d/.test(unit)) return n * 24 * 3600 * 1e3;
|
|
64
|
+
if (/^h/.test(unit)) return n * 3600 * 1e3;
|
|
65
|
+
if (/^m/.test(unit)) return n * 60 * 1e3;
|
|
66
|
+
if (/^s/.test(unit)) return n * 1e3;
|
|
67
|
+
return NaN;
|
|
68
|
+
};
|
|
69
|
+
const re = /(\d+)\s*(d(?:ay|ays)?|h(?:r|rs|our|ours)?|m(?:in|ins|inute|inutes)?|s(?:ec|ecs|econd|econds)?)/gi;
|
|
70
|
+
const MAX_SINGLE_MATCH_MS = 7 * 24 * 3600 * 1e3;
|
|
71
|
+
let totalMs = 0;
|
|
72
|
+
let matched = false;
|
|
73
|
+
let m;
|
|
74
|
+
while ((m = re.exec(sanitized)) !== null) {
|
|
75
|
+
const ms = unitMs(Number(m[1]), m[2]);
|
|
76
|
+
if (!Number.isFinite(ms) || ms > MAX_SINGLE_MATCH_MS) continue;
|
|
77
|
+
totalMs += ms;
|
|
78
|
+
matched = true;
|
|
79
|
+
}
|
|
80
|
+
return matched ? totalMs : void 0;
|
|
81
|
+
}
|
|
82
|
+
var DEFAULT_QUOTA_BREAKER_MS = 6 * 3600 * 1e3;
|
|
83
|
+
var DEFAULT_AGENT_NOT_FOUND_BREAKER_MS = 15 * 60 * 1e3;
|
|
84
|
+
|
|
85
|
+
export {
|
|
86
|
+
QUOTA_ERROR_PATTERNS,
|
|
87
|
+
AUTH_ERROR_PATTERNS,
|
|
88
|
+
isQuotaExhaustedError,
|
|
89
|
+
parseResetsInMs
|
|
90
|
+
};
|