nolo-cli 0.13.0 → 0.14.0-alpha.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-4F7VZR5U.js → _executeModel-SQVV6CXR.js} +27 -28
- package/{action-OTOWUMPW.js → action-Q5CBVUV5.js} +7 -7
- package/{addContentAction-JGBUVR7K.js → addContentAction-ZCJJ3XOL.js} +6 -6
- package/{addDialogAgentAction-V6CL2UCF.js → addDialogAgentAction-ROUQPBVI.js} +5 -5
- package/{agentDeleteCommand-MMRSG6AB.js → agentDeleteCommand-TSY5OSG7.js} +18 -18
- package/{agentEmailCommands-VQENDYL5.js → agentEmailCommands-YX57M3P7.js} +34 -35
- package/{agentListCommands-2PZHIQ3I.js → agentListCommands-S65H4AVT.js} +19 -19
- package/{agentMachineCommands-Q3I3VDWS.js → agentMachineCommands-ELNLSTE4.js} +18 -18
- package/{agentRecordCommands-RY7CSPPL.js → agentRecordCommands-HVCGO2XK.js} +32 -33
- package/{agentRunCommand-U76NZ2G6.js → agentRunCommand-EOFDKKFI.js} +33 -35
- package/{agentRuntimeLocal-QDJCBXM2.js → agentRuntimeLocal-F4FWS5Z4.js} +16 -16
- package/{agentSlice-6JAJOU3X.js → agentSlice-R3WAV3VG.js} +7 -7
- package/{authCommand-DMW336GT.js → authCommand-O7SL3WW5.js} +4 -4
- package/{chunk-2BVGERJ2.js → chunk-2KNEWIDU.js} +106 -11
- package/{chunk-WVTBAALN.js → chunk-2MW6QFIQ.js} +2 -2
- package/{chunk-UWNSWEEC.js → chunk-3DKS6UER.js} +71 -29
- package/{chunk-3MI5LDDU.js → chunk-4GXQ74DF.js} +2 -2
- package/{chunk-4LG74DRG.js → chunk-4IJYA27C.js} +1 -1
- package/{chunk-TA7VKOHU.js → chunk-7H3O7ZA2.js} +6 -3
- package/{chunk-YUMYYXPI.js → chunk-7ULBTAQK.js} +16 -16
- package/{chunk-KGI44L4E.js → chunk-ACPNKI3V.js} +7 -7
- package/{chunk-5V524MHX.js → chunk-AEMXZOAK.js} +14 -13
- package/{chunk-OPM2DE2J.js → chunk-AGUNTRZV.js} +4 -4
- package/{chunk-Y5P3ZRGC.js → chunk-BHKOPLWJ.js} +6 -6
- package/{chunk-IVAOVLM7.js → chunk-BOJVWKNA.js} +1 -1
- package/{chunk-MG6BVV3T.js → chunk-BRODTPXY.js} +170 -98
- package/{chunk-C3BFP57W.js → chunk-CANREHJB.js} +1 -1
- package/{chunk-DPFWKRHG.js → chunk-CFX7LP6W.js} +2 -2
- package/{chunk-QJSTNKJY.js → chunk-DSCG2DY5.js} +1 -1
- package/{chunk-JU7J7EAV.js → chunk-EC2EU2F4.js} +3 -3
- package/{chunk-VBSWHE5W.js → chunk-FLY6L3KA.js} +1 -1
- package/{chunk-MZHSAPZP.js → chunk-HXPBV44X.js} +33 -29
- package/{chunk-TQYYGE6G.js → chunk-IVOFAQ5R.js} +3 -3
- package/{chunk-WPHL6ALY.js → chunk-JTINRTBT.js} +1 -1
- package/{chunk-QAJWQTLB.js → chunk-K4S6CYKK.js} +39 -27
- package/{chunk-XHQWJUW4.js → chunk-NJVPXLRY.js} +1 -1
- package/{chunk-BTYBYAMP.js → chunk-O2S35KSZ.js} +2 -2
- package/{chunk-H5Y2H2N6.js → chunk-OIMX7MM4.js} +1 -1
- package/{chunk-5S4SWV5G.js → chunk-PB2DHBEQ.js} +1 -1
- package/{chunk-QUHUVG6Y.js → chunk-QRBZS6G4.js} +2 -2
- package/{chunk-RWO5DGXI.js → chunk-QV25QXE2.js} +3 -3
- package/{chunk-JFANOO7I.js → chunk-SJQVOEIV.js} +3 -3
- package/{chunk-CGDQDXKZ.js → chunk-TSJBYH7X.js} +1 -1
- package/{chunk-LUKQQJFL.js → chunk-UW3WOIWJ.js} +1 -1
- package/{chunk-VKG4HXYV.js → chunk-V6PGKRZC.js} +9 -9
- package/{chunk-ARSC56DC.js → chunk-XZY4TCZO.js} +1 -1
- package/{chunk-O4FOPRCP.js → chunk-YX4H7EP4.js} +1 -1
- package/{chunk-FSUZIGIG.js → chunk-ZEYSZ5WG.js} +76 -62
- package/{createAgentAutomationAction-4NY4JLOK.js → createAgentAutomationAction-LL2UAZL3.js} +13 -13
- package/{createDialogAction-I5WUWFJ6.js → createDialogAction-MSMUS4NO.js} +14 -15
- package/{createPageAction-HFTIQ7TW.js → createPageAction-MGN4CQWL.js} +13 -13
- package/{dbSlice-J4PUZ6Y5.js → dbSlice-35VY6LYX.js} +5 -5
- package/{deleteFile-M7UNIUOO.js → deleteFile-WPWVZE4B.js} +3 -3
- package/{dialogCommands-SVXRJFZS.js → dialogCommands-7EKKHEGO.js} +19 -19
- package/{dialogSlice-35LA3ZRG.js → dialogSlice-ZRYCGVVH.js} +13 -13
- package/{docCreateCommands-Z7RIAYKQ.js → docCreateCommands-YCU2BINI.js} +18 -18
- package/{docDeleteCommands-NEYHUVZF.js → docDeleteCommands-CEB54GNO.js} +19 -19
- package/{docReadCommands-I4US2SDE.js → docReadCommands-Z2OZTAIA.js} +18 -18
- package/{docStore-3CP2IO6M.js → docStore-AYLR7HES.js} +14 -14
- package/{docUpdateCommands-UU5HQBRP.js → docUpdateCommands-VU2TNBPM.js} +18 -18
- package/fetchMessages-KTNM7QAR.js +1 -1
- package/getPricing-UGDJHI7M.js +1 -1
- package/{handleSendMessageAction-FWTLQGOZ.js → handleSendMessageAction-D4UALBU5.js} +13 -13
- package/index.js +42 -42
- package/{machineCommands-NGE4ZARV.js → machineCommands-65QZPPET.js} +33 -34
- package/{machineWsRunDispatch-FISQUBI2.js → machineWsRunDispatch-35QVFHKA.js} +31 -32
- package/package.json +1 -1
- package/{read-2MIMRBZ2.js → read-SIWMJRHC.js} +3 -3
- package/{readDocTool-QHVGQHUJ.js → readDocTool-TCYJY4PP.js} +1 -1
- package/{readlineWorkspace-JK6P56TT.js → readlineWorkspace-U4PN6GH2.js} +38 -40
- package/{removeDialogAgentAction-XUZYQBV4.js → removeDialogAgentAction-DPSDJL5F.js} +7 -7
- package/{runAgentClientLoop-FP2K33ZO.js → runAgentClientLoop-HND2XKNI.js} +24 -25
- package/{setDialogExtraReferencesAction-PTAIFKGM.js → setDialogExtraReferencesAction-6UPTOPJA.js} +5 -5
- package/{setPrimaryDialogAgentAction-HRFTDB44.js → setPrimaryDialogAgentAction-PFDHN53I.js} +7 -7
- package/{settingSlice-VGRJUSE5.js → settingSlice-6M2BKFW5.js} +6 -6
- package/{spaceCommands-GN73BCOB.js → spaceCommands-NP75DOJW.js} +18 -18
- package/{spaceSlice-WTFNKOVA.js → spaceSlice-J44RNCGS.js} +13 -13
- package/{streamAgentChatTurn-HBAQQVNK.js → streamAgentChatTurn-MNBTNJDU.js} +44 -41
- package/{tools-TPQYTLQZ.js → tools-R2M77NZJ.js} +18 -19
- package/{tuiSummaryLlmCaller-XDC7WG4K.js → tuiSummaryLlmCaller-2D65LKWM.js} +3 -3
- package/{updateDialogTitleAction-AWXNPUQJ.js → updateDialogTitleAction-ERVV47T7.js} +13 -13
- package/chunk-HNW7IJSK.js +0 -71
- package/chunk-XENYHRUE.js +0 -104
- package/understanding-3CUQQ6SV.js +0 -271
- package/{chunk-PDL2AV3E.js → chunk-5CS33IBL.js} +3 -3
- package/{chunk-TSUJOM6N.js → chunk-DVRHHFEA.js} +3 -3
- package/{chunk-TOILAPLH.js → chunk-EHLHSX7R.js} +3 -3
- package/{chunk-TYPHUVK5.js → chunk-KTFJUPDW.js} +3 -3
- package/{chunk-NCGFB7NN.js → chunk-OIQPORYI.js} +3 -3
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
readPageFunc,
|
|
20
20
|
readPageFunctionSchema,
|
|
21
21
|
slateToSimplifiedMarkdown
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-BOJVWKNA.js";
|
|
23
23
|
import {
|
|
24
24
|
markdownToSlate
|
|
25
25
|
} from "./chunk-3LY4F7SV.js";
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
} from "./chunk-VF4K2QE6.js";
|
|
35
35
|
import {
|
|
36
36
|
createDocState
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-IVOFAQ5R.js";
|
|
38
38
|
import {
|
|
39
39
|
createDialogAction
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-2KNEWIDU.js";
|
|
41
41
|
import {
|
|
42
42
|
buildSkillDocMarkdown,
|
|
43
43
|
normalizeSkillBudgetTier,
|
|
@@ -76,13 +76,13 @@ import {
|
|
|
76
76
|
updateContentCategory,
|
|
77
77
|
updateContentTitle,
|
|
78
78
|
updateStep
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-ZEYSZ5WG.js";
|
|
80
80
|
import {
|
|
81
81
|
createAgent,
|
|
82
82
|
runLlm,
|
|
83
83
|
streamAgentChatTurn,
|
|
84
84
|
updateAgent
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-BHKOPLWJ.js";
|
|
86
86
|
import {
|
|
87
87
|
NOLO_WORKSPACE_TOOL_NAMES,
|
|
88
88
|
buildNoloSubjectRefQueryTarget,
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
} from "./chunk-B4KT7RN2.js";
|
|
102
102
|
import {
|
|
103
103
|
buildDatabaseFileContentUrl
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-SJQVOEIV.js";
|
|
105
105
|
import {
|
|
106
106
|
DEFAULT_MODEL
|
|
107
107
|
} from "./chunk-OGGHETUE.js";
|
|
@@ -122,22 +122,22 @@ import {
|
|
|
122
122
|
selectCurrentDialogKey,
|
|
123
123
|
selectPendingRawDataByPageKey
|
|
124
124
|
} from "./chunk-3ASDTTEI.js";
|
|
125
|
-
import {
|
|
126
|
-
toErrorMessage
|
|
127
|
-
} from "./chunk-HNMXYYJR.js";
|
|
128
125
|
import {
|
|
129
126
|
compactWhitespace
|
|
130
127
|
} from "./chunk-DWLEOOGR.js";
|
|
128
|
+
import {
|
|
129
|
+
toErrorMessage
|
|
130
|
+
} from "./chunk-HNMXYYJR.js";
|
|
131
131
|
import {
|
|
132
132
|
shareResourceAction
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-CFX7LP6W.js";
|
|
134
134
|
import {
|
|
135
135
|
AGENT_UPDATE_FIELD_NAMES,
|
|
136
136
|
normalizeAgentUpdateFieldList,
|
|
137
137
|
selectAutoApproveSelfUpdateFields,
|
|
138
138
|
selectCurrentServer,
|
|
139
139
|
selectSyncServers
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-EC2EU2F4.js";
|
|
141
141
|
import {
|
|
142
142
|
asRecordOrEmpty
|
|
143
143
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
addContentAction,
|
|
146
146
|
createSpaceKey,
|
|
147
147
|
normalizeSpaceId
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-2MW6QFIQ.js";
|
|
149
149
|
import {
|
|
150
150
|
patch,
|
|
151
151
|
read,
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
readAndWaitAction,
|
|
154
154
|
toTimestampMs,
|
|
155
155
|
write
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-V6PGKRZC.js";
|
|
157
157
|
import {
|
|
158
158
|
SEPARATOR,
|
|
159
159
|
createAgentKey,
|
|
@@ -178,7 +178,7 @@ import {
|
|
|
178
178
|
} from "./chunk-QSJ3HFEF.js";
|
|
179
179
|
import {
|
|
180
180
|
readAction
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-NJVPXLRY.js";
|
|
182
182
|
import {
|
|
183
183
|
createAsyncThunk,
|
|
184
184
|
getRuntimeServerContext,
|
|
@@ -186,16 +186,16 @@ import {
|
|
|
186
186
|
selectIdentityToken,
|
|
187
187
|
selectIdentityUserId,
|
|
188
188
|
selectRuntimeSnapshot
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-DVRHHFEA.js";
|
|
190
190
|
import {
|
|
191
191
|
isAbortError
|
|
192
192
|
} from "./chunk-OOSFSFMA.js";
|
|
193
|
-
import {
|
|
194
|
-
isRecord
|
|
195
|
-
} from "./chunk-KUG52IAP.js";
|
|
196
193
|
import {
|
|
197
194
|
asTrimmedString
|
|
198
195
|
} from "./chunk-3EUW3WEO.js";
|
|
196
|
+
import {
|
|
197
|
+
isRecord
|
|
198
|
+
} from "./chunk-KUG52IAP.js";
|
|
199
199
|
import {
|
|
200
200
|
API_ENDPOINTS
|
|
201
201
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -14104,7 +14104,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
14104
14104
|
const deletedDialogIds = [];
|
|
14105
14105
|
const deletedDialogKeys = [];
|
|
14106
14106
|
const failures = [];
|
|
14107
|
-
const { deleteDialog } = await import("./dialogSlice-
|
|
14107
|
+
const { deleteDialog } = await import("./dialogSlice-ZRYCGVVH.js");
|
|
14108
14108
|
for (const target of targets) {
|
|
14109
14109
|
try {
|
|
14110
14110
|
await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
|
|
@@ -14368,7 +14368,7 @@ var readSkillDocFunctionSchema = {
|
|
|
14368
14368
|
}
|
|
14369
14369
|
};
|
|
14370
14370
|
async function readSkillDocFunc(args, thunkApi) {
|
|
14371
|
-
const { buildReadDocResult } = await import("./readDocTool-
|
|
14371
|
+
const { buildReadDocResult } = await import("./readDocTool-TCYJY4PP.js");
|
|
14372
14372
|
const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
|
|
14373
14373
|
if (typeof id !== "string" || !id.trim()) {
|
|
14374
14374
|
throw new Error("readSkillDoc requires id or doc.");
|
|
@@ -19756,7 +19756,7 @@ var selectUserIdFromState = (state) => typeof state?.auth?.currentUser?.userId =
|
|
|
19756
19756
|
var selectCurrentServerFromState = (state) => typeof state?.settings?.currentServer === "string" ? state.settings.currentServer : null;
|
|
19757
19757
|
async function addImageContentToSpace(input) {
|
|
19758
19758
|
const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
|
|
19759
|
-
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-
|
|
19759
|
+
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-ZCJJ3XOL.js")).addContentAction;
|
|
19760
19760
|
await addContentAction2(
|
|
19761
19761
|
{
|
|
19762
19762
|
spaceId: input.spaceId,
|
|
@@ -20498,19 +20498,20 @@ var remotionRenderVideoFunc = async (args, thunkApi) => {
|
|
|
20498
20498
|
};
|
|
20499
20499
|
};
|
|
20500
20500
|
|
|
20501
|
-
// packages/ai/tools/
|
|
20501
|
+
// packages/ai/tools/rememberMemoryToolSchema.ts
|
|
20502
20502
|
var rememberMemoryFunctionSchema = {
|
|
20503
20503
|
name: "rememberMemory",
|
|
20504
20504
|
description: [
|
|
20505
|
-
"\
|
|
20506
|
-
"\u9ED8\u8BA4\
|
|
20505
|
+
"\u628A\u503C\u5F97\u957F\u671F\u8BB0\u4F4F\u7684\u7528\u6237\u504F\u597D\u3001\u7EA0\u6B63\u3001\u51B3\u7B56\u4E60\u60EF\u6216\u5F53\u524D Space \u5171\u8BC6\u5199\u6210\u4E00\u6761 memory\u3002",
|
|
20506
|
+
"\u9ED8\u8BA4\u503E\u5411\u4E8E\u8BB0\uFF1A\u7528\u6237\u8BF4\u51FA\u300C\u8BB0\u4F4F/\u8BB0\u5F97/\u522B\u5FD8\u4E86/\u4EE5\u540E\u90FD/\u522B\u518D/\u6211\u559C\u6B22/\u6211\u4E0D\u559C\u6B22/\u4E0B\u6B21\u300D\u8FD9\u7C7B\u8BDD\u65F6\uFF0C\u9ED8\u8BA4\u5C31\u8C03\u7528\u672C\u5DE5\u5177\uFF0C\u4E0D\u8981\u53CD\u590D\u81EA\u95EE\u662F\u5426\u591F\u683C\u3002",
|
|
20507
|
+
"\u4ECD\u7136\u4E0D\u8981\u8BB0\uFF1A\u4E00\u6B21\u6027\u4EFB\u52A1\u7EC6\u8282\u3001\u5F53\u524D\u4EFB\u52A1\u8FDB\u5EA6\u3001\u5F88\u5FEB\u8FC7\u671F\u7684\u4E8B\u5B9E\u3002",
|
|
20507
20508
|
"\u53EA\u6709\u91CD\u590D\u51FA\u73B0\u7684\u53EF\u6267\u884C\u6D41\u7A0B/\u6392\u969C\u6B65\u9AA4\u624D\u4F20 kind=procedural\uFF1B\u4E00\u822C\u504F\u597D\u548C\u4E8B\u5B9E\u4FDD\u6301\u9ED8\u8BA4 episodic\u3002",
|
|
20508
20509
|
"scope \u6309\u5185\u5BB9\u6027\u8D28\u9009\uFF0C\u4E0D\u56FA\u5B9A\u4F18\u5148\u67D0\u4E00\u5C42\uFF1A",
|
|
20509
20510
|
" - Space \u534F\u4F5C\u7EA6\u5B9A/\u56E2\u961F\u89C4\u5219 \u2192 scope=space\uFF08\u5F53\u524D dialog \u7ED1\u5B9A space \u65F6\uFF09",
|
|
20510
20511
|
" - \u7528\u6237\u4E2A\u4EBA\u8EAB\u4EFD\u6216\u7EAF\u4E2A\u4EBA\u504F\u597D \u2192 scope=auto\uFF08\u9ED8\u8BA4\u8BB0\u5230\u7528\u6237\uFF09",
|
|
20511
20512
|
" - \u4E0E\u5F53\u524D Agent \u6302\u94A9\u7684\u6709\u6548\u505A\u6CD5 \u2192 scope=auto\uFF08runtime \u81EA\u52A8\u628A subject \u6807\u8BB0\u4E3A\u5F53\u524D Agent\uFF09",
|
|
20512
20513
|
" - \u5F53\u524D\u4EFB\u52A1\u7684\u4E34\u65F6\u8FDB\u5EA6 \u2192 \u4E0D\u8981\u8C03\u7528\uFF0C\u8D70\u5BF9\u8BDD\u4E0A\u4E0B\u6587",
|
|
20513
|
-
"\
|
|
20514
|
+
"\u5199\u6210\u4E00\u53E5\u7B80\u6D01\u3001\u672A\u6765\u4ECD\u53EF\u7406\u89E3\u7684\u8BDD\u3002\u9ED8\u8BA4\u9759\u9ED8\u6267\u884C\uFF0C\u4E0D\u7528\u5411\u7528\u6237\u6C47\u62A5\u5DF2\u8BB0\u4F4F\u3002"
|
|
20514
20515
|
].join("\n"),
|
|
20515
20516
|
parameters: {
|
|
20516
20517
|
type: "object",
|
|
@@ -20533,6 +20534,8 @@ var rememberMemoryFunctionSchema = {
|
|
|
20533
20534
|
required: ["content"]
|
|
20534
20535
|
}
|
|
20535
20536
|
};
|
|
20537
|
+
|
|
20538
|
+
// packages/ai/tools/rememberMemoryTool.ts
|
|
20536
20539
|
async function rememberMemoryFunc(args, thunkApi) {
|
|
20537
20540
|
const state = thunkApi.getState();
|
|
20538
20541
|
const spaceId = selectCurrentSpaceId(state) || void 0;
|
|
@@ -23241,7 +23244,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
23241
23244
|
if (!executionInput) {
|
|
23242
23245
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
23243
23246
|
}
|
|
23244
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
23247
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-R2M77NZJ.js");
|
|
23245
23248
|
const { executor } = findToolExecutor2(run.toolName);
|
|
23246
23249
|
toolRunStarted({
|
|
23247
23250
|
id: run.id,
|
|
@@ -23265,7 +23268,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
23265
23268
|
const latestState = thunkApi.getState();
|
|
23266
23269
|
const userId = latestState.auth?.currentUser?.userId;
|
|
23267
23270
|
if (userId) {
|
|
23268
|
-
const { fetchUserSpaceMemberships } = await import("./spaceSlice-
|
|
23271
|
+
const { fetchUserSpaceMemberships } = await import("./spaceSlice-J44RNCGS.js");
|
|
23269
23272
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
23270
23273
|
}
|
|
23271
23274
|
}
|
|
@@ -25668,7 +25671,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
25668
25671
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
25669
25672
|
};
|
|
25670
25673
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
25671
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
25674
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-AYLR7HES.js");
|
|
25672
25675
|
if (getDocState().pageKey === id) {
|
|
25673
25676
|
applyExternalDocUpdate({
|
|
25674
25677
|
slateData: finalSlateData,
|
|
@@ -25693,7 +25696,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
25693
25696
|
// packages/ai/tools/updateUserPreferenceProfileTool.ts
|
|
25694
25697
|
async function dispatchSetSettings(thunkApi, changes) {
|
|
25695
25698
|
const injectedSetSettings = thunkApi?.extra?.setSettings;
|
|
25696
|
-
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-
|
|
25699
|
+
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-6M2BKFW5.js")).setSettings;
|
|
25697
25700
|
await thunkApi.dispatch(setSettings(changes)).unwrap();
|
|
25698
25701
|
}
|
|
25699
25702
|
var updateUserPreferenceProfileFunctionSchema = {
|
|
@@ -27926,6 +27929,7 @@ export {
|
|
|
27926
27929
|
waitForAbortableDelay,
|
|
27927
27930
|
createSSEParser,
|
|
27928
27931
|
formatAgentListCard,
|
|
27932
|
+
rememberMemoryFunctionSchema,
|
|
27929
27933
|
TOOL_GROUP_META,
|
|
27930
27934
|
toolQueryFunctionSchema,
|
|
27931
27935
|
toolQueryFunc,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateContentTitle
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZEYSZ5WG.js";
|
|
4
4
|
import {
|
|
5
5
|
require_date_fns
|
|
6
6
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
patch,
|
|
15
15
|
readAndWait
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-V6PGKRZC.js";
|
|
17
17
|
import {
|
|
18
18
|
asOptionalTrimmedString
|
|
19
19
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -367,7 +367,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
async function createDocState(args, thunkApi) {
|
|
370
|
-
const { createPageAction } = await import("./createPageAction-
|
|
370
|
+
const { createPageAction } = await import("./createPageAction-MGN4CQWL.js");
|
|
371
371
|
return createPageAction(args, thunkApi);
|
|
372
372
|
}
|
|
373
373
|
function subscribe(listener) {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveMachineId
|
|
3
|
+
} from "./chunk-6HYVJV7B.js";
|
|
1
4
|
import {
|
|
2
5
|
buildLocalRunEnv,
|
|
3
6
|
isFullstackCodingAgentRef,
|
|
@@ -7,9 +10,6 @@ import {
|
|
|
7
10
|
resolveServerUrl,
|
|
8
11
|
writeUsage
|
|
9
12
|
} from "./chunk-3QAF2LTL.js";
|
|
10
|
-
import {
|
|
11
|
-
resolveMachineId
|
|
12
|
-
} from "./chunk-6HYVJV7B.js";
|
|
13
13
|
import {
|
|
14
14
|
agentRunCardLabels,
|
|
15
15
|
createCliCallAgentToolExecutor,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isBuiltinNoloAgentRef,
|
|
19
19
|
t,
|
|
20
20
|
toolLabel
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3DKS6UER.js";
|
|
22
22
|
import {
|
|
23
23
|
CliProviderQuotaError
|
|
24
24
|
} from "./chunk-CMKUBIGW.js";
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
readDbRecord,
|
|
30
30
|
resolveAgentRecordFromHybridStore
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-TSJBYH7X.js";
|
|
32
32
|
import {
|
|
33
33
|
normalizeAgentHandle
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FLY6L3KA.js";
|
|
35
35
|
import {
|
|
36
36
|
NOLO_PROJECT_MANAGER_AGENT_KEY,
|
|
37
37
|
isLocalCliAgentKey
|
|
@@ -48,14 +48,16 @@ import {
|
|
|
48
48
|
formatStatusRunCard,
|
|
49
49
|
formatStopRunCard,
|
|
50
50
|
isAgentRunTerminalStatus
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-HXPBV44X.js";
|
|
52
52
|
import {
|
|
53
53
|
isGatewayHttpStatus
|
|
54
54
|
} from "./chunk-RQSOAMPJ.js";
|
|
55
55
|
import {
|
|
56
56
|
buildMemorySubjectsForAgent,
|
|
57
|
+
chooseMemoryOwners,
|
|
58
|
+
loadMemoryCandidatesFromDb,
|
|
57
59
|
resolveAgentMemoryPolicy
|
|
58
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-2KNEWIDU.js";
|
|
59
61
|
import {
|
|
60
62
|
parseExternalSkillMarkdown,
|
|
61
63
|
parseSkillDocProtocol
|
|
@@ -64,30 +66,30 @@ import {
|
|
|
64
66
|
API_REPORTED_COST_MULTIPLIER,
|
|
65
67
|
normalizeUsage,
|
|
66
68
|
parseUiAskChoiceContent
|
|
67
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-ZEYSZ5WG.js";
|
|
68
70
|
import {
|
|
69
71
|
buildSkillDiscoveryContextBlock
|
|
70
72
|
} from "./chunk-AS3ZQ3O2.js";
|
|
71
73
|
import {
|
|
72
74
|
buildPlatformChatCompletionRequest,
|
|
73
75
|
parsePlatformChatCompletionData
|
|
74
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-PB2DHBEQ.js";
|
|
75
77
|
import {
|
|
76
78
|
resolveAgentRuntimeConfigFromRecord
|
|
77
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-OIQPORYI.js";
|
|
78
80
|
import {
|
|
79
81
|
LOCAL_AGENT_CONFIG_MISSING_CODE,
|
|
80
82
|
LOCAL_TURN_ABORTED_CODE,
|
|
81
83
|
readActionGate,
|
|
82
84
|
readCommandActionGatePayload
|
|
83
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-7H3O7ZA2.js";
|
|
84
86
|
import {
|
|
85
87
|
resolvePlatformChatCompletionsEndpoint
|
|
86
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-KTFJUPDW.js";
|
|
87
89
|
import {
|
|
88
90
|
DEFAULT_CONTEXT_WINDOW,
|
|
89
91
|
getModelContextWindow
|
|
90
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-SJQVOEIV.js";
|
|
91
93
|
import {
|
|
92
94
|
clipCompactText
|
|
93
95
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -98,6 +100,9 @@ import {
|
|
|
98
100
|
buildMemoryOverlayLayer,
|
|
99
101
|
buildMemoryUseGuidanceLayer
|
|
100
102
|
} from "./chunk-QLUFR47U.js";
|
|
103
|
+
import {
|
|
104
|
+
compactWhitespace
|
|
105
|
+
} from "./chunk-DWLEOOGR.js";
|
|
101
106
|
import {
|
|
102
107
|
createRunActivityTracker,
|
|
103
108
|
finalizeRunRecord,
|
|
@@ -109,16 +114,6 @@ import {
|
|
|
109
114
|
import {
|
|
110
115
|
getDefaultCliLocalRuntimeDb
|
|
111
116
|
} from "./chunk-H33743XH.js";
|
|
112
|
-
import {
|
|
113
|
-
touchMemoryItemsInDb
|
|
114
|
-
} from "./chunk-HNW7IJSK.js";
|
|
115
|
-
import {
|
|
116
|
-
chooseMemoryOwners,
|
|
117
|
-
loadMemoryCandidatesFromDb
|
|
118
|
-
} from "./chunk-XENYHRUE.js";
|
|
119
|
-
import {
|
|
120
|
-
compactWhitespace
|
|
121
|
-
} from "./chunk-DWLEOOGR.js";
|
|
122
117
|
import {
|
|
123
118
|
readPipeText,
|
|
124
119
|
spawnProcess
|
|
@@ -126,6 +121,9 @@ import {
|
|
|
126
121
|
import {
|
|
127
122
|
parsePositiveFiniteNumberOrFallback
|
|
128
123
|
} from "./chunk-Y5GCAMGP.js";
|
|
124
|
+
import {
|
|
125
|
+
createMemoryKey
|
|
126
|
+
} from "./chunk-O4BU24WZ.js";
|
|
129
127
|
import {
|
|
130
128
|
asTrimmedLowercaseString
|
|
131
129
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -133,7 +131,7 @@ import {
|
|
|
133
131
|
BUILTIN_NOLO_AGENT_KEY,
|
|
134
132
|
PUBLIC_DEEPSEEK_V4_FLASH_AGENT_KEY,
|
|
135
133
|
PUBLIC_KIMI_K26_IMAGE_AGENT_KEY
|
|
136
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-NJVPXLRY.js";
|
|
137
135
|
import {
|
|
138
136
|
asTrimmedString
|
|
139
137
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -3620,7 +3618,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
|
|
|
3620
3618
|
// packages/cli/client/agentRun.ts
|
|
3621
3619
|
import { ulid } from "ulid";
|
|
3622
3620
|
async function loadRunLocalAgentTurn() {
|
|
3623
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
3621
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-F4FWS5Z4.js");
|
|
3624
3622
|
return runLocalAgentTurn;
|
|
3625
3623
|
}
|
|
3626
3624
|
async function resolveCurrentMachineId(options) {
|
|
@@ -4057,7 +4055,7 @@ async function runLocalAgentTurnForCli(options, settings) {
|
|
|
4057
4055
|
} : void 0;
|
|
4058
4056
|
const currentDialogId = options.continueDialogId ?? ulid();
|
|
4059
4057
|
const runChildTurn = async (input) => {
|
|
4060
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
4058
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-F4FWS5Z4.js");
|
|
4061
4059
|
return runLocalAgentTurn(input);
|
|
4062
4060
|
};
|
|
4063
4061
|
const createFreshChildBaseAdapter = () => {
|
|
@@ -4521,6 +4519,20 @@ ${args.inspection.status.trim()}`] : [],
|
|
|
4521
4519
|
].join("\n");
|
|
4522
4520
|
}
|
|
4523
4521
|
|
|
4522
|
+
// packages/ai/memory/storeShared.ts
|
|
4523
|
+
var touchMemoryItemsInDb = async (db, items, now = (/* @__PURE__ */ new Date()).toISOString()) => {
|
|
4524
|
+
if (items.length === 0) return;
|
|
4525
|
+
const batch = db.batch();
|
|
4526
|
+
for (const item of items) {
|
|
4527
|
+
batch.put(createMemoryKey(item.ownerType, item.ownerId, item.id), {
|
|
4528
|
+
...item,
|
|
4529
|
+
lastActivatedAt: now,
|
|
4530
|
+
activationCount: (item.activationCount ?? 0) + 1
|
|
4531
|
+
});
|
|
4532
|
+
}
|
|
4533
|
+
await batch.write();
|
|
4534
|
+
};
|
|
4535
|
+
|
|
4524
4536
|
// packages/ai/memory/overlay.ts
|
|
4525
4537
|
var KIND_TITLES = {
|
|
4526
4538
|
episodic: "Episodic",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearCliLocalRuntimePreparedAgentCache
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3DKS6UER.js";
|
|
4
4
|
import {
|
|
5
5
|
getReadableCliDb
|
|
6
6
|
} from "./chunk-W4NVOSFF.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolveAgentRecordFromHybridStore,
|
|
13
13
|
sanitizeAgentRecordForCliOutput,
|
|
14
14
|
writeAgentRecord
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TSJBYH7X.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveCliAgentKeyInput
|
|
18
18
|
} from "./chunk-VHBWHNVT.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listUserRecordsFromServers,
|
|
3
3
|
readLiveDbRecordAfterTombstoneMerge
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YX4H7EP4.js";
|
|
5
5
|
import {
|
|
6
6
|
agentRecordHasConfiguredCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TSJBYH7X.js";
|
|
8
8
|
import {
|
|
9
9
|
toSafeAgentSummary
|
|
10
10
|
} from "./chunk-OOIN7HSO.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectCurrentServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EC2EU2F4.js";
|
|
4
4
|
import {
|
|
5
5
|
patch
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-V6PGKRZC.js";
|
|
7
7
|
import {
|
|
8
8
|
selectIdentityToken
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DVRHHFEA.js";
|
|
10
10
|
import {
|
|
11
11
|
getIsDesktopApp
|
|
12
12
|
} from "./chunk-OOSFSFMA.js";
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-IKXL2HZ3.js";
|
|
7
7
|
import {
|
|
8
8
|
addContentAction
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2MW6QFIQ.js";
|
|
10
10
|
import {
|
|
11
11
|
upload
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-V6PGKRZC.js";
|
|
13
13
|
import {
|
|
14
14
|
getRuntimeServerContext
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DVRHHFEA.js";
|
|
16
16
|
import {
|
|
17
17
|
API_ENDPOINTS
|
|
18
18
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
loadFileFromIndexedDb,
|
|
3
|
-
removeAction,
|
|
4
|
-
saveFileToIndexedDb
|
|
5
|
-
} from "./chunk-WPHL6ALY.js";
|
|
6
1
|
import {
|
|
7
2
|
fileKey,
|
|
8
3
|
getFileIdFromKey,
|
|
9
4
|
ulid
|
|
10
5
|
} from "./chunk-O4BU24WZ.js";
|
|
6
|
+
import {
|
|
7
|
+
loadFileFromIndexedDb,
|
|
8
|
+
removeAction,
|
|
9
|
+
saveFileToIndexedDb
|
|
10
|
+
} from "./chunk-JTINRTBT.js";
|
|
11
11
|
import {
|
|
12
12
|
readAction,
|
|
13
13
|
readRequestManager,
|
|
14
14
|
resolveAgentReadServers
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NJVPXLRY.js";
|
|
16
16
|
import {
|
|
17
17
|
asyncThunkCreator,
|
|
18
18
|
buildCreateSlice,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
shouldReplaceLocalWithRemoteRecord,
|
|
33
33
|
shouldReplicateLocalRecord,
|
|
34
34
|
uploadToCurrentServer
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-DVRHHFEA.js";
|
|
36
36
|
import {
|
|
37
37
|
fetchFromClientDb,
|
|
38
38
|
fetchFromServer,
|
|
@@ -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-SIWMJRHC.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-Q5CBVUV5.js");
|
|
782
782
|
return shareResourceAction(config, thunkApi);
|
|
783
783
|
}
|
|
784
784
|
),
|