nolo-cli 0.8.0-alpha.10 → 0.8.0-alpha.12
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-CPDNUUQV.js → _executeModel-JOUHEEDS.js} +11 -11
- package/{agentDeleteCommand-OSUMJMZM.js → agentDeleteCommand-TVJH2JID.js} +5 -5
- package/{agentEmailCommands-OQTJIPQU.js → agentEmailCommands-TB2RKQJL.js} +12 -12
- package/{agentListCommands-FATQEUYT.js → agentListCommands-GVD6ZQ3B.js} +6 -6
- package/{agentMachineCommands-6LZWF4GL.js → agentMachineCommands-UJI6CDKE.js} +5 -5
- package/{agentRecordCommands-TIHFU65Z.js → agentRecordCommands-IQBFI3QO.js} +12 -12
- package/{agentRunCommand-R64Y3HCH.js → agentRunCommand-VCQ5ONRC.js} +13 -13
- package/{agentRuntimeLocal-6PIWAHLQ.js → agentRuntimeLocal-JTCFVEEL.js} +2 -2
- package/{agentSlice-TP4VARJF.js → agentSlice-NZMLVXT5.js} +1 -1
- package/{chunk-BU4OPIXC.js → chunk-4EPRP7A3.js} +1 -1
- package/{chunk-6A5EF6IR.js → chunk-5KDNEBJR.js} +1 -1
- package/{chunk-POCFIDGQ.js → chunk-6G3WLUY5.js} +3 -3
- package/{chunk-Q6WACBKB.js → chunk-6HSAQUHW.js} +6 -6
- package/{chunk-5VV37AT4.js → chunk-6VTZSYDT.js} +2 -2
- package/{chunk-NEMRK4EK.js → chunk-AAKR4CKW.js} +53 -7
- package/{chunk-HZFOMJRA.js → chunk-FUU63UA7.js} +54 -10
- package/{chunk-TYH5JE6N.js → chunk-FY4NQTEC.js} +8 -8
- package/{chunk-IHHA5Y2S.js → chunk-GH7LOVLY.js} +7 -7
- package/{chunk-QFV2OAIM.js → chunk-GSENGCXB.js} +2 -2
- package/{chunk-QUWDTOUP.js → chunk-IEPE5Z7Y.js} +1 -1
- package/{chunk-HD63YREL.js → chunk-K367HWYT.js} +1 -1
- package/{chunk-DA2OEKS6.js → chunk-KKY4B2Q2.js} +2 -8
- package/{chunk-YWPXYBY7.js → chunk-MTV2I4IF.js} +1 -1
- package/{chunk-HOMYP7GZ.js → chunk-NDZOFKHS.js} +11 -6
- package/{chunk-2TPUKEU7.js → chunk-OF6IBT3Z.js} +3 -3
- package/{chunk-TKOUBWBO.js → chunk-OW6OA65Z.js} +8 -8
- package/{chunk-QJ6V2NIN.js → chunk-QNCWJXVH.js} +1 -1
- package/{chunk-FQZWM5YX.js → chunk-RAUV2V7X.js} +1 -1
- package/{chunk-6P2WX5IA.js → chunk-U5CWPEKM.js} +1 -1
- package/{chunk-OOYVBFM7.js → chunk-VEWET5JQ.js} +2 -2
- package/{chunk-BNMT7YY5.js → chunk-VJEKUYDK.js} +1 -1
- package/{createAgentAutomationAction-KLKS2HGU.js → createAgentAutomationAction-CGYKGZQK.js} +2 -2
- package/{createDialogAction-Z33JMBF5.js → createDialogAction-W34WVXOG.js} +3 -3
- package/{createPageAction-AQVNOAAI.js → createPageAction-BX3BTTBM.js} +2 -2
- package/{dialogCommands-W5PD6MZU.js → dialogCommands-DS6WHBNJ.js} +6 -6
- package/{dialogSlice-RBJYVSAR.js → dialogSlice-3QIHGXBA.js} +2 -2
- package/{docCreateCommands-MM34S4Z3.js → docCreateCommands-X6ACQKZU.js} +5 -5
- package/{docDeleteCommands-JJTU722V.js → docDeleteCommands-NS7VBNDH.js} +6 -6
- package/{docReadCommands-GLYDMCTU.js → docReadCommands-U5PGIWTF.js} +5 -5
- package/{docStore-5TYME4DO.js → docStore-ZUQS4K5X.js} +3 -3
- package/{docUpdateCommands-ZCGQ7URR.js → docUpdateCommands-MKUDMRFB.js} +5 -5
- package/{handleSendMessageAction-KA2MRW6E.js → handleSendMessageAction-T4LFZFCM.js} +2 -2
- package/index.js +35 -35
- package/{machineCommands-ZB5WUSPF.js → machineCommands-EFFHN5DU.js} +11 -11
- package/{machineWsRunDispatch-GWCAPPCM.js → machineWsRunDispatch-NXBROTNC.js} +11 -11
- package/package.json +1 -1
- package/{readlineWorkspace-FEDY44AA.js → readlineWorkspace-32SJR27M.js} +33 -16
- package/{runAgentClientLoop-W4NKE64V.js → runAgentClientLoop-AUA4XII6.js} +8 -8
- package/{spaceCommands-LC4FDAKE.js → spaceCommands-JLMZTC3V.js} +5 -5
- package/{spaceSlice-32XOGBEF.js → spaceSlice-ECPEQE5G.js} +2 -2
- package/{streamAgentChatTurn-YQW32AQH.js → streamAgentChatTurn-5UNGDRXQ.js} +10 -10
- package/{tools-XGTFRYD7.js → tools-BLAZGXMF.js} +5 -5
- package/{updateDialogTitleAction-4LHQDNHQ.js → updateDialogTitleAction-Y4SKBCZX.js} +2 -2
|
@@ -16,17 +16,17 @@ import {
|
|
|
16
16
|
createCliCallAgentToolExecutor,
|
|
17
17
|
createCliLocalRuntimeAdapter,
|
|
18
18
|
isBuiltinNoloAgentRef
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GH7LOVLY.js";
|
|
20
20
|
import {
|
|
21
21
|
getReadableCliDb
|
|
22
22
|
} from "./chunk-W4NVOSFF.js";
|
|
23
23
|
import {
|
|
24
24
|
readDbRecord,
|
|
25
25
|
resolveAgentRecordFromHybridStore
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-RAUV2V7X.js";
|
|
27
27
|
import {
|
|
28
28
|
normalizeAgentHandle
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-K367HWYT.js";
|
|
30
30
|
import {
|
|
31
31
|
NOLO_PROJECT_MANAGER_AGENT_KEY,
|
|
32
32
|
isLocalCliAgentKey
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
import {
|
|
51
51
|
getModelContextWindow,
|
|
52
52
|
parseUiAskChoiceContent
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-OW6OA65Z.js";
|
|
54
54
|
import {
|
|
55
55
|
readPipeText,
|
|
56
56
|
spawnProcess
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
import {
|
|
62
62
|
buildPlatformChatCompletionRequest,
|
|
63
63
|
parsePlatformChatCompletionData
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-U5CWPEKM.js";
|
|
65
65
|
import {
|
|
66
66
|
resolveAgentRuntimeConfigFromRecord
|
|
67
67
|
} from "./chunk-TILFE6LV.js";
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
LOCAL_TURN_ABORTED_CODE,
|
|
71
71
|
readActionGate,
|
|
72
72
|
readCommandActionGatePayload
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-AAKR4CKW.js";
|
|
74
74
|
import {
|
|
75
75
|
resolvePlatformChatCompletionsEndpoint
|
|
76
76
|
} from "./chunk-XDVAYP26.js";
|
|
@@ -486,10 +486,35 @@ function themeText(text, token, colorEnabled = resolveCliColorEnabled(), env = p
|
|
|
486
486
|
if (!colorEnabled) return text;
|
|
487
487
|
return `${themeColorSequence(token, env)}${text}\x1B[39m`;
|
|
488
488
|
}
|
|
489
|
+
function renderDiffCodeBlock(code, env = process.env) {
|
|
490
|
+
const border = themeText("\u2502", "chrome", true, env);
|
|
491
|
+
const addedColor = themeColorSequence("success", env);
|
|
492
|
+
const deletedColor = themeColorSequence("danger", env);
|
|
493
|
+
const hunkColor = themeColorSequence("info", env);
|
|
494
|
+
const contextColor = themeColorSequence("chrome", env);
|
|
495
|
+
const reset = "\x1B[0m";
|
|
496
|
+
const lines = code.split("\n").map((line) => {
|
|
497
|
+
let color = contextColor;
|
|
498
|
+
if (line.startsWith("@@")) {
|
|
499
|
+
color = hunkColor;
|
|
500
|
+
} else if (line.startsWith("+") && !line.startsWith("+++")) {
|
|
501
|
+
color = addedColor;
|
|
502
|
+
} else if (line.startsWith("-") && !line.startsWith("---")) {
|
|
503
|
+
color = deletedColor;
|
|
504
|
+
}
|
|
505
|
+
return ` ${border} ${color}${line}${reset}`;
|
|
506
|
+
});
|
|
507
|
+
return ` ${themeText("\u250C\u2500\u2500\u2500", "chrome", true, env)}
|
|
508
|
+
${lines.join("\n")}
|
|
509
|
+
${themeText("\u2514\u2500\u2500\u2500", "chrome", true, env)}`;
|
|
510
|
+
}
|
|
489
511
|
function highlightMarkdown(text, colorEnabled = resolveCliColorEnabled(), env = process.env) {
|
|
490
512
|
if (!colorEnabled) return text;
|
|
491
513
|
let result = text;
|
|
492
|
-
result = result.replace(/```[a-zA-Z-]
|
|
514
|
+
result = result.replace(/```([a-zA-Z-]*)\n([\s\S]*?)\n```/g, (match, lang, code) => {
|
|
515
|
+
if (lang.toLowerCase() === "diff") {
|
|
516
|
+
return renderDiffCodeBlock(code, env);
|
|
517
|
+
}
|
|
493
518
|
const infoColor = themeColorSequence("info", env);
|
|
494
519
|
const reset2 = "\x1B[39m\x1B[22m";
|
|
495
520
|
const border = themeText("\u2502", "chrome", true, env);
|
|
@@ -580,6 +605,8 @@ function normalizeCodeLang(raw) {
|
|
|
580
605
|
return "sh";
|
|
581
606
|
case "json":
|
|
582
607
|
return "json";
|
|
608
|
+
case "diff":
|
|
609
|
+
return "diff";
|
|
583
610
|
default:
|
|
584
611
|
return "unknown";
|
|
585
612
|
}
|
|
@@ -652,7 +679,8 @@ var KEYWORDS = {
|
|
|
652
679
|
"echo",
|
|
653
680
|
"cd"
|
|
654
681
|
]),
|
|
655
|
-
json: /* @__PURE__ */ new Set(["true", "false", "null"])
|
|
682
|
+
json: /* @__PURE__ */ new Set(["true", "false", "null"]),
|
|
683
|
+
diff: /* @__PURE__ */ new Set([])
|
|
656
684
|
};
|
|
657
685
|
function scanStringCommentRegions(line, lang) {
|
|
658
686
|
const regions = [];
|
|
@@ -698,6 +726,22 @@ function highlightCodeLine(line, lang, brightness) {
|
|
|
698
726
|
if (lang === "unknown") {
|
|
699
727
|
return `${info}${line}${STYLE.reset}`;
|
|
700
728
|
}
|
|
729
|
+
if (lang === "diff") {
|
|
730
|
+
const added = colorSeq("success", brightness);
|
|
731
|
+
const deleted = colorSeq("danger", brightness);
|
|
732
|
+
const hunk = colorSeq("info", brightness);
|
|
733
|
+
const context = colorSeq("chrome", brightness);
|
|
734
|
+
const reset2 = STYLE.reset;
|
|
735
|
+
let color = context;
|
|
736
|
+
if (line.startsWith("@@")) {
|
|
737
|
+
color = hunk;
|
|
738
|
+
} else if (line.startsWith("+") && !line.startsWith("+++")) {
|
|
739
|
+
color = added;
|
|
740
|
+
} else if (line.startsWith("-") && !line.startsWith("---")) {
|
|
741
|
+
color = deleted;
|
|
742
|
+
}
|
|
743
|
+
return `${color}${line}${reset2}`;
|
|
744
|
+
}
|
|
701
745
|
const regions = scanStringCommentRegions(line, lang);
|
|
702
746
|
const keywords = KEYWORDS[lang];
|
|
703
747
|
const accent = colorSeq("accent", brightness);
|
|
@@ -2732,7 +2776,7 @@ function isKnownServerPlatformAgent(options) {
|
|
|
2732
2776
|
// packages/cli/client/agentRun.ts
|
|
2733
2777
|
var import_ulid = __toESM(require_index_umd(), 1);
|
|
2734
2778
|
async function loadRunLocalAgentTurn() {
|
|
2735
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
2779
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-JTCFVEEL.js");
|
|
2736
2780
|
return runLocalAgentTurn;
|
|
2737
2781
|
}
|
|
2738
2782
|
async function resolveCurrentMachineId(options) {
|
|
@@ -3130,7 +3174,7 @@ async function runLocalAgentTurnForCli(options, settings) {
|
|
|
3130
3174
|
} : void 0;
|
|
3131
3175
|
const currentDialogId = options.continueDialogId ?? (0, import_ulid.ulid)();
|
|
3132
3176
|
const runChildTurn = async (input) => {
|
|
3133
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
3177
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-JTCFVEEL.js");
|
|
3134
3178
|
return runLocalAgentTurn(input);
|
|
3135
3179
|
};
|
|
3136
3180
|
const createFreshChildBaseAdapter = () => {
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
} from "./chunk-63W5N6P3.js";
|
|
26
26
|
import {
|
|
27
27
|
createDocState
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-GSENGCXB.js";
|
|
29
29
|
import {
|
|
30
30
|
createDialogAction
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-5KDNEBJR.js";
|
|
32
32
|
import {
|
|
33
33
|
buildSkillDocMarkdown,
|
|
34
34
|
normalizeSkillBudgetTier,
|
|
@@ -68,13 +68,13 @@ import {
|
|
|
68
68
|
updateContentCategory,
|
|
69
69
|
updateContentTitle,
|
|
70
70
|
updateStep
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-OW6OA65Z.js";
|
|
72
72
|
import {
|
|
73
73
|
createAgent,
|
|
74
74
|
runLlm,
|
|
75
75
|
streamAgentChatTurn,
|
|
76
76
|
updateAgent
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-6G3WLUY5.js";
|
|
78
78
|
import {
|
|
79
79
|
addContentAction
|
|
80
80
|
} from "./chunk-H2RMRZJE.js";
|
|
@@ -13540,7 +13540,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
13540
13540
|
const deletedDialogIds = [];
|
|
13541
13541
|
const deletedDialogKeys = [];
|
|
13542
13542
|
const failures = [];
|
|
13543
|
-
const { deleteDialog } = await import("./dialogSlice-
|
|
13543
|
+
const { deleteDialog } = await import("./dialogSlice-3QIHGXBA.js");
|
|
13544
13544
|
for (const target of targets) {
|
|
13545
13545
|
try {
|
|
13546
13546
|
await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
|
|
@@ -22486,7 +22486,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
22486
22486
|
if (!executionInput) {
|
|
22487
22487
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
22488
22488
|
}
|
|
22489
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
22489
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-BLAZGXMF.js");
|
|
22490
22490
|
const { executor } = findToolExecutor2(run.toolName);
|
|
22491
22491
|
toolRunStarted({
|
|
22492
22492
|
id: run.id,
|
|
@@ -22510,7 +22510,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
22510
22510
|
const latestState = thunkApi.getState();
|
|
22511
22511
|
const userId = latestState.auth?.currentUser?.userId;
|
|
22512
22512
|
if (userId) {
|
|
22513
|
-
const { fetchUserSpaceMemberships } = await import("./spaceSlice-
|
|
22513
|
+
const { fetchUserSpaceMemberships } = await import("./spaceSlice-ECPEQE5G.js");
|
|
22514
22514
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
22515
22515
|
}
|
|
22516
22516
|
}
|
|
@@ -24913,7 +24913,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
24913
24913
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
24914
24914
|
};
|
|
24915
24915
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
24916
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
24916
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-ZUQS4K5X.js");
|
|
24917
24917
|
if (getDocState().pageKey === id) {
|
|
24918
24918
|
applyExternalDocUpdate({
|
|
24919
24919
|
slateData: finalSlateData,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
buildLocalAgentLookupKeys,
|
|
9
9
|
normalizeAgentHandle,
|
|
10
10
|
shouldReadAgentKeyRemotely
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-K367HWYT.js";
|
|
12
12
|
import {
|
|
13
13
|
LOCAL_CODEX_AGENT_ID,
|
|
14
14
|
LOCAL_CODEX_AGENT_KEY,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk-ATNTHIZI.js";
|
|
28
28
|
import {
|
|
29
29
|
prepareTools
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-4EPRP7A3.js";
|
|
31
31
|
import {
|
|
32
32
|
getAntigravityUserAgent,
|
|
33
33
|
isAntigravityOAuthAgent,
|
|
@@ -43,16 +43,16 @@ import {
|
|
|
43
43
|
readXPostFunctionSchema,
|
|
44
44
|
readXhsProfileFunc,
|
|
45
45
|
readXhsProfileFunctionSchema
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-FY4NQTEC.js";
|
|
47
47
|
import {
|
|
48
48
|
normalizeDialogTitle
|
|
49
49
|
} from "./chunk-OWOHNGCN.js";
|
|
50
50
|
import {
|
|
51
51
|
BUILTIN_TITLE_LLM_CONFIG
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-OW6OA65Z.js";
|
|
53
53
|
import {
|
|
54
54
|
fetchServerSyncedCredential
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-6G3WLUY5.js";
|
|
56
56
|
import {
|
|
57
57
|
isCompiledBinary,
|
|
58
58
|
parseUserIdFromAuthToken
|
|
@@ -80,14 +80,14 @@ import {
|
|
|
80
80
|
resolveOpenAiCompatibleProviderConfig,
|
|
81
81
|
resolvePlatformChatProviderConfig,
|
|
82
82
|
shouldUsePlatformChatProvider
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-U5CWPEKM.js";
|
|
84
84
|
import {
|
|
85
85
|
resolveAgentRuntimeConfigFromRecord
|
|
86
86
|
} from "./chunk-TILFE6LV.js";
|
|
87
87
|
import {
|
|
88
88
|
parseToolArgumentsJson,
|
|
89
89
|
summarizeToolArguments
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-AAKR4CKW.js";
|
|
91
91
|
import {
|
|
92
92
|
buildNoloWorkspaceCliToolExecutors,
|
|
93
93
|
buildNoloWorkspaceOpenAiTools,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateContentTitle
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OW6OA65Z.js";
|
|
4
4
|
import {
|
|
5
5
|
require_date_fns
|
|
6
6
|
} from "./chunk-M76ECQRD.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-BX3BTTBM.js");
|
|
371
371
|
return createPageAction(args, thunkApi);
|
|
372
372
|
}
|
|
373
373
|
function subscribe(listener) {
|
|
@@ -3,14 +3,8 @@ var wrapHistoricalSummaryWithReplayGuard = (summary) => {
|
|
|
3
3
|
const trimmed = summary.trim();
|
|
4
4
|
if (!trimmed) return "";
|
|
5
5
|
return [
|
|
6
|
-
"\u3010\u5386\u53F2\u53C2\u8003\uFF0C\u975E\u6D3B\u6307\u4EE4\u3011",
|
|
7
|
-
|
|
8
|
-
"\u5176\u4E2D\u7684\u4EFB\u52A1\u63CF\u8FF0\u3001skill \u8C03\u7528\u3001ARGUMENTS \u8F7D\u8377\u9ED8\u8BA4\u5DF2\u8FC7\u671F\uFF08STALE-BY-DEFAULT\uFF09\uFF0C",
|
|
9
|
-
"\u5728\u6CA1\u6709\u5F53\u524D\u4F1A\u8BDD\u663E\u5F0F\u7528\u6237\u8BF7\u6C42\u65F6\u4E0D\u5F97\u91CD\u65B0\u6267\u884C\uFF1B\u6267\u884C\u524D\u5148\u5BF9\u7167\u5B9E\u9645\u5DE5\u4F5C\u72B6\u6001\u786E\u8BA4\u3002",
|
|
10
|
-
"",
|
|
11
|
-
"--- \u5386\u53F2\u6458\u8981\u5F00\u59CB ---",
|
|
12
|
-
trimmed,
|
|
13
|
-
"--- \u5386\u53F2\u6458\u8981\u7ED3\u675F ---"
|
|
6
|
+
"\u3010\u5386\u53F2\u53C2\u8003\uFF0C\u975E\u6D3B\u6307\u4EE4\u3011\u4EE5\u4E0B\u4E3A\u51BB\u7ED3\u6458\u8981\uFF0C\u5176\u4E2D\u7684\u4EFB\u52A1/skill/ARGUMENTS \u9ED8\u8BA4\u5DF2\u8FC7\u671F\uFF0C\u4E0D\u5F97\u91CD\u65B0\u6267\u884C\u3002",
|
|
7
|
+
trimmed
|
|
14
8
|
].join("\n");
|
|
15
9
|
};
|
|
16
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MEMORY_USE_GUIDANCE,
|
|
3
3
|
wrapHistoricalSummaryWithReplayGuard
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KKY4B2Q2.js";
|
|
5
5
|
import {
|
|
6
6
|
ANTIGRAVITY_CLOUD_CODE_BASE_URL,
|
|
7
7
|
isAntigravityOAuthAgent
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
clipMultilineText,
|
|
11
11
|
fetchAndSerializeTable
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FY4NQTEC.js";
|
|
13
13
|
import {
|
|
14
14
|
normalizeNonNegativeMs,
|
|
15
15
|
parseRetryAfterHeaderMs
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
estimateTokenCount,
|
|
28
28
|
fetchAndCacheMessages
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-OW6OA65Z.js";
|
|
30
30
|
import {
|
|
31
31
|
fetchServerSyncedCredential
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-6G3WLUY5.js";
|
|
33
33
|
import {
|
|
34
34
|
createSpaceKey
|
|
35
35
|
} from "./chunk-UAD2WT54.js";
|
|
@@ -1214,7 +1214,11 @@ ${contexts.userGlobalPrompt.trim()} ` : "";
|
|
|
1214
1214
|
const appWorkingMemorySection = buildAppWorkingMemoryBlock(contexts);
|
|
1215
1215
|
const spaceContextSection = buildSpaceContextBlock(contexts);
|
|
1216
1216
|
const rawMemoryOverlay = asOptionalTrimmedString(contexts.memoryOverlay) ?? "";
|
|
1217
|
-
const memoryOverlaySection = rawMemoryOverlay
|
|
1217
|
+
const memoryOverlaySection = rawMemoryOverlay;
|
|
1218
|
+
const hasMemoryTools = Array.isArray(agentConfig.tools) && agentConfig.tools.some(
|
|
1219
|
+
(t) => /memory/i.test(t)
|
|
1220
|
+
);
|
|
1221
|
+
const memoryUseGuidanceSection = hasMemoryTools ? MEMORY_USE_GUIDANCE : "";
|
|
1218
1222
|
const skillGuidanceSection = buildSkillGuidanceBlock(agentConfig);
|
|
1219
1223
|
const referenceMaterialsSection = buildReferenceMaterialsBlock(contexts);
|
|
1220
1224
|
const dialogSummarySection = contexts.dialogSummary?.trim() ? `--- \u5386\u53F2\u5BF9\u8BDD\u6458\u8981 ---
|
|
@@ -1249,7 +1253,8 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.proactiveSummary)}` : "";
|
|
|
1249
1253
|
{ id: "user-global-prompt", owner: "user", cacheScope: "session", content: userGlobalPromptSection },
|
|
1250
1254
|
{ id: "response-guidelines", owner: "platform", cacheScope: "session", content: responseGuidelinesSection },
|
|
1251
1255
|
{ id: "skill-guidance", owner: "runtime", cacheScope: "session", content: skillGuidanceSection },
|
|
1252
|
-
{ id: "space-context", owner: "runtime", cacheScope: "
|
|
1256
|
+
{ id: "space-context", owner: "runtime", cacheScope: "session", content: spaceContextSection },
|
|
1257
|
+
{ id: "memory-use-guidance", owner: "platform", cacheScope: "session", content: memoryUseGuidanceSection },
|
|
1253
1258
|
{ id: "reference-materials", owner: "agent", cacheScope: "turn", content: referenceMaterialsSection },
|
|
1254
1259
|
{ id: "memory-overlay", owner: "runtime", cacheScope: "turn", content: memoryOverlaySection },
|
|
1255
1260
|
{ id: "app-working-memory", owner: "runtime", cacheScope: "turn", content: appWorkingMemorySection },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GH7LOVLY.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FY4NQTEC.js";
|
|
8
8
|
import {
|
|
9
9
|
readPipeText,
|
|
10
10
|
spawnProcess
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-OLZBQWZU.js";
|
|
18
18
|
import {
|
|
19
19
|
runLocalAgentTurn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AAKR4CKW.js";
|
|
21
21
|
import {
|
|
22
22
|
resolveLocalRuntimeEnvFromPolicy
|
|
23
23
|
} from "./chunk-TDIQFT2F.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
deleteServerSyncedCredential,
|
|
13
13
|
runLlm
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6G3WLUY5.js";
|
|
15
15
|
import {
|
|
16
16
|
cleanupCliSessionForDialog
|
|
17
17
|
} from "./chunk-IYQV26RA.js";
|
|
@@ -14966,7 +14966,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
14966
14966
|
runtimeOptions: args.runtimeOptions
|
|
14967
14967
|
});
|
|
14968
14968
|
if (agentKeyToUse) {
|
|
14969
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
14969
|
+
const { streamAgentChatTurn } = await import("./agentSlice-NZMLVXT5.js");
|
|
14970
14970
|
await dispatch(
|
|
14971
14971
|
streamAgentChatTurn({
|
|
14972
14972
|
agentKey: agentKeyToUse,
|
|
@@ -17574,7 +17574,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
17574
17574
|
}
|
|
17575
17575
|
if (isCurrentDialog) {
|
|
17576
17576
|
await thunkApi.dispatch(resetMsgs());
|
|
17577
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
17577
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-3QIHGXBA.js");
|
|
17578
17578
|
dispatch(clearPendingAttachments2());
|
|
17579
17579
|
clearWorkflow();
|
|
17580
17580
|
}
|
|
@@ -17583,15 +17583,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
17583
17583
|
|
|
17584
17584
|
// packages/chat/dialog/dialogSlice.ts
|
|
17585
17585
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
17586
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
17586
|
+
const { createDialogAction } = await import("./createDialogAction-W34WVXOG.js");
|
|
17587
17587
|
return createDialogAction(args, thunkApi);
|
|
17588
17588
|
};
|
|
17589
17589
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
17590
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
17590
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-CGYKGZQK.js");
|
|
17591
17591
|
return createAgentAutomationAction(args, thunkApi);
|
|
17592
17592
|
};
|
|
17593
17593
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
17594
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
17594
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-Y4SKBCZX.js");
|
|
17595
17595
|
return updateDialogTitleAction(args, thunkApi);
|
|
17596
17596
|
};
|
|
17597
17597
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -17611,7 +17611,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
17611
17611
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
17612
17612
|
};
|
|
17613
17613
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
17614
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
17614
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-T4LFZFCM.js");
|
|
17615
17615
|
return handleSendMessageAction(args, thunkApi);
|
|
17616
17616
|
};
|
|
17617
17617
|
function clearDialogState() {
|
|
@@ -17624,7 +17624,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
17624
17624
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
17625
17625
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
17626
17626
|
try {
|
|
17627
|
-
const { createDocState } = await import("./docStore-
|
|
17627
|
+
const { createDocState } = await import("./docStore-ZUQS4K5X.js");
|
|
17628
17628
|
const pageKey = await createDocState(
|
|
17629
17629
|
{ slateData, title },
|
|
17630
17630
|
{ dispatch, getState }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listUserRecordsFromServers,
|
|
3
3
|
readLiveDbRecordAfterTombstoneMerge
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IEPE5Z7Y.js";
|
|
5
5
|
import {
|
|
6
6
|
agentRecordHasConfiguredCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RAUV2V7X.js";
|
|
8
8
|
|
|
9
9
|
// packages/cli/agentListHelpers.ts
|
|
10
10
|
function parseAgentRecordId(privateKey, explicitId) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OW6OA65Z.js";
|
|
4
4
|
import "./chunk-MRC4Q34M.js";
|
|
5
5
|
import "./chunk-J4576WMJ.js";
|
|
6
6
|
import "./chunk-CWMSB67P.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-6G3WLUY5.js";
|
|
8
8
|
import "./chunk-IYQV26RA.js";
|
|
9
9
|
import "./chunk-Z4NR32XR.js";
|
|
10
10
|
import "./chunk-M76ECQRD.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDialogAction,
|
|
3
3
|
isLocalOwnerDialogAgents
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5KDNEBJR.js";
|
|
5
5
|
import "./chunk-NXZGF7F7.js";
|
|
6
6
|
import "./chunk-HEIIIZBX.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-OW6OA65Z.js";
|
|
8
8
|
import "./chunk-MRC4Q34M.js";
|
|
9
9
|
import "./chunk-J4576WMJ.js";
|
|
10
10
|
import "./chunk-CWMSB67P.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-6G3WLUY5.js";
|
|
12
12
|
import "./chunk-IYQV26RA.js";
|
|
13
13
|
import "./chunk-Z4NR32XR.js";
|
|
14
14
|
import "./chunk-M76ECQRD.js";
|
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
addContentToSpace,
|
|
19
19
|
client_default,
|
|
20
20
|
selectCurrentSpaceId
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OW6OA65Z.js";
|
|
22
22
|
import "./chunk-MRC4Q34M.js";
|
|
23
23
|
import "./chunk-J4576WMJ.js";
|
|
24
24
|
import "./chunk-CWMSB67P.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-6G3WLUY5.js";
|
|
26
26
|
import "./chunk-IYQV26RA.js";
|
|
27
27
|
import "./chunk-Z4NR32XR.js";
|
|
28
28
|
import "./chunk-M76ECQRD.js";
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
runDialogReadCommand,
|
|
9
9
|
runDialogStatusCommand,
|
|
10
10
|
sortDialogs
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QNCWJXVH.js";
|
|
12
12
|
import "./chunk-4CQLVGRV.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-IEPE5Z7Y.js";
|
|
14
|
+
import "./chunk-RAUV2V7X.js";
|
|
15
|
+
import "./chunk-K367HWYT.js";
|
|
16
16
|
import "./chunk-VHBWHNVT.js";
|
|
17
17
|
import "./chunk-KQHGZWSV.js";
|
|
18
18
|
import "./chunk-J4576WMJ.js";
|
|
19
19
|
import "./chunk-IDZTNRP2.js";
|
|
20
20
|
import "./chunk-ISNCLGUZ.js";
|
|
21
21
|
import "./chunk-OLZBQWZU.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-U5CWPEKM.js";
|
|
23
23
|
import "./chunk-ZNFJWEN4.js";
|
|
24
24
|
import "./chunk-TILFE6LV.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-AAKR4CKW.js";
|
|
26
26
|
import "./chunk-XDVAYP26.js";
|
|
27
27
|
import "./chunk-LM25IZBJ.js";
|
|
28
28
|
import "./chunk-5MMAK75Q.js";
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
setPrimaryDialogAgent,
|
|
20
20
|
updateDialogTitle,
|
|
21
21
|
updateTokens
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-OW6OA65Z.js";
|
|
23
23
|
import "./chunk-MRC4Q34M.js";
|
|
24
24
|
import "./chunk-J4576WMJ.js";
|
|
25
25
|
import "./chunk-CWMSB67P.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-6G3WLUY5.js";
|
|
27
27
|
import "./chunk-IYQV26RA.js";
|
|
28
28
|
import "./chunk-Z4NR32XR.js";
|
|
29
29
|
import "./chunk-M76ECQRD.js";
|
|
@@ -19,9 +19,9 @@ import {
|
|
|
19
19
|
resolveDocKind,
|
|
20
20
|
resolveWriteTargets,
|
|
21
21
|
writePageRecord
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-MTV2I4IF.js";
|
|
23
|
+
import "./chunk-RAUV2V7X.js";
|
|
24
|
+
import "./chunk-K367HWYT.js";
|
|
25
25
|
import "./chunk-VHBWHNVT.js";
|
|
26
26
|
import "./chunk-VF4K2QE6.js";
|
|
27
27
|
import "./chunk-NXZGF7F7.js";
|
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
readOption
|
|
32
32
|
} from "./chunk-ISNCLGUZ.js";
|
|
33
33
|
import "./chunk-OLZBQWZU.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-U5CWPEKM.js";
|
|
35
35
|
import "./chunk-ZNFJWEN4.js";
|
|
36
36
|
import "./chunk-TILFE6LV.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-AAKR4CKW.js";
|
|
38
38
|
import "./chunk-XDVAYP26.js";
|
|
39
39
|
import "./chunk-LM25IZBJ.js";
|
|
40
40
|
import "./chunk-5MMAK75Q.js";
|