nolo-cli 0.97.4 → 0.97.6
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-GWED52PB.js → _executeModel-E64QIKWF.js} +69 -67
- package/action-PNPQLJHG.js +20 -0
- package/{addContentAction-B2DRF7P6.js → addContentAction-DX6T34JR.js} +13 -12
- package/{addDialogAgentAction-T3I7IXPK.js → addDialogAgentAction-6SGG37BF.js} +17 -16
- package/{agentDeleteCommand-FH462XO5.js → agentDeleteCommand-76VXVM3N.js} +40 -39
- package/{agentEmailCommands-6UNG6QKI.js → agentEmailCommands-URGNKPPJ.js} +79 -77
- package/{agentListCommands-7QQZXKMN.js → agentListCommands-62NGDFOS.js} +50 -49
- package/{agentMachineCommands-DCBE3CPT.js → agentMachineCommands-SDIABR4D.js} +38 -37
- package/{agentProviderCommands-EMZCM6VA.js → agentProviderCommands-SG535ZMY.js} +1 -1
- package/{agentPullCommand-HF4A42D4.js → agentPullCommand-5DOL6RGF.js} +1 -1
- package/{agentRecordCommands-TNOVFCQ3.js → agentRecordCommands-ZICUGEEH.js} +73 -71
- package/{agentRunCommand-PAUTLE6D.js → agentRunCommand-66NCRPQ7.js} +76 -74
- package/{agentRunControl-2TTTUTSW.js → agentRunControl-3HWA2LLQ.js} +2 -2
- package/{agentRuntimeLocal-AY6YNUAL.js → agentRuntimeLocal-EZPUCRMS.js} +35 -34
- package/{agentSlice-FRLSN5HD.js → agentSlice-V2EDVUXC.js} +15 -14
- package/{appDeleteCommands-DFA4W66A.js → appDeleteCommands-7WLUFWPE.js} +35 -34
- package/{appDeployCommands-RDTG2IGP.js → appDeployCommands-NK22AMAW.js} +35 -34
- package/{appDeployStatusCommands-43XL5KEM.js → appDeployStatusCommands-PIWSMQET.js} +35 -34
- package/{appGetCommands-AKEAHGIG.js → appGetCommands-J3H6IHUT.js} +35 -34
- package/{appListCommands-F2H37K7K.js → appListCommands-CF4NYHRY.js} +35 -34
- package/{authCommand-2YPMMIJN.js → authCommand-T6UO5KPG.js} +20 -20
- package/{authCommands-FFDS4FVX.js → authCommands-KTIUCVVG.js} +4 -4
- package/{builtinSkillRegistry-CALVIJTX.js → builtinSkillRegistry-MAR5LPAC.js} +7 -6
- package/{chunk-4J3Q2KJL.js → chunk-2LM7XUCX.js} +10 -8
- package/{chunk-EKS2APRJ.js → chunk-2TYM4V33.js} +2 -2
- package/{chunk-O26PCYLS.js → chunk-2WJ57RJA.js} +6 -6
- package/{chunk-XVLDUNF7.js → chunk-3PELUSVV.js} +4 -4
- package/{chunk-C53ZG23R.js → chunk-4XYBLM4D.js} +4 -4
- package/{chunk-ZOVKKMF6.js → chunk-74D5HEDI.js} +1 -1
- package/{chunk-UQNS32WZ.js → chunk-7MTCBOOS.js} +1 -1
- package/chunk-A4SQRTZ6.js +15 -0
- package/chunk-AGIM7IMJ.js +147 -0
- package/{chunk-7WCQEMPB.js → chunk-ANRWQGOV.js} +27 -27
- package/{chunk-5UTFL4QJ.js → chunk-AOTBKDRK.js} +7 -0
- package/{chunk-4HXY5QQG.js → chunk-APVTZ66V.js} +1 -1
- package/{chunk-OTEMQQZI.js → chunk-BFWQ65IZ.js} +1 -1
- package/{chunk-QMX4FNL4.js → chunk-BS7YHAQP.js} +84 -84
- package/{chunk-6D2JFXLY.js → chunk-BZ7NPA6G.js} +0 -2
- package/{chunk-34TW5T2M.js → chunk-CERE5KFG.js} +1 -1
- package/{chunk-TU5NE4U3.js → chunk-CV366NXM.js} +7 -7
- package/{chunk-KLMW4NNN.js → chunk-DBOMSOYX.js} +1 -1
- package/{chunk-AWF3WO5R.js → chunk-DHA6B3LS.js} +7 -7
- package/chunk-DZ7R5V3Y.js +164 -0
- package/{chunk-I3QNET24.js → chunk-E3YWHWCR.js} +20 -1
- package/{chunk-Z4CSIXYP.js → chunk-ELIMCKNX.js} +5 -5
- package/{chunk-CTUQJVQM.js → chunk-EMQZSES6.js} +1 -1
- package/{chunk-RSEEDUMS.js → chunk-EPCAQM3U.js} +2 -2
- package/{chunk-QOKAKDPE.js → chunk-HIM3FCLF.js} +0 -1
- package/{chunk-DCLMZ5TX.js → chunk-HP57OUJO.js} +5 -5
- package/{chunk-WILHZY7K.js → chunk-JNXHAQPJ.js} +4 -4
- package/{chunk-AZRHIN5B.js → chunk-K6U4NKFJ.js} +1 -1
- package/{chunk-3R7EAVTC.js → chunk-KFJ7ZWBF.js} +38 -38
- package/{chunk-PQ3B6KI6.js → chunk-LYKHXIQC.js} +92 -92
- package/{chunk-HYZIYH2H.js → chunk-NVRC52JS.js} +22 -20
- package/chunk-NWENLDMM.js +42 -0
- package/{chunk-YXXI6MJ2.js → chunk-OCZQEXMX.js} +56 -60
- package/{chunk-P6GMCCAT.js → chunk-OW4APERY.js} +1 -1
- package/{chunk-RJK4MLDC.js → chunk-OXEHLZNH.js} +18 -20
- package/{chunk-DSSTTEKI.js → chunk-PQ6BKMXB.js} +2 -2
- package/{chunk-VN45QM57.js → chunk-QNTL2KFU.js} +76 -76
- package/{chunk-QJC7X767.js → chunk-RJYTVNWD.js} +1 -1
- package/{chunk-CPUFH46E.js → chunk-ROFPWC4X.js} +12 -12
- package/{chunk-IAESIMK7.js → chunk-RX4HD4H7.js} +8 -8
- package/{chunk-7AEF6ZXP.js → chunk-SBFHKTI7.js} +7 -7
- package/{chunk-VVXRRZXE.js → chunk-SESH42J6.js} +3 -3
- package/{chunk-DDBBIUXZ.js → chunk-SH7KLR4U.js} +20 -20
- package/{chunk-DAWDCRIG.js → chunk-TAWF7YAW.js} +1 -1
- package/{chunk-ZYWQNCBN.js → chunk-TVCAR26G.js} +1 -1
- package/{chunk-APMUYAPK.js → chunk-U3C3IA32.js} +1 -1
- package/chunk-UJXNKP5V.js +760 -0
- package/{chunk-O2OWEFII.js → chunk-VCAQFMVN.js} +1 -1
- package/{chunk-KCDUTE5V.js → chunk-VEYL5MO5.js} +4 -4
- package/{chunk-WIWM4FE3.js → chunk-VY6VFGKR.js} +7 -746
- package/{chunk-XAYSAKSS.js → chunk-VZZUQTBR.js} +2 -2
- package/{chunk-CU3QB4HW.js → chunk-W72ISAKC.js} +3 -3
- package/{chunk-QKUMVP3O.js → chunk-WCGC6S77.js} +4 -4
- package/{chunk-SEZZCP3H.js → chunk-WGPKQLZO.js} +27 -27
- package/{chunk-QDSINZM3.js → chunk-WJ3B6FX6.js} +1 -14
- package/{chunk-6ZWMH6TJ.js → chunk-WS2VEVHS.js} +4 -5
- package/{chunk-7CHC4W22.js → chunk-XBIYSBSG.js} +5 -5
- package/{chunk-NR4IWY23.js → chunk-YWLAWZYQ.js} +40 -260
- package/{chunk-R5VLGKMK.js → chunk-Z7A2EDGT.js} +15 -15
- package/{chunk-VFWN2MLE.js → chunk-ZGNDLCYH.js} +170 -153
- package/{commandRegistry-PUSRUY6V.js → commandRegistry-N47CRDOH.js} +70 -70
- package/{contentThunks-JFPH7ZGN.js → contentThunks-RRD2XMWB.js} +32 -32
- package/{createAgentAutomationAction-AYUD3TVG.js → createAgentAutomationAction-OW4WEVHP.js} +35 -35
- package/{createDialogAction-5EJGAQL5.js → createDialogAction-L3WMTD5Z.js} +36 -35
- package/{createPageAction-OJVJJSAD.js → createPageAction-PWG3K3K7.js} +43 -42
- package/{dbSlice-DQ32LYTJ.js → dbSlice-BUB77DHH.js} +12 -11
- package/{deleteFile-NX6QHCWZ.js → deleteFile-HG4BF3CS.js} +8 -7
- package/{dialogCommands-TQ2EYOO3.js → dialogCommands-CNXJGME5.js} +38 -38
- package/{dialogSlice-L5SA2HCW.js → dialogSlice-M7ZWTW5D.js} +31 -31
- package/{docCreateCommands-YGTVED6F.js → docCreateCommands-U2TEDZHS.js} +34 -33
- package/{docDeleteCommands-Y2K6UBU5.js → docDeleteCommands-K4ME6F6S.js} +35 -34
- package/{docReadCommands-JSJTTCVY.js → docReadCommands-ZUAVR3HH.js} +34 -33
- package/{docStore-DAAP4WFC.js → docStore-IX7ASJUP.js} +13 -12
- package/{docUpdateCommands-X2ZC37D3.js → docUpdateCommands-UKEOVRTF.js} +34 -33
- package/{fetchMessages-67MEFPZR.js → fetchMessages-N2BW2L62.js} +4 -4
- package/getPricing-NMMFT3YI.js +1 -1
- package/{handleSendMessageAction-NCZABULQ.js → handleSendMessageAction-KMPC6UD4.js} +36 -36
- package/index.js +3 -3
- package/{localDialogRead-EBRS242U.js → localDialogRead-3FHUPYAR.js} +1 -1
- package/{localRuntimeDb-3LRMNLCM.js → localRuntimeDb-AXJREE2T.js} +1 -1
- package/{machineCommands-GRIO3LQG.js → machineCommands-U4RRZGU6.js} +79 -77
- package/{machineWsRunDispatch-65IU4CLA.js → machineWsRunDispatch-V3IOP2P2.js} +71 -69
- package/{memberThunks-5ZXPR63F.js → memberThunks-LEUNURN2.js} +21 -19
- package/package.json +1 -1
- package/{providerPresetApply-76AVU3HD.js → providerPresetApply-76AHT34P.js} +4 -4
- package/{providerRegistry-Z62NC45X.js → providerRegistry-6HAQAQXB.js} +4 -4
- package/{read-EPTJRAEF.js → read-TBK4DFHP.js} +8 -7
- package/{readDocTool-W4NDXNEX.js → readDocTool-TJFCZ3ND.js} +1 -1
- package/{readlineWorkspace-6F27WVAV.js → readlineWorkspace-QTCU2BC4.js} +327 -110
- package/{removeDialogAgentAction-BVAWQKXE.js → removeDialogAgentAction-CT5HGRZH.js} +20 -22
- package/{runAgentClientLoop-CKC7RYAK.js → runAgentClientLoop-4VOARXQF.js} +65 -63
- package/{runtimeDoctorCommands-3USD722U.js → runtimeDoctorCommands-EQJA4MGD.js} +2 -2
- package/{setDialogExtraReferencesAction-LYY45IAD.js → setDialogExtraReferencesAction-JOENKFTX.js} +14 -13
- package/{setPrimaryDialogAgentAction-73IL7DLU.js → setPrimaryDialogAgentAction-MHWOGXP3.js} +20 -22
- package/{chunk-SONWNI3L.js → settingThunks-KLPZNA6L.js} +104 -921
- package/{slateUtils-RIZES3PV.js → slateUtils-NGV2NMKM.js} +1 -1
- package/{spaceCommands-JZO2QK77.js → spaceCommands-ZESRWSTC.js} +36 -35
- package/{streamAgentChatTurn-4PBF5RK5.js → streamAgentChatTurn-VDAVK7N3.js} +110 -108
- package/{switchDialogAgentAction-UUXDSQ6X.js → switchDialogAgentAction-JHA4JEYA.js} +14 -13
- package/{tableCommands-G7RV3RU3.js → tableCommands-6U4BMLRR.js} +7 -7
- package/{toolApiClient-INIQCPGY.js → toolApiClient-EJT6TMFG.js} +4 -4
- package/{tools-BQ375D2L.js → tools-VJ3L5V6D.js} +53 -51
- package/{tuiSummaryLlmCaller-74NRRLVW.js → tuiSummaryLlmCaller-QUCBFGZK.js} +18 -17
- package/{updateDialogTitleAction-DTREH6RR.js → updateDialogTitleAction-GBUSLAQR.js} +39 -39
- package/action-GI44T4DR.js +0 -31
- package/browser-image-compression-MFDTD7K6.js +0 -1763
- package/chatQueueReduxAdapter-B3PSJ3GC.js +0 -187
- package/chunk-MEYIRKDN.js +0 -8967
- package/chunk-Y5GCAMGP.js +0 -9
- package/chunk-YPREESF4.js +0 -225
- package/settingSlice-Q6EKL7EQ.js +0 -204
- package/syncMapping-N6RGXGBW.js +0 -437
- package/{chunk-6PHKBY2Q.js → chunk-4YSOUKUR.js} +8 -8
- package/{chunk-S5XGT6GB.js → chunk-UA324D4O.js} +3 -3
- package/{chunk-MX574M24.js → chunk-V4UYSDTH.js} +3 -3
- package/{chunk-ESRMFY7G.js → chunk-XFUBXRVI.js} +5 -5
- package/{localRuntimeAuthority-5W6IJRAD.js → localRuntimeAuthority-AENMRPGX.js} +5 -5
|
@@ -29,6 +29,13 @@ import {
|
|
|
29
29
|
toOpenAiCompatibleMessages,
|
|
30
30
|
toResponsesTools
|
|
31
31
|
} from "./chunk-PUOC4YRO.js";
|
|
32
|
+
import {
|
|
33
|
+
isMeaningfulChatCompletionOutput,
|
|
34
|
+
isMeaningfulResponsesOutput
|
|
35
|
+
} from "./chunk-WS2VEVHS.js";
|
|
36
|
+
import {
|
|
37
|
+
clipCompactText
|
|
38
|
+
} from "./chunk-5MMAK75Q.js";
|
|
32
39
|
import {
|
|
33
40
|
buildProviderExecutionPlan,
|
|
34
41
|
canUsePlatformChatProvider,
|
|
@@ -39,13 +46,6 @@ import {
|
|
|
39
46
|
resolvePlatformServerUrl,
|
|
40
47
|
resolveProviderTransportDecision
|
|
41
48
|
} from "./chunk-27ONFIEY.js";
|
|
42
|
-
import {
|
|
43
|
-
isMeaningfulChatCompletionOutput,
|
|
44
|
-
isMeaningfulResponsesOutput
|
|
45
|
-
} from "./chunk-6ZWMH6TJ.js";
|
|
46
|
-
import {
|
|
47
|
-
clipCompactText
|
|
48
|
-
} from "./chunk-5MMAK75Q.js";
|
|
49
49
|
import {
|
|
50
50
|
NOLO_CLIENT_VERSION_HEADER,
|
|
51
51
|
isPlatformMimoProviderModel
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isSubscriptionEndpoint,
|
|
3
|
-
isSubscriptionOAuthCredential
|
|
4
|
-
} from "./chunk-DAWDCRIG.js";
|
|
5
1
|
import {
|
|
6
2
|
isOAuthApiKeyRef
|
|
7
3
|
} from "./chunk-YYLHWIW6.js";
|
|
8
4
|
import {
|
|
9
5
|
compareAgentSelection
|
|
10
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4YSOUKUR.js";
|
|
11
7
|
import {
|
|
12
8
|
isAgentUnavailableNow
|
|
13
9
|
} from "./chunk-H6A6X4EK.js";
|
|
10
|
+
import {
|
|
11
|
+
isSubscriptionEndpoint,
|
|
12
|
+
isSubscriptionOAuthCredential
|
|
13
|
+
} from "./chunk-TAWF7YAW.js";
|
|
14
14
|
import {
|
|
15
15
|
isAntigravityOAuthAgent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UA324D4O.js";
|
|
17
17
|
import {
|
|
18
18
|
getModelAbility
|
|
19
19
|
} from "./chunk-CYSYR67N.js";
|
|
20
20
|
import {
|
|
21
21
|
fnv1a32Hex
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-UJXNKP5V.js";
|
|
23
23
|
import {
|
|
24
24
|
isOwnedAgentKey,
|
|
25
25
|
ownedAgentKey,
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import {
|
|
2
|
+
noloAgentId
|
|
3
|
+
} from "./chunk-A4SQRTZ6.js";
|
|
4
|
+
import {
|
|
5
|
+
asTrimmedLowercaseString
|
|
6
|
+
} from "./chunk-QSJ3HFEF.js";
|
|
7
|
+
import {
|
|
8
|
+
normalizeServerOrigin
|
|
9
|
+
} from "./chunk-CF7PE763.js";
|
|
10
|
+
|
|
11
|
+
// packages/app/theme/fontPreference.ts
|
|
12
|
+
var FONT_PRESET_ALIASES = {
|
|
13
|
+
system: "system",
|
|
14
|
+
default: "system",
|
|
15
|
+
hei: "hei",
|
|
16
|
+
heiti: "hei",
|
|
17
|
+
sans: "hei",
|
|
18
|
+
song: "song",
|
|
19
|
+
songti: "song",
|
|
20
|
+
serif: "song",
|
|
21
|
+
kai: "kai",
|
|
22
|
+
kaiti: "kai",
|
|
23
|
+
"kai-ti": "kai",
|
|
24
|
+
"fang-song": "fang-song",
|
|
25
|
+
fangsong: "fang-song",
|
|
26
|
+
"fang song": "fang-song"
|
|
27
|
+
};
|
|
28
|
+
var normalizeFontPreset = (value) => {
|
|
29
|
+
const normalized = asTrimmedLowercaseString(value);
|
|
30
|
+
return FONT_PRESET_ALIASES[normalized];
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// packages/ai/policy/types.ts
|
|
34
|
+
var DEFAULT_AGENT_BASE_POLICY = {
|
|
35
|
+
version: 1,
|
|
36
|
+
tone: {
|
|
37
|
+
preset: "default",
|
|
38
|
+
resolutionMode: "blend"
|
|
39
|
+
},
|
|
40
|
+
knowledgeCaptureMaxLevel: 4,
|
|
41
|
+
spaceContextMaxLevel: 4,
|
|
42
|
+
selfEvolutionMode: "knowledge_only"
|
|
43
|
+
};
|
|
44
|
+
var DEFAULT_USER_PREFERENCE_PROFILE = {
|
|
45
|
+
version: 1,
|
|
46
|
+
tone: {
|
|
47
|
+
preset: "default"
|
|
48
|
+
},
|
|
49
|
+
knowledgeCaptureLevel: 2,
|
|
50
|
+
spaceContextLevel: 3
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
// packages/app/settings/settingTypes.ts
|
|
54
|
+
var SYSTEM_DEFAULT_AGENT_ID = "system-default";
|
|
55
|
+
|
|
56
|
+
// packages/app/settings/settingNormalizers.ts
|
|
57
|
+
var hasOwn = (target, key) => Object.prototype.hasOwnProperty.call(target, key);
|
|
58
|
+
var normalizeDefaultAgentIdSetting = (value) => {
|
|
59
|
+
if (typeof value !== "string" || value.trim() === "") {
|
|
60
|
+
return void 0;
|
|
61
|
+
}
|
|
62
|
+
return value === noloAgentId || value === SYSTEM_DEFAULT_AGENT_ID ? SYSTEM_DEFAULT_AGENT_ID : value;
|
|
63
|
+
};
|
|
64
|
+
var normalizeAuthorityHomeServerSetting = (value) => {
|
|
65
|
+
const normalized = normalizeServerOrigin(value);
|
|
66
|
+
return /^https?:\/\//i.test(normalized) ? normalized : null;
|
|
67
|
+
};
|
|
68
|
+
var normalizeTonePresetSetting = (value) => {
|
|
69
|
+
switch (value) {
|
|
70
|
+
case "professional":
|
|
71
|
+
case "friendly":
|
|
72
|
+
case "direct":
|
|
73
|
+
case "pragmatic":
|
|
74
|
+
case "default":
|
|
75
|
+
return value;
|
|
76
|
+
default:
|
|
77
|
+
return DEFAULT_USER_PREFERENCE_PROFILE.tone?.preset ?? "default";
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
var normalizePolicyLevelSetting = (value, fallback) => {
|
|
81
|
+
const n = Number(value);
|
|
82
|
+
if (n === 1 || n === 2 || n === 3 || n === 4) {
|
|
83
|
+
return n;
|
|
84
|
+
}
|
|
85
|
+
return fallback;
|
|
86
|
+
};
|
|
87
|
+
var resolveDefaultAgentIdSetting = (value) => normalizeDefaultAgentIdSetting(value) ?? SYSTEM_DEFAULT_AGENT_ID;
|
|
88
|
+
var omitKeys = (record, keys) => {
|
|
89
|
+
const next = { ...record };
|
|
90
|
+
keys.forEach((key) => {
|
|
91
|
+
delete next[key];
|
|
92
|
+
});
|
|
93
|
+
return next;
|
|
94
|
+
};
|
|
95
|
+
var isRecordLike = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
96
|
+
var normalizeSystemBuiltinSkills = (value, defaults) => {
|
|
97
|
+
const base = isRecordLike(value) ? value : {};
|
|
98
|
+
const result = { ...defaults };
|
|
99
|
+
for (const key of Object.keys(base)) {
|
|
100
|
+
result[key] = Boolean(base[key]);
|
|
101
|
+
}
|
|
102
|
+
return result;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
// packages/ai/policy/selfUpdateFields.ts
|
|
106
|
+
var AGENT_UPDATE_FIELD_NAMES = [
|
|
107
|
+
"name",
|
|
108
|
+
"handle",
|
|
109
|
+
"model",
|
|
110
|
+
"provider",
|
|
111
|
+
"prompt",
|
|
112
|
+
"introduction",
|
|
113
|
+
"greeting",
|
|
114
|
+
"isPublic",
|
|
115
|
+
"tags",
|
|
116
|
+
"tools",
|
|
117
|
+
"references",
|
|
118
|
+
"temperature",
|
|
119
|
+
"top_p",
|
|
120
|
+
"frequency_penalty",
|
|
121
|
+
"presence_penalty",
|
|
122
|
+
"max_tokens",
|
|
123
|
+
"reasoning_effort"
|
|
124
|
+
];
|
|
125
|
+
var PRIMARY_AUTO_APPROVE_SELF_UPDATE_FIELDS = [
|
|
126
|
+
"greeting",
|
|
127
|
+
"introduction",
|
|
128
|
+
"tags"
|
|
129
|
+
];
|
|
130
|
+
var DEFAULT_AUTO_APPROVED_SELF_UPDATE_FIELDS = [
|
|
131
|
+
...PRIMARY_AUTO_APPROVE_SELF_UPDATE_FIELDS
|
|
132
|
+
];
|
|
133
|
+
var VALID_AGENT_UPDATE_FIELDS = new Set(AGENT_UPDATE_FIELD_NAMES);
|
|
134
|
+
var normalizeAgentUpdateFieldList = (value, fallback = DEFAULT_AUTO_APPROVED_SELF_UPDATE_FIELDS) => {
|
|
135
|
+
if (!Array.isArray(value)) {
|
|
136
|
+
return [...fallback];
|
|
137
|
+
}
|
|
138
|
+
const normalized = Array.from(
|
|
139
|
+
new Set(
|
|
140
|
+
value.filter(
|
|
141
|
+
(item) => typeof item === "string" && VALID_AGENT_UPDATE_FIELDS.has(item)
|
|
142
|
+
)
|
|
143
|
+
)
|
|
144
|
+
);
|
|
145
|
+
return normalized;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
export {
|
|
149
|
+
normalizeFontPreset,
|
|
150
|
+
DEFAULT_AGENT_BASE_POLICY,
|
|
151
|
+
DEFAULT_USER_PREFERENCE_PROFILE,
|
|
152
|
+
AGENT_UPDATE_FIELD_NAMES,
|
|
153
|
+
DEFAULT_AUTO_APPROVED_SELF_UPDATE_FIELDS,
|
|
154
|
+
normalizeAgentUpdateFieldList,
|
|
155
|
+
SYSTEM_DEFAULT_AGENT_ID,
|
|
156
|
+
hasOwn,
|
|
157
|
+
normalizeDefaultAgentIdSetting,
|
|
158
|
+
normalizeAuthorityHomeServerSetting,
|
|
159
|
+
normalizeTonePresetSetting,
|
|
160
|
+
normalizePolicyLevelSetting,
|
|
161
|
+
resolveDefaultAgentIdSetting,
|
|
162
|
+
omitKeys,
|
|
163
|
+
normalizeSystemBuiltinSkills
|
|
164
|
+
};
|
|
@@ -289,6 +289,24 @@ var AGENT_RUN_TERMINAL_STATUSES = /* @__PURE__ */ new Set([
|
|
|
289
289
|
function isAgentRunTerminalStatus(status) {
|
|
290
290
|
return typeof status === "string" && AGENT_RUN_TERMINAL_STATUSES.has(status);
|
|
291
291
|
}
|
|
292
|
+
function formatAgentListCard(agents, maxDisplay = 8) {
|
|
293
|
+
const total = agents.length;
|
|
294
|
+
const lines = [`Agents (${total})`];
|
|
295
|
+
const visible = agents.slice(0, maxDisplay);
|
|
296
|
+
for (const agent of visible) {
|
|
297
|
+
const star = agent.isFavorite ? "\u2605" : " ";
|
|
298
|
+
const own = agent.isOwned ? "\u25CE" : " ";
|
|
299
|
+
const name = agent.name || "(unnamed)";
|
|
300
|
+
const model = agent.model || "\u2014";
|
|
301
|
+
const source = agent.apiSource || agent.provider || agent.cliProvider || "\u2014";
|
|
302
|
+
const key = agent.agentKey || "(agentKey unavailable)";
|
|
303
|
+
lines.push(`${star}${own} ${name} ${model} ${source} ${key}`);
|
|
304
|
+
}
|
|
305
|
+
if (total > maxDisplay) {
|
|
306
|
+
lines.push(`\u2026 +${total - maxDisplay} more`);
|
|
307
|
+
}
|
|
308
|
+
return lines.join("\n");
|
|
309
|
+
}
|
|
292
310
|
|
|
293
311
|
export {
|
|
294
312
|
buildDelegatedTaskContent,
|
|
@@ -308,5 +326,6 @@ export {
|
|
|
308
326
|
formatStopRunCard,
|
|
309
327
|
formatListRunsCard,
|
|
310
328
|
formatNotFoundRunCard,
|
|
311
|
-
isAgentRunTerminalStatus
|
|
329
|
+
isAgentRunTerminalStatus,
|
|
330
|
+
formatAgentListCard
|
|
312
331
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
selectCurrentServer
|
|
3
|
-
} from "./chunk-SONWNI3L.js";
|
|
4
1
|
import {
|
|
5
2
|
patch
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NVRC52JS.js";
|
|
4
|
+
import {
|
|
5
|
+
selectCurrentServer
|
|
6
|
+
} from "./chunk-NWENLDMM.js";
|
|
7
7
|
import {
|
|
8
8
|
getIsDesktopApp
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HIM3FCLF.js";
|
|
10
10
|
import {
|
|
11
11
|
selectIdentityToken
|
|
12
12
|
} from "./chunk-SEJ5OS6F.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// packages/cli/agentCommandSupport.ts
|
|
6
6
|
async function getDefaultCliDb() {
|
|
7
|
-
const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-
|
|
7
|
+
const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-AXJREE2T.js");
|
|
8
8
|
return getDefaultCliLocalRuntimeDb();
|
|
9
9
|
}
|
|
10
10
|
function createNullCliDb() {
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
patch,
|
|
6
6
|
read
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NVRC52JS.js";
|
|
8
8
|
import {
|
|
9
9
|
DEVICE_LOCAL_OWNER_ID,
|
|
10
10
|
isDeviceLocalSpaceBody
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UJXNKP5V.js";
|
|
12
12
|
import {
|
|
13
13
|
selectIdentityUserId
|
|
14
14
|
} from "./chunk-SEJ5OS6F.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveDialogKey
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BZ7NPA6G.js";
|
|
4
4
|
import {
|
|
5
5
|
compactWhitespace
|
|
6
6
|
} from "./chunk-DWLEOOGR.js";
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
asTrimmedLowercaseString
|
|
9
9
|
} from "./chunk-QSJ3HFEF.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./chunk-
|
|
11
|
+
extractCustomId
|
|
12
|
+
} from "./chunk-M2EJHDJP.js";
|
|
13
13
|
import {
|
|
14
14
|
isRecord
|
|
15
15
|
} from "./chunk-KUG52IAP.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./chunk-
|
|
17
|
+
selectIdentityToken
|
|
18
|
+
} from "./chunk-SEJ5OS6F.js";
|
|
19
19
|
|
|
20
20
|
// packages/ai/tools/toolApiClient.ts
|
|
21
21
|
var MAIN_SERVER = "https://nolo.chat";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeTimingMs
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WS2VEVHS.js";
|
|
4
4
|
import {
|
|
5
5
|
MODEL_LOOKUP_MAP
|
|
6
6
|
} from "./chunk-3BXNTXYI.js";
|
|
7
7
|
import {
|
|
8
8
|
ALL_MODELS
|
|
9
9
|
} from "./chunk-CYSYR67N.js";
|
|
10
|
+
import {
|
|
11
|
+
BUILTIN_NOLO_AGENT_KEY
|
|
12
|
+
} from "./chunk-BNGW5ASC.js";
|
|
10
13
|
import {
|
|
11
14
|
asTrimmedNonEmptyStringArray
|
|
12
15
|
} from "./chunk-3AH7LNUB.js";
|
|
13
16
|
import {
|
|
14
17
|
asOptionalFiniteNumber
|
|
15
18
|
} from "./chunk-WWC7I6TA.js";
|
|
16
|
-
import {
|
|
17
|
-
BUILTIN_NOLO_AGENT_KEY
|
|
18
|
-
} from "./chunk-BNGW5ASC.js";
|
|
19
19
|
import {
|
|
20
20
|
asOptionalTrimmedString
|
|
21
21
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
clipMultilineText,
|
|
9
9
|
fetchAndSerializeTable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZGNDLCYH.js";
|
|
11
11
|
import {
|
|
12
12
|
isGatewayHttpStatus
|
|
13
13
|
} from "./chunk-NF64D32W.js";
|
|
@@ -17,31 +17,31 @@ import {
|
|
|
17
17
|
normalizeNonNegativeMs,
|
|
18
18
|
parseRetryAfterHeaderMs
|
|
19
19
|
} from "./chunk-3L2WKC3W.js";
|
|
20
|
-
import {
|
|
21
|
-
waitForAbortableDelay
|
|
22
|
-
} from "./chunk-N4G4PKQ6.js";
|
|
23
20
|
import {
|
|
24
21
|
resolvePageReadMarkdown,
|
|
25
22
|
slateToSimplifiedMarkdown
|
|
26
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7MTCBOOS.js";
|
|
24
|
+
import {
|
|
25
|
+
waitForAbortableDelay
|
|
26
|
+
} from "./chunk-N4G4PKQ6.js";
|
|
27
27
|
import {
|
|
28
28
|
extractCategorizedMentions
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-AGIM7IMJ.js";
|
|
30
30
|
import {
|
|
31
31
|
fetchAndCacheMessages
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-BS7YHAQP.js";
|
|
33
33
|
import {
|
|
34
34
|
shouldUseServerProxy
|
|
35
35
|
} from "./chunk-YYLHWIW6.js";
|
|
36
36
|
import {
|
|
37
37
|
fetchServerSyncedCredential
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-2LM7XUCX.js";
|
|
39
39
|
import {
|
|
40
40
|
buildSkillGuidancePromptBlock,
|
|
41
41
|
extractRuntimePageCapabilities,
|
|
42
42
|
resolveBuiltinSkillPage,
|
|
43
43
|
resolveSkillGraphFromRoots
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-VEYL5MO5.js";
|
|
45
45
|
import {
|
|
46
46
|
DELETE_SAFETY_RED_LINE,
|
|
47
47
|
buildIdentityBlock,
|
|
@@ -50,74 +50,74 @@ import {
|
|
|
50
50
|
detectDispatchIntentFromMessages,
|
|
51
51
|
normalizeChatCompletionsBodyForProvider,
|
|
52
52
|
resolveToolGuidedSections
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-2TYM4V33.js";
|
|
54
54
|
import {
|
|
55
55
|
convertMessagesToResponsesInput,
|
|
56
56
|
getUsageRequestOptions,
|
|
57
57
|
preserveAgentStateFields,
|
|
58
58
|
stablePromptCacheKey
|
|
59
59
|
} from "./chunk-PUOC4YRO.js";
|
|
60
|
+
import {
|
|
61
|
+
createFileCredentialBroker
|
|
62
|
+
} from "./chunk-XFUBXRVI.js";
|
|
63
|
+
import {
|
|
64
|
+
estimateTokenCount
|
|
65
|
+
} from "./chunk-PSCNXBYA.js";
|
|
66
|
+
import {
|
|
67
|
+
createSpaceKey
|
|
68
|
+
} from "./chunk-UAD2WT54.js";
|
|
69
|
+
import {
|
|
70
|
+
read
|
|
71
|
+
} from "./chunk-NVRC52JS.js";
|
|
72
|
+
import {
|
|
73
|
+
MEMORY_USE_GUIDANCE,
|
|
74
|
+
buildUserResponseLanguageContext,
|
|
75
|
+
wrapHistoricalSummaryWithReplayGuard
|
|
76
|
+
} from "./chunk-4VJAC32I.js";
|
|
77
|
+
import {
|
|
78
|
+
canonicalizeToolNames
|
|
79
|
+
} from "./chunk-XUWRURDF.js";
|
|
60
80
|
import {
|
|
61
81
|
ANTIGRAVITY_CLOUD_CODE_BASE_URL,
|
|
62
82
|
isAntigravityOAuthAgent
|
|
63
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-UA324D4O.js";
|
|
64
84
|
import {
|
|
65
85
|
buildProviderAuthHeaders
|
|
66
86
|
} from "./chunk-27ONFIEY.js";
|
|
67
|
-
import {
|
|
68
|
-
estimateTokenCount
|
|
69
|
-
} from "./chunk-PSCNXBYA.js";
|
|
70
|
-
import {
|
|
71
|
-
createFileCredentialBroker
|
|
72
|
-
} from "./chunk-ESRMFY7G.js";
|
|
73
87
|
import {
|
|
74
88
|
isOpenAiResponsesModel,
|
|
75
89
|
resolvePlatformChatCompletionsEndpoint,
|
|
76
90
|
resolvePlatformResponsesEndpoint
|
|
77
91
|
} from "./chunk-7KVZ5LDQ.js";
|
|
78
|
-
import {
|
|
79
|
-
toErrorMessage
|
|
80
|
-
} from "./chunk-HNMXYYJR.js";
|
|
81
92
|
import {
|
|
82
93
|
clampReasoningEffort,
|
|
83
94
|
getModelConfig,
|
|
84
95
|
isModelSupportReasoningEffort
|
|
85
96
|
} from "./chunk-3BXNTXYI.js";
|
|
86
97
|
import {
|
|
87
|
-
|
|
88
|
-
} from "./chunk-
|
|
89
|
-
import {
|
|
90
|
-
MEMORY_USE_GUIDANCE,
|
|
91
|
-
buildUserResponseLanguageContext,
|
|
92
|
-
wrapHistoricalSummaryWithReplayGuard
|
|
93
|
-
} from "./chunk-4VJAC32I.js";
|
|
94
|
-
import {
|
|
95
|
-
canonicalizeToolNames
|
|
96
|
-
} from "./chunk-XUWRURDF.js";
|
|
98
|
+
toErrorMessage
|
|
99
|
+
} from "./chunk-HNMXYYJR.js";
|
|
97
100
|
import {
|
|
98
101
|
isDeepInfraKimiModel,
|
|
99
102
|
isFireworksKimiModel,
|
|
100
103
|
isPlatformMimoProviderModel,
|
|
101
104
|
resolveFireworksKimiModel
|
|
102
105
|
} from "./chunk-Y3PMXGLH.js";
|
|
103
|
-
import {
|
|
104
|
-
read
|
|
105
|
-
} from "./chunk-HYZIYH2H.js";
|
|
106
106
|
import {
|
|
107
107
|
asTrimmedLowercaseString
|
|
108
108
|
} from "./chunk-QSJ3HFEF.js";
|
|
109
109
|
import {
|
|
110
110
|
getRuntimeServerContext
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-UJXNKP5V.js";
|
|
112
112
|
import {
|
|
113
|
-
|
|
114
|
-
} from "./chunk-
|
|
113
|
+
extractCustomId
|
|
114
|
+
} from "./chunk-M2EJHDJP.js";
|
|
115
115
|
import {
|
|
116
116
|
isRecord
|
|
117
117
|
} from "./chunk-KUG52IAP.js";
|
|
118
118
|
import {
|
|
119
|
-
|
|
120
|
-
} from "./chunk-
|
|
119
|
+
isAbortError
|
|
120
|
+
} from "./chunk-HIM3FCLF.js";
|
|
121
121
|
import {
|
|
122
122
|
asTrimmedString
|
|
123
123
|
} from "./chunk-3EUW3WEO.js";
|