@orangecatai/adgen-canvas 0.0.15 → 0.0.16
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/dev/{chunk-EL4HTLYE.js → chunk-4VEZT6GV.js} +2 -2
- package/dist/dev/{chunk-FGSZO5WI.js → chunk-UJP3DIYP.js} +3 -3
- package/dist/dev/data/{image-AVR5GHYZ.js → image-PZBTJSVV.js} +3 -3
- package/dist/dev/index.js +564 -140
- package/dist/dev/index.js.map +3 -3
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-WLACMVHN.js → chunk-62H5HX6J.js} +1 -1
- package/dist/prod/{chunk-5UTVS66N.js → chunk-VXQSQDGS.js} +2 -2
- package/dist/prod/data/image-REZEAPVS.js +1 -0
- package/dist/prod/index.js +21 -7
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/excalidraw/components/AIChatPanel.d.ts +5 -8
- package/dist/types/excalidraw/components/ai-chat/canvasTools.d.ts +8 -5
- package/dist/types/excalidraw/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/prod/data/image-FOOXCTEO.js +0 -1
- /package/dist/dev/{chunk-EL4HTLYE.js.map → chunk-4VEZT6GV.js.map} +0 -0
- /package/dist/dev/{chunk-FGSZO5WI.js.map → chunk-UJP3DIYP.js.map} +0 -0
- /package/dist/dev/data/{image-AVR5GHYZ.js.map → image-PZBTJSVV.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-
|
|
1
|
+
import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-62H5HX6J.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-
|
|
1
|
+
import{a as r,c as t}from"./chunk-Z5NKEFVG.js";import"./chunk-62H5HX6J.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};
|
|
@@ -88,17 +88,14 @@ export type AIChatPanelProps = {
|
|
|
88
88
|
assetType: string;
|
|
89
89
|
blobUrl: string;
|
|
90
90
|
}>>;
|
|
91
|
-
onListBrandTemplates?: (
|
|
91
|
+
onListBrandTemplates?: (keywords?: string[]) => Promise<Array<{
|
|
92
92
|
id: string;
|
|
93
93
|
name: string;
|
|
94
94
|
campaignTag?: string;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
height: number;
|
|
100
|
-
thumbnailBlobUrl?: string;
|
|
101
|
-
}>;
|
|
95
|
+
label?: string;
|
|
96
|
+
width?: number;
|
|
97
|
+
height?: number;
|
|
98
|
+
thumbnailBlobUrl?: string;
|
|
102
99
|
}>>;
|
|
103
100
|
onGetTemplateVariant?: (variantId: string) => Promise<{
|
|
104
101
|
canvasJson: string;
|
|
@@ -462,13 +462,16 @@ export declare const BANNER_TOOLS: readonly [{
|
|
|
462
462
|
readonly type: "function";
|
|
463
463
|
readonly function: {
|
|
464
464
|
readonly name: "list_brand_templates";
|
|
465
|
-
readonly description: "List available brand templates
|
|
465
|
+
readonly description: "List available brand templates by keyword search across template names, campaign tags, and labels.\n\nMANDATORY SEARCH PROTOCOL — follow exactly, no shortcuts:\n\nATTEMPT 1: Generate TWO sets of 10 keywords each from the user's request:\n - Set A (campaign tag variations): 10 synonyms/abbreviations/phrasings of the campaign topic (e.g. for \"noida datacenter\": [\"datacenter\", \"data center\", \"dc\", \"noida dc\", \"noida datacenter\", \"data centre\", \"server farm\", \"cloud infra\", \"hyperscale\", \"colocation\"])\n - Set B (template name variations): 10 different name keywords the template might have (e.g. [\"noida\", \"datacenter campaign\", \"new datacenter\", \"dc launch\", \"infrastructure\", \"cloud\", \"enterprise\", \"b2b\", \"tech\", \"facility\"])\n Merge all 20 into the keywords array. Call list_brand_templates with all 20.\n\nIF templates returned is empty → ATTEMPT 2 (MANDATORY — do NOT skip):\n Generate a completely DIFFERENT set of 20 keywords — do not reuse any from attempt 1. Think laterally: different synonyms, related industry terms, the city name, brand-adjacent words, seasonal terms. Call list_brand_templates again with the new 20.\n\nONLY after both attempts return empty → tell the user no matching template was found.\n\nIf no search context exists, call with an empty keywords array to list all templates.";
|
|
466
466
|
readonly parameters: {
|
|
467
467
|
readonly type: "object";
|
|
468
468
|
readonly properties: {
|
|
469
|
-
readonly
|
|
470
|
-
readonly type: "
|
|
471
|
-
readonly
|
|
469
|
+
readonly keywords: {
|
|
470
|
+
readonly type: "array";
|
|
471
|
+
readonly items: {
|
|
472
|
+
readonly type: "string";
|
|
473
|
+
};
|
|
474
|
+
readonly description: "Up to 20 keyword variations to search across template names, campaign tags, and labels. All are OR-matched case-insensitively. Generate 10 tag synonyms + 10 name variations from the user's request.";
|
|
472
475
|
};
|
|
473
476
|
};
|
|
474
477
|
readonly required: readonly [];
|
|
@@ -653,7 +656,7 @@ export type ToolExecutionContext = {
|
|
|
653
656
|
assetType: string;
|
|
654
657
|
blobUrl: string;
|
|
655
658
|
}>>;
|
|
656
|
-
onListBrandTemplates?: (
|
|
659
|
+
onListBrandTemplates?: (keywords?: string[]) => Promise<Array<{
|
|
657
660
|
id: string;
|
|
658
661
|
name: string;
|
|
659
662
|
campaignTag?: string;
|
|
@@ -53,4 +53,4 @@ export type { AppState, BinaryFiles, BinaryFileData, ExcalidrawProps, Excalidraw
|
|
|
53
53
|
export type { ExcalidrawElement, NonDeletedExcalidrawElement, NonDeleted, OrderedExcalidrawElement, ExcalidrawElementType, } from "@orangecatai/element/types";
|
|
54
54
|
export type { ImageEditToolbarCallbacks } from "./components/ImageEditToolbar";
|
|
55
55
|
export type { CustomFontSpec, BrandContext } from "./types";
|
|
56
|
-
export type { ReviewerFeedback, ReviewIssue } from "./components/ai-chat/reviewerAgent";
|
|
56
|
+
export type { ReviewerFeedback, ReviewIssue, } from "./components/ai-chat/reviewerAgent";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{T as a,U as b,V as c}from"../chunk-5UTVS66N.js";import"../chunk-WLACMVHN.js";import"../chunk-SRAX5OIU.js";export{c as decodePngMetadata,b as encodePngMetadata,a as getTEXtChunk};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|