@bunny-agent/daemon 0.9.32 → 0.9.33

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/bundle.mjs CHANGED
@@ -288994,20 +288994,37 @@ var generateImageSchema = {
288994
288994
  size: {
288995
288995
  type: "string",
288996
288996
  enum: [
288997
+ "auto",
288998
+ "1024x1024",
288999
+ "1536x1024",
289000
+ "1024x1536",
288997
289001
  "256x256",
288998
289002
  "512x512",
288999
- "1024x1024",
289000
289003
  "1792x1024",
289001
- "1024x1792",
289002
- "1280x1280",
289003
- "1568x1056",
289004
- "1056x1568",
289005
- "1472x1088",
289006
- "1088x1472",
289007
- "1728x960",
289008
- "960x1728"
289004
+ "1024x1792"
289009
289005
  ],
289010
- description: "Image dimensions. Common: 1024x1024 (square), 1280x1280, 1568x1056 (landscape), 1056x1568 (portrait), 1728x960 (wide), 960x1728 (tall)."
289006
+ description: "Image dimensions. Supported values: auto, 1024x1024, 1536x1024, 1024x1536, 256x256, 512x512, 1792x1024, 1024x1792."
289007
+ },
289008
+ aspectRatio: {
289009
+ type: "string",
289010
+ enum: [
289011
+ "1:1",
289012
+ "3:2",
289013
+ "2:3",
289014
+ "3:4",
289015
+ "4:3",
289016
+ "4:5",
289017
+ "5:4",
289018
+ "9:16",
289019
+ "16:9",
289020
+ "21:9"
289021
+ ],
289022
+ description: "Image aspect ratio. Use this instead of size for models that support it when exact proportions matter. Supported values: 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9."
289023
+ },
289024
+ imageSize: {
289025
+ type: "string",
289026
+ enum: ["1K", "2K", "4K"],
289027
+ description: "Image resolution for models that support K-resolution output. Use this for requests like 2K or 4K."
289011
289028
  },
289012
289029
  quality: {
289013
289030
  type: "string",
@@ -289162,19 +289179,23 @@ function buildImageGenerateTool(cwd, imageModelId, baseUrl, apiKey) {
289162
289179
  name: "generate_image",
289163
289180
  label: "generate image",
289164
289181
  description: "Generate an image from a text prompt. Saves the image to disk and returns the file path.",
289165
- promptSnippet: "generate_image(prompt, filename?, size?, quality?) - generate an image from text",
289182
+ promptSnippet: "generate_image(prompt, filename?, size?, aspectRatio?, imageSize?, quality?) - generate an image from text",
289166
289183
  promptGuidelines: [
289167
289184
  "Use generate_image when the user asks to create, draw, or visualize something.",
289168
289185
  "Be descriptive in the prompt \u2014 more detail produces better results.",
289169
- "Provide a filename with extension, e.g. 'cat.png'."
289186
+ "Provide a filename with extension, e.g. 'cat.png'.",
289187
+ "Use aspectRatio (e.g. '3:4') when the requested output needs specific proportions.",
289188
+ "Use imageSize (e.g. '2K') when the user requests 1K, 2K, or 4K resolution."
289170
289189
  ],
289171
289190
  // biome-ignore lint/suspicious/noExplicitAny: plain JSON Schema compatible with TypeBox TSchema
289172
289191
  parameters: generateImageSchema,
289173
289192
  async execute(_toolCallId, params, signal, _onUpdate) {
289174
289193
  const p = params;
289175
289194
  const prompt = p.prompt;
289176
- const size = p.size ?? "1024x1024";
289195
+ const size = p.size;
289177
289196
  const quality = p.quality ?? "auto";
289197
+ const aspectRatio = p.aspectRatio;
289198
+ const imageSize = p.imageSize;
289178
289199
  const rawFilename = p.filename;
289179
289200
  const filename = rawFilename ? extname2(rawFilename) ? rawFilename : `${rawFilename}.png` : `image_${Date.now()}.png`;
289180
289201
  const filePath = join35(cwd, filename.replace(/[^a-zA-Z0-9_\-./]/g, "_"));
@@ -289190,10 +289211,12 @@ function buildImageGenerateTool(cwd, imageModelId, baseUrl, apiKey) {
289190
289211
  model: imageModelId,
289191
289212
  prompt,
289192
289213
  n: 1,
289193
- size,
289194
289214
  quality,
289195
289215
  response_format: "b64_json",
289196
- output_format: "png"
289216
+ output_format: "png",
289217
+ ...aspectRatio ? { aspect_ratio: aspectRatio } : {},
289218
+ ...imageSize ? { image_size: imageSize } : {},
289219
+ ...size ? { size } : !aspectRatio && !imageSize ? { size: "1024x1024" } : {}
289197
289220
  }),
289198
289221
  signal
289199
289222
  });
package/dist/index.js CHANGED
@@ -288990,20 +288990,37 @@ var generateImageSchema = {
288990
288990
  size: {
288991
288991
  type: "string",
288992
288992
  enum: [
288993
+ "auto",
288994
+ "1024x1024",
288995
+ "1536x1024",
288996
+ "1024x1536",
288993
288997
  "256x256",
288994
288998
  "512x512",
288995
- "1024x1024",
288996
288999
  "1792x1024",
288997
- "1024x1792",
288998
- "1280x1280",
288999
- "1568x1056",
289000
- "1056x1568",
289001
- "1472x1088",
289002
- "1088x1472",
289003
- "1728x960",
289004
- "960x1728"
289000
+ "1024x1792"
289005
289001
  ],
289006
- description: "Image dimensions. Common: 1024x1024 (square), 1280x1280, 1568x1056 (landscape), 1056x1568 (portrait), 1728x960 (wide), 960x1728 (tall)."
289002
+ description: "Image dimensions. Supported values: auto, 1024x1024, 1536x1024, 1024x1536, 256x256, 512x512, 1792x1024, 1024x1792."
289003
+ },
289004
+ aspectRatio: {
289005
+ type: "string",
289006
+ enum: [
289007
+ "1:1",
289008
+ "3:2",
289009
+ "2:3",
289010
+ "3:4",
289011
+ "4:3",
289012
+ "4:5",
289013
+ "5:4",
289014
+ "9:16",
289015
+ "16:9",
289016
+ "21:9"
289017
+ ],
289018
+ description: "Image aspect ratio. Use this instead of size for models that support it when exact proportions matter. Supported values: 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9."
289019
+ },
289020
+ imageSize: {
289021
+ type: "string",
289022
+ enum: ["1K", "2K", "4K"],
289023
+ description: "Image resolution for models that support K-resolution output. Use this for requests like 2K or 4K."
289007
289024
  },
289008
289025
  quality: {
289009
289026
  type: "string",
@@ -289158,19 +289175,23 @@ function buildImageGenerateTool(cwd, imageModelId, baseUrl, apiKey) {
289158
289175
  name: "generate_image",
289159
289176
  label: "generate image",
289160
289177
  description: "Generate an image from a text prompt. Saves the image to disk and returns the file path.",
289161
- promptSnippet: "generate_image(prompt, filename?, size?, quality?) - generate an image from text",
289178
+ promptSnippet: "generate_image(prompt, filename?, size?, aspectRatio?, imageSize?, quality?) - generate an image from text",
289162
289179
  promptGuidelines: [
289163
289180
  "Use generate_image when the user asks to create, draw, or visualize something.",
289164
289181
  "Be descriptive in the prompt \u2014 more detail produces better results.",
289165
- "Provide a filename with extension, e.g. 'cat.png'."
289182
+ "Provide a filename with extension, e.g. 'cat.png'.",
289183
+ "Use aspectRatio (e.g. '3:4') when the requested output needs specific proportions.",
289184
+ "Use imageSize (e.g. '2K') when the user requests 1K, 2K, or 4K resolution."
289166
289185
  ],
289167
289186
  // biome-ignore lint/suspicious/noExplicitAny: plain JSON Schema compatible with TypeBox TSchema
289168
289187
  parameters: generateImageSchema,
289169
289188
  async execute(_toolCallId, params, signal, _onUpdate) {
289170
289189
  const p = params;
289171
289190
  const prompt = p.prompt;
289172
- const size = p.size ?? "1024x1024";
289191
+ const size = p.size;
289173
289192
  const quality = p.quality ?? "auto";
289193
+ const aspectRatio = p.aspectRatio;
289194
+ const imageSize = p.imageSize;
289174
289195
  const rawFilename = p.filename;
289175
289196
  const filename = rawFilename ? extname2(rawFilename) ? rawFilename : `${rawFilename}.png` : `image_${Date.now()}.png`;
289176
289197
  const filePath = join35(cwd, filename.replace(/[^a-zA-Z0-9_\-./]/g, "_"));
@@ -289186,10 +289207,12 @@ function buildImageGenerateTool(cwd, imageModelId, baseUrl, apiKey) {
289186
289207
  model: imageModelId,
289187
289208
  prompt,
289188
289209
  n: 1,
289189
- size,
289190
289210
  quality,
289191
289211
  response_format: "b64_json",
289192
- output_format: "png"
289212
+ output_format: "png",
289213
+ ...aspectRatio ? { aspect_ratio: aspectRatio } : {},
289214
+ ...imageSize ? { image_size: imageSize } : {},
289215
+ ...size ? { size } : !aspectRatio && !imageSize ? { size: "1024x1024" } : {}
289193
289216
  }),
289194
289217
  signal
289195
289218
  });
package/dist/nextjs.js CHANGED
@@ -288986,20 +288986,37 @@ var generateImageSchema = {
288986
288986
  size: {
288987
288987
  type: "string",
288988
288988
  enum: [
288989
+ "auto",
288990
+ "1024x1024",
288991
+ "1536x1024",
288992
+ "1024x1536",
288989
288993
  "256x256",
288990
288994
  "512x512",
288991
- "1024x1024",
288992
288995
  "1792x1024",
288993
- "1024x1792",
288994
- "1280x1280",
288995
- "1568x1056",
288996
- "1056x1568",
288997
- "1472x1088",
288998
- "1088x1472",
288999
- "1728x960",
289000
- "960x1728"
288996
+ "1024x1792"
289001
288997
  ],
289002
- description: "Image dimensions. Common: 1024x1024 (square), 1280x1280, 1568x1056 (landscape), 1056x1568 (portrait), 1728x960 (wide), 960x1728 (tall)."
288998
+ description: "Image dimensions. Supported values: auto, 1024x1024, 1536x1024, 1024x1536, 256x256, 512x512, 1792x1024, 1024x1792."
288999
+ },
289000
+ aspectRatio: {
289001
+ type: "string",
289002
+ enum: [
289003
+ "1:1",
289004
+ "3:2",
289005
+ "2:3",
289006
+ "3:4",
289007
+ "4:3",
289008
+ "4:5",
289009
+ "5:4",
289010
+ "9:16",
289011
+ "16:9",
289012
+ "21:9"
289013
+ ],
289014
+ description: "Image aspect ratio. Use this instead of size for models that support it when exact proportions matter. Supported values: 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9."
289015
+ },
289016
+ imageSize: {
289017
+ type: "string",
289018
+ enum: ["1K", "2K", "4K"],
289019
+ description: "Image resolution for models that support K-resolution output. Use this for requests like 2K or 4K."
289003
289020
  },
289004
289021
  quality: {
289005
289022
  type: "string",
@@ -289154,19 +289171,23 @@ function buildImageGenerateTool(cwd, imageModelId, baseUrl, apiKey) {
289154
289171
  name: "generate_image",
289155
289172
  label: "generate image",
289156
289173
  description: "Generate an image from a text prompt. Saves the image to disk and returns the file path.",
289157
- promptSnippet: "generate_image(prompt, filename?, size?, quality?) - generate an image from text",
289174
+ promptSnippet: "generate_image(prompt, filename?, size?, aspectRatio?, imageSize?, quality?) - generate an image from text",
289158
289175
  promptGuidelines: [
289159
289176
  "Use generate_image when the user asks to create, draw, or visualize something.",
289160
289177
  "Be descriptive in the prompt \u2014 more detail produces better results.",
289161
- "Provide a filename with extension, e.g. 'cat.png'."
289178
+ "Provide a filename with extension, e.g. 'cat.png'.",
289179
+ "Use aspectRatio (e.g. '3:4') when the requested output needs specific proportions.",
289180
+ "Use imageSize (e.g. '2K') when the user requests 1K, 2K, or 4K resolution."
289162
289181
  ],
289163
289182
  // biome-ignore lint/suspicious/noExplicitAny: plain JSON Schema compatible with TypeBox TSchema
289164
289183
  parameters: generateImageSchema,
289165
289184
  async execute(_toolCallId, params, signal, _onUpdate) {
289166
289185
  const p = params;
289167
289186
  const prompt = p.prompt;
289168
- const size = p.size ?? "1024x1024";
289187
+ const size = p.size;
289169
289188
  const quality = p.quality ?? "auto";
289189
+ const aspectRatio = p.aspectRatio;
289190
+ const imageSize = p.imageSize;
289170
289191
  const rawFilename = p.filename;
289171
289192
  const filename = rawFilename ? extname2(rawFilename) ? rawFilename : `${rawFilename}.png` : `image_${Date.now()}.png`;
289172
289193
  const filePath = join35(cwd, filename.replace(/[^a-zA-Z0-9_\-./]/g, "_"));
@@ -289182,10 +289203,12 @@ function buildImageGenerateTool(cwd, imageModelId, baseUrl, apiKey) {
289182
289203
  model: imageModelId,
289183
289204
  prompt,
289184
289205
  n: 1,
289185
- size,
289186
289206
  quality,
289187
289207
  response_format: "b64_json",
289188
- output_format: "png"
289208
+ output_format: "png",
289209
+ ...aspectRatio ? { aspect_ratio: aspectRatio } : {},
289210
+ ...imageSize ? { image_size: imageSize } : {},
289211
+ ...size ? { size } : !aspectRatio && !imageSize ? { size: "1024x1024" } : {}
289189
289212
  }),
289190
289213
  signal
289191
289214
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunny-agent/daemon",
3
- "version": "0.9.32",
3
+ "version": "0.9.33",
4
4
  "description": "BunnyAgent Daemon - Unified API gateway for sandbox services (file, git, volumes)",
5
5
  "type": "module",
6
6
  "bin": {