@punica/editor 1.4.10 → 1.4.12

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.10",
3
+ "version": "1.4.12",
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
@@ -22,6 +22,15 @@ declare module 'punica' {
22
22
  * the core can automatically show/hide the correct sidebar host.
23
23
  */
24
24
  viewId?: string;
25
+ /**
26
+ * Optional content-tab `viewType` this (command-only) item opens
27
+ * (e.g. `settings`, `capability-catalog`). When set, the ActivityBar
28
+ * highlights this item's icon while that content tab is the active
29
+ * tab — without opening the primary sidebar drawer — and clears it
30
+ * when another tab takes focus. Used by full-page tools like Settings
31
+ * and the Capability Catalog. See `IActivityBarManager.syncContentTool`.
32
+ */
33
+ contentViewType?: string;
25
34
  }
26
35
 
27
36
  interface IActivityBarManager {
@@ -34,6 +43,14 @@ declare module 'punica' {
34
43
  * Passing null clears the current selection.
35
44
  */
36
45
  setActiveByViewId?(viewId: string | null): void;
46
+ /**
47
+ * Sync the highlight with the active content tab. When `viewType`
48
+ * matches an item's `contentViewType`, that item's icon is marked
49
+ * active (without opening the sidebar drawer); any other value — or
50
+ * null — clears the content-tool highlight so the active sidebar view
51
+ * shows through. Called by the ContentTabs manager on tab changes.
52
+ */
53
+ syncContentTool?(viewType: string | null): void;
37
54
  }
38
55
 
39
56
  export const manager: IActivityBarManager;