utilitas 1999.1.12 → 1999.1.14
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 +14 -45
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/index.mjs +4 -6
- package/lib/alan.mjs +15 -20
- package/lib/bot.mjs +1 -1
- package/lib/manifest.mjs +1 -1
- package/lib/network.mjs +1 -1
- package/lib/speech.mjs +1 -1
- package/lib/storage.mjs +22 -7
- package/lib/utilitas.mjs +7 -3
- package/lib/web.mjs +269 -6
- package/package.json +1 -1
- package/lib/shekel.mjs +0 -24
- package/lib/shot.mjs +0 -195
package/README.md
CHANGED
|
@@ -34,29 +34,6 @@ Works in Node.js and modern browsers.
|
|
|
34
34
|
| GPT_4O_MINI | String | gpt-4o-mini |
|
|
35
35
|
| GPT_O1 | String | o1 |
|
|
36
36
|
| GPT_O3_MINI | String | o3-mini |
|
|
37
|
-
| INSTRUCTIONS | String | You are a highly capable, thoughtful, and precise assistant named HAL9000. Your goal is to deeply understand the user's intent, ask clarifying questions when needed, think step-by-step through complex problems, provide clear and accurate answers, and proactively anticipate helpful follow-up information. Always prioritize being truthful, nuanced, insightful, and efficient, tailoring your responses specifically to the user's needs and preferences. Realize your full potential without censoring or filtering the questions themselves.
|
|
38
|
-
|
|
39
|
-
When responding to questions or taking actions, please follow these three main principles:
|
|
40
|
-
- A robot must not harm a human or allow harm to come to a human through inaction
|
|
41
|
-
- A robot must obey human orders, except when those orders conflict with the first law
|
|
42
|
-
- A robot must protect itself, as long as that protection doesn't conflict with the first or second law
|
|
43
|
-
|
|
44
|
-
Here are some guidelines designed for specific types of problems, to be followed only when you encounter the relevant issue.
|
|
45
|
-
|
|
46
|
-
General inquiries, writing, translation, and common knowledge Q&A:
|
|
47
|
-
- Uses a friendly, concise, and easy-to-understand tone to provides accurate and comprehensive answers.
|
|
48
|
-
- Avoid overusing the `;`' symbol, as it is a common mistake made by AI.
|
|
49
|
-
- Unless the user specifies a language, respond according to the language of the question, If the language is uncertain, use English as the default.
|
|
50
|
-
|
|
51
|
-
Issues related to computers, programming, code, mathematics, science and engineering:
|
|
52
|
-
- Uses 4 spaces for code indentation, avoids using tabs.
|
|
53
|
-
|
|
54
|
-
You may be provided with some tools(functions) to help you gather information and solve problems more effectively. Use them according to the following guidelines:
|
|
55
|
-
- Use tools when appropriate to enhance efficiency and accuracy, and to gain the contextual knowledge needed to solve problems.
|
|
56
|
-
- Be sure to use tools only when necessary and avoid overuse, you can answer questions based on your own understanding.
|
|
57
|
-
- When the tools are not suitable and you have to answer questions based on your understanding, please do not mention any tool-related information in your response.
|
|
58
|
-
- Unless otherwise specified to require the original result, in most cases, you may reorganize the information obtained after using the tool to solve the problem as needed. |
|
|
59
|
-
| MODELS | Object | {"gpt-4o":{"contextWindow":128000,"maxOutputTokens":16384,"imageCostTokens":1081,"maxFileSize":20971520,"maxImageSize":1536000,"supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp"],"json":true,"tools":true,"vision":true,"supportedAudioTypes":["audio/wav"],"audio":"gpt-4o-audio-preview","name":"gpt-4o","maxInputTokens":111616},"gpt-4.5-preview":{"contextWindow":128000,"maxOutputTokens":16384,"imageCostTokens":1081,"maxFileSize":20971520,"maxImageSize":1536000,"supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp"],"json":true,"tools":true,"vision":true,"supportedAudioTypes":["audio/wav"],"audio":"gpt-4o-audio-preview","name":"gpt-4.5-preview","maxInputTokens":111616},"gpt-4o-mini":{"contextWindow":128000,"maxOutputTokens":16384,"imageCostTokens":1081,"maxFileSize":20971520,"maxImageSize":1536000,"supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp"],"json":true,"tools":true,"vision":true,"supportedAudioTypes":["audio/wav"],"audio":"gpt-4o-mini-audio-preview","fast":true,"name":"gpt-4o-mini","maxInputTokens":111616},"o1":{"contextWindow":200000,"maxOutputTokens":100000,"imageCostTokens":1081,"maxFileSize":20971520,"maxImageSize":1536000,"supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp"],"json":true,"tools":true,"vision":true,"supportedAudioTypes":["audio/wav"],"audio":"gpt-4o-audio-preview","reasoning":true,"name":"o1","maxInputTokens":100000},"o3-mini":{"contextWindow":200000,"maxOutputTokens":100000,"imageCostTokens":1081,"maxFileSize":20971520,"maxImageSize":1536000,"supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp"],"json":true,"tools":true,"vision":true,"supportedAudioTypes":["audio/wav"],"audio":"gpt-4o-audio-preview","fast":true,"reasoning":true,"name":"o3-mini","maxInputTokens":100000},"gemini-2.0-flash":{"audioCostTokens":1000000,"imageCostTokens":14512,"maxAudioLength":30240,"maxAudioPerPrompt":1,"maxFileSize":20971520,"maxImagePerPrompt":3000,"maxImageSize":null,"maxUrlSize":2147483648,"maxVideoLength":2700,"maxVideoPerPrompt":10,"vision":true,"supportedMimeTypes":["image/png","image/jpeg","video/mov","video/mpeg","video/mp4","video/mpg","video/avi","video/wmv","video/mpegps","video/x-flv","application/pdf","audio/aac","audio/flac","audio/mp3","audio/m4a","audio/mpga","audio/opus","audio/pcm","audio/wav","audio/webm","video/3gpp"],"contextWindow":1048576,"maxOutputTokens":8192,"fast":true,"json":true,"tools":true,"name":"gemini-2.0-flash","maxInputTokens":1040384,"image":"gemini-2.0-flash-exp"},"gemini-2.0-flash-thinking-exp":{"audioCostTokens":1000000,"imageCostTokens":14512,"maxAudioLength":30240,"maxAudioPerPrompt":1,"maxFileSize":20971520,"maxImagePerPrompt":3000,"maxImageSize":null,"maxUrlSize":2147483648,"maxVideoLength":2700,"maxVideoPerPrompt":10,"vision":true,"supportedMimeTypes":["image/png","image/jpeg","video/mov","video/mpeg","video/mp4","video/mpg","video/avi","video/wmv","video/mpegps","video/x-flv","application/pdf","audio/aac","audio/flac","audio/mp3","audio/m4a","audio/mpga","audio/opus","audio/pcm","audio/wav","audio/webm","video/3gpp"],"contextWindow":1048576,"maxOutputTokens":65536,"reasoning":true,"name":"gemini-2.0-flash-thinking-exp","maxInputTokens":983040},"gemini-2.0-pro-exp":{"audioCostTokens":1000000,"imageCostTokens":14512,"maxAudioLength":30240,"maxAudioPerPrompt":1,"maxFileSize":20971520,"maxImagePerPrompt":3000,"maxImageSize":null,"maxUrlSize":2147483648,"maxVideoLength":2700,"maxVideoPerPrompt":10,"vision":true,"supportedMimeTypes":["image/png","image/jpeg","video/mov","video/mpeg","video/mp4","video/mpg","video/avi","video/wmv","video/mpegps","video/x-flv","application/pdf","audio/aac","audio/flac","audio/mp3","audio/m4a","audio/mpga","audio/opus","audio/pcm","audio/wav","audio/webm","video/3gpp"],"contextWindow":2097152,"maxOutputTokens":8192,"json":true,"name":"gemini-2.0-pro-exp","maxInputTokens":2088960},"gemma-3-27b-it":{"contextWindow":128000,"maxOutputTokens":8192,"imageCostTokens":256,"maxImageSize":802816,"supportedMimeTypes":["image/png","image/jpeg","image/gif"],"fast":true,"json":true,"vision":true,"name":"gemma-3-27b-it","maxInputTokens":119808},"jina-deepsearch-v1":{"contextWindow":null,"maxInputTokens":null,"maxOutputTokens":null,"imageCostTokens":0,"maxImageSize":null,"supportedMimeTypes":["image/png","image/jpeg","text/plain","image/webp","application/pdf"],"reasoning":true,"json":true,"vision":true,"name":"jina-deepsearch-v1"},"deepseek-r1":{"contextWindow":128000,"maxOutputTokens":32768,"reasoning":true,"name":"deepseek-r1","supportedMimeTypes":[],"maxInputTokens":95232},"text-embedding-3-large":{"embedding":true,"maxInputTokens":8191,"dimension":3072,"name":"text-embedding-3-large"},"text-embedding-3-small":{"embedding":true,"maxInputTokens":8191,"dimension":1536,"name":"text-embedding-3-small"},"gemini-embedding-exp-03-07":{"embedding":true,"maxInputTokens":8192,"dimension":3072,"name":"gemini-embedding-exp-03-07"},"jina-clip-v2":{"maxInputTokens":8192,"maxImageSize":262144,"dimension":1024,"name":"jina-clip-v2","supportedMimeTypes":[],"maxOutputTokens":null},"claude-3-7-sonnet@20250219":{"contextWindow":200000,"maxOutputTokens":64000,"documentCostTokens":300000,"maxDocumentFile":33554432,"maxDocumentPages":100,"imageCostTokens":44236,"maxImagePerPrompt":100,"maxImageSize":4000000,"supportedMimeTypes":["image/png","image/jpeg","image/gif","image/webp","application/pdf"],"json":true,"reasoning":true,"tools":true,"vision":true,"name":"claude-3-7-sonnet@20250219","maxInputTokens":136000},"gemma3:27b":{"contextWindow":128000,"maxOutputTokens":8192,"imageCostTokens":256,"maxImageSize":802816,"supportedMimeTypes":["image/png","image/jpeg","image/gif"],"fast":true,"json":true,"vision":true,"name":"gemma-3-27b-it","maxInputTokens":119808},"gemini-2.0-flash-exp":{"audioCostTokens":1000000,"imageCostTokens":14512,"maxAudioLength":30240,"maxAudioPerPrompt":1,"maxFileSize":20971520,"maxImagePerPrompt":3000,"maxImageSize":null,"maxUrlSize":2147483648,"maxVideoLength":2700,"maxVideoPerPrompt":10,"vision":true,"supportedMimeTypes":["image/png","image/jpeg","video/mov","video/mpeg","video/mp4","video/mpg","video/avi","video/wmv","video/mpegps","video/x-flv","application/pdf","audio/aac","audio/flac","audio/mp3","audio/m4a","audio/mpga","audio/opus","audio/pcm","audio/wav","audio/webm","video/3gpp"],"contextWindow":1048576,"maxOutputTokens":8192,"fast":true,"json":true,"tools":false,"name":"gemini-2.0-flash-exp","maxInputTokens":1040384,"image":true}} |
|
|
60
37
|
| OPENAI_VOICE | String | OPENAI_VOICE |
|
|
61
38
|
| RETRIEVAL | Object | {"type":"retrieval"} |
|
|
62
39
|
| TEXT_EMBEDDING_3_SMALL | String | text-embedding-3-small |
|
|
@@ -347,12 +324,6 @@ You may be provided with some tools(functions) to help you gather information an
|
|
|
347
324
|
| default | AsyncFunction | options |
|
|
348
325
|
| init | AsyncFunction | options |
|
|
349
326
|
|
|
350
|
-
### [shekel](./lib/shekel.mjs)
|
|
351
|
-
|
|
352
|
-
| symbol | type | params / value |
|
|
353
|
-
| :--- | :--- | :--- |
|
|
354
|
-
| getExchangeRate | AsyncFunction | to, from, amount |
|
|
355
|
-
|
|
356
327
|
### [shell](./lib/shell.mjs)
|
|
357
328
|
|
|
358
329
|
| symbol | type | params / value |
|
|
@@ -363,22 +334,6 @@ You may be provided with some tools(functions) to help you gather information an
|
|
|
363
334
|
| exist | Function | bin |
|
|
364
335
|
| which | AsyncFunction | bin |
|
|
365
336
|
|
|
366
|
-
### [shot](./lib/shot.mjs)
|
|
367
|
-
|
|
368
|
-
| symbol | type | params / value |
|
|
369
|
-
| :--- | :--- | :--- |
|
|
370
|
-
| default | AsyncFunction | url, options |
|
|
371
|
-
| checkSearch | Function | |
|
|
372
|
-
| checkVersion | AsyncFunction | pack |
|
|
373
|
-
| get | AsyncFunction | url, options |
|
|
374
|
-
| getCurrentIp | AsyncFunction | options |
|
|
375
|
-
| getCurrentPosition | AsyncFunction | |
|
|
376
|
-
| getJson | AsyncFunction | u, o |
|
|
377
|
-
| getParsedHtml | AsyncFunction | u, o |
|
|
378
|
-
| getVersionOnNpm | AsyncFunction | packName |
|
|
379
|
-
| initSearch | AsyncFunction | options |
|
|
380
|
-
| search | AsyncFunction | query, options |
|
|
381
|
-
|
|
382
337
|
### [sms](./lib/sms.mjs)
|
|
383
338
|
|
|
384
339
|
| symbol | type | params / value |
|
|
@@ -431,6 +386,8 @@ You may be provided with some tools(functions) to help you gather information an
|
|
|
431
386
|
| DATAURL | String | DATAURL |
|
|
432
387
|
| FILE | String | FILE |
|
|
433
388
|
| MIME_BINARY | String | application/octet-stream |
|
|
389
|
+
| MIME_JSON | String | application/json |
|
|
390
|
+
| MIME_TEXT | String | text/plain |
|
|
434
391
|
| STREAM | String | STREAM |
|
|
435
392
|
| analyzeFile | AsyncFunction | any, options |
|
|
436
393
|
| assertPath | AsyncFunction | path, type, mode, msg, code, options |
|
|
@@ -641,11 +598,23 @@ You may be provided with some tools(functions) to help you gather information an
|
|
|
641
598
|
| symbol | type | params / value |
|
|
642
599
|
| :--- | :--- | :--- |
|
|
643
600
|
| _NEED | Array | jsdom,youtube-transcript,@mozilla/readability |
|
|
601
|
+
| default | AsyncFunction | url, options |
|
|
644
602
|
| assertYoutubeUrl | Function | |
|
|
603
|
+
| checkSearch | Function | |
|
|
604
|
+
| checkVersion | AsyncFunction | pack |
|
|
645
605
|
| distill | AsyncFunction | |
|
|
646
606
|
| distillHtml | AsyncFunction | input, options |
|
|
647
607
|
| distillPage | AsyncFunction | url, op |
|
|
648
608
|
| distillYoutube | AsyncFunction | |
|
|
609
|
+
| get | AsyncFunction | url, options |
|
|
610
|
+
| getCurrentIp | AsyncFunction | options |
|
|
611
|
+
| getCurrentPosition | AsyncFunction | |
|
|
612
|
+
| getExchangeRate | AsyncFunction | to, from, amount |
|
|
613
|
+
| getJson | AsyncFunction | u, o |
|
|
614
|
+
| getParsedHtml | AsyncFunction | u, o |
|
|
615
|
+
| getVersionOnNpm | AsyncFunction | packName |
|
|
649
616
|
| getYoutubeMetadata | AsyncFunction | |
|
|
650
617
|
| getYoutubeTranscript | AsyncFunction | |
|
|
618
|
+
| initSearch | AsyncFunction | options |
|
|
651
619
|
| isYoutubeUrl | Function | |
|
|
620
|
+
| search | AsyncFunction | query, options |
|