nolo-cli 0.29.0 → 0.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{_executeModel-YQ57CFSN.js → _executeModel-BFVTGZXE.js} +23 -23
- package/{action-6BM26ZYM.js → action-LG32A6DJ.js} +5 -5
- package/{addContentAction-HLTFX56O.js → addContentAction-MPGMBJTQ.js} +4 -4
- package/{addDialogAgentAction-Q2TYWDO6.js → addDialogAgentAction-ZH23WDID.js} +3 -3
- package/{agentDeleteCommand-VP4VLCMG.js → agentDeleteCommand-4S4STG42.js} +11 -11
- package/{agentEmailCommands-PSLJLQRR.js → agentEmailCommands-3F4IP4DI.js} +26 -26
- package/{agentListCommands-MJJJG3OW.js → agentListCommands-JCRV2XF6.js} +13 -13
- package/{agentMachineCommands-IP2A26V7.js → agentMachineCommands-KYXPYSFP.js} +11 -11
- package/{agentRecordCommands-3HK3AR3H.js → agentRecordCommands-UADUPIXO.js} +26 -26
- package/{agentRunCommand-2IX2ELJQ.js → agentRunCommand-MJWSR53W.js} +26 -26
- package/{agentRuntimeLocal-VI3NHLDU.js → agentRuntimeLocal-PC5RRRPT.js} +12 -12
- package/{agentSlice-RR6OT2BW.js → agentSlice-C5OYLNBT.js} +4 -4
- package/{appDeleteCommands-SF2V6QYZ.js → appDeleteCommands-ZXODZ5AD.js} +12 -12
- package/{appDeployCommands-3EPVR545.js → appDeployCommands-AWC6JPZH.js} +12 -12
- package/{appDeployStatusCommands-O65Y747J.js → appDeployStatusCommands-74NXMDAI.js} +12 -12
- package/{appGetCommands-AHDOF4SS.js → appGetCommands-6YGIAP5L.js} +12 -12
- package/{appListCommands-Y7YCXODU.js → appListCommands-DZWBHMNK.js} +12 -12
- package/{chunk-BYHN2CP5.js → chunk-32ZM6HVI.js} +1 -1
- package/{chunk-XISENOC2.js → chunk-4BDPDTJU.js} +2 -2
- package/{chunk-POANOUUC.js → chunk-5ZXNLOAG.js} +3 -3
- package/{chunk-WPRSBZYN.js → chunk-6HTWA77J.js} +1 -1
- package/{chunk-YRMUYZ5H.js → chunk-BBGRJB5E.js} +2 -2
- package/{chunk-MHHYH3JA.js → chunk-DF7SMWEV.js} +1 -1
- package/{chunk-4S7B6YC5.js → chunk-FVOSIYXM.js} +8 -8
- package/{chunk-JYSXE6LE.js → chunk-G2BZ43DV.js} +3 -3
- package/{chunk-BOPFLKHA.js → chunk-GC34RRTQ.js} +1 -1
- package/{chunk-ZXXAMM3K.js → chunk-GMJS5AYP.js} +3 -3
- package/{chunk-KJJ6EWVW.js → chunk-H5S4XUGI.js} +11 -11
- package/{chunk-FVY6KI5A.js → chunk-HEXXIS77.js} +1 -1
- package/{chunk-H7N2NOJF.js → chunk-HRJEPMZY.js} +14 -7
- package/{chunk-Z3LLUGD5.js → chunk-HRPWRVBI.js} +1 -1
- package/{chunk-PMSG3OGF.js → chunk-HYSJHRWD.js} +4 -4
- package/{chunk-INWBJPQC.js → chunk-IC7W63RM.js} +2 -2
- package/{chunk-DBUNOYLF.js → chunk-JSB4N6NU.js} +1 -1
- package/{chunk-33K2M3AU.js → chunk-KEF5OBOZ.js} +2 -15
- package/{chunk-NWT2WUCY.js → chunk-L6RBX4L4.js} +1 -1
- package/{chunk-NV2VP27U.js → chunk-NXMJ55RU.js} +15 -8
- package/{chunk-SRFEVECQ.js → chunk-OEWEE4VW.js} +1 -1
- package/{chunk-PJI44RVC.js → chunk-OLWMGSW2.js} +10 -10
- package/{chunk-PB7G5MAM.js → chunk-OMP5L5NF.js} +1 -1
- package/{chunk-ZZYNGFTB.js → chunk-Q5RXHXKU.js} +9 -9
- package/{chunk-I5TJCJQP.js → chunk-QC6ZWDSV.js} +1 -1
- package/{chunk-STOUEEBU.js → chunk-R3JSTDQO.js} +1 -1
- package/{chunk-ENUJPSZN.js → chunk-R7LOFGRE.js} +2 -2
- package/{chunk-SIZWJA7H.js → chunk-RJBTU7AS.js} +4 -4
- package/{chunk-RLQXGHUQ.js → chunk-TOGGHWHI.js} +2 -2
- package/{chunk-SLOGKB7M.js → chunk-TOW4E763.js} +9 -1
- package/{chunk-PFTK5SEB.js → chunk-UEOPA6MV.js} +22 -1
- package/{chunk-VEHCU5XV.js → chunk-UFL6WHHJ.js} +21 -21
- package/{chunk-2IN43Q72.js → chunk-VKBTAQWT.js} +3 -3
- package/{chunk-3LJ4RSSF.js → chunk-W2LZV5GE.js} +1 -1
- package/{chunk-VNMOLPVO.js → chunk-WMB7GVPN.js} +26 -25
- package/{chunk-P6TB7JIA.js → chunk-Z54ZAZZC.js} +2 -2
- package/{createAgentAutomationAction-PIKVVL2R.js → createAgentAutomationAction-BK4UZJKU.js} +9 -9
- package/{createDialogAction-DQCM7HHO.js → createDialogAction-MJJUI2MK.js} +10 -10
- package/{createPageAction-W2DRG2J7.js → createPageAction-YMZ7K363.js} +9 -9
- package/{db-W5UHK4P3.js → db-IPCJ43PW.js} +10 -6
- package/{dbSlice-GOKRGQ47.js → dbSlice-6QJYQUBV.js} +3 -3
- package/{dialogCommands-N4XKI6ZU.js → dialogCommands-OKH45ASS.js} +12 -12
- package/{dialogSlice-DZUQZISK.js → dialogSlice-UDOKNDHB.js} +9 -9
- package/{docCreateCommands-DTDKANXX.js → docCreateCommands-MCLMR4TE.js} +11 -11
- package/{docDeleteCommands-U4NB6OHK.js → docDeleteCommands-ONDHI7JV.js} +12 -12
- package/{docReadCommands-SDVQM3BH.js → docReadCommands-FCXBMISW.js} +11 -11
- package/{docStore-NXDBQRDQ.js → docStore-N66O4CGH.js} +10 -10
- package/{docUpdateCommands-O2O644FV.js → docUpdateCommands-T3XN6XOX.js} +11 -11
- package/{handleSendMessageAction-3MMYF664.js → handleSendMessageAction-KC4AYUZP.js} +9 -9
- package/index.js +40 -40
- package/localDialogRead-UFLBS6OT.js +38 -0
- package/{machineCommands-QFDT6G2Q.js → machineCommands-DIMRFA3Y.js} +25 -25
- package/{machineWsRunDispatch-J6IBIDYG.js → machineWsRunDispatch-2DYJZI6Z.js} +25 -25
- package/package.json +1 -1
- package/{read-A23NKT3O.js → read-C7Y6LSBM.js} +2 -2
- package/{readDocTool-JAM5BI5Q.js → readDocTool-TOHRYJHP.js} +1 -1
- package/{readlineWorkspace-FU7PWLJU.js → readlineWorkspace-HUPHMLDG.js} +29 -29
- package/{removeDialogAgentAction-K4HOWFHO.js → removeDialogAgentAction-WZXPOH5S.js} +5 -5
- package/{runAgentClientLoop-P6J4YSE4.js → runAgentClientLoop-5TGSUKHV.js} +20 -20
- package/{setDialogExtraReferencesAction-JD7J7JM4.js → setDialogExtraReferencesAction-INZY2ENI.js} +4 -4
- package/{setPrimaryDialogAgentAction-YWSA5XEU.js → setPrimaryDialogAgentAction-WCVLPYCF.js} +5 -5
- package/{settingSlice-22GTX6CA.js → settingSlice-IDUM4LWU.js} +4 -4
- package/{spaceCommands-WM6W3WMQ.js → spaceCommands-XSSDB3YK.js} +11 -11
- package/{spaceSlice-SVEWO5JX.js → spaceSlice-BXDCO6PT.js} +9 -9
- package/{streamAgentChatTurn-XJRY424B.js → streamAgentChatTurn-HRFMVSVC.js} +23 -23
- package/{switchDialogAgentAction-6JKFBJVR.js → switchDialogAgentAction-YBFFCBOD.js} +3 -3
- package/{toolApiClient-ISM4ZQX4.js → toolApiClient-WVTUYOFM.js} +2 -2
- package/{tools-ZN6GWGYP.js → tools-5V6FHWQU.js} +18 -18
- package/{updateDialogTitleAction-ZJ2HF5AQ.js → updateDialogTitleAction-W62C4W4K.js} +9 -9
- package/localDialogRead-JXTAHW2E.js +0 -26
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
fetchAndSerializeTable,
|
|
8
8
|
resolveBuiltinSkillPage,
|
|
9
9
|
waitForAbortableDelay
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WMB7GVPN.js";
|
|
11
11
|
import {
|
|
12
12
|
createDrainExhaustedResponse,
|
|
13
13
|
isCoreDrainingBody,
|
|
@@ -17,16 +17,16 @@ import {
|
|
|
17
17
|
} from "./chunk-RQSOAMPJ.js";
|
|
18
18
|
import {
|
|
19
19
|
slateToSimplifiedMarkdown
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GC34RRTQ.js";
|
|
21
21
|
import {
|
|
22
22
|
extractCategorizedMentions
|
|
23
23
|
} from "./chunk-VP4WJWKW.js";
|
|
24
24
|
import {
|
|
25
25
|
fetchAndCacheMessages
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-UFL6WHHJ.js";
|
|
27
27
|
import {
|
|
28
28
|
fetchServerSyncedCredential
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-RJBTU7AS.js";
|
|
30
30
|
import {
|
|
31
31
|
shouldUseServerProxy
|
|
32
32
|
} from "./chunk-YYLHWIW6.js";
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
} from "./chunk-XS7UPVR7.js";
|
|
56
56
|
import {
|
|
57
57
|
estimateTokenCount
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-HYSJHRWD.js";
|
|
59
59
|
import {
|
|
60
60
|
createFileCredentialBroker
|
|
61
61
|
} from "./chunk-5CS33IBL.js";
|
|
@@ -81,10 +81,10 @@ import {
|
|
|
81
81
|
} from "./chunk-YTA2QOEE.js";
|
|
82
82
|
import {
|
|
83
83
|
createSpaceKey
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-JSB4N6NU.js";
|
|
85
85
|
import {
|
|
86
86
|
read
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-G2BZ43DV.js";
|
|
88
88
|
import {
|
|
89
89
|
asTrimmedLowercaseString
|
|
90
90
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
} from "./chunk-3EUW3WEO.js";
|
|
100
100
|
import {
|
|
101
101
|
extractCustomId
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-TOW4E763.js";
|
|
103
103
|
import {
|
|
104
104
|
API_ENDPOINTS
|
|
105
105
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
readAction,
|
|
13
13
|
readRequestManager,
|
|
14
14
|
resolveAgentReadServers
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-L6RBX4L4.js";
|
|
16
16
|
import {
|
|
17
17
|
asyncThunkCreator,
|
|
18
18
|
buildCreateSlice,
|
|
@@ -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-C7Y6LSBM.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-LG32A6DJ.js");
|
|
782
782
|
return shareResourceAction(config, thunkApi);
|
|
783
783
|
}
|
|
784
784
|
),
|
|
@@ -199,7 +199,7 @@ async function readDocFunc(args, thunkApi) {
|
|
|
199
199
|
throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
|
|
200
200
|
}
|
|
201
201
|
try {
|
|
202
|
-
const { readAction } = await import("./read-
|
|
202
|
+
const { readAction } = await import("./read-C7Y6LSBM.js");
|
|
203
203
|
const pageData = await readAction({ dbKey: id }, thunkApi);
|
|
204
204
|
if (!pageData) {
|
|
205
205
|
throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
prepareAndPersistMessage,
|
|
4
4
|
uiAskChoiceFunc,
|
|
5
5
|
uiAskChoiceFunctionSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UFL6WHHJ.js";
|
|
7
7
|
import {
|
|
8
8
|
require_date_fns
|
|
9
9
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
removeCachedEntity,
|
|
25
25
|
upsertSSREntity,
|
|
26
26
|
write
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-G2BZ43DV.js";
|
|
28
28
|
import {
|
|
29
29
|
createAgentKey,
|
|
30
30
|
createDialogKey,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
} from "./chunk-U6VC4MU4.js";
|
|
49
49
|
import {
|
|
50
50
|
extractCustomId
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-TOW4E763.js";
|
|
52
52
|
import {
|
|
53
53
|
isRecord
|
|
54
54
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-WX3ZOSTL.js";
|
|
8
8
|
import {
|
|
9
9
|
buildLocalAgentLookupKeys
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-R3JSTDQO.js";
|
|
11
11
|
import {
|
|
12
12
|
LOCAL_CODEX_AGENT_ID,
|
|
13
13
|
LOCAL_CODEX_AGENT_KEY,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
} from "./chunk-VHBWHNVT.js";
|
|
17
17
|
import {
|
|
18
18
|
inferCaptureIntent
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-W2LZV5GE.js";
|
|
20
20
|
import {
|
|
21
21
|
inlineImageUrlsForCustomProvider,
|
|
22
22
|
prepareTools
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-32ZM6HVI.js";
|
|
24
24
|
import {
|
|
25
25
|
getAntigravityUserAgent,
|
|
26
26
|
isAntigravityOAuthAgent,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
rememberMemoryFunctionSchema,
|
|
36
36
|
resolveAgentRequiredPackIds,
|
|
37
37
|
setTodoListFunc
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-WMB7GVPN.js";
|
|
39
39
|
import {
|
|
40
40
|
createDrainExhaustedResponse,
|
|
41
41
|
isCoreDrainingBody,
|
|
@@ -49,13 +49,13 @@ import {
|
|
|
49
49
|
applyTokenUsageToDayStats,
|
|
50
50
|
prepareTokenUsageData,
|
|
51
51
|
runKeyed
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-UFL6WHHJ.js";
|
|
53
53
|
import {
|
|
54
54
|
BUILTIN_TITLE_LLM_CONFIG
|
|
55
55
|
} from "./chunk-XOIF2TNF.js";
|
|
56
56
|
import {
|
|
57
57
|
fetchServerSyncedCredential
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-RJBTU7AS.js";
|
|
59
59
|
import {
|
|
60
60
|
require_date_fns
|
|
61
61
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
readOpenAiCompatibleSseCompletion,
|
|
90
90
|
resolveAgentNextAvailableAt,
|
|
91
91
|
resolveOpenAiCompatibleProviderConfig
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-KEF5OBOZ.js";
|
|
93
93
|
import {
|
|
94
94
|
buildPlatformChatCompletionRequest,
|
|
95
95
|
canUsePlatformChatProvider,
|
|
@@ -106,7 +106,7 @@ import {
|
|
|
106
106
|
import {
|
|
107
107
|
resolveHistoricalToolContentCap,
|
|
108
108
|
summarizeToolArguments
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-Z54ZAZZC.js";
|
|
110
110
|
import {
|
|
111
111
|
convertMessagesToResponsesInput,
|
|
112
112
|
toResponsesTools
|
|
@@ -118,14 +118,14 @@ import {
|
|
|
118
118
|
buildNoloWorkspaceOpenAiTools,
|
|
119
119
|
parseNoloWorkspaceToolArguments,
|
|
120
120
|
resolveRuntimeToolSurfaceForAgent
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-UEOPA6MV.js";
|
|
122
122
|
import {
|
|
123
123
|
buildDialogFallbackTitleFromUserInput,
|
|
124
124
|
normalizeDialogTitle
|
|
125
125
|
} from "./chunk-2MBTWINN.js";
|
|
126
126
|
import {
|
|
127
127
|
resolveBuiltinPlatformAgentConfig
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-HYSJHRWD.js";
|
|
129
129
|
import {
|
|
130
130
|
clipCompactText
|
|
131
131
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -202,7 +202,7 @@ import {
|
|
|
202
202
|
} from "./chunk-QSJ3HFEF.js";
|
|
203
203
|
import {
|
|
204
204
|
isSystemBuiltinTrustedAgentKey
|
|
205
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-L6RBX4L4.js";
|
|
206
206
|
import {
|
|
207
207
|
isRecord
|
|
208
208
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -4,6 +4,11 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
getModelAbility
|
|
6
6
|
} from "./chunk-L3QFIBZG.js";
|
|
7
|
+
import {
|
|
8
|
+
isOwnedAgentKey,
|
|
9
|
+
ownedAgentKey,
|
|
10
|
+
publicAgentKey
|
|
11
|
+
} from "./chunk-TOW4E763.js";
|
|
7
12
|
|
|
8
13
|
// packages/ai/agent/safeAgentSummary.ts
|
|
9
14
|
function parseTimestamp(val) {
|
|
@@ -49,9 +54,9 @@ function resolveFavoriteStatus(record, options) {
|
|
|
49
54
|
if (typeof record?.publicKey === "string" && record.publicKey) candidateKeys.push(record.publicKey);
|
|
50
55
|
if (typeof record?.id === "string" && record.id) {
|
|
51
56
|
candidateKeys.push(record.id);
|
|
52
|
-
candidateKeys.push(
|
|
57
|
+
candidateKeys.push(publicAgentKey(record.id));
|
|
53
58
|
if (options?.userId) {
|
|
54
|
-
candidateKeys.push(
|
|
59
|
+
candidateKeys.push(ownedAgentKey(options.userId, record.id));
|
|
55
60
|
}
|
|
56
61
|
}
|
|
57
62
|
let matched = false;
|
|
@@ -90,7 +95,7 @@ function toSafeAgentSummary(record, options) {
|
|
|
90
95
|
if (typeof record?.publicKey === "string" && record.publicKey && !publicRecordDenied) {
|
|
91
96
|
publicKey = record.publicKey;
|
|
92
97
|
} else if (publicRecordConfirmed && id) {
|
|
93
|
-
publicKey =
|
|
98
|
+
publicKey = publicAgentKey(id);
|
|
94
99
|
}
|
|
95
100
|
const name = typeof record?.name === "string" && record.name ? record.name : "(unnamed)";
|
|
96
101
|
const handle = typeof record?.handle === "string" && record.handle ? record.handle : null;
|
|
@@ -109,13 +114,15 @@ function toSafeAgentSummary(record, options) {
|
|
|
109
114
|
const nextAvailableAt = typeof record?.nextAvailableAt === "number" && Number.isFinite(record.nextAvailableAt) ? record.nextAvailableAt : void 0;
|
|
110
115
|
const currentUserId = options?.userId;
|
|
111
116
|
const isOwnedByRecord = Boolean(currentUserId) && (typeof record?.userId === "string" && record.userId === currentUserId || typeof record?.ownerId === "string" && record.ownerId === currentUserId);
|
|
112
|
-
const
|
|
113
|
-
|
|
117
|
+
const ownedKey = currentUserId ? [record?.dbKey, record?.privateKey].find(
|
|
118
|
+
(key) => isOwnedAgentKey(key, currentUserId)
|
|
119
|
+
) : void 0;
|
|
120
|
+
const isOwned = isOwnedByRecord || Boolean(ownedKey);
|
|
114
121
|
const isOAuth = isOAuthApiKeyRef(record?.apiKeyRef);
|
|
115
122
|
let agentKey;
|
|
116
|
-
if (
|
|
123
|
+
if (currentUserId) {
|
|
117
124
|
if (isOwned) {
|
|
118
|
-
agentKey =
|
|
125
|
+
agentKey = ownedKey ?? (id ? ownedAgentKey(currentUserId, id) : void 0);
|
|
119
126
|
} else if (publicKey) {
|
|
120
127
|
agentKey = publicKey;
|
|
121
128
|
}
|
|
@@ -6,21 +6,21 @@ import {
|
|
|
6
6
|
} from "./chunk-L3QFIBZG.js";
|
|
7
7
|
import {
|
|
8
8
|
addContentAction
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JSB4N6NU.js";
|
|
10
10
|
import {
|
|
11
11
|
upload
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-G2BZ43DV.js";
|
|
13
13
|
import {
|
|
14
14
|
PUBLIC_DEEPSEEK_V4_FLASH_AGENT_KEY,
|
|
15
15
|
PUBLIC_KIMI_K26_IMAGE_AGENT_KEY,
|
|
16
16
|
builtinRuntimeFallbackEntries
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-L6RBX4L4.js";
|
|
18
18
|
import {
|
|
19
19
|
getRuntimeServerContext
|
|
20
20
|
} from "./chunk-XMLRJUU5.js";
|
|
21
21
|
import {
|
|
22
22
|
publicAgentKey
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TOW4E763.js";
|
|
24
24
|
import {
|
|
25
25
|
API_ENDPOINTS
|
|
26
26
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
parseToolArgumentsJson,
|
|
10
10
|
resolveHistoricalToolContentCap
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-Z54ZAZZC.js";
|
|
12
12
|
import {
|
|
13
13
|
createThinkParserState,
|
|
14
14
|
createToolCallAccumulator,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
buildNoloWorkspaceCommandArgs,
|
|
34
34
|
noloStringArg,
|
|
35
35
|
parseNoloWorkspaceToolArguments
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-UEOPA6MV.js";
|
|
37
37
|
import {
|
|
38
38
|
buildDialogFallbackTitleFromUserInput
|
|
39
39
|
} from "./chunk-2MBTWINN.js";
|
|
@@ -446,17 +446,6 @@ public class NoloCredNative {
|
|
|
446
446
|
}
|
|
447
447
|
`.trim();
|
|
448
448
|
|
|
449
|
-
// packages/agent-runtime/agentRecordKeys.ts
|
|
450
|
-
function buildAgentRuntimeAgentLookupKeys(args) {
|
|
451
|
-
if (/^agent(-pub)?-/.test(args.agentRef)) {
|
|
452
|
-
return [args.agentRef];
|
|
453
|
-
}
|
|
454
|
-
return [`agent-${args.userId}-${args.agentRef}`, `agent-pub-${args.agentRef}`];
|
|
455
|
-
}
|
|
456
|
-
function shouldFetchAgentRuntimeRecordRemotely(dbKey) {
|
|
457
|
-
return /^agent(-pub)?-/.test(dbKey);
|
|
458
|
-
}
|
|
459
|
-
|
|
460
449
|
// packages/agent-runtime/dialogMessageRecord.ts
|
|
461
450
|
function dialogMessageRecordToAgentRuntimeMessage(record) {
|
|
462
451
|
if (!record || typeof record !== "object") return null;
|
|
@@ -4154,8 +4143,6 @@ export {
|
|
|
4154
4143
|
readOpenAiCompatibleSseCompletion,
|
|
4155
4144
|
executeOpenAiCompatibleChatCompletion,
|
|
4156
4145
|
resolveOpenAiCompatibleProviderConfig,
|
|
4157
|
-
buildAgentRuntimeAgentLookupKeys,
|
|
4158
|
-
shouldFetchAgentRuntimeRecordRemotely,
|
|
4159
4146
|
dialogMessageRecordToAgentRuntimeMessage,
|
|
4160
4147
|
buildAgentRuntimeDialogWritePlan,
|
|
4161
4148
|
shouldCacheHybridRemoteRecord,
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listUserRecordsFromServers,
|
|
3
3
|
readLiveDbRecordAfterTombstoneMerge
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DF7SMWEV.js";
|
|
5
5
|
import {
|
|
6
6
|
agentRecordHasConfiguredCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QC6ZWDSV.js";
|
|
8
8
|
import {
|
|
9
9
|
toSafeAgentSummary
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HRJEPMZY.js";
|
|
11
|
+
import {
|
|
12
|
+
PUBLIC_AGENT_KEY_PREFIX,
|
|
13
|
+
isOwnedAgentKey,
|
|
14
|
+
ownedAgentKey,
|
|
15
|
+
parseOwnedAgentId,
|
|
16
|
+
publicAgentKey
|
|
17
|
+
} from "./chunk-TOW4E763.js";
|
|
11
18
|
|
|
12
19
|
// packages/cli/agentListHelpers.ts
|
|
13
20
|
function parseAgentRecordId(privateKey, explicitId) {
|
|
@@ -17,15 +24,15 @@ function parseAgentRecordId(privateKey, explicitId) {
|
|
|
17
24
|
}
|
|
18
25
|
function buildCompanionKeys(rawId, userId) {
|
|
19
26
|
return {
|
|
20
|
-
privateKey:
|
|
21
|
-
publicKey:
|
|
27
|
+
privateKey: ownedAgentKey(userId, rawId),
|
|
28
|
+
publicKey: publicAgentKey(rawId)
|
|
22
29
|
};
|
|
23
30
|
}
|
|
24
31
|
function normalizeListedAgent(record) {
|
|
25
32
|
const privateKey = typeof record?.dbKey === "string" ? record.dbKey : "";
|
|
26
33
|
const explicitId = typeof record?.id === "string" && record.id ? record.id : void 0;
|
|
27
34
|
const ownerUserId = typeof record?.userId === "string" ? record.userId : "";
|
|
28
|
-
const rawId = explicitId || (ownerUserId
|
|
35
|
+
const rawId = explicitId || (ownerUserId ? parseOwnedAgentId(privateKey, ownerUserId) : null) || parseAgentRecordId(privateKey, explicitId);
|
|
29
36
|
if (!privateKey || !rawId || !ownerUserId) return null;
|
|
30
37
|
const keys = buildCompanionKeys(rawId, ownerUserId);
|
|
31
38
|
const credentialConfigured = agentRecordHasConfiguredCredential(record);
|
|
@@ -83,11 +90,11 @@ async function listLocalCachedAgents(args) {
|
|
|
83
90
|
const publicKeys = /* @__PURE__ */ new Set();
|
|
84
91
|
for await (const [key, value] of args.db.iterator({ gte: "", lte: "\uFFFF" })) {
|
|
85
92
|
if (typeof key !== "string" || !value || typeof value !== "object") continue;
|
|
86
|
-
if (key
|
|
93
|
+
if (isOwnedAgentKey(key, args.userId)) {
|
|
87
94
|
privateRecords.set(key, { ...value, dbKey: key });
|
|
88
95
|
continue;
|
|
89
96
|
}
|
|
90
|
-
if (key.startsWith(
|
|
97
|
+
if (key.startsWith(PUBLIC_AGENT_KEY_PREFIX)) {
|
|
91
98
|
publicKeys.add(key);
|
|
92
99
|
}
|
|
93
100
|
}
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-32ZM6HVI.js";
|
|
9
9
|
import {
|
|
10
10
|
performFetchRequest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FVOSIYXM.js";
|
|
12
12
|
import {
|
|
13
13
|
createSSEParser,
|
|
14
14
|
createToolRunId,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
toolRunSetPending,
|
|
20
20
|
toolRunStarted,
|
|
21
21
|
toolRunSucceeded
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WMB7GVPN.js";
|
|
23
23
|
import {
|
|
24
24
|
getPublicImageAgentMode
|
|
25
25
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
messageStreaming,
|
|
30
30
|
selectCurrentSpaceId,
|
|
31
31
|
updateToolMessage
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-UFL6WHHJ.js";
|
|
33
33
|
import {
|
|
34
34
|
streamAgentChatTurn
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RJBTU7AS.js";
|
|
36
36
|
import {
|
|
37
37
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-Z54ZAZZC.js";
|
|
39
39
|
import {
|
|
40
40
|
accumulateToolCallDelta,
|
|
41
41
|
createThinkParserState,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./chunk-N7J63Q6C.js";
|
|
48
48
|
import {
|
|
49
49
|
getModelInfo
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-HYSJHRWD.js";
|
|
51
51
|
import {
|
|
52
52
|
getApiEndpoint
|
|
53
53
|
} from "./chunk-GT3GG2H7.js";
|
|
@@ -61,10 +61,10 @@ import {
|
|
|
61
61
|
} from "./chunk-HNMXYYJR.js";
|
|
62
62
|
import {
|
|
63
63
|
selectCurrentServer
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-R7LOFGRE.js";
|
|
65
65
|
import {
|
|
66
66
|
write
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-G2BZ43DV.js";
|
|
68
68
|
import {
|
|
69
69
|
createDialogMessageKeyAndId,
|
|
70
70
|
dialogMessageKey,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
} from "./chunk-3EUW3WEO.js";
|
|
83
83
|
import {
|
|
84
84
|
extractCustomId
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-TOW4E763.js";
|
|
86
86
|
import {
|
|
87
87
|
isRecord
|
|
88
88
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
parseAgentRunEvent,
|
|
20
20
|
t,
|
|
21
21
|
toolLabel
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-H5S4XUGI.js";
|
|
23
23
|
import {
|
|
24
24
|
getReadableCliDb
|
|
25
25
|
} from "./chunk-WFHXMLHZ.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
normalizeAgentHandle,
|
|
28
28
|
readDbRecord,
|
|
29
29
|
resolveAgentRecordFromHybridStore
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-QC6ZWDSV.js";
|
|
31
31
|
import {
|
|
32
32
|
NOLO_PROJECT_MANAGER_AGENT_KEY,
|
|
33
33
|
isLocalCliAgentKey
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunk-LTRXGFMS.js";
|
|
39
39
|
import {
|
|
40
40
|
formatAgentListCard
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-WMB7GVPN.js";
|
|
42
42
|
import {
|
|
43
43
|
isGatewayHttpStatus
|
|
44
44
|
} from "./chunk-RQSOAMPJ.js";
|
|
@@ -50,12 +50,12 @@ import {
|
|
|
50
50
|
chooseMemoryOwners,
|
|
51
51
|
loadMemoryCandidatesFromDb,
|
|
52
52
|
resolveAgentMemoryPolicy
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-GMJS5AYP.js";
|
|
54
54
|
import {
|
|
55
55
|
API_REPORTED_COST_MULTIPLIER,
|
|
56
56
|
normalizeUsage,
|
|
57
57
|
parseUiAskChoiceContent
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-UFL6WHHJ.js";
|
|
59
59
|
import {
|
|
60
60
|
buildSkillDiscoveryContextLayer
|
|
61
61
|
} from "./chunk-ZVZMT3EA.js";
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
LOCAL_TURN_ABORTED_CODE,
|
|
72
72
|
readActionGate,
|
|
73
73
|
readCommandActionGatePayload
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-Z54ZAZZC.js";
|
|
75
75
|
import {
|
|
76
76
|
createThinkParserState,
|
|
77
77
|
flushThinkParser,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
import {
|
|
84
84
|
DEFAULT_CONTEXT_WINDOW,
|
|
85
85
|
getModelContextWindow
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-HYSJHRWD.js";
|
|
87
87
|
import {
|
|
88
88
|
clipCompactText
|
|
89
89
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -141,7 +141,7 @@ import {
|
|
|
141
141
|
BUILTIN_NOLO_AGENT_KEY,
|
|
142
142
|
PUBLIC_DEEPSEEK_V4_FLASH_AGENT_KEY,
|
|
143
143
|
PUBLIC_KIMI_K26_IMAGE_AGENT_KEY
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-L6RBX4L4.js";
|
|
145
145
|
import {
|
|
146
146
|
asTrimmedString
|
|
147
147
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -3483,7 +3483,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
|
|
|
3483
3483
|
// packages/cli/client/agentRun.ts
|
|
3484
3484
|
import { ulid } from "ulid";
|
|
3485
3485
|
async function loadRunLocalAgentTurn() {
|
|
3486
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
3486
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-PC5RRRPT.js");
|
|
3487
3487
|
return runLocalAgentTurn;
|
|
3488
3488
|
}
|
|
3489
3489
|
async function resolveCurrentMachineId(options) {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
toTimestampMs,
|
|
14
14
|
upsert,
|
|
15
15
|
write
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-G2BZ43DV.js";
|
|
17
17
|
import {
|
|
18
18
|
createUserKey,
|
|
19
19
|
createUserPreferenceKey,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk-QSJ3HFEF.js";
|
|
25
25
|
import {
|
|
26
26
|
BUILTIN_NOLO_AGENT_KEY
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-L6RBX4L4.js";
|
|
28
28
|
import {
|
|
29
29
|
asyncThunkCreator,
|
|
30
30
|
buildCreateSlice,
|