@punica/editor 1.4.11 → 1.4.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punica/editor",
3
- "version": "1.4.11",
3
+ "version": "1.4.13",
4
4
  "description": "Punica Editor",
5
5
  "private": false,
6
6
  "type": "module",
@@ -200,6 +200,13 @@ declare module 'punica' {
200
200
  */
201
201
  export interface AgentRunInput {
202
202
  query: string;
203
+ /**
204
+ * Image inputs for a multimodal (vision) turn, each a `data:` URL
205
+ * (`data:image/png;base64,…`). Attached to the live user message sent
206
+ * to the model (see `LlmMessage.images`). Optional and additive; a
207
+ * text-only run omits it.
208
+ */
209
+ images?: string[];
203
210
  /**
204
211
  * Persistent conversation to continue (`kernel.AI.sessions` id).
205
212
  * When set, the run seeds its message history from the session's
@@ -345,6 +352,12 @@ declare module 'punica' {
345
352
  id: string;
346
353
  role: 'system' | 'user' | 'assistant' | 'tool';
347
354
  content: string;
355
+ /**
356
+ * Image inputs (`data:` URLs) attached to a user turn, mirroring
357
+ * `runtime.LlmMessage.images` so a persisted multimodal message can be
358
+ * replayed into an LLM request directly. Optional and additive.
359
+ */
360
+ images?: string[];
348
361
  toolCalls?: Array<{
349
362
  id: string;
350
363
  name: string;
@@ -68,6 +68,12 @@ declare module 'punica' {
68
68
  instructionClass: string;
69
69
  /** User prompt/query */
70
70
  userPrompt: string;
71
+ /**
72
+ * Optional image inputs (`data:` URLs) for a multimodal invocation,
73
+ * attached to the user message (see `runtime.LlmMessage.images`).
74
+ * Additive; text-only invocations omit it.
75
+ */
76
+ images?: string[];
71
77
  /** Optional context for the LLM invocation */
72
78
  context?: {
73
79
  workspaceId?: string;
@@ -14,6 +14,15 @@ declare module 'punica' {
14
14
  role: LlmRole;
15
15
  content: string;
16
16
  name?: string;
17
+ /**
18
+ * Image inputs for a multimodal (vision) turn, each a `data:` URL
19
+ * (`data:image/png;base64,…`). Set on a `role: 'user'` message to send
20
+ * images alongside `content`. The host transport encodes these to the
21
+ * vendor wire format (OpenAI content-parts `{ type: 'image_url' }`).
22
+ * Text-only providers ignore the field. Optional and additive — messages
23
+ * without images are unchanged on the wire.
24
+ */
25
+ images?: string[];
17
26
  /**
18
27
  * Tool calls requested by an assistant turn (substrate shape). Set when
19
28
  * replaying an assistant message that invoked tools back to the model on