nolo-cli 0.88.0-alpha.1 → 0.89.0-alpha.1
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-OYYN3KQN.js → _executeModel-I3XRMAJ2.js} +30 -30
- package/{action-JZ62BXLX.js → action-7GHFPDSQ.js} +4 -4
- package/{addContentAction-2ETXWERA.js → addContentAction-ZNVB2NOV.js} +2 -2
- package/{addDialogAgentAction-COSPGJ4K.js → addDialogAgentAction-CIDFWATM.js} +1 -1
- package/{agentDeleteCommand-7R63ZEJO.js → agentDeleteCommand-DCTG26JW.js} +18 -18
- package/{agentEmailCommands-FHUDZF3O.js → agentEmailCommands-MRRHBLDQ.js} +40 -40
- package/{agentListCommands-CWSKIM2T.js → agentListCommands-CUE46CSP.js} +20 -20
- package/{agentMachineCommands-I76OX5RH.js → agentMachineCommands-FYDEKBIO.js} +18 -18
- package/{agentProviderCommands-65ZC2WB4.js → agentProviderCommands-X3FA6BUM.js} +87 -0
- package/{agentPullCommand-N7L2CT7L.js → agentPullCommand-U73W5IBM.js} +1 -1
- package/{agentRecordCommands-NNSHYOJJ.js → agentRecordCommands-P2MSNP7R.js} +39 -39
- package/{agentRunCommand-5XIUOB6M.js → agentRunCommand-QJGP7JEN.js} +39 -39
- package/{agentRuntimeLocal-HJJ75IEL.js → agentRuntimeLocal-T43UNWAY.js} +15 -15
- package/{agentSlice-BY4B7SZN.js → agentSlice-7GDS5Q2S.js} +2 -2
- package/{appDeleteCommands-I5FFT4AP.js → appDeleteCommands-YBKY3VEI.js} +18 -18
- package/{appDeployCommands-KGPV55WA.js → appDeployCommands-EBC76HO4.js} +18 -18
- package/{appDeployStatusCommands-E7G63JHG.js → appDeployStatusCommands-WXRC5KEK.js} +18 -18
- package/{appGetCommands-SM467V6N.js → appGetCommands-VZZQEDOV.js} +18 -18
- package/{appListCommands-HXMRWXQV.js → appListCommands-HYSPVQ77.js} +18 -18
- package/{authCommand-NNFLRLGJ.js → authCommand-E4GDVKMW.js} +9 -9
- package/{authCommands-364ESL7K.js → authCommands-VOTT6XWX.js} +2 -2
- package/{builtinSkillRegistry-VXSNE7LM.js → builtinSkillRegistry-5SYVTS6Z.js} +3 -3
- package/{chatQueueReduxAdapter-BO46SLAF.js → chatQueueReduxAdapter-CXEWIDFZ.js} +13 -13
- package/{chunk-NG4UT4K4.js → chunk-23RQKXP6.js} +1 -1
- package/{chunk-C3FZR5EC.js → chunk-2F7RJC6L.js} +1 -1
- package/{chunk-SR2I44ML.js → chunk-2XEVK4BT.js} +1 -1
- package/{chunk-BQKN5ZHZ.js → chunk-3T4PRBHV.js} +1 -1
- package/{chunk-BT5QS32P.js → chunk-4FRNB4ZG.js} +4 -4
- package/{chunk-X7WAX4JU.js → chunk-5EJZGJS2.js} +1 -1
- package/{chunk-MXUSPS2N.js → chunk-6H7GN3JL.js} +1554 -1529
- package/{chunk-WRAQE6NT.js → chunk-6RCZYDDC.js} +5 -5
- package/{chunk-IX2C6U5S.js → chunk-6ZC5KPXV.js} +303 -18
- package/{chunk-GJ7OZ5AA.js → chunk-AYT2OKNM.js} +3 -3
- package/{chunk-PY4QMA4R.js → chunk-BNMZ7QUV.js} +1 -1
- package/{chunk-LHDV2QUI.js → chunk-DS3SQTDT.js} +1 -1
- package/{chunk-6LUUGZTS.js → chunk-EXWOCYCR.js} +3 -3
- package/{chunk-N4X2KIYL.js → chunk-GIG262ZG.js} +1 -1
- package/{chunk-WKJC6UOK.js → chunk-GRJTR4PU.js} +2 -2
- package/{chunk-T2EUOLNJ.js → chunk-GXWEF4IZ.js} +1 -1
- package/{chunk-PUBG45E7.js → chunk-IMDA4FW4.js} +19 -19
- package/{chunk-6IHWRTUK.js → chunk-IO7DYRPW.js} +3 -3
- package/{chunk-BEQGQMYW.js → chunk-IZAWJCG7.js} +1 -1
- package/{chunk-JGFQXKOI.js → chunk-JC2WQS66.js} +14 -14
- package/{chunk-S6FCVZ4I.js → chunk-JITSBA52.js} +2 -2
- package/{chunk-DJM4BCSB.js → chunk-KT6LENVP.js} +2 -2
- package/{chunk-NRCMG4QP.js → chunk-L2VNQQ7M.js} +20 -20
- package/{chunk-PZ7KLSR5.js → chunk-LEYH5NOH.js} +5 -5
- package/{chunk-RXX4GDIH.js → chunk-LS2ZANRJ.js} +1 -1
- package/{chunk-4YIWJYIX.js → chunk-LSV2BOJL.js} +1 -1
- package/{chunk-5HKWE6OQ.js → chunk-MFW4BGJS.js} +1 -1
- package/{chunk-LOQUOFNY.js → chunk-NVHJWYUO.js} +25 -25
- package/{chunk-IZWQKAGJ.js → chunk-OCL2YCAU.js} +3 -3
- package/{chunk-BXLB7DXE.js → chunk-P3AS5IPM.js} +97 -2
- package/{chunk-M67M3AK5.js → chunk-PHDKTASK.js} +1 -1
- package/{chunk-HOMTDPWW.js → chunk-Q246OUG5.js} +3 -3
- package/{chunk-B7W5GH7Z.js → chunk-Q4KVAB6L.js} +3 -3
- package/{chunk-N3AFKM63.js → chunk-S6STPUMG.js} +4 -4
- package/{chunk-PZCTYKGU.js → chunk-T4F2EQGN.js} +2 -2
- package/{chunk-A3GDWRW6.js → chunk-TGRQUFLU.js} +1 -1
- package/{chunk-KIAHQ37Z.js → chunk-UINEAQ2R.js} +1 -1
- package/{chunk-CADAR6QU.js → chunk-UO66QKGI.js} +2 -2
- package/{chunk-XPMTSMUR.js → chunk-US463UAD.js} +2 -2
- package/{chunk-AJHEFRGJ.js → chunk-UWMQ6FPM.js} +4 -0
- package/{chunk-TR54UTFI.js → chunk-VARZWSKW.js} +2 -2
- package/{chunk-AXTSU2GN.js → chunk-VQD6BTML.js} +3 -3
- package/{chunk-5377HH3Q.js → chunk-VW3YGKWR.js} +8 -8
- package/{chunk-SI2EE4UA.js → chunk-W7PGACND.js} +9 -9
- package/{chunk-5XV64MAU.js → chunk-WSOMSDQB.js} +1 -1
- package/{chunk-TMPLPCVX.js → chunk-X77EN2BJ.js} +2 -2
- package/{chunk-WVXCW7DR.js → chunk-XCSSFPTB.js} +9 -4
- package/{chunk-2LX7X7HX.js → chunk-Y2IFJ7VM.js} +29 -1
- package/{chunk-EDZAJS6E.js → chunk-ZIHJVHFH.js} +1 -1
- package/{chunk-UMYXJWI3.js → chunk-ZKGIAM7I.js} +1 -1
- package/chunk-ZSG2AQU4.js +626 -0
- package/{contentThunks-NN3ZOJU6.js → contentThunks-Y2ACIFDB.js} +14 -14
- package/{createAgentAutomationAction-UQVM5MV6.js → createAgentAutomationAction-TNE3QMJR.js} +14 -14
- package/{createDialogAction-2STXHX6L.js → createDialogAction-BMGHBTQB.js} +16 -16
- package/{createPageAction-242235N5.js → createPageAction-FFNIZPIS.js} +14 -14
- package/{dbSlice-JNK4XZ27.js → dbSlice-4CUQE35F.js} +1 -1
- package/{dialogCommands-PHA2BBME.js → dialogCommands-3JC3BIXC.js} +18 -18
- package/{dialogSlice-NOUIL5BO.js → dialogSlice-3E7Z7HZV.js} +13 -13
- package/{docCreateCommands-DBC54QNT.js → docCreateCommands-6LNQLCTA.js} +17 -17
- package/{docDeleteCommands-BZX7G4OR.js → docDeleteCommands-ZJOAPWZS.js} +18 -18
- package/{docReadCommands-Q2HY6WCP.js → docReadCommands-LJTRSBG6.js} +17 -17
- package/{docStore-QDYR4FZ2.js → docStore-R47ABXBB.js} +2 -2
- package/{docUpdateCommands-BTZO5DTY.js → docUpdateCommands-7P3QF3N2.js} +17 -17
- package/{getPricing-QVTUQQTM.js → getPricing-TV6ZB7ES.js} +3 -3
- package/{handleSendMessageAction-W6GXLCWS.js → handleSendMessageAction-FFYOGXAO.js} +13 -13
- package/index.js +58 -54
- package/{localDialogRead-GKTRZFAP.js → localDialogRead-BTFJ4V2I.js} +1 -1
- package/{localRuntimeDb-P37ZTX55.js → localRuntimeDb-SYQGUF4U.js} +1 -1
- package/{machineCommands-7HE2HX56.js → machineCommands-FN5GGQV3.js} +37 -37
- package/{machineWsRunDispatch-FBWKBESO.js → machineWsRunDispatch-H47IA7ZT.js} +37 -37
- package/{memberThunks-A6OAY77F.js → memberThunks-N35XAOC6.js} +2 -2
- package/{models-GS72DVJS.js → models-CMXFDBQH.js} +2 -2
- package/package.json +1 -1
- package/providerPresetApply-D2GGHPI7.js +214 -0
- package/providerRegistry-MU6C4ABD.js +31 -0
- package/{readlineWorkspace-RLN3EILV.js → readlineWorkspace-NXKHYZEU.js} +45 -45
- package/{removeDialogAgentAction-6SGBZWSW.js → removeDialogAgentAction-O2POGBOE.js} +4 -4
- package/{runAgentClientLoop-6DEWS4PV.js → runAgentClientLoop-CEBV5UPD.js} +28 -28
- package/{runtimeDoctorCommands-CROTMULY.js → runtimeDoctorCommands-X6WDBEQX.js} +2 -2
- package/{setDialogExtraReferencesAction-LC3SOVJO.js → setDialogExtraReferencesAction-KPSVVY3C.js} +2 -2
- package/{setPrimaryDialogAgentAction-XE2HIEVY.js → setPrimaryDialogAgentAction-RMJETONI.js} +4 -4
- package/{settingSlice-GJYAXZZ6.js → settingSlice-I6MTTNDX.js} +3 -3
- package/{spaceCommands-5GJJVW46.js → spaceCommands-JHT4ALCQ.js} +17 -17
- package/{streamAgentChatTurn-FMX2IFTN.js → streamAgentChatTurn-SFCZP4GY.js} +34 -34
- package/{switchDialogAgentAction-EDYI5RLR.js → switchDialogAgentAction-OQSGWVQQ.js} +1 -1
- package/{tools-ZHD6MQ7J.js → tools-K3YOTESV.js} +25 -25
- package/{tuiSummaryLlmCaller-CCYGQDGB.js → tuiSummaryLlmCaller-T2OA5ZVB.js} +8 -8
- package/{updateDialogTitleAction-XOTA3PMK.js → updateDialogTitleAction-CSPKYQRO.js} +14 -14
- package/{db-VQSAOWAO.js → db-WK5MDZVN.js} +1 -1
- package/{localRuntimeAuthority-R5UBODT3.js → localRuntimeAuthority-6IR6BBXE.js} +3 -3
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VQD6BTML.js";
|
|
9
9
|
import {
|
|
10
10
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
11
11
|
buildInvalidToolCallSelfHealResult,
|
|
12
12
|
parseToolCallArguments,
|
|
13
13
|
performFetchRequest,
|
|
14
14
|
sanitizeOutboundMessages
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JC2WQS66.js";
|
|
16
16
|
import {
|
|
17
17
|
createSSEParser,
|
|
18
18
|
createToolRunId,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
toolRunSetPending,
|
|
24
24
|
toolRunStarted,
|
|
25
25
|
toolRunSucceeded
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NVHJWYUO.js";
|
|
27
27
|
import {
|
|
28
28
|
getPublicImageAgentMode
|
|
29
29
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
messageStreamEnd,
|
|
36
36
|
messageStreaming,
|
|
37
37
|
updateToolMessage
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-L2VNQQ7M.js";
|
|
39
39
|
import {
|
|
40
40
|
streamAgentChatTurn
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-4FRNB4ZG.js";
|
|
42
42
|
import {
|
|
43
43
|
addActiveController,
|
|
44
44
|
removeActiveController,
|
|
@@ -56,19 +56,19 @@ import {
|
|
|
56
56
|
import {
|
|
57
57
|
EMPTY_ASSISTANT_REPAIR_PROMPT,
|
|
58
58
|
getModelInfo
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-OCL2YCAU.js";
|
|
60
60
|
import {
|
|
61
61
|
getApiEndpoint
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-6H7GN3JL.js";
|
|
63
63
|
import {
|
|
64
64
|
toErrorMessage
|
|
65
65
|
} from "./chunk-HNMXYYJR.js";
|
|
66
66
|
import {
|
|
67
67
|
selectCurrentServer
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-JITSBA52.js";
|
|
69
69
|
import {
|
|
70
70
|
write
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-5EJZGJS2.js";
|
|
72
72
|
import {
|
|
73
73
|
createDialogMessageKeyAndId,
|
|
74
74
|
dialogMessageKey,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
resolvePlatformChatCompletionsEndpoint,
|
|
4
4
|
resolvePlatformHostedCredentialProvider,
|
|
5
5
|
resolvePlatformResponsesEndpoint
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-T4F2EQGN.js";
|
|
7
7
|
import {
|
|
8
8
|
CLI_PROVIDER_VALUES
|
|
9
9
|
} from "./chunk-W7XHHYWM.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
CLIENT_VERSION_TOO_OLD_CODE,
|
|
12
12
|
buildClientVersionGateErrorDetail,
|
|
13
13
|
evaluatePlatformHostedClientVersionGate
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UWMQ6FPM.js";
|
|
15
15
|
import {
|
|
16
16
|
asTrimmedLowercaseString
|
|
17
17
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
SYSTEM_AGENT_CAPABILITIES,
|
|
6
6
|
SYSTEM_AGENT_CAPABILITY_IDS
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IZAWJCG7.js";
|
|
8
8
|
import {
|
|
9
9
|
createKey
|
|
10
10
|
} from "./chunk-VMFTFOWF.js";
|
|
@@ -50,6 +50,9 @@ var TOOL_PACKS = {
|
|
|
50
50
|
// queryModelUsage / queryUserGrowthReport:server-only 工具(web/CLI executor
|
|
51
51
|
// 直接返回 serverOnlyResult),不随 CORE 常驻——server 端由 agent 显式
|
|
52
52
|
// tools 配置按需挂载(utilityServerTools 执行器),web 端不再挂死 schema。
|
|
53
|
+
// setTodoList 已移至「conversation-todo」系统能力包(defaultEnabled:true)
|
|
54
|
+
// 作为唯一 owner——single source of truth:普通 agent 默认仍有 setTodoList,
|
|
55
|
+
// 但关闭「对话 Todo」开关即可真正摘掉它(CORE 常驻时该开关形同虚设)。
|
|
53
56
|
CORE: [
|
|
54
57
|
"read",
|
|
55
58
|
"createDoc",
|
|
@@ -58,8 +61,7 @@ var TOOL_PACKS = {
|
|
|
58
61
|
"updateSelf",
|
|
59
62
|
"ask_user",
|
|
60
63
|
"createAgentAutomation",
|
|
61
|
-
"notifyUser"
|
|
62
|
-
"setTodoList"
|
|
64
|
+
"notifyUser"
|
|
63
65
|
],
|
|
64
66
|
// L2 - 联网搜索:与 CAPABILITY_PACKS「web-search」对齐。
|
|
65
67
|
// 社交读工具属于「social-reader」包,不得因 exa_search 被旁路注入。
|
|
@@ -278,7 +280,10 @@ function resolveEffectiveEnabledPacks(args) {
|
|
|
278
280
|
];
|
|
279
281
|
}
|
|
280
282
|
var SYSTEM_BUILTIN_SKILL_PACK_IDS = SYSTEM_AGENT_CAPABILITY_IDS;
|
|
281
|
-
var DEFAULT_MOUNT_SYSTEM_CAPABILITY_IDS = [
|
|
283
|
+
var DEFAULT_MOUNT_SYSTEM_CAPABILITY_IDS = [
|
|
284
|
+
"agent-orchestration",
|
|
285
|
+
"conversation-todo"
|
|
286
|
+
];
|
|
282
287
|
function getDefaultSystemCapabilityTools() {
|
|
283
288
|
const ids = DEFAULT_MOUNT_SYSTEM_CAPABILITY_IDS;
|
|
284
289
|
return SYSTEM_AGENT_CAPABILITY_PACKS.filter((pack) => ids.includes(pack.id)).flatMap((pack) => [...pack.tools]);
|
|
@@ -459,6 +459,7 @@ function parseAgentUpdateArgs(args) {
|
|
|
459
459
|
const name = readOption(args, "--name");
|
|
460
460
|
const customProviderUrl = readOption(args, "--custom-provider-url");
|
|
461
461
|
const apiKey = readOption(args, "--api-key") ?? readOption(args, "--provider-api-key");
|
|
462
|
+
const presetId = readOption(args, "--preset") ?? readOption(args, "--provider-preset");
|
|
462
463
|
const verify = args.includes("--verify");
|
|
463
464
|
const verifyPrompt = readOption(args, "--verify-prompt");
|
|
464
465
|
const maxConcurrent = parsePositiveIntegerOption(
|
|
@@ -498,13 +499,40 @@ function parseAgentUpdateArgs(args) {
|
|
|
498
499
|
throw new Error("No updates provided. Use --model / --cli-provider / --api-source / --field key=value.");
|
|
499
500
|
}
|
|
500
501
|
}
|
|
501
|
-
return { agentInput, updates, promptDoc, copyProviderFrom, verify, verifyPrompt };
|
|
502
|
+
return { agentInput, updates, promptDoc, copyProviderFrom, verify, verifyPrompt, presetId };
|
|
502
503
|
}
|
|
503
504
|
async function buildCreatedAgentRecord(args) {
|
|
504
505
|
const serverUrl = args.cliArgs ? resolveServerUrl(args.cliArgs, args.env) : resolveServerUrl(args.env);
|
|
505
506
|
const userId = parseUserIdFromAuthToken(args.authToken);
|
|
506
507
|
const resolvedAgentInput = resolveCliAgentKeyInput(args.parsed.agentInput);
|
|
507
508
|
const agentKey = resolvedAgentInput.startsWith("agent-") ? resolvedAgentInput : createAgentKey.private(userId || "local", resolvedAgentInput);
|
|
509
|
+
if (args.parsed.presetId) {
|
|
510
|
+
const { resolveProviderPresetFields } = await import("./providerPresetApply-D2GGHPI7.js");
|
|
511
|
+
const fields = resolveProviderPresetFields(args.parsed.presetId);
|
|
512
|
+
if (fields.kind === "manual") {
|
|
513
|
+
throw new Error(
|
|
514
|
+
`unknown --preset "${args.parsed.presetId}". Run \`nolo agent providers\` to list preset ids.`
|
|
515
|
+
);
|
|
516
|
+
}
|
|
517
|
+
if (fields.kind === "oauth" || fields.requiresDesktopOAuth) {
|
|
518
|
+
throw new Error(
|
|
519
|
+
`--preset "${args.parsed.presetId}" is an OAuth subscription; create it in Nolo Desktop (OAuth login required).`
|
|
520
|
+
);
|
|
521
|
+
}
|
|
522
|
+
const u = args.parsed.updates;
|
|
523
|
+
u.apiSource = "custom";
|
|
524
|
+
u.provider = u.provider ?? fields.provider;
|
|
525
|
+
if (fields.customProviderUrl && !u.customProviderUrl) {
|
|
526
|
+
u.customProviderUrl = fields.customProviderUrl;
|
|
527
|
+
}
|
|
528
|
+
if (fields.apiKeyHeader && !u.apiKeyHeader) {
|
|
529
|
+
u.apiKeyHeader = fields.apiKeyHeader;
|
|
530
|
+
}
|
|
531
|
+
if (!u.model && fields.model) u.model = fields.model;
|
|
532
|
+
if (fields.defaultReasoningEffort && u.reasoning_effort == null) {
|
|
533
|
+
u.reasoning_effort = fields.defaultReasoningEffort;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
508
536
|
if (args.parsed.copyProviderFrom) {
|
|
509
537
|
const providerSource = await resolveAgentRecordFromHybridStore({
|
|
510
538
|
agentInput: args.parsed.copyProviderFrom,
|