utilitas 1999.1.91 → 1999.1.93
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 +1 -1
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +11 -9
- package/lib/manifest.mjs +23 -23
- package/package.json +23 -23
package/lib/alan.mjs
CHANGED
|
@@ -51,7 +51,7 @@ const _NEED = [
|
|
|
51
51
|
const [
|
|
52
52
|
OPENAI, GEMINI, OPENAI_TRAINING, OLLAMA, GEMINI_25_FLASH, NOVA,
|
|
53
53
|
DEEPSEEK_R1, MD_CODE, TEXT_EMBEDDING_3_SMALL, TEXT_EMBEDDING_3_LARGE,
|
|
54
|
-
|
|
54
|
+
CLOUD_SONNET_45, AUDIO, WAV, ATTACHMENTS, CHAT, OPENAI_VOICE, MEDIUM, LOW,
|
|
55
55
|
HIGH, GPT_REASONING_EFFORT, THINK, THINK_STR, THINK_END, AZURE, TOOLS_STR,
|
|
56
56
|
TOOLS_END, TOOLS, TEXT, THINKING, OK, FUNC, GPT_5, GPT_5_MINI,
|
|
57
57
|
REDACTED_THINKING, GEMMA_3_27B, AZURE_OPENAI, ANTHROPIC, VERTEX_ANTHROPIC,
|
|
@@ -65,7 +65,7 @@ const [
|
|
|
65
65
|
'OpenAI', 'Gemini', 'OPENAI_TRAINING', 'Ollama',
|
|
66
66
|
'gemini-2.5-flash-preview-09-2025', 'nova', 'deepseek-r1', '```',
|
|
67
67
|
'text-embedding-3-small', 'text-embedding-3-large',
|
|
68
|
-
'claude-
|
|
68
|
+
'claude-sonnet-4-5@20250929', 'audio', 'wav', '[ATTACHMENTS]', 'CHAT',
|
|
69
69
|
'OPENAI_VOICE', 'medium', 'low', 'high', 'medium', 'think', '<think>',
|
|
70
70
|
'</think>', 'AZURE', '<tools>', '</tools>', 'tools', 'text', 'thinking',
|
|
71
71
|
'OK', 'function', 'gpt-5', 'gpt-5-mini', 'redacted_thinking',
|
|
@@ -172,15 +172,17 @@ const MODELS = {
|
|
|
172
172
|
[JINA_CLIP]: {
|
|
173
173
|
maxInputTokens: k(8), maxImageSize: 512 * 512, dimension: k(1),
|
|
174
174
|
},
|
|
175
|
-
[
|
|
176
|
-
contextWindow: kT(200), maxOutputTokens: kT(
|
|
175
|
+
[CLOUD_SONNET_45]: {
|
|
176
|
+
contextWindow: kT(200), maxOutputTokens: kT(64),
|
|
177
177
|
documentCostTokens: 3000 * 10, maxDocumentFile: m(32),
|
|
178
178
|
maxDocumentPages: 100, imageCostTokens: ~~(v8k / 750),
|
|
179
179
|
maxImagePerPrompt: 100, maxFileSize: m(5), maxImageSize: 2000 * 2000,
|
|
180
180
|
supportedMimeTypes: [MIME_TEXT, MIME_PNG, MIME_JPEG, MIME_GIF, MIME_WEBP, MIME_PDF],
|
|
181
181
|
json: true, reasoning: true, tools: true, vision: true,
|
|
182
182
|
defaultProvider: [ANTHROPIC, VERTEX_ANTHROPIC],
|
|
183
|
-
},
|
|
183
|
+
},
|
|
184
|
+
// https://docs.anthropic.com/en/docs/build-with-claude/vision
|
|
185
|
+
// https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/claude/sonnet-4-5
|
|
184
186
|
};
|
|
185
187
|
|
|
186
188
|
// Unifiy model configurations
|
|
@@ -206,8 +208,8 @@ const DEFAULT_MODELS = {
|
|
|
206
208
|
[OPENAI]: GPT_5,
|
|
207
209
|
[SILICONFLOW]: SF_DEEPSEEK_R1,
|
|
208
210
|
[GEMINI]: GEMINI_25_PRO,
|
|
209
|
-
[ANTHROPIC]:
|
|
210
|
-
[VERTEX_ANTHROPIC]:
|
|
211
|
+
[ANTHROPIC]: CLOUD_SONNET_45,
|
|
212
|
+
[VERTEX_ANTHROPIC]: CLOUD_SONNET_45,
|
|
211
213
|
[JINA]: JINA_DEEPSEARCH,
|
|
212
214
|
[OLLAMA]: GEMMA_3_27B,
|
|
213
215
|
[OPENAI_VOICE]: NOVA,
|
|
@@ -671,7 +673,7 @@ const buildClaudeMessage = (text, options) => {
|
|
|
671
673
|
});
|
|
672
674
|
return String.isString(text) ? {
|
|
673
675
|
role: options?.role || user, content: [...attachments, {
|
|
674
|
-
type: TEXT, text, ...options
|
|
676
|
+
type: TEXT, text, ...options?.cache_control ? {
|
|
675
677
|
cache_control: { type: 'ephemeral' },
|
|
676
678
|
} : {},
|
|
677
679
|
}],
|
|
@@ -1587,7 +1589,7 @@ export {
|
|
|
1587
1589
|
_NEED,
|
|
1588
1590
|
_NO_RENDER,
|
|
1589
1591
|
ATTACHMENTS,
|
|
1590
|
-
|
|
1592
|
+
CLOUD_SONNET_45,
|
|
1591
1593
|
CODE_INTERPRETER,
|
|
1592
1594
|
DEEPSEEK_R1,
|
|
1593
1595
|
DEFAULT_MODELS,
|
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": "1999.1.
|
|
4
|
+
"version": "1999.1.93",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/utilitas",
|
|
7
7
|
"main": "index.mjs",
|
|
@@ -20,54 +20,54 @@ const manifest = {
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"file-type": "^21.0.0",
|
|
23
|
-
"mathjs": "^
|
|
24
|
-
"uuid": "^
|
|
23
|
+
"mathjs": "^15.0.0",
|
|
24
|
+
"uuid": "^13.0.0"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@anthropic-ai/sdk": "^0.
|
|
28
|
-
"@anthropic-ai/vertex-sdk": "^0.
|
|
27
|
+
"@anthropic-ai/sdk": "^0.67.0",
|
|
28
|
+
"@anthropic-ai/vertex-sdk": "^0.14.0",
|
|
29
29
|
"@ffmpeg-installer/ffmpeg": "^1.1.0",
|
|
30
30
|
"@ffprobe-installer/ffprobe": "^2.1.2",
|
|
31
|
-
"@google-cloud/speech": "^7.2.
|
|
32
|
-
"@google-cloud/storage": "^7.17.
|
|
33
|
-
"@google-cloud/vision": "^5.3.
|
|
34
|
-
"@google/genai": "^1.
|
|
31
|
+
"@google-cloud/speech": "^7.2.1",
|
|
32
|
+
"@google-cloud/storage": "^7.17.2",
|
|
33
|
+
"@google-cloud/vision": "^5.3.4",
|
|
34
|
+
"@google/genai": "^1.25.0",
|
|
35
35
|
"@mozilla/readability": "github:mozilla/readability",
|
|
36
|
-
"@sentry/node": "^10.
|
|
37
|
-
"@sentry/profiling-node": "^10.
|
|
36
|
+
"@sentry/node": "^10.20.0",
|
|
37
|
+
"@sentry/profiling-node": "^10.20.0",
|
|
38
38
|
"acme-client": "^5.4.0",
|
|
39
39
|
"browserify-fs": "^1.0.0",
|
|
40
40
|
"buffer": "^6.0.3",
|
|
41
41
|
"fast-geoip": "^1.1.88",
|
|
42
42
|
"fluent-ffmpeg": "^2.1.3",
|
|
43
43
|
"form-data": "^4.0.4",
|
|
44
|
-
"ioredis": "^5.
|
|
44
|
+
"ioredis": "^5.8.1",
|
|
45
45
|
"js-tiktoken": "^1.0.21",
|
|
46
|
-
"jsdom": "^
|
|
46
|
+
"jsdom": "^27.0.1",
|
|
47
47
|
"lorem-ipsum": "^2.0.8",
|
|
48
|
-
"mailgun.js": "^12.
|
|
49
|
-
"mailparser": "^3.7.
|
|
50
|
-
"mime": "^4.0
|
|
51
|
-
"mysql2": "^3.
|
|
48
|
+
"mailgun.js": "^12.1.1",
|
|
49
|
+
"mailparser": "^3.7.5",
|
|
50
|
+
"mime": "^4.1.0",
|
|
51
|
+
"mysql2": "^3.15.2",
|
|
52
52
|
"node-mailjet": "^6.0.9",
|
|
53
53
|
"node-polyfill-webpack-plugin": "^4.1.0",
|
|
54
54
|
"office-text-extractor": "^3.0.3",
|
|
55
|
-
"openai": "^5.
|
|
56
|
-
"pdfjs-dist": "^5.4.
|
|
55
|
+
"openai": "^6.5.0",
|
|
56
|
+
"pdfjs-dist": "^5.4.296",
|
|
57
57
|
"pg": "^8.16.3",
|
|
58
58
|
"pgvector": "^0.2.1",
|
|
59
|
-
"ping": "^0.
|
|
59
|
+
"ping": "^1.0.0",
|
|
60
60
|
"process": "^0.11.10",
|
|
61
|
-
"puppeteer": "^24.
|
|
61
|
+
"puppeteer": "^24.25.0",
|
|
62
62
|
"say": "^0.16.0",
|
|
63
63
|
"telegraf": "^4.16.3",
|
|
64
64
|
"telesignsdk": "^3.0.4",
|
|
65
65
|
"tesseract.js": "^6.0.1",
|
|
66
|
-
"twilio": "^5.
|
|
66
|
+
"twilio": "^5.10.3",
|
|
67
67
|
"url": "github:Leask/node-url",
|
|
68
68
|
"webpack-cli": "^6.0.1",
|
|
69
69
|
"whisper-node": "^1.1.1",
|
|
70
|
-
"wrangler": "^4.
|
|
70
|
+
"wrangler": "^4.43.0",
|
|
71
71
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz",
|
|
72
72
|
"youtube-transcript": "^1.2.1"
|
|
73
73
|
}
|
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": "1999.1.
|
|
4
|
+
"version": "1999.1.93",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/utilitas",
|
|
7
7
|
"main": "index.mjs",
|
|
@@ -31,54 +31,54 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"file-type": "^21.0.0",
|
|
34
|
-
"mathjs": "^
|
|
35
|
-
"uuid": "^
|
|
34
|
+
"mathjs": "^15.0.0",
|
|
35
|
+
"uuid": "^13.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@anthropic-ai/sdk": "^0.
|
|
39
|
-
"@anthropic-ai/vertex-sdk": "^0.
|
|
38
|
+
"@anthropic-ai/sdk": "^0.67.0",
|
|
39
|
+
"@anthropic-ai/vertex-sdk": "^0.14.0",
|
|
40
40
|
"@ffmpeg-installer/ffmpeg": "^1.1.0",
|
|
41
41
|
"@ffprobe-installer/ffprobe": "^2.1.2",
|
|
42
|
-
"@google-cloud/speech": "^7.2.
|
|
43
|
-
"@google-cloud/storage": "^7.17.
|
|
44
|
-
"@google-cloud/vision": "^5.3.
|
|
45
|
-
"@google/genai": "^1.
|
|
42
|
+
"@google-cloud/speech": "^7.2.1",
|
|
43
|
+
"@google-cloud/storage": "^7.17.2",
|
|
44
|
+
"@google-cloud/vision": "^5.3.4",
|
|
45
|
+
"@google/genai": "^1.25.0",
|
|
46
46
|
"@mozilla/readability": "github:mozilla/readability",
|
|
47
|
-
"@sentry/node": "^10.
|
|
48
|
-
"@sentry/profiling-node": "^10.
|
|
47
|
+
"@sentry/node": "^10.20.0",
|
|
48
|
+
"@sentry/profiling-node": "^10.20.0",
|
|
49
49
|
"acme-client": "^5.4.0",
|
|
50
50
|
"browserify-fs": "^1.0.0",
|
|
51
51
|
"buffer": "^6.0.3",
|
|
52
52
|
"fast-geoip": "^1.1.88",
|
|
53
53
|
"fluent-ffmpeg": "^2.1.3",
|
|
54
54
|
"form-data": "^4.0.4",
|
|
55
|
-
"ioredis": "^5.
|
|
55
|
+
"ioredis": "^5.8.1",
|
|
56
56
|
"js-tiktoken": "^1.0.21",
|
|
57
|
-
"jsdom": "^
|
|
57
|
+
"jsdom": "^27.0.1",
|
|
58
58
|
"lorem-ipsum": "^2.0.8",
|
|
59
|
-
"mailgun.js": "^12.
|
|
60
|
-
"mailparser": "^3.7.
|
|
61
|
-
"mime": "^4.0
|
|
62
|
-
"mysql2": "^3.
|
|
59
|
+
"mailgun.js": "^12.1.1",
|
|
60
|
+
"mailparser": "^3.7.5",
|
|
61
|
+
"mime": "^4.1.0",
|
|
62
|
+
"mysql2": "^3.15.2",
|
|
63
63
|
"node-mailjet": "^6.0.9",
|
|
64
64
|
"node-polyfill-webpack-plugin": "^4.1.0",
|
|
65
65
|
"office-text-extractor": "^3.0.3",
|
|
66
|
-
"openai": "^5.
|
|
67
|
-
"pdfjs-dist": "^5.4.
|
|
66
|
+
"openai": "^6.5.0",
|
|
67
|
+
"pdfjs-dist": "^5.4.296",
|
|
68
68
|
"pg": "^8.16.3",
|
|
69
69
|
"pgvector": "^0.2.1",
|
|
70
|
-
"ping": "^0.
|
|
70
|
+
"ping": "^1.0.0",
|
|
71
71
|
"process": "^0.11.10",
|
|
72
|
-
"puppeteer": "^24.
|
|
72
|
+
"puppeteer": "^24.25.0",
|
|
73
73
|
"say": "^0.16.0",
|
|
74
74
|
"telegraf": "^4.16.3",
|
|
75
75
|
"telesignsdk": "^3.0.4",
|
|
76
76
|
"tesseract.js": "^6.0.1",
|
|
77
|
-
"twilio": "^5.
|
|
77
|
+
"twilio": "^5.10.3",
|
|
78
78
|
"url": "github:Leask/node-url",
|
|
79
79
|
"webpack-cli": "^6.0.1",
|
|
80
80
|
"whisper-node": "^1.1.1",
|
|
81
|
-
"wrangler": "^4.
|
|
81
|
+
"wrangler": "^4.43.0",
|
|
82
82
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz",
|
|
83
83
|
"youtube-transcript": "^1.2.1"
|
|
84
84
|
}
|