nolo-cli 0.26.2 → 0.27.0
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-ZPNYAEFW.js → _executeModel-GBJY45QW.js} +18 -18
- package/{agentDeleteCommand-5ZV4433K.js → agentDeleteCommand-VFHDZJG3.js} +12 -12
- package/{agentEmailCommands-Z7KOYDVQ.js → agentEmailCommands-NV64EI7G.js} +24 -24
- package/{agentListCommands-UQUXJYUN.js → agentListCommands-BDDUYHLP.js} +14 -14
- package/{agentMachineCommands-53O6P6L5.js → agentMachineCommands-2KYBYNLE.js} +13 -13
- package/{agentRecordCommands-ZRYNBSSS.js → agentRecordCommands-3OX576G3.js} +23 -23
- package/{agentRunCommand-B73MKVOG.js → agentRunCommand-FZOGN67Y.js} +23 -23
- package/{agentRuntimeLocal-GVNERRKQ.js → agentRuntimeLocal-552R4CZA.js} +9 -9
- package/{agentSlice-OJBHIL34.js → agentSlice-7AEBCNVZ.js} +1 -1
- package/{appDeleteCommands-23Z3Z6KE.js → appDeleteCommands-IPJT6IYW.js} +13 -13
- package/{appDeployCommands-3MFAR4Z7.js → appDeployCommands-24P4CADQ.js} +13 -13
- package/{appDeployStatusCommands-JHU6GSN4.js → appDeployStatusCommands-3DRZOUAG.js} +13 -13
- package/{appGetCommands-24J55H2Y.js → appGetCommands-JEOSBLUL.js} +13 -13
- package/{appListCommands-HE5KP3PH.js → appListCommands-EIBM54WR.js} +13 -13
- package/{authCommand-KGRK6MNU.js → authCommand-MKMYHD52.js} +6 -6
- package/{chunk-CWTT2NZ6.js → chunk-3X4IYB22.js} +2 -2
- package/{chunk-JJ2WUBFN.js → chunk-4FRIAKSZ.js} +1 -1
- package/{chunk-S7AV3NCK.js → chunk-56CPK6JE.js} +11 -11
- package/{chunk-KURQBS7S.js → chunk-6MBOZ4UP.js} +1 -1
- package/{chunk-PTKI7TIN.js → chunk-7OYLPHDL.js} +84 -32
- package/{chunk-AZW5AHMW.js → chunk-7WMLPRXP.js} +1 -1
- package/{chunk-AOPOTHFK.js → chunk-FRN5QOKN.js} +1 -1
- package/{chunk-LEHTC2FI.js → chunk-GT3GG2H7.js} +2 -1
- package/{chunk-AAWJ5S3G.js → chunk-H7N2NOJF.js} +1 -1
- package/{chunk-MCXQNEJ3.js → chunk-HALKDXKP.js} +1 -1
- package/{chunk-GGB6MPHD.js → chunk-HQFXBRI2.js} +16 -16
- package/{chunk-ZFL3LTU7.js → chunk-J7PB5GXH.js} +2 -2
- package/{chunk-CMKUBIGW.js → chunk-JDSUTNYY.js} +2 -2
- package/{chunk-PY7VGC5M.js → chunk-JQ3LNEMS.js} +3 -2
- package/{chunk-PMCKFQYC.js → chunk-KXEWHQAW.js} +1 -1
- package/{chunk-G36SUBHA.js → chunk-L3QFIBZG.js} +1 -1
- package/{chunk-GNGOZMU2.js → chunk-N32A423D.js} +2 -2
- package/{chunk-TNM27YZ7.js → chunk-NCRWA6ZB.js} +3 -3
- package/{chunk-5DWZ46RJ.js → chunk-O5VFD7V6.js} +1 -1
- package/{chunk-YJY7HODU.js → chunk-PVWFM7JP.js} +1 -1
- package/{chunk-ADE6577S.js → chunk-Q4TAIQTA.js} +11 -11
- package/{chunk-GD23ZX7Z.js → chunk-QCUS52YR.js} +3 -3
- package/{chunk-SIUEKVK4.js → chunk-TTPVLL5F.js} +103 -25
- package/{chunk-5EDKWSQN.js → chunk-UADEEVDX.js} +12 -266
- package/{chunk-XNZJVYFS.js → chunk-UTYJ47H2.js} +1 -1
- package/{chunk-RM464B7I.js → chunk-V7BUGVT2.js} +2 -2
- package/{chunk-TWA4L7J7.js → chunk-VV4TYWNV.js} +1 -1
- package/{chunk-TLYHUIWF.js → chunk-W2IOPRHX.js} +3 -3
- package/{chunk-CV6BM7LU.js → chunk-X43U4JUJ.js} +1 -1
- package/{chunk-PXPISYEH.js → chunk-XS7UPVR7.js} +2 -2
- package/{chunk-CZHE6LLV.js → chunk-YTA2QOEE.js} +20 -0
- package/{chunk-P3RZ6DHN.js → chunk-YZV4676I.js} +24 -15
- package/{chunk-LLDGWLML.js → chunk-Z3ORPMOA.js} +8 -8
- package/chunk-ZJ7WLPDP.js +553 -0
- package/{chunk-J2WT5CEO.js → chunk-ZNFZGHKL.js} +1 -1
- package/{cliExecutor-K3F7DMRO.js → cliExecutor-BBUVQU4L.js} +1 -1
- package/{createAgentAutomationAction-PO62NUR7.js → createAgentAutomationAction-YB65NAU5.js} +6 -6
- package/{createDialogAction-ORFRYI3C.js → createDialogAction-6USRBKKL.js} +7 -7
- package/{createPageAction-XWVMNTYH.js → createPageAction-ZGE3SG6J.js} +6 -6
- package/{dialogCommands-XTJHROXM.js → dialogCommands-O4CJJRTQ.js} +13 -13
- package/{dialogSlice-DJXC53YW.js → dialogSlice-HMRBZCSE.js} +6 -6
- package/{docCreateCommands-T2XRVXYS.js → docCreateCommands-2U5AIF3O.js} +12 -12
- package/{docDeleteCommands-L7RXFXY3.js → docDeleteCommands-EDCAUQEF.js} +13 -13
- package/{docReadCommands-M5PYNADQ.js → docReadCommands-KFMBFGPY.js} +12 -12
- package/{docStore-6LKLLFDW.js → docStore-ZGGDZFCC.js} +7 -7
- package/{docUpdateCommands-OA5EGPLQ.js → docUpdateCommands-57M4XOT7.js} +12 -12
- package/{getPricing-6C3C47Y4.js → getPricing-X6I23RN6.js} +3 -3
- package/{handleSendMessageAction-ILFGZTN5.js → handleSendMessageAction-ANCZXLQY.js} +6 -6
- package/index.js +47 -47
- package/{machineCommands-AKAQGPAO.js → machineCommands-6EG5U6TU.js} +23 -23
- package/{machineWsRunDispatch-RSBERM64.js → machineWsRunDispatch-SFIKRI4G.js} +22 -22
- package/{models-ILWKIX2Y.js → models-YT32CTT5.js} +2 -2
- package/package.json +1 -1
- package/{readlineWorkspace-TUH3SFHO.js → readlineWorkspace-TVIHBRN2.js} +30 -27
- package/{runAgentClientLoop-C3QB2EXV.js → runAgentClientLoop-SJ6QQ3ZS.js} +15 -15
- package/{spaceCommands-SXYOFGUJ.js → spaceCommands-XK46FRYG.js} +12 -12
- package/{spaceSlice-6BHMRP5O.js → spaceSlice-FNFNVXPQ.js} +6 -6
- package/{streamAgentChatTurn-GF5W5OIP.js → streamAgentChatTurn-HHIWP44U.js} +18 -18
- package/{tools-KBCLJ43G.js → tools-CT7AFBI3.js} +10 -10
- package/{tuiSummaryLlmCaller-ARIMGILF.js → tuiSummaryLlmCaller-GCUPULOV.js} +4 -4
- package/{updateDialogTitleAction-LMHZUY4Q.js → updateDialogTitleAction-7RFN5GA4.js} +6 -6
- package/chunk-ZUXIXYJI.js +0 -297
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
MENU_USAGE_INSTRUCTIONS,
|
|
3
2
|
buildCurrentTimeBlock,
|
|
4
3
|
buildIdentityBlock,
|
|
5
|
-
buildRuntimeGuidanceBlocks
|
|
6
|
-
|
|
4
|
+
buildRuntimeGuidanceBlocks,
|
|
5
|
+
resolveToolGuidedSections
|
|
6
|
+
} from "./chunk-ZJ7WLPDP.js";
|
|
7
7
|
import {
|
|
8
8
|
estimateTokenCount,
|
|
9
9
|
getModelContextWindow,
|
|
10
10
|
planCompression,
|
|
11
11
|
planContextUsage,
|
|
12
12
|
serializeMessageContent
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JQ3LNEMS.js";
|
|
14
14
|
import {
|
|
15
15
|
clipCompactText
|
|
16
16
|
} from "./chunk-5MMAK75Q.js";
|
|
17
17
|
import {
|
|
18
18
|
findModelConfig,
|
|
19
19
|
getProviderByModelName
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GT3GG2H7.js";
|
|
21
21
|
import {
|
|
22
22
|
buildDialogSummaryLayer
|
|
23
23
|
} from "./chunk-AL2V7U3E.js";
|
|
@@ -90,6 +90,7 @@ var isCustomAgent = (agent) => {
|
|
|
90
90
|
return apiSource === "custom" || provider === "custom";
|
|
91
91
|
};
|
|
92
92
|
var ANTIGRAVITY_EFFORT_SUFFIXES = [
|
|
93
|
+
"-tiered",
|
|
93
94
|
"-extra-low",
|
|
94
95
|
"-low",
|
|
95
96
|
"-medium",
|
|
@@ -327,9 +328,9 @@ var DEFAULT_TOOL_OUTPUT_PROFILE = {
|
|
|
327
328
|
headRatio: 0.5
|
|
328
329
|
};
|
|
329
330
|
var TOOL_OUTPUT_PROFILES = {
|
|
330
|
-
readFile: { maxChars: 4800, headRatio: 0.68 },
|
|
331
|
-
read_file: { maxChars: 4800, headRatio: 0.68 },
|
|
332
|
-
readWorkspaceFile: { maxChars: 4800, headRatio: 0.68 },
|
|
331
|
+
readFile: { maxChars: 4800, headRatio: 0.68, historicalMaxChars: 4800 },
|
|
332
|
+
read_file: { maxChars: 4800, headRatio: 0.68, historicalMaxChars: 4800 },
|
|
333
|
+
readWorkspaceFile: { maxChars: 4800, headRatio: 0.68, historicalMaxChars: 4800 },
|
|
333
334
|
searchFiles: { maxChars: 3600, headRatio: 0.78 },
|
|
334
335
|
search_files: { maxChars: 3600, headRatio: 0.78 },
|
|
335
336
|
listFiles: { maxChars: 2800, headRatio: 0.85 },
|
|
@@ -339,11 +340,15 @@ var TOOL_OUTPUT_PROFILES = {
|
|
|
339
340
|
launchProcess: { maxChars: 2800, headRatio: 0.35 },
|
|
340
341
|
editFile: { maxChars: 2800, headRatio: 0.62 },
|
|
341
342
|
writeFile: { maxChars: 2400, headRatio: 0.62 },
|
|
342
|
-
readPastedText: { maxChars: 4800, headRatio: 0.5 }
|
|
343
|
+
readPastedText: { maxChars: 4800, headRatio: 0.5, historicalMaxChars: 4800 }
|
|
343
344
|
};
|
|
344
345
|
function resolveToolOutputProfile(toolName) {
|
|
345
346
|
return (toolName ? TOOL_OUTPUT_PROFILES[toolName] : void 0) ?? DEFAULT_TOOL_OUTPUT_PROFILE;
|
|
346
347
|
}
|
|
348
|
+
function resolveHistoricalToolContentCap(toolName, historicalMaxChars) {
|
|
349
|
+
const profile = toolName ? TOOL_OUTPUT_PROFILES[toolName] : void 0;
|
|
350
|
+
return profile?.historicalMaxChars !== void 0 ? Math.max(historicalMaxChars, profile.historicalMaxChars) : historicalMaxChars;
|
|
351
|
+
}
|
|
347
352
|
function projectToolMessageContent(input) {
|
|
348
353
|
const { content, isFresh, toolName, historicalMaxChars } = input;
|
|
349
354
|
if (isFresh) {
|
|
@@ -356,8 +361,9 @@ function projectToolMessageContent(input) {
|
|
|
356
361
|
\u2026[\u622A\u65AD\uFF0C\u539F\u59CB\u957F\u5EA6 ${content.length} \u5B57\u7B26]`
|
|
357
362
|
);
|
|
358
363
|
}
|
|
359
|
-
|
|
360
|
-
|
|
364
|
+
const cap = resolveHistoricalToolContentCap(toolName, historicalMaxChars);
|
|
365
|
+
if (content.length <= cap) return content;
|
|
366
|
+
return content.slice(0, cap) + `
|
|
361
367
|
\u2026[\u622A\u65AD\uFF0C\u539F\u59CB\u957F\u5EA6 ${content.length} \u5B57\u7B26]`;
|
|
362
368
|
}
|
|
363
369
|
function clipToolText(content, maxChars, headRatio, marker = "\n\n[... tool output middle omitted; head/tail preserved ...]\n\n") {
|
|
@@ -990,12 +996,14 @@ ${suffix(clipped.length)}`;
|
|
|
990
996
|
return projected.length <= args.maxChars ? projected : projected.slice(0, args.maxChars);
|
|
991
997
|
}
|
|
992
998
|
function summarizeHistoricalToolContent(content, toolName, metadata) {
|
|
993
|
-
const profile = resolveToolOutputProfile(toolName);
|
|
994
999
|
return projectToolContentForProvider({
|
|
995
1000
|
content,
|
|
996
1001
|
toolName,
|
|
997
1002
|
metadata,
|
|
998
|
-
|
|
1003
|
+
// Same single source of truth as the server path and the read ledgers:
|
|
1004
|
+
// read-family tools keep their profile historical cap (4800) cross-turn,
|
|
1005
|
+
// unprofiled tools fall back to the flat historical budget.
|
|
1006
|
+
maxChars: resolveHistoricalToolContentCap(toolName, MAX_HISTORICAL_TOOL_CONTENT_CHARS),
|
|
999
1007
|
label: "historical tool result truncated for the next turn"
|
|
1000
1008
|
});
|
|
1001
1009
|
}
|
|
@@ -1258,13 +1266,13 @@ async function runLocalAgentTurn(input) {
|
|
|
1258
1266
|
agentConfig.exposedToolNames ?? agentConfig.toolNames ?? []
|
|
1259
1267
|
);
|
|
1260
1268
|
const guidanceBlocks = buildRuntimeGuidanceBlocks(agentTools);
|
|
1261
|
-
const
|
|
1269
|
+
const toolGuidedSections = resolveToolGuidedSections(agentTools);
|
|
1262
1270
|
const guidanceScopes = [
|
|
1263
1271
|
guidanceBlocks.startupProtocol,
|
|
1264
1272
|
guidanceBlocks.contextLayerContract,
|
|
1265
1273
|
guidanceBlocks.emailRegistrationWorkflow,
|
|
1266
1274
|
guidanceBlocks.webResearchToolPolicy,
|
|
1267
|
-
|
|
1275
|
+
...Object.values(toolGuidedSections)
|
|
1268
1276
|
].map((content) => content.trim()).filter((content) => content.length > 0).map((content) => ({ content, cacheScope: "session" }));
|
|
1269
1277
|
const currentTimeScope = [
|
|
1270
1278
|
{ content: buildCurrentTimeBlock(/* @__PURE__ */ new Date(), void 0), cacheScope: "turn" }
|
|
@@ -1628,6 +1636,7 @@ export {
|
|
|
1628
1636
|
parseToolArgumentsJson,
|
|
1629
1637
|
summarizeToolArguments,
|
|
1630
1638
|
resolveAgentImageInputSupport,
|
|
1639
|
+
resolveHistoricalToolContentCap,
|
|
1631
1640
|
projectToolMessageContent,
|
|
1632
1641
|
LOCAL_AGENT_CONFIG_MISSING_CODE,
|
|
1633
1642
|
EMPTY_ASSISTANT_REPAIR_PROMPT,
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-J7PB5GXH.js";
|
|
9
9
|
import {
|
|
10
10
|
performFetchRequest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UADEEVDX.js";
|
|
12
12
|
import {
|
|
13
13
|
createSSEParser,
|
|
14
14
|
createToolRunId,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
toolRunSetPending,
|
|
20
20
|
toolRunStarted,
|
|
21
21
|
toolRunSucceeded
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HQFXBRI2.js";
|
|
23
23
|
import {
|
|
24
24
|
getPublicImageAgentMode
|
|
25
25
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
messageStreaming,
|
|
30
30
|
selectCurrentSpaceId,
|
|
31
31
|
updateToolMessage
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-Q4TAIQTA.js";
|
|
33
33
|
import {
|
|
34
34
|
streamAgentChatTurn
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-QCUS52YR.js";
|
|
36
36
|
import {
|
|
37
37
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-YZV4676I.js";
|
|
39
39
|
import {
|
|
40
40
|
accumulateToolCallDelta,
|
|
41
41
|
createThinkParserState,
|
|
@@ -47,10 +47,10 @@ import {
|
|
|
47
47
|
} from "./chunk-N7J63Q6C.js";
|
|
48
48
|
import {
|
|
49
49
|
getModelInfo
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-JQ3LNEMS.js";
|
|
51
51
|
import {
|
|
52
52
|
getApiEndpoint
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-GT3GG2H7.js";
|
|
54
54
|
import {
|
|
55
55
|
addActiveController,
|
|
56
56
|
removeActiveController,
|