nolo-cli 0.226.0 → 0.227.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_executeModel-IZ2MCXHO.js → _executeModel-CXOFYVHC.js} +51 -51
- package/{action-VDEW6WLI.js → action-R2EIXR7I.js} +5 -5
- package/{addContentAction-7YVXHIPQ.js → addContentAction-W6JVLQ6H.js} +8 -8
- package/{addDialogAgentAction-BX7B47HF.js → addDialogAgentAction-LVNKMXKZ.js} +8 -8
- package/{agentDeleteCommand-N7ELXPLD.js → agentDeleteCommand-VFSZPEQ5.js} +69 -69
- package/{agentEmailCommands-OFS477PV.js → agentEmailCommands-KRUIF4EH.js} +70 -70
- package/{agentListCommands-IQQHJSXP.js → agentListCommands-TDFOLWN3.js} +33 -33
- package/{agentMachineCommands-NS65BEW7.js → agentMachineCommands-PSH7Q5PF.js} +30 -30
- package/{agentProviderCommands-SS6M6VGY.js → agentProviderCommands-C5T7C5KZ.js} +2 -2
- package/{agentRecordCommands-4VE7CNLC.js → agentRecordCommands-KCKCW2QU.js} +69 -69
- package/{agentRunCommand-2MUXHKNW.js → agentRunCommand-EF2T2QWD.js} +69 -69
- package/{agentRunControl-55GL6Q3M.js → agentRunControl-CSMSJFFB.js} +6 -6
- package/{agentRuntimeLocal-5DB2P4MU.js → agentRuntimeLocal-6QXQS3TS.js} +26 -26
- package/{agentSlice-5VTAFG43.js → agentSlice-IZ5ANAF7.js} +9 -9
- package/{appDeleteCommands-EDKUPHJM.js → appDeleteCommands-4M7ETEEG.js} +31 -31
- package/{appDeployCommands-JO74GW4L.js → appDeployCommands-2VJ2NDW5.js} +31 -31
- package/{appDeployStatusCommands-U77ZUHX7.js → appDeployStatusCommands-LDFSWOPQ.js} +31 -31
- package/{appGetCommands-QCMHBYPX.js → appGetCommands-RHVNOPT4.js} +31 -31
- package/{appListCommands-ZQJYEXI6.js → appListCommands-U3XEVTL4.js} +31 -31
- package/{authCommand-W4KXRZLI.js → authCommand-PVZ45QRO.js} +11 -11
- package/{builtinSkillRegistry-GHE3RD3V.js → builtinSkillRegistry-LRVAQCPW.js} +3 -3
- package/{chunk-QYNABNNQ.js → chunk-22YUCKMK.js} +7 -7
- package/{chunk-5GRWWUB4.js → chunk-2COM7SAH.js} +4 -4
- package/{chunk-ONFFUQYM.js → chunk-2FK2KZSL.js} +1 -1
- package/{chunk-V2V5Q6DU.js → chunk-2IPR4PBB.js} +2 -2
- package/{chunk-HQVNO7FH.js → chunk-3YYFU6H7.js} +16 -16
- package/{chunk-SBRSXY67.js → chunk-4OXPN3WC.js} +1 -1
- package/{chunk-T3WSFTBS.js → chunk-4TVOZGOS.js} +1 -1
- package/{chunk-VNALJT32.js → chunk-53AEDFBL.js} +1 -1
- package/{chunk-PK7VT4ZU.js → chunk-56O2J2Y4.js} +2 -2
- package/{chunk-UR7555FE.js → chunk-56PB7FEN.js} +4 -4
- package/{chunk-BH7CEVOH.js → chunk-5PASH2MB.js} +1 -1
- package/{chunk-VMWY7TUA.js → chunk-5UAKGCQG.js} +1 -1
- package/{chunk-UWOCASVL.js → chunk-5VVP7DW3.js} +3 -3
- package/chunk-6ASGEP5D.js +21 -0
- package/{chunk-HSWEFHFS.js → chunk-6PXFEPHL.js} +1 -1
- package/{chunk-GES5GIAU.js → chunk-6YYTTLJV.js} +5 -5
- package/{chunk-CJTB3OYB.js → chunk-76HAJUOJ.js} +2 -2
- package/{chunk-KMW5CRRM.js → chunk-7DXFOL5B.js} +40 -40
- package/{chunk-CHYYSFFM.js → chunk-AKPKOI5Z.js} +3 -3
- package/{chunk-WVOZ35E4.js → chunk-AO6T7U62.js} +12 -9
- package/{chunk-Y3DOUQQQ.js → chunk-AS6L5KSD.js} +2 -2
- package/{chunk-UQXOORR3.js → chunk-AVSZ6PBM.js} +3 -3
- package/{chunk-OJRTTERA.js → chunk-CD2DK5JA.js} +59 -13
- package/{chunk-YTEY27GN.js → chunk-CJQBWHNM.js} +2 -2
- package/{chunk-ZVOL2MAJ.js → chunk-CO6E7YK6.js} +1 -1
- package/{chunk-QUJKDFZW.js → chunk-CT5JXREL.js} +3 -3
- package/{chunk-Y22P6ASC.js → chunk-CTWCZKNS.js} +13 -3
- package/{chunk-ZCZLTJEW.js → chunk-CX2LYFZQ.js} +3 -3
- package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
- package/{chunk-M5EA44QU.js → chunk-EDT65EUE.js} +4 -4
- package/{chunk-TOK555CQ.js → chunk-EQZZASCD.js} +1 -1
- package/{chunk-XNEDFWT4.js → chunk-ESN4WNWU.js} +3 -2
- package/{chunk-RGUWOMXU.js → chunk-F4XIS5DL.js} +19 -19
- package/{chunk-YUZ2DAIH.js → chunk-FGHEF6WI.js} +1 -1
- package/{chunk-OKPC4QNX.js → chunk-FMYNIAI6.js} +2 -2
- package/{chunk-C4KX626C.js → chunk-FNT5VENS.js} +3 -3
- package/{chunk-DPAIQLAL.js → chunk-GVTFSLNI.js} +10 -10
- package/{chunk-4FE3IWRE.js → chunk-GX6DITLQ.js} +1 -1
- package/{chunk-ER3P6MBT.js → chunk-HIDVLMZC.js} +4 -4
- package/{chunk-J25ESVUW.js → chunk-IDFGIROZ.js} +6 -6
- package/{chunk-3ORFJP2Z.js → chunk-IFWXH7LH.js} +1 -1
- package/{chunk-SBRJOYND.js → chunk-J45ACAOQ.js} +138 -40
- package/{chunk-JBWXPACD.js → chunk-JP2BH4NC.js} +1 -1
- package/{chunk-DOK7GDRU.js → chunk-JV5FHHF7.js} +1 -1
- package/{chunk-LMFMV5UC.js → chunk-K26XPZRB.js} +2 -2
- package/{chunk-6326DRQY.js → chunk-KB5RQRSJ.js} +1 -1
- package/{chunk-Y5EBOURK.js → chunk-KMDHRVS7.js} +21 -2
- package/{chunk-4YFC3DWW.js → chunk-KQHEGELM.js} +1 -1
- package/{chunk-2T5BHLID.js → chunk-KW72WVHO.js} +20 -20
- package/{chunk-WRKMXMU7.js → chunk-KZAT2M2V.js} +12 -8
- package/{chunk-7AWKDRXG.js → chunk-KZKMH374.js} +1 -1
- package/{chunk-6S6CZUXK.js → chunk-L6BLA6BT.js} +6 -6
- package/{chunk-IZJFTY4R.js → chunk-LC5CVWP2.js} +3 -3
- package/{chunk-BEM6LPD2.js → chunk-LHCGKAFO.js} +18 -13
- package/{chunk-QXUVCIPB.js → chunk-LOF2EFUE.js} +1 -1
- package/{chunk-4F7SWSWO.js → chunk-LTVEOOZL.js} +2 -2
- package/{chunk-RH44TIHX.js → chunk-MAA42MMV.js} +71 -4
- package/{chunk-7GTXPS3D.js → chunk-MECW2HJG.js} +3 -3
- package/{chunk-3OQFXODL.js → chunk-MYYNZG2M.js} +11 -2
- package/{chunk-4UK6UBXF.js → chunk-MZVCFV3T.js} +17 -13
- package/{chunk-XLN2GD6Z.js → chunk-N7MXFYLU.js} +1 -1
- package/{chunk-MFXJY44K.js → chunk-NJJK3PDA.js} +3 -3
- package/{chunk-6MX6S6TE.js → chunk-OHUYN3YU.js} +1 -1
- package/{chunk-6MQWGA5F.js → chunk-PDAXMBLW.js} +8 -8
- package/{chunk-U4VSBDO5.js → chunk-PQ63BDV3.js} +122 -51
- package/{chunk-2N4UBHUU.js → chunk-QIVE5WJE.js} +4 -4
- package/{chunk-247AAJRK.js → chunk-QOURTDZL.js} +85 -6
- package/{chunk-EKXPHL7M.js → chunk-QWSH3UAQ.js} +3 -3
- package/{chunk-KLD7K5FD.js → chunk-RDPAIR67.js} +4 -4
- package/{chunk-ZCVBIIUE.js → chunk-RXTZB2DH.js} +1 -1
- package/{chunk-XDNXKFWF.js → chunk-SESKIWB4.js} +2 -2
- package/{chunk-UDT4SI37.js → chunk-SF4GMDZO.js} +2 -2
- package/{chunk-6XLWUNZB.js → chunk-SQRKAYQW.js} +10 -10
- package/{chunk-P244EH4W.js → chunk-SX6AWTNK.js} +3 -3
- package/{chunk-VCU5GV42.js → chunk-T4QY3HZ5.js} +1 -1
- package/{chunk-RIMFTQMC.js → chunk-TKE4OJ4B.js} +1 -1
- package/{chunk-I2OYPD3Y.js → chunk-U35UUM5K.js} +1 -0
- package/{chunk-LZOOUQAZ.js → chunk-UPOW5HTG.js} +2 -2
- package/{chunk-JVJ53XCH.js → chunk-VEVLLBFK.js} +1 -1
- package/{chunk-ENYTIRIO.js → chunk-VUHKG4KS.js} +3 -3
- package/{chunk-F4MCAOWN.js → chunk-W3HSD32M.js} +13 -6
- package/{chunk-J2XZZXIH.js → chunk-W5OJBZLZ.js} +3 -3
- package/{chunk-KF2DWSAH.js → chunk-XGWRH3OF.js} +1 -1
- package/{chunk-IIG3TT73.js → chunk-XKV53E4E.js} +1 -1
- package/{chunk-7HUHOCIY.js → chunk-XYRTC2Y3.js} +14 -14
- package/{chunk-3UNAGTBW.js → chunk-YHWMKGOX.js} +51 -14
- package/{chunk-ODGSLWLO.js → chunk-ZP26NIZE.js} +72 -35
- package/{chunk-N6EN3HK3.js → chunk-ZQ6K57FJ.js} +1 -1
- package/{cliAgentConfigHelpers-6OFDHJFT.js → cliAgentConfigHelpers-37ZNEY5Y.js} +7 -7
- package/{cliLocalAgentRecordReader-FHIMCBUK.js → cliLocalAgentRecordReader-53773JID.js} +31 -31
- package/{commandRegistry-OKIWAJIS.js → commandRegistry-RJUO2VOD.js} +71 -71
- package/{contentThunks-VF2DCU46.js → contentThunks-4EFHLUTB.js} +24 -24
- package/{createAgentAutomationAction-BGET7Q6K.js → createAgentAutomationAction-ZFFGJ7CZ.js} +24 -24
- package/{createDialogAction-XYDQZETK.js → createDialogAction-SDUGVTPS.js} +25 -25
- package/{createPageAction-74S5RO7U.js → createPageAction-NNM3OFLY.js} +25 -25
- package/{dbSlice-FI7VNDR5.js → dbSlice-5MQ3ELID.js} +7 -7
- package/{deleteFile-GD62MPZW.js → deleteFile-VCCHS72Y.js} +5 -5
- package/{dialogCommands-Y6DHZUAM.js → dialogCommands-SJK5KWXU.js} +33 -33
- package/{dialogNotifyCommand-MKXL4NGL.js → dialogNotifyCommand-PST75COP.js} +8 -8
- package/{dialogSlice-XAUKSWZ4.js → dialogSlice-2KLMHECR.js} +22 -22
- package/{docCreateCommands-PHDFOQBM.js → docCreateCommands-K7CDL2HY.js} +30 -30
- package/{docDeleteCommands-OSHJM67Y.js → docDeleteCommands-ZEY5YCSP.js} +31 -31
- package/{docReadCommands-E6QYCFMS.js → docReadCommands-A4ROLIQG.js} +30 -30
- package/{docStore-ZZT2BEBU.js → docStore-A4O6YJAM.js} +8 -8
- package/{docUpdateCommands-DHIOPK2C.js → docUpdateCommands-6HTFQY4O.js} +30 -30
- package/{getPricing-RNRITFOP.js → getPricing-FCHYVRJU.js} +3 -3
- package/{handleSendMessageAction-ARUU6CNF.js → handleSendMessageAction-6WEFYBUC.js} +42 -42
- package/{hostCredentialCreate-SNQT73H4.js → hostCredentialCreate-WOWCNOYM.js} +69 -69
- package/index.js +5 -5
- package/{localRuntimeAdapter-MHI6Y2IZ.js → localRuntimeAdapter-7EDBDRYW.js} +68 -68
- package/{machineCommands-3O6Y27R4.js → machineCommands-XRPC67LL.js} +69 -69
- package/{machineWsRunDispatch-5PFLR5XC.js → machineWsRunDispatch-SOGFW472.js} +69 -69
- package/{mcpLocalAuthorizeCommand-BQCQ2KRJ.js → mcpLocalAuthorizeCommand-VOJARP3M.js} +10 -10
- package/{memberThunks-TU6A6OBV.js → memberThunks-KC3WJGL3.js} +9 -9
- package/{models-CINY5UZR.js → models-EP7VG6N2.js} +2 -2
- package/package.json +1 -1
- package/{projectArchive-X2EVXU3N.js → projectArchive-GDVPIZX2.js} +25 -25
- package/{providerPresetApply-HUWNV2NI.js → providerPresetApply-4H7YP5D7.js} +5 -5
- package/{providerRegistry-7FWKDKZJ.js → providerRegistry-F3UPOTIY.js} +5 -5
- package/{read-QAHEQID5.js → read-T7VU2IMO.js} +5 -5
- package/{readDocTool-KG5DP6EM.js → readDocTool-BPQ3QJSD.js} +1 -1
- package/{readlineWorkspace-SO3APHVP.js → readlineWorkspace-OWQIIUGH.js} +112 -91
- package/{removeDialogAgentAction-QZCCVK2G.js → removeDialogAgentAction-FEUUVMYC.js} +10 -10
- package/{runAgentClientLoop-FLHHCOVH.js → runAgentClientLoop-SJREK2B7.js} +48 -48
- package/{runtimeDoctorCommands-DN3I52C6.js → runtimeDoctorCommands-XQD4MN4I.js} +5 -5
- package/{secretCommands-36BCE3UE.js → secretCommands-LH7QTJO2.js} +2 -2
- package/{setDialogExtraReferencesAction-PDPTYSEW.js → setDialogExtraReferencesAction-JSTQJPXL.js} +9 -9
- package/{setPrimaryDialogAgentAction-DOUIPR66.js → setPrimaryDialogAgentAction-Z2BQE3IY.js} +10 -10
- package/{settingThunks-MHGGP6UE.js → settingThunks-C2YWCNYI.js} +12 -12
- package/{spaceCommands-JH7UYE3K.js → spaceCommands-YRBQ52PG.js} +30 -30
- package/{streamAgentChatTurn-VDDA2TX6.js → streamAgentChatTurn-NCA4BKDZ.js} +99 -84
- package/{switchDialogAgentAction-7USK3DAP.js → switchDialogAgentAction-G7XVAOGH.js} +8 -8
- package/{tableCommands-UONBFC7L.js → tableCommands-UHEA5QNL.js} +2 -2
- package/{toolApiClient-53YMJ2G6.js → toolApiClient-N5PYW2R3.js} +2 -2
- package/{tools-MIOCXKMG.js → tools-6WQVUGKV.js} +42 -42
- package/{tuiRestart-ET3QISZ5.js → tuiRestart-3J7LRMPR.js} +7 -7
- package/{tuiSummaryLlmCaller-MSINBP3M.js → tuiSummaryLlmCaller-2J6NG53N.js} +12 -12
- package/{updateDialogTitleAction-2L4CC4YO.js → updateDialogTitleAction-QCSN3RYO.js} +24 -24
- package/{usageCommand-JTKDAG6I.js → usageCommand-SK7JTEPC.js} +1 -1
- package/{usageRebuildCommand-4TFZCKXM.js → usageRebuildCommand-DF3HUP6F.js} +2 -2
- package/{webapi-24RZDIIQ.js → webapi-QVV65DQF.js} +12 -13
- package/chunk-776CXKMX.js +0 -134
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
resolveDiscoveryScope,
|
|
7
7
|
resolvePaginationArgs,
|
|
8
8
|
toDiscoverySafeAgentSummary
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AO6T7U62.js";
|
|
10
10
|
import {
|
|
11
11
|
normalizeTopicKey
|
|
12
12
|
} from "./chunk-MVOZ22RZ.js";
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
normalizeAgentUpdateFieldList,
|
|
20
20
|
normalizeSystemBuiltinSkills,
|
|
21
21
|
normalizeUiPlugins
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SF4GMDZO.js";
|
|
23
23
|
import {
|
|
24
24
|
applyFetchSpaceFulfilled,
|
|
25
25
|
fetchAuthoritativeRemoteSpace,
|
|
26
26
|
selectSpaceRemoteAuth
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-KMDHRVS7.js";
|
|
28
28
|
import {
|
|
29
29
|
ToolResultError,
|
|
30
30
|
clipMultilineText,
|
|
@@ -38,28 +38,28 @@ import {
|
|
|
38
38
|
toolRunUpdated,
|
|
39
39
|
uiCardFallback,
|
|
40
40
|
waitForAbortableDelay
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-GVTFSLNI.js";
|
|
42
42
|
import {
|
|
43
43
|
isGatewayHttpStatus
|
|
44
44
|
} from "./chunk-NF64D32W.js";
|
|
45
45
|
import {
|
|
46
46
|
resolveUserEnabledSkills
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-6PXFEPHL.js";
|
|
48
48
|
import {
|
|
49
49
|
createDocState
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-AKPKOI5Z.js";
|
|
51
51
|
import {
|
|
52
52
|
readDocFunc,
|
|
53
53
|
readDocFunctionSchema,
|
|
54
54
|
readPageFunc,
|
|
55
55
|
readPageFunctionSchema,
|
|
56
56
|
resolvePageReadMarkdown
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-IFWXH7LH.js";
|
|
58
58
|
import {
|
|
59
59
|
createDialogAction,
|
|
60
60
|
uiAskChoiceFunc,
|
|
61
61
|
uiAskChoiceFunctionSchema
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-RDPAIR67.js";
|
|
63
63
|
import {
|
|
64
64
|
DEFAULT_COLLAPSED_CATEGORIES,
|
|
65
65
|
addContentToSpace,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
updateContentCategory,
|
|
77
77
|
updateContentTitle,
|
|
78
78
|
writeStoredCollapsedCategories
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-SQRKAYQW.js";
|
|
80
80
|
import {
|
|
81
81
|
buildDatabaseFileContentUrl,
|
|
82
82
|
deleteDialog,
|
|
@@ -85,14 +85,14 @@ import {
|
|
|
85
85
|
selectCurrentDialogConfig,
|
|
86
86
|
selectCurrentDialogId,
|
|
87
87
|
selectMsgById
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-ZP26NIZE.js";
|
|
89
89
|
import {
|
|
90
90
|
createAgent,
|
|
91
91
|
deleteServerSyncedCredential,
|
|
92
92
|
runLlm,
|
|
93
93
|
streamAgentChatTurn,
|
|
94
94
|
updateAgent
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-22YUCKMK.js";
|
|
96
96
|
import {
|
|
97
97
|
addMemberSpace,
|
|
98
98
|
getAllMemberSpaces,
|
|
@@ -109,12 +109,12 @@ import {
|
|
|
109
109
|
setViewMode,
|
|
110
110
|
updateCurrentSpaceIfMatch,
|
|
111
111
|
updateMemberSpaceName
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-RXTZB2DH.js";
|
|
113
113
|
import {
|
|
114
114
|
UNCATEGORIZED_ID,
|
|
115
115
|
addContentAction,
|
|
116
116
|
checkSpaceMembership
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-CJQBWHNM.js";
|
|
118
118
|
import {
|
|
119
119
|
createSpaceKey,
|
|
120
120
|
normalizeSpaceId
|
|
@@ -130,10 +130,10 @@ import {
|
|
|
130
130
|
selectEntities,
|
|
131
131
|
toTimestampMs,
|
|
132
132
|
write
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-PDAXMBLW.js";
|
|
134
134
|
import {
|
|
135
135
|
resolveDefaultReasoningEffort
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-FGHEF6WI.js";
|
|
137
137
|
import {
|
|
138
138
|
fetchWithTransientRetry
|
|
139
139
|
} from "./chunk-DXWGFL2Z.js";
|
|
@@ -166,20 +166,20 @@ import {
|
|
|
166
166
|
getRequestConfig,
|
|
167
167
|
getToolBaseUrl,
|
|
168
168
|
getToolRequestContext
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-KQHEGELM.js";
|
|
170
170
|
import {
|
|
171
171
|
buildMediaToolConfirmation,
|
|
172
172
|
normalizeMediaConfirmExecutionRevision
|
|
173
173
|
} from "./chunk-QYPE3TS3.js";
|
|
174
174
|
import {
|
|
175
175
|
selectPendingRawDataByPageKey
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-U35UUM5K.js";
|
|
177
177
|
import {
|
|
178
178
|
require_react
|
|
179
179
|
} from "./chunk-RD3QLZQV.js";
|
|
180
180
|
import {
|
|
181
181
|
readAction
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-5VVP7DW3.js";
|
|
183
183
|
import {
|
|
184
184
|
DEVICE_LOCAL_OWNER_ID,
|
|
185
185
|
getRuntimeServerContext,
|
|
@@ -189,19 +189,23 @@ import {
|
|
|
189
189
|
resolveEffectiveSpaceActorId,
|
|
190
190
|
resolveRecordOwnerUserId,
|
|
191
191
|
selectRuntimeSnapshot
|
|
192
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-FMYNIAI6.js";
|
|
193
193
|
import {
|
|
194
194
|
shareResourceAction
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-LC5CVWP2.js";
|
|
196
196
|
import {
|
|
197
197
|
selectCurrentServer,
|
|
198
198
|
selectSyncServers
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-76HAJUOJ.js";
|
|
200
200
|
import {
|
|
201
201
|
createAsyncThunk,
|
|
202
202
|
createSelector,
|
|
203
203
|
noloWriteRequest
|
|
204
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-QOURTDZL.js";
|
|
205
|
+
import {
|
|
206
|
+
googleSessionRequestToken,
|
|
207
|
+
isGoogleAuthoritySession
|
|
208
|
+
} from "./chunk-5PASH2MB.js";
|
|
205
209
|
import {
|
|
206
210
|
getSessionSnapshotForState,
|
|
207
211
|
selectIdentityToken,
|
|
@@ -230,7 +234,7 @@ import {
|
|
|
230
234
|
normalizeNoloSpaceInput,
|
|
231
235
|
resolveNoloDialogInput,
|
|
232
236
|
verifyNoloDialogSubjectRefQuery
|
|
233
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-LOF2EFUE.js";
|
|
234
238
|
import {
|
|
235
239
|
MCP_CALL_TOOL_INPUT_SCHEMA,
|
|
236
240
|
MCP_LIST_CONNECTIONS_INPUT_SCHEMA,
|
|
@@ -245,7 +249,7 @@ import {
|
|
|
245
249
|
} from "./chunk-5MMAK75Q.js";
|
|
246
250
|
import {
|
|
247
251
|
createFileCredentialBroker
|
|
248
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-E6A5NHDH.js";
|
|
249
253
|
import {
|
|
250
254
|
asRecordOrEmpty
|
|
251
255
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -266,7 +270,7 @@ import {
|
|
|
266
270
|
PLUGIN_MANAGEMENT_TOOL_NAMES,
|
|
267
271
|
managementFailure,
|
|
268
272
|
parsePluginManagementInput
|
|
269
|
-
} from "./chunk-
|
|
273
|
+
} from "./chunk-TKE4OJ4B.js";
|
|
270
274
|
import {
|
|
271
275
|
buildSkillDocMarkdown,
|
|
272
276
|
normalizeSkillModalities,
|
|
@@ -336,7 +340,7 @@ import {
|
|
|
336
340
|
DEFAULT_MODEL,
|
|
337
341
|
clampReasoningEffort,
|
|
338
342
|
resolveModelReasoningCapabilityWithCache
|
|
339
|
-
} from "./chunk-
|
|
343
|
+
} from "./chunk-CD2DK5JA.js";
|
|
340
344
|
import {
|
|
341
345
|
isRecord
|
|
342
346
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -1089,7 +1093,7 @@ var HOSTED_EXEC_RUNTIME_TOOL_POLICY = {
|
|
|
1089
1093
|
workspace: { mode: "lease" }
|
|
1090
1094
|
};
|
|
1091
1095
|
var findModelConfig = async (modelName, provider) => {
|
|
1092
|
-
const { ALL_MODELS } = await import("./models-
|
|
1096
|
+
const { ALL_MODELS } = await import("./models-EP7VG6N2.js");
|
|
1093
1097
|
const name = toTrimmedString(modelName);
|
|
1094
1098
|
const prov = toTrimmedString(provider ?? "");
|
|
1095
1099
|
if (!name) return null;
|
|
@@ -1334,7 +1338,7 @@ var buildPlatformFormDataFromArgs = async (args) => {
|
|
|
1334
1338
|
const trimmedModel = toTrimmedString(model);
|
|
1335
1339
|
const trimmedProvider = toTrimmedString(provider);
|
|
1336
1340
|
const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
|
|
1337
|
-
const { getModelPricing } = await import("./getPricing-
|
|
1341
|
+
const { getModelPricing } = await import("./getPricing-FCHYVRJU.js");
|
|
1338
1342
|
const normalizedTools = tools ?? [];
|
|
1339
1343
|
const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
|
|
1340
1344
|
const formData = {
|
|
@@ -4008,7 +4012,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
4008
4012
|
const deletedDialogIds = [];
|
|
4009
4013
|
const deletedDialogKeys = [];
|
|
4010
4014
|
const failures = [];
|
|
4011
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
4015
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-2KLMHECR.js");
|
|
4012
4016
|
for (const target of targets) {
|
|
4013
4017
|
try {
|
|
4014
4018
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -4090,8 +4094,8 @@ var listAgentsFunctionSchema = {
|
|
|
4090
4094
|
type: "string",
|
|
4091
4095
|
description: "Optional case-insensitive search substring matching agent name, model, provider, handle, or agentKey. Use to locate specific candidates like 'opus', 'devin', or 'claude'."
|
|
4092
4096
|
},
|
|
4093
|
-
verbose: { type: "boolean", description: "Return the full safe-summary field set (prices, introduction,
|
|
4094
|
-
compact: { type: "boolean", description: "Explicit compact projection mode. Responses have hasMore and nextOffset when more locally fetched candidates remain; repeat with offset=nextOffset and the same filters. truncated separately indicates an incomplete upstream pool. Oversized individual candidates return an error. Retains essential agent-selection and admission evidence (agentKey, name, model, tier, billingSource, availabilityStatus, credentialGroup, tools, apiSource, credentialed, quota, economics) while omitting non-admission verbose text like introduction and
|
|
4097
|
+
verbose: { type: "boolean", description: "Return the full safe-summary field set (prices, introduction, timestamps) for troubleshooting. Default false returns the compact agent-selection projection." },
|
|
4098
|
+
compact: { type: "boolean", description: "Explicit compact projection mode. Responses have hasMore and nextOffset when more locally fetched candidates remain; repeat with offset=nextOffset and the same filters. truncated separately indicates an incomplete upstream pool. Oversized individual candidates return an error. Retains essential agent-selection and admission evidence (agentKey, name, model, tier, billingSource, availabilityStatus, credentialGroup, tools, apiSource, credentialed, quota, economics) while omitting non-admission verbose text like introduction and greeting." },
|
|
4095
4099
|
offset: { type: "integer", description: "Optional pagination offset for agent candidates. Default 0." },
|
|
4096
4100
|
fragmentOffset: { type: "integer", description: "Recover an oversized candidate as JSON fragments; start at 0, then use nextFragmentOffset with the same offset, filters, fragmentAgentKey and returned fragmentDigest." },
|
|
4097
4101
|
fragmentAgentKey: { type: "string", description: "Exact agentKey from the oversized-candidate response." },
|
|
@@ -4446,7 +4450,7 @@ var readSkillDocFunctionSchema = {
|
|
|
4446
4450
|
}
|
|
4447
4451
|
};
|
|
4448
4452
|
async function readSkillDocFunc(args, thunkApi) {
|
|
4449
|
-
const { buildReadDocResult } = await import("./readDocTool-
|
|
4453
|
+
const { buildReadDocResult } = await import("./readDocTool-BPQ3QJSD.js");
|
|
4450
4454
|
const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
|
|
4451
4455
|
if (typeof id !== "string" || !id.trim()) {
|
|
4452
4456
|
throw new Error("readSkillDoc requires id or doc.");
|
|
@@ -4722,6 +4726,71 @@ function resolveDeleteOwnershipGuard(input) {
|
|
|
4722
4726
|
return "unknown";
|
|
4723
4727
|
}
|
|
4724
4728
|
|
|
4729
|
+
// packages/app/hooks/deleteRemoteRecordPresence.ts
|
|
4730
|
+
var DEFAULT_TIMEOUT_MS = 5e3;
|
|
4731
|
+
var trimOrigin = (server) => server.trim().replace(/\/+$/, "");
|
|
4732
|
+
var buildReadUrl = (server, dbKey) => `${trimOrigin(server)}${API_ENDPOINTS.DATABASE}/read/${encodeURIComponent(dbKey)}`;
|
|
4733
|
+
async function probeServer(input) {
|
|
4734
|
+
const { server, dbKey, token, timeoutMs, fetchImpl } = input;
|
|
4735
|
+
if (!trimOrigin(server)) return { result: "unknown" };
|
|
4736
|
+
const controller = new AbortController();
|
|
4737
|
+
const timeoutId = setTimeout(() => controller.abort(), timeoutMs);
|
|
4738
|
+
try {
|
|
4739
|
+
const requestToken = googleSessionRequestToken(token ?? void 0, server, false);
|
|
4740
|
+
const headers = { "Content-Type": "application/json" };
|
|
4741
|
+
if (requestToken) headers.Authorization = `Bearer ${requestToken}`;
|
|
4742
|
+
const res = await fetchImpl(buildReadUrl(server, dbKey), {
|
|
4743
|
+
method: "GET",
|
|
4744
|
+
headers,
|
|
4745
|
+
signal: controller.signal,
|
|
4746
|
+
// 权威探测必须拒绝重定向:登录跳转/维护页/代理路由的 302 会落到一个与数据库
|
|
4747
|
+
// 端点无关的页面,那个页面的 404 不代表记录不存在。与 read.ts 的
|
|
4748
|
+
// `redirect: "error"` 策略保持一致,任何重定向都按未核实处理。
|
|
4749
|
+
redirect: "error",
|
|
4750
|
+
...isGoogleAuthoritySession(token) ? { credentials: "omit" } : {}
|
|
4751
|
+
});
|
|
4752
|
+
if (res.status === 404 || res.status === 410 || res.status === 204) {
|
|
4753
|
+
return { result: "absent" };
|
|
4754
|
+
}
|
|
4755
|
+
if (res.status !== 200) return { result: "unknown" };
|
|
4756
|
+
const body = await res.json().catch(() => null);
|
|
4757
|
+
if (body && typeof body === "object" && Object.keys(body).length > 0) {
|
|
4758
|
+
return { result: "present", record: body };
|
|
4759
|
+
}
|
|
4760
|
+
return { result: "unknown" };
|
|
4761
|
+
} catch {
|
|
4762
|
+
return { result: "unknown" };
|
|
4763
|
+
} finally {
|
|
4764
|
+
clearTimeout(timeoutId);
|
|
4765
|
+
}
|
|
4766
|
+
}
|
|
4767
|
+
async function probeRemoteRecordPresence(input) {
|
|
4768
|
+
const dbKey = typeof input.dbKey === "string" ? input.dbKey.trim() : "";
|
|
4769
|
+
if (!dbKey) return { status: "unknown", reason: "empty dbKey" };
|
|
4770
|
+
const servers = [];
|
|
4771
|
+
for (const candidate of input.servers ?? []) {
|
|
4772
|
+
const origin = trimOrigin(candidate ?? "");
|
|
4773
|
+
if (!origin || servers.includes(origin)) continue;
|
|
4774
|
+
servers.push(origin);
|
|
4775
|
+
}
|
|
4776
|
+
if (servers.length === 0) {
|
|
4777
|
+
return { status: "unknown", reason: "no server to probe" };
|
|
4778
|
+
}
|
|
4779
|
+
const timeoutMs = typeof input.timeoutMs === "number" && input.timeoutMs > 0 ? input.timeoutMs : DEFAULT_TIMEOUT_MS;
|
|
4780
|
+
const fetchImpl = input.fetchImpl ?? fetch;
|
|
4781
|
+
const probes = await Promise.all(
|
|
4782
|
+
servers.map(
|
|
4783
|
+
(server) => probeServer({ server, dbKey, token: input.token, timeoutMs, fetchImpl }).then((value) => ({ server, ...value })).catch(() => ({ server, result: "unknown" }))
|
|
4784
|
+
)
|
|
4785
|
+
);
|
|
4786
|
+
const present = probes.find((probe) => probe.result === "present");
|
|
4787
|
+
if (present) return { status: "present", record: present.record };
|
|
4788
|
+
if (probes.some((probe) => probe.result !== "absent")) {
|
|
4789
|
+
return { status: "unknown", reason: "probe inconclusive" };
|
|
4790
|
+
}
|
|
4791
|
+
return { status: "absent" };
|
|
4792
|
+
}
|
|
4793
|
+
|
|
4725
4794
|
// packages/app/favorite/favoriteStore.ts
|
|
4726
4795
|
var import_react = __toESM(require_react());
|
|
4727
4796
|
var createInitialState = () => ({
|
|
@@ -4996,11 +5065,33 @@ var deleteDbKey = (input, spaceId, options) => async (dispatch, getState) => {
|
|
|
4996
5065
|
ownedRecord = null;
|
|
4997
5066
|
}
|
|
4998
5067
|
}
|
|
4999
|
-
const
|
|
5068
|
+
const actorUserId = selectIdentityUserId(state2);
|
|
5069
|
+
let verdict = resolveDeleteOwnershipGuard({
|
|
5000
5070
|
ownerId: ownedRecord?.userId ?? ownedRecord?.ownerId,
|
|
5001
|
-
actorUserId
|
|
5071
|
+
actorUserId,
|
|
5002
5072
|
recordLoaded: Boolean(ownedRecord)
|
|
5003
5073
|
});
|
|
5074
|
+
if (verdict === "unknown" && actorUserId) {
|
|
5075
|
+
const { remoteServers, currentToken } = getRuntimeServerContext(
|
|
5076
|
+
state2,
|
|
5077
|
+
preferredServerOrigin
|
|
5078
|
+
);
|
|
5079
|
+
const presence = await probeRemoteRecordPresence({
|
|
5080
|
+
dbKey: contentKey,
|
|
5081
|
+
servers: remoteServers,
|
|
5082
|
+
token: currentToken
|
|
5083
|
+
});
|
|
5084
|
+
if (presence.status === "present") {
|
|
5085
|
+
const remoteRecord = presence.record;
|
|
5086
|
+
verdict = resolveDeleteOwnershipGuard({
|
|
5087
|
+
ownerId: remoteRecord?.userId ?? remoteRecord?.ownerId,
|
|
5088
|
+
actorUserId,
|
|
5089
|
+
recordLoaded: true
|
|
5090
|
+
});
|
|
5091
|
+
} else if (presence.status === "absent") {
|
|
5092
|
+
verdict = "allow";
|
|
5093
|
+
}
|
|
5094
|
+
}
|
|
5004
5095
|
if (verdict === "deny") {
|
|
5005
5096
|
throw new Error("\u65E0\u6743\u5220\u9664\u4ED6\u4EBA\u5185\u5BB9");
|
|
5006
5097
|
}
|
|
@@ -5298,7 +5389,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
|
|
|
5298
5389
|
const spaceKey = createSpaceKey.space(spaceId);
|
|
5299
5390
|
const readSpace = async (dbKey) => {
|
|
5300
5391
|
try {
|
|
5301
|
-
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-
|
|
5392
|
+
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-5MQ3ELID.js");
|
|
5302
5393
|
const readPromise = fresh ? dispatch(readAndWait2(dbKey)).unwrap() : dispatch(read2({ dbKey })).unwrap();
|
|
5303
5394
|
return await withTimeout(readPromise);
|
|
5304
5395
|
} catch {
|
|
@@ -9684,6 +9775,11 @@ var exaSearchSchema = {
|
|
|
9684
9775
|
type: "array",
|
|
9685
9776
|
items: { type: "string" },
|
|
9686
9777
|
description: '\u6392\u9664\u8FD9\u4E9B\u57DF\u540D\u4E0B\u7684\u7ED3\u679C\uFF08\u4F8B\u5982 ["pinterest.com"]\uFF09\u3002\u4E0D\u586B\u5219\u4E0D\u6392\u9664\u3002'
|
|
9778
|
+
},
|
|
9779
|
+
provider: {
|
|
9780
|
+
type: "string",
|
|
9781
|
+
enum: ["deepseek"],
|
|
9782
|
+
description: '\u641C\u7D22\u5F15\u64CE\u63D0\u4F9B\u65B9\u3002\u9ED8\u8BA4\u8BF7\u7701\u7565\u2014\u2014\u7701\u7565\u5373\u8D70\u670D\u52A1\u7AEF\u65E2\u6709\u901A\u9053\uFF08Exa\u2192Octen\uFF09\uFF1B\u4EC5\u5F53\u7528\u6237\u660E\u786E\u8981\u6C42\u7528 DeepSeek \u641C\u7D22\u65F6\u624D\u586B "deepseek"\u3002\u9009 deepseek \u65F6\u4E0D\u652F\u6301 category / timeRange / includeDomains / excludeDomains\uFF0C\u8FD9\u4E9B\u6536\u7A84\u53EA\u80FD\u5199\u8FDB query\uFF08\u5982 site:\u3001after:\uFF09\u3002'
|
|
9687
9783
|
}
|
|
9688
9784
|
},
|
|
9689
9785
|
required: ["query"]
|
|
@@ -9776,7 +9872,8 @@ var exaSearchFunc = async (input, thunkApi, context2) => {
|
|
|
9776
9872
|
timeRange,
|
|
9777
9873
|
includeDomains,
|
|
9778
9874
|
excludeDomains,
|
|
9779
|
-
includeContent
|
|
9875
|
+
includeContent,
|
|
9876
|
+
provider
|
|
9780
9877
|
} = input;
|
|
9781
9878
|
const body = { query, dialogId: toolRequestDialogId(context2, () => thunkApi.getState()) };
|
|
9782
9879
|
if (numResults !== void 0) body.numResults = numResults;
|
|
@@ -9790,6 +9887,7 @@ var exaSearchFunc = async (input, thunkApi, context2) => {
|
|
|
9790
9887
|
body.excludeDomains = excludeDomains;
|
|
9791
9888
|
}
|
|
9792
9889
|
if (typeof includeContent === "boolean") body.includeContent = includeContent;
|
|
9890
|
+
if (provider !== void 0) body.provider = provider;
|
|
9793
9891
|
const signals = resolvePlanSignals(thunkApi, context2);
|
|
9794
9892
|
if (signals.priorSearches !== void 0) body.priorSearches = signals.priorSearches;
|
|
9795
9893
|
if (signals.lastResultCount !== void 0) body.lastResultCount = signals.lastResultCount;
|
|
@@ -11211,7 +11309,7 @@ var cloudflareCrawlStatusFunctionSchema = {
|
|
|
11211
11309
|
async function cloudflareCrawlStatusFunc(args, thunkApi) {
|
|
11212
11310
|
const { jobId, limit, status, cursor } = args;
|
|
11213
11311
|
if (!jobId) throw new Error("\u5FC5\u987B\u63D0\u4F9B jobId");
|
|
11214
|
-
const { getToolRequestContext: getToolRequestContext2 } = await import("./toolApiClient-
|
|
11312
|
+
const { getToolRequestContext: getToolRequestContext2 } = await import("./toolApiClient-N5PYW2R3.js");
|
|
11215
11313
|
const { baseUrl, token } = getToolRequestContext2(thunkApi);
|
|
11216
11314
|
const params = new URLSearchParams();
|
|
11217
11315
|
if (limit !== void 0) params.set("limit", String(limit));
|
|
@@ -11987,7 +12085,7 @@ var selectUserIdFromState = (state2) => {
|
|
|
11987
12085
|
var selectCurrentServerFromState = (state2) => typeof state2?.settings?.currentServer === "string" ? state2.settings.currentServer : null;
|
|
11988
12086
|
async function addImageContentToSpace(input) {
|
|
11989
12087
|
const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
|
|
11990
|
-
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-
|
|
12088
|
+
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-W6JVLQ6H.js")).addContentAction;
|
|
11991
12089
|
await addContentAction2(
|
|
11992
12090
|
{
|
|
11993
12091
|
spaceId: input.spaceId,
|
|
@@ -19298,7 +19396,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
19298
19396
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
19299
19397
|
};
|
|
19300
19398
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
19301
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
19399
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-A4O6YJAM.js");
|
|
19302
19400
|
if (getDocState().pageKey === id) {
|
|
19303
19401
|
applyExternalDocUpdate({
|
|
19304
19402
|
slateData: finalSlateData,
|
|
@@ -19323,7 +19421,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
19323
19421
|
// packages/ai/tools/updateUserPreferenceProfileTool.ts
|
|
19324
19422
|
async function dispatchSetSettings(thunkApi, changes) {
|
|
19325
19423
|
const injectedSetSettings = thunkApi?.extra?.setSettings;
|
|
19326
|
-
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-
|
|
19424
|
+
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-C2YWCNYI.js")).setSettings;
|
|
19327
19425
|
await thunkApi.dispatch(setSettings(changes)).unwrap();
|
|
19328
19426
|
}
|
|
19329
19427
|
var updateUserPreferenceProfileFunctionSchema = {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
resolvePlatformHostedCredentialProvider,
|
|
5
5
|
resolvePlatformProxyChatGatewayEndpoint,
|
|
6
6
|
resolvePlatformResponsesEndpoint
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ESN4WNWU.js";
|
|
8
8
|
import {
|
|
9
9
|
asTrimmedString
|
|
10
10
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
CLIENT_VERSION_TOO_OLD_CODE,
|
|
22
22
|
buildClientVersionGateErrorDetail,
|
|
23
23
|
evaluatePlatformHostedClientVersionGate
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-PQ63BDV3.js";
|
|
25
25
|
import {
|
|
26
26
|
asTrimmedLowercaseString
|
|
27
27
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getCurrentSpaceIdRaw,
|
|
3
3
|
setCurrentSpaceBoth,
|
|
4
4
|
setSpaceInitialized
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RXTZB2DH.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-5PASH2MB.js";
|
|
17
17
|
import {
|
|
18
18
|
selectIdentityToken,
|
|
19
19
|
selectIdentityUserId
|
|
@@ -41,6 +41,22 @@ var spaceListsUser = (spaceData, userId) => {
|
|
|
41
41
|
var membershipBelongsToUser = (membership, userId) => !membership.userId || membership.userId === userId;
|
|
42
42
|
var membershipFetchCache = /* @__PURE__ */ new Map();
|
|
43
43
|
var MEMBERSHIP_FETCH_CACHE_TTL_MS = 3e4;
|
|
44
|
+
var resolveDesktopShellRuntime = () => {
|
|
45
|
+
if (typeof window === "undefined") return { isEmbeddedRuntime: false };
|
|
46
|
+
const shellWindow = window;
|
|
47
|
+
return {
|
|
48
|
+
isEmbeddedRuntime: shellWindow.__NOLO_EMBEDDED_RUNTIME__ === true,
|
|
49
|
+
runtimeOrigin: shellWindow.location?.origin
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
var isEmbeddedRuntimeServer = (server, runtime = resolveDesktopShellRuntime()) => {
|
|
53
|
+
if (!runtime.isEmbeddedRuntime || !runtime.runtimeOrigin) return false;
|
|
54
|
+
try {
|
|
55
|
+
return new URL(server).origin === runtime.runtimeOrigin;
|
|
56
|
+
} catch {
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
44
60
|
async function fetchMembershipsFromServer(server, token, userId, timeoutMs) {
|
|
45
61
|
if (!token) return { ok: false, memberships: [] };
|
|
46
62
|
googleSessionRequestToken(token, server);
|
|
@@ -77,6 +93,9 @@ async function fetchMembershipsFromServer(server, token, userId, timeoutMs) {
|
|
|
77
93
|
}
|
|
78
94
|
}
|
|
79
95
|
var fetchRemoteUserSpaceMemberships = (server, token, userId, timeoutMs = 5e3) => {
|
|
96
|
+
if (isEmbeddedRuntimeServer(server)) {
|
|
97
|
+
return Promise.resolve({ ok: false, memberships: [] });
|
|
98
|
+
}
|
|
80
99
|
const cacheKey = `${server}|${userId}`;
|
|
81
100
|
const cached = membershipFetchCache.get(cacheKey);
|
|
82
101
|
if (cached) return cached;
|