@kokimoki/app 2.0.3 → 2.1.0
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 +12 -2
- package/dist/kokimoki.min.js +18 -21
- package/dist/kokimoki.min.js.map +1 -1
- package/dist/services/kokimoki-ai.d.ts +12 -2
- package/dist/services/kokimoki-ai.js +6 -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.
|
|
@@ -124,12 +126,14 @@ declare class KokimokiAiService {
|
|
|
124
126
|
* ```
|
|
125
127
|
*/
|
|
126
128
|
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";
|
|
129
|
+
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
130
|
systemPrompt?: string;
|
|
129
131
|
userPrompt: string;
|
|
130
132
|
temperature?: number;
|
|
131
133
|
maxTokens?: number;
|
|
132
134
|
responseMimeType?: string;
|
|
135
|
+
/** Image URLs to include with the user prompt (Gemini models only) */
|
|
136
|
+
imageUrls?: string[];
|
|
133
137
|
}): Promise<{
|
|
134
138
|
content: string;
|
|
135
139
|
}>;
|
|
@@ -154,6 +158,8 @@ declare class KokimokiAiService {
|
|
|
154
158
|
* - `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
|
|
155
159
|
* - `gemini-2.5-flash-lite`: Google Gemini lite variant
|
|
156
160
|
* - `gemini-2.5-flash`: Google Gemini fast variant
|
|
161
|
+
* - `gemini-3-flash-preview`: Google Gemini 3 Flash preview
|
|
162
|
+
* - `gemini-3-pro-preview`: Google Gemini 3 Pro preview
|
|
157
163
|
* @param req.systemPrompt Optional. The system message that sets the behavior and context for the AI.
|
|
158
164
|
* This helps define the AI's role, personality, and constraints.
|
|
159
165
|
* @param req.userPrompt The user's message or question to send to the AI.
|
|
@@ -162,17 +168,21 @@ declare class KokimokiAiService {
|
|
|
162
168
|
* higher values make it more creative and varied.
|
|
163
169
|
* @param req.maxTokens Optional. The maximum number of tokens to generate in the response.
|
|
164
170
|
* Controls the length of the AI's output.
|
|
171
|
+
* @param req.imageUrls Optional. Image URLs to include with the user prompt (Gemini models only).
|
|
172
|
+
* Allows the AI to analyze images and generate structured JSON based on them.
|
|
165
173
|
*
|
|
166
174
|
* @returns A promise that resolves to the parsed JSON object generated by the AI.
|
|
167
175
|
*
|
|
168
176
|
* @throws An error object if the API request fails or if the response is not valid JSON.
|
|
169
177
|
*/
|
|
170
178
|
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";
|
|
179
|
+
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
180
|
systemPrompt?: string;
|
|
173
181
|
userPrompt: string;
|
|
174
182
|
temperature?: number;
|
|
175
183
|
maxTokens?: number;
|
|
184
|
+
/** Image URLs to include with the user prompt (Gemini models only) */
|
|
185
|
+
imageUrls?: string[];
|
|
176
186
|
}): Promise<T>;
|
|
177
187
|
/**
|
|
178
188
|
* 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.
|
|
@@ -11388,6 +11390,8 @@ class KokimokiAiService {
|
|
|
11388
11390
|
* - `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
|
|
11389
11391
|
* - `gemini-2.5-flash-lite`: Google Gemini lite variant
|
|
11390
11392
|
* - `gemini-2.5-flash`: Google Gemini fast variant
|
|
11393
|
+
* - `gemini-3-flash-preview`: Google Gemini 3 Flash preview
|
|
11394
|
+
* - `gemini-3-pro-preview`: Google Gemini 3 Pro preview
|
|
11391
11395
|
* @param req.systemPrompt Optional. The system message that sets the behavior and context for the AI.
|
|
11392
11396
|
* This helps define the AI's role, personality, and constraints.
|
|
11393
11397
|
* @param req.userPrompt The user's message or question to send to the AI.
|
|
@@ -11396,6 +11400,8 @@ class KokimokiAiService {
|
|
|
11396
11400
|
* higher values make it more creative and varied.
|
|
11397
11401
|
* @param req.maxTokens Optional. The maximum number of tokens to generate in the response.
|
|
11398
11402
|
* Controls the length of the AI's output.
|
|
11403
|
+
* @param req.imageUrls Optional. Image URLs to include with the user prompt (Gemini models only).
|
|
11404
|
+
* Allows the AI to analyze images and generate structured JSON based on them.
|
|
11399
11405
|
*
|
|
11400
11406
|
* @returns A promise that resolves to the parsed JSON object generated by the AI.
|
|
11401
11407
|
*
|
|
@@ -12120,16 +12126,16 @@ var functionApply = Function.prototype.apply;
|
|
|
12120
12126
|
/** @type {import('./reflectApply')} */
|
|
12121
12127
|
var reflectApply$1 = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
12122
12128
|
|
|
12123
|
-
var bind$
|
|
12129
|
+
var bind$5 = functionBind;
|
|
12124
12130
|
|
|
12125
12131
|
var $apply$2 = functionApply;
|
|
12126
12132
|
var $call$2 = functionCall;
|
|
12127
12133
|
var $reflectApply = reflectApply$1;
|
|
12128
12134
|
|
|
12129
12135
|
/** @type {import('./actualApply')} */
|
|
12130
|
-
var actualApply$1 = $reflectApply || bind$
|
|
12136
|
+
var actualApply$1 = $reflectApply || bind$5.call($call$2, $apply$2);
|
|
12131
12137
|
|
|
12132
|
-
var bind$
|
|
12138
|
+
var bind$4 = functionBind;
|
|
12133
12139
|
var $TypeError$4 = requireType();
|
|
12134
12140
|
|
|
12135
12141
|
var $call$1 = functionCall;
|
|
@@ -12140,7 +12146,7 @@ var callBindApplyHelpers = function callBindBasic(args) {
|
|
|
12140
12146
|
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
12141
12147
|
throw new $TypeError$4('a function is required');
|
|
12142
12148
|
}
|
|
12143
|
-
return $actualApply(bind$
|
|
12149
|
+
return $actualApply(bind$4, $call$1, args);
|
|
12144
12150
|
};
|
|
12145
12151
|
|
|
12146
12152
|
var callBind$2 = callBindApplyHelpers;
|
|
@@ -12198,21 +12204,12 @@ var getProto$4 = reflectGetProto
|
|
|
12198
12204
|
}
|
|
12199
12205
|
: null;
|
|
12200
12206
|
|
|
12201
|
-
var
|
|
12202
|
-
var
|
|
12203
|
-
|
|
12204
|
-
function requireHasown () {
|
|
12205
|
-
if (hasRequiredHasown) return hasown;
|
|
12206
|
-
hasRequiredHasown = 1;
|
|
12207
|
-
|
|
12208
|
-
var call = Function.prototype.call;
|
|
12209
|
-
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
12210
|
-
var bind = functionBind;
|
|
12207
|
+
var call = Function.prototype.call;
|
|
12208
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
12209
|
+
var bind$3 = functionBind;
|
|
12211
12210
|
|
|
12212
|
-
|
|
12213
|
-
|
|
12214
|
-
return hasown;
|
|
12215
|
-
}
|
|
12211
|
+
/** @type {import('.')} */
|
|
12212
|
+
var hasown = bind$3.call(call, $hasOwn);
|
|
12216
12213
|
|
|
12217
12214
|
var undefined$1;
|
|
12218
12215
|
|
|
@@ -12455,7 +12452,7 @@ var LEGACY_ALIASES = {
|
|
|
12455
12452
|
};
|
|
12456
12453
|
|
|
12457
12454
|
var bind$2 = functionBind;
|
|
12458
|
-
var hasOwn$1 =
|
|
12455
|
+
var hasOwn$1 = hasown;
|
|
12459
12456
|
var $concat = bind$2.call($call, Array.prototype.concat);
|
|
12460
12457
|
var $spliceApply = bind$2.call($apply$1, Array.prototype.splice);
|
|
12461
12458
|
var $replace = bind$2.call($call, String.prototype.replace);
|
|
@@ -12654,7 +12651,7 @@ var isArguments = supportsStandardArguments ? isStandardArguments : isLegacyArgu
|
|
|
12654
12651
|
|
|
12655
12652
|
var callBound$3 = callBound$5;
|
|
12656
12653
|
var hasToStringTag$3 = shams();
|
|
12657
|
-
var hasOwn =
|
|
12654
|
+
var hasOwn = hasown;
|
|
12658
12655
|
var gOPD$2 = gopd$1;
|
|
12659
12656
|
|
|
12660
12657
|
/** @type {import('.')} */
|
|
@@ -15962,7 +15959,7 @@ class KokimokiTransaction {
|
|
|
15962
15959
|
}
|
|
15963
15960
|
|
|
15964
15961
|
// Auto-generated file. Do not edit manually.
|
|
15965
|
-
const KOKIMOKI_APP_VERSION = '2.0
|
|
15962
|
+
const KOKIMOKI_APP_VERSION = '2.1.0';
|
|
15966
15963
|
|
|
15967
15964
|
var RoomSubscriptionMode;
|
|
15968
15965
|
(function (RoomSubscriptionMode) {
|