@kokimoki/app 2.0.3 → 2.1.1
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/dist/kokimoki.min.d.ts +14 -2
- package/dist/kokimoki.min.js +9 -1
- package/dist/kokimoki.min.js.map +1 -1
- package/dist/llms.txt +6 -0
- package/dist/services/kokimoki-ai.d.ts +14 -2
- package/dist/services/kokimoki-ai.js +8 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/kokimoki.min.d.ts
CHANGED
|
@@ -97,6 +97,8 @@ declare class KokimokiAiService {
|
|
|
97
97
|
* - `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
|
|
98
98
|
* - `gemini-2.5-flash-lite`: Google Gemini lite variant
|
|
99
99
|
* - `gemini-2.5-flash`: Google Gemini fast variant
|
|
100
|
+
* - `gemini-3-flash-preview`: Google Gemini 3 Flash preview
|
|
101
|
+
* - `gemini-3-pro-preview`: Google Gemini 3 Pro preview
|
|
100
102
|
* @param req.systemPrompt Optional. The system message that sets the behavior and context for the AI.
|
|
101
103
|
* This helps define the AI's role, personality, and constraints.
|
|
102
104
|
* @param req.userPrompt The user's message or question to send to the AI.
|
|
@@ -105,6 +107,8 @@ declare class KokimokiAiService {
|
|
|
105
107
|
* higher values make it more creative and varied.
|
|
106
108
|
* @param req.maxTokens Optional. The maximum number of tokens to generate in the response.
|
|
107
109
|
* Controls the length of the AI's output.
|
|
110
|
+
* @param req.imageUrls Optional. Image URLs to include with the user prompt (Gemini models only).
|
|
111
|
+
* Allows the AI to analyze and respond based on the provided images.
|
|
108
112
|
*
|
|
109
113
|
* @returns A promise that resolves to an object containing the AI-generated response.
|
|
110
114
|
* @returns {string} content The text content of the AI's response.
|
|
@@ -124,12 +128,14 @@ declare class KokimokiAiService {
|
|
|
124
128
|
* ```
|
|
125
129
|
*/
|
|
126
130
|
chat(req: {
|
|
127
|
-
model?: "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemini-2.5-flash-lite" | "gemini-2.5-flash";
|
|
131
|
+
model?: "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-3-flash-preview" | "gemini-3-pro-preview";
|
|
128
132
|
systemPrompt?: string;
|
|
129
133
|
userPrompt: string;
|
|
130
134
|
temperature?: number;
|
|
131
135
|
maxTokens?: number;
|
|
132
136
|
responseMimeType?: string;
|
|
137
|
+
/** Image URLs to include with the user prompt (Gemini models only) */
|
|
138
|
+
imageUrls?: string[];
|
|
133
139
|
}): Promise<{
|
|
134
140
|
content: string;
|
|
135
141
|
}>;
|
|
@@ -154,6 +160,8 @@ declare class KokimokiAiService {
|
|
|
154
160
|
* - `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
|
|
155
161
|
* - `gemini-2.5-flash-lite`: Google Gemini lite variant
|
|
156
162
|
* - `gemini-2.5-flash`: Google Gemini fast variant
|
|
163
|
+
* - `gemini-3-flash-preview`: Google Gemini 3 Flash preview
|
|
164
|
+
* - `gemini-3-pro-preview`: Google Gemini 3 Pro preview
|
|
157
165
|
* @param req.systemPrompt Optional. The system message that sets the behavior and context for the AI.
|
|
158
166
|
* This helps define the AI's role, personality, and constraints.
|
|
159
167
|
* @param req.userPrompt The user's message or question to send to the AI.
|
|
@@ -162,17 +170,21 @@ declare class KokimokiAiService {
|
|
|
162
170
|
* higher values make it more creative and varied.
|
|
163
171
|
* @param req.maxTokens Optional. The maximum number of tokens to generate in the response.
|
|
164
172
|
* Controls the length of the AI's output.
|
|
173
|
+
* @param req.imageUrls Optional. Image URLs to include with the user prompt (Gemini models only).
|
|
174
|
+
* Allows the AI to analyze images and generate structured JSON based on them.
|
|
165
175
|
*
|
|
166
176
|
* @returns A promise that resolves to the parsed JSON object generated by the AI.
|
|
167
177
|
*
|
|
168
178
|
* @throws An error object if the API request fails or if the response is not valid JSON.
|
|
169
179
|
*/
|
|
170
180
|
generateJson<T extends object>(req: {
|
|
171
|
-
model?: "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemini-2.5-flash-lite" | "gemini-2.5-flash";
|
|
181
|
+
model?: "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemini-2.5-flash-lite" | "gemini-2.5-flash" | "gemini-3-flash-preview" | "gemini-3-pro-preview";
|
|
172
182
|
systemPrompt?: string;
|
|
173
183
|
userPrompt: string;
|
|
174
184
|
temperature?: number;
|
|
175
185
|
maxTokens?: number;
|
|
186
|
+
/** Image URLs to include with the user prompt (Gemini models only) */
|
|
187
|
+
imageUrls?: string[];
|
|
176
188
|
}): Promise<T>;
|
|
177
189
|
/**
|
|
178
190
|
* Modify an image using the AI service.
|
package/dist/kokimoki.min.js
CHANGED
|
@@ -11330,6 +11330,8 @@ class KokimokiAiService {
|
|
|
11330
11330
|
* - `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
|
|
11331
11331
|
* - `gemini-2.5-flash-lite`: Google Gemini lite variant
|
|
11332
11332
|
* - `gemini-2.5-flash`: Google Gemini fast variant
|
|
11333
|
+
* - `gemini-3-flash-preview`: Google Gemini 3 Flash preview
|
|
11334
|
+
* - `gemini-3-pro-preview`: Google Gemini 3 Pro preview
|
|
11333
11335
|
* @param req.systemPrompt Optional. The system message that sets the behavior and context for the AI.
|
|
11334
11336
|
* This helps define the AI's role, personality, and constraints.
|
|
11335
11337
|
* @param req.userPrompt The user's message or question to send to the AI.
|
|
@@ -11338,6 +11340,8 @@ class KokimokiAiService {
|
|
|
11338
11340
|
* higher values make it more creative and varied.
|
|
11339
11341
|
* @param req.maxTokens Optional. The maximum number of tokens to generate in the response.
|
|
11340
11342
|
* Controls the length of the AI's output.
|
|
11343
|
+
* @param req.imageUrls Optional. Image URLs to include with the user prompt (Gemini models only).
|
|
11344
|
+
* Allows the AI to analyze and respond based on the provided images.
|
|
11341
11345
|
*
|
|
11342
11346
|
* @returns A promise that resolves to an object containing the AI-generated response.
|
|
11343
11347
|
* @returns {string} content The text content of the AI's response.
|
|
@@ -11388,6 +11392,8 @@ class KokimokiAiService {
|
|
|
11388
11392
|
* - `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
|
|
11389
11393
|
* - `gemini-2.5-flash-lite`: Google Gemini lite variant
|
|
11390
11394
|
* - `gemini-2.5-flash`: Google Gemini fast variant
|
|
11395
|
+
* - `gemini-3-flash-preview`: Google Gemini 3 Flash preview
|
|
11396
|
+
* - `gemini-3-pro-preview`: Google Gemini 3 Pro preview
|
|
11391
11397
|
* @param req.systemPrompt Optional. The system message that sets the behavior and context for the AI.
|
|
11392
11398
|
* This helps define the AI's role, personality, and constraints.
|
|
11393
11399
|
* @param req.userPrompt The user's message or question to send to the AI.
|
|
@@ -11396,6 +11402,8 @@ class KokimokiAiService {
|
|
|
11396
11402
|
* higher values make it more creative and varied.
|
|
11397
11403
|
* @param req.maxTokens Optional. The maximum number of tokens to generate in the response.
|
|
11398
11404
|
* Controls the length of the AI's output.
|
|
11405
|
+
* @param req.imageUrls Optional. Image URLs to include with the user prompt (Gemini models only).
|
|
11406
|
+
* Allows the AI to analyze images and generate structured JSON based on them.
|
|
11399
11407
|
*
|
|
11400
11408
|
* @returns A promise that resolves to the parsed JSON object generated by the AI.
|
|
11401
11409
|
*
|
|
@@ -15962,7 +15970,7 @@ class KokimokiTransaction {
|
|
|
15962
15970
|
}
|
|
15963
15971
|
|
|
15964
15972
|
// Auto-generated file. Do not edit manually.
|
|
15965
|
-
const KOKIMOKI_APP_VERSION = '2.
|
|
15973
|
+
const KOKIMOKI_APP_VERSION = '2.1.1';
|
|
15966
15974
|
|
|
15967
15975
|
var RoomSubscriptionMode;
|
|
15968
15976
|
(function (RoomSubscriptionMode) {
|