utilitas 1999.1.99 → 2000.2.3
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 +5 -5
- package/lib/manifest.mjs +10 -10
- package/package.json +10 -10
package/lib/alan.mjs
CHANGED
|
@@ -53,7 +53,8 @@ const [
|
|
|
53
53
|
tokenSafeRatio, CONTENT_IS_REQUIRED, OPENAI_HI_RES_SIZE, k, kT, m, minute,
|
|
54
54
|
hour, gb, trimTailing, GEMINI_25_FLASH_IMAGE, IMAGE, JINA, JINA_DEEPSEARCH,
|
|
55
55
|
SILICONFLOW, SF_DEEPSEEK_R1, MAX_TIRE, OPENROUTER_API, OPENROUTER, AUTO,
|
|
56
|
-
TOOL, S_OPENAI, S_GOOGLE, S_ANTHROPIC, ONLINE,
|
|
56
|
+
TOOL, S_OPENAI, S_GOOGLE, S_ANTHROPIC, ONLINE, GEMINI_30_PRO,
|
|
57
|
+
GEMINI_25_FLASH,
|
|
57
58
|
] = [
|
|
58
59
|
'OpenAI', 'Gemini', 'Ollama', 'nova', 'deepseek-r1', '```',
|
|
59
60
|
'claude-sonnet-4.5', 'audio', 'wav', '[ATTACHMENTS]', 'OPENAI_VOICE',
|
|
@@ -67,11 +68,10 @@ const [
|
|
|
67
68
|
'gemini-2.5-flash-image', 'image', 'Jina', 'jina-deepsearch-v1',
|
|
68
69
|
'SiliconFlow', 'Pro/deepseek-ai/DeepSeek-R1', 768 * 768,
|
|
69
70
|
'https://openrouter.ai/api/v1', 'OpenRouter', 'openrouter/auto', 'tool',
|
|
70
|
-
'openai', 'google', 'anthropic', ':online',
|
|
71
|
+
'openai', 'google', 'anthropic', ':online', 'gemini-3-pro-preview',
|
|
72
|
+
'gemini-2.5-flash-preview-09-2025',
|
|
71
73
|
];
|
|
72
74
|
|
|
73
|
-
const [GEMINI_25_FLASH, GEMINI_30_PRO]
|
|
74
|
-
= [`gemini-2.5-flash${ONLINE}`, `gemini-3-pro-preview${ONLINE}`];
|
|
75
75
|
const [tool, messages, text]
|
|
76
76
|
= [type => ({ type }), messages => ({ messages }), text => ({ text })];
|
|
77
77
|
const [CODE_INTERPRETER, RETRIEVAL, FUNCTION]
|
|
@@ -831,7 +831,7 @@ const promptOpenAI = async (aiId, content, options = {}) => {
|
|
|
831
831
|
), ...model?.tools && !googleImageMode ? {
|
|
832
832
|
tools: options.tools ?? packedTools, tool_choice: 'auto',
|
|
833
833
|
} : {}, store: true, stream: true,
|
|
834
|
-
|
|
834
|
+
reasoning: { effort: options.reasoning_effort },
|
|
835
835
|
});
|
|
836
836
|
for await (event of resp) {
|
|
837
837
|
// print(JSON.stringify(event, null, 2));
|
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": "
|
|
4
|
+
"version": "2000.2.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/utilitas",
|
|
7
7
|
"main": "index.mjs",
|
|
@@ -19,7 +19,7 @@ const manifest = {
|
|
|
19
19
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"file-type": "^21.1.
|
|
22
|
+
"file-type": "^21.1.1",
|
|
23
23
|
"mathjs": "^15.1.0",
|
|
24
24
|
"uuid": "^13.0.0"
|
|
25
25
|
},
|
|
@@ -29,16 +29,16 @@ const manifest = {
|
|
|
29
29
|
"@google-cloud/speech": "^7.2.1",
|
|
30
30
|
"@google-cloud/storage": "^7.17.3",
|
|
31
31
|
"@google-cloud/vision": "^5.3.4",
|
|
32
|
-
"@google/genai": "^1.
|
|
32
|
+
"@google/genai": "^1.30.0",
|
|
33
33
|
"@mozilla/readability": "github:mozilla/readability",
|
|
34
|
-
"@sentry/node": "^10.
|
|
35
|
-
"@sentry/profiling-node": "^10.
|
|
34
|
+
"@sentry/node": "^10.26.0",
|
|
35
|
+
"@sentry/profiling-node": "^10.26.0",
|
|
36
36
|
"acme-client": "^5.4.0",
|
|
37
37
|
"browserify-fs": "^1.0.0",
|
|
38
38
|
"buffer": "^6.0.3",
|
|
39
39
|
"fast-geoip": "^1.1.88",
|
|
40
40
|
"fluent-ffmpeg": "^2.1.3",
|
|
41
|
-
"form-data": "^4.0.
|
|
41
|
+
"form-data": "^4.0.5",
|
|
42
42
|
"ioredis": "^5.8.2",
|
|
43
43
|
"js-tiktoken": "^1.0.21",
|
|
44
44
|
"jsdom": "^27.2.0",
|
|
@@ -50,22 +50,22 @@ const manifest = {
|
|
|
50
50
|
"node-mailjet": "^6.0.11",
|
|
51
51
|
"node-polyfill-webpack-plugin": "^4.1.0",
|
|
52
52
|
"office-text-extractor": "^3.0.3",
|
|
53
|
-
"openai": "^6.
|
|
53
|
+
"openai": "^6.9.1",
|
|
54
54
|
"pdfjs-dist": "^5.4.394",
|
|
55
55
|
"pg": "^8.16.3",
|
|
56
56
|
"pgvector": "^0.2.1",
|
|
57
57
|
"ping": "^1.0.0",
|
|
58
58
|
"process": "^0.11.10",
|
|
59
|
-
"puppeteer": "^24.
|
|
59
|
+
"puppeteer": "^24.30.0",
|
|
60
60
|
"say": "^0.16.0",
|
|
61
61
|
"telegraf": "^4.16.3",
|
|
62
62
|
"telesignsdk": "^3.0.4",
|
|
63
63
|
"tesseract.js": "^6.0.1",
|
|
64
|
-
"twilio": "^5.10.
|
|
64
|
+
"twilio": "^5.10.6",
|
|
65
65
|
"url": "github:Leask/node-url",
|
|
66
66
|
"webpack-cli": "^6.0.1",
|
|
67
67
|
"whisper-node": "^1.1.1",
|
|
68
|
-
"wrangler": "^4.
|
|
68
|
+
"wrangler": "^4.49.0",
|
|
69
69
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz",
|
|
70
70
|
"youtube-transcript": "^1.2.1"
|
|
71
71
|
}
|
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": "
|
|
4
|
+
"version": "2000.2.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/utilitas",
|
|
7
7
|
"main": "index.mjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"file-type": "^21.1.
|
|
33
|
+
"file-type": "^21.1.1",
|
|
34
34
|
"mathjs": "^15.1.0",
|
|
35
35
|
"uuid": "^13.0.0"
|
|
36
36
|
},
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
"@google-cloud/speech": "^7.2.1",
|
|
41
41
|
"@google-cloud/storage": "^7.17.3",
|
|
42
42
|
"@google-cloud/vision": "^5.3.4",
|
|
43
|
-
"@google/genai": "^1.
|
|
43
|
+
"@google/genai": "^1.30.0",
|
|
44
44
|
"@mozilla/readability": "github:mozilla/readability",
|
|
45
|
-
"@sentry/node": "^10.
|
|
46
|
-
"@sentry/profiling-node": "^10.
|
|
45
|
+
"@sentry/node": "^10.26.0",
|
|
46
|
+
"@sentry/profiling-node": "^10.26.0",
|
|
47
47
|
"acme-client": "^5.4.0",
|
|
48
48
|
"browserify-fs": "^1.0.0",
|
|
49
49
|
"buffer": "^6.0.3",
|
|
50
50
|
"fast-geoip": "^1.1.88",
|
|
51
51
|
"fluent-ffmpeg": "^2.1.3",
|
|
52
|
-
"form-data": "^4.0.
|
|
52
|
+
"form-data": "^4.0.5",
|
|
53
53
|
"ioredis": "^5.8.2",
|
|
54
54
|
"js-tiktoken": "^1.0.21",
|
|
55
55
|
"jsdom": "^27.2.0",
|
|
@@ -61,22 +61,22 @@
|
|
|
61
61
|
"node-mailjet": "^6.0.11",
|
|
62
62
|
"node-polyfill-webpack-plugin": "^4.1.0",
|
|
63
63
|
"office-text-extractor": "^3.0.3",
|
|
64
|
-
"openai": "^6.
|
|
64
|
+
"openai": "^6.9.1",
|
|
65
65
|
"pdfjs-dist": "^5.4.394",
|
|
66
66
|
"pg": "^8.16.3",
|
|
67
67
|
"pgvector": "^0.2.1",
|
|
68
68
|
"ping": "^1.0.0",
|
|
69
69
|
"process": "^0.11.10",
|
|
70
|
-
"puppeteer": "^24.
|
|
70
|
+
"puppeteer": "^24.30.0",
|
|
71
71
|
"say": "^0.16.0",
|
|
72
72
|
"telegraf": "^4.16.3",
|
|
73
73
|
"telesignsdk": "^3.0.4",
|
|
74
74
|
"tesseract.js": "^6.0.1",
|
|
75
|
-
"twilio": "^5.10.
|
|
75
|
+
"twilio": "^5.10.6",
|
|
76
76
|
"url": "github:Leask/node-url",
|
|
77
77
|
"webpack-cli": "^6.0.1",
|
|
78
78
|
"whisper-node": "^1.1.1",
|
|
79
|
-
"wrangler": "^4.
|
|
79
|
+
"wrangler": "^4.49.0",
|
|
80
80
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz",
|
|
81
81
|
"youtube-transcript": "^1.2.1"
|
|
82
82
|
}
|