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
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
} from "./chunk-VF4K2QE6.js";
|
|
35
35
|
import {
|
|
36
36
|
createDocState
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-XBZL4SGS.js";
|
|
38
38
|
import {
|
|
39
39
|
createDialogAction
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-VFGBWVXO.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-LVJFD5HS.js";
|
|
80
80
|
import {
|
|
81
81
|
createAgent,
|
|
82
82
|
runLlm,
|
|
83
83
|
streamAgentChatTurn,
|
|
84
84
|
updateAgent
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-CPGQAMHA.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-3B2LFO6R.js";
|
|
105
105
|
import {
|
|
106
106
|
DEFAULT_MODEL
|
|
107
107
|
} from "./chunk-OGGHETUE.js";
|
|
@@ -130,14 +130,16 @@ import {
|
|
|
130
130
|
} from "./chunk-HNMXYYJR.js";
|
|
131
131
|
import {
|
|
132
132
|
shareResourceAction
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-BHK5ZAW7.js";
|
|
134
134
|
import {
|
|
135
135
|
AGENT_UPDATE_FIELD_NAMES,
|
|
136
|
+
SYSTEM_AGENT_CAPABILITIES,
|
|
137
|
+
SYSTEM_AGENT_CAPABILITY_IDS,
|
|
136
138
|
normalizeAgentUpdateFieldList,
|
|
137
139
|
selectAutoApproveSelfUpdateFields,
|
|
138
140
|
selectCurrentServer,
|
|
139
141
|
selectSyncServers
|
|
140
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-S5UACFUP.js";
|
|
141
143
|
import {
|
|
142
144
|
asRecordOrEmpty
|
|
143
145
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -145,7 +147,7 @@ import {
|
|
|
145
147
|
addContentAction,
|
|
146
148
|
createSpaceKey,
|
|
147
149
|
normalizeSpaceId
|
|
148
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-3FCSMQAC.js";
|
|
149
151
|
import {
|
|
150
152
|
patch,
|
|
151
153
|
read,
|
|
@@ -153,7 +155,7 @@ import {
|
|
|
153
155
|
readAndWaitAction,
|
|
154
156
|
toTimestampMs,
|
|
155
157
|
write
|
|
156
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-A5V7UEZJ.js";
|
|
157
159
|
import {
|
|
158
160
|
SEPARATOR,
|
|
159
161
|
createAgentKey,
|
|
@@ -11211,15 +11213,9 @@ var TOOL_PACKS = {
|
|
|
11211
11213
|
"fetchWebpage"
|
|
11212
11214
|
]
|
|
11213
11215
|
};
|
|
11216
|
+
var SYSTEM_AGENT_CAPABILITY_PACKS = SYSTEM_AGENT_CAPABILITIES.map((capability) => ({ ...capability }));
|
|
11214
11217
|
var CAPABILITY_PACKS = [
|
|
11215
|
-
|
|
11216
|
-
id: "web-search",
|
|
11217
|
-
label: "\u8054\u7F51\u641C\u7D22",
|
|
11218
|
-
description: "\u8BA9 agent \u80FD\u641C\u7D22\u4E92\u8054\u7F51\u3001\u6293\u53D6\u7F51\u9875\u5185\u5BB9\uFF0C\u83B7\u53D6\u6700\u65B0\u4FE1\u606F\u3002",
|
|
11219
|
-
tools: ["exa_search", "fetchWebpage"],
|
|
11220
|
-
defaultEnabled: true,
|
|
11221
|
-
icon: "\u{1F310}"
|
|
11222
|
-
},
|
|
11218
|
+
...SYSTEM_AGENT_CAPABILITY_PACKS,
|
|
11223
11219
|
{
|
|
11224
11220
|
id: "long-term-memory",
|
|
11225
11221
|
label: "\u957F\u671F\u8BB0\u5FC6",
|
|
@@ -11367,6 +11363,20 @@ var PACK_MANAGED_TOOLS = new Set(
|
|
|
11367
11363
|
var DEFAULT_ENABLED_PACKS = CAPABILITY_PACKS.filter(
|
|
11368
11364
|
(pack) => pack.defaultEnabled
|
|
11369
11365
|
).map((pack) => pack.id);
|
|
11366
|
+
var SYSTEM_BUILTIN_SKILL_PACK_IDS = SYSTEM_AGENT_CAPABILITY_IDS;
|
|
11367
|
+
function applySystemBuiltinSkillFilter(toolNames, systemBuiltinSkills) {
|
|
11368
|
+
if (!systemBuiltinSkills) return toolNames;
|
|
11369
|
+
const disabledToolSet = /* @__PURE__ */ new Set();
|
|
11370
|
+
for (const packId of SYSTEM_BUILTIN_SKILL_PACK_IDS) {
|
|
11371
|
+
const enabled = systemBuiltinSkills[packId];
|
|
11372
|
+
if (enabled === false) {
|
|
11373
|
+
const pack = CAPABILITY_PACK_BY_ID[packId];
|
|
11374
|
+
if (pack) pack.tools.forEach((t) => disabledToolSet.add(t));
|
|
11375
|
+
}
|
|
11376
|
+
}
|
|
11377
|
+
if (disabledToolSet.size === 0) return toolNames;
|
|
11378
|
+
return toolNames.filter((t) => !disabledToolSet.has(t));
|
|
11379
|
+
}
|
|
11370
11380
|
function expandEnabledPacks(enabledPacks, explicitTools = []) {
|
|
11371
11381
|
const packTools = (enabledPacks ?? []).map((id) => CAPABILITY_PACK_BY_ID[id]?.tools ?? []).flat();
|
|
11372
11382
|
return [.../* @__PURE__ */ new Set([...packTools, ...explicitTools ?? []])];
|
|
@@ -14104,7 +14114,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
14104
14114
|
const deletedDialogIds = [];
|
|
14105
14115
|
const deletedDialogKeys = [];
|
|
14106
14116
|
const failures = [];
|
|
14107
|
-
const { deleteDialog } = await import("./dialogSlice-
|
|
14117
|
+
const { deleteDialog } = await import("./dialogSlice-VNKDTTHR.js");
|
|
14108
14118
|
for (const target of targets) {
|
|
14109
14119
|
try {
|
|
14110
14120
|
await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
|
|
@@ -19756,7 +19766,7 @@ var selectUserIdFromState = (state) => typeof state?.auth?.currentUser?.userId =
|
|
|
19756
19766
|
var selectCurrentServerFromState = (state) => typeof state?.settings?.currentServer === "string" ? state.settings.currentServer : null;
|
|
19757
19767
|
async function addImageContentToSpace(input) {
|
|
19758
19768
|
const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
|
|
19759
|
-
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-
|
|
19769
|
+
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-4Z762DMR.js")).addContentAction;
|
|
19760
19770
|
await addContentAction2(
|
|
19761
19771
|
{
|
|
19762
19772
|
spaceId: input.spaceId,
|
|
@@ -23244,7 +23254,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
23244
23254
|
if (!executionInput) {
|
|
23245
23255
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
23246
23256
|
}
|
|
23247
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
23257
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-MWNK4RKM.js");
|
|
23248
23258
|
const { executor } = findToolExecutor2(run.toolName);
|
|
23249
23259
|
toolRunStarted({
|
|
23250
23260
|
id: run.id,
|
|
@@ -23268,7 +23278,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
23268
23278
|
const latestState = thunkApi.getState();
|
|
23269
23279
|
const userId = latestState.auth?.currentUser?.userId;
|
|
23270
23280
|
if (userId) {
|
|
23271
|
-
const { fetchUserSpaceMemberships } = await import("./spaceSlice-
|
|
23281
|
+
const { fetchUserSpaceMemberships } = await import("./spaceSlice-6PZEMRZM.js");
|
|
23272
23282
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
23273
23283
|
}
|
|
23274
23284
|
}
|
|
@@ -25671,7 +25681,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
25671
25681
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
25672
25682
|
};
|
|
25673
25683
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
25674
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
25684
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-W4KEEPCW.js");
|
|
25675
25685
|
if (getDocState().pageKey === id) {
|
|
25676
25686
|
applyExternalDocUpdate({
|
|
25677
25687
|
slateData: finalSlateData,
|
|
@@ -25696,7 +25706,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
25696
25706
|
// packages/ai/tools/updateUserPreferenceProfileTool.ts
|
|
25697
25707
|
async function dispatchSetSettings(thunkApi, changes) {
|
|
25698
25708
|
const injectedSetSettings = thunkApi?.extra?.setSettings;
|
|
25699
|
-
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-
|
|
25709
|
+
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-FTWZ5ZHT.js")).setSettings;
|
|
25700
25710
|
await thunkApi.dispatch(setSettings(changes)).unwrap();
|
|
25701
25711
|
}
|
|
25702
25712
|
var updateUserPreferenceProfileFunctionSchema = {
|
|
@@ -27908,6 +27918,7 @@ export {
|
|
|
27908
27918
|
formatNotFoundRunCard,
|
|
27909
27919
|
isAgentRunTerminalStatus,
|
|
27910
27920
|
TOOL_PACKS,
|
|
27921
|
+
applySystemBuiltinSkillFilter,
|
|
27911
27922
|
expandEnabledPacks,
|
|
27912
27923
|
expandEnabledPackPromptPatches,
|
|
27913
27924
|
appendEnabledPackPromptPatches,
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./chunk-IKXL2HZ3.js";
|
|
7
7
|
import {
|
|
8
8
|
addContentAction
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3FCSMQAC.js";
|
|
10
10
|
import {
|
|
11
11
|
upload
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-A5V7UEZJ.js";
|
|
13
13
|
import {
|
|
14
14
|
getRuntimeServerContext
|
|
15
15
|
} from "./chunk-DVRHHFEA.js";
|
|
@@ -1832,6 +1832,9 @@ function fuzzyContextWindow(normalizedName) {
|
|
|
1832
1832
|
if (normalizedName.includes("glm-5.2") || normalizedName.includes("glm5.2")) return GLM_5_2_CONTEXT_WINDOW;
|
|
1833
1833
|
if (normalizedName.includes("deepseek")) return 1e6;
|
|
1834
1834
|
if (normalizedName.includes("gpt-5") || normalizedName.includes("gpt-4.1")) return 1047576;
|
|
1835
|
+
if (normalizedName.startsWith("cursor-grok-4.5")) return 1e6;
|
|
1836
|
+
if (normalizedName.includes("claude-4.6")) return 1e6;
|
|
1837
|
+
if (normalizedName.includes("gemini-3.1")) return 1e6;
|
|
1835
1838
|
if (normalizedName.includes("qwen3.6") || normalizedName.includes("qwen3p6")) return QWEN_3_6_CONTEXT_WINDOW;
|
|
1836
1839
|
if (normalizedName.includes("qwen3.7") || normalizedName.includes("qwen3p7")) return 262144;
|
|
1837
1840
|
if (normalizedName.includes("minimax-m2") || normalizedName.includes("minimax_m2")) return 262144;
|
|
@@ -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-N3KXFO5V.js");
|
|
782
782
|
return shareResourceAction(config, thunkApi);
|
|
783
783
|
}
|
|
784
784
|
),
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
buildLocalAgentLookupKeys,
|
|
13
13
|
normalizeAgentHandle,
|
|
14
14
|
shouldReadAgentKeyRemotely
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TQCONXQ3.js";
|
|
16
16
|
import {
|
|
17
17
|
LOCAL_CODEX_AGENT_ID,
|
|
18
18
|
LOCAL_CODEX_AGENT_KEY,
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
} from "./chunk-VHBWHNVT.js";
|
|
22
22
|
import {
|
|
23
23
|
inferCaptureIntent
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-T3X232L6.js";
|
|
25
25
|
import {
|
|
26
26
|
buildCliPrompt
|
|
27
27
|
} from "./chunk-ATNTHIZI.js";
|
|
28
28
|
import {
|
|
29
29
|
inlineImageUrlsForCustomProvider,
|
|
30
30
|
prepareTools
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-RTHJF57Z.js";
|
|
32
32
|
import {
|
|
33
33
|
getAntigravityUserAgent,
|
|
34
34
|
isAntigravityOAuthAgent,
|
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
addDefaultLightWebToolsForConfiguredAgents,
|
|
41
41
|
appendEnabledPackPromptPatches,
|
|
42
42
|
applyDisabledTools,
|
|
43
|
+
applySystemBuiltinSkillFilter,
|
|
43
44
|
expandEnabledPacks,
|
|
44
45
|
formatListRunsCard,
|
|
45
46
|
formatNotFoundRunCard,
|
|
@@ -51,7 +52,7 @@ import {
|
|
|
51
52
|
readXhsProfileFunc,
|
|
52
53
|
readXhsProfileFunctionSchema,
|
|
53
54
|
rememberMemoryFunctionSchema
|
|
54
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-2Q5FTOQA.js";
|
|
55
56
|
import {
|
|
56
57
|
createDrainExhaustedResponse,
|
|
57
58
|
isCoreDrainingBody,
|
|
@@ -63,13 +64,13 @@ import {
|
|
|
63
64
|
} from "./chunk-OWOHNGCN.js";
|
|
64
65
|
import {
|
|
65
66
|
prepareTokenUsageData
|
|
66
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-LVJFD5HS.js";
|
|
67
68
|
import {
|
|
68
69
|
BUILTIN_TITLE_LLM_CONFIG
|
|
69
70
|
} from "./chunk-V2J635L5.js";
|
|
70
71
|
import {
|
|
71
72
|
fetchServerSyncedCredential
|
|
72
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-CPGQAMHA.js";
|
|
73
74
|
import {
|
|
74
75
|
buildAgentRuntimeDialogWritePlan,
|
|
75
76
|
buildLocalWorkspaceOpenAiTools,
|
|
@@ -82,7 +83,7 @@ import {
|
|
|
82
83
|
parseSseDataLineJson,
|
|
83
84
|
readOpenAiCompatibleSseCompletion,
|
|
84
85
|
resolveOpenAiCompatibleProviderConfig
|
|
85
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-33K5FKRL.js";
|
|
86
87
|
import {
|
|
87
88
|
buildPlatformChatCompletionRequest,
|
|
88
89
|
canUsePlatformChatProvider,
|
|
@@ -99,7 +100,7 @@ import {
|
|
|
99
100
|
import {
|
|
100
101
|
parseToolArgumentsJson,
|
|
101
102
|
summarizeToolArguments
|
|
102
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-VQFY3VXW.js";
|
|
103
104
|
import {
|
|
104
105
|
buildLoadSkillExecutor,
|
|
105
106
|
buildNoloWorkspaceCliToolExecutors,
|
|
@@ -144,6 +145,7 @@ import {
|
|
|
144
145
|
} from "./chunk-KX6YBIHG.js";
|
|
145
146
|
import {
|
|
146
147
|
createTokenKey,
|
|
148
|
+
createUserKey,
|
|
147
149
|
dialogMessageRange
|
|
148
150
|
} from "./chunk-O4BU24WZ.js";
|
|
149
151
|
import {
|
|
@@ -248,6 +250,26 @@ var STRINGS = {
|
|
|
248
250
|
en: "Started a fresh dialog.",
|
|
249
251
|
zh: "\u5DF2\u5F00\u59CB\u65B0\u5BF9\u8BDD\u3002"
|
|
250
252
|
},
|
|
253
|
+
clearingDialog: {
|
|
254
|
+
en: "Clearing current dialog messages...",
|
|
255
|
+
zh: "\u6B63\u5728\u6E05\u9664\u5F53\u524D\u5BF9\u8BDD\u6D88\u606F\u2026"
|
|
256
|
+
},
|
|
257
|
+
clearedDialog: {
|
|
258
|
+
en: "Cleared current dialog messages.",
|
|
259
|
+
zh: "\u5DF2\u6E05\u9664\u5F53\u524D\u5BF9\u8BDD\u6D88\u606F\u3002"
|
|
260
|
+
},
|
|
261
|
+
clearNoDialog: {
|
|
262
|
+
en: "No current dialog messages to clear.",
|
|
263
|
+
zh: "\u5F53\u524D\u6CA1\u6709\u53EF\u6E05\u9664\u7684\u5BF9\u8BDD\u6D88\u606F\u3002"
|
|
264
|
+
},
|
|
265
|
+
clearUsage: {
|
|
266
|
+
en: "Usage: /clear",
|
|
267
|
+
zh: "\u7528\u6CD5\uFF1A/clear"
|
|
268
|
+
},
|
|
269
|
+
contextNextClear: {
|
|
270
|
+
en: "clear current dialog messages",
|
|
271
|
+
zh: "\u6E05\u9664\u5F53\u524D\u5BF9\u8BDD\u6D88\u606F"
|
|
272
|
+
},
|
|
251
273
|
bye: {
|
|
252
274
|
en: "Bye.",
|
|
253
275
|
zh: "\u518D\u89C1\u3002"
|
|
@@ -353,12 +375,12 @@ var STRINGS = {
|
|
|
353
375
|
zh: "\u7528\u6CD5\uFF1A/copy \u6216 /copy view"
|
|
354
376
|
},
|
|
355
377
|
copyViewTitle: {
|
|
356
|
-
en: "Copy view \u2014
|
|
357
|
-
zh: "\u590D\u5236\u89C6\u56FE \u2014 \
|
|
378
|
+
en: "Copy view \u2014 conversation history",
|
|
379
|
+
zh: "\u590D\u5236\u89C6\u56FE \u2014 \u5BF9\u8BDD\u5386\u53F2"
|
|
358
380
|
},
|
|
359
381
|
copyViewHint: {
|
|
360
|
-
en: "Drag to select
|
|
361
|
-
zh: "\u76F4\u63A5\u62D6\u9009\
|
|
382
|
+
en: "Drag to select. Use PageUp/PageDown, Home/End, or the mouse wheel to scroll. Press Esc or Enter to return.",
|
|
383
|
+
zh: "\u76F4\u63A5\u62D6\u9009\u3002\u53EF\u7528 PageUp/PageDown\u3001Home/End \u6216\u9F20\u6807\u6EDA\u8F6E\u6EDA\u52A8\u3002\u6309 Esc \u6216 Enter \u8FD4\u56DE\u3002"
|
|
362
384
|
},
|
|
363
385
|
historyNoToken: {
|
|
364
386
|
en: "History requires an auth token. Run `nolo login` or set AUTH_TOKEN.",
|
|
@@ -9183,7 +9205,10 @@ function normalizeRuntimeCacheCwd(cwd) {
|
|
|
9183
9205
|
return (cwd?.trim() || process.cwd()).replace(/\/+$/, "") || ".";
|
|
9184
9206
|
}
|
|
9185
9207
|
function buildPreparedAgentCacheKey(args) {
|
|
9186
|
-
|
|
9208
|
+
const systemBuiltinSkillsKey = args.systemBuiltinSkills ? JSON.stringify(
|
|
9209
|
+
Object.keys(args.systemBuiltinSkills).sort().map((key) => [key, args.systemBuiltinSkills?.[key]])
|
|
9210
|
+
) : "default";
|
|
9211
|
+
return `${args.userId}\0${args.agentRef}\0${args.cwd}\0${systemBuiltinSkillsKey}`;
|
|
9187
9212
|
}
|
|
9188
9213
|
function clearCliLocalRuntimePreparedAgentCache() {
|
|
9189
9214
|
preparedAgentRuntimeCache.clear();
|
|
@@ -9306,28 +9331,30 @@ function withRuntimeEnabledPacksAndPrompt(config) {
|
|
|
9306
9331
|
...prompt ? { prompt } : {}
|
|
9307
9332
|
};
|
|
9308
9333
|
}
|
|
9309
|
-
function resolveCliRequestedToolNames(agentConfig, env) {
|
|
9334
|
+
function resolveCliRequestedToolNames(agentConfig, env, systemBuiltinSkills) {
|
|
9310
9335
|
const declaredOnly = shouldUseDeclaredOnlyLocalWorkspaceTools(env);
|
|
9311
|
-
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
|
|
9319
|
-
|
|
9320
|
-
|
|
9321
|
-
|
|
9322
|
-
|
|
9323
|
-
|
|
9324
|
-
|
|
9325
|
-
)
|
|
9326
|
-
),
|
|
9327
|
-
env
|
|
9336
|
+
const expanded = addDefaultLightWebToolsForConfiguredAgents(
|
|
9337
|
+
addDefaultCliCoreTools(
|
|
9338
|
+
canonicalizeToolNames(
|
|
9339
|
+
expandEnabledPacks(
|
|
9340
|
+
// CLI 端默认开 code 能力包:enabledPacks 为空时补 ["code"],保持
|
|
9341
|
+
// 「CLI agent 默认能改代码」的体感,但走显式能力包而非隐式兜底
|
|
9342
|
+
// (DEFAULT_LOCAL_CODING_TOOL_NAMES 已删除)。
|
|
9343
|
+
// declared-only 模式下不补——用户显式要 ablation。
|
|
9344
|
+
resolveCliEffectiveEnabledPacks({
|
|
9345
|
+
enabledPacks: agentConfig?.enabledPacks,
|
|
9346
|
+
declaredOnly
|
|
9347
|
+
}),
|
|
9348
|
+
resolveRequestedRuntimeToolNames({ agentConfig })
|
|
9349
|
+
)
|
|
9328
9350
|
),
|
|
9329
|
-
|
|
9351
|
+
env
|
|
9330
9352
|
),
|
|
9353
|
+
agentConfig
|
|
9354
|
+
);
|
|
9355
|
+
const filtered = applySystemBuiltinSkillFilter(expanded, systemBuiltinSkills);
|
|
9356
|
+
return applyDisabledTools(
|
|
9357
|
+
filtered,
|
|
9331
9358
|
agentConfig?.disabledTools
|
|
9332
9359
|
);
|
|
9333
9360
|
}
|
|
@@ -9802,10 +9829,23 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
9802
9829
|
"local-tools"
|
|
9803
9830
|
],
|
|
9804
9831
|
loadAgentConfig: async (agentRef) => {
|
|
9832
|
+
let systemBuiltinSkills = null;
|
|
9833
|
+
const sharedStore = await getOrCreateSharedStore(deps);
|
|
9834
|
+
if (userId) {
|
|
9835
|
+
try {
|
|
9836
|
+
const settingsRecord = await sharedStore.read(
|
|
9837
|
+
createUserKey.settings(userId),
|
|
9838
|
+
{ remote: false }
|
|
9839
|
+
);
|
|
9840
|
+
systemBuiltinSkills = settingsRecord && typeof settingsRecord === "object" ? settingsRecord.systemBuiltinSkills ?? null : null;
|
|
9841
|
+
} catch {
|
|
9842
|
+
}
|
|
9843
|
+
}
|
|
9805
9844
|
const cacheKey = buildPreparedAgentCacheKey({
|
|
9806
9845
|
userId,
|
|
9807
9846
|
agentRef,
|
|
9808
|
-
cwd: normalizeRuntimeCacheCwd(workspaceRoot)
|
|
9847
|
+
cwd: normalizeRuntimeCacheCwd(workspaceRoot),
|
|
9848
|
+
systemBuiltinSkills
|
|
9809
9849
|
});
|
|
9810
9850
|
const cached = deps.pastedTextStore ? void 0 : preparedAgentRuntimeCache.get(cacheKey);
|
|
9811
9851
|
if (cached) {
|
|
@@ -9825,7 +9865,7 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
9825
9865
|
deps.env
|
|
9826
9866
|
);
|
|
9827
9867
|
const agentConfig = baseAgentConfig ? withRuntimeEnabledPacksAndPrompt(baseAgentConfig) : baseAgentConfig;
|
|
9828
|
-
const requestedToolNames = agentConfig ? resolveCliRequestedToolNames(agentConfig, deps.env) : [];
|
|
9868
|
+
const requestedToolNames = agentConfig ? resolveCliRequestedToolNames(agentConfig, deps.env, systemBuiltinSkills) : [];
|
|
9829
9869
|
activeAgentToolNames = buildLocalPolicyToolNames({
|
|
9830
9870
|
agentKey: agentConfig?.key,
|
|
9831
9871
|
toolNames: [...requestedToolNames, ...additionalToolNames],
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
patch,
|
|
12
12
|
remove,
|
|
13
13
|
write
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-A5V7UEZJ.js";
|
|
15
15
|
import {
|
|
16
16
|
createAgentKey,
|
|
17
17
|
toTrimmedString
|
|
@@ -300,7 +300,7 @@ var slice = createSliceWithThunks({
|
|
|
300
300
|
const overrides = {};
|
|
301
301
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
302
302
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
303
|
-
const { _executeModel } = await import("./_executeModel-
|
|
303
|
+
const { _executeModel } = await import("./_executeModel-KMUDFYY2.js");
|
|
304
304
|
return _executeModel(
|
|
305
305
|
{
|
|
306
306
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -321,7 +321,7 @@ var slice = createSliceWithThunks({
|
|
|
321
321
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
322
322
|
*/
|
|
323
323
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
324
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
324
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-6D7FP7CK.js");
|
|
325
325
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
326
326
|
{
|
|
327
327
|
agentKey: args.agentKey,
|
|
@@ -337,7 +337,7 @@ var slice = createSliceWithThunks({
|
|
|
337
337
|
* 聊天轮次流式 Agent 调用
|
|
338
338
|
*/
|
|
339
339
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
340
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
340
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-VW7433O6.js");
|
|
341
341
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
342
342
|
}),
|
|
343
343
|
/**
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RTHJF57Z.js";
|
|
9
9
|
import {
|
|
10
10
|
performFetchRequest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-HJAMZQFI.js";
|
|
12
12
|
import {
|
|
13
13
|
getPublicImageAgentMode
|
|
14
14
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -22,20 +22,20 @@ import {
|
|
|
22
22
|
toolRunSetPending,
|
|
23
23
|
toolRunStarted,
|
|
24
24
|
toolRunSucceeded
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-2Q5FTOQA.js";
|
|
26
26
|
import {
|
|
27
27
|
addToolMessage,
|
|
28
28
|
messageStreamEnd,
|
|
29
29
|
messageStreaming,
|
|
30
30
|
selectCurrentSpaceId,
|
|
31
31
|
updateToolMessage
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-LVJFD5HS.js";
|
|
33
33
|
import {
|
|
34
34
|
streamAgentChatTurn
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-CPGQAMHA.js";
|
|
36
36
|
import {
|
|
37
37
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-VQFY3VXW.js";
|
|
39
39
|
import {
|
|
40
40
|
accumulateToolCallDelta,
|
|
41
41
|
createThinkParserState,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
} from "./chunk-3WGLLTK4.js";
|
|
45
45
|
import {
|
|
46
46
|
getModelInfo
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-3B2LFO6R.js";
|
|
48
48
|
import {
|
|
49
49
|
getApiEndpoint
|
|
50
50
|
} from "./chunk-OGGHETUE.js";
|
|
@@ -61,10 +61,10 @@ import {
|
|
|
61
61
|
} from "./chunk-HNMXYYJR.js";
|
|
62
62
|
import {
|
|
63
63
|
selectCurrentServer
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-S5UACFUP.js";
|
|
65
65
|
import {
|
|
66
66
|
write
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-A5V7UEZJ.js";
|
|
68
68
|
import {
|
|
69
69
|
createDialogMessageKeyAndId,
|
|
70
70
|
dialogMessageKey,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearCliLocalRuntimePreparedAgentCache
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BMZRD37B.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-5R73BS7Y.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveCliAgentKeyInput
|
|
18
18
|
} from "./chunk-VHBWHNVT.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
clipMultilineText,
|
|
7
7
|
fetchAndSerializeTable,
|
|
8
8
|
waitForAbortableDelay
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2Q5FTOQA.js";
|
|
10
10
|
import {
|
|
11
11
|
createDrainExhaustedResponse,
|
|
12
12
|
isCoreDrainingBody,
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
fetchAndCacheMessages,
|
|
28
28
|
shouldUseServerProxy
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-LVJFD5HS.js";
|
|
30
30
|
import {
|
|
31
31
|
fetchServerSyncedCredential
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-CPGQAMHA.js";
|
|
33
33
|
import {
|
|
34
34
|
buildCurrentTimeBlock,
|
|
35
35
|
buildIdentityBlock,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
} from "./chunk-B4KT7RN2.js";
|
|
51
51
|
import {
|
|
52
52
|
estimateTokenCount
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-3B2LFO6R.js";
|
|
54
54
|
import {
|
|
55
55
|
clampReasoningEffort,
|
|
56
56
|
getModelConfig,
|
|
@@ -76,10 +76,10 @@ import {
|
|
|
76
76
|
} from "./chunk-524BDL33.js";
|
|
77
77
|
import {
|
|
78
78
|
createSpaceKey
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-3FCSMQAC.js";
|
|
80
80
|
import {
|
|
81
81
|
read
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-A5V7UEZJ.js";
|
|
83
83
|
import {
|
|
84
84
|
asNonEmptyStringArray
|
|
85
85
|
} from "./chunk-I42VC5KR.js";
|