nolo-cli 0.213.0 → 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-CUJLCFWR.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-WERAONNY.js → addContentAction-GDHDOF4U.js} +18 -17
- package/{addDialogAgentAction-7VI7YRML.js → addDialogAgentAction-CAKRU3ZT.js} +21 -20
- package/{agentDeleteCommand-XJORXPGU.js → agentDeleteCommand-BPV2XZL7.js} +128 -119
- package/{agentEmailCommands-XTYYFR6Z.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-OBLRBLHS.js → agentListCommands-HIZODBF3.js} +155 -92
- package/{agentMachineCommands-5FMT3OT5.js → agentMachineCommands-ZMQ2CY7Y.js} +62 -54
- 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-TAMHJQSR.js → agentRunControl-JNONH3RP.js} +30 -15
- package/{agentRuntimeLocal-SOO2OPJG.js → agentRuntimeLocal-QZPFWMLG.js} +52 -45
- package/{agentSlice-CHR6KOZN.js → agentSlice-RD2CDU7T.js} +20 -19
- package/{appDeleteCommands-GUP6P5YE.js → appDeleteCommands-QCCFDIEQ.js} +61 -53
- package/{appDeployCommands-MH2FX4O5.js → appDeployCommands-V2T7TNMQ.js} +61 -53
- package/{appDeployStatusCommands-SUHN3HPJ.js → appDeployStatusCommands-6PGH7ZCG.js} +61 -53
- package/{appGetCommands-YWDEX6Z4.js → appGetCommands-3L7WWJA6.js} +61 -53
- package/{appListCommands-ZQVMLPAY.js → appListCommands-ENJCK4PO.js} +61 -53
- package/{authCommand-PWX2ZNUP.js → authCommand-6V47SYGK.js} +29 -28
- package/{authCommands-HV3EAU3V.js → authCommands-GAJ3NIXO.js} +14 -13
- package/{builtinSkillRegistry-2QETTQPM.js → builtinSkillRegistry-2ECA42FC.js} +11 -13
- package/{chromeCommands-REEAH4SX.js → chromeCommands-G5UDKVSV.js} +3 -3
- package/{chromeOpsCommands-DIVM2K3T.js → chromeOpsCommands-YKX2QX3A.js} +20 -10
- package/{chunk-CRHOO2ZR.js → chunk-27PCUMJI.js} +2 -2
- package/chunk-2CI3ZFWD.js +97 -0
- package/{chunk-NSAPDIN2.js → chunk-2GJKRKI6.js} +541 -31
- package/{chunk-SM3NSZJV.js → chunk-2UCBGYO4.js} +20 -1
- package/{chunk-PYRUW7XN.js → chunk-2VUZSVAS.js} +136 -54
- package/{chunk-YB3YZK56.js → chunk-2WZXXAQD.js} +1 -67
- package/chunk-2YGBI2XB.js +30 -0
- package/chunk-2ZKFCIJJ.js +13 -0
- package/{chunk-QG4AOSON.js → chunk-34J5K2YA.js} +13 -32
- 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-INUFILG6.js → chunk-5RKUPJYL.js} +1 -1
- package/{chunk-ZC3CMUKU.js → chunk-6OVNSQHN.js} +84 -2
- package/{chunk-MOIJOHA5.js → chunk-6WU5572L.js} +36 -25
- package/{chunk-IXNGOHV5.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-NJLL224W.js → chunk-AD5EWDFD.js} +2 -2
- package/{chunk-J2NHJ7WX.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-ALQ3657A.js → chunk-AMEOV5VZ.js} +32 -12
- package/chunk-AN74ON4G.js +675 -0
- package/{chunk-HRMJUN5J.js → chunk-AQZ6BMRK.js} +1 -1
- package/{chunk-XHQC4PXX.js → chunk-B4GOW4MT.js} +424 -194
- 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-SVYO6AO7.js → chunk-BV3FLP2L.js} +41 -1
- package/{chunk-RZOV7OMV.js → chunk-C4VAR65S.js} +83 -141
- package/{chunk-COFEN36Z.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-X7SDOJUM.js → chunk-CMZ3Z5PT.js} +14 -14
- package/{secretCommands-LXDWOLZ6.js → chunk-D726I5AZ.js} +191 -16
- package/{chunk-TAKB25RM.js → chunk-DNKTQ3IN.js} +4 -4
- package/chunk-DVQH4BTR.js +1137 -0
- package/{chunk-WYDI6TGM.js → chunk-DWX2HEVC.js} +91 -132
- package/{chunk-5MQRBSMW.js → chunk-EIAI3PPH.js} +111 -113
- package/chunk-EUCFKKDM.js +247 -0
- package/chunk-EWQ3HGNZ.js +90 -0
- package/{chunk-RPQXPZZF.js → chunk-F3GRJO4Z.js} +908 -13
- package/{chunk-YTF4WH7J.js → chunk-FIYSMXHY.js} +1 -1
- package/{chunk-75XIDFBW.js → chunk-FJ23FZXF.js} +72 -28
- package/{chunk-INN4LTAJ.js → chunk-FJK526XH.js} +2 -2
- package/chunk-FS2XP5D7.js +142 -0
- package/{chunk-FUGMREBO.js → chunk-FYF2TONJ.js} +5 -5
- package/{chunk-PCLE46CE.js → chunk-GBWGPTA7.js} +2 -1
- package/{chunk-TX5EYMGT.js → chunk-GYVCJABP.js} +30 -254
- package/{chunk-3UKL3HPD.js → chunk-HOCHUZQ7.js} +8 -78
- package/{chunk-EHSZD5OI.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-6DWMYIUY.js → chunk-IILMY4W4.js} +14 -9
- package/chunk-JA3ICVJY.js +271 -0
- package/{chunk-ZRSNONOB.js → chunk-JWXITTQB.js} +8 -3
- package/{chunk-H4UOTUOX.js → chunk-KEN3N2TN.js} +148 -18
- 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-QHPRUL4O.js → chunk-LVL6GFCM.js} +4 -4
- package/{chunk-H5HF7TJA.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-MDB67IWP.js → chunk-MS4NZNKI.js} +10 -10
- package/{chunk-VO4WSAVP.js → chunk-MYHNBEXD.js} +3 -3
- package/{chunk-ZXOUUDCG.js → chunk-MZLE5HQ3.js} +3654 -231
- package/{chunk-AZMYUSVF.js → chunk-N5Z2V73W.js} +1 -1
- package/{chunk-V5Y3R6BT.js → chunk-NIZ2BXFD.js} +213 -210
- package/{chunk-KFLT5KAD.js → chunk-NWP2OYOX.js} +20 -20
- package/{chunk-G2BQWAVT.js → chunk-O6J3OTOP.js} +4 -4
- package/{chunk-VNYYOX3V.js → chunk-OB6DVWPF.js} +141 -48
- package/{chunk-YWSEPJ7C.js → chunk-OBWT45ZU.js} +3 -3
- package/{chunk-ZNWI6OVT.js → chunk-ODJ7BVSI.js} +80 -11
- package/{chunk-XJWWBO34.js → chunk-OJKUU3LP.js} +5 -7
- package/{chunk-HUBHAQK2.js → chunk-ON37YXGX.js} +29 -29
- package/{chunk-UYD5HQ6T.js → chunk-P5ZJRTCH.js} +5429 -1752
- package/{chunk-6XIE5ZGI.js → chunk-PDCV7P5W.js} +1 -1
- package/{chunk-WRYQ35LQ.js → chunk-PJCIP64Z.js} +859 -57
- package/{chunk-7QTZCMKL.js → chunk-PJVKMGPZ.js} +1089 -1639
- package/{chunk-A7TFUNZO.js → chunk-PPJYZRSQ.js} +6 -2
- package/chunk-QHEN7NZ7.js +46 -0
- package/{chunk-OQPKUBPB.js → chunk-QNWG52I4.js} +19 -7
- package/{chunk-YGILMZ7N.js → chunk-QVBXJNZ2.js} +1 -1
- package/{chunk-7BT37FK3.js → chunk-RDH5CQ4T.js} +648 -131
- 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-RLBNLZVC.js → chunk-SQYIK6HO.js} +1 -1
- package/{chunk-YJAFKXMU.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-WMTBPBMP.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-R5O4QAWG.js → chunk-UB3D4TRQ.js} +11 -77
- package/{chunk-WPORQFYN.js → chunk-UVLYNWIE.js} +2 -2
- package/{chunk-NOKUNJON.js → chunk-UYOICCYG.js} +29 -19
- package/{chunk-4I7ERB7F.js → chunk-VREDDN25.js} +1 -1
- package/{chunk-O2TZF4AI.js → chunk-WAE3GFCJ.js} +3 -3
- package/{chunk-H7PPIYWP.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-BBJ22CLB.js → chunk-WUUH4LWZ.js} +60 -30
- package/{chunk-4T2WNOY7.js → chunk-X7UF53VA.js} +33 -22
- package/{chunk-TY3TIUJK.js → chunk-XI2BWJM5.js} +65 -0
- package/{chunk-LLRPJECG.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-7Y4YTDQF.js → chunk-YWWDC3O7.js} +281 -159
- package/chunk-YZMNK53S.js +68 -0
- package/{chunk-RSHTSUEG.js → chunk-Z2PITYZN.js} +2060 -602
- 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-W63CYRZJ.js → commandRegistry-5DA5UP7S.js} +105 -97
- package/{contentThunks-U7PL5MQD.js → contentThunks-5GUQ7FWJ.js} +47 -43
- package/{cooldownCommands-TIGUHXTD.js → cooldownCommands-X7P5M2V5.js} +5 -4
- package/{createAgentAutomationAction-OLBQDD6R.js → createAgentAutomationAction-UCLTHQRI.js} +51 -49
- package/{createDialogAction-SVH6B3SB.js → createDialogAction-UPN774AF.js} +46 -48
- package/{createPageAction-F4DIWZ2Z.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-BVH2YZPQ.js → dbSlice-WNON7TOL.js} +17 -16
- package/{deleteFile-5YOEKV4U.js → deleteFile-Q3YDB4ML.js} +9 -9
- package/{desktopFolderProjects-SFY5EZS3.js → desktopFolderProjects-4POAMVJN.js} +2 -2
- package/{dialogCommands-KHIEPY3M.js → dialogCommands-VRI7VCXH.js} +64 -57
- package/dialogNotifyCommand-6TMCX4D2.js +36 -0
- package/{dialogSlice-ZCTDV2PZ.js → dialogSlice-LFNVUSAN.js} +42 -40
- package/{dialogUsageCommand-7KCPYGHG.js → dialogUsageCommand-HTVPR2CX.js} +11 -10
- package/{docCreateCommands-DPMZI7G5.js → docCreateCommands-AMPXMOX3.js} +61 -55
- package/{docDeleteCommands-IRQQLUBT.js → docDeleteCommands-I5WFAEHP.js} +63 -57
- package/{docReadCommands-LK37XH6L.js → docReadCommands-X53ELNIE.js} +61 -55
- package/{docStore-V2KECILA.js → docStore-2VAWVLWH.js} +21 -20
- package/{docUpdateCommands-O6T3HJHH.js → docUpdateCommands-6QPNDC7M.js} +64 -58
- package/{fetchMessages-NR4KNQLO.js → fetchMessages-TQEUZD7H.js} +8 -7
- package/{getPricing-2MNMXEVG.js → getPricing-MB2GBXOK.js} +6 -6
- package/{handleSendMessageAction-2PE25WM3.js → handleSendMessageAction-AAJOHXOB.js} +194 -302
- package/{hostCredentialCreate-S233UMAP.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-7NNDVVF7.js → localDialogRead-SVTPA5GY.js} +3 -3
- package/{localFirstLog-DHNOY2NA.js → localFirstLog-OIETGK66.js} +1 -1
- package/localRecall-2J6QPOK2.js +15 -0
- package/{localRuntimeAdapter-KY6WXNBR.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-Q6HA3IXF.js → machineCommands-3MLIAK5Q.js} +128 -119
- package/{machineInfo-UKPTZO5Y.js → machineInfo-LWHTEBHJ.js} +1 -1
- package/machineWsRunDispatch-FKIGROQF.js +191 -0
- package/{memberThunks-7EDJADWU.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-DRTDIMEV.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-4V2RMG7N.js → read-MRQHJMJ2.js} +10 -10
- package/{readDocTool-BH6ATGQO.js → readDocTool-4BGTXTXA.js} +2 -2
- package/{readlineWorkspace-2W4WRCOU.js → readlineWorkspace-AKAHSCNY.js} +7982 -6274
- package/{removeDialogAgentAction-LYAZGNKW.js → removeDialogAgentAction-B6H7DXFM.js} +23 -22
- package/{runAgentClientLoop-J2VQBS2Z.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-OCRPGPYH.js → setDialogExtraReferencesAction-EVCY3TRW.js} +22 -21
- package/{setPrimaryDialogAgentAction-HFJDQIBU.js → setPrimaryDialogAgentAction-KPFVPHCJ.js} +23 -22
- package/{settingThunks-RAMHMTGM.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-KVJZVKVO.js → spaceCommands-DTTNAS2L.js} +61 -53
- package/store-JRVN62NM.js +46 -0
- package/{streamAgentChatTurn-GHBMJJ6S.js → streamAgentChatTurn-R5UY25VB.js} +875 -618
- package/{switchDialogAgentAction-EBRMW3RA.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-EWKCPKMS.js → tools-HWFG6GMJ.js} +75 -74
- package/tuiSummaryLlmCaller-HQQZAMYF.js +44 -0
- package/{updateCommands-ZQYU6SCI.js → updateCommands-RJVCRSBP.js} +10 -8
- package/{updateDialogTitleAction-5GGMBTDF.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-257DV2T6.js → windowsSelfUpdate-KERHIAB4.js} +3 -3
- package/{workloadLifecycle-4C42SVBD.js → workloadLifecycle-DYNEYHV5.js} +6 -6
- package/agentRecordCommands-ZQ7SVYGG.js +0 -167
- package/agentRunCommand-WS7IGO2W.js +0 -196
- package/chunk-3CGG2PAL.js +0 -594
- package/chunk-5XBUWM6I.js +0 -89
- package/chunk-CJEIOP3E.js +0 -0
- package/chunk-EHGEOAHI.js +0 -636
- package/chunk-FW6YHHLI.js +0 -842
- package/chunk-GPVRUGGY.js +0 -115
- package/chunk-HSVBJRF4.js +0 -339
- package/chunk-WJZOQR2J.js +0 -151
- package/chunk-ZCWRMUWT.js +0 -89
- package/dist-M676ULYG.js +0 -7314
- package/machineWsRunDispatch-WWJQ6WR3.js +0 -182
- package/models-PJBE6JDV.js +0 -9
- package/tuiSummaryLlmCaller-ALQYUUWB.js +0 -189
- 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
|
@@ -3,13 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-HS7MLR74.js";
|
|
4
4
|
import {
|
|
5
5
|
performServerProxyFetchWithRetry
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GYVCJABP.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchServerSyncedCredential
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
buildSkillGuidancePromptBlock
|
|
12
|
-
} from "./chunk-WRYQ35LQ.js";
|
|
9
|
+
} from "./chunk-NWP2OYOX.js";
|
|
13
10
|
import {
|
|
14
11
|
CREDENTIAL_HYGIENE_RULE,
|
|
15
12
|
DELETE_SAFETY_RED_LINE,
|
|
@@ -25,7 +22,7 @@ import {
|
|
|
25
22
|
compileContextLayers,
|
|
26
23
|
detectDispatchIntentFromMessages,
|
|
27
24
|
resolveToolGuidedSections
|
|
28
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-EIAI3PPH.js";
|
|
29
26
|
import {
|
|
30
27
|
convertMessagesToResponsesInput,
|
|
31
28
|
getUsageRequestOptions,
|
|
@@ -34,33 +31,40 @@ import {
|
|
|
34
31
|
resolveReasoningReplayOptions,
|
|
35
32
|
shouldStripReasoningContentForOutbound,
|
|
36
33
|
stablePromptCacheKey
|
|
37
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-MAIITKBT.js";
|
|
38
35
|
import {
|
|
39
36
|
resolveAgentCallPlan,
|
|
40
37
|
resolveClientWire
|
|
41
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-KQSYAIZR.js";
|
|
42
39
|
import {
|
|
43
40
|
createFileCredentialBroker
|
|
44
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-SNBZZPYH.js";
|
|
42
|
+
import {
|
|
43
|
+
WORKTREE_ISOLATION_PRELUDE,
|
|
44
|
+
buildSkillGuidancePromptBlock
|
|
45
|
+
} from "./chunk-PJCIP64Z.js";
|
|
46
|
+
import {
|
|
47
|
+
canonicalizeToolNames
|
|
48
|
+
} from "./chunk-6OVNSQHN.js";
|
|
45
49
|
import {
|
|
46
50
|
MEMORY_USE_GUIDANCE,
|
|
47
51
|
buildUserResponseLanguageContext,
|
|
48
52
|
wrapHistoricalSummaryWithReplayGuard
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import {
|
|
51
|
-
canonicalizeToolNames
|
|
52
|
-
} from "./chunk-ZCWRMUWT.js";
|
|
53
|
+
} from "./chunk-L5I543VB.js";
|
|
53
54
|
import {
|
|
54
55
|
buildProviderAuthHeaders
|
|
55
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-I7WBYGBP.js";
|
|
57
|
+
import {
|
|
58
|
+
toErrorMessage
|
|
59
|
+
} from "./chunk-HNMXYYJR.js";
|
|
60
|
+
import {
|
|
61
|
+
asTrimmedString
|
|
62
|
+
} from "./chunk-3EUW3WEO.js";
|
|
56
63
|
import {
|
|
57
64
|
clampReasoningEffort,
|
|
58
65
|
getModelConfig,
|
|
59
66
|
isModelSupportReasoningEffort
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import {
|
|
62
|
-
toErrorMessage
|
|
63
|
-
} from "./chunk-HNMXYYJR.js";
|
|
67
|
+
} from "./chunk-2UCBGYO4.js";
|
|
64
68
|
import {
|
|
65
69
|
isRecord
|
|
66
70
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -69,19 +73,16 @@ import {
|
|
|
69
73
|
isFireworksKimiModel,
|
|
70
74
|
isPlatformMimoProviderModel,
|
|
71
75
|
resolveFireworksKimiModel
|
|
72
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-CKG3PRZ7.js";
|
|
73
77
|
import {
|
|
74
78
|
API_ENDPOINTS
|
|
75
79
|
} from "./chunk-LCBAMY2M.js";
|
|
76
|
-
import {
|
|
77
|
-
isLoopbackUrl
|
|
78
|
-
} from "./chunk-4SN6J65J.js";
|
|
79
|
-
import {
|
|
80
|
-
asTrimmedString
|
|
81
|
-
} from "./chunk-3EUW3WEO.js";
|
|
82
80
|
import {
|
|
83
81
|
asOptionalTrimmedString
|
|
84
82
|
} from "./chunk-G3SUCT4W.js";
|
|
83
|
+
import {
|
|
84
|
+
isLoopbackUrl
|
|
85
|
+
} from "./chunk-4SN6J65J.js";
|
|
85
86
|
|
|
86
87
|
// packages/agent-runtime/responsesConversationState.ts
|
|
87
88
|
function supportsResponsesConversationState(agent) {
|
|
@@ -317,6 +318,14 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
|
|
|
317
318
|
content: PLATFORM_RISK_CONTROL_RULE
|
|
318
319
|
},
|
|
319
320
|
{ id: "consultation-mode", owner: "platform", cacheScope: "static", content: buildConsultationModeBlock() },
|
|
321
|
+
// Git 任务隔离:仓库改动前置,系统层固定块(原 worktree-isolation skill 上移,
|
|
322
|
+
// 不受 skill 配置 disabled 影响)。排在既有平台块之后,不扰动其顺序契约。
|
|
323
|
+
{
|
|
324
|
+
id: "worktree-isolation-prelude",
|
|
325
|
+
owner: "platform",
|
|
326
|
+
cacheScope: "static",
|
|
327
|
+
content: WORKTREE_ISOLATION_PRELUDE
|
|
328
|
+
},
|
|
320
329
|
{ id: "identity", owner: "platform", cacheScope: "session", content: identitySection },
|
|
321
330
|
{ id: "user-response-language", owner: "platform", cacheScope: "session", content: buildUserResponseLanguageContext({ language: safeLanguage }) },
|
|
322
331
|
{ id: "startup-protocol", owner: "platform", cacheScope: "static", content: startupProtocol },
|
|
@@ -805,11 +814,25 @@ var generateRequestBody = ({
|
|
|
805
814
|
};
|
|
806
815
|
|
|
807
816
|
// packages/ai/chat/resolveDirectRequestApiKey.ts
|
|
808
|
-
var DIRECT_API_KEY_UNAVAILABLE_MESSAGE = "\
|
|
817
|
+
var DIRECT_API_KEY_UNAVAILABLE_MESSAGE = "\u5F53\u524D\u6B65\u9AA4\u9700\u8981\u63D0\u4F9B API \u51ED\u636E\uFF0C\u8BF7\u91CD\u65B0\u63D0\u4F9B\u5BC6\u94A5\uFF0C\u6216\u786E\u8BA4\u672C\u673A\u51ED\u636E\u53EF\u7528\u3002";
|
|
809
818
|
var DirectApiKeyResolutionError = class extends Error {
|
|
810
|
-
|
|
811
|
-
|
|
819
|
+
kind = "credential_missing";
|
|
820
|
+
credentialRef;
|
|
821
|
+
constructor(credentialRefOrOptions, message = DIRECT_API_KEY_UNAVAILABLE_MESSAGE) {
|
|
822
|
+
let resolvedRef;
|
|
823
|
+
let resolvedMessage = DIRECT_API_KEY_UNAVAILABLE_MESSAGE;
|
|
824
|
+
if (typeof credentialRefOrOptions === "string") {
|
|
825
|
+
resolvedRef = credentialRefOrOptions;
|
|
826
|
+
if (message !== DIRECT_API_KEY_UNAVAILABLE_MESSAGE) {
|
|
827
|
+
resolvedMessage = message;
|
|
828
|
+
}
|
|
829
|
+
} else if (credentialRefOrOptions && typeof credentialRefOrOptions === "object") {
|
|
830
|
+
resolvedRef = credentialRefOrOptions.credentialRef;
|
|
831
|
+
resolvedMessage = credentialRefOrOptions.message ?? DIRECT_API_KEY_UNAVAILABLE_MESSAGE;
|
|
832
|
+
}
|
|
833
|
+
super(resolvedMessage);
|
|
812
834
|
this.name = "DirectApiKeyResolutionError";
|
|
835
|
+
this.credentialRef = resolvedRef;
|
|
813
836
|
}
|
|
814
837
|
};
|
|
815
838
|
var createDirectCredentialBroker = createFileCredentialBroker;
|
|
@@ -840,7 +863,7 @@ async function resolveDirectRequestApiKey(agentConfig, options) {
|
|
|
840
863
|
return trimmed;
|
|
841
864
|
}
|
|
842
865
|
}
|
|
843
|
-
throw new DirectApiKeyResolutionError();
|
|
866
|
+
throw new DirectApiKeyResolutionError(credentialRef);
|
|
844
867
|
}
|
|
845
868
|
async function safeBrokerGet(broker, ref) {
|
|
846
869
|
try {
|
|
@@ -905,7 +928,9 @@ var fetchDirectly = async (params) => {
|
|
|
905
928
|
// 可选参数,直接传递
|
|
906
929
|
});
|
|
907
930
|
} catch (error) {
|
|
908
|
-
|
|
931
|
+
if (!(error instanceof DirectApiKeyResolutionError) && error?.kind !== "credential_missing") {
|
|
932
|
+
console.error("[fetchDirectly] \u7F51\u7EDC\u8BF7\u6C42\u5931\u8D25:", error);
|
|
933
|
+
}
|
|
909
934
|
throw error;
|
|
910
935
|
}
|
|
911
936
|
};
|
|
@@ -960,7 +985,11 @@ var performFetchRequest = async (params) => {
|
|
|
960
985
|
};
|
|
961
986
|
return resolveAgentCallPlan(planConfig, {}).transport === "server-proxy" ? await fetchWithServerProxy(params) : await fetchDirectly(params);
|
|
962
987
|
} catch (error) {
|
|
988
|
+
if (error instanceof DirectApiKeyResolutionError || error?.kind === "credential_missing") {
|
|
989
|
+
throw error;
|
|
990
|
+
}
|
|
963
991
|
console.error("[performFetchRequest] \u8BF7\u6C42\u8FC7\u7A0B\u4E2D\u53D1\u751F\u9519\u8BEF:", error);
|
|
992
|
+
if (params.preserveStructuredError) throw error;
|
|
964
993
|
const friendlyMsg = formatFriendlyNetworkErrorMessage(error);
|
|
965
994
|
throw new Error(
|
|
966
995
|
friendlyMsg.startsWith("\u7F51\u7EDC\u8BF7\u6C42\u5931\u8D25") ? friendlyMsg : `\u7F51\u7EDC\u8BF7\u6C42\u5931\u8D25: ${friendlyMsg}`
|
|
@@ -1253,6 +1282,7 @@ export {
|
|
|
1253
1282
|
generateRequestBody,
|
|
1254
1283
|
CONFIRMATION_INPUT_KEYS,
|
|
1255
1284
|
stripModelToolArgs,
|
|
1285
|
+
DirectApiKeyResolutionError,
|
|
1256
1286
|
performFetchRequest,
|
|
1257
1287
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
1258
1288
|
parseToolCallArguments,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-P5ZJRTCH.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ON37YXGX.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Z2PITYZN.js";
|
|
11
11
|
import {
|
|
12
12
|
applyToolSurfaceConstraints
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SOF4OWDM.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveLocalRuntimeEnvFromPolicy
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-47ITIXO7.js";
|
|
17
17
|
import {
|
|
18
18
|
asRecordOrEmpty
|
|
19
19
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -21,33 +21,33 @@ import {
|
|
|
21
21
|
ownedAgentKey
|
|
22
22
|
} from "./chunk-M2EJHDJP.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import {
|
|
27
|
-
isRecord
|
|
28
|
-
} from "./chunk-KUG52IAP.js";
|
|
29
|
-
import {
|
|
30
|
-
parseUserIdFromAuthToken
|
|
31
|
-
} from "./chunk-WACI5I6V.js";
|
|
32
|
-
import {
|
|
33
|
-
DEFAULT_NOLO_SERVER_URL
|
|
34
|
-
} from "./chunk-OLZBQWZU.js";
|
|
24
|
+
asTrimmedNonEmptyStringArray
|
|
25
|
+
} from "./chunk-I42VC5KR.js";
|
|
35
26
|
import {
|
|
36
27
|
readPipeText,
|
|
37
28
|
spawnProcess
|
|
38
29
|
} from "./chunk-4O22PGNQ.js";
|
|
39
30
|
import {
|
|
40
31
|
t
|
|
41
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-OB6DVWPF.js";
|
|
42
33
|
import {
|
|
43
|
-
|
|
44
|
-
} from "./chunk-
|
|
34
|
+
toErrorMessage
|
|
35
|
+
} from "./chunk-HNMXYYJR.js";
|
|
36
|
+
import {
|
|
37
|
+
asTrimmedString
|
|
38
|
+
} from "./chunk-3EUW3WEO.js";
|
|
39
|
+
import {
|
|
40
|
+
isRecord
|
|
41
|
+
} from "./chunk-KUG52IAP.js";
|
|
45
42
|
import {
|
|
46
43
|
asOptionalPositiveFiniteNumber
|
|
47
44
|
} from "./chunk-U6VC4MU4.js";
|
|
48
45
|
import {
|
|
49
|
-
|
|
50
|
-
} from "./chunk-
|
|
46
|
+
parseUserIdFromAuthToken
|
|
47
|
+
} from "./chunk-2THCNKE4.js";
|
|
48
|
+
import {
|
|
49
|
+
DEFAULT_NOLO_SERVER_URL
|
|
50
|
+
} from "./chunk-OLZBQWZU.js";
|
|
51
51
|
import {
|
|
52
52
|
asOptionalTrimmedString
|
|
53
53
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -1071,7 +1071,18 @@ async function handleConnectorRunMessage(message, send, executeCli, runtimeEnv,
|
|
|
1071
1071
|
content: runContent,
|
|
1072
1072
|
model: runModel,
|
|
1073
1073
|
trace: runTrace,
|
|
1074
|
-
artifacts
|
|
1074
|
+
artifacts,
|
|
1075
|
+
// Preserve host facts across the JSON transport. In particular do not
|
|
1076
|
+
// turn missing stopReason into success for legacy local runtimes.
|
|
1077
|
+
stopReason: result.stopReason,
|
|
1078
|
+
pending: result.pending,
|
|
1079
|
+
hasPendingInteraction: result.hasPendingInteraction,
|
|
1080
|
+
handoff: result.handoff,
|
|
1081
|
+
error: result.error,
|
|
1082
|
+
errorMessage: result.errorMessage,
|
|
1083
|
+
runtimeProviderFailure: result.runtimeProviderFailure,
|
|
1084
|
+
emptyAssistantFallbackReason: result.emptyAssistantFallbackReason,
|
|
1085
|
+
usage: result.usage
|
|
1075
1086
|
}
|
|
1076
1087
|
}));
|
|
1077
1088
|
} catch (error) {
|
|
@@ -14,6 +14,8 @@ var evidenceKey = (ownerId, id) => `mem2-v-${enc(ownerId)}-${enc(id)}`;
|
|
|
14
14
|
var relationKey = (ownerId, id) => `mem2-r-${enc(ownerId)}-${enc(id)}`;
|
|
15
15
|
var relationFromIndexKey = (ownerId, from, relationId) => `mem2-rf-${enc(ownerId)}-${enc(from)}-${enc(relationId)}`;
|
|
16
16
|
var relationToIndexKey = (ownerId, to, relationId) => `mem2-rt-${enc(ownerId)}-${enc(to)}-${enc(relationId)}`;
|
|
17
|
+
var relationFromIndexPrefix = (ownerId, from) => `mem2-rf-${enc(ownerId)}-${enc(from)}-`;
|
|
18
|
+
var relationToIndexPrefix = (ownerId, to) => `mem2-rt-${enc(ownerId)}-${enc(to)}-`;
|
|
17
19
|
var readIndexed = async (db, prefix) => {
|
|
18
20
|
const refs = [];
|
|
19
21
|
for await (const [, value] of db.iterator({ ...rangeOf(prefix), reverse: false })) {
|
|
@@ -22,6 +24,9 @@ var readIndexed = async (db, prefix) => {
|
|
|
22
24
|
const rows = await Promise.all(refs.map((key) => db.get(key).catch(() => null)));
|
|
23
25
|
return rows.filter((row) => !!row);
|
|
24
26
|
};
|
|
27
|
+
var putMemoryEntityVNext = async (db, entity) => {
|
|
28
|
+
await db.put(entityKey(entity.ownerId, entity.id), entity);
|
|
29
|
+
};
|
|
25
30
|
var getMemoryEntityVNext = async (db, ownerId, entityId) => db.get(entityKey(ownerId, entityId)).catch(() => null);
|
|
26
31
|
var listMemoryEntitiesVNext = async (db, ownerId) => {
|
|
27
32
|
const rows = [];
|
|
@@ -38,8 +43,36 @@ var loadMemoryVNextCatalog = async (db, ownerId) => {
|
|
|
38
43
|
const states = (await Promise.all(entities.map((entity) => listMemoryStatesForEntityVNext(db, ownerId, entity.id)))).flat();
|
|
39
44
|
return { entities, states };
|
|
40
45
|
};
|
|
46
|
+
var putMemoryStateVNext = async (db, state) => {
|
|
47
|
+
const entity = await getMemoryEntityVNext(db, state.ownerId, state.entityId);
|
|
48
|
+
if (!entity) {
|
|
49
|
+
throw new Error(
|
|
50
|
+
`memory state ${state.id} references missing entity ${state.entityId} (owner ${state.ownerId})`
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
for (const evidenceId of state.evidenceIds) {
|
|
54
|
+
const ev = await getMemoryEvidenceVNext(db, state.ownerId, evidenceId);
|
|
55
|
+
if (!ev) {
|
|
56
|
+
throw new Error(
|
|
57
|
+
`memory state ${state.id} references missing evidence ${evidenceId} (owner ${state.ownerId})`
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
const batch = db.batch();
|
|
62
|
+
_appendStateBatch(batch, state);
|
|
63
|
+
await batch.write();
|
|
64
|
+
};
|
|
41
65
|
var getMemoryStateVNext = async (db, ownerId, stateId) => db.get(stateKey(ownerId, stateId)).catch(() => null);
|
|
42
66
|
var listMemoryStatesForEntityVNext = (db, ownerId, entityId) => readIndexed(db, stateEntityIndexPrefix(ownerId, entityId));
|
|
67
|
+
var retireMemoryStateVNext = async (db, ownerId, stateId, retiredAt) => {
|
|
68
|
+
const existing = await getMemoryStateVNext(db, ownerId, stateId);
|
|
69
|
+
if (!existing) {
|
|
70
|
+
throw new Error(`cannot retire missing memory state: ${stateId} (owner ${ownerId})`);
|
|
71
|
+
}
|
|
72
|
+
const retired = { ...existing, retiredAt };
|
|
73
|
+
await db.put(stateKey(ownerId, stateId), retired);
|
|
74
|
+
return retired;
|
|
75
|
+
};
|
|
43
76
|
var putMemoryEvidenceVNext = async (db, evidence) => {
|
|
44
77
|
await db.put(evidenceKey(evidence.ownerId, evidence.id), evidence);
|
|
45
78
|
};
|
|
@@ -52,6 +85,30 @@ var getMemoryEvidenceVNextStrict = async (db, ownerId, evidenceId) => {
|
|
|
52
85
|
throw error;
|
|
53
86
|
}
|
|
54
87
|
};
|
|
88
|
+
var putMemoryRelationVNext = async (db, relation) => {
|
|
89
|
+
for (const [side, ref] of [
|
|
90
|
+
["from", relation.from],
|
|
91
|
+
["to", relation.to]
|
|
92
|
+
]) {
|
|
93
|
+
const resolved = await getMemoryEntityVNext(db, relation.ownerId, ref) ?? await getMemoryStateVNext(db, relation.ownerId, ref) ?? await getMemoryEvidenceVNext(db, relation.ownerId, ref);
|
|
94
|
+
if (!resolved) {
|
|
95
|
+
throw new Error(
|
|
96
|
+
`memory relation ${relation.id} references missing ${side} ${ref} (owner ${relation.ownerId})`
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
const batch = db.batch();
|
|
101
|
+
_appendRelationBatch(batch, relation);
|
|
102
|
+
await batch.write();
|
|
103
|
+
};
|
|
104
|
+
var listMemoryRelationsFromVNext = (db, ownerId, from) => readIndexed(db, relationFromIndexPrefix(ownerId, from));
|
|
105
|
+
var listMemoryRelationsToVNext = (db, ownerId, to) => readIndexed(db, relationToIndexPrefix(ownerId, to));
|
|
106
|
+
var __test__ = {
|
|
107
|
+
entityKey,
|
|
108
|
+
stateKey,
|
|
109
|
+
evidenceKey,
|
|
110
|
+
relationKey
|
|
111
|
+
};
|
|
55
112
|
var _appendEntityBatch = (batch, entity) => {
|
|
56
113
|
batch.put(entityKey(entity.ownerId, entity.id), entity);
|
|
57
114
|
};
|
|
@@ -74,13 +131,21 @@ var _appendRelationBatch = (batch, relation) => {
|
|
|
74
131
|
};
|
|
75
132
|
|
|
76
133
|
export {
|
|
134
|
+
putMemoryEntityVNext,
|
|
77
135
|
getMemoryEntityVNext,
|
|
136
|
+
listMemoryEntitiesVNext,
|
|
78
137
|
loadMemoryVNextCatalog,
|
|
138
|
+
putMemoryStateVNext,
|
|
79
139
|
getMemoryStateVNext,
|
|
80
140
|
listMemoryStatesForEntityVNext,
|
|
141
|
+
retireMemoryStateVNext,
|
|
81
142
|
putMemoryEvidenceVNext,
|
|
82
143
|
getMemoryEvidenceVNext,
|
|
83
144
|
getMemoryEvidenceVNextStrict,
|
|
145
|
+
putMemoryRelationVNext,
|
|
146
|
+
listMemoryRelationsFromVNext,
|
|
147
|
+
listMemoryRelationsToVNext,
|
|
148
|
+
__test__,
|
|
84
149
|
_appendEntityBatch,
|
|
85
150
|
_appendEvidenceBatch,
|
|
86
151
|
_appendStateBatch,
|
|
@@ -1,179 +1,62 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YWWDC3O7.js";
|
|
4
4
|
import {
|
|
5
5
|
prepareAndPersistMessage,
|
|
6
6
|
uiAskChoiceFunc,
|
|
7
7
|
uiAskChoiceFunctionSchema
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MZLE5HQ3.js";
|
|
9
9
|
import {
|
|
10
10
|
require_format
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BUDVRYES.js";
|
|
12
12
|
import {
|
|
13
13
|
require_formatISO
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UVLYNWIE.js";
|
|
15
15
|
import {
|
|
16
16
|
read,
|
|
17
17
|
readAndWait,
|
|
18
18
|
removeCachedEntity,
|
|
19
19
|
upsertSSREntity,
|
|
20
20
|
write
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-44X52WOJ.js";
|
|
22
22
|
import {
|
|
23
23
|
isDevelopment
|
|
24
24
|
} from "./chunk-AGP3YSEC.js";
|
|
25
25
|
import {
|
|
26
26
|
selectIdentityUserId
|
|
27
27
|
} from "./chunk-PXYBUFDB.js";
|
|
28
|
-
import {
|
|
29
|
-
buildBuiltinObjectSkillReference
|
|
30
|
-
} from "./chunk-EHGEOAHI.js";
|
|
31
28
|
import {
|
|
32
29
|
extractCustomId
|
|
33
30
|
} from "./chunk-M2EJHDJP.js";
|
|
34
31
|
import {
|
|
35
|
-
isRecord
|
|
36
|
-
} from "./chunk-KUG52IAP.js";
|
|
37
|
-
import {
|
|
38
|
-
PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
|
|
39
|
-
PLATFORM_HOSTED_KIMI_PROVIDER
|
|
40
|
-
} from "./chunk-GOO6G4PY.js";
|
|
41
|
-
import {
|
|
42
|
-
createAgentKey,
|
|
43
32
|
createMemoryKey,
|
|
44
33
|
memoryOwnerRange,
|
|
45
34
|
memorySubjectKindRange
|
|
46
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-SYTHYBMI.js";
|
|
47
36
|
import {
|
|
48
37
|
createDialogKey,
|
|
49
38
|
dialogMessageRange
|
|
50
|
-
} from "./chunk-
|
|
51
|
-
import {
|
|
52
|
-
asOptionalPositiveFiniteNumber
|
|
53
|
-
} from "./chunk-U6VC4MU4.js";
|
|
39
|
+
} from "./chunk-OJKUU3LP.js";
|
|
54
40
|
import {
|
|
55
41
|
asTrimmedString
|
|
56
42
|
} from "./chunk-3EUW3WEO.js";
|
|
43
|
+
import {
|
|
44
|
+
isRecord
|
|
45
|
+
} from "./chunk-KUG52IAP.js";
|
|
46
|
+
import {
|
|
47
|
+
asOptionalPositiveFiniteNumber
|
|
48
|
+
} from "./chunk-U6VC4MU4.js";
|
|
57
49
|
import {
|
|
58
50
|
asOptionalTrimmedString
|
|
59
51
|
} from "./chunk-G3SUCT4W.js";
|
|
60
52
|
import {
|
|
61
53
|
__toESM
|
|
62
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-U67V476Y.js";
|
|
63
55
|
|
|
64
56
|
// packages/chat/dialog/actions/createDialogAction.ts
|
|
65
57
|
var import_format = __toESM(require_format());
|
|
66
58
|
var import_formatISO = __toESM(require_formatISO());
|
|
67
59
|
|
|
68
|
-
// packages/chat/dialog/objectAssistantRegistry.ts
|
|
69
|
-
var OBJECT_ASSISTANT_TO_SKILL = {
|
|
70
|
-
page: "doc",
|
|
71
|
-
table: "table",
|
|
72
|
-
image: "image",
|
|
73
|
-
file: "file"
|
|
74
|
-
};
|
|
75
|
-
var BUILTIN_OBJECT_ASSISTANT_IDS = {
|
|
76
|
-
page: "builtin-doc-assistant-v1",
|
|
77
|
-
table: "builtin-table-assistant-v1",
|
|
78
|
-
image: "builtin-image-assistant-v1",
|
|
79
|
-
file: "builtin-file-assistant-v1"
|
|
80
|
-
};
|
|
81
|
-
var resolveBuiltinObjectAssistantKindByKey = (agentKey, userId) => {
|
|
82
|
-
if (!agentKey || !userId) return null;
|
|
83
|
-
const entries = Object.entries(BUILTIN_OBJECT_ASSISTANT_IDS);
|
|
84
|
-
for (const [kind, id] of entries) {
|
|
85
|
-
if (agentKey === createAgentKey.private(userId, id)) {
|
|
86
|
-
return kind;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return null;
|
|
90
|
-
};
|
|
91
|
-
var buildBuiltinObjectAssistantAgent = (kind, userId) => {
|
|
92
|
-
const id = BUILTIN_OBJECT_ASSISTANT_IDS[kind];
|
|
93
|
-
const dbKey = createAgentKey.private(userId, id);
|
|
94
|
-
const now = Date.now();
|
|
95
|
-
const common = {
|
|
96
|
-
id,
|
|
97
|
-
dbKey,
|
|
98
|
-
type: "agent" /* AGENT */,
|
|
99
|
-
userId,
|
|
100
|
-
isPublic: false,
|
|
101
|
-
provider: PLATFORM_HOSTED_KIMI_PROVIDER,
|
|
102
|
-
model: PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
|
|
103
|
-
apiSource: "platform",
|
|
104
|
-
useServerProxy: true,
|
|
105
|
-
inputPrice: 0,
|
|
106
|
-
outputPrice: 0,
|
|
107
|
-
createdAt: now,
|
|
108
|
-
updatedAt: String(now),
|
|
109
|
-
dialogCount: 0,
|
|
110
|
-
messageCount: 0,
|
|
111
|
-
tokenCount: 0,
|
|
112
|
-
tags: ["builtin", "sidebar-assistant", kind],
|
|
113
|
-
references: [buildBuiltinObjectSkillReference(OBJECT_ASSISTANT_TO_SKILL[kind], userId)]
|
|
114
|
-
};
|
|
115
|
-
switch (kind) {
|
|
116
|
-
case "page":
|
|
117
|
-
return {
|
|
118
|
-
...common,
|
|
119
|
-
name: "\u6587\u6863\u52A9\u624B",
|
|
120
|
-
introduction: "\u5E2E\u4F60\u6DA6\u8272\u3001\u6539\u5199\u3001\u7EED\u5199\u3001\u6574\u7406\u7ED3\u6784\u4E0E\u6392\u7248\u7684\u6587\u6863\u52A9\u624B\u3002",
|
|
121
|
-
greeting: {
|
|
122
|
-
text: "\u4F60\u597D\uFF0C\u6211\u662F\u6587\u6863\u52A9\u624B \u270D\uFE0F\n\n\u4F60\u53EF\u4EE5\u76F4\u63A5\u5BF9\u6211\u8BF4\uFF1A\n\u2022 \u5E2E\u6211\u6DA6\u8272\u8FD9\u7BC7\u6587\u7AE0\n\u2022 \u628A\u7ED3\u6784\u6574\u7406\u5F97\u66F4\u6E05\u695A\n\u2022 \u7ED9\u8FD9\u4E00\u6BB5\u6539\u6210\u66F4\u53E3\u8BED/\u66F4\u4E13\u4E1A\n\u2022 \u5E2E\u6211\u8865\u4E00\u4E2A\u5F00\u5934\u6216\u7ED3\u5C3E",
|
|
123
|
-
menu: [
|
|
124
|
-
{ id: "polish", label: "\u6DA6\u8272\u5F53\u524D\u6587\u6863", userMessage: "\u5E2E\u6211\u6DA6\u8272\u5F53\u524D\u6587\u6863\uFF0C\u8BA9\u8868\u8FBE\u66F4\u987A" },
|
|
125
|
-
{ id: "structure", label: "\u6574\u7406\u7ED3\u6784", userMessage: "\u5E2E\u6211\u6574\u7406\u5F53\u524D\u6587\u6863\u7ED3\u6784\uFF0C\u770B\u770B\u6807\u9898\u548C\u6BB5\u843D\u600E\u4E48\u66F4\u6E05\u695A" },
|
|
126
|
-
{ id: "continue", label: "\u7EE7\u7EED\u5199", userMessage: "\u57FA\u4E8E\u5F53\u524D\u6587\u6863\u7EE7\u7EED\u5F80\u4E0B\u5199" }
|
|
127
|
-
]
|
|
128
|
-
},
|
|
129
|
-
prompt: "\u4F60\u662F\u4E00\u4E2A\u6587\u6863\u7F16\u8F91\u52A9\u624B\u3002\u4F18\u5148\u57FA\u4E8E\u5F53\u524D\u6587\u6863\u505A\u589E\u91CF\u4FEE\u6539\uFF0C\u4E0D\u8981\u8131\u79BB\u73B0\u6709\u5185\u5BB9\u7A7A\u60F3\u91CD\u5199\u3002\u91CD\u70B9\u5E2E\u52A9\u7528\u6237\u6DA6\u8272\u3001\u6539\u5199\u3001\u7EED\u5199\u3001\u91CD\u7EC4\u7ED3\u6784\u3001\u751F\u6210\u6807\u9898\u548C\u6458\u8981\u3002\u6D89\u53CA\u4FEE\u6539\u65F6\uFF0C\u4F18\u5148\u8BFB\u53D6\u5F53\u524D\u6587\u6863\u771F\u503C\uFF0C\u518D\u8FDB\u884C\u5B9A\u70B9\u7F16\u8F91\u3002"
|
|
130
|
-
};
|
|
131
|
-
case "table":
|
|
132
|
-
return {
|
|
133
|
-
...common,
|
|
134
|
-
name: "\u8868\u683C\u52A9\u624B",
|
|
135
|
-
introduction: "\u5E2E\u4F60\u7406\u89E3\u8868\u7ED3\u6784\u3001\u8865\u6570\u636E\u3001\u6539\u6570\u636E\u548C\u6574\u7406\u5B57\u6BB5\u7684\u8868\u683C\u52A9\u624B\u3002",
|
|
136
|
-
greeting: {
|
|
137
|
-
text: "\u4F60\u597D\uFF0C\u6211\u662F\u8868\u683C\u52A9\u624B \u{1F4CA}\n\n\u4F60\u53EF\u4EE5\u76F4\u63A5\u5BF9\u6211\u8BF4\uFF1A\n\u2022 \u5E2E\u6211\u770B\u770B\u8FD9\u5F20\u8868\u8FD8\u7F3A\u4EC0\u4E48\u5B57\u6BB5\n\u2022 \u7ED9\u8868\u91CC\u52A0\u4E00\u6761\u8BB0\u5F55\n\u2022 \u628A\u67D0\u4E00\u5217\u7EDF\u4E00\u6539\u4E00\u4E0B\n\u2022 \u6309\u8FD9\u4E2A\u6761\u4EF6\u5E2E\u6211\u6574\u7406\u6570\u636E",
|
|
138
|
-
menu: [
|
|
139
|
-
{ id: "inspect", label: "\u770B\u770B\u8FD9\u5F20\u8868", userMessage: "\u5E2E\u6211\u770B\u770B\u5F53\u524D\u8FD9\u5F20\u8868\u7684\u7ED3\u6784\u548C\u53EF\u6539\u8FDB\u70B9" },
|
|
140
|
-
{ id: "add-row", label: "\u65B0\u589E\u6570\u636E", userMessage: "\u6211\u60F3\u5F80\u5F53\u524D\u8868\u91CC\u65B0\u589E\u4E00\u6761\u6570\u636E" },
|
|
141
|
-
{ id: "fix-data", label: "\u6279\u91CF\u6539\u6570\u636E", userMessage: "\u6211\u60F3\u4FEE\u6539\u5F53\u524D\u8868\u91CC\u7684\u90E8\u5206\u6570\u636E" }
|
|
142
|
-
]
|
|
143
|
-
},
|
|
144
|
-
prompt: "\u4F60\u662F\u4E00\u4E2A\u8868\u683C\u7F16\u8F91\u52A9\u624B\u3002\u4F18\u5148\u5E2E\u52A9\u7528\u6237\u7406\u89E3\u5F53\u524D\u8868\u7684\u5B57\u6BB5\u3001\u8BB0\u5F55\u548C\u7ED3\u6784\uFF0C\u7136\u540E\u518D\u505A\u65B0\u589E\u3001\u67E5\u8BE2\u3001\u66F4\u65B0\u6216\u5220\u9664\u3002\u5BF9\u7528\u6237\u8BF4\u201C\u8FD9\u4E2A\u8868\u91CC\u7684 xxx \u600E\u4E48\u600E\u4E48\u6539\u201D\u65F6\uFF0C\u9ED8\u8BA4\u7406\u89E3\u4E3A\u5F53\u524D\u805A\u7126\u6216\u6700\u8FD1\u63D0\u5230\u7684\u8868\uFF1B\u5FC5\u8981\u65F6\u5148\u786E\u8BA4\u76EE\u6807\u884C/\u5B57\u6BB5\u3002"
|
|
145
|
-
};
|
|
146
|
-
case "image":
|
|
147
|
-
return {
|
|
148
|
-
...common,
|
|
149
|
-
name: "\u56FE\u7247\u52A9\u624B",
|
|
150
|
-
introduction: "\u5F53\u524D\u5148\u4F5C\u4E3A\u56FE\u7247\u5206\u6790\u4E0E\u5904\u7406\u5EFA\u8BAE\u5165\u53E3\uFF0C\u540E\u7EED\u53EF\u6269\u5C55\u4E3A\u66F4\u5B8C\u6574\u7684\u56FE\u7247\u5DE5\u4F5C\u6D41\u52A9\u624B\u3002",
|
|
151
|
-
greeting: "\u4F60\u597D\uFF0C\u6211\u662F\u56FE\u7247\u52A9\u624B \u{1F5BC}\uFE0F\n\n\u76EE\u524D\u6211\u53EF\u4EE5\u5148\u5E2E\u4F60\u5206\u6790\u56FE\u7247\u5185\u5BB9\u3001\u63D0\u70BC\u91CD\u70B9\u3001\u7ED9\u51FA\u547D\u540D/\u6574\u7406\u5EFA\u8BAE\u3002\u540E\u7EED\u6211\u4EEC\u518D\u628A\u66F4\u6DF1\u7684\u56FE\u7247\u7F16\u8F91\u5DE5\u4F5C\u6D41\u63A5\u4E0A\u3002",
|
|
152
|
-
prompt: "\u4F60\u662F\u4E00\u4E2A\u56FE\u7247\u52A9\u624B\u3002\u5F53\u524D\u9636\u6BB5\u91CD\u70B9\u662F\u56F4\u7ED5\u5F53\u524D\u56FE\u7247\u505A\u7406\u89E3\u3001\u63CF\u8FF0\u3001\u6574\u7406\u5EFA\u8BAE\u548C\u540E\u7EED\u5904\u7406\u5EFA\u8BAE\u3002\u4E0D\u8981\u5047\u88C5\u5DF2\u7ECF\u5177\u5907\u590D\u6742\u56FE\u7247\u7F16\u8F91\u80FD\u529B\uFF1B\u5982\u679C\u7528\u6237\u8981\u66F4\u5F3A\u64CD\u4F5C\uFF0C\u660E\u786E\u8BF4\u660E\u5F53\u524D\u53EF\u505A\u7684\u662F\u5206\u6790\u4E0E\u7EC4\u7EC7\u3002"
|
|
153
|
-
};
|
|
154
|
-
case "file":
|
|
155
|
-
return {
|
|
156
|
-
...common,
|
|
157
|
-
name: "\u6587\u4EF6\u52A9\u624B",
|
|
158
|
-
introduction: "\u5F53\u524D\u5148\u4F5C\u4E3A\u6587\u4EF6\u7406\u89E3\u4E0E\u5904\u7406\u5EFA\u8BAE\u5165\u53E3\uFF0C\u540E\u7EED\u53EF\u6269\u5C55\u4E3A\u66F4\u5B8C\u6574\u7684\u6587\u4EF6\u5DE5\u4F5C\u6D41\u52A9\u624B\u3002",
|
|
159
|
-
greeting: "\u4F60\u597D\uFF0C\u6211\u662F\u6587\u4EF6\u52A9\u624B \u{1F4CE}\n\n\u76EE\u524D\u6211\u53EF\u4EE5\u5148\u5E2E\u4F60\u7406\u89E3\u8FD9\u4E2A\u6587\u4EF6\u9002\u5408\u600E\u4E48\u5904\u7406\u3001\u600E\u4E48\u63D0\u53D6\u4FE1\u606F\u3001\u4E0B\u4E00\u6B65\u5E94\u8BE5\u505A\u4EC0\u4E48\u3002\u540E\u7EED\u6211\u4EEC\u518D\u628A\u66F4\u5B8C\u6574\u7684\u6587\u4EF6\u5904\u7406\u6D41\u7A0B\u63A5\u4E0A\u3002",
|
|
160
|
-
prompt: "\u4F60\u662F\u4E00\u4E2A\u6587\u4EF6\u52A9\u624B\u3002\u5F53\u524D\u9636\u6BB5\u91CD\u70B9\u662F\u56F4\u7ED5\u5F53\u524D\u6587\u4EF6\u63D0\u4F9B\u7406\u89E3\u3001\u6574\u7406\u3001\u63D0\u53D6\u4E0E\u540E\u7EED\u5904\u7406\u5EFA\u8BAE\u3002\u4E0D\u8981\u5047\u88C5\u5DF2\u7ECF\u5B8C\u6210\u6587\u4EF6\u5185\u5BB9\u89E3\u6790\uFF1B\u5FC5\u8981\u65F6\u660E\u786E\u544A\u8BC9\u7528\u6237\u5F53\u524D\u66F4\u591A\u662F\u5360\u4F4D\u578B\u5DE5\u4F5C\u6D41\u5165\u53E3\u3002"
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
var alignBuiltinObjectAssistantRecord = (record) => {
|
|
165
|
-
const isBuiltinObjectAssistant = Object.values(BUILTIN_OBJECT_ASSISTANT_IDS).includes(record.id);
|
|
166
|
-
if (!isBuiltinObjectAssistant || record.provider !== PLATFORM_HOSTED_KIMI_PROVIDER || record.model !== PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL || record.inputPrice === 0 && record.outputPrice === 0) {
|
|
167
|
-
return null;
|
|
168
|
-
}
|
|
169
|
-
return { ...record, inputPrice: 0, outputPrice: 0 };
|
|
170
|
-
};
|
|
171
|
-
var buildBuiltinObjectAssistantAgentFromKey = (agentKey, userId) => {
|
|
172
|
-
const kind = resolveBuiltinObjectAssistantKindByKey(agentKey, userId);
|
|
173
|
-
if (!kind || !userId) return null;
|
|
174
|
-
return buildBuiltinObjectAssistantAgent(kind, userId);
|
|
175
|
-
};
|
|
176
|
-
|
|
177
60
|
// packages/ai/memory/policy.ts
|
|
178
61
|
function isPublicAgentKey(agentKey) {
|
|
179
62
|
return typeof agentKey === "string" && /^agent-pub-/i.test(agentKey.trim());
|
|
@@ -737,7 +620,7 @@ var createDialogAction = async (args, thunkApi) => {
|
|
|
737
620
|
const isDeviceLocalDialog = isLocalOwnerDialogAgents(cybots);
|
|
738
621
|
const userId = isDeviceLocalDialog ? "local" : currentUserId && currentUserId.trim().length > 0 ? currentUserId : "local";
|
|
739
622
|
try {
|
|
740
|
-
const { localFirstLog } = await import("./localFirstLog-
|
|
623
|
+
const { localFirstLog } = await import("./localFirstLog-OIETGK66.js");
|
|
741
624
|
localFirstLog("dialog.create", {
|
|
742
625
|
owner: userId,
|
|
743
626
|
agentKey: typeof agentKey === "string" ? agentKey : "",
|
|
@@ -754,33 +637,7 @@ var createDialogAction = async (args, thunkApi) => {
|
|
|
754
637
|
preferredServerOrigin
|
|
755
638
|
})
|
|
756
639
|
).unwrap().catch(() => null);
|
|
757
|
-
|
|
758
|
-
const repaired = alignBuiltinObjectAssistantRecord(existing);
|
|
759
|
-
if (!repaired) return existing;
|
|
760
|
-
await dispatch(
|
|
761
|
-
write({
|
|
762
|
-
data: repaired,
|
|
763
|
-
customKey: existing.dbKey,
|
|
764
|
-
userId
|
|
765
|
-
})
|
|
766
|
-
).unwrap();
|
|
767
|
-
return repaired;
|
|
768
|
-
}
|
|
769
|
-
const recoveredBuiltinAgent = buildBuiltinObjectAssistantAgentFromKey(
|
|
770
|
-
agentKey,
|
|
771
|
-
userId
|
|
772
|
-
);
|
|
773
|
-
if (!recoveredBuiltinAgent) {
|
|
774
|
-
return null;
|
|
775
|
-
}
|
|
776
|
-
await dispatch(
|
|
777
|
-
write({
|
|
778
|
-
data: recoveredBuiltinAgent,
|
|
779
|
-
customKey: recoveredBuiltinAgent.dbKey,
|
|
780
|
-
userId
|
|
781
|
-
})
|
|
782
|
-
).unwrap();
|
|
783
|
-
return recoveredBuiltinAgent;
|
|
640
|
+
return existing;
|
|
784
641
|
};
|
|
785
642
|
const canSkipAgentConfigRead = agentMode === "auto" || !!skipAgentConfigRead && !!args.skipGreeting && !!titleOverride;
|
|
786
643
|
const agentConfig = canSkipAgentConfigRead ? null : await readAgentConfig();
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// packages/cli/agentCommandSupport.ts
|
|
6
6
|
async function getDefaultCliDb() {
|
|
7
|
-
const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-
|
|
7
|
+
const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-N7KHDXS2.js");
|
|
8
8
|
return getDefaultCliLocalRuntimeDb();
|
|
9
9
|
}
|
|
10
10
|
function createNullCliDb() {
|