utilitas 1999.1.92 → 1999.1.95
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/AGENTS.md +16 -0
- package/README.md +12 -20
- package/dist/utilitas.lite.mjs +1 -1
- package/dist/utilitas.lite.mjs.map +1 -1
- package/lib/alan.mjs +339 -756
- package/lib/embedding.mjs +174 -0
- package/lib/manifest.mjs +17 -19
- package/lib/storage.mjs +11 -5
- package/package.json +18 -20
package/AGENTS.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
## Code style
|
|
4
|
+
|
|
5
|
+
- All programming languages should adhere to a strict mode.
|
|
6
|
+
- For all code files, aim to keep line lengths under 80 characters. In some cases, lengths up to 120 characters are acceptable. Longer lines are allowed only if a clear justification is provided.
|
|
7
|
+
For all documentation files, line length limits are not required.
|
|
8
|
+
- Use spaces for indentation in all code files, tabs are not allowed.
|
|
9
|
+
- Use `4 spaces` per indentation level, inclouding in languages that typically use 2 spaces. For example, `.js` and `.ts` files.
|
|
10
|
+
- If you're working on an existing project rather than starting a new one, adhere to the project's existing code style. Please disregard the 4-space rule in such cases.
|
|
11
|
+
- Use UTF-8 encoding for all text files.
|
|
12
|
+
- User single quotes for strings unless double quotes are necessary.
|
|
13
|
+
|
|
14
|
+
### Python
|
|
15
|
+
|
|
16
|
+
- Follow PEP 8 style guidelines.
|
package/README.md
CHANGED
|
@@ -20,53 +20,36 @@ Works in Node.js and modern browsers.
|
|
|
20
20
|
|
|
21
21
|
| symbol | type | params / value |
|
|
22
22
|
| :--- | :--- | :--- |
|
|
23
|
-
| _NEED | Array |
|
|
23
|
+
| _NEED | Array | js-tiktoken,OpenAI |
|
|
24
24
|
| default | AsyncFunction | options |
|
|
25
25
|
| ATTACHMENTS | String | [ATTACHMENTS] |
|
|
26
|
-
| CLOUD_SONNET_45 | String | claude-sonnet-4
|
|
26
|
+
| CLOUD_SONNET_45 | String | anthropic/claude-sonnet-4.5 |
|
|
27
27
|
| CODE_INTERPRETER | Object | {"type":"code_interpreter"} |
|
|
28
28
|
| DEEPSEEK_R1 | String | deepseek-r1 |
|
|
29
29
|
| FEATURE_ICONS | Object | {"audio":"📣","deepsearch":"🔍","fast":"⚡️","finetune":"🔧","image":"🎨","json":"📊","reasoning":"🧠","tools":"🧰","vision":"👁️"} |
|
|
30
30
|
| FUNCTION | Object | {"type":"function"} |
|
|
31
31
|
| GEMINI_25_FLASH | String | gemini-2.5-flash-preview-09-2025 |
|
|
32
32
|
| GEMINI_25_FLASH_IMAGE | String | gemini-2.5-flash-image |
|
|
33
|
-
|
|
|
33
|
+
| GPT_51 | String | gpt-5.1 |
|
|
34
34
|
| OPENAI_VOICE | String | OPENAI_VOICE |
|
|
35
35
|
| RETRIEVAL | Object | {"type":"retrieval"} |
|
|
36
|
-
| TEXT_EMBEDDING_3_SMALL | String | text-embedding-3-small |
|
|
37
36
|
| _NO_RENDER | Array | INSTRUCTIONS,MODELS,DEFAULT_MODELS |
|
|
38
37
|
| analyzeSessions | AsyncFunction | sessionIds, options |
|
|
39
|
-
| buildGptTrainingCase | Function | prompt, response, options |
|
|
40
|
-
| buildGptTrainingCases | Function | cases, opts |
|
|
41
|
-
| cancelGptFineTuningJob | AsyncFunction | aiId, job_id, options |
|
|
42
38
|
| countTokens | AsyncFunction | input, options |
|
|
43
|
-
| createGeminiEmbedding | AsyncFunction | aiId, input, options |
|
|
44
|
-
| createGptFineTuningJob | AsyncFunction | aiId, training_file, options |
|
|
45
|
-
| createOpenAIEmbedding | AsyncFunction | aiId, input, options |
|
|
46
|
-
| deleteFile | AsyncFunction | aiId, file_id, options |
|
|
47
39
|
| distillFile | AsyncFunction | attachments, o |
|
|
48
40
|
| getAi | AsyncFunction | id, options |
|
|
49
41
|
| getChatAttachmentCost | AsyncFunction | options |
|
|
50
42
|
| getChatPromptLimit | AsyncFunction | options |
|
|
51
|
-
| getGptFineTuningJob | AsyncFunction | aiId, job_id, options |
|
|
52
43
|
| getSession | AsyncFunction | sessionId, options |
|
|
53
44
|
| init | AsyncFunction | options |
|
|
54
45
|
| initChat | AsyncFunction | options |
|
|
55
46
|
| k | Function | |
|
|
56
|
-
| listFiles | AsyncFunction | aiId, options |
|
|
57
|
-
| listGptFineTuningEvents | AsyncFunction | aiId, job_id, options |
|
|
58
|
-
| listGptFineTuningJobs | AsyncFunction | aiId, options |
|
|
59
47
|
| listOpenAIModels | AsyncFunction | aiId, options |
|
|
60
48
|
| prompt | AsyncFunction | input, options |
|
|
61
|
-
| promptAnthropic | AsyncFunction | aiId, content, options |
|
|
62
|
-
| promptGemini | AsyncFunction | aiId, content, options |
|
|
63
49
|
| promptOpenAI | AsyncFunction | aiId, content, options |
|
|
64
50
|
| resetSession | AsyncFunction | sessionId, options |
|
|
65
|
-
| tailGptFineTuningEvents | AsyncFunction | aiId, job_id, options |
|
|
66
51
|
| talk | AsyncFunction | input, options |
|
|
67
52
|
| trimPrompt | AsyncFunction | getPrompt, trimFunc, contextWindow, options |
|
|
68
|
-
| uploadFile | AsyncFunction | aiId, input, options |
|
|
69
|
-
| uploadFileForFineTuning | AsyncFunction | aiId, content, options |
|
|
70
53
|
|
|
71
54
|
### [bee](./lib/bee.mjs)
|
|
72
55
|
|
|
@@ -217,6 +200,15 @@ Works in Node.js and modern browsers.
|
|
|
217
200
|
| rawSend | AsyncFunction | data |
|
|
218
201
|
| send | AsyncFunction | email, subject, text, html, args, options |
|
|
219
202
|
|
|
203
|
+
### [embedding](./lib/embedding.mjs)
|
|
204
|
+
|
|
205
|
+
| symbol | type | params / value |
|
|
206
|
+
| :--- | :--- | :--- |
|
|
207
|
+
| _NEED | Array | openai |
|
|
208
|
+
| default | AsyncFunction | options |
|
|
209
|
+
| embedding | AsyncFunction | input, options |
|
|
210
|
+
| init | AsyncFunction | options |
|
|
211
|
+
|
|
220
212
|
### [encryption](./lib/encryption.mjs)
|
|
221
213
|
|
|
222
214
|
| symbol | type | params / value |
|