nolo-cli 0.24.0-alpha.20 → 0.24.0-alpha.21
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-SD32Z22H.js → _executeModel-SE6DZEJQ.js} +11 -11
- package/{agentDeleteCommand-BUM7GAXC.js → agentDeleteCommand-3JS4BYAB.js} +6 -6
- package/{agentEmailCommands-66V4UD5T.js → agentEmailCommands-23JEW4TZ.js} +13 -13
- package/{agentListCommands-EZRVAV7P.js → agentListCommands-TXDLUVQ5.js} +7 -7
- package/{agentMachineCommands-WIXR74MK.js → agentMachineCommands-IELZ4YAQ.js} +6 -6
- package/{agentRecordCommands-2OMDO2T4.js → agentRecordCommands-TRUFUSPW.js} +13 -13
- package/{agentRunCommand-NZYVRXOU.js → agentRunCommand-WFE2HUJO.js} +14 -14
- package/{agentRuntimeLocal-6WAMC2AW.js → agentRuntimeLocal-NLU23FWH.js} +3 -3
- package/{agentSlice-NGCEAL4R.js → agentSlice-PHTS562S.js} +1 -1
- package/{appDeleteCommands-ZN4IB7RY.js → appDeleteCommands-RYWFEAHZ.js} +7 -7
- package/{appDeployCommands-GOW4SCEJ.js → appDeployCommands-4PEDTVUE.js} +7 -7
- package/{appDeployStatusCommands-SV35AEVN.js → appDeployStatusCommands-23BMC7OV.js} +7 -7
- package/{appGetCommands-WHXOXL3U.js → appGetCommands-SUOLXPB4.js} +7 -7
- package/{appListCommands-AEPT6BSL.js → appListCommands-RUBIA5ZG.js} +7 -7
- package/{chunk-LBN4NXNT.js → chunk-4HWKN47J.js} +1 -1
- package/{chunk-GJ2BB7RJ.js → chunk-4UWP3T3V.js} +1 -1
- package/{chunk-2XAOVVN2.js → chunk-5NQT7PKZ.js} +1 -1
- package/{chunk-QJQOKLI4.js → chunk-6E5SDBYJ.js} +3 -3
- package/{chunk-UGKOCFBW.js → chunk-7WMHLWUF.js} +8 -8
- package/{chunk-2BWIDRH4.js → chunk-AUSXNU77.js} +1 -1
- package/{chunk-ZT2QXVTM.js → chunk-CCTFACBU.js} +2 -2
- package/{chunk-TH53RGA2.js → chunk-EZ5YL4VX.js} +30 -37
- package/{chunk-UYL5QZBK.js → chunk-F2VKA3SA.js} +1 -1
- package/{chunk-QBJEEKS6.js → chunk-FLI2EYZY.js} +21 -0
- package/{chunk-XJM57IDM.js → chunk-GTCWJFCL.js} +3 -3
- package/{chunk-MT6Y3LVX.js → chunk-IPHJLJQT.js} +8 -8
- package/{chunk-WBDUUSC2.js → chunk-LCDXIZPI.js} +7 -5
- package/{chunk-U42XTKTT.js → chunk-PUDVUTB3.js} +6 -6
- package/{chunk-ROF35MSI.js → chunk-S2SZOSO3.js} +1 -1
- package/{chunk-SPO7SK7R.js → chunk-SERRZKM4.js} +7 -7
- package/{chunk-3WBYKGOF.js → chunk-TFSYTF77.js} +3 -3
- package/{chunk-FSRXOT4V.js → chunk-THYH2R6P.js} +3 -3
- package/{chunk-KVECTZ2W.js → chunk-TOXJNZ43.js} +1 -1
- package/{chunk-BSX7KP52.js → chunk-U4OZUVVT.js} +2 -2
- package/{chunk-QDMWI73I.js → chunk-V27NWTTQ.js} +1 -1
- package/{chunk-ZJVGYG2R.js → chunk-WK55YYAA.js} +1 -1
- package/{chunk-COETPCCX.js → chunk-WYCVW2P3.js} +1 -1
- package/{chunk-YSSVEJRV.js → chunk-WZQDIZTX.js} +2 -2
- package/{createAgentAutomationAction-32PL7GTE.js → createAgentAutomationAction-LQ6M72FP.js} +2 -2
- package/{createDialogAction-7XHHBPQ7.js → createDialogAction-6Z3XV2ZT.js} +3 -3
- package/{createPageAction-H67HPRL7.js → createPageAction-SDPUHBS7.js} +2 -2
- package/{dialogCommands-ILK2Y5TR.js → dialogCommands-LOTVRC7N.js} +7 -7
- package/{dialogSlice-OBHDAKDY.js → dialogSlice-4PN2VZVE.js} +2 -2
- package/{docCreateCommands-NCNCUBEG.js → docCreateCommands-IH4MOJ4F.js} +6 -6
- package/{docDeleteCommands-SSDF5SIC.js → docDeleteCommands-QLCNM7IV.js} +7 -7
- package/{docReadCommands-YHJ2HXBY.js → docReadCommands-J7MB2ILG.js} +6 -6
- package/{docStore-CBVWCF72.js → docStore-LSEY4GY2.js} +3 -3
- package/{docUpdateCommands-2FJL2DND.js → docUpdateCommands-ZCM5QGLA.js} +6 -6
- package/{handleSendMessageAction-H3NSL6HR.js → handleSendMessageAction-VIYYIZBQ.js} +2 -2
- package/index.js +40 -40
- package/{machineCommands-JYGJ7MDL.js → machineCommands-23F3I33T.js} +12 -12
- package/{machineWsRunDispatch-B376RUSB.js → machineWsRunDispatch-3YV3FEB5.js} +12 -12
- package/package.json +1 -1
- package/{readlineWorkspace-XYD3KW7O.js → readlineWorkspace-S7MZTSPO.js} +38 -36
- package/{runAgentClientLoop-HKQT3PIG.js → runAgentClientLoop-564PPLYD.js} +7 -7
- package/{skillDiscovery-T4MZJSHT.js → skillDiscovery-S5PAMNEN.js} +4 -2
- package/{spaceCommands-SANTGFTL.js → spaceCommands-HJUFDQOR.js} +6 -6
- package/{spaceSlice-3TMCBTE2.js → spaceSlice-JOJH6ZZG.js} +2 -2
- package/{streamAgentChatTurn-XPG3GVFU.js → streamAgentChatTurn-KC55TU4B.js} +10 -10
- package/{tools-NBVGSWBR.js → tools-2LAJD5N7.js} +5 -5
- package/{updateDialogTitleAction-LAZA6Y7U.js → updateDialogTitleAction-M3X4CC6R.js} +2 -2
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
parseToolArgumentsJson,
|
|
10
10
|
resolveHistoricalToolContentCap
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TOXJNZ43.js";
|
|
12
12
|
import {
|
|
13
13
|
createThinkParserState,
|
|
14
14
|
createToolCallAccumulator,
|
|
@@ -4091,7 +4091,7 @@ function buildLoadSkillExecutor(args) {
|
|
|
4091
4091
|
metadata: { loadSkill: true, resolved: false }
|
|
4092
4092
|
};
|
|
4093
4093
|
}
|
|
4094
|
-
const { resolveSkillByName } = await import("./skillDiscovery-
|
|
4094
|
+
const { resolveSkillByName } = await import("./skillDiscovery-S5PAMNEN.js");
|
|
4095
4095
|
const resolved = resolveSkillByName(args.cwd, name);
|
|
4096
4096
|
if (!resolved) {
|
|
4097
4097
|
const { resolveCodingBuiltinSlug, buildCodingSkillContentBySlug } = await import("./codingSkills-EN6Z6G6U.js");
|
|
@@ -4129,7 +4129,7 @@ ${body}`,
|
|
|
4129
4129
|
};
|
|
4130
4130
|
}
|
|
4131
4131
|
async function formatUnknownSkillMessage(cwd, requestedName) {
|
|
4132
|
-
const { discoverSkills } = await import("./skillDiscovery-
|
|
4132
|
+
const { discoverSkills } = await import("./skillDiscovery-S5PAMNEN.js");
|
|
4133
4133
|
let available = [];
|
|
4134
4134
|
try {
|
|
4135
4135
|
available = discoverSkills(cwd).map((s) => s.name);
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
deleteServerSyncedCredential,
|
|
14
14
|
runLlm
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TFSYTF77.js";
|
|
16
16
|
import {
|
|
17
17
|
isOAuthApiKeyRef
|
|
18
18
|
} from "./chunk-YYLHWIW6.js";
|
|
@@ -5635,7 +5635,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
5635
5635
|
runtimeOptions: args.runtimeOptions
|
|
5636
5636
|
});
|
|
5637
5637
|
if (agentKeyToUse) {
|
|
5638
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
5638
|
+
const { streamAgentChatTurn } = await import("./agentSlice-PHTS562S.js");
|
|
5639
5639
|
await dispatch(
|
|
5640
5640
|
streamAgentChatTurn({
|
|
5641
5641
|
agentKey: agentKeyToUse,
|
|
@@ -8374,7 +8374,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
8374
8374
|
}
|
|
8375
8375
|
if (isCurrentDialog) {
|
|
8376
8376
|
await thunkApi.dispatch(resetMsgs());
|
|
8377
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
8377
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-4PN2VZVE.js");
|
|
8378
8378
|
dispatch(clearPendingAttachments2());
|
|
8379
8379
|
clearWorkflow();
|
|
8380
8380
|
}
|
|
@@ -8383,15 +8383,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
8383
8383
|
|
|
8384
8384
|
// packages/chat/dialog/dialogSlice.ts
|
|
8385
8385
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
8386
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
8386
|
+
const { createDialogAction } = await import("./createDialogAction-6Z3XV2ZT.js");
|
|
8387
8387
|
return createDialogAction(args, thunkApi);
|
|
8388
8388
|
};
|
|
8389
8389
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
8390
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
8390
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-LQ6M72FP.js");
|
|
8391
8391
|
return createAgentAutomationAction(args, thunkApi);
|
|
8392
8392
|
};
|
|
8393
8393
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
8394
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
8394
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-M3X4CC6R.js");
|
|
8395
8395
|
return updateDialogTitleAction(args, thunkApi);
|
|
8396
8396
|
};
|
|
8397
8397
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -8415,7 +8415,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
8415
8415
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
8416
8416
|
};
|
|
8417
8417
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
8418
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
8418
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-VIYYIZBQ.js");
|
|
8419
8419
|
return handleSendMessageAction(args, thunkApi);
|
|
8420
8420
|
};
|
|
8421
8421
|
function clearDialogState() {
|
|
@@ -8428,7 +8428,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
8428
8428
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
8429
8429
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
8430
8430
|
try {
|
|
8431
|
-
const { createDocState } = await import("./docStore-
|
|
8431
|
+
const { createDocState } = await import("./docStore-LSEY4GY2.js");
|
|
8432
8432
|
const pageKey = await createDocState(
|
|
8433
8433
|
{ slateData, title },
|
|
8434
8434
|
{ dispatch, getState }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearCliLocalRuntimePreparedAgentCache
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SERRZKM4.js";
|
|
4
4
|
import {
|
|
5
5
|
getReadableCliDb
|
|
6
6
|
} from "./chunk-WFHXMLHZ.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolveAgentRecordFromHybridStore,
|
|
13
13
|
sanitizeAgentRecordForCliOutput,
|
|
14
14
|
writeAgentRecord
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WYCVW2P3.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveCliAgentKeyInput
|
|
18
18
|
} from "./chunk-VHBWHNVT.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
parseAgentRunEvent,
|
|
20
20
|
t,
|
|
21
21
|
toolLabel
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SERRZKM4.js";
|
|
23
23
|
import {
|
|
24
24
|
getReadableCliDb
|
|
25
25
|
} from "./chunk-WFHXMLHZ.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
normalizeAgentHandle,
|
|
28
28
|
readDbRecord,
|
|
29
29
|
resolveAgentRecordFromHybridStore
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-WYCVW2P3.js";
|
|
31
31
|
import {
|
|
32
32
|
NOLO_PROJECT_MANAGER_AGENT_KEY,
|
|
33
33
|
isLocalCliAgentKey
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunk-LTRXGFMS.js";
|
|
39
39
|
import {
|
|
40
40
|
formatAgentListCard
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-IPHJLJQT.js";
|
|
42
42
|
import {
|
|
43
43
|
isGatewayHttpStatus
|
|
44
44
|
} from "./chunk-RQSOAMPJ.js";
|
|
@@ -50,15 +50,15 @@ import {
|
|
|
50
50
|
chooseMemoryOwners,
|
|
51
51
|
loadMemoryCandidatesFromDb,
|
|
52
52
|
resolveAgentMemoryPolicy
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-5NQT7PKZ.js";
|
|
54
54
|
import {
|
|
55
55
|
API_REPORTED_COST_MULTIPLIER,
|
|
56
56
|
normalizeUsage,
|
|
57
57
|
parseUiAskChoiceContent
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-7WMHLWUF.js";
|
|
59
59
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./chunk-
|
|
60
|
+
buildSkillDiscoveryContextLayer
|
|
61
|
+
} from "./chunk-LCDXIZPI.js";
|
|
62
62
|
import {
|
|
63
63
|
parseExternalSkillMarkdown,
|
|
64
64
|
parseSkillDocProtocol
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
LOCAL_TURN_ABORTED_CODE,
|
|
72
72
|
readActionGate,
|
|
73
73
|
readCommandActionGatePayload
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-TOXJNZ43.js";
|
|
75
75
|
import {
|
|
76
76
|
createThinkParserState,
|
|
77
77
|
flushThinkParser,
|
|
@@ -91,9 +91,12 @@ import {
|
|
|
91
91
|
findModelConfig
|
|
92
92
|
} from "./chunk-GT3GG2H7.js";
|
|
93
93
|
import {
|
|
94
|
+
buildAgentsMdLayer,
|
|
94
95
|
buildMemoryOverlayLayer,
|
|
95
|
-
buildMemoryUseGuidanceLayer
|
|
96
|
-
|
|
96
|
+
buildMemoryUseGuidanceLayer,
|
|
97
|
+
partitionScopedBlocks,
|
|
98
|
+
renderTurnContextBlocksWithScope
|
|
99
|
+
} from "./chunk-FLI2EYZY.js";
|
|
97
100
|
import {
|
|
98
101
|
compactWhitespace
|
|
99
102
|
} from "./chunk-DWLEOOGR.js";
|
|
@@ -3480,7 +3483,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
|
|
|
3480
3483
|
// packages/cli/client/agentRun.ts
|
|
3481
3484
|
import { ulid } from "ulid";
|
|
3482
3485
|
async function loadRunLocalAgentTurn() {
|
|
3483
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
3486
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-NLU23FWH.js");
|
|
3484
3487
|
return runLocalAgentTurn;
|
|
3485
3488
|
}
|
|
3486
3489
|
async function resolveCurrentMachineId(options) {
|
|
@@ -4966,6 +4969,8 @@ async function runAgentRunCommand(args, deps) {
|
|
|
4966
4969
|
}
|
|
4967
4970
|
const cliCwd = parsed.cwd ?? process.cwd();
|
|
4968
4971
|
const isSubtask = isSubtaskRun(env);
|
|
4972
|
+
const scopedLayers = [];
|
|
4973
|
+
const skillContentBlocks = [];
|
|
4969
4974
|
const extraContextBlocks = [];
|
|
4970
4975
|
const contextBlockScopes = [];
|
|
4971
4976
|
let memoryPromptBlock = null;
|
|
@@ -4982,18 +4987,14 @@ async function runAgentRunCommand(args, deps) {
|
|
|
4982
4987
|
if (Buffer.byteLength(mdContent, "utf8") > AGENTS_MD_MAX) {
|
|
4983
4988
|
mdContent = Buffer.from(mdContent, "utf8").subarray(0, AGENTS_MD_MAX).toString("utf8") + "\n\n<!-- AGENTS.md truncated -->";
|
|
4984
4989
|
}
|
|
4985
|
-
|
|
4986
|
-
${mdContent}`);
|
|
4990
|
+
scopedLayers.push(buildAgentsMdLayer(mdContent, name));
|
|
4987
4991
|
break;
|
|
4988
4992
|
} catch {
|
|
4989
4993
|
}
|
|
4990
4994
|
}
|
|
4991
4995
|
}
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
if (skillDiscoveryBlock) {
|
|
4995
|
-
extraContextBlocks.push(skillDiscoveryBlock);
|
|
4996
|
-
}
|
|
4996
|
+
skillContentBlocks.push(...buildSkillContextBlocks(skillReferences));
|
|
4997
|
+
scopedLayers.push(buildSkillDiscoveryContextLayer(cliCwd));
|
|
4997
4998
|
if (!deps.memoryRecallDisabled) {
|
|
4998
4999
|
const memoryServerUrl = resolveServerUrl(env);
|
|
4999
5000
|
const memoryAuthToken = resolveAuthToken(args, env);
|
|
@@ -5041,25 +5042,17 @@ ${mdContent}`);
|
|
|
5041
5042
|
}
|
|
5042
5043
|
memoryOverlayLayer = buildMemoryOverlayLayer({ promptBlock: memoryPromptBlock });
|
|
5043
5044
|
memoryUseGuidanceLayer = buildMemoryUseGuidanceLayer({ promptBlock: memoryPromptBlock });
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
for (const block of extraContextBlocks) {
|
|
5056
|
-
if (!isSessionScoped(block)) {
|
|
5057
|
-
contextBlockScopes.push({ content: block, cacheScope: "turn" });
|
|
5058
|
-
}
|
|
5059
|
-
}
|
|
5060
|
-
if (memoryOverlayLayer?.content?.trim()) {
|
|
5061
|
-
contextBlockScopes.push({ content: memoryOverlayLayer.content, cacheScope: "turn" });
|
|
5062
|
-
}
|
|
5045
|
+
contextBlockScopes.push(
|
|
5046
|
+
...partitionScopedBlocks([
|
|
5047
|
+
...renderTurnContextBlocksWithScope([
|
|
5048
|
+
...scopedLayers,
|
|
5049
|
+
memoryUseGuidanceLayer
|
|
5050
|
+
]),
|
|
5051
|
+
...skillContentBlocks.map((content) => content.trim()).filter((content) => content.length > 0).map((content) => ({ content, cacheScope: "turn" })),
|
|
5052
|
+
...renderTurnContextBlocksWithScope([memoryOverlayLayer])
|
|
5053
|
+
])
|
|
5054
|
+
);
|
|
5055
|
+
extraContextBlocks.push(...contextBlockScopes.map((block) => block.content));
|
|
5063
5056
|
}
|
|
5064
5057
|
const buildRunOptions = (targetAgentKey) => ({
|
|
5065
5058
|
agentName: targetAgentKey,
|
|
@@ -92,6 +92,16 @@ var buildSkillDiscoveryLayer = (skills, boundFolder) => {
|
|
|
92
92
|
];
|
|
93
93
|
return makeLayer("skill-discovery", lines.join("\n"), "session");
|
|
94
94
|
};
|
|
95
|
+
var buildAgentsMdLayer = (content, fileName = "AGENTS.md") => {
|
|
96
|
+
const trimmed = content.trim();
|
|
97
|
+
if (!trimmed) return null;
|
|
98
|
+
return makeLayer(
|
|
99
|
+
"agents-md",
|
|
100
|
+
`--- \u9879\u76EE\u6307\u4EE4\uFF08${fileName}\uFF09---
|
|
101
|
+
${trimmed}`,
|
|
102
|
+
"session"
|
|
103
|
+
);
|
|
104
|
+
};
|
|
95
105
|
var buildLinkedSpacesSection = async (args) => {
|
|
96
106
|
const ids = (args.linkedSpaceIds ?? []).filter(
|
|
97
107
|
(id) => typeof id === "string" && id.trim() !== ""
|
|
@@ -123,6 +133,14 @@ var buildLinkedSpacesSection = async (args) => {
|
|
|
123
133
|
"\u63D0\u793A\uFF1A\u5982\u9700\u67E5\u8BE2\u8FD9\u4E9B\u7A7A\u95F4\u7684\u8BE6\u7EC6\u5185\u5BB9\uFF0C\u53EF\u4F7F\u7528 read \u5DE5\u5177\u914D\u5408\u5BF9\u5E94\u7684 dbKey\u3002"
|
|
124
134
|
].join("\n");
|
|
125
135
|
};
|
|
136
|
+
var renderTurnContextBlocksWithScope = (layers) => layers.filter((layer) => Boolean(layer?.content?.trim())).map((layer) => ({
|
|
137
|
+
content: layer.content.trim(),
|
|
138
|
+
cacheScope: layer.cacheScope
|
|
139
|
+
}));
|
|
140
|
+
var partitionScopedBlocks = (blocks) => [
|
|
141
|
+
...blocks.filter((block) => block.cacheScope === "session"),
|
|
142
|
+
...blocks.filter((block) => block.cacheScope === "turn")
|
|
143
|
+
];
|
|
126
144
|
var buildDialogSummaryLayer = (args) => {
|
|
127
145
|
const historical = wrapHistoricalSummaryWithReplayGuard(
|
|
128
146
|
asTrimmed(args.summary)
|
|
@@ -149,7 +167,10 @@ var buildMemoryUseGuidanceLayer = (args) => {
|
|
|
149
167
|
export {
|
|
150
168
|
buildSpaceContextLayer,
|
|
151
169
|
buildSkillDiscoveryLayer,
|
|
170
|
+
buildAgentsMdLayer,
|
|
152
171
|
buildLinkedSpacesSection,
|
|
172
|
+
renderTurnContextBlocksWithScope,
|
|
173
|
+
partitionScopedBlocks,
|
|
153
174
|
buildDialogSummaryLayer,
|
|
154
175
|
buildMemoryOverlayLayer,
|
|
155
176
|
buildMemoryUseGuidanceLayer
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
fetchAndSerializeTable,
|
|
8
8
|
resolveBuiltinSkillPage,
|
|
9
9
|
waitForAbortableDelay
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IPHJLJQT.js";
|
|
11
11
|
import {
|
|
12
12
|
createDrainExhaustedResponse,
|
|
13
13
|
isCoreDrainingBody,
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
} from "./chunk-VP4WJWKW.js";
|
|
24
24
|
import {
|
|
25
25
|
fetchAndCacheMessages
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-7WMHLWUF.js";
|
|
27
27
|
import {
|
|
28
28
|
fetchServerSyncedCredential
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-TFSYTF77.js";
|
|
30
30
|
import {
|
|
31
31
|
shouldUseServerProxy
|
|
32
32
|
} from "./chunk-YYLHWIW6.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-VF4K2QE6.js";
|
|
29
29
|
import {
|
|
30
30
|
createDocState
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-WZQDIZTX.js";
|
|
32
32
|
import {
|
|
33
33
|
setDialogExtraReferencesAction
|
|
34
34
|
} from "./chunk-MALVZUYL.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
buildBuiltinObjectSkillDbKey,
|
|
45
45
|
buildBuiltinObjectSkillPageContent,
|
|
46
46
|
createDialogAction
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-5NQT7PKZ.js";
|
|
48
48
|
import {
|
|
49
49
|
addCategory,
|
|
50
50
|
addContentToSpace,
|
|
@@ -75,13 +75,13 @@ import {
|
|
|
75
75
|
updateContentCategory,
|
|
76
76
|
updateContentTitle,
|
|
77
77
|
updateStep
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-7WMHLWUF.js";
|
|
79
79
|
import {
|
|
80
80
|
createAgent,
|
|
81
81
|
runLlm,
|
|
82
82
|
streamAgentChatTurn,
|
|
83
83
|
updateAgent
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-TFSYTF77.js";
|
|
85
85
|
import {
|
|
86
86
|
CODING_SKILL_SLUGS,
|
|
87
87
|
buildCodingSkillConfig,
|
|
@@ -14773,7 +14773,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
14773
14773
|
const deletedDialogIds = [];
|
|
14774
14774
|
const deletedDialogKeys = [];
|
|
14775
14775
|
const failures = [];
|
|
14776
|
-
const { deleteDialog } = await import("./dialogSlice-
|
|
14776
|
+
const { deleteDialog } = await import("./dialogSlice-4PN2VZVE.js");
|
|
14777
14777
|
for (const target of targets) {
|
|
14778
14778
|
try {
|
|
14779
14779
|
await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
|
|
@@ -24175,7 +24175,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
24175
24175
|
if (!executionInput) {
|
|
24176
24176
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
24177
24177
|
}
|
|
24178
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
24178
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-2LAJD5N7.js");
|
|
24179
24179
|
const { executor } = findToolExecutor2(run.toolName);
|
|
24180
24180
|
toolRunStarted({
|
|
24181
24181
|
id: run.id,
|
|
@@ -24199,7 +24199,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
24199
24199
|
const latestState = thunkApi.getState();
|
|
24200
24200
|
const userId = latestState.auth?.currentUser?.userId;
|
|
24201
24201
|
if (userId) {
|
|
24202
|
-
const { fetchUserSpaceMemberships } = await import("./spaceSlice-
|
|
24202
|
+
const { fetchUserSpaceMemberships } = await import("./spaceSlice-JOJH6ZZG.js");
|
|
24203
24203
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
24204
24204
|
}
|
|
24205
24205
|
}
|
|
@@ -26682,7 +26682,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
26682
26682
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
26683
26683
|
};
|
|
26684
26684
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
26685
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
26685
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-LSEY4GY2.js");
|
|
26686
26686
|
if (getDocState().pageKey === id) {
|
|
26687
26687
|
applyExternalDocUpdate({
|
|
26688
26688
|
slateData: finalSlateData,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-WZSRQNQG.js";
|
|
4
4
|
import {
|
|
5
5
|
buildSkillDiscoveryLayer
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FLI2EYZY.js";
|
|
7
7
|
|
|
8
8
|
// packages/agent-runtime/skillDiscovery.ts
|
|
9
9
|
import { existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
@@ -85,19 +85,21 @@ function resolveSkillByName(cwd, name) {
|
|
|
85
85
|
}
|
|
86
86
|
return null;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function buildSkillDiscoveryContextLayer(cwd) {
|
|
89
89
|
try {
|
|
90
|
-
|
|
91
|
-
const layer = buildSkillDiscoveryLayer(discovered, cwd);
|
|
92
|
-
return layer?.content ?? null;
|
|
90
|
+
return buildSkillDiscoveryLayer(discoverSkills(cwd), cwd);
|
|
93
91
|
} catch {
|
|
94
92
|
return null;
|
|
95
93
|
}
|
|
96
94
|
}
|
|
95
|
+
function buildSkillDiscoveryContextBlock(cwd) {
|
|
96
|
+
return buildSkillDiscoveryContextLayer(cwd)?.content ?? null;
|
|
97
|
+
}
|
|
97
98
|
|
|
98
99
|
export {
|
|
99
100
|
parseSkillFrontmatter,
|
|
100
101
|
discoverSkills,
|
|
101
102
|
resolveSkillByName,
|
|
103
|
+
buildSkillDiscoveryContextLayer,
|
|
102
104
|
buildSkillDiscoveryContextBlock
|
|
103
105
|
};
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4UWP3T3V.js";
|
|
9
9
|
import {
|
|
10
10
|
performFetchRequest
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GTCWJFCL.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-IPHJLJQT.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-7WMHLWUF.js";
|
|
33
33
|
import {
|
|
34
34
|
streamAgentChatTurn
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-TFSYTF77.js";
|
|
36
36
|
import {
|
|
37
37
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-TOXJNZ43.js";
|
|
39
39
|
import {
|
|
40
40
|
accumulateToolCallDelta,
|
|
41
41
|
createThinkParserState,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-VV4TYWNV.js";
|
|
7
7
|
import {
|
|
8
8
|
buildLocalAgentLookupKeys
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WK55YYAA.js";
|
|
10
10
|
import {
|
|
11
11
|
LOCAL_CODEX_AGENT_ID,
|
|
12
12
|
LOCAL_CODEX_AGENT_KEY,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
inlineImageUrlsForCustomProvider,
|
|
21
21
|
prepareTools
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4UWP3T3V.js";
|
|
23
23
|
import {
|
|
24
24
|
getAntigravityUserAgent,
|
|
25
25
|
isAntigravityOAuthAgent,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
rememberMemoryFunctionSchema,
|
|
35
35
|
resolveAgentRequiredPackIds,
|
|
36
36
|
setTodoListFunc
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-IPHJLJQT.js";
|
|
38
38
|
import {
|
|
39
39
|
createDrainExhaustedResponse,
|
|
40
40
|
isCoreDrainingBody,
|
|
@@ -49,13 +49,13 @@ import {
|
|
|
49
49
|
prepareTokenUsageData,
|
|
50
50
|
resolveBuiltinPlatformAgentConfig,
|
|
51
51
|
runKeyed
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-7WMHLWUF.js";
|
|
53
53
|
import {
|
|
54
54
|
BUILTIN_TITLE_LLM_CONFIG
|
|
55
55
|
} from "./chunk-XOIF2TNF.js";
|
|
56
56
|
import {
|
|
57
57
|
fetchServerSyncedCredential
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-TFSYTF77.js";
|
|
59
59
|
import {
|
|
60
60
|
require_date_fns
|
|
61
61
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
readOpenAiCompatibleSseCompletion,
|
|
90
90
|
resolveAgentNextAvailableAt,
|
|
91
91
|
resolveOpenAiCompatibleProviderConfig
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-6E5SDBYJ.js";
|
|
93
93
|
import {
|
|
94
94
|
buildPlatformChatCompletionRequest,
|
|
95
95
|
canUsePlatformChatProvider,
|
|
@@ -106,7 +106,7 @@ import {
|
|
|
106
106
|
import {
|
|
107
107
|
resolveHistoricalToolContentCap,
|
|
108
108
|
summarizeToolArguments
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-TOXJNZ43.js";
|
|
110
110
|
import {
|
|
111
111
|
convertMessagesToResponsesInput,
|
|
112
112
|
toResponsesTools
|
|
@@ -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-SE6DZEJQ.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-564PPLYD.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-KC55TU4B.js");
|
|
341
341
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
342
342
|
}),
|
|
343
343
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SERRZKM4.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IPHJLJQT.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TOXJNZ43.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveLocalRuntimeEnvFromPolicy
|
|
13
13
|
} from "./chunk-5CS33IBL.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listUserRecordsFromServers,
|
|
3
3
|
readLiveDbRecordAfterTombstoneMerge
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-V27NWTTQ.js";
|
|
5
5
|
import {
|
|
6
6
|
agentRecordHasConfiguredCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WYCVW2P3.js";
|
|
8
8
|
import {
|
|
9
9
|
toSafeAgentSummary
|
|
10
10
|
} from "./chunk-H7N2NOJF.js";
|