nolo-cli 0.78.0-alpha.1 → 0.78.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/README.md +2 -2
- package/{_executeModel-T3FPYFVF.js → _executeModel-W26HVI75.js} +46 -46
- package/{action-D22U6CTH.js → action-6DXQGJMX.js} +11 -11
- package/{addContentAction-XAPUTGL4.js → addContentAction-I7VX5SAC.js} +9 -9
- package/{addDialogAgentAction-M7VLLBZM.js → addDialogAgentAction-OJSFV7DZ.js} +8 -8
- package/{agentDeleteCommand-2TYFURBN.js → agentDeleteCommand-XNFWCKBH.js} +30 -28
- package/{agentEmailCommands-7P35ZMUA.js → agentEmailCommands-W3X3EJ3V.js} +62 -60
- package/{agentGrantCommands-R3VQEZJR.js → agentGrantCommands-YW6PQAQ2.js} +2 -2
- package/{agentListCommands-IFUOWXP3.js → agentListCommands-DFWFU6XO.js} +38 -30
- package/{agentMachineCommands-G46ZZ2ZQ.js → agentMachineCommands-LMFOAEL4.js} +30 -28
- package/{agentProviderCommands-65ZC2WB4.js → agentProviderCommands-ZBYHGTGY.js} +87 -0
- package/{agentPullCommand-N7L2CT7L.js → agentPullCommand-GLOOXJ2E.js} +3 -3
- package/{agentRecordCommands-R74LTQEQ.js → agentRecordCommands-FVVVCQFM.js} +59 -57
- package/{agentRunCommand-IRSZYCEU.js → agentRunCommand-HTBVIBGV.js} +60 -58
- package/{agentRunControl-T44MESII.js → agentRunControl-XLGD3UZ5.js} +1 -1
- package/{agentRuntimeLocal-PUZINLWJ.js → agentRuntimeLocal-2JFG4HDU.js} +28 -26
- package/{agentSlice-EACXUOWW.js → agentSlice-ZNLGFUB5.js} +10 -10
- package/{appDeleteCommands-U4NTEJYQ.js → appDeleteCommands-2UN4N2NR.js} +30 -28
- package/{appDeployCommands-FXF45Q7F.js → appDeployCommands-37D74KRR.js} +30 -28
- package/{appDeployStatusCommands-KONVRM53.js → appDeployStatusCommands-QBLWL2IA.js} +30 -28
- package/{appGetCommands-3VOGIZ7T.js → appGetCommands-6KXIDF2T.js} +30 -28
- package/{appListCommands-A6ROBW7P.js → appListCommands-G2WFGEWQ.js} +30 -28
- package/{authCommand-EVGFLAHO.js → authCommand-V2DJ7DB7.js} +164 -24
- package/{authCommands-ILTBI6JV.js → authCommands-RGOGCPP6.js} +4 -5
- package/builtinSkillRegistry-WBGYKIAZ.js +33 -0
- package/{chatQueueReduxAdapter-XEIJO5WR.js → chatQueueReduxAdapter-XCJHIY3R.js} +24 -24
- package/chunk-2ADBVBEM.js +1625 -0
- package/{chunk-FPTQQSS6.js → chunk-2AYMFHUG.js} +26 -5
- package/{chunk-EXMHJN7C.js → chunk-2F4VYGFW.js} +2 -2
- package/{chunk-C3FZR5EC.js → chunk-2F7RJC6L.js} +1 -1
- package/{chunk-HQUORJTM.js → chunk-3BMYXEUW.js} +1 -1
- package/{chunk-733J6D44.js → chunk-3CMTBX3X.js} +6 -6
- package/{chunk-PZM3EENV.js → chunk-3CR2LC6X.js} +1 -1
- package/{chunk-DWPNOYMB.js → chunk-3R5PH4IP.js} +1 -1
- package/{chunk-ZY4K4CZR.js → chunk-4BYPU626.js} +909 -304
- package/{chunk-ZZCJUXUI.js → chunk-4DRWWIOL.js} +2 -2
- package/{chunk-H7UKKEIS.js → chunk-576IMUGH.js} +1 -1
- package/{chunk-QRBAZ5PW.js → chunk-5DFFKASO.js} +3 -3
- package/{chunk-MGU5ADIQ.js → chunk-5NMZNPTN.js} +10 -10
- package/{chunk-5XTOKQLW.js → chunk-5UTFL4QJ.js} +6 -2
- package/{chunk-CDVGNZDA.js → chunk-5V4NJHRM.js} +11 -173
- package/chunk-5ZUL4CUO.js +10 -0
- package/{chunk-BJCWNHVU.js → chunk-6BEA566T.js} +2 -2
- package/{chunk-E6RGHPDR.js → chunk-6D6VBVEW.js} +4 -6
- package/{chunk-U6LKJRJB.js → chunk-7MYYE7WX.js} +42 -26
- package/{chunk-BYEJ7K2Z.js → chunk-7S4YWN7P.js} +1 -1
- package/{chunk-AFIWC5NH.js → chunk-A2C4AKKM.js} +1 -1
- package/{chunk-SREASRV5.js → chunk-ABQYVJBJ.js} +1 -1
- package/{chunk-XEEHSS64.js → chunk-AQZRTHDZ.js} +1200 -52
- package/{chunk-AJHEFRGJ.js → chunk-ASGDO77C.js} +122 -1
- package/{chunk-2KDR4CWE.js → chunk-BYMV6QZG.js} +24 -1
- package/{chunk-MYU3MJCF.js → chunk-CLI4LFSM.js} +175 -7
- package/{chunk-HH65VA5U.js → chunk-CPH3W5A7.js} +15 -3
- package/{chunk-PYXL2CJL.js → chunk-DNQPPRHY.js} +1 -1
- package/{chunk-3QPYFHAH.js → chunk-DPQ2WVBY.js} +1 -1
- package/{chunk-DSRXPQWA.js → chunk-F2CGG72C.js} +43 -43
- package/{chunk-P7FA2HMM.js → chunk-FQYMLZ6C.js} +13 -15
- package/{chunk-BJIRLHJR.js → chunk-GII32WZW.js} +1 -0
- package/{chunk-FSFQ3A7S.js → chunk-GRYGRGPS.js} +10 -10
- package/{chunk-D74EWXL4.js → chunk-HMEMJ7GH.js} +386 -46
- package/{chunk-OZX2IPKM.js → chunk-HQCSU3DI.js} +1 -1
- package/{chunk-3JQ2NRYU.js → chunk-HVURBGF3.js} +4 -4
- package/{chunk-ALGK6TIE.js → chunk-HYZHJ5GW.js} +3 -3
- package/{chunk-Q6FF2MCK.js → chunk-IIKPWSPX.js} +1 -1
- package/{chunk-X7Z7U4Z6.js → chunk-JBBZ5KUM.js} +15 -15
- package/{chunk-KC5FAHVS.js → chunk-JEDZAO7L.js} +1 -1
- package/{chunk-6XIE5ZGI.js → chunk-JPGCXHNM.js} +1 -1
- package/{chunk-4EJ5QYB5.js → chunk-JTK3TJYV.js} +1 -1
- package/{chunk-CMH2SYHX.js → chunk-K7M3MWCE.js} +2 -2
- package/{chunk-5J7W2VWW.js → chunk-L2ICPOAL.js} +6 -265
- package/{chunk-RXX4GDIH.js → chunk-LS2ZANRJ.js} +1 -1
- package/{chunk-EVBFYPDC.js → chunk-MC4XLIJ7.js} +6 -2
- package/{chunk-PGSKWZCB.js → chunk-MJHQ3NRV.js} +1 -1
- package/{chunk-ZLPA7K55.js → chunk-N3OAPEZE.js} +29 -10
- package/{chunk-K7AG465Q.js → chunk-ND2J3NRB.js} +4 -2
- package/{chunk-G3NT6BM3.js → chunk-NFMHIUY3.js} +142 -59
- package/{chunk-XWNRAIUL.js → chunk-PH5J5VUY.js} +6 -16
- package/{chunk-AETZ7AD6.js → chunk-Q554LLSI.js} +1 -1
- package/chunk-Q5FJJ6XI.js +103 -0
- package/{chunk-JYYZCK2Z.js → chunk-QFMFJZLO.js} +1 -1
- package/{chunk-KIS76A2P.js → chunk-QHETQ3KI.js} +38 -4
- package/{chunk-UZ6XXCVR.js → chunk-RZANZZL2.js} +15 -2
- package/{chunk-SPAQ4PVV.js → chunk-SAFZABH7.js} +1 -1
- package/{chunk-QC5LGHYP.js → chunk-SMZSWB44.js} +10 -5
- package/chunk-TL6L5XUT.js +266 -0
- package/{chunk-QUH3XHL5.js → chunk-TVNI5FLG.js} +7 -7
- package/{chunk-YFADVSZE.js → chunk-UA5S3LQQ.js} +6 -6
- package/{chunk-QA6YKM3H.js → chunk-UTCCPWB2.js} +32 -4
- package/{chunk-E36HZARC.js → chunk-VHJLQHPQ.js} +3 -3
- package/{chunk-NHRQCXIQ.js → chunk-VMFTFOWF.js} +13 -3
- package/{chunk-UJ63UXGE.js → chunk-VRLI2WNW.js} +1073 -752
- package/{chunk-NG4UT4K4.js → chunk-WS22FPWT.js} +1 -1
- package/{chunk-MEVSATIF.js → chunk-WXPVOQD7.js} +66 -792
- package/{chunk-AFIKMMGC.js → chunk-XKQJJK4F.js} +1 -1
- package/{chunk-SZLVDREM.js → chunk-XMGHGEN6.js} +3 -3
- package/{chunk-L2Y24GRM.js → chunk-XTUY5EL4.js} +16 -12
- package/{chunk-V3ZKNK5D.js → chunk-YOXYA2GU.js} +10 -10
- package/{chunk-GBPZKFYK.js → chunk-Z33ARZCP.js} +4 -4
- package/chunk-ZAB3A45K.js +677 -0
- package/{chunk-UDQWGU7F.js → chunk-ZBT3WNBK.js} +1 -1
- package/{contentThunks-3SPROFG5.js → contentThunks-VURN3DFW.js} +25 -25
- package/{createAgentAutomationAction-EIP2EG3O.js → createAgentAutomationAction-QZAAY77R.js} +25 -25
- package/{createDialogAction-RLUSTN4D.js → createDialogAction-CHGXVTAC.js} +28 -28
- package/{createPageAction-4Y52G7WG.js → createPageAction-IOGAFIN7.js} +26 -26
- package/{dbSlice-GKGGFNOB.js → dbSlice-YXQ6RYIH.js} +8 -8
- package/{deleteFile-LWSR674W.js → deleteFile-YG6QMJLU.js} +3 -3
- package/{dialogCommands-G223U5WU.js → dialogCommands-XREAP6WQ.js} +32 -30
- package/{dialogSlice-THY45JWM.js → dialogSlice-DOPGWGS4.js} +24 -24
- package/{docCreateCommands-2P47IJDK.js → docCreateCommands-3PYZGSCL.js} +31 -29
- package/{docDeleteCommands-N3EGDOIC.js → docDeleteCommands-3Y6MU44Q.js} +32 -30
- package/{docReadCommands-6BFV2HI7.js → docReadCommands-UBANMAFR.js} +31 -29
- package/{docStore-ZQ3ECOPY.js → docStore-SYYFBENY.js} +9 -9
- package/{docUpdateCommands-ZTMPXHC5.js → docUpdateCommands-4GK2X6BN.js} +31 -29
- package/{fetchMessages-DRABNDPZ.js → fetchMessages-EIU7UFFK.js} +3 -4
- package/{getPricing-HRMSOF3E.js → getPricing-F2C65RIX.js} +4 -4
- package/{handleSendMessageAction-CE4M5XIE.js → handleSendMessageAction-NPVTY2GE.js} +24 -24
- package/index.js +88 -80
- package/{localDialogRead-PUQKFI73.js → localDialogRead-BTFJ4V2I.js} +2 -2
- package/{localRuntimeDb-P37ZTX55.js → localRuntimeDb-SYQGUF4U.js} +1 -1
- package/{machineCommands-4OT7KVCD.js → machineCommands-I66X2XB7.js} +59 -57
- package/{machineWsRunDispatch-TR3EYESP.js → machineWsRunDispatch-W4FVBOUM.js} +57 -55
- package/{memberThunks-KATHH3F4.js → memberThunks-5T4J6KXQ.js} +9 -9
- package/{models-GS72DVJS.js → models-WW7VFNXB.js} +2 -2
- package/{offlineMarxistsAgentCommand-GEH6SNNA.js → offlineMarxistsAgentCommand-JEWCIAWM.js} +1 -1
- package/package.json +1 -1
- package/providerPresetApply-OCWWKBSD.js +214 -0
- package/providerRegistry-ZJQU7AJ7.js +31 -0
- package/{read-LC6HVYBN.js → read-M2Q6WEKB.js} +5 -4
- package/{readDocTool-N3ERJHHF.js → readDocTool-T37P3YPB.js} +1 -1
- package/{readlineWorkspace-GSL5CYNJ.js → readlineWorkspace-VY5AMOGR.js} +196 -111
- package/{removeDialogAgentAction-F5GPTALR.js → removeDialogAgentAction-HB3JBVAI.js} +11 -11
- package/{runAgentClientLoop-NE5EHXSS.js → runAgentClientLoop-3NDADLVE.js} +45 -45
- package/{runtimeDoctorCommands-CROTMULY.js → runtimeDoctorCommands-X6WDBEQX.js} +2 -2
- package/{setDialogExtraReferencesAction-AY4ZCF3A.js → setDialogExtraReferencesAction-4XLHRV37.js} +9 -9
- package/{setPrimaryDialogAgentAction-HPMG7V3R.js → setPrimaryDialogAgentAction-C3JOFC4W.js} +11 -11
- package/{settingSlice-OEJA4NQO.js → settingSlice-CZRURSTH.js} +10 -10
- package/{spaceCommands-MRP5U3C3.js → spaceCommands-ENYCUUZH.js} +29 -27
- package/{streamAgentChatTurn-A6L6O22P.js → streamAgentChatTurn-634OFUSR.js} +57 -56
- package/{switchDialogAgentAction-HMDZTZ4I.js → switchDialogAgentAction-C6KVUKJP.js} +8 -8
- package/{tableCommands-SUNTHAYX.js → tableCommands-O6NWHFKV.js} +1 -1
- package/{toolApiClient-VGYUB4P5.js → toolApiClient-7PSIFQPJ.js} +2 -2
- package/{tools-JS475NYO.js → tools-ILBLCF7D.js} +41 -39
- package/tuiSummaryLlmCaller-LFUBZKXK.js +127 -0
- package/{updateCommands-Y363MC3L.js → updateCommands-2M74UL7P.js} +2 -2
- package/{updateDialogTitleAction-GMZUT6RP.js → updateDialogTitleAction-RKFET73N.js} +45 -28
- package/chunk-3IT2PFHL.js +0 -611
- package/chunk-I42VC5KR.js +0 -15
- package/codingSkills-E6KSDNSJ.js +0 -48
- package/tuiSummaryLlmCaller-3Z24VUWM.js +0 -116
- package/{chunk-3RAG2NAD.js → chunk-UKWGR5SS.js} +3 -3
- package/{db-VQSAOWAO.js → db-WK5MDZVN.js} +1 -1
- package/{localRuntimeAuthority-R5UBODT3.js → localRuntimeAuthority-6IR6BBXE.js} +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildLocalAgentLookupKeys,
|
|
3
3
|
shouldReadAgentKeyRemotely
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IIKPWSPX.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveCliAgentKeyInput
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SAFZABH7.js";
|
|
8
8
|
import {
|
|
9
9
|
toErrorMessage
|
|
10
10
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-A7GB5UGH.js";
|
|
22
22
|
import {
|
|
23
23
|
createAgentKey
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VMFTFOWF.js";
|
|
25
25
|
|
|
26
26
|
// packages/cli/agentRecordHelpers.ts
|
|
27
27
|
import { readFileSync } from "node:fs";
|
|
@@ -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-OCWWKBSD.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,
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
} from "./chunk-DWLEOOGR.js";
|
|
7
7
|
import {
|
|
8
8
|
addContentAction
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4DRWWIOL.js";
|
|
10
10
|
import {
|
|
11
11
|
upload
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UA5S3LQQ.js";
|
|
13
13
|
import {
|
|
14
14
|
getRuntimeServerContext
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UKWGR5SS.js";
|
|
16
16
|
import {
|
|
17
17
|
API_ENDPOINTS
|
|
18
18
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
asOptionalFiniteNumber
|
|
3
3
|
} from "./chunk-WWC7I6TA.js";
|
|
4
|
-
import {
|
|
5
|
-
asNonEmptyStringArray
|
|
6
|
-
} from "./chunk-I42VC5KR.js";
|
|
7
4
|
import {
|
|
8
5
|
asTrimmedString
|
|
9
6
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -2393,6 +2390,17 @@ var require_rambda = __commonJS({
|
|
|
2393
2390
|
}
|
|
2394
2391
|
});
|
|
2395
2392
|
|
|
2393
|
+
// packages/core/stringArray.ts
|
|
2394
|
+
function asNonEmptyStringArray(value) {
|
|
2395
|
+
if (!Array.isArray(value)) return [];
|
|
2396
|
+
return value.filter(
|
|
2397
|
+
(item) => typeof item === "string" && !!item.trim()
|
|
2398
|
+
);
|
|
2399
|
+
}
|
|
2400
|
+
function asTrimmedNonEmptyStringArray(value) {
|
|
2401
|
+
return asNonEmptyStringArray(value).map((item) => item.trim());
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2396
2404
|
// packages/core/toTrimmedString.ts
|
|
2397
2405
|
function toTrimmedString(value) {
|
|
2398
2406
|
return typeof value === "string" ? value.trim() : value == null ? "" : String(value).trim();
|
|
@@ -3169,6 +3177,8 @@ var sanitizeShareData = (data) => {
|
|
|
3169
3177
|
};
|
|
3170
3178
|
|
|
3171
3179
|
export {
|
|
3180
|
+
asNonEmptyStringArray,
|
|
3181
|
+
asTrimmedNonEmptyStringArray,
|
|
3172
3182
|
ulid,
|
|
3173
3183
|
toTrimmedString,
|
|
3174
3184
|
toNonEmptyString,
|