@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.
@@ -69,6 +69,8 @@ export declare class KokimokiAiService {
69
69
  * - `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
70
70
  * - `gemini-2.5-flash-lite`: Google Gemini lite variant
71
71
  * - `gemini-2.5-flash`: Google Gemini fast variant
72
+ * - `gemini-3-flash-preview`: Google Gemini 3 Flash preview
73
+ * - `gemini-3-pro-preview`: Google Gemini 3 Pro preview
72
74
  * @param req.systemPrompt Optional. The system message that sets the behavior and context for the AI.
73
75
  * This helps define the AI's role, personality, and constraints.
74
76
  * @param req.userPrompt The user's message or question to send to the AI.
@@ -96,12 +98,14 @@ export declare class KokimokiAiService {
96
98
  * ```
97
99
  */
98
100
  chat(req: {
99
- model?: "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemini-2.5-flash-lite" | "gemini-2.5-flash";
101
+ 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";
100
102
  systemPrompt?: string;
101
103
  userPrompt: string;
102
104
  temperature?: number;
103
105
  maxTokens?: number;
104
106
  responseMimeType?: string;
107
+ /** Image URLs to include with the user prompt (Gemini models only) */
108
+ imageUrls?: string[];
105
109
  }): Promise<{
106
110
  content: string;
107
111
  }>;
@@ -126,6 +130,8 @@ export declare class KokimokiAiService {
126
130
  * - `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
127
131
  * - `gemini-2.5-flash-lite`: Google Gemini lite variant
128
132
  * - `gemini-2.5-flash`: Google Gemini fast variant
133
+ * - `gemini-3-flash-preview`: Google Gemini 3 Flash preview
134
+ * - `gemini-3-pro-preview`: Google Gemini 3 Pro preview
129
135
  * @param req.systemPrompt Optional. The system message that sets the behavior and context for the AI.
130
136
  * This helps define the AI's role, personality, and constraints.
131
137
  * @param req.userPrompt The user's message or question to send to the AI.
@@ -134,17 +140,21 @@ export declare class KokimokiAiService {
134
140
  * higher values make it more creative and varied.
135
141
  * @param req.maxTokens Optional. The maximum number of tokens to generate in the response.
136
142
  * Controls the length of the AI's output.
143
+ * @param req.imageUrls Optional. Image URLs to include with the user prompt (Gemini models only).
144
+ * Allows the AI to analyze images and generate structured JSON based on them.
137
145
  *
138
146
  * @returns A promise that resolves to the parsed JSON object generated by the AI.
139
147
  *
140
148
  * @throws An error object if the API request fails or if the response is not valid JSON.
141
149
  */
142
150
  generateJson<T extends object>(req: {
143
- model?: "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5-nano" | "gemini-2.5-flash-lite" | "gemini-2.5-flash";
151
+ 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";
144
152
  systemPrompt?: string;
145
153
  userPrompt: string;
146
154
  temperature?: number;
147
155
  maxTokens?: number;
156
+ /** Image URLs to include with the user prompt (Gemini models only) */
157
+ imageUrls?: string[];
148
158
  }): Promise<T>;
149
159
  /**
150
160
  * Modify an image using the AI service.
@@ -69,6 +69,8 @@ export class KokimokiAiService {
69
69
  * - `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
70
70
  * - `gemini-2.5-flash-lite`: Google Gemini lite variant
71
71
  * - `gemini-2.5-flash`: Google Gemini fast variant
72
+ * - `gemini-3-flash-preview`: Google Gemini 3 Flash preview
73
+ * - `gemini-3-pro-preview`: Google Gemini 3 Pro preview
72
74
  * @param req.systemPrompt Optional. The system message that sets the behavior and context for the AI.
73
75
  * This helps define the AI's role, personality, and constraints.
74
76
  * @param req.userPrompt The user's message or question to send to the AI.
@@ -127,6 +129,8 @@ export class KokimokiAiService {
127
129
  * - `gpt-5-nano`: Smallest GPT-5 variant for lightweight tasks
128
130
  * - `gemini-2.5-flash-lite`: Google Gemini lite variant
129
131
  * - `gemini-2.5-flash`: Google Gemini fast variant
132
+ * - `gemini-3-flash-preview`: Google Gemini 3 Flash preview
133
+ * - `gemini-3-pro-preview`: Google Gemini 3 Pro preview
130
134
  * @param req.systemPrompt Optional. The system message that sets the behavior and context for the AI.
131
135
  * This helps define the AI's role, personality, and constraints.
132
136
  * @param req.userPrompt The user's message or question to send to the AI.
@@ -135,6 +139,8 @@ export class KokimokiAiService {
135
139
  * higher values make it more creative and varied.
136
140
  * @param req.maxTokens Optional. The maximum number of tokens to generate in the response.
137
141
  * Controls the length of the AI's output.
142
+ * @param req.imageUrls Optional. Image URLs to include with the user prompt (Gemini models only).
143
+ * Allows the AI to analyze images and generate structured JSON based on them.
138
144
  *
139
145
  * @returns A promise that resolves to the parsed JSON object generated by the AI.
140
146
  *
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const KOKIMOKI_APP_VERSION = "2.0.3";
1
+ export declare const KOKIMOKI_APP_VERSION = "2.1.0";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Auto-generated file. Do not edit manually.
2
- export const KOKIMOKI_APP_VERSION = '2.0.3';
2
+ export const KOKIMOKI_APP_VERSION = '2.1.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kokimoki/app",
3
- "version": "2.0.3",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "description": "Kokimoki app",
6
6
  "main": "dist/index.js",