nolo-cli 0.16.0-alpha.7 → 0.16.0-alpha.9
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-XF7VJZ6O.js → _executeModel-ABTND4KZ.js} +17 -17
- package/{agentDeleteCommand-X35VSSVM.js → agentDeleteCommand-ARMAV46L.js} +11 -11
- package/{agentEmailCommands-LGMEEMQP.js → agentEmailCommands-BKPZP4UP.js} +22 -22
- package/{agentListCommands-LLQHUE4O.js → agentListCommands-5J7RRXUO.js} +13 -13
- package/{agentMachineCommands-4Q5PFIKF.js → agentMachineCommands-VXWJXXPF.js} +11 -11
- package/{agentRecordCommands-XUYVG7BS.js → agentRecordCommands-INDJINPN.js} +21 -21
- package/{agentRunCommand-NORLSA7L.js → agentRunCommand-KBN6HBY4.js} +21 -21
- package/{agentRuntimeLocal-N56G2ZJK.js → agentRuntimeLocal-AH2RYWGP.js} +8 -10
- package/{agentSlice-JE5BREZQ.js → agentSlice-R4PELU57.js} +1 -1
- package/{appDeleteCommands-WHRYDQLZ.js → appDeleteCommands-FRWMPQNS.js} +12 -12
- package/{appDeployCommands-USRWBT6T.js → appDeployCommands-IRF3T35Z.js} +12 -12
- package/{appDeployStatusCommands-R632IBVL.js → appDeployStatusCommands-ADFERYPU.js} +12 -12
- package/{appGetCommands-PKGC2JWH.js → appGetCommands-FTEOXWMS.js} +12 -12
- package/{appListCommands-OMRAEOAL.js → appListCommands-WBY7UWYD.js} +12 -12
- package/{authCommand-P22WCVOP.js → authCommand-QU5BXRBH.js} +6 -6
- package/{chunk-BS5STUTA.js → chunk-2XA3QGOH.js} +3 -3
- package/{chunk-NY5FDXZL.js → chunk-4EME3YTO.js} +3 -3
- package/{chunk-KOW2R4MZ.js → chunk-4N7QA72L.js} +1 -5
- package/{chunk-2B3BNWPC.js → chunk-5Y5KEB7V.js} +1 -1
- package/{chunk-5BP2BROQ.js → chunk-66X4VSRC.js} +4 -3
- package/{chunk-BH4AZ7S6.js → chunk-7HECYFOI.js} +30 -19
- package/{chunk-C2BYYSAO.js → chunk-AFNJWHKL.js} +3 -3
- package/{chunk-AWGYJBWX.js → chunk-BG7AP3Q7.js} +8 -8
- package/{chunk-ZVBKL6NS.js → chunk-BHVBFI6B.js} +3 -3
- package/{chunk-AKYTMRBP.js → chunk-F6JSVFHX.js} +1 -1
- package/{chunk-FJHD7FHN.js → chunk-FMYTM25W.js} +1 -1
- package/{chunk-EFNMO3YF.js → chunk-G63IH3ZK.js} +1 -1
- package/{chunk-XQW4K7D3.js → chunk-GWESD7AS.js} +2 -2
- package/{chunk-CI2G2Z2L.js → chunk-HSLJ7QER.js} +1 -1
- package/{chunk-OIX36K6R.js → chunk-IFPY2BIE.js} +1 -1
- package/{chunk-J4VLNDI7.js → chunk-J3VQSU5W.js} +1 -1
- package/{chunk-XBOY5KZG.js → chunk-LSHKV3S7.js} +10 -10
- package/{chunk-ZTRZ2O5B.js → chunk-LZYEWFPK.js} +7 -3
- package/{chunk-4IF3B7WC.js → chunk-OELQ67TN.js} +2 -2
- package/{chunk-3STYIYRD.js → chunk-PEDT43JF.js} +2 -2
- package/{chunk-BOPYCNN3.js → chunk-QLWU2KOT.js} +1 -1
- package/{chunk-ZRDWHLMQ.js → chunk-R6ALN5F5.js} +1 -1
- package/{chunk-UALQTIWY.js → chunk-RK5NYQEL.js} +1 -1
- package/{chunk-YQMTILRW.js → chunk-RLCXU7A5.js} +1 -1
- package/{chunk-CTZLNWT3.js → chunk-SGRDLYRZ.js} +2 -2
- package/{chunk-J2DR42U3.js → chunk-VAT72PDP.js} +12 -10
- package/{chunk-YXQA6X6I.js → chunk-VK2HVKAO.js} +31 -24
- package/{chunk-QSWWWYGA.js → chunk-WVDAUR2S.js} +1 -1
- package/{chunk-6EFJQCL6.js → chunk-XECKIDGJ.js} +79 -63
- package/{chunk-4XR5OJ7J.js → chunk-ZPPTWRPT.js} +1 -1
- package/{chunk-YLVJ7NB4.js → chunk-ZVC2PCZN.js} +2 -2
- package/{chunk-LJIJWXIT.js → chunk-ZVDRAEZL.js} +4 -12
- package/{createAgentAutomationAction-MEYL7OTC.js → createAgentAutomationAction-3KKRAYGE.js} +6 -6
- package/{createDialogAction-OUK5YIH4.js → createDialogAction-S7NMQ4TZ.js} +7 -7
- package/{createPageAction-NEBMC6AB.js → createPageAction-2EFBT4LQ.js} +6 -6
- package/{dialogCommands-L4LMXQAI.js → dialogCommands-J7XFIQRD.js} +12 -12
- package/{dialogSlice-BKRE6NDW.js → dialogSlice-LNRRBUIC.js} +6 -6
- package/{docCreateCommands-C4HJCM47.js → docCreateCommands-MKO5WB34.js} +11 -11
- package/{docDeleteCommands-Y6W6A3W6.js → docDeleteCommands-RCBHRKUE.js} +12 -12
- package/{docReadCommands-2WUIDAR6.js → docReadCommands-66527P4G.js} +11 -11
- package/{docStore-XIPSSX7U.js → docStore-67MYPX7P.js} +7 -7
- package/{docUpdateCommands-XVL2CBKE.js → docUpdateCommands-UT5HSLOJ.js} +11 -11
- package/{getPricing-HXWUZAEN.js → getPricing-P4XRJRZB.js} +3 -3
- package/{handleSendMessageAction-NTDBIOMZ.js → handleSendMessageAction-VZ7226PB.js} +6 -6
- package/index.js +47 -47
- package/{machineCommands-SXOARUBD.js → machineCommands-ATA7OSBJ.js} +20 -20
- package/{machineWsRunDispatch-OZQ4WNCE.js → machineWsRunDispatch-ZDCZ645H.js} +20 -20
- package/{models-DQUMNIGQ.js → models-5K5G2CZI.js} +2 -2
- package/package.json +1 -1
- package/{readlineWorkspace-AM2FA7HS.js → readlineWorkspace-UUNABTLB.js} +29 -25
- package/{runAgentClientLoop-ISTTN5QO.js → runAgentClientLoop-2A577WBM.js} +14 -14
- package/{spaceCommands-PYFLKEAW.js → spaceCommands-UNZVR2OS.js} +11 -11
- package/{spaceSlice-QER2OEYB.js → spaceSlice-MC7FYPMZ.js} +6 -6
- package/{streamAgentChatTurn-VBXKG5JA.js → streamAgentChatTurn-IEKPNM33.js} +17 -20
- package/{tools-XMFFOQXS.js → tools-E6FHKTCF.js} +10 -10
- package/{tuiSummaryLlmCaller-ENLQTJUV.js → tuiSummaryLlmCaller-QHPDD4WP.js} +4 -4
- package/{updateDialogTitleAction-QJEJGVZD.js → updateDialogTitleAction-SQJEEW2K.js} +6 -6
- /package/{chunk-LPWS7HMQ.js → chunk-O6W2O2DA.js} +0 -0
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
deleteServerSyncedCredential,
|
|
17
17
|
runLlm
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BHVBFI6B.js";
|
|
19
19
|
import {
|
|
20
20
|
cleanupCliSessionForDialog
|
|
21
21
|
} from "./chunk-RPDGJO4D.js";
|
|
@@ -36,11 +36,11 @@ import {
|
|
|
36
36
|
normalizeAssistantContentBuffer,
|
|
37
37
|
planCompression,
|
|
38
38
|
serializeMessageContent
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-OELQ67TN.js";
|
|
40
40
|
import {
|
|
41
41
|
findModelConfig,
|
|
42
42
|
getModelConfig
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-66X4VSRC.js";
|
|
44
44
|
import {
|
|
45
45
|
createFileCredentialBroker
|
|
46
46
|
} from "./chunk-5CS33IBL.js";
|
|
@@ -5529,7 +5529,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
5529
5529
|
runtimeOptions: args.runtimeOptions
|
|
5530
5530
|
});
|
|
5531
5531
|
if (agentKeyToUse) {
|
|
5532
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
5532
|
+
const { streamAgentChatTurn } = await import("./agentSlice-R4PELU57.js");
|
|
5533
5533
|
await dispatch(
|
|
5534
5534
|
streamAgentChatTurn({
|
|
5535
5535
|
agentKey: agentKeyToUse,
|
|
@@ -8249,7 +8249,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
8249
8249
|
}
|
|
8250
8250
|
if (isCurrentDialog) {
|
|
8251
8251
|
await thunkApi.dispatch(resetMsgs());
|
|
8252
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
8252
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-LNRRBUIC.js");
|
|
8253
8253
|
dispatch(clearPendingAttachments2());
|
|
8254
8254
|
clearWorkflow();
|
|
8255
8255
|
}
|
|
@@ -8258,15 +8258,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
8258
8258
|
|
|
8259
8259
|
// packages/chat/dialog/dialogSlice.ts
|
|
8260
8260
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
8261
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
8261
|
+
const { createDialogAction } = await import("./createDialogAction-S7NMQ4TZ.js");
|
|
8262
8262
|
return createDialogAction(args, thunkApi);
|
|
8263
8263
|
};
|
|
8264
8264
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
8265
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
8265
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-3KKRAYGE.js");
|
|
8266
8266
|
return createAgentAutomationAction(args, thunkApi);
|
|
8267
8267
|
};
|
|
8268
8268
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
8269
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
8269
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-SQJEEW2K.js");
|
|
8270
8270
|
return updateDialogTitleAction(args, thunkApi);
|
|
8271
8271
|
};
|
|
8272
8272
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -8286,7 +8286,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
8286
8286
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
8287
8287
|
};
|
|
8288
8288
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
8289
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
8289
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-VZ7226PB.js");
|
|
8290
8290
|
return handleSendMessageAction(args, thunkApi);
|
|
8291
8291
|
};
|
|
8292
8292
|
function clearDialogState() {
|
|
@@ -8299,7 +8299,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
8299
8299
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
8300
8300
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
8301
8301
|
try {
|
|
8302
|
-
const { createDocState } = await import("./docStore-
|
|
8302
|
+
const { createDocState } = await import("./docStore-67MYPX7P.js");
|
|
8303
8303
|
const pageKey = await createDocState(
|
|
8304
8304
|
{ slateData, title },
|
|
8305
8305
|
{ dispatch, getState }
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
planCompression,
|
|
13
13
|
planContextUsage,
|
|
14
14
|
serializeMessageContent
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OELQ67TN.js";
|
|
16
16
|
import {
|
|
17
17
|
clipCompactText
|
|
18
18
|
} from "./chunk-5MMAK75Q.js";
|
|
19
19
|
import {
|
|
20
20
|
findModelConfig,
|
|
21
21
|
getProviderByModelName
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-66X4VSRC.js";
|
|
23
23
|
import {
|
|
24
24
|
buildDialogSummaryLayer
|
|
25
25
|
} from "./chunk-QLUFR47U.js";
|
|
@@ -1034,7 +1034,11 @@ function buildMessages(args) {
|
|
|
1034
1034
|
${dynamicContent}` : stableContent;
|
|
1035
1035
|
return {
|
|
1036
1036
|
messages: [
|
|
1037
|
-
...systemContent2 ? [{
|
|
1037
|
+
...systemContent2 ? [{
|
|
1038
|
+
role: "system",
|
|
1039
|
+
content: systemContent2,
|
|
1040
|
+
...stableContent ? { stable_prefix_chars: stableContent.length } : {}
|
|
1041
|
+
}] : [],
|
|
1038
1042
|
...prepareHistoryForNextTurn(args.history, args.contextReferenceResolver),
|
|
1039
1043
|
{ role: "user", content: args.input }
|
|
1040
1044
|
],
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
i18n_default,
|
|
3
3
|
toolRegistry
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7HECYFOI.js";
|
|
5
5
|
import {
|
|
6
6
|
canonicalizeToolNames
|
|
7
7
|
} from "./chunk-B4KT7RN2.js";
|
|
8
8
|
import {
|
|
9
9
|
isNoloHostedProvider
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-O6W2O2DA.js";
|
|
11
11
|
import {
|
|
12
12
|
asTrimmedLowercaseString
|
|
13
13
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
prepareAndPersistMessage,
|
|
4
4
|
uiAskChoiceFunc,
|
|
5
5
|
uiAskChoiceFunctionSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LSHKV3S7.js";
|
|
7
7
|
import {
|
|
8
8
|
require_date_fns
|
|
9
9
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
PLATFORM_HOSTED_GLM_52_MODEL,
|
|
15
15
|
PLATFORM_HOSTED_GLM_PRICE,
|
|
16
16
|
PLATFORM_HOSTED_KIMI_PROVIDER
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-O6W2O2DA.js";
|
|
18
18
|
import {
|
|
19
19
|
read,
|
|
20
20
|
readAndWait,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ANTIGRAVITY_CLOUD_CODE_BASE_URL,
|
|
3
3
|
isAntigravityOAuthAgent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HSLJ7QER.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText,
|
|
7
7
|
fetchAndSerializeTable,
|
|
8
8
|
waitForAbortableDelay
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7HECYFOI.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-LSHKV3S7.js";
|
|
30
30
|
import {
|
|
31
31
|
fetchServerSyncedCredential
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-BHVBFI6B.js";
|
|
33
33
|
import {
|
|
34
34
|
buildCurrentTimeBlock,
|
|
35
35
|
buildIdentityBlock,
|
|
@@ -46,18 +46,18 @@ import {
|
|
|
46
46
|
isOpenAiResponsesModel,
|
|
47
47
|
resolvePlatformChatCompletionsEndpoint,
|
|
48
48
|
resolvePlatformResponsesEndpoint
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-ZVDRAEZL.js";
|
|
50
50
|
import {
|
|
51
51
|
canonicalizeToolNames
|
|
52
52
|
} from "./chunk-B4KT7RN2.js";
|
|
53
53
|
import {
|
|
54
54
|
estimateTokenCount
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-OELQ67TN.js";
|
|
56
56
|
import {
|
|
57
57
|
clampReasoningEffort,
|
|
58
58
|
getModelConfig,
|
|
59
59
|
isModelSupportReasoningEffort
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-66X4VSRC.js";
|
|
61
61
|
import {
|
|
62
62
|
createFileCredentialBroker
|
|
63
63
|
} from "./chunk-5CS33IBL.js";
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
isDeepInfraKimiModel,
|
|
76
76
|
isFireworksKimiModel,
|
|
77
77
|
resolveFireworksKimiModel
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-O6W2O2DA.js";
|
|
79
79
|
import {
|
|
80
80
|
createSpaceKey
|
|
81
81
|
} from "./chunk-IWLUTMYX.js";
|
|
@@ -764,8 +764,10 @@ var AGENT_ORCHESTRATION_RUN_INSTRUCTIONS = `--- \u591A Agent \u7F16\u6392\uFF08\
|
|
|
764
764
|
1. \u5148\u53D1\u73B0\u518D\u6D3E\u53D1\u3002\u8C03\u7528 listAgents \u8BFB\u53D6\u5B89\u5168\u6458\u8981\u3002\u9009\u4EBA\u6309\u4F18\u5148\u7EA7\uFF1A\u7279\u5B9A\u5DE5\u5177\u9700\u6C42 \u2192 \u4EFB\u52A1\u6863\u4E0E\u6210\u672C/\u80FD\u529B\u5339\u914D \u2192 \u80DC\u4EFB\u8005\u4E2D\u7684 isFavorite \u2192 modelAbility / inputPrice/outputPrice\u3002
|
|
765
765
|
- \u6D3E\u53D1\u524D\u5148\u5224\u65AD"\u8BE5\u4E0D\u8BE5\u6D3E\u53D1"\uFF1A\u7236 agent \u8F6E\u8BE2 + \u4E0A\u4E0B\u6587\u4F20\u9012\u672C\u8EAB\u6709\u6210\u672C\uFF0C\u5B50\u4EE3\u7406\u5355\u4EF7\u4F4E\u4E0D\u7B49\u4E8E\u603B\u6210\u672C\u66F4\u4F4E\u3002\u5C0F\u4EFB\u52A1\u76F4\u63A5\u505A\uFF1B\u53EA\u6709\u4EFB\u52A1\u5927\u5230\u5355 agent \u88C5\u4E0D\u4E0B\u3001\u6216\u53EF\u5E76\u884C\u7701\u65F6\u95F4\uFF0C\u7F16\u6392\u624D\u5212\u7B97\u3002
|
|
766
766
|
- \u5148\u4F30\u4EFB\u52A1\u6863\uFF1A\u5FAE/\u7B80\u5355\uFF08\u22642 \u6B65\u3001\u6587\u6848\u3001\u5355\u70B9 polish\uFF09\uFF5C\u4E2D\uFF08\u591A\u6587\u4EF6\u8BFB\u6539\u9A8C\uFF09\uFF5C\u9AD8\uFF08\u67B6\u6784\u3001\u6DF1 review\u3001\u9AD8\u98CE\u9669\u63A8\u7406\uFF09\u3002
|
|
767
|
-
- \u9AD8\
|
|
768
|
-
- \
|
|
767
|
+
- \u81EA\u52A8\u59D4\u6258\u7684\u9AD8\u7AEF\u6A21\u578B\u786C\u95E8\uFF1AOpus 5\u3001GPT-5.6 Sol \u53CA\u540C\u7EA7\u9876\u6863\u4EC5\u7528\u4E8E\u590D\u6742\u67B6\u6784/\u8DE8\u57DF\u8BBE\u8BA1\u3001\u91CD\u5927\u4E8B\u6545\u6216\u5B89\u5168/\u6570\u636E\u5B8C\u6574\u6027\u9AD8\u98CE\u9669\u5206\u6790\u3001\u6DF1 review\uFF08\u89C1\u4E0B\u91CF\u5316\u95E8\u69DB\uFF09\u3001\u6216\u4F4E\u4EF7\u80DC\u4EFB\u6A21\u578B\u5DF2\u6709\u5931\u8D25\u8BC1\u636E\u540E\u5347\u7EA7\u3002\u5FAE\u5C0F\u3001\u7B80\u5355\u548C\u666E\u901A\u4E2D\u7B49\u4EFB\u52A1\u7981\u6B62\u81EA\u52A8\u9009\u62E9\uFF1B\u7528\u6237\u660E\u786E\u70B9\u540D\u4F7F\u7528\u4E0D\u53D7\u6B64\u81EA\u52A8\u59D4\u6258\u9650\u5236\u3002
|
|
768
|
+
- \u6DF1 review \u91CF\u5316\u95E8\u69DB\uFF08\u8FBE\u5230\u624D\u5141\u8BB8\u9876\u6863\uFF09\uFF1A\u6539\u52A8\u6587\u4EF6\u6570 \u2265 30 \u4E14\u6D89\u53CA\u8BA1\u8D39/\u5B89\u5168/\u6570\u636E\u5B8C\u6574\u6027/\u6838\u5FC3\u8DEF\u7531\u5173\u952E\u8DEF\u5F84\uFF1B\u6216\u4F4E\u4EF7 reviewer \u5DF2\u7ED9\u51FA BLOCK/\u901A\u9053\u5931\u8D25\u540E\u7684\u5347\u7EA7\u3002\u666E\u901A review \u9ED8\u8BA4\u6D3E\u4E2D\u6863\u4F4E\u4EF7\u6A21\u578B\uFF08\u5982 DeepSeek V4 Flash\u3001agy-flash\u3001GLM \u7B49\uFF09\uFF0C\u4E0D\u6D3E\u9876\u6863\u3002
|
|
769
|
+
- \u9009\u62E9\u9876\u6863\u524D\u5FC5\u987B\u5728\u56DE\u590D\u4E2D\u7B80\u8FF0\u590D\u6742\u6027\u7406\u7531\uFF08\u5F15\u7528\u91CF\u5316\u95E8\u69DB\uFF09\uFF1B\u5931\u8D25\u5347\u7EA7\u5FC5\u987B\u6307\u51FA\u4F4E\u4EF7\u5019\u9009\u7684\u5177\u4F53\u5931\u8D25\u8BC1\u636E\u3002\u7981\u6B62\u51ED\u540D\u5B57\u7F16\u9020\u7EC6\u80FD\u529B\uFF0C\u4F46\u5141\u8BB8\u7528\u4EF7\u683C\u3001modelAbility \u53CA\u660E\u663E\u9876\u6863\u65CF\u7CFB\u505A\u7C97\u6863\u4F4D\u5339\u914D\u3002
|
|
770
|
+
- \u901A\u9053\u9884\u68C0\uFF1A\u6D3E\u53D1\u524D\u8DF3\u8FC7\u5DF2\u77E5\u574F\u901A\u9053\uFF08\u914D\u7F6E\u7F3A\u5931/\u533A\u57DF\u9650\u5236/\u7F51\u5173 400 \u7684 provider\uFF09\uFF0C\u907F\u514D\u6D6A\u8D39\u8F6E\u8BE2\u56DE\u5408\u3002
|
|
769
771
|
2. coding \u662F\u9ED8\u8BA4\u80FD\u529B\u3002tools \u53EA\u7528\u4E8E\u6D4F\u89C8\u5668\u3001\u56FE\u7247\u3001\u8868\u683C\u3001\u90AE\u4EF6\u3001\u6570\u636E\u5E93\u7B49\u7279\u5B9A\u5DE5\u5177\u4EFB\u52A1\uFF1B\u4E0D\u8981\u56E0\u4E3A coding agent \u7684 tools \u6458\u8981\u4E3A\u7A7A\u5C31\u6DD8\u6C70\u5B83\u3002
|
|
770
772
|
3. listAgents \u8FD4\u56DE\u7684 id\u3001publicKey\u3001handle \u53EA\u662F\u5019\u9009\u6807\u8BC6\u3002\u9009\u4E2D\u540E\u4F18\u5148\u8C03\u7528 readAgent \u89E3\u6790\u53EF\u8FD0\u884C\u7684 agentKey\uFF0C\u518D\u628A\u8BE5 agentKey \u4F20\u7ED9 startAgentRun\uFF1B\u4E0D\u8981\u51ED\u5C55\u793A\u540D\u79F0\u6216 id \u731C key\uFF0C\u4E5F\u4E0D\u8981\u7D22\u53D6 prompt\u3001\u5BC6\u94A5\u6216\u6570\u636E\u5E93 key \u6765\u9009\u4EBA\u3002\u6CA1\u6709 readAgent \u65F6\u53EA\u80FD\u4F7F\u7528\u5DF2\u6709\u4E0A\u4E0B\u6587\u4E2D\u660E\u786E\u7684 agentKey\u3002
|
|
771
773
|
4. \u6D3E\u53D1\u540E\u8F7B\u8F6E\u8BE2\u3002startAgentRun \u62FF\u5230 runId \u540E\uFF0C\u7528 controlAgentRun(action:"status", runId, tailLines:0) \u8F6E\u8BE2\u2014\u2014tailLines:0 \u53EA\u8FD4\u56DE\u72B6\u6001\u6458\u8981\uFF08\u4E0D\u62C9\u65E5\u5FD7\uFF09\uFF0C\u7701 token\u3002\u6BCF\u6B21\u8F6E\u8BE2 = \u7236 agent \u591A\u4E00\u4E2A turn = \u5168\u524D\u7F00\u91CD\u65B0\u8BA1\u4EF7\uFF0C\u6240\u4EE5\u95F4\u9694\u4E0D\u8981\u592A\u5BC6\uFF08\u5EFA\u8BAE 10\u201315s\uFF09\uFF0C\u4E0D\u8981 5s \u4E00\u6B21\u3002\u591A\u4E2A\u72EC\u7ACB\u5B50\u4EFB\u52A1\u4F18\u5148\u5E76\u884C\u6D3E\u53D1\uFF08\u4E00\u6B21 startAgentRun \u591A\u4E2A\uFF09\uFF0C\u7236 agent 1 \u4E2A turn \u6D3E\u53D1 + 1 \u4E2A turn \u6536\u96C6\u7ED3\u679C\uFF0C\u800C\u975E\u4E32\u884C\u7B49\u5F85 N \u4E2A turn\u3002
|
|
@@ -18,17 +18,17 @@ import {
|
|
|
18
18
|
isBuiltinNoloAgentRef,
|
|
19
19
|
t,
|
|
20
20
|
toolLabel
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XECKIDGJ.js";
|
|
22
22
|
import {
|
|
23
23
|
getReadableCliDb
|
|
24
24
|
} from "./chunk-W4NVOSFF.js";
|
|
25
25
|
import {
|
|
26
26
|
readDbRecord,
|
|
27
27
|
resolveAgentRecordFromHybridStore
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FMYTM25W.js";
|
|
29
29
|
import {
|
|
30
30
|
normalizeAgentHandle
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-WVDAUR2S.js";
|
|
32
32
|
import {
|
|
33
33
|
NOLO_PROJECT_MANAGER_AGENT_KEY,
|
|
34
34
|
isLocalCliAgentKey
|
|
@@ -44,8 +44,10 @@ import {
|
|
|
44
44
|
formatStartRunCard,
|
|
45
45
|
formatStatusRunCard,
|
|
46
46
|
formatStopRunCard,
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
isAgentNameFallback,
|
|
48
|
+
isAgentRunTerminalStatus,
|
|
49
|
+
resolveRunLabel
|
|
50
|
+
} from "./chunk-7HECYFOI.js";
|
|
49
51
|
import {
|
|
50
52
|
isGatewayHttpStatus
|
|
51
53
|
} from "./chunk-RQSOAMPJ.js";
|
|
@@ -54,7 +56,7 @@ import {
|
|
|
54
56
|
chooseMemoryOwners,
|
|
55
57
|
loadMemoryCandidatesFromDb,
|
|
56
58
|
resolveAgentMemoryPolicy
|
|
57
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-SGRDLYRZ.js";
|
|
58
60
|
import {
|
|
59
61
|
parseExternalSkillMarkdown,
|
|
60
62
|
parseSkillDocProtocol
|
|
@@ -63,14 +65,14 @@ import {
|
|
|
63
65
|
API_REPORTED_COST_MULTIPLIER,
|
|
64
66
|
normalizeUsage,
|
|
65
67
|
parseUiAskChoiceContent
|
|
66
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-LSHKV3S7.js";
|
|
67
69
|
import {
|
|
68
70
|
buildSkillDiscoveryContextBlock
|
|
69
71
|
} from "./chunk-AS3ZQ3O2.js";
|
|
70
72
|
import {
|
|
71
73
|
buildPlatformChatCompletionRequest,
|
|
72
74
|
parsePlatformChatCompletionData
|
|
73
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-4N7QA72L.js";
|
|
74
76
|
import {
|
|
75
77
|
resolveAgentRuntimeConfigFromRecord
|
|
76
78
|
} from "./chunk-OIQPORYI.js";
|
|
@@ -79,7 +81,7 @@ import {
|
|
|
79
81
|
LOCAL_TURN_ABORTED_CODE,
|
|
80
82
|
readActionGate,
|
|
81
83
|
readCommandActionGatePayload
|
|
82
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-LZYEWFPK.js";
|
|
83
85
|
import {
|
|
84
86
|
createThinkParserState,
|
|
85
87
|
flushThinkParser,
|
|
@@ -88,17 +90,17 @@ import {
|
|
|
88
90
|
import {
|
|
89
91
|
resolvePlatformAuthToken,
|
|
90
92
|
resolvePlatformChatCompletionsEndpoint
|
|
91
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-ZVDRAEZL.js";
|
|
92
94
|
import {
|
|
93
95
|
DEFAULT_CONTEXT_WINDOW,
|
|
94
96
|
getModelContextWindow
|
|
95
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-OELQ67TN.js";
|
|
96
98
|
import {
|
|
97
99
|
clipCompactText
|
|
98
100
|
} from "./chunk-5MMAK75Q.js";
|
|
99
101
|
import {
|
|
100
102
|
findModelConfig
|
|
101
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-66X4VSRC.js";
|
|
102
104
|
import {
|
|
103
105
|
buildMemoryOverlayLayer,
|
|
104
106
|
buildMemoryUseGuidanceLayer
|
|
@@ -2128,12 +2130,6 @@ function isFailedToolResult(event) {
|
|
|
2128
2130
|
function isNeedsActionToolResult(event) {
|
|
2129
2131
|
return Boolean(event.metadata?.actionGate);
|
|
2130
2132
|
}
|
|
2131
|
-
function readRunAgentName(parsed) {
|
|
2132
|
-
const agentName = typeof parsed.agentName === "string" ? parsed.agentName.trim() : "";
|
|
2133
|
-
if (agentName) return agentName;
|
|
2134
|
-
const name = typeof parsed.name === "string" ? parsed.name.trim() : "";
|
|
2135
|
-
return name || "agent";
|
|
2136
|
-
}
|
|
2137
2133
|
function readRunLogLines(parsed) {
|
|
2138
2134
|
if (Array.isArray(parsed.logLines)) return parsed.logLines;
|
|
2139
2135
|
if (typeof parsed.logTail === "string" && parsed.logTail.trim()) {
|
|
@@ -2257,7 +2253,7 @@ function recoverOrchestrationDisplayFromContent(toolName, content) {
|
|
|
2257
2253
|
return formatAgentListCard(agents);
|
|
2258
2254
|
}
|
|
2259
2255
|
if (toolName === "startAgentRun") {
|
|
2260
|
-
const name =
|
|
2256
|
+
const name = resolveRunLabel(parsed);
|
|
2261
2257
|
const status = typeof parsed.status === "string" ? parsed.status : "running";
|
|
2262
2258
|
return formatStartRunCard(name, status, labels);
|
|
2263
2259
|
}
|
|
@@ -2273,7 +2269,7 @@ function recoverOrchestrationDisplayFromContent(toolName, content) {
|
|
|
2273
2269
|
if (status === "killed" || status === "cancelled" || status === "cancelling") {
|
|
2274
2270
|
return formatStopRunCard(status, labels);
|
|
2275
2271
|
}
|
|
2276
|
-
return formatStatusRunCard(
|
|
2272
|
+
return formatStatusRunCard(resolveRunLabel(parsed), status ?? "\u2014", {
|
|
2277
2273
|
errorMessage: readRunErrorMessage(parsed),
|
|
2278
2274
|
logLines: readRunLogLines(parsed),
|
|
2279
2275
|
labels
|
|
@@ -2295,7 +2291,7 @@ function parseControlAgentRunStatusEvent(event) {
|
|
|
2295
2291
|
if (!status) return null;
|
|
2296
2292
|
const runId = typeof parsed.runId === "string" && parsed.runId.trim() ? parsed.runId.trim() : typeof event.metadata?.runId === "string" ? event.metadata.runId : "";
|
|
2297
2293
|
if (!runId) return null;
|
|
2298
|
-
const agentName =
|
|
2294
|
+
const agentName = resolveRunLabel(parsed);
|
|
2299
2295
|
const errorMessage = readRunErrorMessage(parsed);
|
|
2300
2296
|
const logLines = readRunLogLines(parsed);
|
|
2301
2297
|
const logKey = logLines && logLines.length > 0 ? logLines.join("\n") : "";
|
|
@@ -3108,6 +3104,12 @@ ${options.agentName} > `);
|
|
|
3108
3104
|
traceLocalTools,
|
|
3109
3105
|
eventMode,
|
|
3110
3106
|
pushText(chunk) {
|
|
3107
|
+
if (eventMode !== "jsonl" && formatToolEvent.flush) {
|
|
3108
|
+
const pendingToolOutput = formatToolEvent.flush();
|
|
3109
|
+
if (pendingToolOutput) {
|
|
3110
|
+
options.output.write(pendingToolOutput);
|
|
3111
|
+
}
|
|
3112
|
+
}
|
|
3111
3113
|
writeVisibleAssistantChunk(chunk);
|
|
3112
3114
|
},
|
|
3113
3115
|
pushThinking(chunk) {
|
|
@@ -3159,7 +3161,12 @@ function extractAgentRunStatusSnapshot(event) {
|
|
|
3159
3161
|
const parsed = JSON.parse(content);
|
|
3160
3162
|
const runId = typeof parsed.runId === "string" ? parsed.runId : "";
|
|
3161
3163
|
const status = typeof parsed.status === "string" ? parsed.status : "running";
|
|
3162
|
-
const
|
|
3164
|
+
const label = resolveRunLabel({
|
|
3165
|
+
agentName: parsed.agentName,
|
|
3166
|
+
name: parsed.name,
|
|
3167
|
+
agentKey: parsed.agentKey
|
|
3168
|
+
});
|
|
3169
|
+
const agentName = isAgentNameFallback(label) ? void 0 : label;
|
|
3163
3170
|
const logTail = typeof parsed.logTail === "string" ? parsed.logTail : void 0;
|
|
3164
3171
|
const logLines = Array.isArray(parsed.logLines) ? parsed.logLines : void 0;
|
|
3165
3172
|
const errorMessage = typeof parsed.errorMessage === "string" ? parsed.errorMessage : void 0;
|
|
@@ -3557,7 +3564,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
|
|
|
3557
3564
|
// packages/cli/client/agentRun.ts
|
|
3558
3565
|
import { ulid } from "ulid";
|
|
3559
3566
|
async function loadRunLocalAgentTurn() {
|
|
3560
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
3567
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-AH2RYWGP.js");
|
|
3561
3568
|
return runLocalAgentTurn;
|
|
3562
3569
|
}
|
|
3563
3570
|
async function resolveCurrentMachineId(options) {
|
|
@@ -3993,7 +4000,7 @@ async function runLocalAgentTurnForCli(options, settings) {
|
|
|
3993
4000
|
} : void 0;
|
|
3994
4001
|
const currentDialogId = options.continueDialogId ?? ulid();
|
|
3995
4002
|
const runChildTurn = async (input) => {
|
|
3996
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
4003
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-AH2RYWGP.js");
|
|
3997
4004
|
return runLocalAgentTurn(input);
|
|
3998
4005
|
};
|
|
3999
4006
|
const createFreshChildBaseAdapter = () => {
|