@rslsp1/fa-app-tools 2.0.87 → 3.0.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/{chunk-43TWCAG5.mjs → chunk-C5CGSPP3.mjs} +42 -3
- package/dist/{chunk-ZVHEHQ7A.mjs → chunk-TCJ3CMCK.mjs} +3239 -1263
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3871 -1893
- package/dist/index.mjs +9 -5
- package/dist/{storeContract-B2BDgvhN.d.mts → storeContract-5vApx6VA.d.mts} +16 -0
- package/dist/{storeContract-D7vBM8nv.d.ts → storeContract-DNggXiZl.d.ts} +16 -0
- package/dist/szenen-contract.d.mts +1 -1
- package/dist/szenen-contract.d.ts +1 -1
- package/dist/szenen-contract.js +42 -3
- package/dist/szenen-contract.mjs +1 -1
- package/dist/szenen.d.mts +308 -65
- package/dist/szenen.d.ts +308 -65
- package/dist/szenen.js +3157 -1128
- package/dist/szenen.mjs +28 -12
- package/package.json +1 -1
package/dist/szenen.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
CapabilityAnchorError,
|
|
7
7
|
DERIVABLE_TYPES,
|
|
8
8
|
ELEMENT_VERSION_SCHEMA_FILE,
|
|
9
|
-
|
|
9
|
+
FLOW_EXECUTION_PATH,
|
|
10
10
|
MAX_PROPOSAL_TITLE_LENGTH,
|
|
11
11
|
PROBE_VERSION_ID,
|
|
12
12
|
REFERENCE_FIELD,
|
|
@@ -32,9 +32,7 @@ import {
|
|
|
32
32
|
buildUserPrompt,
|
|
33
33
|
buildUserPrompt2,
|
|
34
34
|
callOptional,
|
|
35
|
-
callableImageModelFor,
|
|
36
35
|
capabilitiesOf,
|
|
37
|
-
capabilityForTargetModel,
|
|
38
36
|
capabilityGate,
|
|
39
37
|
capabilityReport,
|
|
40
38
|
catalogueFor,
|
|
@@ -43,6 +41,8 @@ import {
|
|
|
43
41
|
checkDerivationResponse,
|
|
44
42
|
checkDraftChainMeta,
|
|
45
43
|
checkElementType,
|
|
44
|
+
checkImageExecutionProfile,
|
|
45
|
+
checkImageModelParameters,
|
|
46
46
|
checkOptionalId,
|
|
47
47
|
checkParents,
|
|
48
48
|
checkPayloadPresent,
|
|
@@ -85,13 +85,14 @@ import {
|
|
|
85
85
|
deriveLineage,
|
|
86
86
|
describeTargetModelFailure,
|
|
87
87
|
draftRevisionOf,
|
|
88
|
+
executableImageModels,
|
|
89
|
+
findExecutableImageModel,
|
|
88
90
|
findImageBatch,
|
|
89
91
|
findImageGenerationOrder,
|
|
90
92
|
findPromptRun,
|
|
91
93
|
findSceneDerivation,
|
|
92
94
|
findSceneDerivationRecovery,
|
|
93
95
|
firstError,
|
|
94
|
-
flowImageProviderHasAccess,
|
|
95
96
|
formatSchemaErrors,
|
|
96
97
|
freezeDraftChain,
|
|
97
98
|
getSzenenSchemas,
|
|
@@ -123,6 +124,7 @@ import {
|
|
|
123
124
|
runPublishChecks,
|
|
124
125
|
runSceneDerivation,
|
|
125
126
|
scopeOfPath,
|
|
127
|
+
selectableTargetModels,
|
|
126
128
|
showChain,
|
|
127
129
|
simulatedAnswerFor,
|
|
128
130
|
typAusBytes,
|
|
@@ -133,14 +135,14 @@ import {
|
|
|
133
135
|
validateElementVersion,
|
|
134
136
|
validatePayload,
|
|
135
137
|
withReference
|
|
136
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-TCJ3CMCK.mjs";
|
|
137
139
|
import {
|
|
138
140
|
ContractViolation,
|
|
139
141
|
STYLE_PAYLOAD,
|
|
140
142
|
STYLE_PAYLOAD_V2,
|
|
141
143
|
elementStoreContractChecks,
|
|
142
144
|
runElementStoreContract
|
|
143
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-C5CGSPP3.mjs";
|
|
144
146
|
import {
|
|
145
147
|
VersionDagError,
|
|
146
148
|
buildVersionDag,
|
|
@@ -388,6 +390,10 @@ async function runStoreDifferential(left, right) {
|
|
|
388
390
|
}
|
|
389
391
|
|
|
390
392
|
// src/lib/szenen/memoryViewPort.ts
|
|
393
|
+
var MEMORY_IMAGE_CAPABILITY = {
|
|
394
|
+
environment_id: "memory",
|
|
395
|
+
execution_paths: ["memory"]
|
|
396
|
+
};
|
|
391
397
|
function ok(value) {
|
|
392
398
|
return { kind: "ok", value };
|
|
393
399
|
}
|
|
@@ -795,7 +801,7 @@ function createMemoryViewPort(options = {}) {
|
|
|
795
801
|
const bilder2 = Array.from({ length: input.imageCount }, (_, position) => ({
|
|
796
802
|
imageBase64: "AAAA",
|
|
797
803
|
seed: input.seeds?.[position],
|
|
798
|
-
model: `simulation:${input.
|
|
804
|
+
model: `simulation:${input.targetModelKey}`
|
|
799
805
|
}));
|
|
800
806
|
return { images: bilder2 };
|
|
801
807
|
}
|
|
@@ -845,7 +851,15 @@ function createMemoryViewPort(options = {}) {
|
|
|
845
851
|
events: { async appendEvent(type, payload) {
|
|
846
852
|
await imageGenerationEvents.appendEvent(type, payload);
|
|
847
853
|
} },
|
|
848
|
-
|
|
854
|
+
capability: options.imageCapability ?? MEMORY_IMAGE_CAPABILITY,
|
|
855
|
+
targetModels: {
|
|
856
|
+
async listExecutionTargetModels() {
|
|
857
|
+
if (options.imageTargetModels) return ok(options.imageTargetModels);
|
|
858
|
+
const wahl = await selectableTargetModels(elements, [null]);
|
|
859
|
+
if (wahl.kind !== "ok") return wahl;
|
|
860
|
+
return ok(wahl.value.selectable);
|
|
861
|
+
}
|
|
862
|
+
}
|
|
849
863
|
});
|
|
850
864
|
const port = {
|
|
851
865
|
elements,
|
|
@@ -1459,7 +1473,7 @@ export {
|
|
|
1459
1473
|
ContractViolation,
|
|
1460
1474
|
DERIVABLE_TYPES,
|
|
1461
1475
|
ELEMENT_VERSION_SCHEMA_FILE,
|
|
1462
|
-
|
|
1476
|
+
FLOW_EXECUTION_PATH,
|
|
1463
1477
|
PROBE_VERSION_ID,
|
|
1464
1478
|
REFERENCE_FIELD,
|
|
1465
1479
|
RULES_WITHOUT_CAPABILITY_EFFECT,
|
|
@@ -1487,9 +1501,7 @@ export {
|
|
|
1487
1501
|
buildUserPrompt2 as buildUserPrompt,
|
|
1488
1502
|
buildVersionDag,
|
|
1489
1503
|
callOptional,
|
|
1490
|
-
callableImageModelFor,
|
|
1491
1504
|
capabilitiesOf,
|
|
1492
|
-
capabilityForTargetModel,
|
|
1493
1505
|
capabilityGate,
|
|
1494
1506
|
capabilityReport,
|
|
1495
1507
|
catalogueFor,
|
|
@@ -1498,6 +1510,8 @@ export {
|
|
|
1498
1510
|
checkDerivationResponse,
|
|
1499
1511
|
checkDraftChainMeta,
|
|
1500
1512
|
checkElementType,
|
|
1513
|
+
checkImageExecutionProfile,
|
|
1514
|
+
checkImageModelParameters,
|
|
1501
1515
|
checkOptionalId,
|
|
1502
1516
|
checkParents,
|
|
1503
1517
|
checkPayloadPresent,
|
|
@@ -1549,6 +1563,8 @@ export {
|
|
|
1549
1563
|
differentialSteps,
|
|
1550
1564
|
draftRevisionOf,
|
|
1551
1565
|
elementStoreContractChecks,
|
|
1566
|
+
executableImageModels,
|
|
1567
|
+
findExecutableImageModel,
|
|
1552
1568
|
findImageBatch,
|
|
1553
1569
|
findImageGenerationOrder,
|
|
1554
1570
|
findPromptRun,
|
|
@@ -1556,7 +1572,6 @@ export {
|
|
|
1556
1572
|
findSceneDerivation,
|
|
1557
1573
|
findSceneDerivationRecovery,
|
|
1558
1574
|
firstError,
|
|
1559
|
-
flowImageProviderHasAccess,
|
|
1560
1575
|
formatSchemaErrors,
|
|
1561
1576
|
freezeDraftChain,
|
|
1562
1577
|
getSzenenSchemas,
|
|
@@ -1592,6 +1607,7 @@ export {
|
|
|
1592
1607
|
runSceneDerivation,
|
|
1593
1608
|
runStoreDifferential,
|
|
1594
1609
|
scopeOfPath,
|
|
1610
|
+
selectableTargetModels,
|
|
1595
1611
|
showChain,
|
|
1596
1612
|
simulatedAnswerFor,
|
|
1597
1613
|
totalModelCalls,
|