@animaapp/anima-sdk 0.24.0 → 0.25.0
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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +17 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -390,6 +390,23 @@ export declare type GetCodeFromPromptSettings = BaseSettings & {
|
|
|
390
390
|
uiLibrary?: "shadcn" | "custom_design_system";
|
|
391
391
|
dsId?: string;
|
|
392
392
|
fastMode?: boolean;
|
|
393
|
+
/**
|
|
394
|
+
* Hard override for the p2c routing classifier.
|
|
395
|
+
*
|
|
396
|
+
* - `true` — Skip the LLM-driven classifier entirely and run the
|
|
397
|
+
* image-to-code sub-agent directly. **Bypasses the multi-screen
|
|
398
|
+
* safety check** — the caller is responsible for ensuring the
|
|
399
|
+
* attached image is a single screen, not a multi-screen prototype /
|
|
400
|
+
* moodboard. Saves ~1s + a vision LLM call per request.
|
|
401
|
+
* - `false` — Skip the classifier and force creative mode.
|
|
402
|
+
* - unset — The agent decides automatically: a vision LLM call
|
|
403
|
+
* classifies the intent and downgrades multi-screen inputs to
|
|
404
|
+
* creative mode as a safety net.
|
|
405
|
+
*
|
|
406
|
+
* Requires at least one attached image. With no image attached this
|
|
407
|
+
* field has no effect.
|
|
408
|
+
*/
|
|
409
|
+
imageMode?: boolean;
|
|
393
410
|
};
|
|
394
411
|
|
|
395
412
|
/**
|
package/dist/index.js
CHANGED
|
@@ -4636,7 +4636,8 @@ class Gf {
|
|
|
4636
4636
|
uiLibrary: t.settings.uiLibrary
|
|
4637
4637
|
},
|
|
4638
4638
|
dsId: t.settings.dsId,
|
|
4639
|
-
fastMode: t.settings.fastMode
|
|
4639
|
+
fastMode: t.settings.fastMode,
|
|
4640
|
+
imageMode: t.settings.imageMode
|
|
4640
4641
|
}, (s = t.settings.codegenSettings) != null ? s : {}),
|
|
4641
4642
|
webhookUrl: t.webhookUrl
|
|
4642
4643
|
};
|