nolo-cli 0.213.0 → 0.219.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/README.md +3 -2
- package/{_executeModel-CUJLCFWR.js → _executeModel-WW57SJN4.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-EQXMFNPR.js} +18 -17
- package/{addDialogAgentAction-7VI7YRML.js → addDialogAgentAction-RSDZDASD.js} +21 -20
- package/{agentDeleteCommand-XJORXPGU.js → agentDeleteCommand-X2VWEKUA.js} +127 -118
- package/{agentEmailCommands-XTYYFR6Z.js → agentEmailCommands-6IE773VW.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-5UNM7CGG.js} +155 -92
- package/{agentMachineCommands-5FMT3OT5.js → agentMachineCommands-EVWFKK6Q.js} +62 -54
- package/{agentProviderCommands-Q5O33MED.js → agentProviderCommands-ZCH37KAL.js} +5 -5
- package/{agentPullCommand-6EM3URVK.js → agentPullCommand-XN6ZPBUW.js} +7 -7
- package/agentRecordCommands-DX2WE6BH.js +176 -0
- package/agentRunCommand-KGOT2AFB.js +206 -0
- package/{agentRunControl-TAMHJQSR.js → agentRunControl-QDFW5P2T.js} +30 -15
- package/{agentRuntimeLocal-SOO2OPJG.js → agentRuntimeLocal-SD7U2EGY.js} +52 -45
- package/{agentSlice-CHR6KOZN.js → agentSlice-ACZGTZVW.js} +20 -19
- package/{appDeleteCommands-GUP6P5YE.js → appDeleteCommands-NE3NQQJL.js} +61 -53
- package/{appDeployCommands-MH2FX4O5.js → appDeployCommands-2BAHY522.js} +61 -53
- package/{appDeployStatusCommands-SUHN3HPJ.js → appDeployStatusCommands-JTW6LZNC.js} +61 -53
- package/{appGetCommands-YWDEX6Z4.js → appGetCommands-WKFEJO6A.js} +61 -53
- package/{appListCommands-ZQVMLPAY.js → appListCommands-HNAZZLFX.js} +61 -53
- package/{authCommand-PWX2ZNUP.js → authCommand-4FDPL7WG.js} +29 -28
- package/{authCommands-HV3EAU3V.js → authCommands-GAJ3NIXO.js} +14 -13
- package/{builtinSkillRegistry-2QETTQPM.js → builtinSkillRegistry-PXH7EGQB.js} +11 -13
- package/{chromeCommands-REEAH4SX.js → chromeCommands-G5UDKVSV.js} +3 -3
- package/{chromeOpsCommands-DIVM2K3T.js → chromeOpsCommands-YKX2QX3A.js} +20 -10
- package/chunk-2KTUDBG7.js +675 -0
- package/{chunk-TCZHTTUU.js → chunk-2OLYKYNY.js} +8 -8
- 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-G2BQWAVT.js → chunk-3ESU44FG.js} +4 -4
- package/{chunk-HUBHAQK2.js → chunk-3N4ASIP6.js} +29 -29
- package/{chunk-4KB6WQUL.js → chunk-4A2JIXR2.js} +1 -1
- package/{chunk-MYOH447Z.js → chunk-4JVNURX4.js} +1 -1
- package/{chunk-H7PPIYWP.js → chunk-4NMHE7CX.js} +20 -20
- package/{chunk-YDH3FDFQ.js → chunk-5FUN7EG4.js} +1 -1
- package/chunk-5OZC7R7Y.js +97 -0
- package/chunk-5R63B62U.js +364 -0
- package/{chunk-INUFILG6.js → chunk-5RKUPJYL.js} +1 -1
- package/{chunk-ZNWI6OVT.js → chunk-652XYZGP.js} +80 -11
- package/{chunk-QHPRUL4O.js → chunk-65XXHYZ5.js} +4 -4
- package/{chunk-MOIJOHA5.js → chunk-6D7NVU66.js} +36 -25
- package/{chunk-CRHOO2ZR.js → chunk-6NKA6RKF.js} +2 -2
- package/{chunk-ZC3CMUKU.js → chunk-6OVNSQHN.js} +84 -2
- package/{chunk-H2TJUNCH.js → chunk-6RQFZCKH.js} +18 -18
- package/{chunk-LLRPJECG.js → chunk-7UH3DGV6.js} +17 -159
- package/{chunk-X7SDOJUM.js → chunk-7WPAI5JJ.js} +14 -14
- package/{chunk-P5L7CXOC.js → chunk-7Z6EW7AH.js} +3 -2
- package/{chunk-VO4WSAVP.js → chunk-AFHOCBSP.js} +3 -3
- 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-AVHRSJUH.js +1621 -0
- package/{chunk-RLBNLZVC.js → chunk-BGGHA5DV.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-F6UUQOG6.js → chunk-CKT6QUE2.js} +4 -4
- package/{chunk-6VLJ6YA7.js → chunk-CXDPIPZ4.js} +9 -9
- package/{secretCommands-LXDWOLZ6.js → chunk-D726I5AZ.js} +191 -16
- package/{chunk-OQPKUBPB.js → chunk-DJSTBAOU.js} +19 -7
- package/chunk-DVQH4BTR.js +1137 -0
- package/{chunk-7OCO4TDT.js → chunk-EGXPAWLG.js} +1 -1
- package/chunk-EOWLBDY6.js +142 -0
- package/chunk-EUCFKKDM.js +247 -0
- package/chunk-EWQ3HGNZ.js +90 -0
- package/{chunk-7Y4YTDQF.js → chunk-F3TQURKK.js} +281 -159
- package/{chunk-YTF4WH7J.js → chunk-FIYSMXHY.js} +1 -1
- package/{chunk-75XIDFBW.js → chunk-FJ23FZXF.js} +72 -28
- package/{chunk-5MQRBSMW.js → chunk-FRSBYNWI.js} +111 -113
- package/{chunk-ZXOUUDCG.js → chunk-FVZW66K4.js} +3657 -233
- package/{chunk-YUA6OAH5.js → chunk-G2EJ7NL4.js} +2 -2
- package/{chunk-PCLE46CE.js → chunk-GBWGPTA7.js} +2 -1
- package/{chunk-R5O4QAWG.js → chunk-GGKNJ42M.js} +11 -77
- package/{chunk-TAKB25RM.js → chunk-GIABSSWQ.js} +4 -4
- package/{chunk-WRYQ35LQ.js → chunk-GNHMRBYZ.js} +859 -57
- package/{chunk-NJLL224W.js → chunk-GVGOEMNV.js} +2 -2
- package/{chunk-J2NHJ7WX.js → chunk-H7R3365N.js} +4 -4
- package/{chunk-7BT37FK3.js → chunk-HCJFGH6Y.js} +648 -131
- package/{chunk-3UKL3HPD.js → chunk-HOCHUZQ7.js} +8 -78
- package/{chunk-EHSZD5OI.js → chunk-HXER7YJF.js} +4 -4
- package/{chunk-CTPXME7U.js → chunk-IWH5SOU4.js} +29 -6
- package/{chunk-INN4LTAJ.js → chunk-IWQAOW2X.js} +2 -2
- package/{chunk-RPQXPZZF.js → chunk-J6T25AJ6.js} +908 -13
- package/{chunk-KIM6CLW5.js → chunk-JC5XLWZK.js} +42 -15
- package/chunk-JVRQ6YVK.js +99 -0
- package/{chunk-ZRSNONOB.js → chunk-JWXITTQB.js} +8 -3
- package/{chunk-NSAPDIN2.js → chunk-K5FNYHZC.js} +541 -31
- package/{chunk-TX5EYMGT.js → chunk-KAVGK4ES.js} +30 -254
- package/{chunk-H4UOTUOX.js → chunk-KEN3N2TN.js} +148 -18
- package/{chunk-LEC5ALIN.js → chunk-KEPOVMF4.js} +1 -1
- package/{chunk-Y6ORVLSS.js → chunk-KN3HEZIQ.js} +1 -1
- package/{chunk-UYD5HQ6T.js → chunk-KO63FPG3.js} +5429 -1752
- package/{chunk-IXNGOHV5.js → chunk-KOXKKHFE.js} +11 -152
- package/{chunk-4VJAC32I.js → chunk-L5I543VB.js} +3 -2
- package/{chunk-SM3NSZJV.js → chunk-LE6LGAJE.js} +20 -1
- package/chunk-LKA64WH4.js +227 -0
- package/{chunk-VL5KOY2C.js → chunk-MK2Q7ZJD.js} +67 -5
- package/{chunk-YJAFKXMU.js → chunk-MKQ2UTTX.js} +50 -48
- package/chunk-MOMR7NMG.js +226 -0
- package/{chunk-4T2WNOY7.js → chunk-N3J4VDGV.js} +33 -22
- package/{chunk-AZMYUSVF.js → chunk-N5Z2V73W.js} +1 -1
- package/{chunk-6DWMYIUY.js → chunk-N7HVLYOY.js} +14 -9
- package/{chunk-7QTZCMKL.js → chunk-O2CYENYJ.js} +1204 -1651
- package/{chunk-VNYYOX3V.js → chunk-OB6DVWPF.js} +141 -48
- package/{chunk-HRMJUN5J.js → chunk-OGHP3CTL.js} +1 -1
- package/{chunk-XJWWBO34.js → chunk-OJKUU3LP.js} +5 -7
- package/{chunk-G7MLNNEX.js → chunk-OOF7XDZF.js} +5 -5
- package/{chunk-QG4AOSON.js → chunk-OXKUPBAQ.js} +13 -32
- package/{chunk-6XIE5ZGI.js → chunk-PDCV7P5W.js} +1 -1
- package/{chunk-H5HF7TJA.js → chunk-PFJNLBRU.js} +2 -2
- package/{chunk-A7TFUNZO.js → chunk-PPJYZRSQ.js} +6 -2
- package/chunk-PVZY6P3S.js +271 -0
- package/{chunk-ZL5RAEEB.js → chunk-Q6HOUF4O.js} +1 -1
- package/{chunk-FUGMREBO.js → chunk-Q7WP5RPC.js} +5 -5
- package/chunk-QHEN7NZ7.js +46 -0
- package/{chunk-O2TZF4AI.js → chunk-QLFCTYRH.js} +3 -3
- package/{chunk-YGILMZ7N.js → chunk-QVBXJNZ2.js} +1 -1
- package/{chunk-KFLT5KAD.js → chunk-QWYFFHCJ.js} +20 -20
- package/{chunk-C6KNNXWU.js → chunk-RGQ4UUWZ.js} +25 -2
- package/{chunk-OWYYDMGJ.js → chunk-S2NTVGA2.js} +4 -2
- package/{chunk-BBJ22CLB.js → chunk-S7SB7L2I.js} +60 -30
- package/{chunk-W4S457LU.js → chunk-SASHAZ67.js} +41 -5
- package/{chunk-KC4XDTT3.js → chunk-SOF4OWDM.js} +6 -4
- package/{chunk-YWSEPJ7C.js → chunk-SRL56PI2.js} +3 -3
- package/{chunk-WMTBPBMP.js → chunk-SYQR7FQS.js} +52 -50
- package/{chunk-JY5NGFFH.js → chunk-SYTHYBMI.js} +5 -5
- package/{chunk-XHQC4PXX.js → chunk-T3O6BLYU.js} +426 -196
- package/chunk-TLE77UJ5.js +230 -0
- package/{chunk-T43B7LB2.js → chunk-TRWT3EE3.js} +1 -1
- package/{chunk-RSHTSUEG.js → chunk-TVFRV3UQ.js} +2060 -602
- package/{chunk-4VNS5WPM.js → chunk-U67V476Y.js} +1 -8
- package/{chunk-F7CI2ZC5.js → chunk-UAIHKQIA.js} +2 -1
- package/{chunk-LOEO7LRC.js → chunk-UJKTI5PG.js} +10 -7
- package/{chunk-UHJGXRJ4.js → chunk-UMRI2IRY.js} +3 -3
- package/{chunk-WPORQFYN.js → chunk-UVLYNWIE.js} +2 -2
- package/{chunk-NOKUNJON.js → chunk-UYOICCYG.js} +29 -19
- package/{chunk-GOO6G4PY.js → chunk-VALBGPM6.js} +106 -50
- package/{chunk-MDB67IWP.js → chunk-VHPAA6MT.js} +10 -10
- package/{chunk-4I7ERB7F.js → chunk-VREDDN25.js} +1 -1
- package/{chunk-WYDI6TGM.js → chunk-XFJ4ZPFC.js} +91 -132
- package/{chunk-TY3TIUJK.js → chunk-XI2BWJM5.js} +65 -0
- package/{chunk-V5Y3R6BT.js → chunk-XWGDCWXY.js} +213 -210
- 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-YZMNK53S.js +68 -0
- package/{chunk-FY7F4Q6X.js → chunk-Z4PCXPUE.js} +2 -2
- package/{cliAgentConfigHelpers-WJBZQTLW.js → cliAgentConfigHelpers-PO3MVDME.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-Z7CH4K4R.js +90 -0
- package/{commandRegistry-W63CYRZJ.js → commandRegistry-SDSYBKMC.js} +105 -97
- package/{contentThunks-U7PL5MQD.js → contentThunks-G3TRPEAU.js} +47 -43
- package/{cooldownCommands-TIGUHXTD.js → cooldownCommands-X7P5M2V5.js} +5 -4
- package/{createAgentAutomationAction-OLBQDD6R.js → createAgentAutomationAction-KHA4MXUJ.js} +51 -49
- package/{createDialogAction-SVH6B3SB.js → createDialogAction-KWSBNAPJ.js} +46 -48
- package/{createPageAction-F4DIWZ2Z.js → createPageAction-HXKJ7OFG.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-ZJPDIFER.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-6KQEBHSG.js} +64 -57
- package/dialogNotifyCommand-WIZFFEY3.js +36 -0
- package/{dialogSlice-ZCTDV2PZ.js → dialogSlice-HXPKFGRL.js} +42 -40
- package/{dialogUsageCommand-7KCPYGHG.js → dialogUsageCommand-HTVPR2CX.js} +11 -10
- package/{docCreateCommands-DPMZI7G5.js → docCreateCommands-XZOLWBRC.js} +61 -55
- package/{docDeleteCommands-IRQQLUBT.js → docDeleteCommands-ZSO4LGWE.js} +63 -57
- package/{docReadCommands-LK37XH6L.js → docReadCommands-TTMXCDER.js} +61 -55
- package/{docStore-V2KECILA.js → docStore-A2B3GH33.js} +21 -20
- package/{docUpdateCommands-O6T3HJHH.js → docUpdateCommands-PRG6WOXL.js} +64 -58
- package/{fetchMessages-NR4KNQLO.js → fetchMessages-TQEUZD7H.js} +8 -7
- package/{getPricing-2MNMXEVG.js → getPricing-YH3VMSVU.js} +6 -6
- package/{handleSendMessageAction-2PE25WM3.js → handleSendMessageAction-NWYG3Q72.js} +194 -302
- package/{hostCredentialCreate-S233UMAP.js → hostCredentialCreate-WS6D3EHT.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-TFYOA6YE.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-WFWV25IR.js} +128 -119
- package/{machineInfo-UKPTZO5Y.js → machineInfo-LWHTEBHJ.js} +1 -1
- package/machineWsRunDispatch-ZGXC3F2R.js +191 -0
- package/{memberThunks-7EDJADWU.js → memberThunks-JRYNONYV.js} +29 -28
- package/{memoryCommands-ASCE5STX.js → memoryCommands-5WC3T66U.js} +4 -4
- package/models-CXINDUJA.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-ULJDLUA6.js} +52 -50
- package/{providerPresetApply-YXGV6NXB.js → providerPresetApply-SHT2SUVB.js} +19 -12
- package/{providerRegistry-S6UL6UNA.js → providerRegistry-TA7EGCVZ.js} +10 -10
- package/{read-4V2RMG7N.js → read-Q7GOHGNP.js} +10 -10
- package/{readDocTool-BH6ATGQO.js → readDocTool-Z5OQ6422.js} +2 -2
- package/{readlineWorkspace-2W4WRCOU.js → readlineWorkspace-LTCV2BFW.js} +7982 -6274
- package/{removeDialogAgentAction-LYAZGNKW.js → removeDialogAgentAction-U3F2MNAY.js} +23 -22
- package/{runAgentClientLoop-J2VQBS2Z.js → runAgentClientLoop-BVIEQUB3.js} +81 -79
- package/{runtimeDoctorCommands-QAI3MBKQ.js → runtimeDoctorCommands-I47JN4HS.js} +12 -12
- package/{runtimeModeArgs-2Y7BALTO.js → runtimeModeArgs-X7DL7PUN.js} +1 -1
- package/secretCommands-LJXOOYA7.js +24 -0
- package/{setDialogExtraReferencesAction-OCRPGPYH.js → setDialogExtraReferencesAction-G3WSJ7EM.js} +22 -21
- package/{setPrimaryDialogAgentAction-HFJDQIBU.js → setPrimaryDialogAgentAction-6FHAHZBB.js} +23 -22
- package/{settingThunks-RAMHMTGM.js → settingThunks-AXTBX3Q5.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-IB6FKWIC.js} +61 -53
- package/store-JRVN62NM.js +46 -0
- package/{streamAgentChatTurn-GHBMJJ6S.js → streamAgentChatTurn-DNYFHBJM.js} +875 -618
- package/{switchDialogAgentAction-EBRMW3RA.js → switchDialogAgentAction-UOFIAGPL.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-JVOJ5HC4.js} +75 -74
- package/tuiSummaryLlmCaller-7LWYTHLM.js +44 -0
- package/{updateCommands-ZQYU6SCI.js → updateCommands-RJVCRSBP.js} +10 -8
- package/{updateDialogTitleAction-5GGMBTDF.js → updateDialogTitleAction-Q57BOSXG.js} +48 -46
- package/{usageCommand-F4IPVMIZ.js → usageCommand-RVKHEPLU.js} +11 -10
- package/{usageRebuildCommand-HAW2AD5N.js → usageRebuildCommand-GRAFOZF2.js} +12 -11
- package/userDataMerge-HT2ZVHBJ.js +13 -0
- package/{windowsSelfUpdate-257DV2T6.js → windowsSelfUpdate-KERHIAB4.js} +3 -3
- package/{workloadLifecycle-4C42SVBD.js → workloadLifecycle-O2I3NZ2Q.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-OQHIVPG4.js → chunk-SNBZZPYH.js} +3 -3
- package/{chunk-AETZ7AD6.js → chunk-W6RFEDN4.js} +3 -3
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createSpaceKey,
|
|
3
|
+
normalizeSpaceId
|
|
4
|
+
} from "./chunk-UAD2WT54.js";
|
|
5
|
+
import {
|
|
6
|
+
patch,
|
|
7
|
+
read
|
|
8
|
+
} from "./chunk-AVHRSJUH.js";
|
|
9
|
+
import {
|
|
10
|
+
DEVICE_LOCAL_OWNER_ID,
|
|
11
|
+
isDeviceLocalSpaceBody
|
|
12
|
+
} from "./chunk-2VUZSVAS.js";
|
|
13
|
+
import {
|
|
14
|
+
selectIdentityUserId
|
|
15
|
+
} from "./chunk-PXYBUFDB.js";
|
|
16
|
+
|
|
17
|
+
// packages/create/space/utils/permissions.ts
|
|
18
|
+
var checkSpaceMembership = (spaceData, userId) => {
|
|
19
|
+
if (!spaceData) {
|
|
20
|
+
console.error("[Permission Check] Space data is missing.");
|
|
21
|
+
throw new Error("\u65E0\u6CD5\u6267\u884C\u6743\u9650\u68C0\u67E5\uFF1A\u7A7A\u95F4\u6570\u636E\u7F3A\u5931\u3002");
|
|
22
|
+
}
|
|
23
|
+
if (isDeviceLocalSpaceBody(spaceData)) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (!userId) {
|
|
27
|
+
console.error("[Permission Check] User ID is missing.");
|
|
28
|
+
throw new Error("\u65E0\u6CD5\u6267\u884C\u6743\u9650\u68C0\u67E5\uFF1A\u7528\u6237 ID \u7F3A\u5931\u3002");
|
|
29
|
+
}
|
|
30
|
+
if (!spaceData.members || !Array.isArray(spaceData.members) || !spaceData.members.includes(userId)) {
|
|
31
|
+
console.warn(
|
|
32
|
+
`[Permission Check] User ${userId} attempt to operate on space ${spaceData.id} without membership.`
|
|
33
|
+
);
|
|
34
|
+
throw new Error("\u5F53\u524D\u7528\u6237\u4E0D\u662F\u7A7A\u95F4\u6210\u5458");
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
var canManageSpaceContent = (spaceData, userId, membership) => {
|
|
38
|
+
if (!spaceData) return false;
|
|
39
|
+
if (isDeviceLocalSpaceBody(spaceData)) return true;
|
|
40
|
+
const actor = typeof userId === "string" ? userId.trim() : "";
|
|
41
|
+
if (!actor) return false;
|
|
42
|
+
const ownerValues = [spaceData.ownerId, spaceData.userId].map((value) => typeof value === "string" ? value.trim() : "").filter(Boolean);
|
|
43
|
+
if (ownerValues.includes(actor)) return true;
|
|
44
|
+
const role = typeof membership?.role === "string" ? membership.role.trim() : "";
|
|
45
|
+
return role === "owner" || role === "admin";
|
|
46
|
+
};
|
|
47
|
+
var localSpaceAuthorityPatchStamp = (spaceData) => isDeviceLocalSpaceBody(spaceData) ? { userId: DEVICE_LOCAL_OWNER_ID } : {};
|
|
48
|
+
|
|
49
|
+
// packages/create/space/constants.ts
|
|
50
|
+
var UNCATEGORIZED_ID = "__uncategorized_container__";
|
|
51
|
+
|
|
52
|
+
// packages/create/space/content/spaceContentPatch.ts
|
|
53
|
+
var notifyUserDataUpdated = () => {
|
|
54
|
+
if (typeof window !== "undefined" && typeof window.dispatchEvent === "function" && typeof window.Event === "function") {
|
|
55
|
+
window.dispatchEvent(new window.Event("nolo-user-data-updated"));
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
var loadSpaceContentOrThrow = async (dispatch, spaceId, contentKey, sourceServerOrigin) => {
|
|
59
|
+
if (!contentKey || typeof contentKey !== "string" || contentKey.trim() === "") {
|
|
60
|
+
throw new Error("Invalid contentKey provided.");
|
|
61
|
+
}
|
|
62
|
+
const spaceKey = createSpaceKey.space(spaceId);
|
|
63
|
+
let spaceData = null;
|
|
64
|
+
try {
|
|
65
|
+
spaceData = await dispatch(
|
|
66
|
+
read({ dbKey: spaceKey, preferredServerOrigin: sourceServerOrigin })
|
|
67
|
+
).unwrap();
|
|
68
|
+
} catch (readError) {
|
|
69
|
+
throw new Error(`\u65E0\u6CD5\u52A0\u8F7D\u7A7A\u95F4\u6570\u636E: ${spaceId}`);
|
|
70
|
+
}
|
|
71
|
+
if (!spaceData) {
|
|
72
|
+
throw new Error("Space not found");
|
|
73
|
+
}
|
|
74
|
+
const content = spaceData.contents?.[contentKey];
|
|
75
|
+
if (!content) {
|
|
76
|
+
throw new Error("Content not found in space");
|
|
77
|
+
}
|
|
78
|
+
return { spaceKey, spaceData, content };
|
|
79
|
+
};
|
|
80
|
+
function resolveContentSpaceWriteAuthority(input) {
|
|
81
|
+
const owner = typeof input.ownerId === "string" ? input.ownerId.trim() : "";
|
|
82
|
+
const actor = typeof input.actorUserId === "string" ? input.actorUserId.trim() : "";
|
|
83
|
+
if (owner && owner !== DEVICE_LOCAL_OWNER_ID && owner !== actor) return "deny";
|
|
84
|
+
if (input.targetSpaceIsDeviceLocal) return "allow";
|
|
85
|
+
if (owner === DEVICE_LOCAL_OWNER_ID) return "allow";
|
|
86
|
+
if (!owner) return "unverified";
|
|
87
|
+
if (actor && owner === actor) return "allow";
|
|
88
|
+
return actor ? "deny" : "unverified";
|
|
89
|
+
}
|
|
90
|
+
var readContentRecordForSpaceSync = async (dispatch, contentKey) => {
|
|
91
|
+
try {
|
|
92
|
+
const existing = await dispatch(read({ dbKey: contentKey })).unwrap();
|
|
93
|
+
if (!existing || typeof existing !== "object") return { status: "missing" };
|
|
94
|
+
return { status: "ok", record: existing };
|
|
95
|
+
} catch {
|
|
96
|
+
return { status: "unreadable" };
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
var applyContentRecordSpaceId = async (dispatch, contentKey, record, targetSpaceId, failMessagePrefix, options = {}) => {
|
|
100
|
+
const normalizedTarget = normalizeSpaceId(targetSpaceId) || targetSpaceId;
|
|
101
|
+
const authority = resolveContentSpaceWriteAuthority({
|
|
102
|
+
ownerId: record.userId ?? record.ownerId,
|
|
103
|
+
actorUserId: options.actorUserId,
|
|
104
|
+
targetSpaceIsDeviceLocal: options.targetSpaceIsDeviceLocal
|
|
105
|
+
});
|
|
106
|
+
if (authority === "deny") return "not-owner";
|
|
107
|
+
if (authority === "unverified") return "unverified";
|
|
108
|
+
const rawCurrentSpaceId = record.spaceId;
|
|
109
|
+
const currentSpaceId = typeof rawCurrentSpaceId === "string" ? normalizeSpaceId(rawCurrentSpaceId) : null;
|
|
110
|
+
if (currentSpaceId === normalizedTarget) return "unchanged";
|
|
111
|
+
if (options.onlyWhenUnset && currentSpaceId) return "unchanged";
|
|
112
|
+
try {
|
|
113
|
+
await dispatch(
|
|
114
|
+
patch({ dbKey: contentKey, changes: { spaceId: normalizedTarget } })
|
|
115
|
+
).unwrap();
|
|
116
|
+
} catch (contentPatchError) {
|
|
117
|
+
throw new Error(
|
|
118
|
+
`${failMessagePrefix}: ${contentPatchError?.message || "\u672A\u77E5\u9519\u8BEF"}`
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
notifyUserDataUpdated();
|
|
122
|
+
return "patched";
|
|
123
|
+
};
|
|
124
|
+
var syncContentRecordSpaceId = async (dispatch, contentKey, targetSpaceId, failMessagePrefix, options = {}) => {
|
|
125
|
+
const readResult = await readContentRecordForSpaceSync(dispatch, contentKey);
|
|
126
|
+
if (readResult.status === "unreadable") return "unreadable";
|
|
127
|
+
if (readResult.status === "missing") return "missing";
|
|
128
|
+
return applyContentRecordSpaceId(
|
|
129
|
+
dispatch,
|
|
130
|
+
contentKey,
|
|
131
|
+
readResult.record,
|
|
132
|
+
targetSpaceId,
|
|
133
|
+
failMessagePrefix,
|
|
134
|
+
options
|
|
135
|
+
);
|
|
136
|
+
};
|
|
137
|
+
var patchIndividualContentRecord = async (dispatch, contentKey, changes, sourceServerOrigin, failMessagePrefix) => {
|
|
138
|
+
let hasIndividualRecord = false;
|
|
139
|
+
try {
|
|
140
|
+
const existing = await dispatch(
|
|
141
|
+
read({ dbKey: contentKey, preferredServerOrigin: sourceServerOrigin })
|
|
142
|
+
).unwrap();
|
|
143
|
+
hasIndividualRecord = Boolean(existing);
|
|
144
|
+
} catch {
|
|
145
|
+
hasIndividualRecord = false;
|
|
146
|
+
}
|
|
147
|
+
if (hasIndividualRecord) {
|
|
148
|
+
try {
|
|
149
|
+
await dispatch(
|
|
150
|
+
patch({
|
|
151
|
+
dbKey: contentKey,
|
|
152
|
+
changes,
|
|
153
|
+
preferredServerOrigin: sourceServerOrigin
|
|
154
|
+
})
|
|
155
|
+
).unwrap();
|
|
156
|
+
notifyUserDataUpdated();
|
|
157
|
+
} catch (contentPatchError) {
|
|
158
|
+
throw new Error(
|
|
159
|
+
`${failMessagePrefix}: ${contentPatchError?.message || "\u672A\u77E5\u9519\u8BEF"}`
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
// packages/create/space/content/addContentAction.ts
|
|
166
|
+
var addContentAction = async (input, thunkAPI) => {
|
|
167
|
+
const {
|
|
168
|
+
spaceId,
|
|
169
|
+
title,
|
|
170
|
+
type,
|
|
171
|
+
contentKey,
|
|
172
|
+
fileCategory,
|
|
173
|
+
mimeType,
|
|
174
|
+
fileSize,
|
|
175
|
+
originalName,
|
|
176
|
+
categoryId: rawCategoryId,
|
|
177
|
+
pinned = false,
|
|
178
|
+
order,
|
|
179
|
+
triggerType,
|
|
180
|
+
skillSummary
|
|
181
|
+
} = input;
|
|
182
|
+
const { dispatch, getState } = thunkAPI;
|
|
183
|
+
const userId = selectIdentityUserId(getState());
|
|
184
|
+
if (!contentKey || typeof contentKey !== "string" || contentKey.trim() === "")
|
|
185
|
+
throw new Error("Invalid contentKey provided.");
|
|
186
|
+
if (!title || typeof title !== "string" || title.trim() === "")
|
|
187
|
+
throw new Error("Invalid or empty title provided.");
|
|
188
|
+
if (!type || typeof type !== "string")
|
|
189
|
+
throw new Error("Invalid content type provided.");
|
|
190
|
+
const spaceKey = createSpaceKey.space(spaceId);
|
|
191
|
+
const spaceData = await dispatch(read({
|
|
192
|
+
dbKey: spaceKey
|
|
193
|
+
})).unwrap();
|
|
194
|
+
checkSpaceMembership(spaceData, userId);
|
|
195
|
+
const alreadyPresent = Boolean(spaceData.contents?.[contentKey]);
|
|
196
|
+
let categoryIdForStorage;
|
|
197
|
+
if (rawCategoryId && rawCategoryId !== "" && rawCategoryId !== UNCATEGORIZED_ID) {
|
|
198
|
+
if (spaceData.categories?.[rawCategoryId]) {
|
|
199
|
+
categoryIdForStorage = rawCategoryId;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
const now = Date.now();
|
|
203
|
+
const newSpaceContent = {
|
|
204
|
+
title: title.trim(),
|
|
205
|
+
type,
|
|
206
|
+
contentKey,
|
|
207
|
+
...fileCategory !== void 0 ? { fileCategory } : {},
|
|
208
|
+
...mimeType !== void 0 ? { mimeType } : {},
|
|
209
|
+
...fileSize !== void 0 ? { fileSize } : {},
|
|
210
|
+
...originalName !== void 0 ? { originalName } : {},
|
|
211
|
+
...categoryIdForStorage !== void 0 && {
|
|
212
|
+
categoryId: categoryIdForStorage
|
|
213
|
+
},
|
|
214
|
+
pinned,
|
|
215
|
+
createdAt: now,
|
|
216
|
+
updatedAt: now,
|
|
217
|
+
...order !== void 0 && typeof order === "number" && { order },
|
|
218
|
+
...triggerType !== void 0 && { triggerType },
|
|
219
|
+
...skillSummary !== void 0 ? { skillSummary } : {}
|
|
220
|
+
};
|
|
221
|
+
const entityRead = await readContentRecordForSpaceSync(dispatch, contentKey);
|
|
222
|
+
if (entityRead.status === "unreadable") {
|
|
223
|
+
throw new Error("\u65E0\u6CD5\u8BFB\u53D6\u5185\u5BB9\u8BB0\u5F55\uFF0C\u672A\u52A0\u5165\u7A7A\u95F4\uFF08\u53EF\u91CD\u8BD5\uFF09");
|
|
224
|
+
}
|
|
225
|
+
let updatedSpaceData;
|
|
226
|
+
if (alreadyPresent) {
|
|
227
|
+
updatedSpaceData = spaceData;
|
|
228
|
+
} else {
|
|
229
|
+
const changes = {
|
|
230
|
+
contents: { [contentKey]: newSpaceContent },
|
|
231
|
+
updatedAt: now,
|
|
232
|
+
...localSpaceAuthorityPatchStamp(spaceData)
|
|
233
|
+
};
|
|
234
|
+
updatedSpaceData = await dispatch(
|
|
235
|
+
patch({ dbKey: spaceKey, changes })
|
|
236
|
+
).unwrap();
|
|
237
|
+
}
|
|
238
|
+
let contentSpaceSync;
|
|
239
|
+
try {
|
|
240
|
+
contentSpaceSync = entityRead.status === "ok" ? await applyContentRecordSpaceId(
|
|
241
|
+
dispatch,
|
|
242
|
+
contentKey,
|
|
243
|
+
entityRead.record,
|
|
244
|
+
spaceId,
|
|
245
|
+
"\u5185\u5BB9\u5DF2\u52A0\u5165\u7A7A\u95F4\uFF0C\u4F46\u540C\u6B65\u5185\u5BB9\u8BB0\u5F55\u7684\u5F52\u5C5E\u7A7A\u95F4\u5931\u8D25",
|
|
246
|
+
{
|
|
247
|
+
onlyWhenUnset: true,
|
|
248
|
+
actorUserId: userId,
|
|
249
|
+
targetSpaceIsDeviceLocal: isDeviceLocalSpaceBody(spaceData)
|
|
250
|
+
}
|
|
251
|
+
) : "missing";
|
|
252
|
+
} catch (entitySyncError) {
|
|
253
|
+
throw new Error(
|
|
254
|
+
`${entitySyncError?.message || "\u540C\u6B65\u5185\u5BB9\u8BB0\u5F55\u5931\u8D25"}\uFF08\u7A7A\u95F4\u94FE\u63A5\u5DF2\u5199\u5165\uFF1B\u518D\u6B21\u52A0\u5165\u4F1A\u5E42\u7B49\u6536\u655B\uFF09`
|
|
255
|
+
);
|
|
256
|
+
}
|
|
257
|
+
return { spaceId, updatedSpaceData, contentSpaceSync, alreadyPresent };
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
export {
|
|
261
|
+
checkSpaceMembership,
|
|
262
|
+
canManageSpaceContent,
|
|
263
|
+
localSpaceAuthorityPatchStamp,
|
|
264
|
+
UNCATEGORIZED_ID,
|
|
265
|
+
notifyUserDataUpdated,
|
|
266
|
+
loadSpaceContentOrThrow,
|
|
267
|
+
readContentRecordForSpaceSync,
|
|
268
|
+
syncContentRecordSpaceId,
|
|
269
|
+
patchIndividualContentRecord,
|
|
270
|
+
addContentAction
|
|
271
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requireTokenUser
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
resolveServerUrl
|
|
6
|
-
} from "./chunk-WACI5I6V.js";
|
|
3
|
+
} from "./chunk-6NKA6RKF.js";
|
|
7
4
|
import {
|
|
8
5
|
t
|
|
9
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OB6DVWPF.js";
|
|
7
|
+
import {
|
|
8
|
+
resolveServerUrl
|
|
9
|
+
} from "./chunk-2THCNKE4.js";
|
|
10
10
|
|
|
11
11
|
// packages/cli/cliApiClient.ts
|
|
12
12
|
var CliApiError = class extends Error {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// packages/ai/memory/vnext/legacyMigration.ts
|
|
2
|
+
import { createHash } from "crypto";
|
|
3
|
+
var LEGACY_MEMORY_SOURCE_REF_PREFIX = "legacy-memory";
|
|
4
|
+
var LEGACY_MEMORY_EVIDENCE_ID_PREFIX = "mem-legacy-";
|
|
5
|
+
var resolveLegacyMemoryPrincipal = (item) => ({
|
|
6
|
+
ownerType: item.ownerType,
|
|
7
|
+
ownerId: item.ownerId,
|
|
8
|
+
principalId: `${item.ownerType}:${encodeURIComponent(item.ownerId)}`
|
|
9
|
+
});
|
|
10
|
+
var buildLegacyMemorySourceRef = (item) => {
|
|
11
|
+
const { principalId } = resolveLegacyMemoryPrincipal(item);
|
|
12
|
+
return `${LEGACY_MEMORY_SOURCE_REF_PREFIX}:${principalId}:${encodeURIComponent(item.id)}`;
|
|
13
|
+
};
|
|
14
|
+
var legacyEvidenceSeed = (principalId, itemId) => JSON.stringify([principalId, itemId]);
|
|
15
|
+
var buildLegacyEvidenceId = (item) => {
|
|
16
|
+
const { principalId } = resolveLegacyMemoryPrincipal(item);
|
|
17
|
+
const digest = createHash("sha256").update(legacyEvidenceSeed(principalId, item.id)).digest("hex");
|
|
18
|
+
return `${LEGACY_MEMORY_EVIDENCE_ID_PREFIX}${digest.slice(0, 32)}`;
|
|
19
|
+
};
|
|
20
|
+
var clampLegacyConfidence = (value) => {
|
|
21
|
+
if (typeof value !== "number" || !Number.isFinite(value)) return 0;
|
|
22
|
+
if (value < 0) return 0;
|
|
23
|
+
if (value > 1) return 1;
|
|
24
|
+
return value;
|
|
25
|
+
};
|
|
26
|
+
var buildLegacyMemoryEvidence = (item) => {
|
|
27
|
+
const { principalId } = resolveLegacyMemoryPrincipal(item);
|
|
28
|
+
return {
|
|
29
|
+
id: buildLegacyEvidenceId(item),
|
|
30
|
+
ownerId: principalId,
|
|
31
|
+
text: item.content,
|
|
32
|
+
sourceRef: buildLegacyMemorySourceRef(item),
|
|
33
|
+
confidence: clampLegacyConfidence(item.confidence),
|
|
34
|
+
createdAt: item.createdAt
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export {
|
|
39
|
+
LEGACY_MEMORY_SOURCE_REF_PREFIX,
|
|
40
|
+
LEGACY_MEMORY_EVIDENCE_ID_PREFIX,
|
|
41
|
+
resolveLegacyMemoryPrincipal,
|
|
42
|
+
buildLegacyMemorySourceRef,
|
|
43
|
+
buildLegacyEvidenceId,
|
|
44
|
+
clampLegacyConfidence,
|
|
45
|
+
buildLegacyMemoryEvidence
|
|
46
|
+
};
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
scheduleExistingRecordReplication,
|
|
8
8
|
shouldReplaceLocalWithRemoteRecord,
|
|
9
9
|
shouldReplicateLocalRecord
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2VUZSVAS.js";
|
|
11
11
|
import {
|
|
12
12
|
fetchFromClientDb,
|
|
13
13
|
fetchFromServer,
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
} from "./chunk-AGP3YSEC.js";
|
|
17
17
|
import {
|
|
18
18
|
shouldReplaceWithNextRecord
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BV3FLP2L.js";
|
|
20
20
|
import {
|
|
21
21
|
isAbortError
|
|
22
22
|
} from "./chunk-7DPNBQSV.js";
|
|
23
23
|
import {
|
|
24
24
|
isBuiltinPlatformAgentKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UJKTI5PG.js";
|
|
26
26
|
import {
|
|
27
27
|
NOLO_CLUSTER_SERVERS,
|
|
28
28
|
normalizeKnownServerOrigin
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
2
|
upsertSSREntity,
|
|
3
3
|
write
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AVHRSJUH.js";
|
|
5
5
|
import {
|
|
6
6
|
getRuntimeServerContext,
|
|
7
7
|
resolveRecordAuthority
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2VUZSVAS.js";
|
|
9
9
|
import {
|
|
10
10
|
TIMEOUT,
|
|
11
11
|
asyncThunkCreator,
|
|
12
12
|
buildCreateSlice,
|
|
13
13
|
noloRequest
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
isLevelNotFoundError
|
|
17
|
-
} from "./chunk-OW765XBU.js";
|
|
14
|
+
} from "./chunk-7Z6EW7AH.js";
|
|
18
15
|
import {
|
|
19
16
|
applyAgentSecretMigrationUpdates,
|
|
20
17
|
migrateAgentSecrets,
|
|
21
18
|
normalizeAgentRuntimeToolPolicy
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
createFileCredentialBroker
|
|
25
|
-
} from "./chunk-OQHIVPG4.js";
|
|
19
|
+
} from "./chunk-47ITIXO7.js";
|
|
26
20
|
import {
|
|
27
21
|
asRecordOrEmpty
|
|
28
22
|
} from "./chunk-KX6YBIHG.js";
|
|
29
23
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./chunk-
|
|
24
|
+
createFileCredentialBroker
|
|
25
|
+
} from "./chunk-SNBZZPYH.js";
|
|
32
26
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
27
|
+
isLevelNotFoundError
|
|
28
|
+
} from "./chunk-OW765XBU.js";
|
|
35
29
|
import {
|
|
36
30
|
createAgentKey,
|
|
37
31
|
createUserKey,
|
|
38
32
|
toTrimmedString
|
|
39
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-SYTHYBMI.js";
|
|
40
34
|
import {
|
|
41
35
|
asTrimmedString
|
|
42
36
|
} from "./chunk-3EUW3WEO.js";
|
|
37
|
+
import {
|
|
38
|
+
isRecord
|
|
39
|
+
} from "./chunk-KUG52IAP.js";
|
|
40
|
+
import {
|
|
41
|
+
API_ENDPOINTS
|
|
42
|
+
} from "./chunk-LCBAMY2M.js";
|
|
43
43
|
import {
|
|
44
44
|
asOptionalTrimmedString
|
|
45
45
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -458,7 +458,7 @@ var slice = createSliceWithThunks({
|
|
|
458
458
|
const overrides = {};
|
|
459
459
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
460
460
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
461
|
-
const { _executeModel } = await import("./_executeModel-
|
|
461
|
+
const { _executeModel } = await import("./_executeModel-WW57SJN4.js");
|
|
462
462
|
return _executeModel(
|
|
463
463
|
{
|
|
464
464
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -479,7 +479,7 @@ var slice = createSliceWithThunks({
|
|
|
479
479
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
480
480
|
*/
|
|
481
481
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
482
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
482
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-BVIEQUB3.js");
|
|
483
483
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
484
484
|
{
|
|
485
485
|
agentKey: args.agentKey,
|
|
@@ -495,7 +495,7 @@ var slice = createSliceWithThunks({
|
|
|
495
495
|
* 聊天轮次流式 Agent 调用
|
|
496
496
|
*/
|
|
497
497
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
498
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
498
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-DNYFHBJM.js");
|
|
499
499
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
500
500
|
}),
|
|
501
501
|
/**
|
|
@@ -529,7 +529,7 @@ var slice = createSliceWithThunks({
|
|
|
529
529
|
agent.isPublic = false;
|
|
530
530
|
}
|
|
531
531
|
try {
|
|
532
|
-
const { localFirstLog } = await import("./localFirstLog-
|
|
532
|
+
const { localFirstLog } = await import("./localFirstLog-OIETGK66.js");
|
|
533
533
|
localFirstLog("agent.create.start", {
|
|
534
534
|
owner: effectiveUserId,
|
|
535
535
|
hasRawApiKey: Boolean(readNonEmptyApiKey(agent.apiKey)),
|
|
@@ -583,7 +583,7 @@ var slice = createSliceWithThunks({
|
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
try {
|
|
586
|
-
const { localFirstLog } = await import("./localFirstLog-
|
|
586
|
+
const { localFirstLog } = await import("./localFirstLog-OIETGK66.js");
|
|
587
587
|
localFirstLog("agent.create.done", {
|
|
588
588
|
owner: effectiveUserId,
|
|
589
589
|
key: privateKey,
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
// packages/chat/web/spaceWorkspaces.ts
|
|
2
|
+
var SPACE_WORKSPACES_KEY = "nolo:space-workspaces:v1";
|
|
3
|
+
var isAbsolutePath = (value) => typeof value === "string" && /^(\/|[A-Za-z]:[\\/]|\\\\[^\\]+\\)/.test(value.trim());
|
|
4
|
+
function readAll(storage, userId) {
|
|
5
|
+
if (!userId) return /* @__PURE__ */ Object.create(null);
|
|
6
|
+
const raw = storage.getItem(SPACE_WORKSPACES_KEY);
|
|
7
|
+
if (!raw) return /* @__PURE__ */ Object.create(null);
|
|
8
|
+
try {
|
|
9
|
+
const value = JSON.parse(raw);
|
|
10
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) return /* @__PURE__ */ Object.create(null);
|
|
11
|
+
const record = value;
|
|
12
|
+
if (record.userId !== userId || !record.folders || typeof record.folders !== "object" || Array.isArray(record.folders)) return /* @__PURE__ */ Object.create(null);
|
|
13
|
+
return Object.fromEntries(Object.entries(record.folders).filter(([, path]) => isAbsolutePath(path)));
|
|
14
|
+
} catch {
|
|
15
|
+
return /* @__PURE__ */ Object.create(null);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function readSpaceWorkspaceFolder(storage, spaceId, userId) {
|
|
19
|
+
if (!spaceId) return null;
|
|
20
|
+
const paths = readAll(storage, userId);
|
|
21
|
+
return Object.hasOwn(paths, spaceId) ? paths[spaceId].trim() : null;
|
|
22
|
+
}
|
|
23
|
+
|
|
1
24
|
// packages/chat/web/desktopFolderProjects.ts
|
|
2
25
|
var DESKTOP_FOLDER_PROJECTS_KEY = "nolo:desktop-folder-projects:v1";
|
|
3
26
|
function updateDesktopProject(storage, projectId, patch) {
|
|
@@ -148,7 +171,7 @@ function readDesktopDefaultWorkspacePath() {
|
|
|
148
171
|
if (typeof window === "undefined") return null;
|
|
149
172
|
return window.__NOLO_DESKTOP_CWD__?.trim() || null;
|
|
150
173
|
}
|
|
151
|
-
function resolveDialogWorkspaceFolder(storage, dialogKey) {
|
|
174
|
+
function resolveDialogWorkspaceFolder(storage, dialogKey, spaceId, userId) {
|
|
152
175
|
const projectId = readDialogProjectId(storage, dialogKey);
|
|
153
176
|
const projectPath = projectId ? resolveSelectedDesktopFolder(
|
|
154
177
|
readDesktopFolderProjects(storage.getItem(DESKTOP_FOLDER_PROJECTS_KEY)),
|
|
@@ -158,7 +181,7 @@ function resolveDialogWorkspaceFolder(storage, dialogKey) {
|
|
|
158
181
|
const exists = readDesktopFolderProjects(storage.getItem(DESKTOP_FOLDER_PROJECTS_KEY)).some((p) => p.id === projectId);
|
|
159
182
|
return { cwd: projectPath || null, projectId, missing: !exists };
|
|
160
183
|
}
|
|
161
|
-
return { cwd: readDesktopDefaultWorkspacePath(), projectId: null, missing: false };
|
|
184
|
+
return { cwd: readSpaceWorkspaceFolder(storage, spaceId, userId) ?? readDesktopDefaultWorkspacePath(), projectId: null, missing: false };
|
|
162
185
|
}
|
|
163
186
|
|
|
164
187
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_react
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5FUN7EG4.js";
|
|
4
4
|
import {
|
|
5
5
|
__toESM
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-U67V476Y.js";
|
|
7
7
|
|
|
8
8
|
// packages/chat/dialog/dialogRuntimeTypes.ts
|
|
9
9
|
var GLOBAL_DIALOG_RUNTIME_KEY = "__global__";
|
|
@@ -580,6 +580,7 @@ export {
|
|
|
580
580
|
applyClearDialogStateRuntime,
|
|
581
581
|
deleteDialogRuntime,
|
|
582
582
|
abortActiveControllers,
|
|
583
|
+
getDialogRuntimeState,
|
|
583
584
|
getDialogRuntimeTokens,
|
|
584
585
|
getRecoveredForegroundTurn,
|
|
585
586
|
selectDialogRuntimeByKey,
|
|
@@ -592,6 +593,7 @@ export {
|
|
|
592
593
|
selectLoopStopReason,
|
|
593
594
|
selectCurrentDialogKey,
|
|
594
595
|
selectConfigError,
|
|
596
|
+
subscribe,
|
|
595
597
|
usePendingFiles,
|
|
596
598
|
useActiveControllers,
|
|
597
599
|
usePendingUserInputQueue,
|