@orangecatai/adgen-canvas 0.0.14 → 0.0.15

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.
@@ -1 +1 @@
1
- import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-4NRCN4F5.js";import"./chunk-SRAX5OIU.js";export{a as Commands,b as subsetToBase64,c as subsetToBinary,d as toBase64};
1
+ import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-WLACMVHN.js";import"./chunk-SRAX5OIU.js";export{a as Commands,b as subsetToBase64,c as subsetToBinary,d as toBase64};
@@ -1 +1 @@
1
- import{a as r,c as t}from"./chunk-Z5NKEFVG.js";import"./chunk-4NRCN4F5.js";import"./chunk-SRAX5OIU.js";var s=import.meta.url?new URL(import.meta.url):void 0;typeof window>"u"&&typeof self<"u"&&(self.onmessage=async e=>{switch(e.data.command){case r.Subset:let a=await t(e.data.arrayBuffer,e.data.codePoints);self.postMessage(a,{transfer:[a]});break}});export{s as WorkerUrl};
1
+ import{a as r,c as t}from"./chunk-Z5NKEFVG.js";import"./chunk-WLACMVHN.js";import"./chunk-SRAX5OIU.js";var s=import.meta.url?new URL(import.meta.url):void 0;typeof window>"u"&&typeof self<"u"&&(self.onmessage=async e=>{switch(e.data.command){case r.Subset:let a=await t(e.data.arrayBuffer,e.data.codePoints);self.postMessage(a,{transfer:[a]});break}});export{s as WorkerUrl};
@@ -1,4 +1,4 @@
1
- import { type ToolExecutionContext, type ToolResult } from "./canvasTools";
1
+ import { type ToolExecutionContext } from "./canvasTools";
2
2
  import type { BrandContext } from "../../types";
3
3
  type ContentPart = {
4
4
  type: "text";
@@ -33,9 +33,10 @@ export type ToolCall = {
33
33
  };
34
34
  };
35
35
  export type ToolAction = {
36
- toolName: string;
37
- args: Record<string, unknown>;
38
- result: ToolResult;
36
+ result: {
37
+ success: boolean;
38
+ statusMessage: string;
39
+ };
39
40
  };
40
41
  export type AgentUpdate = {
41
42
  type: "status" | "tool_start" | "tool_done" | "final" | "content_delta";
@@ -625,6 +625,18 @@ export type ToolExecutionContext = {
625
625
  brandHeadlineFontName?: string;
626
626
  /** Brand body font file name. Sourced from brand DNA. */
627
627
  brandBodyFontName?: string;
628
+ /**
629
+ * Excalidraw fontFamilyId for the brand headline font.
630
+ * When set, ALL text elements (add_text, fill_template_slots headline slots)
631
+ * use this font. Falls back to brandBodyFontId, then Excalidraw default.
632
+ */
633
+ brandHeadlineFontId?: number;
634
+ /**
635
+ * Excalidraw fontFamilyId for the brand body font.
636
+ * When set, ALL text elements use this font — never a built-in fallback
637
+ * unless the font failed to load.
638
+ */
639
+ brandBodyFontId?: number;
628
640
  /**
629
641
  * Image file attachments the user uploaded in the current chat turn.
630
642
  * Indexed 0-based in the order they were attached.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orangecatai/adgen-canvas",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "type": "module",
5
5
  "types": "./dist/types/excalidraw/index.d.ts",
6
6
  "main": "./dist/prod/index.js",
@@ -1 +0,0 @@
1
- import{T as a,U as b,V as c}from"../chunk-4DCJIUJX.js";import"../chunk-4NRCN4F5.js";import"../chunk-SRAX5OIU.js";export{c as decodePngMetadata,b as encodePngMetadata,a as getTEXtChunk};