nolo-cli 0.228.0 → 0.228.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_executeModel-GIFVXKDT.js → _executeModel-AKCTHGMP.js} +62 -61
- package/{action-WZTKEF5H.js → action-C6IQAKN4.js} +6 -6
- package/{addContentAction-MLI6GOBV.js → addContentAction-53364YDW.js} +10 -10
- package/{addDialogAgentAction-ARGQM22H.js → addDialogAgentAction-U5DD5EN5.js} +9 -9
- package/{agentDeleteCommand-UF7XVELS.js → agentDeleteCommand-2E5FAGUO.js} +99 -93
- package/{agentEmailCommands-SFHRPQYC.js → agentEmailCommands-UGZZAH7E.js} +99 -93
- package/{agentListCommands-IXKBP3W5.js → agentListCommands-JCTW3J2K.js} +240 -52
- package/{agentMachineCommands-7NX6PWQ6.js → agentMachineCommands-QPG5ZXF4.js} +45 -41
- package/{agentProviderCommands-C5T7C5KZ.js → agentProviderCommands-QLTABYR7.js} +2 -2
- package/{agentPullCommand-4EQZYHU4.js → agentPullCommand-2EYJ5ENC.js} +1 -1
- package/{agentRecordCommands-IUNX6XD6.js → agentRecordCommands-4NTVR6MZ.js} +98 -92
- package/{agentRunCommand-LCR4XADM.js → agentRunCommand-VHF34PYC.js} +103 -94
- package/{agentRunControl-RN2P6AOD.js → agentRunControl-QYTXUQGY.js} +10 -7
- package/{agentRuntimeLocal-LVXPQ7QA.js → agentRuntimeLocal-U54AKHXH.js} +38 -36
- package/{agentSlice-ZGMOH6TE.js → agentSlice-4JGDEXWK.js} +10 -10
- package/{appDeleteCommands-BESCJOQM.js → appDeleteCommands-XBE5QJ6P.js} +46 -42
- package/{appDeployCommands-LPTR6IOX.js → appDeployCommands-QIYLXXGA.js} +46 -42
- package/{appDeployStatusCommands-BZ7KZ5RD.js → appDeployStatusCommands-JXS6ZQZZ.js} +46 -42
- package/{appGetCommands-EDWGJV4S.js → appGetCommands-SZS7SJPK.js} +46 -42
- package/{appListCommands-OPRWYPM6.js → appListCommands-B3GBJSNV.js} +46 -42
- package/{authCommand-3C3RN4OU.js → authCommand-V6EOMZX6.js} +15 -15
- package/{authCommands-ZMVEDCQD.js → authCommands-T5FODCEG.js} +2 -2
- package/{builtinSkillRegistry-VRCMQ77Q.js → builtinSkillRegistry-ZQC3IIO2.js} +4 -3
- package/{chromeOpsCommands-NZITLHWO.js → chromeOpsCommands-OFX7ZGKP.js} +2 -2
- package/{chunk-MZVCFV3T.js → chunk-223KZUJ6.js} +4 -4
- package/{chunk-UF6J7NXV.js → chunk-2C5VN7NH.js} +1 -1
- package/{chunk-MAA42MMV.js → chunk-2FZVXOFX.js} +4 -4
- package/{chunk-ESN4WNWU.js → chunk-2JHGUL5K.js} +2 -2
- package/chunk-3A5NNQCN.js +64 -0
- package/chunk-3F2FRLIO.js +372 -0
- package/{chunk-V4IYI3SB.js → chunk-46FETNLF.js} +2 -2
- package/{chunk-RR3MB26M.js → chunk-4GYVS4PM.js} +8 -6
- package/{chunk-ZQ6K57FJ.js → chunk-4YPH5KRA.js} +1 -1
- package/{chunk-Y4NPF2UN.js → chunk-5AYP5QBB.js} +5 -5
- package/{chunk-4OXPN3WC.js → chunk-5ISNPTQH.js} +4 -4
- package/{chunk-CO6E7YK6.js → chunk-5P3PPQVP.js} +1 -1
- package/{chunk-6TVYUQRM.js → chunk-6BMTKYAO.js} +2 -2
- package/{chunk-KLAMJNKQ.js → chunk-6PAHSSD2.js} +15 -8
- package/{chunk-CTWCZKNS.js → chunk-6SOWMEAY.js} +4 -4
- package/{chunk-ARFCL53U.js → chunk-6VEO7Z3Y.js} +5 -5
- package/{chunk-ZM5AZTQG.js → chunk-7BIJFGKS.js} +20 -8
- package/{chunk-BAH3BAUZ.js → chunk-7OVOZRZF.js} +5 -5
- package/{chunk-N74XL3NI.js → chunk-7PON4LBY.js} +42 -24
- package/{chunk-LTVEOOZL.js → chunk-7WHCIA5V.js} +16 -3
- package/{chunk-HZDK56EK.js → chunk-ADYWV732.js} +34 -12
- package/{chunk-2FK2KZSL.js → chunk-AIFQKNPP.js} +1 -1
- package/{chunk-VTHWBTRE.js → chunk-BPB3T5EU.js} +5 -8
- package/{chunk-SX6AWTNK.js → chunk-BZLGPM5B.js} +3 -3
- package/{chunk-MTM4LRVG.js → chunk-BZMDWGQQ.js} +2 -2
- package/{chunk-JP2BH4NC.js → chunk-CEKRIR22.js} +1 -1
- package/{chunk-5HUO7SEX.js → chunk-D634SL2Y.js} +1 -1
- package/{chunk-SCMYAGQE.js → chunk-DHRPLRIR.js} +294 -159
- package/{chunk-VUHKG4KS.js → chunk-DNNPARJK.js} +9 -5
- package/{chunk-X22AUZKL.js → chunk-E3LSO6EI.js} +189 -88
- package/{chunk-LHCGKAFO.js → chunk-EHFBP6IK.js} +100 -48
- package/{chunk-6ASGEP5D.js → chunk-EJQE5HB7.js} +1 -1
- package/{chunk-2BKNICGK.js → chunk-EL5NRJHI.js} +1 -1
- package/chunk-EUGTFFO6.js +42 -0
- package/{chunk-YFW4H6DL.js → chunk-EVHTYVD2.js} +821 -131
- package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
- package/{chunk-E5RYFR7E.js → chunk-FEIVARWR.js} +49 -15
- package/{chunk-3DJJ4CFG.js → chunk-FLBJ7IJI.js} +9 -9
- package/{chunk-W3HSD32M.js → chunk-FXEPZKNJ.js} +2 -2
- package/{chunk-VKCPKCSS.js → chunk-FYAMUU55.js} +625 -62
- package/{chunk-JEWMQR6J.js → chunk-FZANZZ63.js} +1 -1
- package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
- package/{chunk-YHNUDTU4.js → chunk-HDKMVYNJ.js} +4 -4
- package/chunk-HEVRQGGH.js +106 -0
- package/{chunk-PBPXXMWZ.js → chunk-HFHJPHFK.js} +1 -1
- package/{chunk-WQDTSK5U.js → chunk-HPDLPEUG.js} +11 -5
- package/{chunk-SPU3L3OR.js → chunk-HQUGB2HM.js} +3 -3
- package/chunk-IVK2KT3H.js +209 -0
- package/{chunk-73PZD7JZ.js → chunk-IYLUK67R.js} +2 -2
- package/{chunk-BFKJ2RS3.js → chunk-J55F3IEZ.js} +1 -1
- package/{chunk-ADOOL3PG.js → chunk-J7JRCOIW.js} +1 -1
- package/{chunk-AEZBAFC6.js → chunk-JAKRY74O.js} +138 -8
- package/{chunk-NEG5LYK5.js → chunk-JCQ3WCQ3.js} +3 -1
- package/{chunk-W6T4FNZP.js → chunk-JLZJL3WC.js} +219 -351
- package/{chunk-PQ63BDV3.js → chunk-JPXACKSW.js} +9 -1
- package/{chunk-IIOSZAJX.js → chunk-KDBDOXOM.js} +137 -53
- package/{chunk-CIGCTSBF.js → chunk-KDDHQMSH.js} +1 -1
- package/{chunk-OAZP4TSA.js → chunk-KG27JIG4.js} +2 -2
- package/{chunk-RHBD22LV.js → chunk-KHYSFS3W.js} +80 -4
- package/{chunk-7UVVLYKC.js → chunk-KKIQAVDR.js} +5 -5
- package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
- package/{chunk-OLGFIQN2.js → chunk-LLUBUHNT.js} +1 -1
- package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
- package/{chunk-K26XPZRB.js → chunk-LVZVSLKO.js} +29 -9
- package/{chunk-XJSEST7D.js → chunk-MNFUKRRU.js} +3 -3
- package/{chunk-R5NRFXGD.js → chunk-O3A2CHAL.js} +5 -5
- package/{chunk-4IQN6FWY.js → chunk-OB4FBZXJ.js} +4 -4
- package/{chunk-J2VIGDJN.js → chunk-OJSJJKHF.js} +3 -3
- package/{chunk-OHUYN3YU.js → chunk-OKAXQFON.js} +1 -1
- package/{chunk-CD2DK5JA.js → chunk-OKH74FML.js} +2 -1
- package/{chunk-MYYNZG2M.js → chunk-OOV5JN25.js} +4 -4
- package/{chunk-TMRJGSK2.js → chunk-OOVOAG4Q.js} +1 -1
- package/chunk-OQFOE4SJ.js +405 -0
- package/{chunk-AS6L5KSD.js → chunk-P4R5KXU7.js} +2 -2
- package/{chunk-VIYVRPMJ.js → chunk-PHREU2KZ.js} +5 -3
- package/{chunk-EDT65EUE.js → chunk-PIVTQRX6.js} +45 -15
- package/{chunk-QMNVV3YM.js → chunk-PJL7OJRC.js} +12 -11
- package/{chunk-XCA4WHX5.js → chunk-PNLDLUMO.js} +315 -360
- package/{chunk-UPOW5HTG.js → chunk-QGFLVQ6E.js} +3 -3
- package/{chunk-JU7VN4LF.js → chunk-QONAOHVW.js} +6 -6
- package/{chunk-UOUMPHS5.js → chunk-R3FZHW4Q.js} +13 -13
- package/{chunk-K7VIXYTZ.js → chunk-R3MV2GII.js} +1 -45
- package/{chunk-FE7G6DSP.js → chunk-R72QWIFO.js} +14 -4
- package/{chunk-KZAT2M2V.js → chunk-RIWKZT7E.js} +22 -0
- package/{chunk-RMWDKLBE.js → chunk-S7H4KTMB.js} +1099 -71
- package/{chunk-IJZC2KIJ.js → chunk-SA356NGW.js} +1 -1
- package/{chunk-BVEDT6DM.js → chunk-SCAC3NM5.js} +3 -3
- package/{chunk-EQZQUQ33.js → chunk-SLUN7W6S.js} +5 -5
- package/{chunk-KK3FCYZM.js → chunk-SQL7YNED.js} +7 -4
- package/{chunk-LMGFVH65.js → chunk-SSOR2EDT.js} +10 -10
- package/chunk-TRRXYFTR.js +46 -0
- package/{chunk-XNTZD4AE.js → chunk-TUOHSUK5.js} +19367 -17503
- package/chunk-TYJCIA2O.js +835 -0
- package/{chunk-FTWAOKFU.js → chunk-U3BUWDUP.js} +415 -1962
- package/{chunk-CD64YXRB.js → chunk-U6QNVOR5.js} +1 -1
- package/chunk-UAF5VQCE.js +77 -0
- package/{chunk-CIUZXD5D.js → chunk-UFGUJ2IH.js} +5 -5
- package/{chunk-CTIEJRTP.js → chunk-UP7KBWLE.js} +81 -29
- package/{chunk-GX6DITLQ.js → chunk-UUCYUN6Y.js} +1 -1
- package/{chunk-UHW6SCVK.js → chunk-UZKBVQUX.js} +1 -1
- package/{chunk-XSRSAU3O.js → chunk-V5TI7HJH.js} +3 -3
- package/{chunk-WFGNWWJI.js → chunk-VH7UO6E5.js} +252 -114
- package/{chunk-ITBX27W6.js → chunk-VJFDG3ZG.js} +30 -122
- package/{chunk-6MTVACLN.js → chunk-WC3J5SL2.js} +277 -293
- package/{chunk-HCCQEMTK.js → chunk-WD5547ZF.js} +15 -12
- package/{chunk-X3OZ655T.js → chunk-WS36XPJD.js} +2 -2
- package/{chunk-JFRJEPFI.js → chunk-WSLL7VV4.js} +2 -2
- package/chunk-XRGBJHZX.js +136 -0
- package/{chunk-KZ5OD2MO.js → chunk-Y2KWJTOZ.js} +3 -3
- package/{dialogUsageCommand-6RW2FY6K.js → chunk-Y2TCTNUD.js} +24 -17
- package/{chunk-FFFKAOJN.js → chunk-YN23INFZ.js} +1 -1
- package/{chunk-ODBYGVO2.js → chunk-YXK3GJF5.js} +5 -5
- package/{chunk-6CXQ3YNJ.js → chunk-Z2OWAYMI.js} +53 -31
- package/{chunk-6XVPMGXK.js → chunk-ZTHAJU3O.js} +10 -4
- package/{chunk-D25ONVOH.js → chunk-ZYPXOQS2.js} +1 -1
- package/{cliAgentConfigHelpers-37ZNEY5Y.js → cliAgentConfigHelpers-BXHQ3PXP.js} +8 -8
- package/{cliAuthorityBrokerClient-SFPC3WVK.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
- package/cliAuthorityBrokerProcess-5ZFBTHLB.js +22 -0
- package/{cliLocalAgentRecordReader-MCQVRWBR.js → cliLocalAgentRecordReader-47PXMHPH.js} +43 -41
- package/{commandRegistry-NTH5IAN5.js → commandRegistry-CTMPAQH2.js} +93 -156
- package/{contentThunks-SPXTX5U2.js → contentThunks-CAHIIZO5.js} +25 -25
- package/{cooldownCommands-TIFCHCUN.js → cooldownCommands-WDOI5VD7.js} +3 -3
- package/{createAgentAutomationAction-KUQKCOXB.js → createAgentAutomationAction-M25XZSPD.js} +25 -25
- package/{createDialogAction-HJN5U3XS.js → createDialogAction-4SN7FKI7.js} +26 -26
- package/{createPageAction-ZAHRDOAU.js → createPageAction-N7QPDN3M.js} +28 -28
- package/{db-CMUTP3W5.js → db-VR74ADGC.js} +7 -2
- package/{dbSlice-656PMWR2.js → dbSlice-RWPSVHBC.js} +9 -9
- package/{deleteFile-ZCQESEEQ.js → deleteFile-ECU6FU5C.js} +12 -7
- package/{dialogCommands-KZTZLWPZ.js → dialogCommands-BBHWCKDP.js} +57 -47
- package/{dialogNotifyCommand-PST75COP.js → dialogNotifyCommand-IASQGEMW.js} +9 -9
- package/{dialogSlice-BXIERQHO.js → dialogSlice-JI3J22RV.js} +23 -23
- package/dialogTraceCommand-EW2KK6A4.js +961 -0
- package/dialogUsageCommand-WJ3U6KZU.js +27 -0
- package/{docCreateCommands-26HJ5NAY.js → docCreateCommands-QSX3X5U4.js} +45 -41
- package/{docDeleteCommands-UAOHH5XK.js → docDeleteCommands-63JBG2HQ.js} +46 -42
- package/{docReadCommands-4ADG7YE6.js → docReadCommands-CQFKRQUI.js} +45 -41
- package/{docStore-FZ75HWP2.js → docStore-XLBKGGNM.js} +10 -10
- package/{docUpdateCommands-OGFJZENF.js → docUpdateCommands-534LUK25.js} +45 -41
- package/ebookDownloaderAgentCommand-DYSKF5ZY.js +677 -0
- package/{getPricing-FCHYVRJU.js → getPricing-5BLZRPTM.js} +3 -3
- package/{handleSendMessageAction-KP6GGBFY.js → handleSendMessageAction-Q2VMEVOR.js} +90 -48
- package/{hostCredentialCreate-23TX56G7.js → hostCredentialCreate-C57T7YPE.js} +99 -93
- package/index.js +23 -11
- package/{localDialogRead-CIOTQM5T.js → localDialogRead-BJJT3TF5.js} +1 -1
- package/{localRuntimeAdapter-MTUWOYPN.js → localRuntimeAdapter-OALZPFZU.js} +96 -90
- package/{localRuntimeAuthority-TYHQCTZN.js → localRuntimeAuthority-UF2DAQ3F.js} +13 -3
- package/{localRuntimeDb-BO7IVWAZ.js → localRuntimeDb-ZJFGNHML.js} +1 -1
- package/{machineCommands-4WJUJQHW.js → machineCommands-N6IVWRZT.js} +109 -92
- package/{machineWsRunDispatch-V3U4JM67.js → machineWsRunDispatch-PDWYB33B.js} +97 -91
- package/{markdownToSlate-KIYM7B3P.js → markdownToSlate-PXYAIBVL.js} +1 -1
- package/{mcpLocalAuthorizeCommand-TI656UWC.js → mcpLocalAuthorizeCommand-KYI4EGF5.js} +17 -13
- package/{memberThunks-JFYC4Z5L.js → memberThunks-43B7UYC5.js} +11 -11
- package/{models-EP7VG6N2.js → models-ZX2BYIMB.js} +2 -2
- package/package.json +2 -1
- package/{projectArchive-NU2Z5HOR.js → projectArchive-TJNW5DLM.js} +28 -28
- package/{providerPresetApply-4H7YP5D7.js → providerPresetApply-NTJUINI6.js} +35 -16
- package/{providerRegistry-F3UPOTIY.js → providerRegistry-W45SLUV6.js} +5 -5
- package/{read-BRZHXUJ6.js → read-KG6INYUT.js} +12 -7
- package/{readDocTool-N7RVFQEE.js → readDocTool-N3GA52JR.js} +1 -1
- package/{readlineWorkspace-T56MRMS5.js → readlineWorkspace-PJZJVGA5.js} +1296 -1056
- package/{removeDialogAgentAction-J7XU7OUX.js → removeDialogAgentAction-EEVSOQOJ.js} +11 -11
- package/{runAgentClientLoop-O2GRCGRZ.js → runAgentClientLoop-3VC5TCDW.js} +69 -58
- package/{runtimeDoctorCommands-RDRJXMXC.js → runtimeDoctorCommands-V3M3JTUV.js} +14 -11
- package/{secretCommands-2FEMRUFM.js → secretCommands-KVVZS7A6.js} +2 -2
- package/{setDialogExtraReferencesAction-Q4V2ZZW2.js → setDialogExtraReferencesAction-DNO5POHA.js} +10 -10
- package/{setPrimaryDialogAgentAction-742H5S6T.js → setPrimaryDialogAgentAction-QABBEO4C.js} +11 -11
- package/{settingThunks-T4FXSV6M.js → settingThunks-DVKG4X4S.js} +13 -17
- package/{skillDiscovery-MDDKPTW3.js → skillDiscovery-ZMJH36AK.js} +3 -3
- package/{spaceCommands-W5TAVFDT.js → spaceCommands-AGGZXPY3.js} +218 -77
- package/{streamAgentChatTurn-OWDJMU5E.js → streamAgentChatTurn-4GTLL2OF.js} +111 -95
- package/{switchDialogAgentAction-HLDLHRRA.js → switchDialogAgentAction-KYWJSGOO.js} +9 -9
- package/{tableCommands-44GC4N6J.js → tableCommands-EFA754RE.js} +3 -3
- package/{tools-O7SGGVA3.js → tools-5AGPOPLW.js} +48 -47
- package/{tuiRestart-EOGC2BYY.js → tuiRestart-77E7PL4R.js} +9 -8
- package/{tuiSummaryLlmCaller-TM5BU73J.js → tuiSummaryLlmCaller-HROLGN4F.js} +12 -12
- package/{updateCommands-FBYA5WVG.js → updateCommands-GJGRS6JK.js} +3 -3
- package/{updateDialogTitleAction-EXSZGTLL.js → updateDialogTitleAction-5OSEDGRK.js} +25 -25
- package/{usageCommand-L4OFWXEU.js → usageCommand-WI6SQOPB.js} +2 -2
- package/{usageRebuildCommand-7JR33UHS.js → usageRebuildCommand-WQRLLZAT.js} +3 -3
- package/{windowsSelfUpdate-M4V77OUB.js → windowsSelfUpdate-C7LGVWYX.js} +2 -2
- package/{workloadLifecycle-ZCSQCHG3.js → workloadLifecycle-P2SJVV3S.js} +2 -2
- package/chunk-FGHEF6WI.js +0 -34
- package/chunk-U5LOKQ2R.js +0 -176
- package/chunk-YDRRGVT5.js +0 -142
- package/chunk-YGDYYFRX.js +0 -86
- package/chunk-Z7KE4K3H.js +0 -758
- package/lib-62SWPXNF.js +0 -21042
- /package/{chunk-ANUP75N2.js → chunk-2E4BYAUE.js} +0 -0
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
deleteDialog,
|
|
3
3
|
runtime_default,
|
|
4
4
|
toast
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EVHTYVD2.js";
|
|
6
6
|
import {
|
|
7
7
|
getAllMemberSpaces,
|
|
8
8
|
getCurrentSpaceId,
|
|
9
9
|
getCurrentSpaceIdRaw,
|
|
10
10
|
updateCurrentSpaceIfMatch
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YN23INFZ.js";
|
|
12
12
|
import {
|
|
13
13
|
require_formatISO
|
|
14
14
|
} from "./chunk-UVLYNWIE.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
patchIndividualContentRecord,
|
|
24
24
|
readContentRecordForSpaceSync,
|
|
25
25
|
syncContentRecordSpaceId
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-46FETNLF.js";
|
|
27
27
|
import {
|
|
28
28
|
createSpaceKey,
|
|
29
29
|
normalizeSpaceId
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
uploadFileAction,
|
|
37
37
|
upsertSSREntity,
|
|
38
38
|
write
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-ADYWV732.js";
|
|
40
40
|
import {
|
|
41
41
|
resolveFileCategory
|
|
42
42
|
} from "./chunk-3PVYUPXK.js";
|
|
@@ -50,13 +50,13 @@ import {
|
|
|
50
50
|
resolveReplicationServers,
|
|
51
51
|
scheduleDeleteReplication,
|
|
52
52
|
scheduleWriteReplication
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-HPDLPEUG.js";
|
|
54
54
|
import {
|
|
55
55
|
createAsyncThunk
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-ZTHAJU3O.js";
|
|
57
57
|
import {
|
|
58
58
|
getIsDesktopApp
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-HDKMVYNJ.js";
|
|
60
60
|
import {
|
|
61
61
|
createClientLogger
|
|
62
62
|
} from "./chunk-QQ56R7KS.js";
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
} from "./chunk-BV3FLP2L.js";
|
|
75
75
|
import {
|
|
76
76
|
isSystemAdmin
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-5P3PPQVP.js";
|
|
78
78
|
import {
|
|
79
79
|
SEPARATOR,
|
|
80
80
|
createKey,
|
|
@@ -1513,11 +1513,11 @@ var ENTITY_DELETE_STRATEGIES = {
|
|
|
1513
1513
|
await dispatch(deleteTable({ dbKey: key })).unwrap();
|
|
1514
1514
|
},
|
|
1515
1515
|
file: async (key, { thunkAPI }) => {
|
|
1516
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
1516
|
+
const { deleteFileAction } = await import("./deleteFile-ECU6FU5C.js");
|
|
1517
1517
|
await deleteFileAction(key, thunkAPI);
|
|
1518
1518
|
},
|
|
1519
1519
|
image: async (key, { thunkAPI }) => {
|
|
1520
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
1520
|
+
const { deleteFileAction } = await import("./deleteFile-ECU6FU5C.js");
|
|
1521
1521
|
await deleteFileAction(key, thunkAPI);
|
|
1522
1522
|
},
|
|
1523
1523
|
agent: async (key, { dispatch, userId, sourceServerOrigin }) => {
|
|
@@ -2439,7 +2439,11 @@ var uploadOnce = async (payload, thunkAPI, userId) => {
|
|
|
2439
2439
|
fileName: file.name
|
|
2440
2440
|
});
|
|
2441
2441
|
const fileMetadata = await uploadFileAction(
|
|
2442
|
-
|
|
2442
|
+
// 这是「上传为 Space 资产」,不是「把个人文件收录进 Space」:
|
|
2443
|
+
// 明确声明 Space 归属,服务端校验成员身份后落库
|
|
2444
|
+
// `ownerType:"space"` + `ownerId:<spaceId>`,其他成员据此可读原件。
|
|
2445
|
+
// 声明只是请求,服务端(uploadOwnership.ts)才是归属权威。
|
|
2446
|
+
{ file, customKey: dbKey, userId, ownerType: "space", spaceId },
|
|
2443
2447
|
thunkAPI
|
|
2444
2448
|
);
|
|
2445
2449
|
if (!fileMetadata) {
|
|
@@ -2476,7 +2480,6 @@ var uploadOnce = async (payload, thunkAPI, userId) => {
|
|
|
2476
2480
|
title,
|
|
2477
2481
|
spaceId,
|
|
2478
2482
|
fileCategory,
|
|
2479
|
-
mimeType: file.type || void 0,
|
|
2480
2483
|
fileSize,
|
|
2481
2484
|
originalName: file.name
|
|
2482
2485
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRuntimeServerContext,
|
|
3
3
|
scheduleDeleteReplication
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HPDLPEUG.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchFromClientDb
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HDKMVYNJ.js";
|
|
8
8
|
import {
|
|
9
9
|
selectIdentityToken
|
|
10
10
|
} from "./chunk-PXYBUFDB.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getCurrentSpaceIdRaw,
|
|
3
3
|
setCurrentSpaceBoth,
|
|
4
4
|
setSpaceInitialized
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YN23INFZ.js";
|
|
6
6
|
import {
|
|
7
7
|
createSpaceKey,
|
|
8
8
|
normalizeSpaceId
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
googleSessionRequestToken,
|
|
14
14
|
isGoogleAuthoritySession,
|
|
15
15
|
scopeGoogleSessionServers
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HDKMVYNJ.js";
|
|
17
17
|
import {
|
|
18
18
|
selectIdentityToken,
|
|
19
19
|
selectIdentityUserId
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
// packages/cli/client/cliExitSync.ts
|
|
2
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3
|
+
var scopes = new AsyncLocalStorage();
|
|
4
|
+
var KNOWN_SYNC_FAILURE_CODES = /* @__PURE__ */ new Set([
|
|
5
|
+
"owner_mismatch",
|
|
6
|
+
"owner_origin_mismatch",
|
|
7
|
+
"owner_grant_revoked",
|
|
8
|
+
"owner_oauth_unavailable",
|
|
9
|
+
"invalid_grant",
|
|
10
|
+
"auth_no_token",
|
|
11
|
+
"token_expired",
|
|
12
|
+
"user_batch_authority_controlled",
|
|
13
|
+
"tombstone_conflict"
|
|
14
|
+
]);
|
|
15
|
+
var SYNC_FAILURE_CODE_RE = /"(?:code|error|reason)"\s*:\s*"([A-Za-z0-9_.:-]{1,48})"/;
|
|
16
|
+
function classifyDialogSyncFailure(error) {
|
|
17
|
+
if (error instanceof Error && error.name === "AbortError") return "aborted";
|
|
18
|
+
if (error instanceof Error && error.name === "TimeoutError") return "timeout";
|
|
19
|
+
const match = error instanceof Error ? /^remote dialog evidence write failed: HTTP (\d{3})\b([\s\S]*)$/.exec(error.message) : null;
|
|
20
|
+
if (!match) return "transport_or_sync";
|
|
21
|
+
const candidate = SYNC_FAILURE_CODE_RE.exec(match[2] ?? "")?.[1]?.toLowerCase();
|
|
22
|
+
const code = candidate && KNOWN_SYNC_FAILURE_CODES.has(candidate) ? candidate : void 0;
|
|
23
|
+
return code ? `http_${match[1]}(${code})` : `http_${match[1]}`;
|
|
24
|
+
}
|
|
25
|
+
function startOwnedDialogSync(fetchImpl, start) {
|
|
26
|
+
const scope = scopes.getStore();
|
|
27
|
+
if (!scope) return start(fetchImpl);
|
|
28
|
+
if (scope.closed) return Promise.reject(new Error("dialog_sync_scope_closed"));
|
|
29
|
+
const entry = { watermark: scope.entries.length + 1, httpOkRecords: 0, controller: new AbortController(), state: "pending", done: Promise.resolve() };
|
|
30
|
+
scope.entries.push(entry);
|
|
31
|
+
const trackedFetch = async (url, init) => {
|
|
32
|
+
entry.controller.signal.throwIfAborted();
|
|
33
|
+
const signal = init?.signal ? AbortSignal.any([init.signal, entry.controller.signal]) : entry.controller.signal;
|
|
34
|
+
const response = await fetchImpl(url, { ...init, signal });
|
|
35
|
+
signal.throwIfAborted();
|
|
36
|
+
if (response.ok && String(url).includes("/api/v1/db/write/")) entry.httpOkRecords++;
|
|
37
|
+
return response;
|
|
38
|
+
};
|
|
39
|
+
entry.done = Promise.resolve().then(() => start(trackedFetch)).then((result) => {
|
|
40
|
+
if (entry.state === "pending") entry.state = "completed";
|
|
41
|
+
return result;
|
|
42
|
+
}, (error) => {
|
|
43
|
+
if (entry.state === "pending") {
|
|
44
|
+
entry.state = "failed";
|
|
45
|
+
entry.failureClass = classifyDialogSyncFailure(error);
|
|
46
|
+
}
|
|
47
|
+
throw error;
|
|
48
|
+
});
|
|
49
|
+
void entry.done.catch(() => {
|
|
50
|
+
});
|
|
51
|
+
return entry.done;
|
|
52
|
+
}
|
|
53
|
+
function drain(scope, unsafeRunner = false) {
|
|
54
|
+
if (scope.drain) return scope.drain;
|
|
55
|
+
scope.closed = true;
|
|
56
|
+
scope.drain = (async () => {
|
|
57
|
+
const entries = scope.entries.slice();
|
|
58
|
+
let timer;
|
|
59
|
+
const abortPending = (classification) => {
|
|
60
|
+
for (const entry of entries) if (entry.state === "pending") {
|
|
61
|
+
entry.state = "timeout";
|
|
62
|
+
entry.failureClass = classification;
|
|
63
|
+
entry.controller.abort(new Error("dialog_sync_drain_stopped"));
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
try {
|
|
67
|
+
if (unsafeRunner) abortPending("runner_not_stopped");
|
|
68
|
+
else if (entries.length) await Promise.race([
|
|
69
|
+
Promise.allSettled(entries.map((entry) => entry.done)),
|
|
70
|
+
new Promise((resolve) => {
|
|
71
|
+
timer = setTimeout(() => {
|
|
72
|
+
abortPending("timeout");
|
|
73
|
+
resolve();
|
|
74
|
+
}, scope.timeoutMs);
|
|
75
|
+
})
|
|
76
|
+
]);
|
|
77
|
+
} finally {
|
|
78
|
+
if (timer) clearTimeout(timer);
|
|
79
|
+
}
|
|
80
|
+
const failed = entries.filter((entry) => entry.state !== "completed");
|
|
81
|
+
for (const entry of failed) scope.output.write(`[nolo] dialog_sync ${entry.state}: watermark=${entry.watermark} httpOkRecords=${entry.httpOkRecords} class=${entry.failureClass ?? entry.state}; local history retained; remote sync incomplete.
|
|
82
|
+
`);
|
|
83
|
+
return failed.length === 0;
|
|
84
|
+
})();
|
|
85
|
+
return scope.drain;
|
|
86
|
+
}
|
|
87
|
+
function exitCliFromWatchdog(code, exit, stopRunner) {
|
|
88
|
+
const scope = scopes.getStore();
|
|
89
|
+
if (!scope) {
|
|
90
|
+
exit(code);
|
|
91
|
+
return Promise.resolve();
|
|
92
|
+
}
|
|
93
|
+
if (scope.watchdogExit) return scope.watchdogExit;
|
|
94
|
+
scope.closed = true;
|
|
95
|
+
scope.watchdogExit = (async () => {
|
|
96
|
+
let stopped = false;
|
|
97
|
+
try {
|
|
98
|
+
stopped = await stopRunner();
|
|
99
|
+
} catch {
|
|
100
|
+
}
|
|
101
|
+
if (!stopped) scope.output.write("[nolo] dialog_sync failed: class=runner_not_stopped; cancelling pending sync before hard exit.\n");
|
|
102
|
+
const complete = await drain(scope, !stopped);
|
|
103
|
+
exit(code === 0 || !complete ? 1 : code);
|
|
104
|
+
})();
|
|
105
|
+
return scope.watchdogExit;
|
|
106
|
+
}
|
|
107
|
+
async function runCliCommandWithSyncDrain(command, options) {
|
|
108
|
+
const timeoutMs = Number.isFinite(options.timeoutMs) && (options.timeoutMs ?? 0) > 0 ? options.timeoutMs : 15e3;
|
|
109
|
+
await scopes.run({ entries: [], closed: false, output: options.output, timeoutMs }, async () => {
|
|
110
|
+
const scope = scopes.getStore();
|
|
111
|
+
let code = 70;
|
|
112
|
+
let commandError;
|
|
113
|
+
let commandThrew = false;
|
|
114
|
+
try {
|
|
115
|
+
code = await command();
|
|
116
|
+
} catch (error) {
|
|
117
|
+
commandThrew = true;
|
|
118
|
+
commandError = error;
|
|
119
|
+
}
|
|
120
|
+
if (scope.watchdogExit) {
|
|
121
|
+
await scope.watchdogExit;
|
|
122
|
+
if (commandThrew) throw commandError;
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
const complete = await drain(scope);
|
|
126
|
+
if (commandThrew) throw commandError;
|
|
127
|
+
await options.exit(code === 0 && !complete ? 1 : code);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export {
|
|
132
|
+
classifyDialogSyncFailure,
|
|
133
|
+
startOwnedDialogSync,
|
|
134
|
+
exitCliFromWatchdog,
|
|
135
|
+
runCliCommandWithSyncDrain
|
|
136
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fetchReferenceContents,
|
|
3
3
|
resolveReferenceAssets
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QONAOHVW.js";
|
|
5
5
|
import {
|
|
6
6
|
updateTokensAction
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EVHTYVD2.js";
|
|
8
8
|
import {
|
|
9
9
|
applyUpdateTokensFulfilled
|
|
10
10
|
} from "./chunk-U35UUM5K.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
extractReasoningFromResponseOutput,
|
|
13
13
|
extractTextFromResponseOutput,
|
|
14
14
|
extractToolCallsFromResponseOutput
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FXEPZKNJ.js";
|
|
16
16
|
import {
|
|
17
17
|
isRecord
|
|
18
18
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolveObservedSpeed
|
|
3
|
-
} from "./chunk-AMWMV56B.js";
|
|
4
1
|
import {
|
|
5
2
|
ALL_MODELS
|
|
6
3
|
} from "./chunk-TZXPT53C.js";
|
|
4
|
+
import {
|
|
5
|
+
resolveObservedSpeed
|
|
6
|
+
} from "./chunk-AMWMV56B.js";
|
|
7
7
|
import {
|
|
8
8
|
normalizeTimingMs
|
|
9
9
|
} from "./chunk-H57T64RA.js";
|
|
10
10
|
import {
|
|
11
11
|
parseDialogKey
|
|
12
12
|
} from "./chunk-OJKUU3LP.js";
|
|
13
|
-
import "./chunk-YZMNK53S.js";
|
|
14
13
|
import {
|
|
15
14
|
extractCustomId
|
|
16
15
|
} from "./chunk-M2EJHDJP.js";
|
|
@@ -19,12 +18,6 @@ import {
|
|
|
19
18
|
resolveAuthToken,
|
|
20
19
|
resolveServerUrl
|
|
21
20
|
} from "./chunk-BIDSIRTS.js";
|
|
22
|
-
import "./chunk-OLZBQWZU.js";
|
|
23
|
-
import "./chunk-LCBAMY2M.js";
|
|
24
|
-
import "./chunk-G3SUCT4W.js";
|
|
25
|
-
import "./chunk-4SN6J65J.js";
|
|
26
|
-
import "./chunk-CF7PE763.js";
|
|
27
|
-
import "./chunk-U67V476Y.js";
|
|
28
21
|
|
|
29
22
|
// packages/cli/dialogUsageCommand.ts
|
|
30
23
|
import { readFileSync } from "node:fs";
|
|
@@ -134,9 +127,9 @@ function readLiveBrokerEndpoint(metadataPath) {
|
|
|
134
127
|
}
|
|
135
128
|
async function openLocalTokenScanClient(env) {
|
|
136
129
|
const [{ getDefaultCliLocalRuntimeAuthority }, driver, broker] = await Promise.all([
|
|
137
|
-
import("./localRuntimeAuthority-
|
|
130
|
+
import("./localRuntimeAuthority-UF2DAQ3F.js"),
|
|
138
131
|
import("./cliAuthorityStoreDriver-6FE3BJNB.js"),
|
|
139
|
-
import("./cliAuthorityBrokerClient-
|
|
132
|
+
import("./cliAuthorityBrokerClient-TFNXJLXL.js")
|
|
140
133
|
]);
|
|
141
134
|
await getDefaultCliLocalRuntimeAuthority({ env });
|
|
142
135
|
const metadataPath = driver.resolveCliAuthorityBrokerMetadataPath({ transport: "tcp", env });
|
|
@@ -246,7 +239,21 @@ async function runDialogUsageCommand(args, deps = {}) {
|
|
|
246
239
|
return 1;
|
|
247
240
|
}
|
|
248
241
|
const dialogId = dialogKey.startsWith("dialog-") ? extractCustomId(dialogKey) : dialogKey;
|
|
249
|
-
const
|
|
242
|
+
const collected = await collectDialogUsageRecords(args, deps, { dialogKey, dialogId });
|
|
243
|
+
collected.records.sort((a, b) => b.createdAt - a.createdAt);
|
|
244
|
+
output.write(formatDialogUsage(collected.dialogKey, collected.records, collected.source));
|
|
245
|
+
return 0;
|
|
246
|
+
}
|
|
247
|
+
async function collectDialogUsageRecords(args, deps, target, serverBase) {
|
|
248
|
+
const env = deps.env ?? process.env;
|
|
249
|
+
const token = resolveAuthToken(args, env);
|
|
250
|
+
if (!token) throw new Error("dialog usage requires login. Run `nolo login`.");
|
|
251
|
+
const { dialogKey, dialogId } = target;
|
|
252
|
+
const resolvedServerBase = serverBase?.trim();
|
|
253
|
+
const api = {
|
|
254
|
+
server: resolvedServerBase || resolveServerUrl(args, env),
|
|
255
|
+
token
|
|
256
|
+
};
|
|
250
257
|
const fetchPage = deps.fetchPage ?? fetchUsageRecordsPage;
|
|
251
258
|
const records = [];
|
|
252
259
|
const endTime = Date.now();
|
|
@@ -288,13 +295,13 @@ async function runDialogUsageCommand(args, deps = {}) {
|
|
|
288
295
|
}
|
|
289
296
|
}
|
|
290
297
|
if (records.length === 0 && remoteError) throw remoteError;
|
|
291
|
-
|
|
292
|
-
output.write(formatDialogUsage(dialogKey, records, source));
|
|
293
|
-
return 0;
|
|
298
|
+
return { dialogKey, dialogId, records, source };
|
|
294
299
|
}
|
|
300
|
+
|
|
295
301
|
export {
|
|
296
302
|
formatDialogUsage,
|
|
297
303
|
openLocalTokenScanClient,
|
|
298
304
|
readLocalDialogTokenRecords,
|
|
299
|
-
runDialogUsageCommand
|
|
305
|
+
runDialogUsageCommand,
|
|
306
|
+
collectDialogUsageRecords
|
|
300
307
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WD5547ZF.js";
|
|
4
4
|
import {
|
|
5
5
|
prepareAndPersistMessage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EVHTYVD2.js";
|
|
7
7
|
import {
|
|
8
8
|
require_format
|
|
9
9
|
} from "./chunk-BUDVRYES.js";
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
removeCachedEntity,
|
|
17
17
|
upsertSSREntity,
|
|
18
18
|
write
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ADYWV732.js";
|
|
20
20
|
import {
|
|
21
21
|
isDevelopment
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HDKMVYNJ.js";
|
|
23
23
|
import {
|
|
24
24
|
selectIdentityUserId
|
|
25
25
|
} from "./chunk-PXYBUFDB.js";
|
|
@@ -58,7 +58,7 @@ var import_formatISO = __toESM(require_formatISO());
|
|
|
58
58
|
// packages/ai/tools/uiAskChoiceTool.ts
|
|
59
59
|
var uiAskChoiceFunctionSchema = {
|
|
60
60
|
name: "ask_user",
|
|
61
|
-
description: "\u8BA9\u7528\u6237\u5728\u4E00\u7EC4\u9009\u9879\u4E4B\u95F4\u505A\u9009\u62E9\uFF08\u5355\u9009\u6216\u591A\u9009\uFF09\u7684\u901A\u7528\u201C\u51FA\u9009\u9879\u201D\u5DE5\u5177\uFF08\u9700\u6C42\u6A21\u7CCA\u3001\u5206\u652F\u51B3\u7B56\u3001\u95EE\u5377\u7B49\uFF09\u3002\u672C\u5DE5\u5177\u7528\u4E8E\u7EAF\u63D0\u95EE\u3001\u7B49\u5F85\u7528\u6237\u56DE\u7B54\u7684\u573A\u666F\uFF08blocking:false \u65F6\u4E0D\u6682\u505C\u7B49\u5F85\uFF09\uFF1B\u82E5\u9700\u8981\u540C\u65F6\u5C55\u793A\u7ED3\u6784\u5316\u5BF9\u6BD4/\u6307\u6807\u5E76\u8BA9\u7528\u6237\u5728\u540C\u4E00\u5757\u91CC\u9009\u62E9\uFF0C\u8D70 show_interaction\u3002\u8C03\u7528\u524D\u987B\u5148\u5728\u666E\u901A\u56DE\u590D\u6587\u672C\u91CC\u89E3\u91CA\u80CC\u666F\u4E0E\u6743\u8861\uFF08\u5148\u89E3\u91CA\uFF0C\u518D\u8C03\u7528\uFF09\u3002\u591A\u95EE\u9898\u4F20 questions\uFF0C\u5355\u95EE\u9898\u4F20 question+choices\u3002\u754C\u9762\u9ED8\u8BA4\u63D0\u4F9B\u201C\u5176\u4ED6\u201D\u81EA\u7531\u8F93\u5165\u884C\
|
|
61
|
+
description: "\u8BA9\u7528\u6237\u5728\u4E00\u7EC4\u9009\u9879\u4E4B\u95F4\u505A\u9009\u62E9\uFF08\u5355\u9009\u6216\u591A\u9009\uFF09\u7684\u901A\u7528\u201C\u51FA\u9009\u9879\u201D\u5DE5\u5177\uFF08\u9700\u6C42\u6A21\u7CCA\u3001\u5206\u652F\u51B3\u7B56\u3001\u95EE\u5377\u7B49\uFF09\u3002\u672C\u5DE5\u5177\u7528\u4E8E\u7EAF\u63D0\u95EE\u3001\u7B49\u5F85\u7528\u6237\u56DE\u7B54\u7684\u573A\u666F\uFF08blocking:false \u65F6\u4E0D\u6682\u505C\u7B49\u5F85\uFF09\uFF1B\u82E5\u9700\u8981\u540C\u65F6\u5C55\u793A\u7ED3\u6784\u5316\u5BF9\u6BD4/\u6307\u6807\u5E76\u8BA9\u7528\u6237\u5728\u540C\u4E00\u5757\u91CC\u9009\u62E9\uFF0C\u8D70 show_interaction\u3002\u8C03\u7528\u524D\u987B\u5148\u5728\u666E\u901A\u56DE\u590D\u6587\u672C\u91CC\u89E3\u91CA\u80CC\u666F\u4E0E\u6743\u8861\uFF08\u5148\u89E3\u91CA\uFF0C\u518D\u8C03\u7528\uFF09\u3002\u591A\u95EE\u9898\u4F20 questions\uFF0C\u5355\u95EE\u9898\u4F20 question+choices\u3002\u754C\u9762\u9ED8\u8BA4\u63D0\u4F9B\u201C\u5176\u4ED6\u201D\u81EA\u7531\u8F93\u5165\u884C\uFF08allowOther:false \u53EF\u5173\uFF09\uFF0C\u7528\u6237\u8F93\u5165\u968F\u7B54\u6848\u56DE\u4F20\uFF1B\u4E0D\u8981\u81EA\u5EFA\u201C\u5176\u4ED6/\u81EA\u5DF1\u5199\u201D\u4E4B\u7C7B\u7684\u9009\u9879\u2014\u2014\u70B9\u666E\u901A\u9009\u9879\u53EA\u56DE\u4F20\u8BE5\u9009\u9879\u6587\u6848\uFF0C\u7528\u6237\u65E0\u5904\u586B\u5199\u3002",
|
|
62
62
|
parameters: {
|
|
63
63
|
type: "object",
|
|
64
64
|
properties: {
|
|
@@ -5,20 +5,21 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KDBDOXOM.js";
|
|
9
9
|
import {
|
|
10
10
|
CONFIRMATION_INPUT_KEYS,
|
|
11
11
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
12
12
|
buildInvalidToolCallSelfHealResult,
|
|
13
13
|
parseToolCallArguments,
|
|
14
14
|
performFetchRequest,
|
|
15
|
+
reportToolExecutionErrorInBackground,
|
|
15
16
|
sanitizeOutboundMessages,
|
|
16
17
|
stripModelToolArgs
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FYAMUU55.js";
|
|
18
19
|
import {
|
|
19
20
|
findToolExecutor,
|
|
20
21
|
toolDefinitionsByName
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-U3BUWDUP.js";
|
|
22
23
|
import {
|
|
23
24
|
createSSEParser,
|
|
24
25
|
createToolRunId,
|
|
@@ -27,7 +28,7 @@ import {
|
|
|
27
28
|
toolRunSetPending,
|
|
28
29
|
toolRunStarted,
|
|
29
30
|
toolRunSucceeded
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SSOR2EDT.js";
|
|
31
32
|
import {
|
|
32
33
|
addToolMessage,
|
|
33
34
|
messageStreamEnd,
|
|
@@ -35,16 +36,19 @@ import {
|
|
|
35
36
|
toast,
|
|
36
37
|
toolResultNeedsUserConfirmation,
|
|
37
38
|
updateToolMessage
|
|
38
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-EVHTYVD2.js";
|
|
39
40
|
import {
|
|
40
41
|
streamAgentChatTurn
|
|
41
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-7PON4LBY.js";
|
|
42
43
|
import {
|
|
43
44
|
getCurrentSpaceId
|
|
44
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-YN23INFZ.js";
|
|
46
|
+
import {
|
|
47
|
+
selectCurrentServer
|
|
48
|
+
} from "./chunk-BZMDWGQQ.js";
|
|
45
49
|
import {
|
|
46
50
|
write
|
|
47
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ADYWV732.js";
|
|
48
52
|
import {
|
|
49
53
|
addActiveController,
|
|
50
54
|
getActiveDialogKey,
|
|
@@ -54,12 +58,9 @@ import {
|
|
|
54
58
|
import {
|
|
55
59
|
require_react
|
|
56
60
|
} from "./chunk-RD3QLZQV.js";
|
|
57
|
-
import {
|
|
58
|
-
selectCurrentServer
|
|
59
|
-
} from "./chunk-MTM4LRVG.js";
|
|
60
61
|
import {
|
|
61
62
|
createAsyncThunk
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-ZTHAJU3O.js";
|
|
63
64
|
import {
|
|
64
65
|
selectIdentityToken
|
|
65
66
|
} from "./chunk-PXYBUFDB.js";
|
|
@@ -70,7 +71,7 @@ import {
|
|
|
70
71
|
projectUserPartForModel,
|
|
71
72
|
resolveOutboundDiagnosticSink,
|
|
72
73
|
resolveOutboundWire
|
|
73
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-AIFQKNPP.js";
|
|
74
75
|
import {
|
|
75
76
|
accumulateToolCallDelta,
|
|
76
77
|
createThinkParserState,
|
|
@@ -82,7 +83,7 @@ import {
|
|
|
82
83
|
} from "./chunk-56GBUMO5.js";
|
|
83
84
|
import {
|
|
84
85
|
normalizeChatCompletionsBodyForProvider
|
|
85
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-FXEPZKNJ.js";
|
|
86
87
|
import {
|
|
87
88
|
classifyApiError,
|
|
88
89
|
classifyGenerationError,
|
|
@@ -93,13 +94,13 @@ import {
|
|
|
93
94
|
isCompleteInstructionOutput,
|
|
94
95
|
sanitizeToolOutputText,
|
|
95
96
|
scrubSecrets
|
|
96
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-VH7UO6E5.js";
|
|
97
98
|
import {
|
|
98
99
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
99
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-7WHCIA5V.js";
|
|
100
101
|
import {
|
|
101
102
|
getModelInfo
|
|
102
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-2FZVXOFX.js";
|
|
103
104
|
import {
|
|
104
105
|
isAbortError
|
|
105
106
|
} from "./chunk-7DPNBQSV.js";
|
|
@@ -110,6 +111,9 @@ import {
|
|
|
110
111
|
createDialogMessageKeyAndId,
|
|
111
112
|
dialogMessageKey
|
|
112
113
|
} from "./chunk-OJKUU3LP.js";
|
|
114
|
+
import {
|
|
115
|
+
splitDialogKeyIdentity
|
|
116
|
+
} from "./chunk-YZMNK53S.js";
|
|
113
117
|
import {
|
|
114
118
|
extractCustomId
|
|
115
119
|
} from "./chunk-M2EJHDJP.js";
|
|
@@ -124,7 +128,7 @@ import {
|
|
|
124
128
|
} from "./chunk-3EUW3WEO.js";
|
|
125
129
|
import {
|
|
126
130
|
getApiEndpoint
|
|
127
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-OKH74FML.js";
|
|
128
132
|
import {
|
|
129
133
|
isRecord
|
|
130
134
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -711,18 +715,25 @@ var processToolData = createAsyncThunk(
|
|
|
711
715
|
});
|
|
712
716
|
}
|
|
713
717
|
}
|
|
718
|
+
let toolResult;
|
|
719
|
+
let executorThrew = false;
|
|
714
720
|
try {
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
721
|
+
try {
|
|
722
|
+
toolResult = await found.executor(executionToolArgs, thunkApi, {
|
|
723
|
+
parentMessageId,
|
|
724
|
+
toolRunId,
|
|
725
|
+
agentKey,
|
|
726
|
+
effectiveModel: args.effectiveModel,
|
|
727
|
+
runKind: "interactive",
|
|
728
|
+
// 定档信号:这里是前台对话流式路径,来源恒为 chat;对话 id 用于数历史搜索。
|
|
729
|
+
...args.dialogId ? { dialogId: args.dialogId } : {},
|
|
730
|
+
...args.userMessageId ? { userMessageId: args.userMessageId } : {},
|
|
731
|
+
origin: "chat"
|
|
732
|
+
});
|
|
733
|
+
} catch (executorError) {
|
|
734
|
+
executorThrew = true;
|
|
735
|
+
throw executorError;
|
|
736
|
+
}
|
|
726
737
|
const rawData = toolResult?.rawData ?? toolResult;
|
|
727
738
|
const llmContext = asOptionalTrimmedString(toolResult?.llmContext);
|
|
728
739
|
const displayData = asOptionalTrimmedString(toolResult?.displayData);
|
|
@@ -803,6 +814,15 @@ var processToolData = createAsyncThunk(
|
|
|
803
814
|
hasPendingInteraction: true
|
|
804
815
|
};
|
|
805
816
|
}
|
|
817
|
+
if (executorThrew) {
|
|
818
|
+
reportToolExecutionErrorInBackground({
|
|
819
|
+
thunkApi,
|
|
820
|
+
dialogId: args.dialogId,
|
|
821
|
+
callId: toolCallId,
|
|
822
|
+
toolName: canonicalName,
|
|
823
|
+
error: e
|
|
824
|
+
});
|
|
825
|
+
}
|
|
806
826
|
const rawErrorResult = structured?.rawData !== void 0 ? structured.rawData : { error: errorMessage };
|
|
807
827
|
const summary = asOptionalTrimmedString(structured?.displayData) || `\u274C ${canonicalName} \u6267\u884C\u5931\u8D25: ${errorMessage}`;
|
|
808
828
|
toolRunFailed({
|
|
@@ -1681,7 +1701,7 @@ var sendOpenAICompletionsRequest = async ({
|
|
|
1681
1701
|
userMessageId
|
|
1682
1702
|
}) => {
|
|
1683
1703
|
const { dispatch, getState, signal: thunkSignal } = thunkApi;
|
|
1684
|
-
const dialogId = extractCustomId(dialogKey);
|
|
1704
|
+
const dialogId = splitDialogKeyIdentity(dialogKey)?.dialogId ?? extractCustomId(dialogKey);
|
|
1685
1705
|
const controller = new AbortController();
|
|
1686
1706
|
thunkSignal.addEventListener("abort", () => controller.abort());
|
|
1687
1707
|
const signal = controller.signal;
|
|
@@ -1700,7 +1720,9 @@ var sendOpenAICompletionsRequest = async ({
|
|
|
1700
1720
|
const requestBody = await inlineImageUrlsForCustomProvider(
|
|
1701
1721
|
buildFinalCompletionsRequestBody(bodyData, agentConfig, disableToolsForThisRequest),
|
|
1702
1722
|
{
|
|
1703
|
-
shouldInline: shouldInlineImageUrlsForAgent(agentConfig)
|
|
1723
|
+
shouldInline: shouldInlineImageUrlsForAgent(agentConfig),
|
|
1724
|
+
serverUrl: selectCurrentServer(getState()),
|
|
1725
|
+
signal
|
|
1704
1726
|
}
|
|
1705
1727
|
);
|
|
1706
1728
|
let streamState = createInitialStreamState();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
googleSessionRequestToken,
|
|
3
3
|
isGoogleAuthoritySession
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HDKMVYNJ.js";
|
|
5
5
|
import {
|
|
6
6
|
selectIdentityToken
|
|
7
7
|
} from "./chunk-PXYBUFDB.js";
|
|
@@ -2384,7 +2384,7 @@ var xhrUploadRequest = (url, formData, state, onProgress, signal) => new Promise
|
|
|
2384
2384
|
xhr.send(formData);
|
|
2385
2385
|
});
|
|
2386
2386
|
var noloUploadRequest = async (server, uploadConfig, state, signal, onProgress) => {
|
|
2387
|
-
const { file, metadata, customKey, userId } = uploadConfig;
|
|
2387
|
+
const { file, metadata, customKey, userId, ownerType, spaceId } = uploadConfig;
|
|
2388
2388
|
const googleSession = isGoogleAuthoritySession(selectIdentityToken(state));
|
|
2389
2389
|
try {
|
|
2390
2390
|
googleSessionRequestToken(selectIdentityToken(state) ?? void 0, server);
|
|
@@ -2413,6 +2413,12 @@ var noloUploadRequest = async (server, uploadConfig, state, signal, onProgress)
|
|
|
2413
2413
|
if (userId) {
|
|
2414
2414
|
formData.append("userId", userId);
|
|
2415
2415
|
}
|
|
2416
|
+
if (ownerType) {
|
|
2417
|
+
formData.append("ownerType", ownerType);
|
|
2418
|
+
}
|
|
2419
|
+
if (spaceId) {
|
|
2420
|
+
formData.append("spaceId", spaceId);
|
|
2421
|
+
}
|
|
2416
2422
|
if (onProgress && !googleSession && typeof XMLHttpRequest !== "undefined") {
|
|
2417
2423
|
const result = await xhrUploadRequest(
|
|
2418
2424
|
server + `${API_ENDPOINTS.DATABASE}/upload`,
|
|
@@ -2423,7 +2429,7 @@ var noloUploadRequest = async (server, uploadConfig, state, signal, onProgress)
|
|
|
2423
2429
|
);
|
|
2424
2430
|
if (!result.ok) {
|
|
2425
2431
|
console.error(
|
|
2426
|
-
`Upload request failed for ${customKey} on ${server}: HTTP ${result.status}`
|
|
2432
|
+
`Upload request failed for ${customKey} on ${server}: HTTP ${result.status}` + (ownerType === "space" ? " (space ownership claim rejected: the Space may not be synced to this server, or you are not a member there)" : "")
|
|
2427
2433
|
);
|
|
2428
2434
|
}
|
|
2429
2435
|
return result.ok;
|
|
@@ -2443,7 +2449,7 @@ var noloUploadRequest = async (server, uploadConfig, state, signal, onProgress)
|
|
|
2443
2449
|
);
|
|
2444
2450
|
if (!response.ok) {
|
|
2445
2451
|
console.error(
|
|
2446
|
-
`Upload request failed for ${customKey} on ${server}: HTTP ${response.status}`
|
|
2452
|
+
`Upload request failed for ${customKey} on ${server}: HTTP ${response.status}` + (ownerType === "space" ? " (space ownership claim rejected: the Space may not be synced to this server, or you are not a member there)" : "")
|
|
2447
2453
|
);
|
|
2448
2454
|
}
|
|
2449
2455
|
if (response.ok && googleSession && onProgress) onProgress(file.size, file.size);
|
|
@@ -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-ZJFGNHML.js");
|
|
8
8
|
return getDefaultCliLocalRuntimeDb();
|
|
9
9
|
}
|
|
10
10
|
function createNullCliDb() {
|