@ai-matrx/agents 0.59.194 → 0.59.196

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.
@@ -33,6 +33,83 @@ function gateEnabled(gates, key) {
33
33
  return gates?.[key] === true;
34
34
  }
35
35
 
36
+ // generated/llm-enums.ts
37
+ var LLM_PARAMS_KEYS = [
38
+ "model",
39
+ "offering_id",
40
+ "max_output_tokens",
41
+ "temperature",
42
+ "top_p",
43
+ "top_k",
44
+ "tool_choice",
45
+ "parallel_tool_calls",
46
+ "reasoning_effort",
47
+ "reasoning_summary",
48
+ "visualization",
49
+ "thinking_level",
50
+ "include_thoughts",
51
+ "thinking_budget",
52
+ "clear_thinking",
53
+ "disable_reasoning",
54
+ "response_format",
55
+ "stop_sequences",
56
+ "stream",
57
+ "store",
58
+ "extended_prompt_cache",
59
+ "previous_interaction_id",
60
+ "task",
61
+ "verbosity",
62
+ "internal_web_search",
63
+ "internal_url_context",
64
+ "internal_x_search",
65
+ "aspect_ratio",
66
+ "width",
67
+ "height",
68
+ "count",
69
+ "render_quality",
70
+ "background",
71
+ "output_compression",
72
+ "moderation",
73
+ "input_fidelity",
74
+ "partial_images",
75
+ "style",
76
+ "reference_strength",
77
+ "tts_voice",
78
+ "audio_format",
79
+ "performance_direction",
80
+ "speech_speed",
81
+ "turn_pause_ms",
82
+ "language_code",
83
+ "duration_seconds",
84
+ "resolution",
85
+ "fps",
86
+ "steps",
87
+ "seed",
88
+ "guidance_scale",
89
+ "encode_quality",
90
+ "negative_prompt",
91
+ "output_format",
92
+ "frame_images",
93
+ "reference_images",
94
+ "image_loras",
95
+ "disable_safety_checker",
96
+ "generate_audio",
97
+ "enhance_prompt",
98
+ "camera_control",
99
+ "image_input",
100
+ "image_inputs",
101
+ "mask",
102
+ "last_frame_image",
103
+ "video_input",
104
+ "video_action",
105
+ "custom_tools",
106
+ "mcp_servers",
107
+ "compaction_settings",
108
+ "detected_contexts",
109
+ "dictionary",
110
+ "tts_quality"
111
+ ];
112
+
36
113
  // settings/settings-catalogue.ts
37
114
  import { humanizeIdentifier } from "@ai-matrx/kit/text-case";
38
115
  var CONTROL_TYPES = [
@@ -204,83 +281,33 @@ function buildSettingsRows(controls, settings) {
204
281
  }
205
282
  return groups;
206
283
  }
207
-
208
- // generated/llm-enums.ts
209
- var LLM_PARAMS_KEYS = [
210
- "model",
284
+ var CATALOGUE_LABELS = new Map(
285
+ SETTINGS_CATALOGUE.flatMap((g) => g.entries.map((e) => [e.key, e.label]))
286
+ );
287
+ function settingLabel(key) {
288
+ return CATALOGUE_LABELS.get(key) ?? humanizeIdentifier(key);
289
+ }
290
+ var RECOGNIZED_PARAMS = new Set(LLM_PARAMS_KEYS);
291
+ var EXTRA_EXCLUDED = /* @__PURE__ */ new Set([
292
+ ...CATCHALL_EXCLUDED,
211
293
  "offering_id",
212
- "max_output_tokens",
213
- "temperature",
214
- "top_p",
215
- "top_k",
216
- "tool_choice",
217
- "parallel_tool_calls",
218
- "reasoning_effort",
219
- "reasoning_summary",
220
- "visualization",
221
- "thinking_level",
222
- "include_thoughts",
223
- "thinking_budget",
224
- "clear_thinking",
225
- "disable_reasoning",
226
- "response_format",
227
- "stop_sequences",
228
- "stream",
229
- "store",
230
- "extended_prompt_cache",
231
- "previous_interaction_id",
232
- "task",
233
- "verbosity",
234
- "internal_web_search",
235
- "internal_url_context",
236
- "internal_x_search",
237
- "aspect_ratio",
238
- "width",
239
- "height",
240
- "count",
241
- "render_quality",
242
- "background",
243
- "output_compression",
244
- "moderation",
245
- "input_fidelity",
246
- "partial_images",
247
- "style",
248
- "reference_strength",
249
- "tts_voice",
250
- "audio_format",
251
- "performance_direction",
252
- "speech_speed",
253
- "turn_pause_ms",
254
- "language_code",
255
- "duration_seconds",
256
- "resolution",
257
- "fps",
258
- "steps",
259
- "seed",
260
- "guidance_scale",
261
- "encode_quality",
262
- "negative_prompt",
294
+ "max_tokens",
263
295
  "output_format",
264
- "frame_images",
265
- "reference_images",
266
- "image_loras",
267
- "disable_safety_checker",
268
- "generate_audio",
269
- "enhance_prompt",
270
- "camera_control",
271
- "image_input",
272
- "image_inputs",
273
- "mask",
274
- "last_frame_image",
275
- "video_input",
276
- "video_action",
277
- "custom_tools",
278
- "mcp_servers",
279
- "compaction_settings",
280
- "detected_contexts",
281
- "dictionary",
282
- "tts_quality"
283
- ];
296
+ "n"
297
+ ]);
298
+ function extraSettingKeys(controls, settings, alsoKeys = []) {
299
+ const out = { translated: [], unsupported: [] };
300
+ if (!controls) return out;
301
+ const declaresAny = Object.keys(controls).some((key) => lookupControl(controls, key) !== null);
302
+ if (!declaresAny) return out;
303
+ const keys = new Set(Object.keys(settings ?? {}).filter((key) => hasMeaningfulValue(settings, key)));
304
+ for (const key of alsoKeys) keys.add(key);
305
+ for (const key of keys) {
306
+ if (EXTRA_EXCLUDED.has(key) || lookupControl(controls, key)) continue;
307
+ (RECOGNIZED_PARAMS.has(key) ? out.translated : out.unsupported).push(key);
308
+ }
309
+ return out;
310
+ }
284
311
 
285
312
  // models/model-normalizer.ts
286
313
  var TEXT_RESPONSE_FORMATS = /* @__PURE__ */ new Set(["text", "json_object", "json_schema"]);
@@ -983,6 +1010,7 @@ export {
983
1010
  createSettingsStore,
984
1011
  detectConflicts,
985
1012
  effectiveOfferingPinOf,
1013
+ extraSettingKeys,
986
1014
  extractModelDefaults,
987
1015
  gateEnabled,
988
1016
  getActionForMode,
@@ -1004,6 +1032,7 @@ export {
1004
1032
  readSettingsEntry,
1005
1033
  resolveConflicts,
1006
1034
  sanitizeSettings,
1035
+ settingLabel,
1007
1036
  settingStateOf,
1008
1037
  startingValueFor,
1009
1038
  withSettingState