nolo-cli 0.208.0 → 0.210.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-F4GZ3K75.js → _executeModel-VVQEOY3D.js} +29 -29
- package/{action-HNG2JKWK.js → action-U235TV4P.js} +3 -3
- package/{addContentAction-FEN3H2EE.js → addContentAction-7C76J7ST.js} +6 -6
- package/{addDialogAgentAction-DDA6S3WS.js → addDialogAgentAction-KTYANUEC.js} +5 -5
- package/{agentDeleteCommand-F2HW7SZI.js → agentDeleteCommand-WHRU6VDJ.js} +42 -42
- package/{agentEmailCommands-6PJSMXBQ.js → agentEmailCommands-ALLHXPW3.js} +42 -42
- package/{agentListCommands-S54ZR3L7.js → agentListCommands-POKMEKMS.js} +17 -17
- package/{agentMachineCommands-HN7VKXOV.js → agentMachineCommands-WJLZLBPI.js} +10 -10
- package/{agentRecordCommands-SZ6JTRZG.js → agentRecordCommands-OULZW3KM.js} +39 -39
- package/{agentRunCommand-XEV3BK3L.js → agentRunCommand-ZNG4LGNQ.js} +44 -44
- package/{agentRuntimeLocal-KCC7QW7Z.js → agentRuntimeLocal-YMUHFV5M.js} +9 -9
- package/{agentSlice-QHBCIRZZ.js → agentSlice-WNGUIMQZ.js} +6 -6
- package/{appDeleteCommands-7O4SMBTL.js → appDeleteCommands-6MXPLAVF.js} +9 -9
- package/{appDeployCommands-4Y46KPQJ.js → appDeployCommands-ERRSVASW.js} +9 -9
- package/{appDeployStatusCommands-WRAXA7AH.js → appDeployStatusCommands-ULICISLI.js} +9 -9
- package/{appGetCommands-RKC3OW5T.js → appGetCommands-WYYYWROF.js} +9 -9
- package/{appListCommands-3QVE4TSI.js → appListCommands-DFCUCRCV.js} +9 -9
- package/{authCommand-AUP7FHGM.js → authCommand-ZJMWXFMA.js} +6 -6
- package/{chunk-YY37MQSS.js → chunk-25M2K6OA.js} +2 -2
- package/{createPageAction-S6HULJP6.js → chunk-3J3U3KXB.js} +9 -69
- package/{chunk-MOCY5LJI.js → chunk-4WCEC56C.js} +2 -2
- package/{chunk-BF3TXGWM.js → chunk-5ORJGHTL.js} +3 -3
- package/{chunk-MKK2YY5Q.js → chunk-7IYBN7IA.js} +4 -4
- package/{chunk-64D757HH.js → chunk-ADBWFYJD.js} +5 -5
- package/{chunk-HWZT5DKX.js → chunk-BSISWVB4.js} +1 -1
- package/chunk-C6KNNXWU.js +185 -0
- package/{chunk-QAYCF4CH.js → chunk-DQLB4NQ3.js} +2 -2
- package/{chunk-2UZ22L3V.js → chunk-ET2CWLIJ.js} +1 -1
- package/{chunk-CTZ4O3XD.js → chunk-F6UUQOG6.js} +1 -1
- package/{chunk-R56VAYY4.js → chunk-GSQNH63I.js} +1 -1
- package/{chunk-WYKMOZTW.js → chunk-HD3WR3TD.js} +1 -1
- package/{chunk-RXUKDHS5.js → chunk-IIHY4ZAI.js} +1 -1
- package/{chunk-ALBTWLUE.js → chunk-JKW6LERJ.js} +12 -12
- package/{chunk-WWSPE2GG.js → chunk-LT3EAHJY.js} +35 -35
- package/{chunk-35DNCETZ.js → chunk-M4NTDZG3.js} +33 -33
- package/{chunk-CGQSAFXP.js → chunk-MBS6CTZB.js} +18 -18
- package/{chunk-COWSUNBH.js → chunk-NHQKWPLP.js} +20 -12
- package/{chunk-T3U2KQF4.js → chunk-NLT32XBZ.js} +3 -3
- package/{chunk-THE5CKB2.js → chunk-NV572QM3.js} +18 -3
- package/{chunk-Z3MQYKRN.js → chunk-NXCGNS4N.js} +2 -2
- package/{chunk-B2WYM23T.js → chunk-OP7PTBAJ.js} +4 -4
- package/{chunk-6K2AKJAD.js → chunk-PAFTGNWA.js} +2 -2
- package/{chunk-GL7W7TTR.js → chunk-QQM464AL.js} +2 -2
- package/{chunk-FQQWTOBR.js → chunk-RXCCWVA2.js} +2 -2
- package/{chunk-YCEA47VH.js → chunk-RYWO5AKN.js} +6 -6
- package/{chunk-MONJ5H3H.js → chunk-SCYQJPGA.js} +2 -2
- package/{chunk-32GANJHJ.js → chunk-UCPAVEQB.js} +1 -1
- package/{chunk-OHYCQKPW.js → chunk-UMEGDH6A.js} +6 -6
- package/{chunk-CAB2CZ5H.js → chunk-V3M6IXQI.js} +33 -33
- package/{chunk-UZT65S6D.js → chunk-W5VC7F7V.js} +12 -0
- package/{chunk-FPCPCTSA.js → chunk-WI6OGHXJ.js} +1 -1
- package/{chunk-AJ65N2PX.js → chunk-YKFP6UGT.js} +20 -11
- package/{chunk-QOI7USOV.js → chunk-YLTLB5A7.js} +3 -3
- package/{chunk-GMEAELJ6.js → chunk-YUXQAVRD.js} +28 -22
- package/{chunk-AD26C3WW.js → chunk-YXOBCDNW.js} +1 -1
- package/{chunk-DNQ5NOAR.js → chunk-ZN5AH4BY.js} +5 -5
- package/{chunk-UTBQCL6N.js → chunk-ZOO3WJIE.js} +18 -16
- package/{commandRegistry-XVFA25FB.js → commandRegistry-FI2IOQ3U.js} +59 -59
- package/{contentThunks-V3CDW4YX.js → contentThunks-5LKNNDGY.js} +12 -12
- package/{cooldownCommands-YL7H74YB.js → cooldownCommands-YXLWOXWR.js} +2 -2
- package/{createAgentAutomationAction-FGWAYVEP.js → createAgentAutomationAction-TI4QG4CY.js} +12 -12
- package/{createDialogAction-UXAMBNR4.js → createDialogAction-TJ3JKLO4.js} +13 -13
- package/createPageAction-GKXT6WEH.js +80 -0
- package/{dbSlice-JK7LWBDO.js → dbSlice-LPMZ2DGJ.js} +5 -5
- package/{deleteFile-CE24BROO.js → deleteFile-EPUQHKPA.js} +3 -3
- package/desktopFolderProjects-SFY5EZS3.js +45 -0
- package/{dialogCommands-HW6WWUII.js → dialogCommands-IWPXIZ5P.js} +9 -9
- package/{dialogSlice-TBITWBDH.js → dialogSlice-ZWNNS7GZ.js} +10 -10
- package/{docCreateCommands-ETFMIYE5.js → docCreateCommands-HFSPKJSI.js} +9 -9
- package/{docDeleteCommands-HEDB7AHB.js → docDeleteCommands-CRL62POH.js} +9 -9
- package/{docReadCommands-4T5EQQW6.js → docReadCommands-QOTOX3XW.js} +9 -9
- package/{docStore-NFLRMEX3.js → docStore-WYLRB7ED.js} +6 -6
- package/{docUpdateCommands-TYM5V565.js → docUpdateCommands-7BMH4MCA.js} +9 -9
- package/{handleSendMessageAction-UCFZXCXP.js → handleSendMessageAction-P27YP2DQ.js} +62 -25
- package/index.js +4 -4
- package/{localRuntimeAdapter-JBXUIVNU.js → localRuntimeAdapter-GP6ZSSO3.js} +38 -38
- package/{machineCommands-FDQA6NCY.js → machineCommands-6Z6H4BFX.js} +43 -43
- package/{machineWsRunDispatch-VBTEUSVI.js → machineWsRunDispatch-F2ZIXMYM.js} +39 -39
- package/{memberThunks-WT2KVRP4.js → memberThunks-YSEFJF47.js} +6 -6
- package/package.json +1 -1
- package/projectArchive-PIGEOX3D.js +121 -0
- package/{read-ILTT75DW.js → read-DIIQBOOO.js} +3 -3
- package/{readDocTool-374CFJYO.js → readDocTool-HXYGOEA7.js} +1 -1
- package/{readlineWorkspace-SJY4M4YP.js → readlineWorkspace-UG25G7KC.js} +62 -60
- package/{removeDialogAgentAction-UQFCQO6L.js → removeDialogAgentAction-ALJDUJ2E.js} +7 -7
- package/{runAgentClientLoop-V4KMRRPJ.js → runAgentClientLoop-IO5F7TCZ.js} +27 -27
- package/{setDialogExtraReferencesAction-GBIT7WAG.js → setDialogExtraReferencesAction-O3SVMD5A.js} +6 -6
- package/{setPrimaryDialogAgentAction-23PMBXWD.js → setPrimaryDialogAgentAction-HE7RVFFF.js} +7 -7
- package/{settingThunks-SWYDFUYT.js → settingThunks-BWWJQG4L.js} +5 -5
- package/{skillDiscovery-BKLWW2EZ.js → skillDiscovery-XKHROSH2.js} +2 -2
- package/{spaceCommands-JMU4R5LB.js → spaceCommands-UAELIFEI.js} +9 -9
- package/{streamAgentChatTurn-SUWOIV4S.js → streamAgentChatTurn-VUKZQYJR.js} +71 -56
- package/{switchDialogAgentAction-O7WTPLKG.js → switchDialogAgentAction-3VZS7SOS.js} +5 -5
- package/{tableCommands-QYB64L5I.js → tableCommands-D7WR4QSM.js} +1 -1
- package/{tools-JW4EEFK7.js → tools-VRXJAVYI.js} +23 -23
- package/{tuiSummaryLlmCaller-4QCQ2TIN.js → tuiSummaryLlmCaller-TGCHZLSW.js} +2 -2
- package/{updateDialogTitleAction-EDXTLVGM.js → updateDialogTitleAction-MULWCJCW.js} +12 -12
- package/{chunk-6Q7UTJKR.js → chunk-AGP3YSEC.js} +0 -0
- package/{chunk-SZ4ADZFT.js → chunk-LNYHAKBP.js} +3 -3
- package/{chunk-3QKILTO3.js → chunk-NTSRCTUX.js} +3 -3
- package/{chunk-3IBHFELR.js → chunk-TCTSYFDM.js} +3 -3
- package/{chunk-CMLBKYEI.js → chunk-ZRSNONOB.js} +0 -0
- package/{workloadLifecycle-JA75D6JR.js → workloadLifecycle-4BEQHMSD.js} +3 -3
|
@@ -6,14 +6,11 @@ import {
|
|
|
6
6
|
resolveDiscoveryScope,
|
|
7
7
|
resolvePaginationArgs,
|
|
8
8
|
toDiscoverySafeAgentSummary
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YXOBCDNW.js";
|
|
10
10
|
import {
|
|
11
11
|
getUserDataItemTimestamp,
|
|
12
12
|
mergeAndDedupUserData
|
|
13
13
|
} from "./chunk-OXME3PEE.js";
|
|
14
|
-
import {
|
|
15
|
-
markdownToSlate
|
|
16
|
-
} from "./chunk-KSTEXKL6.js";
|
|
17
14
|
import {
|
|
18
15
|
addMemberSpace,
|
|
19
16
|
applyFetchSpaceFulfilled,
|
|
@@ -25,7 +22,10 @@ import {
|
|
|
25
22
|
setMembershipLoading,
|
|
26
23
|
setMembershipRejected,
|
|
27
24
|
updateMemberSpaceName
|
|
28
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NXCGNS4N.js";
|
|
26
|
+
import {
|
|
27
|
+
markdownToSlate
|
|
28
|
+
} from "./chunk-KSTEXKL6.js";
|
|
29
29
|
import {
|
|
30
30
|
ToolResultError,
|
|
31
31
|
clipMultilineText,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
toolRunUpdated,
|
|
39
39
|
uiCardFallback,
|
|
40
40
|
waitForAbortableDelay
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-RYWO5AKN.js";
|
|
42
42
|
import {
|
|
43
43
|
isGatewayHttpStatus
|
|
44
44
|
} from "./chunk-NF64D32W.js";
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
} from "./chunk-I5PBXF7O.js";
|
|
56
56
|
import {
|
|
57
57
|
createDocState
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-YLTLB5A7.js";
|
|
59
59
|
import {
|
|
60
60
|
ToolApiError,
|
|
61
61
|
buildToolRequestHeaders,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
readPageFunc,
|
|
71
71
|
readPageFunctionSchema,
|
|
72
72
|
resolvePageReadMarkdown
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-HD3WR3TD.js";
|
|
74
74
|
import {
|
|
75
75
|
extractMentionsFromSlate
|
|
76
76
|
} from "./chunk-AGIM7IMJ.js";
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
} from "./chunk-63W5N6P3.js";
|
|
80
80
|
import {
|
|
81
81
|
createDialogAction
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-7IYBN7IA.js";
|
|
83
83
|
import {
|
|
84
84
|
DEFAULT_COLLAPSED_CATEGORIES,
|
|
85
85
|
addContentToSpace,
|
|
@@ -96,17 +96,7 @@ import {
|
|
|
96
96
|
updateContentCategory,
|
|
97
97
|
updateContentTitle,
|
|
98
98
|
writeStoredCollapsedCategories
|
|
99
|
-
} from "./chunk-
|
|
100
|
-
import {
|
|
101
|
-
getCurrentSpaceId,
|
|
102
|
-
getCurrentSpaceIdRaw,
|
|
103
|
-
getCurrentSpaceRaw,
|
|
104
|
-
getViewMode,
|
|
105
|
-
setCurrentSpace,
|
|
106
|
-
setCurrentSpaceBoth,
|
|
107
|
-
setViewMode,
|
|
108
|
-
updateCurrentSpaceIfMatch
|
|
109
|
-
} from "./chunk-5XBUWM6I.js";
|
|
99
|
+
} from "./chunk-NHQKWPLP.js";
|
|
110
100
|
import {
|
|
111
101
|
buildDatabaseFileContentUrl,
|
|
112
102
|
deleteDialog,
|
|
@@ -119,14 +109,24 @@ import {
|
|
|
119
109
|
selectMsgById,
|
|
120
110
|
uiAskChoiceFunc,
|
|
121
111
|
uiAskChoiceFunctionSchema
|
|
122
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-MBS6CTZB.js";
|
|
123
113
|
import {
|
|
124
114
|
createAgent,
|
|
125
115
|
deleteServerSyncedCredential,
|
|
126
116
|
runLlm,
|
|
127
117
|
streamAgentChatTurn,
|
|
128
118
|
updateAgent
|
|
129
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-ADBWFYJD.js";
|
|
120
|
+
import {
|
|
121
|
+
getCurrentSpaceId,
|
|
122
|
+
getCurrentSpaceIdRaw,
|
|
123
|
+
getCurrentSpaceRaw,
|
|
124
|
+
getViewMode,
|
|
125
|
+
setCurrentSpace,
|
|
126
|
+
setCurrentSpaceBoth,
|
|
127
|
+
setViewMode,
|
|
128
|
+
updateCurrentSpaceIfMatch
|
|
129
|
+
} from "./chunk-5XBUWM6I.js";
|
|
130
130
|
import {
|
|
131
131
|
buildMediaToolConfirmation,
|
|
132
132
|
normalizeMediaConfirmExecutionRevision
|
|
@@ -135,7 +135,7 @@ import {
|
|
|
135
135
|
UNCATEGORIZED_ID,
|
|
136
136
|
addContentAction,
|
|
137
137
|
checkSpaceMembership
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-DQLB4NQ3.js";
|
|
139
139
|
import {
|
|
140
140
|
createSpaceKey,
|
|
141
141
|
normalizeSpaceId
|
|
@@ -150,11 +150,11 @@ import {
|
|
|
150
150
|
} from "./chunk-YDH3FDFQ.js";
|
|
151
151
|
import {
|
|
152
152
|
shareResourceAction
|
|
153
|
-
} from "./chunk-
|
|
153
|
+
} from "./chunk-QQM464AL.js";
|
|
154
154
|
import {
|
|
155
155
|
selectCurrentServer,
|
|
156
156
|
selectSyncServers
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-BSISWVB4.js";
|
|
158
158
|
import {
|
|
159
159
|
patch,
|
|
160
160
|
read,
|
|
@@ -166,10 +166,10 @@ import {
|
|
|
166
166
|
selectEntities,
|
|
167
167
|
toTimestampMs,
|
|
168
168
|
write
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-UMEGDH6A.js";
|
|
170
170
|
import {
|
|
171
171
|
readAction
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-PAFTGNWA.js";
|
|
173
173
|
import {
|
|
174
174
|
DEVICE_LOCAL_OWNER_ID,
|
|
175
175
|
getRuntimeServerContext,
|
|
@@ -179,7 +179,7 @@ import {
|
|
|
179
179
|
resolveEffectiveSpaceActorId,
|
|
180
180
|
resolveRecordOwnerUserId,
|
|
181
181
|
selectRuntimeSnapshot
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-UCPAVEQB.js";
|
|
183
183
|
import {
|
|
184
184
|
createAsyncThunk,
|
|
185
185
|
noloWriteRequest
|
|
@@ -226,7 +226,7 @@ import {
|
|
|
226
226
|
import {
|
|
227
227
|
mergeAvailabilityDeadline,
|
|
228
228
|
resolveCredentialKeyWithFallback
|
|
229
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-YUXQAVRD.js";
|
|
230
230
|
import {
|
|
231
231
|
clipCompactText
|
|
232
232
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -3898,7 +3898,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
3898
3898
|
const deletedDialogIds = [];
|
|
3899
3899
|
const deletedDialogKeys = [];
|
|
3900
3900
|
const failures = [];
|
|
3901
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
3901
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-ZWNNS7GZ.js");
|
|
3902
3902
|
for (const target of targets) {
|
|
3903
3903
|
try {
|
|
3904
3904
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -4277,7 +4277,7 @@ var readSkillDocFunctionSchema = {
|
|
|
4277
4277
|
}
|
|
4278
4278
|
};
|
|
4279
4279
|
async function readSkillDocFunc(args, thunkApi) {
|
|
4280
|
-
const { buildReadDocResult } = await import("./readDocTool-
|
|
4280
|
+
const { buildReadDocResult } = await import("./readDocTool-HXYGOEA7.js");
|
|
4281
4281
|
const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
|
|
4282
4282
|
if (typeof id !== "string" || !id.trim()) {
|
|
4283
4283
|
throw new Error("readSkillDoc requires id or doc.");
|
|
@@ -5090,7 +5090,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
|
|
|
5090
5090
|
const spaceKey = createSpaceKey.space(spaceId);
|
|
5091
5091
|
const readSpace = async (dbKey) => {
|
|
5092
5092
|
try {
|
|
5093
|
-
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-
|
|
5093
|
+
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-LPMZ2DGJ.js");
|
|
5094
5094
|
const readPromise = fresh ? dispatch(readAndWait2(dbKey)).unwrap() : dispatch(read2({ dbKey })).unwrap();
|
|
5095
5095
|
return await withTimeout(readPromise);
|
|
5096
5096
|
} catch {
|
|
@@ -11738,7 +11738,7 @@ var selectUserIdFromState = (state2) => {
|
|
|
11738
11738
|
var selectCurrentServerFromState = (state2) => typeof state2?.settings?.currentServer === "string" ? state2.settings.currentServer : null;
|
|
11739
11739
|
async function addImageContentToSpace(input) {
|
|
11740
11740
|
const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
|
|
11741
|
-
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-
|
|
11741
|
+
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-7C76J7ST.js")).addContentAction;
|
|
11742
11742
|
await addContentAction2(
|
|
11743
11743
|
{
|
|
11744
11744
|
spaceId: input.spaceId,
|
|
@@ -18699,7 +18699,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
18699
18699
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
18700
18700
|
};
|
|
18701
18701
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
18702
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
18702
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-WYLRB7ED.js");
|
|
18703
18703
|
if (getDocState().pageKey === id) {
|
|
18704
18704
|
applyExternalDocUpdate({
|
|
18705
18705
|
slateData: finalSlateData,
|
|
@@ -18724,7 +18724,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
18724
18724
|
// packages/ai/tools/updateUserPreferenceProfileTool.ts
|
|
18725
18725
|
async function dispatchSetSettings(thunkApi, changes) {
|
|
18726
18726
|
const injectedSetSettings = thunkApi?.extra?.setSettings;
|
|
18727
|
-
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-
|
|
18727
|
+
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-BWWJQG4L.js")).setSettings;
|
|
18728
18728
|
await thunkApi.dispatch(setSettings(changes)).unwrap();
|
|
18729
18729
|
}
|
|
18730
18730
|
var updateUserPreferenceProfileFunctionSchema = {
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
customNativeAuthHeaders,
|
|
3
|
+
detectDeclaredCustomNativeWire,
|
|
4
|
+
isCallerCancellation,
|
|
5
|
+
resolveCustomNativeApiKeyHeader,
|
|
6
|
+
resolveCustomNativeEndpoint
|
|
7
|
+
} from "./chunk-WOAZVUSN.js";
|
|
1
8
|
import {
|
|
2
9
|
adoptRequiredClaudeCodeVersion,
|
|
3
10
|
anthropicRefresh,
|
|
@@ -18,7 +25,7 @@ import {
|
|
|
18
25
|
readCredentialEntry,
|
|
19
26
|
readEffectiveCredentialEntry,
|
|
20
27
|
recordCredentialProbe
|
|
21
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-GSQNH63I.js";
|
|
22
29
|
import {
|
|
23
30
|
OAUTH_PROVIDER_REFS,
|
|
24
31
|
buildLocalAgentLookupKeys
|
|
@@ -30,12 +37,10 @@ import {
|
|
|
30
37
|
NOLO_DEFAULT_AGENT_KEY
|
|
31
38
|
} from "./chunk-NBTY7YJF.js";
|
|
32
39
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
resolveCustomNativeEndpoint
|
|
38
|
-
} from "./chunk-WOAZVUSN.js";
|
|
40
|
+
CliProviderQuotaError,
|
|
41
|
+
executeCli,
|
|
42
|
+
executeCliStreaming
|
|
43
|
+
} from "./chunk-VL5KOY2C.js";
|
|
39
44
|
import {
|
|
40
45
|
isCursorOAuthAgent
|
|
41
46
|
} from "./chunk-VIWDGTDA.js";
|
|
@@ -56,22 +61,13 @@ import {
|
|
|
56
61
|
import {
|
|
57
62
|
applyPublicAgentCatalogOverride
|
|
58
63
|
} from "./chunk-RQ22OZD7.js";
|
|
59
|
-
import {
|
|
60
|
-
CliProviderQuotaError,
|
|
61
|
-
executeCli,
|
|
62
|
-
executeCliStreaming
|
|
63
|
-
} from "./chunk-VL5KOY2C.js";
|
|
64
64
|
import {
|
|
65
65
|
buildCliPrompt
|
|
66
66
|
} from "./chunk-ATNTHIZI.js";
|
|
67
|
-
import {
|
|
68
|
-
inferCaptureIntent,
|
|
69
|
-
resolveUserSkillRuntime
|
|
70
|
-
} from "./chunk-NEZGPBL7.js";
|
|
71
67
|
import {
|
|
72
68
|
inlineImageUrlsForCustomProvider,
|
|
73
69
|
prepareTools
|
|
74
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-25M2K6OA.js";
|
|
75
71
|
import {
|
|
76
72
|
getServerProviderSecret
|
|
77
73
|
} from "./chunk-HS7MLR74.js";
|
|
@@ -93,7 +89,7 @@ import {
|
|
|
93
89
|
resolveCliLocalRuntimeKeyCapability,
|
|
94
90
|
resolveCliLocalSpawnDispatch,
|
|
95
91
|
resolveStartAgentRunCwd
|
|
96
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-LT3EAHJY.js";
|
|
97
93
|
import {
|
|
98
94
|
fetchWithTransientRetry,
|
|
99
95
|
isTransientFetchError
|
|
@@ -101,7 +97,11 @@ import {
|
|
|
101
97
|
import {
|
|
102
98
|
deriveCredentialGroup,
|
|
103
99
|
deriveCustomProviderCredentialGroup
|
|
104
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-YXOBCDNW.js";
|
|
101
|
+
import {
|
|
102
|
+
inferCaptureIntent,
|
|
103
|
+
resolveUserSkillRuntime
|
|
104
|
+
} from "./chunk-NEZGPBL7.js";
|
|
105
105
|
import {
|
|
106
106
|
resolveAgentRequiredPackIds,
|
|
107
107
|
resolveUserEnabledSkills
|
|
@@ -114,14 +114,14 @@ import {
|
|
|
114
114
|
resolveBuiltinPlatformAgentConfig,
|
|
115
115
|
runKeyed,
|
|
116
116
|
validateAskChoiceInput
|
|
117
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-MBS6CTZB.js";
|
|
118
118
|
import {
|
|
119
119
|
BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
|
|
120
120
|
BUILTIN_TITLE_LLM_CONFIG
|
|
121
121
|
} from "./chunk-523DITKR.js";
|
|
122
122
|
import {
|
|
123
123
|
fetchServerSyncedCredential
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-ADBWFYJD.js";
|
|
125
125
|
import {
|
|
126
126
|
getDefaultCliLocalRuntimeDb
|
|
127
127
|
} from "./chunk-AZMYUSVF.js";
|
|
@@ -181,7 +181,7 @@ import {
|
|
|
181
181
|
runExecShellGates,
|
|
182
182
|
validateConfiguredRootExecutionLease,
|
|
183
183
|
verifyOwnerRouteAck
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-ZOO3WJIE.js";
|
|
185
185
|
import {
|
|
186
186
|
accumulateGeminiChunks,
|
|
187
187
|
buildGeminiGenerateContentRequest,
|
|
@@ -193,7 +193,7 @@ import {
|
|
|
193
193
|
resolveAntigravityFinishReason,
|
|
194
194
|
resolveGeminiModelQuirks,
|
|
195
195
|
shouldUseGeminiNativeToolRoute
|
|
196
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-NTSRCTUX.js";
|
|
197
197
|
import {
|
|
198
198
|
PlatformStreamInterruptedError,
|
|
199
199
|
buildPlatformChatCompletionRequest,
|
|
@@ -204,20 +204,14 @@ import {
|
|
|
204
204
|
readPlatformChatSseCompletion,
|
|
205
205
|
resolvePlatformChatProviderConfig,
|
|
206
206
|
shouldUsePlatformChatProvider
|
|
207
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-TCTSYFDM.js";
|
|
208
208
|
import {
|
|
209
209
|
readSseDataValues,
|
|
210
210
|
readSseFrames
|
|
211
211
|
} from "./chunk-HNUWUO75.js";
|
|
212
212
|
import {
|
|
213
213
|
resolveAgentRuntimeConfigFromRecord
|
|
214
|
-
} from "./chunk-
|
|
215
|
-
import {
|
|
216
|
-
resolveHistoricalToolContentCap
|
|
217
|
-
} from "./chunk-2WZXXAQD.js";
|
|
218
|
-
import {
|
|
219
|
-
resolveToolImagePolicy
|
|
220
|
-
} from "./chunk-DA7CTWT4.js";
|
|
214
|
+
} from "./chunk-LNYHAKBP.js";
|
|
221
215
|
import {
|
|
222
216
|
collectStablePromptPrefix,
|
|
223
217
|
convertMessagesToResponsesInput,
|
|
@@ -247,7 +241,13 @@ import {
|
|
|
247
241
|
resolveAvailabilityAction,
|
|
248
242
|
resolveCooldownGate,
|
|
249
243
|
resolveCredentialKeyWithFallback
|
|
250
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-YUXQAVRD.js";
|
|
245
|
+
import {
|
|
246
|
+
resolveHistoricalToolContentCap
|
|
247
|
+
} from "./chunk-2WZXXAQD.js";
|
|
248
|
+
import {
|
|
249
|
+
resolveToolImagePolicy
|
|
250
|
+
} from "./chunk-DA7CTWT4.js";
|
|
251
251
|
import {
|
|
252
252
|
buildDialogFallbackTitleFromUserInput,
|
|
253
253
|
normalizeDialogTitle
|
|
@@ -10053,7 +10053,7 @@ async function createLocalDockerWorkload(args) {
|
|
|
10053
10053
|
}
|
|
10054
10054
|
const createLifecycle = args.createLifecycle ?? (async () => {
|
|
10055
10055
|
const [{ DockerWorkloadLifecycle, createDockerBindingAuthorizer }, accounts] = await Promise.all([
|
|
10056
|
-
import("./workloadLifecycle-
|
|
10056
|
+
import("./workloadLifecycle-4BEQHMSD.js"),
|
|
10057
10057
|
import("./accountResolver-4LKIHEKL.js")
|
|
10058
10058
|
]);
|
|
10059
10059
|
const resolveAccount = args.resolveAccount ?? accounts.createDockerAccountResolver({
|
|
@@ -11,19 +11,19 @@ import {
|
|
|
11
11
|
} from "./chunk-523DITKR.js";
|
|
12
12
|
import {
|
|
13
13
|
runLlm
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ADBWFYJD.js";
|
|
15
15
|
import {
|
|
16
16
|
isMediaToolConfirmation
|
|
17
17
|
} from "./chunk-QYPE3TS3.js";
|
|
18
18
|
import {
|
|
19
19
|
cleanupCliSessionForDialog
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NLT32XBZ.js";
|
|
21
21
|
import {
|
|
22
22
|
getApproxPricePerImage
|
|
23
23
|
} from "./chunk-4JH2UMJR.js";
|
|
24
24
|
import {
|
|
25
25
|
addContentAction
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DQLB4NQ3.js";
|
|
27
27
|
import {
|
|
28
28
|
getActiveDialogAgentId,
|
|
29
29
|
getDialogAgentIds,
|
|
@@ -61,12 +61,12 @@ import {
|
|
|
61
61
|
selectById,
|
|
62
62
|
upload,
|
|
63
63
|
write
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-UMEGDH6A.js";
|
|
65
65
|
import {
|
|
66
66
|
getRuntimeServerContext,
|
|
67
67
|
parseOwnerUserIdFromDbKey,
|
|
68
68
|
scheduleDeleteReplication
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-UCPAVEQB.js";
|
|
70
70
|
import {
|
|
71
71
|
asyncThunkCreator,
|
|
72
72
|
buildCreateSlice,
|
|
@@ -11077,7 +11077,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
11077
11077
|
runtimeOptions: args.runtimeOptions
|
|
11078
11078
|
});
|
|
11079
11079
|
if (agentKeyToUse) {
|
|
11080
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
11080
|
+
const { streamAgentChatTurn } = await import("./agentSlice-WNGUIMQZ.js");
|
|
11081
11081
|
await dispatch(
|
|
11082
11082
|
streamAgentChatTurn({
|
|
11083
11083
|
agentKey: agentKeyToUse,
|
|
@@ -13829,7 +13829,7 @@ var deleteOwnedDialogAttachments = async (args) => {
|
|
|
13829
13829
|
metadataReadFailures
|
|
13830
13830
|
});
|
|
13831
13831
|
if (!plan.deleteCandidates.length) return plan;
|
|
13832
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
13832
|
+
const { deleteFileAction } = await import("./deleteFile-EPUQHKPA.js");
|
|
13833
13833
|
for (const candidate of plan.deleteCandidates) {
|
|
13834
13834
|
if (candidate.fileDbKey) {
|
|
13835
13835
|
await deleteFileAction(candidate.fileDbKey, args.thunkApi);
|
|
@@ -13891,7 +13891,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13891
13891
|
}
|
|
13892
13892
|
if (isCurrentDialog) {
|
|
13893
13893
|
await thunkApi.dispatch(resetMsgs());
|
|
13894
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
13894
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-ZWNNS7GZ.js");
|
|
13895
13895
|
dispatch(clearPendingAttachments2());
|
|
13896
13896
|
}
|
|
13897
13897
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -13899,39 +13899,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13899
13899
|
|
|
13900
13900
|
// packages/chat/dialog/dialogSlice.ts
|
|
13901
13901
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
13902
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
13902
|
+
const { createDialogAction } = await import("./createDialogAction-TJ3JKLO4.js");
|
|
13903
13903
|
return createDialogAction(args, thunkApi);
|
|
13904
13904
|
};
|
|
13905
13905
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
13906
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
13906
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-TI4QG4CY.js");
|
|
13907
13907
|
return createAgentAutomationAction(args, thunkApi);
|
|
13908
13908
|
};
|
|
13909
13909
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
13910
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
13910
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-MULWCJCW.js");
|
|
13911
13911
|
return updateDialogTitleAction(args, thunkApi);
|
|
13912
13912
|
};
|
|
13913
13913
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
13914
|
-
const { addDialogAgentAction } = await import("./addDialogAgentAction-
|
|
13914
|
+
const { addDialogAgentAction } = await import("./addDialogAgentAction-KTYANUEC.js");
|
|
13915
13915
|
return addDialogAgentAction(args, thunkApi);
|
|
13916
13916
|
};
|
|
13917
13917
|
var runRemoveDialogAgentAction = async (args, thunkApi) => {
|
|
13918
|
-
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-
|
|
13918
|
+
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-ALJDUJ2E.js");
|
|
13919
13919
|
return removeDialogAgentAction(args, thunkApi);
|
|
13920
13920
|
};
|
|
13921
13921
|
var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
|
|
13922
|
-
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-
|
|
13922
|
+
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-HE7RVFFF.js");
|
|
13923
13923
|
return setPrimaryDialogAgentAction(args, thunkApi);
|
|
13924
13924
|
};
|
|
13925
13925
|
var runSwitchDialogAgentAction = async (args, thunkApi) => {
|
|
13926
|
-
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-
|
|
13926
|
+
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-3VZS7SOS.js");
|
|
13927
13927
|
return switchDialogAgentAction(args, thunkApi);
|
|
13928
13928
|
};
|
|
13929
13929
|
var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
13930
|
-
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-
|
|
13930
|
+
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-O3SVMD5A.js");
|
|
13931
13931
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
13932
13932
|
};
|
|
13933
13933
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
13934
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
13934
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-P27YP2DQ.js");
|
|
13935
13935
|
return handleSendMessageAction(args, thunkApi);
|
|
13936
13936
|
};
|
|
13937
13937
|
function clearDialogState() {
|
|
@@ -13944,7 +13944,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
13944
13944
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
13945
13945
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
13946
13946
|
try {
|
|
13947
|
-
const { createDocState } = await import("./docStore-
|
|
13947
|
+
const { createDocState } = await import("./docStore-WYLRB7ED.js");
|
|
13948
13948
|
const pageKey = await createDocState(
|
|
13949
13949
|
{ slateData, title },
|
|
13950
13950
|
{ dispatch, getState }
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
deleteDialog,
|
|
3
|
+
runtime_default,
|
|
4
|
+
toast
|
|
5
|
+
} from "./chunk-MBS6CTZB.js";
|
|
1
6
|
import {
|
|
2
7
|
getCurrentSpaceId,
|
|
3
8
|
getCurrentSpaceIdRaw,
|
|
4
9
|
updateCurrentSpaceIfMatch
|
|
5
10
|
} from "./chunk-5XBUWM6I.js";
|
|
6
|
-
import {
|
|
7
|
-
deleteDialog,
|
|
8
|
-
runtime_default,
|
|
9
|
-
toast
|
|
10
|
-
} from "./chunk-CGQSAFXP.js";
|
|
11
11
|
import {
|
|
12
12
|
UNCATEGORIZED_ID,
|
|
13
13
|
addContentAction,
|
|
14
14
|
checkSpaceMembership,
|
|
15
15
|
localSpaceAuthorityPatchStamp
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DQLB4NQ3.js";
|
|
17
17
|
import {
|
|
18
18
|
createSpaceKey,
|
|
19
19
|
normalizeSpaceId
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
uploadFileAction,
|
|
33
33
|
upsertSSREntity,
|
|
34
34
|
write
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-UMEGDH6A.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveFileCategory
|
|
38
38
|
} from "./chunk-3PVYUPXK.js";
|
|
@@ -43,13 +43,13 @@ import {
|
|
|
43
43
|
resolveReplicationServers,
|
|
44
44
|
scheduleDeleteReplication,
|
|
45
45
|
scheduleWriteReplication
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-UCPAVEQB.js";
|
|
47
47
|
import {
|
|
48
48
|
createAsyncThunk
|
|
49
49
|
} from "./chunk-X4F26D5K.js";
|
|
50
50
|
import {
|
|
51
51
|
getIsDesktopApp
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-AGP3YSEC.js";
|
|
53
53
|
import {
|
|
54
54
|
createClientLogger
|
|
55
55
|
} from "./chunk-QQ56R7KS.js";
|
|
@@ -454,6 +454,13 @@ function addColumnOptionInMeta(meta, input, deps) {
|
|
|
454
454
|
|
|
455
455
|
// packages/render/table/createTableAction.ts
|
|
456
456
|
import { ulid as ulid2 } from "ulid";
|
|
457
|
+
|
|
458
|
+
// packages/create/space/resolveCreationSpaceId.ts
|
|
459
|
+
function resolveCreationSpaceId(customSpaceId, currentSpaceId) {
|
|
460
|
+
return (customSpaceId ?? currentSpaceId) || null;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
// packages/render/table/createTableAction.ts
|
|
457
464
|
var DEFAULT_COLUMNS = [
|
|
458
465
|
{
|
|
459
466
|
name: "title",
|
|
@@ -552,7 +559,7 @@ var createTableAction = async ({
|
|
|
552
559
|
const state3 = getState();
|
|
553
560
|
const userId = selectIdentityUserId(state3);
|
|
554
561
|
if (!userId) throw new Error("User ID not found.");
|
|
555
|
-
const spaceId = customSpaceId
|
|
562
|
+
const spaceId = resolveCreationSpaceId(customSpaceId, getCurrentSpaceId());
|
|
556
563
|
const tableId = ulid2();
|
|
557
564
|
const now = /* @__PURE__ */ new Date();
|
|
558
565
|
const nowIso = formatISO(now);
|
|
@@ -1497,11 +1504,11 @@ var ENTITY_DELETE_STRATEGIES = {
|
|
|
1497
1504
|
await dispatch(deleteTable({ dbKey: key })).unwrap();
|
|
1498
1505
|
},
|
|
1499
1506
|
file: async (key, { thunkAPI }) => {
|
|
1500
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
1507
|
+
const { deleteFileAction } = await import("./deleteFile-EPUQHKPA.js");
|
|
1501
1508
|
await deleteFileAction(key, thunkAPI);
|
|
1502
1509
|
},
|
|
1503
1510
|
image: async (key, { thunkAPI }) => {
|
|
1504
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
1511
|
+
const { deleteFileAction } = await import("./deleteFile-EPUQHKPA.js");
|
|
1505
1512
|
await deleteFileAction(key, thunkAPI);
|
|
1506
1513
|
},
|
|
1507
1514
|
agent: async (key, { dispatch, userId, sourceServerOrigin }) => {
|
|
@@ -2663,6 +2670,7 @@ var updateContentCategory = createAsyncThunk(
|
|
|
2663
2670
|
|
|
2664
2671
|
export {
|
|
2665
2672
|
fetchAndCacheTableRows,
|
|
2673
|
+
resolveCreationSpaceId,
|
|
2666
2674
|
getTableState,
|
|
2667
2675
|
loadTableRows,
|
|
2668
2676
|
addRow,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectCurrentServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BSISWVB4.js";
|
|
4
4
|
import {
|
|
5
5
|
patch
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UMEGDH6A.js";
|
|
7
7
|
import {
|
|
8
8
|
getIsDesktopApp
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AGP3YSEC.js";
|
|
10
10
|
import {
|
|
11
11
|
selectIdentityToken
|
|
12
12
|
} from "./chunk-PXYBUFDB.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-HS7MLR74.js";
|
|
4
4
|
import {
|
|
5
5
|
performServerProxyFetchWithRetry
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZN5AH4BY.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchServerSyncedCredential
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ADBWFYJD.js";
|
|
10
10
|
import {
|
|
11
11
|
buildSkillGuidancePromptBlock
|
|
12
12
|
} from "./chunk-Y6M7KJOA.js";
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
DISPATCH_CANDIDATE_POLICY,
|
|
18
18
|
PARALLEL_DISPATCH_DEFAULT_RULE,
|
|
19
19
|
PLATFORM_RISK_CONTROL_RULE,
|
|
20
|
+
VERIFY_BEFORE_CONCLUDING_RULE,
|
|
20
21
|
buildConsultationModeBlock,
|
|
21
22
|
buildIdentityBlock,
|
|
22
23
|
buildResponseGuidelines,
|
|
@@ -24,7 +25,7 @@ import {
|
|
|
24
25
|
compileContextLayers,
|
|
25
26
|
detectDispatchIntentFromMessages,
|
|
26
27
|
resolveToolGuidedSections
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-W5VC7F7V.js";
|
|
28
29
|
import {
|
|
29
30
|
convertMessagesToResponsesInput,
|
|
30
31
|
getUsageRequestOptions,
|
|
@@ -261,6 +262,7 @@ ${contexts.userGlobalPrompt.trim()} ` : "";
|
|
|
261
262
|
const memoryUseGuidanceSection = hasMemoryTools ? MEMORY_USE_GUIDANCE : "";
|
|
262
263
|
const skillGuidanceSection = buildSkillGuidanceBlock(agentConfig);
|
|
263
264
|
const referenceMaterialsSection = buildReferenceMaterialsBlock(contexts);
|
|
265
|
+
const requestContextBlocksSection = (contexts.requestContextBlocks ?? []).map((block) => typeof block === "string" ? block.trim() : "").filter((block) => block.length > 0).join("\n\n");
|
|
264
266
|
const dialogSummarySection = contexts.dialogSummary?.trim() ? `--- \u5386\u53F2\u5BF9\u8BDD\u6458\u8981 ---
|
|
265
267
|
${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
|
|
266
268
|
return compileContextLayers([
|
|
@@ -279,6 +281,13 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
|
|
|
279
281
|
cacheScope: "static",
|
|
280
282
|
content: CREDENTIAL_HYGIENE_RULE
|
|
281
283
|
},
|
|
284
|
+
// 先验证再下结论:一切动作的前提,紧随凭据纪律、先于并行/派发/发布规则。
|
|
285
|
+
{
|
|
286
|
+
id: "verify-before-concluding",
|
|
287
|
+
owner: "platform",
|
|
288
|
+
cacheScope: "static",
|
|
289
|
+
content: VERIFY_BEFORE_CONCLUDING_RULE
|
|
290
|
+
},
|
|
282
291
|
// 并行是默认:系统层固定块,紧随红线(同为无条件前缀,不随工具/轮次变化)。
|
|
283
292
|
{
|
|
284
293
|
id: "parallel-dispatch-default",
|
|
@@ -337,6 +346,12 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
|
|
|
337
346
|
{ id: "space-context", owner: "runtime", cacheScope: "session", content: spaceContextSection },
|
|
338
347
|
{ id: "memory-use-guidance", owner: "platform", cacheScope: "session", content: memoryUseGuidanceSection },
|
|
339
348
|
{ id: "reference-materials", owner: "agent", cacheScope: "turn", content: referenceMaterialsSection },
|
|
349
|
+
{
|
|
350
|
+
id: "request-context-blocks",
|
|
351
|
+
owner: "runtime",
|
|
352
|
+
cacheScope: "turn",
|
|
353
|
+
content: requestContextBlocksSection
|
|
354
|
+
},
|
|
340
355
|
{ id: "memory-overlay", owner: "runtime", cacheScope: "turn", content: memoryOverlaySection },
|
|
341
356
|
{ id: "app-working-memory", owner: "runtime", cacheScope: "turn", content: appWorkingMemorySection },
|
|
342
357
|
{ id: "dialog-summary", owner: "runtime", cacheScope: "turn", content: dialogSummarySection },
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
} from "./chunk-YDH3FDFQ.js";
|
|
12
12
|
import {
|
|
13
13
|
toTimestampMs
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UMEGDH6A.js";
|
|
15
15
|
import {
|
|
16
16
|
fetchFromServer,
|
|
17
17
|
getAllServers
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AGP3YSEC.js";
|
|
19
19
|
import {
|
|
20
20
|
selectIdentityToken,
|
|
21
21
|
selectIdentityUserId
|