nolo-cli 0.14.0-alpha.1 → 0.14.0-alpha.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-SQVV6CXR.js → _executeModel-KMUDFYY2.js} +16 -16
- package/{action-Q5CBVUV5.js → action-N3KXFO5V.js} +3 -3
- package/{addContentAction-ZCJJ3XOL.js → addContentAction-4Z762DMR.js} +2 -2
- package/{addDialogAgentAction-ROUQPBVI.js → addDialogAgentAction-FALLEKPR.js} +1 -1
- package/{agentDeleteCommand-TSY5OSG7.js → agentDeleteCommand-AZDVM4HQ.js} +8 -8
- package/{agentEmailCommands-YX57M3P7.js → agentEmailCommands-AP6MX4XN.js} +19 -19
- package/{agentListCommands-S65H4AVT.js → agentListCommands-OJLOXSKL.js} +9 -9
- package/{agentMachineCommands-ELNLSTE4.js → agentMachineCommands-G4T4GU42.js} +8 -8
- package/{agentRecordCommands-HVCGO2XK.js → agentRecordCommands-RNENEXQI.js} +19 -19
- package/{agentRunCommand-EOFDKKFI.js → agentRunCommand-2VTOTQWA.js} +19 -19
- package/{agentRuntimeLocal-F4FWS5Z4.js → agentRuntimeLocal-4CM3VHR3.js} +5 -5
- package/{agentSlice-R3WAV3VG.js → agentSlice-BLHSFM3Q.js} +2 -2
- package/{chunk-HXPBV44X.js → chunk-2Q5FTOQA.js} +34 -23
- package/{chunk-BRODTPXY.js → chunk-33K5FKRL.js} +1 -1
- package/{chunk-SJQVOEIV.js → chunk-3B2LFO6R.js} +5 -2
- package/{chunk-2MW6QFIQ.js → chunk-3FCSMQAC.js} +1 -1
- package/{chunk-YX4H7EP4.js → chunk-4UUJFFMK.js} +1 -1
- package/{chunk-TSJBYH7X.js → chunk-5R73BS7Y.js} +1 -1
- package/{chunk-V6PGKRZC.js → chunk-A5V7UEZJ.js} +1 -1
- package/{chunk-CFX7LP6W.js → chunk-BHK5ZAW7.js} +1 -1
- package/{chunk-3DKS6UER.js → chunk-BMZRD37B.js} +74 -34
- package/{chunk-BHKOPLWJ.js → chunk-CPGQAMHA.js} +4 -4
- package/{chunk-7ULBTAQK.js → chunk-DQUUZXUZ.js} +9 -9
- package/{chunk-O2S35KSZ.js → chunk-GGQW6DXG.js} +2 -2
- package/{chunk-AEMXZOAK.js → chunk-HJAMZQFI.js} +6 -6
- package/{chunk-ZEYSZ5WG.js → chunk-LVJFD5HS.js} +18 -18
- package/{chunk-K4S6CYKK.js → chunk-ONJIZ7UF.js} +13 -13
- package/{chunk-CANREHJB.js → chunk-RTHJF57Z.js} +1 -1
- package/{chunk-QRBZS6G4.js → chunk-RZALKBP4.js} +2 -2
- package/{chunk-EC2EU2F4.js → chunk-S5UACFUP.js} +54 -2
- package/{chunk-XZY4TCZO.js → chunk-S6V2Y72C.js} +1 -1
- package/{chunk-ACPNKI3V.js → chunk-SE4YDESE.js} +3 -3
- package/{chunk-DSCG2DY5.js → chunk-T3X232L6.js} +1 -1
- package/{chunk-AGUNTRZV.js → chunk-TLNEQI2R.js} +1 -1
- package/{chunk-FLY6L3KA.js → chunk-TQCONXQ3.js} +1 -1
- package/{chunk-QV25QXE2.js → chunk-V6VXDXGY.js} +2 -2
- package/{chunk-2KNEWIDU.js → chunk-VFGBWVXO.js} +2 -2
- package/{chunk-7H3O7ZA2.js → chunk-VQFY3VXW.js} +1 -1
- package/{chunk-IVOFAQ5R.js → chunk-XBZL4SGS.js} +3 -3
- package/{chunk-4GXQ74DF.js → chunk-XIDYAII4.js} +2 -2
- package/{createAgentAutomationAction-LL2UAZL3.js → createAgentAutomationAction-RIOI4YZI.js} +7 -7
- package/{createDialogAction-MSMUS4NO.js → createDialogAction-QBHFBWM4.js} +8 -8
- package/{createPageAction-MGN4CQWL.js → createPageAction-GHVLL7YQ.js} +7 -7
- package/{dbSlice-35VY6LYX.js → dbSlice-7Q23HSWH.js} +1 -1
- package/{dialogCommands-7EKKHEGO.js → dialogCommands-BQDGLVMO.js} +9 -9
- package/{dialogSlice-ZRYCGVVH.js → dialogSlice-VNKDTTHR.js} +7 -7
- package/{docCreateCommands-YCU2BINI.js → docCreateCommands-K2MPMXYF.js} +8 -8
- package/{docDeleteCommands-CEB54GNO.js → docDeleteCommands-NBAARB77.js} +9 -9
- package/{docReadCommands-Z2OZTAIA.js → docReadCommands-S3MO5RPS.js} +8 -8
- package/{docStore-AYLR7HES.js → docStore-W4KEEPCW.js} +8 -8
- package/{docUpdateCommands-VU2TNBPM.js → docUpdateCommands-EHEI7FCE.js} +8 -8
- package/{handleSendMessageAction-D4UALBU5.js → handleSendMessageAction-6BFLKGWQ.js} +7 -7
- package/index.js +35 -35
- package/{machineCommands-65QZPPET.js → machineCommands-R27VIC5L.js} +18 -18
- package/{machineWsRunDispatch-35QVFHKA.js → machineWsRunDispatch-5JH6QGHK.js} +18 -18
- package/package.json +1 -1
- package/{readlineWorkspace-U4PN6GH2.js → readlineWorkspace-RJ3TDGEK.js} +153 -39
- package/{removeDialogAgentAction-DPSDJL5F.js → removeDialogAgentAction-WKHZT6VJ.js} +3 -3
- package/{runAgentClientLoop-HND2XKNI.js → runAgentClientLoop-6D7FP7CK.js} +13 -13
- package/{setDialogExtraReferencesAction-6UPTOPJA.js → setDialogExtraReferencesAction-GCI5QU6E.js} +1 -1
- package/{setPrimaryDialogAgentAction-PFDHN53I.js → setPrimaryDialogAgentAction-NRO57AS6.js} +3 -3
- package/{settingSlice-6M2BKFW5.js → settingSlice-FTWZ5ZHT.js} +4 -2
- package/{spaceCommands-NP75DOJW.js → spaceCommands-4R63UST3.js} +8 -8
- package/{spaceSlice-J44RNCGS.js → spaceSlice-6PZEMRZM.js} +7 -7
- package/{streamAgentChatTurn-MNBTNJDU.js → streamAgentChatTurn-VW7433O6.js} +23 -17
- package/{tools-R2M77NZJ.js → tools-MWNK4RKM.js} +11 -11
- package/{updateDialogTitleAction-ERVV47T7.js → updateDialogTitleAction-3SKUPJIN.js} +7 -7
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
deleteServerSyncedCredential,
|
|
17
17
|
runLlm
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CPGQAMHA.js";
|
|
19
19
|
import {
|
|
20
20
|
cleanupCliSessionForDialog
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-V6VXDXGY.js";
|
|
22
22
|
import {
|
|
23
23
|
getDialogAgentIds,
|
|
24
24
|
getPrimaryDialogAgentId
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
normalizeAssistantContentBuffer,
|
|
34
34
|
planCompression,
|
|
35
35
|
serializeMessageContent
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3B2LFO6R.js";
|
|
37
37
|
import {
|
|
38
38
|
findModelConfig,
|
|
39
39
|
getModelConfig
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
selectRemoteServer,
|
|
75
75
|
selectRemoteServers,
|
|
76
76
|
selectRemoteSyncServers
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-S5UACFUP.js";
|
|
78
78
|
import {
|
|
79
79
|
asRecordOrEmpty
|
|
80
80
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
createSpaceKey,
|
|
86
86
|
localSpaceAuthorityPatchStamp,
|
|
87
87
|
normalizeSpaceId
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-3FCSMQAC.js";
|
|
89
89
|
import {
|
|
90
90
|
patch,
|
|
91
91
|
read,
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
uploadFileAction,
|
|
99
99
|
upsertSSREntity,
|
|
100
100
|
write
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-A5V7UEZJ.js";
|
|
102
102
|
import {
|
|
103
103
|
DB_PREFIX,
|
|
104
104
|
SEPARATOR,
|
|
@@ -10498,7 +10498,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
10498
10498
|
runtimeOptions: args.runtimeOptions
|
|
10499
10499
|
});
|
|
10500
10500
|
if (agentKeyToUse) {
|
|
10501
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
10501
|
+
const { streamAgentChatTurn } = await import("./agentSlice-BLHSFM3Q.js");
|
|
10502
10502
|
await dispatch(
|
|
10503
10503
|
streamAgentChatTurn({
|
|
10504
10504
|
agentKey: agentKeyToUse,
|
|
@@ -13209,7 +13209,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13209
13209
|
}
|
|
13210
13210
|
if (isCurrentDialog) {
|
|
13211
13211
|
await thunkApi.dispatch(resetMsgs());
|
|
13212
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
13212
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-VNKDTTHR.js");
|
|
13213
13213
|
dispatch(clearPendingAttachments2());
|
|
13214
13214
|
clearWorkflow();
|
|
13215
13215
|
}
|
|
@@ -13218,35 +13218,35 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
13218
13218
|
|
|
13219
13219
|
// packages/chat/dialog/dialogSlice.ts
|
|
13220
13220
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
13221
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
13221
|
+
const { createDialogAction } = await import("./createDialogAction-QBHFBWM4.js");
|
|
13222
13222
|
return createDialogAction(args, thunkApi);
|
|
13223
13223
|
};
|
|
13224
13224
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
13225
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
13225
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-RIOI4YZI.js");
|
|
13226
13226
|
return createAgentAutomationAction(args, thunkApi);
|
|
13227
13227
|
};
|
|
13228
13228
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
13229
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
13229
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-3SKUPJIN.js");
|
|
13230
13230
|
return updateDialogTitleAction(args, thunkApi);
|
|
13231
13231
|
};
|
|
13232
13232
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
13233
|
-
const { addDialogAgentAction } = await import("./addDialogAgentAction-
|
|
13233
|
+
const { addDialogAgentAction } = await import("./addDialogAgentAction-FALLEKPR.js");
|
|
13234
13234
|
return addDialogAgentAction(args, thunkApi);
|
|
13235
13235
|
};
|
|
13236
13236
|
var runRemoveDialogAgentAction = async (args, thunkApi) => {
|
|
13237
|
-
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-
|
|
13237
|
+
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-WKHZT6VJ.js");
|
|
13238
13238
|
return removeDialogAgentAction(args, thunkApi);
|
|
13239
13239
|
};
|
|
13240
13240
|
var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
|
|
13241
|
-
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-
|
|
13241
|
+
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-NRO57AS6.js");
|
|
13242
13242
|
return setPrimaryDialogAgentAction(args, thunkApi);
|
|
13243
13243
|
};
|
|
13244
13244
|
var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
13245
|
-
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-
|
|
13245
|
+
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-GCI5QU6E.js");
|
|
13246
13246
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
13247
13247
|
};
|
|
13248
13248
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
13249
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
13249
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-6BFLKGWQ.js");
|
|
13250
13250
|
return handleSendMessageAction(args, thunkApi);
|
|
13251
13251
|
};
|
|
13252
13252
|
function clearDialogState() {
|
|
@@ -13259,7 +13259,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
13259
13259
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
13260
13260
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
13261
13261
|
try {
|
|
13262
|
-
const { createDocState } = await import("./docStore-
|
|
13262
|
+
const { createDocState } = await import("./docStore-W4KEEPCW.js");
|
|
13263
13263
|
const pageKey = await createDocState(
|
|
13264
13264
|
{ slateData, title },
|
|
13265
13265
|
{ dispatch, getState }
|
|
@@ -19388,7 +19388,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
|
|
|
19388
19388
|
const spaceKey = createSpaceKey.space(spaceId);
|
|
19389
19389
|
const readSpace = async (dbKey) => {
|
|
19390
19390
|
try {
|
|
19391
|
-
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-
|
|
19391
|
+
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-7Q23HSWH.js");
|
|
19392
19392
|
if (fresh) {
|
|
19393
19393
|
return await dispatch(readAndWait2(dbKey)).unwrap();
|
|
19394
19394
|
}
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isBuiltinNoloAgentRef,
|
|
19
19
|
t,
|
|
20
20
|
toolLabel
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BMZRD37B.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-5R73BS7Y.js";
|
|
32
32
|
import {
|
|
33
33
|
normalizeAgentHandle
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-TQCONXQ3.js";
|
|
35
35
|
import {
|
|
36
36
|
NOLO_PROJECT_MANAGER_AGENT_KEY,
|
|
37
37
|
isLocalCliAgentKey
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
formatStatusRunCard,
|
|
49
49
|
formatStopRunCard,
|
|
50
50
|
isAgentRunTerminalStatus
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-2Q5FTOQA.js";
|
|
52
52
|
import {
|
|
53
53
|
isGatewayHttpStatus
|
|
54
54
|
} from "./chunk-RQSOAMPJ.js";
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
chooseMemoryOwners,
|
|
58
58
|
loadMemoryCandidatesFromDb,
|
|
59
59
|
resolveAgentMemoryPolicy
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-VFGBWVXO.js";
|
|
61
61
|
import {
|
|
62
62
|
parseExternalSkillMarkdown,
|
|
63
63
|
parseSkillDocProtocol
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
API_REPORTED_COST_MULTIPLIER,
|
|
67
67
|
normalizeUsage,
|
|
68
68
|
parseUiAskChoiceContent
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-LVJFD5HS.js";
|
|
70
70
|
import {
|
|
71
71
|
buildSkillDiscoveryContextBlock
|
|
72
72
|
} from "./chunk-AS3ZQ3O2.js";
|
|
@@ -82,14 +82,14 @@ import {
|
|
|
82
82
|
LOCAL_TURN_ABORTED_CODE,
|
|
83
83
|
readActionGate,
|
|
84
84
|
readCommandActionGatePayload
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-VQFY3VXW.js";
|
|
86
86
|
import {
|
|
87
87
|
resolvePlatformChatCompletionsEndpoint
|
|
88
88
|
} from "./chunk-KTFJUPDW.js";
|
|
89
89
|
import {
|
|
90
90
|
DEFAULT_CONTEXT_WINDOW,
|
|
91
91
|
getModelContextWindow
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-3B2LFO6R.js";
|
|
93
93
|
import {
|
|
94
94
|
clipCompactText
|
|
95
95
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -2944,10 +2944,10 @@ function createSseToolEventAdapter(onEvent) {
|
|
|
2944
2944
|
const calls = Array.isArray(payload) ? payload : payload?.calls ?? [];
|
|
2945
2945
|
pendingCalls = [];
|
|
2946
2946
|
const events = [];
|
|
2947
|
-
for (const
|
|
2947
|
+
for (const call of calls) {
|
|
2948
2948
|
callIndex++;
|
|
2949
|
-
const toolCallId = `sse-call-${callIndex}`;
|
|
2950
|
-
const toolName =
|
|
2949
|
+
const toolCallId = typeof call === "string" && call.trim() ? `sse-call-${callIndex}` : typeof call === "object" && call.toolCallId ? call.toolCallId : `sse-call-${callIndex}`;
|
|
2950
|
+
const toolName = typeof call === "string" ? call || "tool" : call?.toolName || "tool";
|
|
2951
2951
|
pendingCalls.push({ toolCallId, toolName });
|
|
2952
2952
|
const event = {
|
|
2953
2953
|
type: "tool-call",
|
|
@@ -3618,7 +3618,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
|
|
|
3618
3618
|
// packages/cli/client/agentRun.ts
|
|
3619
3619
|
import { ulid } from "ulid";
|
|
3620
3620
|
async function loadRunLocalAgentTurn() {
|
|
3621
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
3621
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-4CM3VHR3.js");
|
|
3622
3622
|
return runLocalAgentTurn;
|
|
3623
3623
|
}
|
|
3624
3624
|
async function resolveCurrentMachineId(options) {
|
|
@@ -4055,7 +4055,7 @@ async function runLocalAgentTurnForCli(options, settings) {
|
|
|
4055
4055
|
} : void 0;
|
|
4056
4056
|
const currentDialogId = options.continueDialogId ?? ulid();
|
|
4057
4057
|
const runChildTurn = async (input) => {
|
|
4058
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
4058
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-4CM3VHR3.js");
|
|
4059
4059
|
return runLocalAgentTurn(input);
|
|
4060
4060
|
};
|
|
4061
4061
|
const createFreshChildBaseAdapter = () => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listUserRecordsFromServers,
|
|
3
3
|
readLiveDbRecordAfterTombstoneMerge
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4UUJFFMK.js";
|
|
5
5
|
import {
|
|
6
6
|
agentRecordHasConfiguredCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5R73BS7Y.js";
|
|
8
8
|
import {
|
|
9
9
|
toSafeAgentSummary
|
|
10
10
|
} from "./chunk-OOIN7HSO.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
toTimestampMs,
|
|
11
11
|
upsert,
|
|
12
12
|
write
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-A5V7UEZJ.js";
|
|
14
14
|
import {
|
|
15
15
|
createUserKey,
|
|
16
16
|
createUserPreferenceKey,
|
|
@@ -65,6 +65,27 @@ var DEFAULT_USER_PREFERENCE_PROFILE = {
|
|
|
65
65
|
spaceContextLevel: 3
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
+
// packages/ai/tools/agentCapabilities.ts
|
|
69
|
+
var SYSTEM_AGENT_CAPABILITIES = [
|
|
70
|
+
{
|
|
71
|
+
id: "web-search",
|
|
72
|
+
label: "\u8054\u7F51\u641C\u7D22",
|
|
73
|
+
description: "\u8BA9 agent \u80FD\u641C\u7D22\u4E92\u8054\u7F51\u3001\u6293\u53D6\u7F51\u9875\u5185\u5BB9\uFF0C\u83B7\u53D6\u6700\u65B0\u4FE1\u606F\u3002",
|
|
74
|
+
tools: ["exa_search", "fetchWebpage"],
|
|
75
|
+
defaultEnabled: true,
|
|
76
|
+
icon: "\u{1F310}"
|
|
77
|
+
}
|
|
78
|
+
];
|
|
79
|
+
var SYSTEM_AGENT_CAPABILITY_IDS = SYSTEM_AGENT_CAPABILITIES.map(
|
|
80
|
+
({ id }) => id
|
|
81
|
+
);
|
|
82
|
+
var DEFAULT_SYSTEM_AGENT_CAPABILITIES = Object.fromEntries(
|
|
83
|
+
SYSTEM_AGENT_CAPABILITIES.map(({ id, defaultEnabled }) => [
|
|
84
|
+
id,
|
|
85
|
+
defaultEnabled
|
|
86
|
+
])
|
|
87
|
+
);
|
|
88
|
+
|
|
68
89
|
// packages/ai/policy/selfUpdateFields.ts
|
|
69
90
|
var AGENT_UPDATE_FIELD_NAMES = [
|
|
70
91
|
"name",
|
|
@@ -934,8 +955,11 @@ var initialState = {
|
|
|
934
955
|
desktopChromeConnectorEnabled: false,
|
|
935
956
|
developerModeEnabled: false,
|
|
936
957
|
diagnosticModeEnabled: false,
|
|
937
|
-
deleteShortcut: typeof window !== "undefined" && typeof window.navigator !== "undefined" && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform) ? "meta+backspace" : "ctrl+backspace"
|
|
958
|
+
deleteShortcut: typeof window !== "undefined" && typeof window.navigator !== "undefined" && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform) ? "meta+backspace" : "ctrl+backspace",
|
|
959
|
+
// 系统内置 Skill 默认全开;用户可在设置页单关。目前只有 web-search。
|
|
960
|
+
systemBuiltinSkills: { ...DEFAULT_SYSTEM_AGENT_CAPABILITIES }
|
|
938
961
|
};
|
|
962
|
+
var DEFAULT_SYSTEM_BUILTIN_SKILLS = DEFAULT_SYSTEM_AGENT_CAPABILITIES;
|
|
939
963
|
|
|
940
964
|
// packages/database/userPreferenceRegister.ts
|
|
941
965
|
var USER_PREFERENCE_NAMES = {
|
|
@@ -1072,6 +1096,15 @@ var omitKeys = (record, keys) => {
|
|
|
1072
1096
|
});
|
|
1073
1097
|
return next;
|
|
1074
1098
|
};
|
|
1099
|
+
var isRecordLike = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
1100
|
+
var normalizeSystemBuiltinSkills = (value, defaults) => {
|
|
1101
|
+
const base = isRecordLike(value) ? value : {};
|
|
1102
|
+
const result = { ...defaults };
|
|
1103
|
+
for (const key of Object.keys(base)) {
|
|
1104
|
+
result[key] = Boolean(base[key]);
|
|
1105
|
+
}
|
|
1106
|
+
return result;
|
|
1107
|
+
};
|
|
1075
1108
|
|
|
1076
1109
|
// packages/app/settings/settingPersistence.ts
|
|
1077
1110
|
var normalizeSettingChanges = (changes) => {
|
|
@@ -1131,6 +1164,15 @@ var normalizeSettingChanges = (changes) => {
|
|
|
1131
1164
|
)
|
|
1132
1165
|
};
|
|
1133
1166
|
}
|
|
1167
|
+
if (hasOwn(normalizedChanges, "systemBuiltinSkills")) {
|
|
1168
|
+
normalizedChanges = {
|
|
1169
|
+
...normalizedChanges,
|
|
1170
|
+
systemBuiltinSkills: normalizeSystemBuiltinSkills(
|
|
1171
|
+
normalizedChanges.systemBuiltinSkills,
|
|
1172
|
+
DEFAULT_SYSTEM_BUILTIN_SKILLS
|
|
1173
|
+
)
|
|
1174
|
+
};
|
|
1175
|
+
}
|
|
1134
1176
|
return normalizedChanges;
|
|
1135
1177
|
};
|
|
1136
1178
|
var LOCAL_APPEARANCE_KEY_NAMES = [
|
|
@@ -1357,6 +1399,13 @@ var selectDeleteShortcut = (state) => {
|
|
|
1357
1399
|
var selectEditorFontSize = (state) => state.settings.editorFontSize;
|
|
1358
1400
|
var selectEditorAutoSave = (state) => state.settings.editorAutoSave;
|
|
1359
1401
|
var selectEditorAutoSaveInterval = (state) => state.settings.editorAutoSaveInterval;
|
|
1402
|
+
var selectSystemBuiltinSkills = createSelector(
|
|
1403
|
+
[(state) => state.settings.systemBuiltinSkills],
|
|
1404
|
+
(systemBuiltinSkills) => normalizeSystemBuiltinSkills(
|
|
1405
|
+
systemBuiltinSkills,
|
|
1406
|
+
DEFAULT_SYSTEM_BUILTIN_SKILLS
|
|
1407
|
+
)
|
|
1408
|
+
);
|
|
1360
1409
|
|
|
1361
1410
|
// packages/app/settings/editorConfigSelectors.ts
|
|
1362
1411
|
var selectEditorCodeTheme = createSelector(
|
|
@@ -1958,6 +2007,8 @@ var settingSlice_default = settingSlice.reducer;
|
|
|
1958
2007
|
export {
|
|
1959
2008
|
DEFAULT_AGENT_BASE_POLICY,
|
|
1960
2009
|
DEFAULT_USER_PREFERENCE_PROFILE,
|
|
2010
|
+
SYSTEM_AGENT_CAPABILITIES,
|
|
2011
|
+
SYSTEM_AGENT_CAPABILITY_IDS,
|
|
1961
2012
|
AGENT_UPDATE_FIELD_NAMES,
|
|
1962
2013
|
normalizeAgentUpdateFieldList,
|
|
1963
2014
|
SYSTEM_DEFAULT_AGENT_ID,
|
|
@@ -2017,6 +2068,7 @@ export {
|
|
|
2017
2068
|
selectEditorFontSize,
|
|
2018
2069
|
selectEditorAutoSave,
|
|
2019
2070
|
selectEditorAutoSaveInterval,
|
|
2071
|
+
selectSystemBuiltinSkills,
|
|
2020
2072
|
selectEditorCodeTheme,
|
|
2021
2073
|
selectEditorConfig,
|
|
2022
2074
|
selectTheme,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BMZRD37B.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2Q5FTOQA.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VQFY3VXW.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveLocalRuntimeEnvFromPolicy
|
|
13
13
|
} from "./chunk-5CS33IBL.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
prepareAndPersistMessage,
|
|
4
4
|
uiAskChoiceFunc,
|
|
5
5
|
uiAskChoiceFunctionSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LVJFD5HS.js";
|
|
7
7
|
import {
|
|
8
8
|
require_date_fns
|
|
9
9
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
removeCachedEntity,
|
|
22
22
|
upsertSSREntity,
|
|
23
23
|
write
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-A5V7UEZJ.js";
|
|
25
25
|
import {
|
|
26
26
|
createAgentKey,
|
|
27
27
|
createDialogKey,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateContentTitle
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LVJFD5HS.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-A5V7UEZJ.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-GHVLL7YQ.js");
|
|
371
371
|
return createPageAction(args, thunkApi);
|
|
372
372
|
}
|
|
373
373
|
function subscribe(listener) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readDbRecord,
|
|
3
3
|
writeAgentRecord
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5R73BS7Y.js";
|
|
5
5
|
import {
|
|
6
6
|
buildSkillSummaryMarker
|
|
7
7
|
} from "./chunk-VF4K2QE6.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-VC6OZXO5.js";
|
|
11
11
|
import {
|
|
12
12
|
createSpaceKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3FCSMQAC.js";
|
|
14
14
|
import {
|
|
15
15
|
asTrimmedLowercaseString
|
|
16
16
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LVJFD5HS.js";
|
|
4
4
|
import "./chunk-V2J635L5.js";
|
|
5
5
|
import "./chunk-MRC4Q34M.js";
|
|
6
6
|
import "./chunk-MTU75CZ2.js";
|
|
7
7
|
import "./chunk-CWMSB67P.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-CPGQAMHA.js";
|
|
9
|
+
import "./chunk-V6VXDXGY.js";
|
|
10
10
|
import "./chunk-Z4NR32XR.js";
|
|
11
11
|
import "./chunk-M76ECQRD.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-3B2LFO6R.js";
|
|
13
13
|
import "./chunk-5MMAK75Q.js";
|
|
14
14
|
import "./chunk-OGGHETUE.js";
|
|
15
15
|
import "./chunk-5CS33IBL.js";
|
|
@@ -22,13 +22,13 @@ import "./chunk-HNMXYYJR.js";
|
|
|
22
22
|
import "./chunk-SOTZ6RDN.js";
|
|
23
23
|
import "./chunk-IKXL2HZ3.js";
|
|
24
24
|
import "./chunk-524BDL33.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-S5UACFUP.js";
|
|
26
26
|
import "./chunk-Y5GCAMGP.js";
|
|
27
27
|
import "./chunk-KX6YBIHG.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-3FCSMQAC.js";
|
|
29
29
|
import {
|
|
30
30
|
write
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-A5V7UEZJ.js";
|
|
32
32
|
import {
|
|
33
33
|
buildAgentAutomationOwnerIndexValue,
|
|
34
34
|
createAgentAutomationKey,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDialogAction,
|
|
3
3
|
isLocalOwnerDialogAgents
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VFGBWVXO.js";
|
|
5
5
|
import "./chunk-VC6OZXO5.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-LVJFD5HS.js";
|
|
7
7
|
import "./chunk-V2J635L5.js";
|
|
8
8
|
import "./chunk-MRC4Q34M.js";
|
|
9
9
|
import "./chunk-MTU75CZ2.js";
|
|
10
10
|
import "./chunk-CWMSB67P.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-CPGQAMHA.js";
|
|
12
|
+
import "./chunk-V6VXDXGY.js";
|
|
13
13
|
import "./chunk-Z4NR32XR.js";
|
|
14
14
|
import "./chunk-M76ECQRD.js";
|
|
15
15
|
import "./chunk-WZSRQNQG.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-3B2LFO6R.js";
|
|
17
17
|
import "./chunk-5MMAK75Q.js";
|
|
18
18
|
import "./chunk-OGGHETUE.js";
|
|
19
19
|
import "./chunk-5CS33IBL.js";
|
|
@@ -26,11 +26,11 @@ import "./chunk-HNMXYYJR.js";
|
|
|
26
26
|
import "./chunk-SOTZ6RDN.js";
|
|
27
27
|
import "./chunk-IKXL2HZ3.js";
|
|
28
28
|
import "./chunk-524BDL33.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-S5UACFUP.js";
|
|
30
30
|
import "./chunk-Y5GCAMGP.js";
|
|
31
31
|
import "./chunk-KX6YBIHG.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-3FCSMQAC.js";
|
|
33
|
+
import "./chunk-A5V7UEZJ.js";
|
|
34
34
|
import "./chunk-O4BU24WZ.js";
|
|
35
35
|
import "./chunk-I42VC5KR.js";
|
|
36
36
|
import "./chunk-WWC7I6TA.js";
|
|
@@ -18,17 +18,17 @@ import {
|
|
|
18
18
|
addContentToSpace,
|
|
19
19
|
client_default,
|
|
20
20
|
selectCurrentSpaceId
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LVJFD5HS.js";
|
|
22
22
|
import "./chunk-V2J635L5.js";
|
|
23
23
|
import "./chunk-MRC4Q34M.js";
|
|
24
24
|
import "./chunk-MTU75CZ2.js";
|
|
25
25
|
import "./chunk-CWMSB67P.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-CPGQAMHA.js";
|
|
27
|
+
import "./chunk-V6VXDXGY.js";
|
|
28
28
|
import "./chunk-Z4NR32XR.js";
|
|
29
29
|
import "./chunk-M76ECQRD.js";
|
|
30
30
|
import "./chunk-WZSRQNQG.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-3B2LFO6R.js";
|
|
32
32
|
import "./chunk-5MMAK75Q.js";
|
|
33
33
|
import "./chunk-OGGHETUE.js";
|
|
34
34
|
import "./chunk-5CS33IBL.js";
|
|
@@ -41,13 +41,13 @@ import "./chunk-HNMXYYJR.js";
|
|
|
41
41
|
import "./chunk-SOTZ6RDN.js";
|
|
42
42
|
import "./chunk-IKXL2HZ3.js";
|
|
43
43
|
import "./chunk-524BDL33.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-S5UACFUP.js";
|
|
45
45
|
import "./chunk-Y5GCAMGP.js";
|
|
46
46
|
import "./chunk-KX6YBIHG.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-3FCSMQAC.js";
|
|
48
48
|
import {
|
|
49
49
|
write
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-A5V7UEZJ.js";
|
|
51
51
|
import {
|
|
52
52
|
createPageKey
|
|
53
53
|
} from "./chunk-O4BU24WZ.js";
|