utilitas 2001.1.69 → 2001.1.71

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/lib/alan.mjs CHANGED
@@ -54,7 +54,7 @@ const [
54
54
  GEMINI_30_PRO, GEMINI_25_FLASH, IMAGEN_4_ULTRA, VEO_31, IMAGEN_4_UPSCALE,
55
55
  ERROR_GENERATING, GEMINI_25_FLASH_TTS, GEMINI_25_PRO_TTS, wav,
56
56
  GPT_4O_MIMI_TTS, GPT_4O_TRANSCRIBE, INVALID_AUDIO, OGG_EXT, ELLIPSIS,
57
- TOP_LIMIT, ATTACHMENT, PROCESSING, CURSOR, LN, TOP
57
+ TOP_LIMIT, ATTACHMENT, PROCESSING, CURSOR, LN1, LN2, TOP
58
58
  ] = [
59
59
  'OpenAI', 'Google', 'Ollama', 'nova', 'deepseek-3.2-speciale', '```',
60
60
  'claude-opus-4.5', 'audio', 'wav', 'OPENAI_VOICE', 'medium', 'think',
@@ -72,12 +72,12 @@ const [
72
72
  'imagen-4.0-upscale-preview', 'Error generating content.',
73
73
  'gemini-2.5-flash-preview-tts', 'gemini-2.5-pro-tts', 'wav',
74
74
  'gpt-4o-mini-tts', 'gpt-4o-transcribe', 'Invalid audio data.', 'ogg',
75
- '...', 3, 'ATTACHMENT', { processing: true }, ' █', '\n', 'top',
75
+ '...', 3, 'ATTACHMENT', { processing: true }, ' █', '\n\n', '\n\n\n',
76
+ 'top',
76
77
  ];
77
78
 
78
- const LN2 = `${LN}${LN}`;
79
79
  const [joinL1, joinL2]
80
- = [a => a.filter(x => x).join(LN), a => a.filter(x => x).join(LN2)];
80
+ = [a => a.filter(x => x).join(LN1), a => a.filter(x => x).join(LN2)];
81
81
  const [tool, messages, text]
82
82
  = [type => ({ type }), messages => ({ messages }), text => ({ text })];
83
83
  const [CODE_INTERPRETER, RETRIEVAL, FUNCTION]
@@ -1254,7 +1254,7 @@ const selectAi = async (options = {}) => {
1254
1254
  } else { // Select by preference
1255
1255
  options.aiId = options.aiId.filter(x => ais.find(y => y.id === x));
1256
1256
  }
1257
- options.aiId.length || (options.aiId = ais[0].id);
1257
+ options.aiId.length || (options.aiId = [ais[0].id]);
1258
1258
  return options.aiId;
1259
1259
  };
1260
1260
 
package/lib/manifest.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  const manifest = {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "2001.1.69",
4
+ "version": "2001.1.71",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "2001.1.69",
4
+ "version": "2001.1.71",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",