nolo-cli 0.30.0-alpha.4 → 0.30.0-alpha.6
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-7KWY4TOT.js → _executeModel-F7LV7M3U.js} +25 -24
- package/{action-PABHQA2V.js → action-HI3VRQLP.js} +7 -7
- package/{addContentAction-QOCQY2OK.js → addContentAction-NCURJ6PK.js} +6 -6
- package/{addDialogAgentAction-HQKBYZZM.js → addDialogAgentAction-RCY4ECF4.js} +5 -5
- package/{agentDeleteCommand-K56FLXHX.js → agentDeleteCommand-VHZDPUB4.js} +19 -18
- package/{agentEmailCommands-4HTNF3NM.js → agentEmailCommands-W6JFMN52.js} +27 -26
- package/{agentListCommands-2AJIJEK3.js → agentListCommands-TI45YSNL.js} +21 -20
- package/{agentMachineCommands-CTO3ICU7.js → agentMachineCommands-UR5GLDYC.js} +19 -18
- package/{agentRecordCommands-QMD3GDVM.js → agentRecordCommands-UN5X2HDO.js} +27 -26
- package/{agentRunCommand-VW7DXSDX.js → agentRunCommand-WEDTQP4Y.js} +27 -26
- package/{agentRuntimeLocal-7P7RPLWZ.js → agentRuntimeLocal-6ICEFE6W.js} +16 -15
- package/{agentSlice-4ZVASIFY.js → agentSlice-72ZVODRI.js} +6 -6
- package/{appDeleteCommands-3V5H4PZP.js → appDeleteCommands-M5UHLDA6.js} +20 -19
- package/{appDeployCommands-CP2FN4XQ.js → appDeployCommands-4OMCBP4Y.js} +20 -19
- package/{appDeployStatusCommands-4BJ2IMW3.js → appDeployStatusCommands-G7DTM6FA.js} +20 -19
- package/{appGetCommands-T6YXMZKL.js → appGetCommands-FDTXHBWP.js} +20 -19
- package/{appListCommands-TRN2EUCV.js → appListCommands-HVM57XXB.js} +20 -19
- package/{chunk-ZSMZGOZ2.js → chunk-2IBEKS2W.js} +3 -3
- package/{chunk-REBLMWZW.js → chunk-2IJAKBK2.js} +1 -1
- package/{chunk-VTADMA7F.js → chunk-2IU7N5GD.js} +9 -9
- package/{chunk-VQRRTI4N.js → chunk-3XM7BOJ4.js} +2 -2
- package/{chunk-2FNQS3NE.js → chunk-43EPBPZ2.js} +1 -1
- package/{chunk-H5UXA6OF.js → chunk-4ESWGXGU.js} +3 -3
- package/{chunk-BGY4FZB4.js → chunk-4RJQPMKA.js} +4 -4
- package/{chunk-Y4C6CIWP.js → chunk-4URK2ONB.js} +2 -2
- package/{chunk-FXCLTQEO.js → chunk-5MAO25MQ.js} +1 -1
- package/{chunk-R5V5G73M.js → chunk-5RDLGLAP.js} +0 -1
- package/{chunk-QMGLMEEF.js → chunk-ARB4TTHS.js} +1 -1
- package/{chunk-BPB4MFE5.js → chunk-ATK5WJOA.js} +4 -4
- package/{chunk-GR4ULAGB.js → chunk-B3FH7RAZ.js} +3 -3
- package/chunk-CWJPBMQF.js +7889 -0
- package/{chunk-BNM4PN7V.js → chunk-EJZ7JUJQ.js} +6 -6
- package/{chunk-4VJZODXQ.js → chunk-ELBGPDVW.js} +1 -1
- package/{chunk-S45OJAFJ.js → chunk-F3MP7CP6.js} +1 -1
- package/{chunk-B2F42PFJ.js → chunk-G5GVZAXF.js} +4 -4
- package/{chunk-W53SDRNA.js → chunk-H4LQQNMO.js} +7 -7
- package/{chunk-3NHLRJTZ.js → chunk-IAUWR74M.js} +9 -9
- package/{chunk-VNQ4HVEE.js → chunk-J5A7YX6E.js} +1 -1
- package/{chunk-WZ7E2MTX.js → chunk-KC6PXUBE.js} +7 -5
- package/{chunk-7NE6SSNO.js → chunk-KGEVMUMI.js} +3 -3
- package/{chunk-5GDLMDLY.js → chunk-KL2AIINE.js} +3 -3
- package/{chunk-AKF3R6YT.js → chunk-LAXMH7JY.js} +6 -6
- package/{chunk-N3F3I7CF.js → chunk-MOSVVBDE.js} +5 -5
- package/{chunk-FVKMFU3A.js → chunk-NB3ZWVV5.js} +1 -1
- package/{chunk-INRBVD6S.js → chunk-RGDW7GVD.js} +29 -27
- package/{chunk-3MUUQJXW.js → chunk-T7ATPGU2.js} +2 -2
- package/chunk-TNEZPPUH.js +5558 -0
- package/{chunk-LZSOKNT7.js → chunk-V54H24CQ.js} +2 -2
- package/{chunk-2NKRHXDO.js → chunk-VCETGU44.js} +13 -11
- package/{chunk-TNAX4WSO.js → chunk-W2X2E22F.js} +14 -12
- package/{chunk-CYSB5B6O.js → chunk-YQDH6ZLQ.js} +1 -1
- package/{chunk-H42QD4SH.js → chunk-ZJ2WITOO.js} +2 -2
- package/{chunk-MBZE75JH.js → chunk-ZJH3LKEW.js} +2 -2
- package/{chunk-OWO7RJJP.js → chunk-ZKUHTOLW.js} +5 -5
- package/{createAgentAutomationAction-3CG7CZF2.js → createAgentAutomationAction-5DSJJJGA.js} +11 -10
- package/{createDialogAction-OPFOUFO7.js → createDialogAction-C2BXPUBG.js} +12 -11
- package/{createPageAction-Y54TU4LK.js → createPageAction-O4IFCXPJ.js} +11 -10
- package/{dbSlice-YGWTAMGP.js → dbSlice-BBL3PEVW.js} +5 -5
- package/{deleteFile-6BPXHM5G.js → deleteFile-RJTEPOT4.js} +3 -3
- package/{dialogCommands-KUOPTTW7.js → dialogCommands-JSTEWXMC.js} +20 -19
- package/{dialogSlice-ZWPGG6CW.js → dialogSlice-4Q4OXEPB.js} +10 -10
- package/{docCreateCommands-NWT3CF6Z.js → docCreateCommands-AV4NXXL3.js} +19 -18
- package/{docDeleteCommands-N6Y2GBXZ.js → docDeleteCommands-36WFALAY.js} +20 -19
- package/{docReadCommands-WMUAO7NP.js → docReadCommands-AR3Y34AJ.js} +19 -18
- package/{docStore-MMY7W6LI.js → docStore-ZFEMRTV7.js} +12 -11
- package/{docUpdateCommands-BJ6RXO6N.js → docUpdateCommands-BWWIKWYX.js} +19 -18
- package/{handleSendMessageAction-4E2363XK.js → handleSendMessageAction-D5EJ7VBI.js} +10 -10
- package/index.js +51 -51
- package/{machineCommands-G3XNZ4K7.js → machineCommands-ZRLA7LYE.js} +26 -25
- package/{machineWsRunDispatch-TDXCER6V.js → machineWsRunDispatch-KQTXJWGN.js} +26 -25
- package/package.json +1 -1
- package/{read-QUUPWYTV.js → read-64OQDO3I.js} +3 -3
- package/{readDocTool-J6U623EK.js → readDocTool-MXM3T6PE.js} +1 -1
- package/{readlineWorkspace-XX2N2R76.js → readlineWorkspace-W5LPUDCC.js} +30 -29
- package/{removeDialogAgentAction-UMXNPWYC.js → removeDialogAgentAction-NEKVAMSH.js} +7 -7
- package/{runAgentClientLoop-TJLJMHWD.js → runAgentClientLoop-B4D7T7GO.js} +22 -21
- package/{setDialogExtraReferencesAction-A3MC5BRN.js → setDialogExtraReferencesAction-WTOHQDIV.js} +6 -6
- package/{setPrimaryDialogAgentAction-43JNNAH4.js → setPrimaryDialogAgentAction-LDJOYC4F.js} +7 -7
- package/{settingSlice-XIATPDJH.js → settingSlice-4M37TN7V.js} +6 -6
- package/{spaceCommands-DFLZCOPH.js → spaceCommands-HQAPY3MM.js} +203 -21
- package/{spaceSlice-UL7KEYOZ.js → spaceSlice-5Q4MHBAG.js} +11 -10
- package/{streamAgentChatTurn-MOIP2RPM.js → streamAgentChatTurn-B7EL5LGJ.js} +26 -24
- package/{switchDialogAgentAction-K42FPQXR.js → switchDialogAgentAction-XVWGKR2Z.js} +5 -5
- package/{tableCommands-PRJNWN6Q.js → tableCommands-RJZ3V4TF.js} +1 -1
- package/{tools-NTOMB4LH.js → tools-BTAZSZ6Z.js} +19 -18
- package/{updateDialogTitleAction-IHHHSMZW.js → updateDialogTitleAction-FROWB7ZK.js} +14 -12
- package/chunk-NCPP67IY.js +0 -16336
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-DCDL3GC4.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchAndCacheTableRows
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CWJPBMQF.js";
|
|
10
10
|
import {
|
|
11
11
|
toErrorMessage
|
|
12
12
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
} from "./chunk-3ASDTTEI.js";
|
|
16
16
|
import {
|
|
17
17
|
nolotusId
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-G5GVZAXF.js";
|
|
19
19
|
import {
|
|
20
20
|
asRecordOrEmpty
|
|
21
21
|
} from "./chunk-KX6YBIHG.js";
|
|
22
22
|
import {
|
|
23
23
|
DEFAULT_CODE_PLANNER_EXECUTOR_CANDIDATE_KEYS
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZJH3LKEW.js";
|
|
25
25
|
import {
|
|
26
26
|
isOwnedAgentKey,
|
|
27
27
|
ownedAgentKey,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-TOW4E763.js";
|
|
30
30
|
import {
|
|
31
31
|
createAsyncThunk
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2IJAKBK2.js";
|
|
33
33
|
import {
|
|
34
34
|
asOptionalFiniteNumber
|
|
35
35
|
} from "./chunk-WWC7I6TA.js";
|
|
@@ -1621,7 +1621,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
1621
1621
|
if (!executionInput) {
|
|
1622
1622
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
1623
1623
|
}
|
|
1624
|
-
const { findToolExecutor } = await import("./tools-
|
|
1624
|
+
const { findToolExecutor } = await import("./tools-BTAZSZ6Z.js");
|
|
1625
1625
|
const { executor } = findToolExecutor(run.toolName);
|
|
1626
1626
|
toolRunStarted({
|
|
1627
1627
|
id: run.id,
|
|
@@ -1645,7 +1645,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
1645
1645
|
const latestState = thunkApi.getState();
|
|
1646
1646
|
const userId = latestState.auth?.currentUser?.userId;
|
|
1647
1647
|
if (userId) {
|
|
1648
|
-
const { fetchUserSpaceMemberships } = await import("./spaceSlice-
|
|
1648
|
+
const { fetchUserSpaceMemberships } = await import("./spaceSlice-5Q4MHBAG.js");
|
|
1649
1649
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
1650
1650
|
}
|
|
1651
1651
|
}
|
|
@@ -52,7 +52,7 @@ async function readDocFunc(args, thunkApi) {
|
|
|
52
52
|
throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
|
|
53
53
|
}
|
|
54
54
|
try {
|
|
55
|
-
const { readAction } = await import("./read-
|
|
55
|
+
const { readAction } = await import("./read-64OQDO3I.js");
|
|
56
56
|
const pageData = await readAction({ dbKey: id }, thunkApi);
|
|
57
57
|
if (!pageData) {
|
|
58
58
|
throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
toTimestampMs,
|
|
8
8
|
upsert,
|
|
9
9
|
write
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LAXMH7JY.js";
|
|
11
11
|
import {
|
|
12
12
|
asTrimmedLowercaseString
|
|
13
13
|
} from "./chunk-QSJ3HFEF.js";
|
|
14
14
|
import {
|
|
15
15
|
BUILTIN_NOLO_AGENT_KEY
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZJH3LKEW.js";
|
|
17
17
|
import {
|
|
18
18
|
asyncThunkCreator,
|
|
19
19
|
buildCreateSlice,
|
|
@@ -21,12 +21,12 @@ import {
|
|
|
21
21
|
createAsyncThunk,
|
|
22
22
|
createSelector,
|
|
23
23
|
selectIdentityUserId
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-2IJAKBK2.js";
|
|
25
25
|
import {
|
|
26
26
|
getAllServers,
|
|
27
27
|
getIsDesktopApp,
|
|
28
28
|
isProduction
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-5RDLGLAP.js";
|
|
30
30
|
import {
|
|
31
31
|
SERVERS
|
|
32
32
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
requiresBareImageUrl,
|
|
10
10
|
resolveToolGuidedSections,
|
|
11
11
|
toBareImageUrlMessages
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZKUHTOLW.js";
|
|
13
13
|
import {
|
|
14
14
|
convertMessagesToResponsesInput,
|
|
15
15
|
preserveAgentStateFields
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk-4PWB7JRR.js";
|
|
27
27
|
import {
|
|
28
28
|
waitForAbortableDelay
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-RGDW7GVD.js";
|
|
30
30
|
import {
|
|
31
31
|
createDrainExhaustedResponse,
|
|
32
32
|
isCoreDrainingBody,
|
|
@@ -36,15 +36,15 @@ import {
|
|
|
36
36
|
} from "./chunk-Z5MXSEOJ.js";
|
|
37
37
|
import {
|
|
38
38
|
resolveBuiltinSkillPage
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-EJZ7JUJQ.js";
|
|
40
40
|
import {
|
|
41
41
|
estimateTokenCount,
|
|
42
42
|
shouldUseServerProxy
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-TNEZPPUH.js";
|
|
44
44
|
import {
|
|
45
45
|
createFileCredentialBroker,
|
|
46
46
|
fetchServerSyncedCredential
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-MOSVVBDE.js";
|
|
48
48
|
import {
|
|
49
49
|
toErrorMessage
|
|
50
50
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -60,13 +60,13 @@ import {
|
|
|
60
60
|
} from "./chunk-CAENRKNJ.js";
|
|
61
61
|
import {
|
|
62
62
|
read
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-LAXMH7JY.js";
|
|
64
64
|
import {
|
|
65
65
|
asTrimmedLowercaseString
|
|
66
66
|
} from "./chunk-QSJ3HFEF.js";
|
|
67
67
|
import {
|
|
68
68
|
isAbortError
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-5RDLGLAP.js";
|
|
70
70
|
import {
|
|
71
71
|
API_ENDPOINTS
|
|
72
72
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk-WJRJDX2W.js";
|
|
27
27
|
import {
|
|
28
28
|
buildLocalAgentLookupKeys
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ARB4TTHS.js";
|
|
30
30
|
import {
|
|
31
31
|
LOCAL_CODEX_AGENT_ID,
|
|
32
32
|
LOCAL_CODEX_AGENT_KEY,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
readOpenAiCompatibleSseCompletion,
|
|
54
54
|
resolveAgentNextAvailableAt,
|
|
55
55
|
resolveOpenAiCompatibleProviderConfig
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-B3FH7RAZ.js";
|
|
57
57
|
import {
|
|
58
58
|
buildPlatformChatCompletionRequest,
|
|
59
59
|
canUsePlatformChatProvider,
|
|
@@ -73,12 +73,12 @@ import {
|
|
|
73
73
|
import {
|
|
74
74
|
inlineImageUrlsForCustomProvider,
|
|
75
75
|
prepareTools
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-NB3ZWVV5.js";
|
|
77
77
|
import {
|
|
78
78
|
inferCaptureIntent,
|
|
79
79
|
resolveHistoricalToolContentCap,
|
|
80
80
|
summarizeToolArguments
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-VCETGU44.js";
|
|
82
82
|
import {
|
|
83
83
|
getAntigravityUserAgent,
|
|
84
84
|
isAntigravityOAuthAgent,
|
|
@@ -103,7 +103,7 @@ import {
|
|
|
103
103
|
readXhsProfileFunctionSchema,
|
|
104
104
|
rememberMemoryFunctionSchema,
|
|
105
105
|
setTodoListFunc
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-RGDW7GVD.js";
|
|
107
107
|
import {
|
|
108
108
|
createDrainExhaustedResponse,
|
|
109
109
|
isCoreDrainingBody,
|
|
@@ -127,13 +127,13 @@ import {
|
|
|
127
127
|
parseNoloWorkspaceToolArguments,
|
|
128
128
|
resolveAgentRequiredPackIds,
|
|
129
129
|
resolveRuntimeToolSurfaceForAgent
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-EJZ7JUJQ.js";
|
|
131
131
|
import {
|
|
132
132
|
applyTokenUsageToDayStats,
|
|
133
133
|
prepareTokenUsageData,
|
|
134
134
|
resolveBuiltinPlatformAgentConfig,
|
|
135
135
|
runKeyed
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-TNEZPPUH.js";
|
|
137
137
|
import {
|
|
138
138
|
BUILTIN_TITLE_LLM_CONFIG,
|
|
139
139
|
clipCompactText
|
|
@@ -144,7 +144,7 @@ import {
|
|
|
144
144
|
resolveCurrentRunRuntimeToolPolicy,
|
|
145
145
|
resolveLocalWorkspaceExecutorOptionsFromPolicy,
|
|
146
146
|
resolveRequestedRuntimeToolNames
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-MOSVVBDE.js";
|
|
148
148
|
import {
|
|
149
149
|
createOAuthTokenStore,
|
|
150
150
|
isTokenExpired,
|
|
@@ -175,7 +175,7 @@ import {
|
|
|
175
175
|
} from "./chunk-QSJ3HFEF.js";
|
|
176
176
|
import {
|
|
177
177
|
isSystemBuiltinTrustedAgentKey
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-ZJH3LKEW.js";
|
|
179
179
|
import {
|
|
180
180
|
NOLO_CLUSTER_SERVERS
|
|
181
181
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -2,11 +2,13 @@ import {
|
|
|
2
2
|
buildBuiltinObjectSkillReference
|
|
3
3
|
} from "./chunk-DCDL3GC4.js";
|
|
4
4
|
import {
|
|
5
|
-
addContentToSpace
|
|
5
|
+
addContentToSpace
|
|
6
|
+
} from "./chunk-CWJPBMQF.js";
|
|
7
|
+
import {
|
|
6
8
|
prepareAndPersistMessage,
|
|
7
9
|
uiAskChoiceFunc,
|
|
8
10
|
uiAskChoiceFunctionSchema
|
|
9
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TNEZPPUH.js";
|
|
10
12
|
import {
|
|
11
13
|
require_date_fns
|
|
12
14
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -21,16 +23,16 @@ import {
|
|
|
21
23
|
removeCachedEntity,
|
|
22
24
|
upsertSSREntity,
|
|
23
25
|
write
|
|
24
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LAXMH7JY.js";
|
|
25
27
|
import {
|
|
26
28
|
extractCustomId
|
|
27
29
|
} from "./chunk-TOW4E763.js";
|
|
28
30
|
import {
|
|
29
31
|
selectIdentityUserId
|
|
30
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2IJAKBK2.js";
|
|
31
33
|
import {
|
|
32
34
|
isDevelopment
|
|
33
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-5RDLGLAP.js";
|
|
34
36
|
import {
|
|
35
37
|
createAgentKey,
|
|
36
38
|
createDialogKey,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectCurrentServer,
|
|
3
3
|
selectRemoteServers
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-G5GVZAXF.js";
|
|
5
5
|
import {
|
|
6
6
|
noloDeleteRequest,
|
|
7
7
|
noloWriteRequest,
|
|
8
8
|
selectIdentityUser,
|
|
9
9
|
selectIdentityUserId
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2IJAKBK2.js";
|
|
11
11
|
import {
|
|
12
12
|
normalizeTimeFields
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5RDLGLAP.js";
|
|
14
14
|
import {
|
|
15
15
|
createUserKey,
|
|
16
16
|
extractAgentInfo,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listUserRecordsFromServers,
|
|
3
3
|
readLiveDbRecordAfterTombstoneMerge
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5MAO25MQ.js";
|
|
5
5
|
import {
|
|
6
6
|
agentRecordHasConfiguredCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YQDH6ZLQ.js";
|
|
8
8
|
import {
|
|
9
9
|
toSafeAgentSummary
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-J5A7YX6E.js";
|
|
11
11
|
import {
|
|
12
12
|
PUBLIC_AGENT_KEY_PREFIX,
|
|
13
13
|
isOwnedAgentKey,
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
loadFileFromIndexedDb,
|
|
3
3
|
removeAction,
|
|
4
4
|
saveFileToIndexedDb
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZJ2WITOO.js";
|
|
6
6
|
import {
|
|
7
7
|
readAction,
|
|
8
8
|
readRequestManager,
|
|
9
9
|
resolveAgentReadServers
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZJH3LKEW.js";
|
|
11
11
|
import {
|
|
12
12
|
asyncThunkCreator,
|
|
13
13
|
buildCreateSlice,
|
|
@@ -27,13 +27,13 @@ import {
|
|
|
27
27
|
shouldReplaceLocalWithRemoteRecord,
|
|
28
28
|
shouldReplicateLocalRecord,
|
|
29
29
|
uploadToCurrentServer
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-2IJAKBK2.js";
|
|
31
31
|
import {
|
|
32
32
|
fetchFromClientDb,
|
|
33
33
|
fetchFromServer,
|
|
34
34
|
logger,
|
|
35
35
|
normalizeTimeFields
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-5RDLGLAP.js";
|
|
37
37
|
import {
|
|
38
38
|
API_ENDPOINTS
|
|
39
39
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -704,7 +704,7 @@ var dbSlice = createSliceWithThunks({
|
|
|
704
704
|
// 动态 import 在调用期解析,避开 TDZ/求值顺序问题(同下方 share)。
|
|
705
705
|
read: create.asyncThunk(
|
|
706
706
|
async (payload, thunkApi) => {
|
|
707
|
-
const { readAction: readAction2 } = await import("./read-
|
|
707
|
+
const { readAction: readAction2 } = await import("./read-64OQDO3I.js");
|
|
708
708
|
return readAction2(payload, thunkApi);
|
|
709
709
|
},
|
|
710
710
|
{
|
|
@@ -778,7 +778,7 @@ var dbSlice = createSliceWithThunks({
|
|
|
778
778
|
// 这里改成动态 import,运行期才解析,彻底断开这条边。
|
|
779
779
|
share: create.asyncThunk(
|
|
780
780
|
async (config, thunkApi) => {
|
|
781
|
-
const { shareResourceAction } = await import("./action-
|
|
781
|
+
const { shareResourceAction } = await import("./action-HI3VRQLP.js");
|
|
782
782
|
return shareResourceAction(config, thunkApi);
|
|
783
783
|
}
|
|
784
784
|
),
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
patch,
|
|
9
9
|
remove,
|
|
10
10
|
write
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LAXMH7JY.js";
|
|
12
12
|
import {
|
|
13
13
|
asyncThunkCreator,
|
|
14
14
|
buildCreateSlice,
|
|
15
15
|
getRuntimeServerContext
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2IJAKBK2.js";
|
|
17
17
|
import {
|
|
18
18
|
createAgentKey,
|
|
19
19
|
toTrimmedString
|
|
@@ -583,7 +583,7 @@ var slice = createSliceWithThunks({
|
|
|
583
583
|
const overrides = {};
|
|
584
584
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
585
585
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
586
|
-
const { _executeModel } = await import("./_executeModel-
|
|
586
|
+
const { _executeModel } = await import("./_executeModel-F7LV7M3U.js");
|
|
587
587
|
return _executeModel(
|
|
588
588
|
{
|
|
589
589
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -604,7 +604,7 @@ var slice = createSliceWithThunks({
|
|
|
604
604
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
605
605
|
*/
|
|
606
606
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
607
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
607
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-B4D7T7GO.js");
|
|
608
608
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
609
609
|
{
|
|
610
610
|
agentKey: args.agentKey,
|
|
@@ -620,7 +620,7 @@ var slice = createSliceWithThunks({
|
|
|
620
620
|
* 聊天轮次流式 Agent 调用
|
|
621
621
|
*/
|
|
622
622
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
623
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
623
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-B7EL5LGJ.js");
|
|
624
624
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
625
625
|
}),
|
|
626
626
|
/**
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
sortSafeAgentSummaries,
|
|
19
19
|
toSafeAgentSummary
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-J5A7YX6E.js";
|
|
21
21
|
import {
|
|
22
22
|
getUserDataItemTimestamp,
|
|
23
23
|
mergeAndDedupUserData
|
|
@@ -43,19 +43,19 @@ import {
|
|
|
43
43
|
resolveNoloDialogInput,
|
|
44
44
|
toolRunUpdated,
|
|
45
45
|
verifyNoloDialogSubjectRefQuery
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-EJZ7JUJQ.js";
|
|
47
47
|
import {
|
|
48
48
|
createDocState
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-4ESWGXGU.js";
|
|
50
50
|
import {
|
|
51
51
|
setDialogExtraReferencesAction
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-43EPBPZ2.js";
|
|
53
53
|
import {
|
|
54
54
|
readDocFunc,
|
|
55
55
|
readDocFunctionSchema,
|
|
56
56
|
readPageFunc,
|
|
57
57
|
readPageFunctionSchema
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-F3MP7CP6.js";
|
|
59
59
|
import {
|
|
60
60
|
slateToSimplifiedMarkdown
|
|
61
61
|
} from "./chunk-SWYMCHM7.js";
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
} from "./chunk-44HACRCK.js";
|
|
70
70
|
import {
|
|
71
71
|
createDialogAction
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-KC6PXUBE.js";
|
|
73
73
|
import {
|
|
74
74
|
markdownToSlate
|
|
75
75
|
} from "./chunk-3LY4F7SV.js";
|
|
@@ -77,38 +77,40 @@ import {
|
|
|
77
77
|
addCategory,
|
|
78
78
|
addContentToSpace,
|
|
79
79
|
addRow,
|
|
80
|
-
buildDatabaseFileContentUrl,
|
|
81
80
|
createTable,
|
|
82
81
|
deleteDbKey,
|
|
83
82
|
deleteSpace,
|
|
84
83
|
fetchUserData,
|
|
85
84
|
i18nBaseConfig,
|
|
86
|
-
incrementFailedSteps,
|
|
87
|
-
incrementStepsExecuted,
|
|
88
85
|
initReactI18next,
|
|
89
86
|
instance,
|
|
90
87
|
loadTableRows,
|
|
88
|
+
selectAllMemberSpaces,
|
|
89
|
+
selectCurrentSpaceId,
|
|
90
|
+
updateContentCategory,
|
|
91
|
+
updateContentTitle
|
|
92
|
+
} from "./chunk-CWJPBMQF.js";
|
|
93
|
+
import {
|
|
94
|
+
buildDatabaseFileContentUrl,
|
|
95
|
+
incrementFailedSteps,
|
|
96
|
+
incrementStepsExecuted,
|
|
91
97
|
normalizeAppRouteId,
|
|
92
98
|
resolveDialogRuntimeAgentKey,
|
|
93
|
-
selectAllMemberSpaces,
|
|
94
99
|
selectAllMsgs,
|
|
95
100
|
selectCurrentDialogConfig,
|
|
96
101
|
selectCurrentDialogId,
|
|
97
|
-
selectCurrentSpaceId,
|
|
98
102
|
selectMsgById,
|
|
99
103
|
setWorkflow,
|
|
100
104
|
uiAskChoiceFunc,
|
|
101
105
|
uiAskChoiceFunctionSchema,
|
|
102
|
-
updateContentCategory,
|
|
103
|
-
updateContentTitle,
|
|
104
106
|
updateStep
|
|
105
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-TNEZPPUH.js";
|
|
106
108
|
import {
|
|
107
109
|
createAgent,
|
|
108
110
|
runLlm,
|
|
109
111
|
streamAgentChatTurn,
|
|
110
112
|
updateAgent
|
|
111
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-MOSVVBDE.js";
|
|
112
114
|
import {
|
|
113
115
|
toErrorMessage
|
|
114
116
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -124,7 +126,7 @@ import {
|
|
|
124
126
|
addContentAction,
|
|
125
127
|
createSpaceKey,
|
|
126
128
|
normalizeSpaceId
|
|
127
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-V54H24CQ.js";
|
|
128
130
|
import {
|
|
129
131
|
DEFAULT_MODEL
|
|
130
132
|
} from "./chunk-EIQDGAAE.js";
|
|
@@ -136,14 +138,14 @@ import {
|
|
|
136
138
|
} from "./chunk-VF4K2QE6.js";
|
|
137
139
|
import {
|
|
138
140
|
shareResourceAction
|
|
139
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-KGEVMUMI.js";
|
|
140
142
|
import {
|
|
141
143
|
AGENT_UPDATE_FIELD_NAMES,
|
|
142
144
|
normalizeAgentUpdateFieldList,
|
|
143
145
|
selectAutoApproveSelfUpdateFields,
|
|
144
146
|
selectCurrentServer,
|
|
145
147
|
selectSyncServers
|
|
146
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-G5GVZAXF.js";
|
|
147
149
|
import {
|
|
148
150
|
asRecordOrEmpty
|
|
149
151
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -155,13 +157,13 @@ import {
|
|
|
155
157
|
selectById,
|
|
156
158
|
toTimestampMs,
|
|
157
159
|
write
|
|
158
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-LAXMH7JY.js";
|
|
159
161
|
import {
|
|
160
162
|
asTrimmedLowercaseString
|
|
161
163
|
} from "./chunk-QSJ3HFEF.js";
|
|
162
164
|
import {
|
|
163
165
|
readAction
|
|
164
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-ZJH3LKEW.js";
|
|
165
167
|
import {
|
|
166
168
|
extractCustomId
|
|
167
169
|
} from "./chunk-TOW4E763.js";
|
|
@@ -173,10 +175,10 @@ import {
|
|
|
173
175
|
selectIdentityUserBalance,
|
|
174
176
|
selectIdentityUserId,
|
|
175
177
|
selectRuntimeSnapshot
|
|
176
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-2IJAKBK2.js";
|
|
177
179
|
import {
|
|
178
180
|
isAbortError
|
|
179
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-5RDLGLAP.js";
|
|
180
182
|
import {
|
|
181
183
|
API_ENDPOINTS
|
|
182
184
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -13918,7 +13920,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
13918
13920
|
const deletedDialogIds = [];
|
|
13919
13921
|
const deletedDialogKeys = [];
|
|
13920
13922
|
const failures = [];
|
|
13921
|
-
const { deleteDialog } = await import("./dialogSlice-
|
|
13923
|
+
const { deleteDialog } = await import("./dialogSlice-4Q4OXEPB.js");
|
|
13922
13924
|
for (const target of targets) {
|
|
13923
13925
|
try {
|
|
13924
13926
|
await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
|
|
@@ -14187,7 +14189,7 @@ var readSkillDocFunctionSchema = {
|
|
|
14187
14189
|
}
|
|
14188
14190
|
};
|
|
14189
14191
|
async function readSkillDocFunc(args, thunkApi) {
|
|
14190
|
-
const { buildReadDocResult } = await import("./readDocTool-
|
|
14192
|
+
const { buildReadDocResult } = await import("./readDocTool-MXM3T6PE.js");
|
|
14191
14193
|
const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
|
|
14192
14194
|
if (typeof id !== "string" || !id.trim()) {
|
|
14193
14195
|
throw new Error("readSkillDoc requires id or doc.");
|
|
@@ -19637,7 +19639,7 @@ var selectUserIdFromState = (state) => typeof state?.auth?.currentUser?.userId =
|
|
|
19637
19639
|
var selectCurrentServerFromState = (state) => typeof state?.settings?.currentServer === "string" ? state.settings.currentServer : null;
|
|
19638
19640
|
async function addImageContentToSpace(input) {
|
|
19639
19641
|
const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
|
|
19640
|
-
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-
|
|
19642
|
+
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-NCURJ6PK.js")).addContentAction;
|
|
19641
19643
|
await addContentAction2(
|
|
19642
19644
|
{
|
|
19643
19645
|
spaceId: input.spaceId,
|
|
@@ -25663,7 +25665,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
25663
25665
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
25664
25666
|
};
|
|
25665
25667
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
25666
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
25668
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-ZFEMRTV7.js");
|
|
25667
25669
|
if (getDocState().pageKey === id) {
|
|
25668
25670
|
applyExternalDocUpdate({
|
|
25669
25671
|
slateData: finalSlateData,
|
|
@@ -25688,7 +25690,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
25688
25690
|
// packages/ai/tools/updateUserPreferenceProfileTool.ts
|
|
25689
25691
|
async function dispatchSetSettings(thunkApi, changes) {
|
|
25690
25692
|
const injectedSetSettings = thunkApi?.extra?.setSettings;
|
|
25691
|
-
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-
|
|
25693
|
+
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-4M37TN7V.js")).setSettings;
|
|
25692
25694
|
await thunkApi.dispatch(setSettings(changes)).unwrap();
|
|
25693
25695
|
}
|
|
25694
25696
|
var updateUserPreferenceProfileFunctionSchema = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveReferenceAssets
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H4LQQNMO.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchReferenceContents
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZKUHTOLW.js";
|
|
7
7
|
|
|
8
8
|
// packages/ai/agent/fetchAgentContexts.ts
|
|
9
9
|
async function fetchAgentContexts(references, dispatch) {
|