@sogni-ai/sogni-intelligence-client 3.18.3 → 3.19.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/tools/definitions/edit-image/definition.d.ts.map +1 -1
- package/dist/tools/definitions/edit-image/definition.js +17 -0
- package/dist/tools/definitions/edit-image/definition.js.map +1 -1
- package/dist/tools/definitions/generate-image/definition.d.ts.map +1 -1
- package/dist/tools/definitions/generate-image/definition.js +3 -2
- package/dist/tools/definitions/generate-image/definition.js.map +1 -1
- package/dist/tools/shared/loraGuidance.d.ts +5 -0
- package/dist/tools/shared/loraGuidance.d.ts.map +1 -0
- package/dist/tools/shared/loraGuidance.js +32 -0
- package/dist/tools/shared/loraGuidance.js.map +1 -0
- package/dist-esm/tools/definitions/edit-image/definition.js +17 -0
- package/dist-esm/tools/definitions/edit-image/definition.js.map +1 -1
- package/dist-esm/tools/definitions/generate-image/definition.js +3 -2
- package/dist-esm/tools/definitions/generate-image/definition.js.map +1 -1
- package/dist-esm/tools/shared/loraGuidance.js +29 -0
- package/dist-esm/tools/shared/loraGuidance.js.map +1 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../../src/tools/definitions/edit-image/definition.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../../src/tools/definitions/edit-image/definition.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AASlD,eAAO,MAAM,UAAU,EAAE,cA8JxB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.definition = void 0;
|
|
4
|
+
const loraGuidance_js_1 = require("../../shared/loraGuidance.js");
|
|
4
5
|
const promptOverrideMarker_js_1 = require("../../../contracts/promptOverrideMarker.js");
|
|
5
6
|
const index_js_1 = require("../../../media/index.js");
|
|
6
7
|
exports.definition = {
|
|
@@ -99,6 +100,22 @@ COMPOSITE GPT IMAGE 2 STORYBOARD SHEETS: When numberOfVariations=1 and the user
|
|
|
99
100
|
type: 'number',
|
|
100
101
|
description: 'Index of the primary image to use as the main reference. For follow-up edits when generated image results already exist, use the 0-based generated image result index; for example, editing the latest generated storyboard/image should use that generated result index so the model modifies the existing image instead of redrawing from uploads. When no generated image results exist, use sourceImageIndex=-1 to use the uploaded image references. The primary image and any additional uploaded images are passed as context images to guide generation.',
|
|
101
102
|
},
|
|
103
|
+
loras: {
|
|
104
|
+
type: 'array',
|
|
105
|
+
minItems: 1,
|
|
106
|
+
maxItems: 8,
|
|
107
|
+
items: { type: 'string', minLength: 1 },
|
|
108
|
+
description: `Ordered LoRA IDs for the edit. ONLY valid with model="krea-identity-edit" or model="dark-beast-krea2-identity-edit" — Qwen, Flux.2 and GPT Image 2 accept no LoRAs and the IDs are dropped. Use when the user asks to shift a trait the identity edit itself does not change, such as age, build, skin, lighting or grain, while the identity LoRA holds the likeness. ${loraGuidance_js_1.LORA_STACKING_GUIDANCE}
|
|
109
|
+
|
|
110
|
+
${loraGuidance_js_1.KREA2_LORA_CATALOG_REFERENCE}`,
|
|
111
|
+
},
|
|
112
|
+
loraStrengths: {
|
|
113
|
+
type: 'array',
|
|
114
|
+
minItems: 1,
|
|
115
|
+
maxItems: 8,
|
|
116
|
+
items: { type: 'number' },
|
|
117
|
+
description: loraGuidance_js_1.LORA_STRENGTHS_GUIDANCE,
|
|
118
|
+
},
|
|
102
119
|
numberOfVariations: {
|
|
103
120
|
type: 'number',
|
|
104
121
|
description: 'Number of variations (1-16). Pass the user\'s exact requested count in one call when the outputs can share project settings. "4 variations" → numberOfVariations=4 in a single call. Use the exact requested count for reference-guided images that will feed a later video after the user picks one. Use separate calls only when the user explicitly wants independent projects, isolated approvals, or per-output settings that cannot share one project. For screenplay/storyboard batches, the prompt should contain one Dynamic Prompt branch with one full scene prompt per scene; do not set numberOfVariations=N with only scene 1\'s prompt. Use 1 unless the user explicitly asks for multiple. Default: 1.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/edit-image/definition.ts"],"names":[],"mappings":";;;AAMA,wFAAqF;AACrF,sDAAmE;AAEtD,QAAA,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,YAAY;QAClB,WAAW,EACT,0/BAA0/B;QAC5/B,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;;EAErB,iDAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+oBAkEsnB;iBACtoB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE;wBACJ,aAAa;wBACb,gBAAgB;wBAChB,MAAM;wBACN,OAAO;wBACP,oBAAoB;wBACpB,gCAAgC;qBACjC;oBACD,WAAW,EACT,kwDAAkwD;iBACrwD;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,kiBAAkiB;iBACriB;gBACD,kBAAkB,EAAE;oBAClB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,wrBAAwrB;oBAC1rB,OAAO,EAAE,CAAC;oBACV,OAAO,EAAE,EAAE;iBACZ;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,y/BAAy/B;iBAC5/B;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,2/BAA2/B;iBAC9/B;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,GAAG,mCAAwB,imBAAimB;iBAC/nB;gBACD,eAAe,EAAE;oBACf,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC;oBAC/B,WAAW,EACT,4QAA4Q;iBAC/Q;gBACD,YAAY,EAAE;oBACZ,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;oBACpC,WAAW,EACT,uLAAuL;iBAC1L;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,2jBAA2jB;iBAC9jB;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/edit-image/definition.ts"],"names":[],"mappings":";;;AAMA,kEAIsC;AACtC,wFAAqF;AACrF,sDAAmE;AAEtD,QAAA,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,YAAY;QAClB,WAAW,EACT,0/BAA0/B;QAC5/B,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;;EAErB,iDAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+oBAkEsnB;iBACtoB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE;wBACJ,aAAa;wBACb,gBAAgB;wBAChB,MAAM;wBACN,OAAO;wBACP,oBAAoB;wBACpB,gCAAgC;qBACjC;oBACD,WAAW,EACT,kwDAAkwD;iBACrwD;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,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AAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-image/definition.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-image/definition.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAUlD,eAAO,MAAM,UAAU,EAAE,cAkIxB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.definition = void 0;
|
|
4
|
+
const loraGuidance_js_1 = require("../../shared/loraGuidance.js");
|
|
4
5
|
const promptOverrideMarker_js_1 = require("../../../contracts/promptOverrideMarker.js");
|
|
5
6
|
const index_js_1 = require("../../../media/index.js");
|
|
6
7
|
exports.definition = {
|
|
@@ -91,14 +92,14 @@ VIDEO KEYFRAMES: When generating images intended as first+last frames for video
|
|
|
91
92
|
minItems: 1,
|
|
92
93
|
maxItems: 8,
|
|
93
94
|
items: { type: 'string', minLength: 1 },
|
|
94
|
-
description:
|
|
95
|
+
description: `Ordered LoRA IDs to apply to a compatible image model. Use only when the user explicitly requests LoRAs or asks for an effect one of these names directly. ${loraGuidance_js_1.LORA_STACKING_GUIDANCE}\n\n${loraGuidance_js_1.KREA2_LORA_MODEL_IDS_SENTENCE}\n\n${loraGuidance_js_1.KREA2_LORA_CATALOG_REFERENCE}`,
|
|
95
96
|
},
|
|
96
97
|
loraStrengths: {
|
|
97
98
|
type: 'array',
|
|
98
99
|
minItems: 1,
|
|
99
100
|
maxItems: 8,
|
|
100
101
|
items: { type: 'number' },
|
|
101
|
-
description:
|
|
102
|
+
description: loraGuidance_js_1.LORA_STRENGTHS_GUIDANCE,
|
|
102
103
|
},
|
|
103
104
|
gptImageQuality: {
|
|
104
105
|
type: 'string',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-image/definition.ts"],"names":[],"mappings":";;;AAMA,wFAAqF;AACrF,sDAAmE;AAEtD,QAAA,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,gBAAgB;QACtB,WAAW,EACT,g0BAAg0B;QACl0B,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;;EAErB,iDAAuB;;;;;;;;;;;;;;;;;;;;;;siBAsB6gB;iBAC7hB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE;wBACJ,aAAa;wBACb,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,kBAAkB,EAAE,oBAAoB;wBAC9E,kBAAkB,EAAE,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS;wBACnF,WAAW,EAAE,qBAAqB;wBAClC,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,eAAe;wBACvG,mBAAmB,EAAE,mBAAmB,EAAE,eAAe,EAAE,cAAc;wBACzE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB;qBACpD;oBACD,WAAW,EACT,soDAAsoD;iBACzoD;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,wmCAAwmC;iBAC3mC;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,ymCAAymC;iBAC5mC;gBACD,kBAAkB,EAAE;oBAClB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,s9CAAs9C;oBACx9C,OAAO,EAAE,CAAC;oBACV,OAAO,EAAE,EAAE;iBACZ;gBACD,cAAc,EAAE;oBACd,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,oJAAoJ;iBACvJ;gBACD,uBAAuB,EAAE;oBACvB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,gfAAgf;iBACnf;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,sLAAsL;iBACzL;gBACD,IAAI,EAAE;oBACJ,IAAI,EAAE,SAAS;oBACf,WAAW,EACT,uIAAuI;iBAC1I;gBACD,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,2KAA2K;iBAC9K;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,OAAO;oBACb,QAAQ,EAAE,CAAC;oBACX,QAAQ,EAAE,CAAC;oBACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;oBACvC,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-image/definition.ts"],"names":[],"mappings":";;;AAMA,kEAKsC;AACtC,wFAAqF;AACrF,sDAAmE;AAEtD,QAAA,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,gBAAgB;QACtB,WAAW,EACT,g0BAAg0B;QACl0B,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;;EAErB,iDAAuB;;;;;;;;;;;;;;;;;;;;;;siBAsB6gB;iBAC7hB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE;wBACJ,aAAa;wBACb,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,kBAAkB,EAAE,oBAAoB;wBAC9E,kBAAkB,EAAE,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ACD,aAAa,EAAE;oBACb,IAAI,EAAE,OAAO;oBACb,QAAQ,EAAE,CAAC;oBACX,QAAQ,EAAE,CAAC;oBACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACzB,WAAW,EACT,yCAAuB;iBAC1B;gBACD,eAAe,EAAE;oBACf,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC;oBAC/B,WAAW,EACT,4QAA4Q;iBAC/Q;gBACD,YAAY,EAAE;oBACZ,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;oBACpC,WAAW,EACT,uLAAuL;iBAC1L;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,GAAG,mCAAwB,glBAAglB;iBAC9mB;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const KREA2_LORA_CATALOG_REFERENCE: string;
|
|
2
|
+
export declare const LORA_STRENGTHS_GUIDANCE: string;
|
|
3
|
+
export declare const LORA_STACKING_GUIDANCE: string;
|
|
4
|
+
export declare const KREA2_LORA_MODEL_IDS_SENTENCE: string;
|
|
5
|
+
//# sourceMappingURL=loraGuidance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loraGuidance.d.ts","sourceRoot":"","sources":["../../../src/tools/shared/loraGuidance.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,4BAA4B,QAYkB,CAAC;AAG5D,eAAO,MAAM,uBAAuB,QAUuD,CAAC;AAG5F,eAAO,MAAM,sBAAsB,QAGsC,CAAC;AAG1E,eAAO,MAAM,6BAA6B,QAGwC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KREA2_LORA_MODEL_IDS_SENTENCE = exports.LORA_STACKING_GUIDANCE = exports.LORA_STRENGTHS_GUIDANCE = exports.KREA2_LORA_CATALOG_REFERENCE = void 0;
|
|
4
|
+
exports.KREA2_LORA_CATALOG_REFERENCE = 'Bipolar sliders — each id names its POSITIVE direction, a negative strength applies the ' +
|
|
5
|
+
'opposite, and 0 disables it: krea2-detail-enhancer, krea2-scene-complexity, krea2-realism ' +
|
|
6
|
+
'(+ = photoreal), krea2-amateur, krea2-candid, krea2-zoom (+ = zoomed in), krea2-skin-detail, ' +
|
|
7
|
+
'krea2-wetness, krea2-age, krea2-height, krea2-weight, krea2-hourglass-figure, krea2-breast, ' +
|
|
8
|
+
'krea2-chest-firmness, krea2-nipple-projection, krea2-warm-light, krea2-afterlight ' +
|
|
9
|
+
'(+ = golden), krea2-skin-tone (+ = darker), krea2-purple-grainy (+ = grainy and muted). ' +
|
|
10
|
+
'Positive-only fine-tunes: krea2-realism-engine (photographic realism), krea2-bloomgirls ' +
|
|
11
|
+
'(polished influencer look), krea2-mystic-x (uncensored adult), krea2-aberrant (industrial ' +
|
|
12
|
+
'body horror), krea2-filter-bypass-2 and krea2-filter-bypass-3 (restore expressions, anatomy ' +
|
|
13
|
+
'and poses the base model flattens; try the 2-vector first). ' +
|
|
14
|
+
'Exact per-LoRA ranges, maturity flags and the full contract: ' +
|
|
15
|
+
'GET /v1/loras/comfy?modelId=<model>. Do not invent ids.';
|
|
16
|
+
exports.LORA_STRENGTHS_GUIDANCE = 'Strength for each LoRA in loras, in the same order. Omitting the array uses 1.0 for every ' +
|
|
17
|
+
'LoRA, which is not each LoRA\'s catalog default — krea2-chest-firmness, ' +
|
|
18
|
+
'krea2-nipple-projection and krea2-height default to 0 (no effect) — so prefer explicit ' +
|
|
19
|
+
'values. Do NOT clamp to 0-1: most Krea 2 LoRAs are bipolar, so krea2-warm-light warms the ' +
|
|
20
|
+
'grade at 2 and cools it at -2. Usable bands vary per LoRA — roughly -2..5 for ' +
|
|
21
|
+
'krea2-detail-enhancer, -3..3 for krea2-warm-light, 3..9 for krea2-candid, 0.5..1 for ' +
|
|
22
|
+
'krea2-realism-engine, 1..2 for the filter-bypass pair. Scale the magnitude to how strongly ' +
|
|
23
|
+
'the user asked; the server clamps out-of-range values, and pushing past a LoRA\'s ' +
|
|
24
|
+
'recommended band costs image quality rather than adding effect. Preserve explicit user ' +
|
|
25
|
+
'values. Example: loras=["krea2-detail-enhancer","krea2-amateur"], loraStrengths=[3,-2].';
|
|
26
|
+
exports.LORA_STACKING_GUIDANCE = 'Stack up to 8 in one request; order matters because the adapters apply in sequence and do ' +
|
|
27
|
+
'not commute. Keep this array positionally aligned with loraStrengths. The first render with ' +
|
|
28
|
+
'an uncached LoRA takes longer to start while the worker downloads it.';
|
|
29
|
+
exports.KREA2_LORA_MODEL_IDS_SENTENCE = 'Accepted only by the five Krea 2 based models: krea2_turbo_fp8_scaled (text-to-image), ' +
|
|
30
|
+
'krea2_identity_edit_v1_2 and krea2_identity_edit_sogni_v0_3_alpha (identity edit), and the ' +
|
|
31
|
+
'dark_beast_krea2_fp8 / dark_beast_krea2_identity_edit_v1_2 community variants.';
|
|
32
|
+
//# sourceMappingURL=loraGuidance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loraGuidance.js","sourceRoot":"","sources":["../../../src/tools/shared/loraGuidance.ts"],"names":[],"mappings":";;;AA4Ba,QAAA,4BAA4B,GACvC,0FAA0F;IAC1F,4FAA4F;IAC5F,+FAA+F;IAC/F,8FAA8F;IAC9F,oFAAoF;IACpF,0FAA0F;IAC1F,0FAA0F;IAC1F,4FAA4F;IAC5F,8FAA8F;IAC9F,8DAA8D;IAC9D,+DAA+D;IAC/D,yDAAyD,CAAC;AAG/C,QAAA,uBAAuB,GAClC,4FAA4F;IAC5F,0EAA0E;IAC1E,yFAAyF;IACzF,4FAA4F;IAC5F,gFAAgF;IAChF,uFAAuF;IACvF,6FAA6F;IAC7F,oFAAoF;IACpF,yFAAyF;IACzF,yFAAyF,CAAC;AAG/E,QAAA,sBAAsB,GACjC,4FAA4F;IAC5F,8FAA8F;IAC9F,uEAAuE,CAAC;AAG7D,QAAA,6BAA6B,GACxC,yFAAyF;IACzF,6FAA6F;IAC7F,gFAAgF,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { KREA2_LORA_CATALOG_REFERENCE, LORA_STACKING_GUIDANCE, LORA_STRENGTHS_GUIDANCE, } from '../../shared/loraGuidance.js';
|
|
1
2
|
import { LITERAL_PROMPT_OVERRIDE } from '../../../contracts/promptOverrideMarker.js';
|
|
2
3
|
import { ASPECT_RATIO_DESCRIPTION } from '../../../media/index.js';
|
|
3
4
|
export const definition = {
|
|
@@ -96,6 +97,22 @@ COMPOSITE GPT IMAGE 2 STORYBOARD SHEETS: When numberOfVariations=1 and the user
|
|
|
96
97
|
type: 'number',
|
|
97
98
|
description: 'Index of the primary image to use as the main reference. For follow-up edits when generated image results already exist, use the 0-based generated image result index; for example, editing the latest generated storyboard/image should use that generated result index so the model modifies the existing image instead of redrawing from uploads. When no generated image results exist, use sourceImageIndex=-1 to use the uploaded image references. The primary image and any additional uploaded images are passed as context images to guide generation.',
|
|
98
99
|
},
|
|
100
|
+
loras: {
|
|
101
|
+
type: 'array',
|
|
102
|
+
minItems: 1,
|
|
103
|
+
maxItems: 8,
|
|
104
|
+
items: { type: 'string', minLength: 1 },
|
|
105
|
+
description: `Ordered LoRA IDs for the edit. ONLY valid with model="krea-identity-edit" or model="dark-beast-krea2-identity-edit" — Qwen, Flux.2 and GPT Image 2 accept no LoRAs and the IDs are dropped. Use when the user asks to shift a trait the identity edit itself does not change, such as age, build, skin, lighting or grain, while the identity LoRA holds the likeness. ${LORA_STACKING_GUIDANCE}
|
|
106
|
+
|
|
107
|
+
${KREA2_LORA_CATALOG_REFERENCE}`,
|
|
108
|
+
},
|
|
109
|
+
loraStrengths: {
|
|
110
|
+
type: 'array',
|
|
111
|
+
minItems: 1,
|
|
112
|
+
maxItems: 8,
|
|
113
|
+
items: { type: 'number' },
|
|
114
|
+
description: LORA_STRENGTHS_GUIDANCE,
|
|
115
|
+
},
|
|
99
116
|
numberOfVariations: {
|
|
100
117
|
type: 'number',
|
|
101
118
|
description: 'Number of variations (1-16). Pass the user\'s exact requested count in one call when the outputs can share project settings. "4 variations" → numberOfVariations=4 in a single call. Use the exact requested count for reference-guided images that will feed a later video after the user picks one. Use separate calls only when the user explicitly wants independent projects, isolated approvals, or per-output settings that cannot share one project. For screenplay/storyboard batches, the prompt should contain one Dynamic Prompt branch with one full scene prompt per scene; do not set numberOfVariations=N with only scene 1\'s prompt. Use 1 unless the user explicitly asks for multiple. Default: 1.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/edit-image/definition.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,MAAM,CAAC,MAAM,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,YAAY;QAClB,WAAW,EACT,0/BAA0/B;QAC5/B,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;;EAErB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+oBAkEsnB;iBACtoB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE;wBACJ,aAAa;wBACb,gBAAgB;wBAChB,MAAM;wBACN,OAAO;wBACP,oBAAoB;wBACpB,gCAAgC;qBACjC;oBACD,WAAW,EACT,kwDAAkwD;iBACrwD;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,kiBAAkiB;iBACriB;gBACD,kBAAkB,EAAE;oBAClB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,wrBAAwrB;oBAC1rB,OAAO,EAAE,CAAC;oBACV,OAAO,EAAE,EAAE;iBACZ;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,y/BAAy/B;iBAC5/B;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,2/BAA2/B;iBAC9/B;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,GAAG,wBAAwB,imBAAimB;iBAC/nB;gBACD,eAAe,EAAE;oBACf,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC;oBAC/B,WAAW,EACT,4QAA4Q;iBAC/Q;gBACD,YAAY,EAAE;oBACZ,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;oBACpC,WAAW,EACT,uLAAuL;iBAC1L;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,2jBAA2jB;iBAC9jB;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/edit-image/definition.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,MAAM,CAAC,MAAM,UAAU,GAAm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MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,2/BAA2/B;iBAC9/B;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,GAAG,wBAAwB,imBAAimB;iBAC/nB;gBACD,eAAe,EAAE;oBACf,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC;oBAC/B,WAAW,EACT,4QAA4Q;iBAC/Q;gBACD,YAAY,EAAE;oBACZ,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;oBACpC,WAAW,EACT,uLAAuL;iBAC1L;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,2jBAA2jB;iBAC9jB;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { KREA2_LORA_CATALOG_REFERENCE, KREA2_LORA_MODEL_IDS_SENTENCE, LORA_STACKING_GUIDANCE, LORA_STRENGTHS_GUIDANCE, } from '../../shared/loraGuidance.js';
|
|
1
2
|
import { LITERAL_PROMPT_OVERRIDE } from '../../../contracts/promptOverrideMarker.js';
|
|
2
3
|
import { ASPECT_RATIO_DESCRIPTION } from '../../../media/index.js';
|
|
3
4
|
export const definition = {
|
|
@@ -88,14 +89,14 @@ VIDEO KEYFRAMES: When generating images intended as first+last frames for video
|
|
|
88
89
|
minItems: 1,
|
|
89
90
|
maxItems: 8,
|
|
90
91
|
items: { type: 'string', minLength: 1 },
|
|
91
|
-
description:
|
|
92
|
+
description: `Ordered LoRA IDs to apply to a compatible image model. Use only when the user explicitly requests LoRAs or asks for an effect one of these names directly. ${LORA_STACKING_GUIDANCE}\n\n${KREA2_LORA_MODEL_IDS_SENTENCE}\n\n${KREA2_LORA_CATALOG_REFERENCE}`,
|
|
92
93
|
},
|
|
93
94
|
loraStrengths: {
|
|
94
95
|
type: 'array',
|
|
95
96
|
minItems: 1,
|
|
96
97
|
maxItems: 8,
|
|
97
98
|
items: { type: 'number' },
|
|
98
|
-
description:
|
|
99
|
+
description: LORA_STRENGTHS_GUIDANCE,
|
|
99
100
|
},
|
|
100
101
|
gptImageQuality: {
|
|
101
102
|
type: 'string',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-image/definition.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,MAAM,CAAC,MAAM,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,gBAAgB;QACtB,WAAW,EACT,g0BAAg0B;QACl0B,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;;EAErB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;siBAsB6gB;iBAC7hB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE;wBACJ,aAAa;wBACb,SAAS,EAAE,SAAS,EAAE,cAAc,EAAE,kBAAkB,EAAE,oBAAoB;wBAC9E,kBAAkB,EAAE,YAAY,EAAE,eAAe,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS;wBACnF,WAAW,EAAE,qBAAqB;wBAClC,WAAW,EAAE,cAAc,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,eAAe;wBACvG,mBAAmB,EAAE,mBAAmB,EAAE,eAAe,EAAE,cAAc;wBACzE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB;qBACpD;oBACD,WAAW,EACT,soDAAsoD;iBACzoD;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,wmCAAwmC;iBAC3mC;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,ymCAAymC;iBAC5mC;gBACD,kBAAkB,EAAE;oBAClB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,s9CAAs9C;oBACx9C,OAAO,EAAE,CAAC;oBACV,OAAO,EAAE,EAAE;iBACZ;gBACD,cAAc,EAAE;oBACd,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,oJAAoJ;iBACvJ;gBACD,uBAAuB,EAAE;oBACvB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,gfAAgf;iBACnf;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,sLAAsL;iBACzL;gBACD,IAAI,EAAE;oBACJ,IAAI,EAAE,SAAS;oBACf,WAAW,EACT,uIAAuI;iBAC1I;gBACD,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,2KAA2K;iBAC9K;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,OAAO;oBACb,QAAQ,EAAE,CAAC;oBACX,QAAQ,EAAE,CAAC;oBACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;oBACvC,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-image/definition.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,MAAM,CAAC,MAAM,UAAU,GAAmB;IACxC,IAAI,EAA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AW,EACT,sLAAsL;iBACzL;gBACD,IAAI,EAAE;oBACJ,IAAI,EAAE,SAAS;oBACf,WAAW,EACT,uIAAuI;iBAC1I;gBACD,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,2KAA2K;iBAC9K;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,OAAO;oBACb,QAAQ,EAAE,CAAC;oBACX,QAAQ,EAAE,CAAC;oBACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;oBACvC,WAAW,EACT,8JAA8J,sBAAsB,OAAO,6BAA6B,OAAO,4BAA4B,EAAE;iBAChQ;gBACD,aAAa,EAAE;oBACb,IAAI,EAAE,OAAO;oBACb,QAAQ,EAAE,CAAC;oBACX,QAAQ,EAAE,CAAC;oBACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACzB,WAAW,EACT,uBAAuB;iBAC1B;gBACD,eAAe,EAAE;oBACf,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC;oBAC/B,WAAW,EACT,4QAA4Q;iBAC/Q;gBACD,YAAY,EAAE;oBACZ,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;oBACpC,WAAW,EACT,uLAAuL;iBAC1L;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,GAAG,wBAAwB,glBAAglB;iBAC9mB;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export const KREA2_LORA_CATALOG_REFERENCE = 'Bipolar sliders — each id names its POSITIVE direction, a negative strength applies the ' +
|
|
2
|
+
'opposite, and 0 disables it: krea2-detail-enhancer, krea2-scene-complexity, krea2-realism ' +
|
|
3
|
+
'(+ = photoreal), krea2-amateur, krea2-candid, krea2-zoom (+ = zoomed in), krea2-skin-detail, ' +
|
|
4
|
+
'krea2-wetness, krea2-age, krea2-height, krea2-weight, krea2-hourglass-figure, krea2-breast, ' +
|
|
5
|
+
'krea2-chest-firmness, krea2-nipple-projection, krea2-warm-light, krea2-afterlight ' +
|
|
6
|
+
'(+ = golden), krea2-skin-tone (+ = darker), krea2-purple-grainy (+ = grainy and muted). ' +
|
|
7
|
+
'Positive-only fine-tunes: krea2-realism-engine (photographic realism), krea2-bloomgirls ' +
|
|
8
|
+
'(polished influencer look), krea2-mystic-x (uncensored adult), krea2-aberrant (industrial ' +
|
|
9
|
+
'body horror), krea2-filter-bypass-2 and krea2-filter-bypass-3 (restore expressions, anatomy ' +
|
|
10
|
+
'and poses the base model flattens; try the 2-vector first). ' +
|
|
11
|
+
'Exact per-LoRA ranges, maturity flags and the full contract: ' +
|
|
12
|
+
'GET /v1/loras/comfy?modelId=<model>. Do not invent ids.';
|
|
13
|
+
export const LORA_STRENGTHS_GUIDANCE = 'Strength for each LoRA in loras, in the same order. Omitting the array uses 1.0 for every ' +
|
|
14
|
+
'LoRA, which is not each LoRA\'s catalog default — krea2-chest-firmness, ' +
|
|
15
|
+
'krea2-nipple-projection and krea2-height default to 0 (no effect) — so prefer explicit ' +
|
|
16
|
+
'values. Do NOT clamp to 0-1: most Krea 2 LoRAs are bipolar, so krea2-warm-light warms the ' +
|
|
17
|
+
'grade at 2 and cools it at -2. Usable bands vary per LoRA — roughly -2..5 for ' +
|
|
18
|
+
'krea2-detail-enhancer, -3..3 for krea2-warm-light, 3..9 for krea2-candid, 0.5..1 for ' +
|
|
19
|
+
'krea2-realism-engine, 1..2 for the filter-bypass pair. Scale the magnitude to how strongly ' +
|
|
20
|
+
'the user asked; the server clamps out-of-range values, and pushing past a LoRA\'s ' +
|
|
21
|
+
'recommended band costs image quality rather than adding effect. Preserve explicit user ' +
|
|
22
|
+
'values. Example: loras=["krea2-detail-enhancer","krea2-amateur"], loraStrengths=[3,-2].';
|
|
23
|
+
export const LORA_STACKING_GUIDANCE = 'Stack up to 8 in one request; order matters because the adapters apply in sequence and do ' +
|
|
24
|
+
'not commute. Keep this array positionally aligned with loraStrengths. The first render with ' +
|
|
25
|
+
'an uncached LoRA takes longer to start while the worker downloads it.';
|
|
26
|
+
export const KREA2_LORA_MODEL_IDS_SENTENCE = 'Accepted only by the five Krea 2 based models: krea2_turbo_fp8_scaled (text-to-image), ' +
|
|
27
|
+
'krea2_identity_edit_v1_2 and krea2_identity_edit_sogni_v0_3_alpha (identity edit), and the ' +
|
|
28
|
+
'dark_beast_krea2_fp8 / dark_beast_krea2_identity_edit_v1_2 community variants.';
|
|
29
|
+
//# sourceMappingURL=loraGuidance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loraGuidance.js","sourceRoot":"","sources":["../../../src/tools/shared/loraGuidance.ts"],"names":[],"mappings":"AA4BA,MAAM,CAAC,MAAM,4BAA4B,GACvC,0FAA0F;IAC1F,4FAA4F;IAC5F,+FAA+F;IAC/F,8FAA8F;IAC9F,oFAAoF;IACpF,0FAA0F;IAC1F,0FAA0F;IAC1F,4FAA4F;IAC5F,8FAA8F;IAC9F,8DAA8D;IAC9D,+DAA+D;IAC/D,yDAAyD,CAAC;AAG5D,MAAM,CAAC,MAAM,uBAAuB,GAClC,4FAA4F;IAC5F,0EAA0E;IAC1E,yFAAyF;IACzF,4FAA4F;IAC5F,gFAAgF;IAChF,uFAAuF;IACvF,6FAA6F;IAC7F,oFAAoF;IACpF,yFAAyF;IACzF,yFAAyF,CAAC;AAG5F,MAAM,CAAC,MAAM,sBAAsB,GACjC,4FAA4F;IAC5F,8FAA8F;IAC9F,uEAAuE,CAAC;AAG1E,MAAM,CAAC,MAAM,6BAA6B,GACxC,yFAAyF;IACzF,6FAA6F;IAC7F,gFAAgF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sogni-ai/sogni-intelligence-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.19.0",
|
|
4
4
|
"description": "Public Sogni Intelligence client — Node.js convenience wrapper for the Sogni SDK plus the public-safe subset of @sogni/creative-agent contracts (ContractRegistry, AssetManifest, RunRecord, tool envelopes). For agent builders, third-party integrations, and downstream SDKs.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
},
|
|
206
206
|
"homepage": "https://github.com/Sogni-AI/sogni-intelligence-client#readme",
|
|
207
207
|
"dependencies": {
|
|
208
|
-
"@sogni-ai/sogni-client": "5.
|
|
208
|
+
"@sogni-ai/sogni-client": "5.17.0",
|
|
209
209
|
"@sogni-ai/sogni-protocol": "1.0.0-alpha.22",
|
|
210
210
|
"sharp": "^0.35.3"
|
|
211
211
|
},
|