@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.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ac as SchemaError, Z as PublishFinding, Y as PublishCheckResult, aj as SzenenElementType, a2 as ReferenceResolver, ap as TargetModelResolution, I as ElementSnapshot, w as DerivationInputMode, M as ImageProvenance, s as DerivationFailure, n as DerivableType, N as NotDerivable, p as DerivationConflict, u as DerivationFollowUp, B as DraftChainMeta, q as DerivationDiagnostic, o as DerivationAssessment, h as ContextChainPort, a as AuthoritativeSzenenStore, ai as SzenenElementStore, v as DerivationImage, al as SzenenQueries, ah as SzenenCommands, ar as UnusableProposal } from './storeContract-
|
|
2
|
-
export { A as ALL_PUBLISH_RULES, C as CHAIN_EDGES, b as CHAIN_LINK_FIELDS, c as CatalogueEntry, d as ChainLinkField, e as ChainTarget, f as ChainVerdict, g as CompiledSchemas, i as ContractCheck, j as ContractCheckResult, k as ContractRunResult, l as ContractViolation, m as CreateElementInput, D as DERIVABLE_TYPES, r as DerivationEnvelope, t as DerivationFailureClass, x as DerivationPolicyPayload, y as DerivationProposal, z as DraftChainLink, E as DraftFork, F as DraftRecord, G as ElementMetadata, H as ElementRecord, J as ElementStoreContractHarness, K as ElementVersionValidation, L as FindingSeverity, O as OptionalCommand, P as PROBE_VERSION_ID, Q as ParentRelation, R as PreferredHeadOutcome, S as PreferredHeadResolution, T as PreferredHeadSelection, U as PreferredHeadSource, V as ProjectionState, W as ProjectionStatus, X as PublishCheckInput, _ as PublishRejected, $ as PublishVersionInput, a0 as PublishedVersion, a1 as REFERENCE_FIELD, a3 as ResolvePreferredHeadOptions, a4 as ResolvedVersion, a5 as ReviseMetadataInput, a6 as STYLE_PAYLOAD, a7 as STYLE_PAYLOAD_V2, a8 as SZENEN_ELEMENT_TYPES, a9 as SceneDerivationInput, aa as SceneDerivationOutcome, ab as SceneDerivationOutput, ad as SchemaValidationResult, ae as SetPreferredHeadInput, af as StoreAuthority, ag as SzenenCommandResult, ak as SzenenProjection, am as TargetModelCandidate, an as TargetModelQueries, ao as TargetModelQuery, aq as UnsupportedSchemaError, as as VersionDag, at as VersionDagError, au as VersionNode, av as VersionParentLink, aw as WriteConflict, ax as WriteDraftInput, ay as assessDerivationResponse, az as buildDerivationSystemInstruction, aA as buildDerivationUserPrompt, aB as buildVersionDag, aC as checkChainTargets, aD as checkDerivationResponse, aE as checkDraftChainMeta, aF as collectVersionRefs, aG as compileSchemas, aH as createSimulationSceneDerivationPort, aI as describeTargetModelFailure, aJ as elementStoreContractChecks, aK as formatSchemaErrors, aL as getSzenenSchemas, aM as isOk, aN as isProjectionCurrent, aO as linkFor, aP as parseDerivationResponse, aQ as preferredVersionId, aR as resolvePreferredHead, aS as resolveTargetModelOver, aT as resolverFromQueries, aU as runElementStoreContract, aV as runPublishChecks, aW as runSceneDerivation, aX as showChain, aY as validateAgainst, aZ as validateDerivationInput, a_ as validateElementVersion, a$ as validatePayload, b0 as withReference } from './storeContract-
|
|
1
|
+
import { ac as SchemaError, Z as PublishFinding, Y as PublishCheckResult, aj as SzenenElementType, a2 as ReferenceResolver, ap as TargetModelResolution, I as ElementSnapshot, w as DerivationInputMode, M as ImageProvenance, s as DerivationFailure, n as DerivableType, N as NotDerivable, p as DerivationConflict, u as DerivationFollowUp, B as DraftChainMeta, q as DerivationDiagnostic, o as DerivationAssessment, h as ContextChainPort, a as AuthoritativeSzenenStore, ai as SzenenElementStore, v as DerivationImage, al as SzenenQueries, ah as SzenenCommands, ar as UnusableProposal } from './storeContract-DNggXiZl.js';
|
|
2
|
+
export { A as ALL_PUBLISH_RULES, C as CHAIN_EDGES, b as CHAIN_LINK_FIELDS, c as CatalogueEntry, d as ChainLinkField, e as ChainTarget, f as ChainVerdict, g as CompiledSchemas, i as ContractCheck, j as ContractCheckResult, k as ContractRunResult, l as ContractViolation, m as CreateElementInput, D as DERIVABLE_TYPES, r as DerivationEnvelope, t as DerivationFailureClass, x as DerivationPolicyPayload, y as DerivationProposal, z as DraftChainLink, E as DraftFork, F as DraftRecord, G as ElementMetadata, H as ElementRecord, J as ElementStoreContractHarness, K as ElementVersionValidation, L as FindingSeverity, O as OptionalCommand, P as PROBE_VERSION_ID, Q as ParentRelation, R as PreferredHeadOutcome, S as PreferredHeadResolution, T as PreferredHeadSelection, U as PreferredHeadSource, V as ProjectionState, W as ProjectionStatus, X as PublishCheckInput, _ as PublishRejected, $ as PublishVersionInput, a0 as PublishedVersion, a1 as REFERENCE_FIELD, a3 as ResolvePreferredHeadOptions, a4 as ResolvedVersion, a5 as ReviseMetadataInput, a6 as STYLE_PAYLOAD, a7 as STYLE_PAYLOAD_V2, a8 as SZENEN_ELEMENT_TYPES, a9 as SceneDerivationInput, aa as SceneDerivationOutcome, ab as SceneDerivationOutput, ad as SchemaValidationResult, ae as SetPreferredHeadInput, af as StoreAuthority, ag as SzenenCommandResult, ak as SzenenProjection, am as TargetModelCandidate, an as TargetModelQueries, ao as TargetModelQuery, aq as UnsupportedSchemaError, as as VersionDag, at as VersionDagError, au as VersionNode, av as VersionParentLink, aw as WriteConflict, ax as WriteDraftInput, ay as assessDerivationResponse, az as buildDerivationSystemInstruction, aA as buildDerivationUserPrompt, aB as buildVersionDag, aC as checkChainTargets, aD as checkDerivationResponse, aE as checkDraftChainMeta, aF as collectVersionRefs, aG as compileSchemas, aH as createSimulationSceneDerivationPort, aI as describeTargetModelFailure, aJ as elementStoreContractChecks, aK as formatSchemaErrors, aL as getSzenenSchemas, aM as isOk, aN as isProjectionCurrent, aO as linkFor, aP as parseDerivationResponse, aQ as preferredVersionId, aR as resolvePreferredHead, aS as resolveTargetModelOver, aT as resolverFromQueries, aU as runElementStoreContract, aV as runPublishChecks, aW as runSceneDerivation, aX as showChain, aY as validateAgainst, aZ as validateDerivationInput, a_ as validateElementVersion, a$ as validatePayload, b0 as withReference } from './storeContract-DNggXiZl.js';
|
|
3
3
|
import { T as TextGenerationPort, Q as QueryResult, C as CommandResult } from './contracts-DdYOMBl9.js';
|
|
4
4
|
export { S as SIMULATION_PROVIDER, c as TextGenerationRequest, d as TextGenerationResult, g as createFakeTextGenerationPort, h as createSimulationTextGenerationPort, s as simulatedAnswerFor } from './contracts-DdYOMBl9.js';
|
|
5
5
|
import { g as HFStateSnapshot, F as FlowGenerateText } from './hfEventTypes-C_PX6RFR.js';
|
|
@@ -1391,6 +1391,49 @@ interface ImageGenerationStartedPayload {
|
|
|
1391
1391
|
aspect_ratio?: string;
|
|
1392
1392
|
seeds?: readonly number[];
|
|
1393
1393
|
callable_model_id: string;
|
|
1394
|
+
/**
|
|
1395
|
+
* Der Anbieter des ausgefuehrten Modells (D-132) — `google`, nicht `flow`.
|
|
1396
|
+
* Flow ist eine Umgebung, kein Anbieter.
|
|
1397
|
+
*
|
|
1398
|
+
* Optional, und das ist keine Nachlaessigkeit: Auftraege aus der Zeit vor
|
|
1399
|
+
* D-128 tragen das Feld nicht, und die Projektion darf es fuer sie nicht
|
|
1400
|
+
* erfinden (D-107).
|
|
1401
|
+
*/
|
|
1402
|
+
provider?: string;
|
|
1403
|
+
/** Das Zielmodell, mit dem die Pixel erzeugt wurden (D-131). */
|
|
1404
|
+
execution_target_model_key?: string;
|
|
1405
|
+
/** Dessen wirksame Version, sofern bekannt — nichts wird erfunden. */
|
|
1406
|
+
execution_target_model_version_id?: string;
|
|
1407
|
+
/** Das Ausfuehrungsprofil dieses Zielmodells, das gegolten hat. */
|
|
1408
|
+
execution_profile_id?: string;
|
|
1409
|
+
/** Die App-Umgebung, in der ausgefuehrt wurde (D-132). */
|
|
1410
|
+
environment_id?: string;
|
|
1411
|
+
/** Der technische Aufrufweg des Hosts. */
|
|
1412
|
+
execution_path?: string;
|
|
1413
|
+
/**
|
|
1414
|
+
* Exakt der Modellwert, mit dem der Aufrufweg gestartet wurde. Fuehrt
|
|
1415
|
+
* denselben Wert wie `callable_model_id`; letzteres bleibt, weil
|
|
1416
|
+
* Altauftraege und der Server es tragen.
|
|
1417
|
+
*/
|
|
1418
|
+
execution_model_id?: string;
|
|
1419
|
+
/**
|
|
1420
|
+
* Das Zielmodell, fuer das der Prompt formuliert wurde, oder `null`.
|
|
1421
|
+
* Zusammen mit `target_model_matched` bleibt die Abweichung
|
|
1422
|
+
* „optimiert fuer X, ausgefuehrt mit Y" dauerhaft nachvollziehbar (D-131).
|
|
1423
|
+
*/
|
|
1424
|
+
prompt_target_model_key?: string | null;
|
|
1425
|
+
/**
|
|
1426
|
+
* Ob das ausgefuehrte Zielmodell das Prompt-Zielmodell war. Getrennt vom
|
|
1427
|
+
* Schluessel, damit ein Leser die Abweichung nicht aus zwei verschiedenen
|
|
1428
|
+
* Kennungen erraten muss. Fehlt das Feld, ist **keine** Aussage getroffen.
|
|
1429
|
+
*/
|
|
1430
|
+
target_model_matched?: boolean;
|
|
1431
|
+
/**
|
|
1432
|
+
* Ob der negative Promptkanal wirklich mitgelaufen ist (D-130 §9) — nicht,
|
|
1433
|
+
* ob der Lauf einen traegt. Fehlt das Feld, kennt der Auftrag die Frage
|
|
1434
|
+
* nicht.
|
|
1435
|
+
*/
|
|
1436
|
+
negative_prompt_transmitted?: boolean;
|
|
1394
1437
|
};
|
|
1395
1438
|
created_at: string;
|
|
1396
1439
|
}
|
|
@@ -1649,45 +1692,132 @@ declare function differentialSteps(): readonly DifferentialStep[];
|
|
|
1649
1692
|
*/
|
|
1650
1693
|
declare function runStoreDifferential(left: () => Promise<SzenenElementStore> | SzenenElementStore, right: () => Promise<SzenenElementStore> | SzenenElementStore): Promise<DifferentialResult>;
|
|
1651
1694
|
|
|
1652
|
-
/**
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1695
|
+
/**
|
|
1696
|
+
* Ein Ausführungsprofil eines Zielmodells (D-130) — wie ein konkreter Host
|
|
1697
|
+
* dieses Modell wirklich aufruft.
|
|
1698
|
+
*/
|
|
1699
|
+
interface ImageExecutionProfile {
|
|
1700
|
+
/** Stabile Kennung **innerhalb** dieses Zielmodells. */
|
|
1701
|
+
profile_id: string;
|
|
1702
|
+
/** Auswählbar, oder bewusst abgeschaltet. */
|
|
1703
|
+
enabled: boolean;
|
|
1704
|
+
/** Umgebungen, in denen dieses Profil gilt. */
|
|
1705
|
+
environments: readonly string[];
|
|
1706
|
+
/** Der technische Aufrufweg, den der Host besitzen muss. */
|
|
1707
|
+
execution_path: string;
|
|
1708
|
+
/**
|
|
1709
|
+
* Exakt der Modellwert, den der vorhandene Aufrufweg als Eingabe erwartet
|
|
1710
|
+
* (D-132) — nicht zwingend die offizielle Endpunkt-ID des Anbieters. Was
|
|
1711
|
+
* hier steht, geht unverändert an den Adapter und in die Provenienz.
|
|
1712
|
+
*/
|
|
1713
|
+
execution_model_id: string;
|
|
1656
1714
|
max_images: number;
|
|
1715
|
+
/** Vom konkreten Pfad übertragene Seitenverhältnisse. Darf leer sein. */
|
|
1657
1716
|
aspect_ratios: readonly string[];
|
|
1658
|
-
|
|
1717
|
+
/** Ob ein Seed über diesen Pfad wirklich übertragen wird. */
|
|
1718
|
+
accepts_seed: boolean;
|
|
1719
|
+
/** Ob ein separater negativer Prompt wirklich übertragen wird. */
|
|
1720
|
+
accepts_negative_prompt: boolean;
|
|
1659
1721
|
}
|
|
1660
|
-
/**
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1722
|
+
/**
|
|
1723
|
+
* Was **dieser Host** kann (D-132).
|
|
1724
|
+
*
|
|
1725
|
+
* Bewusst nur zwei Angaben: in welcher Umgebung er läuft und welche Aufrufwege
|
|
1726
|
+
* er besitzt. Keine Modellliste — die kommt aus den Zielmodellen.
|
|
1727
|
+
*/
|
|
1728
|
+
interface ImageHostCapability {
|
|
1729
|
+
environment_id: string;
|
|
1730
|
+
execution_paths: readonly string[];
|
|
1731
|
+
}
|
|
1732
|
+
/** Ein Zielmodell, so wie die Auswahl es braucht. */
|
|
1733
|
+
interface ExecutionTargetModel {
|
|
1734
|
+
key: string;
|
|
1735
|
+
title: string;
|
|
1736
|
+
provider: string | null;
|
|
1737
|
+
/** Die wirksame Version, aus der die Profile stammen — für die Provenienz. */
|
|
1738
|
+
versionId?: string;
|
|
1739
|
+
/** Roh aus der Payload; wird hier gegen den Vertrag geprüft. */
|
|
1740
|
+
executionProfiles: readonly unknown[];
|
|
1741
|
+
}
|
|
1742
|
+
/** Eine wirklich ausführbare Kombination aus Zielmodell und Profil. */
|
|
1743
|
+
interface ExecutableImageModel {
|
|
1744
|
+
/** Kennung der Auswahl: Zielmodell **und** Profil, weil beides zählt. */
|
|
1745
|
+
selection_id: string;
|
|
1665
1746
|
target_model_key: string;
|
|
1747
|
+
target_model_version_id?: string;
|
|
1748
|
+
display_name: string;
|
|
1666
1749
|
provider: string;
|
|
1667
|
-
|
|
1750
|
+
profile_id: string;
|
|
1751
|
+
environment_id: string;
|
|
1752
|
+
execution_path: string;
|
|
1753
|
+
execution_model_id: string;
|
|
1668
1754
|
max_images: number;
|
|
1669
1755
|
aspect_ratios: readonly string[];
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
};
|
|
1756
|
+
accepts_seed: boolean;
|
|
1757
|
+
accepts_negative_prompt: boolean;
|
|
1758
|
+
/** Ob dieses Zielmodell das ist, für das der Prompt optimiert wurde (D-131). */
|
|
1759
|
+
is_prompt_target: boolean;
|
|
1760
|
+
}
|
|
1676
1761
|
/**
|
|
1677
|
-
*
|
|
1678
|
-
*
|
|
1679
|
-
*
|
|
1762
|
+
* Die Modellwahl für einen Lauf in einer konkreten Umgebung.
|
|
1763
|
+
*
|
|
1764
|
+
* `models` ist leer, wenn kein Zielmodell dieser Umgebung ein aktives,
|
|
1765
|
+
* vom Host ausführbares Profil trägt. Das ist kein Fehler und sperrt den Lauf
|
|
1766
|
+
* nicht — der externe Importpfad bleibt daneben stehen (D-104.5/D-133).
|
|
1680
1767
|
*/
|
|
1681
|
-
|
|
1768
|
+
interface ImageModelChoice {
|
|
1769
|
+
/** Das Zielmodell, für das der Prompt erzeugt wurde, oder `null` (D-103). */
|
|
1770
|
+
prompt_target_model_key: string | null;
|
|
1771
|
+
models: readonly ExecutableImageModel[];
|
|
1772
|
+
/**
|
|
1773
|
+
* Die Vorauswahl: das Profil des Prompt-Zielmodells, sonst das erste
|
|
1774
|
+
* ausführbare. `null` bei leerer Liste. Komfort, keine Festlegung (D-131).
|
|
1775
|
+
*/
|
|
1776
|
+
default_selection_id: string | null;
|
|
1777
|
+
/** Nur gesetzt, wenn `models` leer ist: warum es hier nichts zu wählen gibt. */
|
|
1778
|
+
reason?: string;
|
|
1779
|
+
/**
|
|
1780
|
+
* Profile, die den Vertrag verletzen — als Klartext, je Zielmodell.
|
|
1781
|
+
*
|
|
1782
|
+
* Sie werden **nicht** angeboten und **nicht** stillschweigend weggelassen:
|
|
1783
|
+
* Ein falsch gepflegtes Profil soll sichtbar sein, sonst sucht der Autor die
|
|
1784
|
+
* Ursache im Host (Regel 4/11).
|
|
1785
|
+
*/
|
|
1786
|
+
invalid_profiles: readonly string[];
|
|
1787
|
+
}
|
|
1788
|
+
/**
|
|
1789
|
+
* Prüft ein rohes Profil gegen den Vertrag und liefert die Befunde als Klartext.
|
|
1790
|
+
*
|
|
1791
|
+
* Exportiert, weil der Zielmodell-Editor dieselbe Prüfung vor dem Speichern
|
|
1792
|
+
* zeigen soll — eine Regel, eine Stelle.
|
|
1793
|
+
*/
|
|
1794
|
+
declare function checkImageExecutionProfile(profile: unknown): readonly string[];
|
|
1795
|
+
/**
|
|
1796
|
+
* Alle Bildmodelle, die dieser Host für diesen Lauf wirklich ausführen kann.
|
|
1797
|
+
*
|
|
1798
|
+
* Fünf Bedingungen, alle notwendig (D-130/D-132): Das Profil ist gültig, es ist
|
|
1799
|
+
* aktiviert, es gilt für die Umgebung dieses Hosts, der Host besitzt den
|
|
1800
|
+
* genannten Aufrufweg — und das Zielmodell trägt überhaupt ein Profil.
|
|
1801
|
+
*/
|
|
1802
|
+
declare function executableImageModels(promptTargetModelKey: string | null, targets: readonly ExecutionTargetModel[], capability: ImageHostCapability): ImageModelChoice;
|
|
1803
|
+
/** Eine Kombination aus einer Wahl, exakt über Zielmodell und Profil. */
|
|
1804
|
+
declare function findExecutableImageModel(choice: ImageModelChoice, targetModelKey: string, profileId: string): ExecutableImageModel | null;
|
|
1805
|
+
/** Die Parameter eines Bildauftrags, wie sie gegen ein Profil geprüft werden. */
|
|
1806
|
+
interface ImageModelParameters {
|
|
1807
|
+
imageCount: number;
|
|
1808
|
+
aspectRatio?: string;
|
|
1809
|
+
seeds?: readonly number[];
|
|
1810
|
+
}
|
|
1682
1811
|
/**
|
|
1683
|
-
*
|
|
1684
|
-
*
|
|
1812
|
+
* Prüft Auftragsparameter gegen das **tatsächlich gewählte** Ausführungsprofil
|
|
1813
|
+
* (D-131) und liefert die Befunde als Klartext.
|
|
1685
1814
|
*
|
|
1686
|
-
*
|
|
1687
|
-
*
|
|
1688
|
-
*
|
|
1815
|
+
* Kein stilles Kürzen, kein Umrechnen: Ein Seitenverhältnis, das dieser
|
|
1816
|
+
* Aufrufweg nicht überträgt, wird abgelehnt und nicht auf das nächstliegende
|
|
1817
|
+
* gerundet (Regel 4). Die Meldungen nennen den konkreten Wert und die zulässige
|
|
1818
|
+
* Menge (Regel 11).
|
|
1689
1819
|
*/
|
|
1690
|
-
declare function
|
|
1820
|
+
declare function checkImageModelParameters(model: ExecutableImageModel, parameters: ImageModelParameters): readonly string[];
|
|
1691
1821
|
|
|
1692
1822
|
/** Ein tatsächlich vom Provider geliefertes Bild. */
|
|
1693
1823
|
interface GeneratedImage {
|
|
@@ -1700,7 +1830,18 @@ interface GeneratedImage {
|
|
|
1700
1830
|
}
|
|
1701
1831
|
/** Die Eingabe an den tatsächlichen Provideraufruf — abgeleitet aus dem eingefrorenen Lauf. */
|
|
1702
1832
|
interface ImageProviderInput {
|
|
1703
|
-
|
|
1833
|
+
/** Das Zielmodell, mit dem ausgeführt wird — die fachliche Kennung (D-131). */
|
|
1834
|
+
targetModelKey: string;
|
|
1835
|
+
/** Der Aufrufweg aus dem gewählten Profil; der Adapter prüft, ob er ihn hat. */
|
|
1836
|
+
executionPath: string;
|
|
1837
|
+
/**
|
|
1838
|
+
* Exakt der Modellwert, den dieser Aufrufweg erwartet — aus **demselben**
|
|
1839
|
+
* Profil (D-132). Der Adapter gibt ihn unverändert weiter und hält keine
|
|
1840
|
+
* eigene Mapping-Tabelle.
|
|
1841
|
+
*/
|
|
1842
|
+
executionModelId: string;
|
|
1843
|
+
/** Die Umgebung, in der ausgeführt wird (D-132). */
|
|
1844
|
+
environmentId: string;
|
|
1704
1845
|
provider: string;
|
|
1705
1846
|
positivePrompt: string;
|
|
1706
1847
|
negativePrompt?: string | null;
|
|
@@ -1734,6 +1875,16 @@ interface ImageGenerationBatchPersistence {
|
|
|
1734
1875
|
images: readonly GeneratedImage[];
|
|
1735
1876
|
}): Promise<CommandResult<PromptImageBatch>>;
|
|
1736
1877
|
}
|
|
1878
|
+
/**
|
|
1879
|
+
* Die Zielmodelle dieses Kontexts, wie der Port sie braucht (D-130).
|
|
1880
|
+
*
|
|
1881
|
+
* Der Host liefert sie — beim React- und Flow-Host über dieselbe
|
|
1882
|
+
* `selectableTargetModels()`-Auskunft, die auch der Editor benutzt. Damit gibt
|
|
1883
|
+
* es keine zweite Wahrheit darüber, welche Zielmodelle sichtbar sind.
|
|
1884
|
+
*/
|
|
1885
|
+
interface ImageExecutionTargetModelReader {
|
|
1886
|
+
listExecutionTargetModels(): Promise<QueryResult<readonly ExecutionTargetModel[]>>;
|
|
1887
|
+
}
|
|
1737
1888
|
/** Was der Auftragskanal (D-119) braucht — lesen und anhängen, wie `RunEventChannel`. */
|
|
1738
1889
|
interface ImageGenerationEventChannel {
|
|
1739
1890
|
appendEvent(type: string, payload: unknown): Promise<void>;
|
|
@@ -1742,6 +1893,18 @@ interface StartImageGenerationInput {
|
|
|
1742
1893
|
runId: string;
|
|
1743
1894
|
/** Vom Aufrufer VOR dem Aufruf gebildet (D-113) — deterministisch mit dem Lauf verknüpft. */
|
|
1744
1895
|
generationBatchId: string;
|
|
1896
|
+
/**
|
|
1897
|
+
* Das Zielmodell, mit dem tatsächlich ausgeführt wird, und sein Profil —
|
|
1898
|
+
* **beides verpflichtend** und explizit (D-131).
|
|
1899
|
+
*
|
|
1900
|
+
* Bewusst kein optionaler Parameter mit Rückfall auf das Prompt-Zielmodell:
|
|
1901
|
+
* Ein bezahlter Bildaufruf, dessen Modell nicht in der Eingabe steht, wäre
|
|
1902
|
+
* nach dem Auftrag nicht mehr von einer Vorauswahl zu unterscheiden. Die
|
|
1903
|
+
* Vorauswahl trifft die Ansicht sichtbar aus
|
|
1904
|
+
* `ImageModelChoice.default_selection_id`, nicht der Port stillschweigend.
|
|
1905
|
+
*/
|
|
1906
|
+
executionTargetModelKey: string;
|
|
1907
|
+
executionProfileId: string;
|
|
1745
1908
|
imageCount: number;
|
|
1746
1909
|
aspectRatio?: string;
|
|
1747
1910
|
/** Je Bild, wenn das Modell Seeds kennt. */
|
|
@@ -1768,7 +1931,14 @@ type ImageGenerationResult = {
|
|
|
1768
1931
|
message: string;
|
|
1769
1932
|
};
|
|
1770
1933
|
interface SzenenImageGenerationPort {
|
|
1771
|
-
|
|
1934
|
+
/**
|
|
1935
|
+
* Alle Modelle, die **diese Umgebung** für diesen Lauf ausführen kann, mit
|
|
1936
|
+
* Vorauswahl und der sichtbaren Optimierungsabsicht (D-128/D-129).
|
|
1937
|
+
*
|
|
1938
|
+
* Die frühere `capabilityForRun()` ist entfallen: Sie beantwortete die
|
|
1939
|
+
* 1:1-Frage aus dem Domänenkatalog, den es nicht mehr gibt.
|
|
1940
|
+
*/
|
|
1941
|
+
imageModelChoiceForRun(runId: string): Promise<QueryResult<ImageModelChoice>>;
|
|
1772
1942
|
startFromPromptRun(input: StartImageGenerationInput): Promise<ImageGenerationResult>;
|
|
1773
1943
|
}
|
|
1774
1944
|
interface CreateImageGenerationPortOptions {
|
|
@@ -1776,8 +1946,14 @@ interface CreateImageGenerationPortOptions {
|
|
|
1776
1946
|
provider: ImageGenerationProviderPort;
|
|
1777
1947
|
batches: ImageGenerationBatchPersistence;
|
|
1778
1948
|
events: ImageGenerationEventChannel;
|
|
1779
|
-
/**
|
|
1780
|
-
|
|
1949
|
+
/**
|
|
1950
|
+
* Die Zielmodelle, die in diesem Kontext sichtbar sind (D-130). Ihre
|
|
1951
|
+
* `execution_profiles` sind die einzige Quelle ausführbarer Bildmodelle —
|
|
1952
|
+
* der Port konstruiert keines und errät keine Verfügbarkeit.
|
|
1953
|
+
*/
|
|
1954
|
+
targetModels: ImageExecutionTargetModelReader;
|
|
1955
|
+
/** Was dieser Host wirklich kann: Umgebung und Aufrufwege (D-132). */
|
|
1956
|
+
capability: ImageHostCapability;
|
|
1781
1957
|
now?: () => Date;
|
|
1782
1958
|
}
|
|
1783
1959
|
/** Der gemeinsame Bildgenerierungs-Port. */
|
|
@@ -2554,7 +2730,14 @@ interface CreateMemoryViewPortOptions {
|
|
|
2554
2730
|
/** Simulierter Provideraufruf — Voreinstellung liefert `imageCount` Bilder. */
|
|
2555
2731
|
imageProvider?: ImageGenerationProviderPort;
|
|
2556
2732
|
/** Ob der simulierte Host Zugang zum katalogisierten Zielmodell hat. Default: immer. */
|
|
2557
|
-
|
|
2733
|
+
imageCapability?: ImageHostCapability;
|
|
2734
|
+
/**
|
|
2735
|
+
* Zielmodelle fuer die Bildauswahl. Vorgabe: die `target_model`-Elemente des
|
|
2736
|
+
* Bestands ueber `selectableTargetModels()` — derselbe Weg wie im echten
|
|
2737
|
+
* Host. Direkt setzbar, damit ein Test eine Auswahl stellen kann, ohne
|
|
2738
|
+
* Elemente anzulegen.
|
|
2739
|
+
*/
|
|
2740
|
+
imageTargetModels?: readonly ExecutionTargetModel[];
|
|
2558
2741
|
}
|
|
2559
2742
|
declare function createMemoryViewPort(options?: CreateMemoryViewPortOptions): SzenenViewPort;
|
|
2560
2743
|
|
|
@@ -2569,33 +2752,8 @@ type FlowGenerateImage = (params: FlowGenerateImageParams) => Promise<{
|
|
|
2569
2752
|
base64: string;
|
|
2570
2753
|
mediaId?: string;
|
|
2571
2754
|
}>;
|
|
2572
|
-
/**
|
|
2573
|
-
|
|
2574
|
-
* Flow-Display-Namen (`howto-flow-sdk.md` — bekannt sind "🍌 Nano Banana Pro",
|
|
2575
|
-
* "🍌 Nano Banana 2", "Imagen 4").
|
|
2576
|
-
*
|
|
2577
|
-
* Der genaue String für "Nano Banana Pro" ist real belegt, nicht nur
|
|
2578
|
-
* dokumentiert: `AvatarArchitectApp.tsx`s produktive Labs-Generierung
|
|
2579
|
-
* verwendet `'🍌 Nano Banana Pro'` als Vorgabewert und reicht ihn
|
|
2580
|
-
* unverändert als `modelDisplayName` an `Flow.generate.image()` durch
|
|
2581
|
-
* (`aiHelpers.ts#buildImageGenerationOptions`).
|
|
2582
|
-
*
|
|
2583
|
-
* "Imagen 4" bleibt katalogisiert, obwohl es im Modellwähler des
|
|
2584
|
-
* Flow-„Generieren"-Tabs am 2026-08-17 ausgegraut erschien (Screenshot,
|
|
2585
|
-
* nur "Nano Banana Pro"/"Nano Banana 2" wählbar) — das kann kontoabhängig
|
|
2586
|
-
* sein. Ein Aufruf schlägt dann mit der echten Flow-Fehlermeldung fehl,
|
|
2587
|
-
* statt einen stillen Fallback zu erzeugen (D-6.9.2-3).
|
|
2588
|
-
* `imagen-3.0-generate-001` bleibt bewusst draußen: Dafür ist kein
|
|
2589
|
-
* Flow-Display-Name dokumentiert oder belegt.
|
|
2590
|
-
*/
|
|
2591
|
-
declare const FLOW_MODEL_DISPLAY_NAMES: Readonly<Record<string, string>>;
|
|
2592
|
-
/**
|
|
2593
|
-
* Ob dieser Host tatsächlich Zugang zu einem katalogisierten Bildmodell hat
|
|
2594
|
-
* (D-115) — die Vorgabe für `hasAccess` in `createFlowSzenenViewPort()`.
|
|
2595
|
-
*/
|
|
2596
|
-
declare function flowImageProviderHasAccess(model: {
|
|
2597
|
-
callable_model_id: string;
|
|
2598
|
-
}): boolean;
|
|
2755
|
+
/** Der Aufrufweg, den dieser Adapter bedient (D-132). */
|
|
2756
|
+
declare const FLOW_EXECUTION_PATH = "google_flow";
|
|
2599
2757
|
/**
|
|
2600
2758
|
* Ein Provideraufruf je Bild — dieselbe Begründung wie beim React-Adapter
|
|
2601
2759
|
* (`reactImageProvider.ts`): Das SDK kennt keinen Mehrbild-Parameter
|
|
@@ -2643,10 +2801,28 @@ interface CreateFlowSzenenViewPortOptions {
|
|
|
2643
2801
|
/** Ein fertiger Bildprovider statt des Flow-SDK — für Tests. */
|
|
2644
2802
|
imageProvider?: ImageGenerationProviderPort;
|
|
2645
2803
|
/**
|
|
2646
|
-
*
|
|
2647
|
-
*
|
|
2804
|
+
* Was dieser Host beim Bilderzeugen wirklich kann (D-132): seine Umgebung
|
|
2805
|
+
* und seine Aufrufwege. **Keine** Modellliste — welche Modelle ausführbar
|
|
2806
|
+
* sind, steht in den `execution_profiles` der Zielmodelle (D-130).
|
|
2807
|
+
*
|
|
2808
|
+
* Vorgabe: `flow` mit dem einen Weg, den `createFlowImageProvider()` bedient.
|
|
2809
|
+
*/
|
|
2810
|
+
imageCapability?: ImageHostCapability;
|
|
2811
|
+
/**
|
|
2812
|
+
* Der Arbeitskontext, über dessen Vererbungskette die Zielmodelle sichtbar
|
|
2813
|
+
* werden — als **Getter**, nicht als Wert.
|
|
2814
|
+
*
|
|
2815
|
+
* Der Grund ist der Lebenszyklus: Der React-Host baut seinen Port je Kontext
|
|
2816
|
+
* neu (`SzenenTab.tsx`), der Flow-Host hält einen Port über die ganze
|
|
2817
|
+
* Sitzung. Ein Wert hier würde den Kontext einfrieren, und ein in einem
|
|
2818
|
+
* Kontext veröffentlichtes Zielmodell wäre im Bildmodell-Wähler unsichtbar,
|
|
2819
|
+
* obwohl der Editor es zeigt. Ein Getter liest ihn bei jeder Auskunft frisch,
|
|
2820
|
+
* ohne den HF-Elementspeicher samt seiner Materialisierung (D-125) bei jedem
|
|
2821
|
+
* Kontextwechsel wegzuwerfen.
|
|
2822
|
+
*
|
|
2823
|
+
* Vorgabe: der globale Kontext.
|
|
2648
2824
|
*/
|
|
2649
|
-
|
|
2825
|
+
imageContextId?: () => string | null;
|
|
2650
2826
|
/** Kennung je abgelegtem Batch-Bild. Ersetzbar, damit ein Test nicht würfelt. */
|
|
2651
2827
|
newBatchImageId?: (generationBatchId: string, position: number) => string;
|
|
2652
2828
|
}
|
|
@@ -2915,6 +3091,73 @@ interface CreateClientDerivationPortOptions {
|
|
|
2915
3091
|
}
|
|
2916
3092
|
declare function createClientDerivationPort(options: CreateClientDerivationPortOptions): SzenenDerivationPort;
|
|
2917
3093
|
|
|
3094
|
+
/** Der Lesezugriff, den diese Datei braucht — mehr nicht. */
|
|
3095
|
+
type VisibilityQueries = Pick<SzenenQueries, 'listElements' | 'getElement'>;
|
|
3096
|
+
/** Ein wählbares Zielmodell — der fachliche Key und woher er kommt. */
|
|
3097
|
+
interface SelectableTargetModel {
|
|
3098
|
+
/** Der Wert, der gespeichert wird: `payload.key` (6.10 §6.4). */
|
|
3099
|
+
key: string;
|
|
3100
|
+
title: string;
|
|
3101
|
+
elementId: string;
|
|
3102
|
+
/** Die wirksame Version, aus der der Key stammt. Anzeige, nicht Speicherwert. */
|
|
3103
|
+
versionId: string;
|
|
3104
|
+
provider: string | null;
|
|
3105
|
+
/**
|
|
3106
|
+
* Die Ausfuehrungsprofile dieser wirksamen Version (D-130), roh aus der
|
|
3107
|
+
* Payload. Leer, wenn das Zielmodell keines traegt — der Normalfall fuer ein
|
|
3108
|
+
* reines Prompt-Ziel (D-133). Die Auswahl der wirklich ausfuehrbaren
|
|
3109
|
+
* Kombinationen trifft `executableImageModels()`, nicht diese Datei.
|
|
3110
|
+
*/
|
|
3111
|
+
executionProfiles: readonly unknown[];
|
|
3112
|
+
/** Glied der Kette, auf dem der Treffer lag. `0` = Arbeitskontext. */
|
|
3113
|
+
chainIndex: number;
|
|
3114
|
+
}
|
|
3115
|
+
/** Ein Kandidat, der bewusst **nicht** angeboten wird, samt Grund. */
|
|
3116
|
+
interface UnselectableTargetModel {
|
|
3117
|
+
/** Der fachliche Key, der dadurch blockiert ist. */
|
|
3118
|
+
key: string;
|
|
3119
|
+
elementId: string;
|
|
3120
|
+
title: string;
|
|
3121
|
+
reason: 'fork' | 'ambiguous';
|
|
3122
|
+
message: string;
|
|
3123
|
+
}
|
|
3124
|
+
interface TargetModelChoices {
|
|
3125
|
+
selectable: readonly SelectableTargetModel[];
|
|
3126
|
+
unselectable: readonly UnselectableTargetModel[];
|
|
3127
|
+
}
|
|
3128
|
+
/**
|
|
3129
|
+
* Die Zielmodelle, die ein Autor wählen darf — **derselbe** Kandidatensatz, den
|
|
3130
|
+
* `resolveTargetModelOver()` später akzeptiert.
|
|
3131
|
+
*
|
|
3132
|
+
* Diese Funktion bildet den Resolver Schritt für Schritt nach, und zwar
|
|
3133
|
+
* absichtlich engmaschig: Der erste Anlauf bot „alle Keys aller Versionen" an,
|
|
3134
|
+
* der zweite nur die wirksame Version je Element — beide Male wich das Ergebnis
|
|
3135
|
+
* in einem Fall vom Resolver ab, und beide Male hat es ein Review gefunden.
|
|
3136
|
+
*
|
|
3137
|
+
* Die Regeln, alle drei aus `resolveTargetModelOver()`:
|
|
3138
|
+
*
|
|
3139
|
+
* 1. **Nur die wirksame Version** liefert den Key (`matchOf` arbeitet auf der
|
|
3140
|
+
* ausgewählten Version, nicht auf „irgendeiner veröffentlichten").
|
|
3141
|
+
* 2. **Das erste Kettenglied mit einem Treffer entscheidet — und beendet die
|
|
3142
|
+
* Suche.** Auch dann, wenn der Treffer blockierend ist. Genau hier lag der
|
|
3143
|
+
* zweite Review-Befund: Ein lokaler Fork, dessen einer Head `imagen_4`
|
|
3144
|
+
* trägt, ist für `imagen_4` ein **Fork-Treffer** auf dem näheren Glied; der
|
|
3145
|
+
* Resolver endet dort mit `fork` und greift nicht auf ein globales
|
|
3146
|
+
* `imagen_4` durch. Ein Picker, der den Key nach dem Fork weiterlaufen
|
|
3147
|
+
* lässt, bietet einen Wert an, den die Auflösung ablehnt.
|
|
3148
|
+
* 3. **Mehrere Treffer auf demselben Glied sind mehrdeutig** — auch wenn einer
|
|
3149
|
+
* davon ein Fork ist (`active.length > 1`). Es wird keiner gewählt.
|
|
3150
|
+
*
|
|
3151
|
+
* Blockierte Keys verschwinden nicht stillschweigend: Sie stehen mit Grund in
|
|
3152
|
+
* `unselectable`, sonst sieht ein Zielmodell mit offener Auswahl aus wie ein
|
|
3153
|
+
* nicht vorhandenes.
|
|
3154
|
+
*
|
|
3155
|
+
* Stillgelegte Elemente beenden die Kette **nicht** — der Resolver führt sie als
|
|
3156
|
+
* `shadowedRetired` und sucht weiter (E-7). Sie erscheinen hier gar nicht, weil
|
|
3157
|
+
* `listElements` sie ohne `includeRetired` nicht liefert.
|
|
3158
|
+
*/
|
|
3159
|
+
declare function selectableTargetModels(queries: VisibilityQueries, contextChain: readonly (string | null)[]): Promise<QueryResult<TargetModelChoices>>;
|
|
3160
|
+
|
|
2918
3161
|
interface CreateHfImageBatchPersistenceOptions {
|
|
2919
3162
|
namespace: string;
|
|
2920
3163
|
token: string;
|
|
@@ -3023,4 +3266,4 @@ interface SzenenViewProps {
|
|
|
3023
3266
|
}
|
|
3024
3267
|
declare const SzenenView: React__default.FC<SzenenViewProps>;
|
|
3025
3268
|
|
|
3026
|
-
export { type AttachLibraryItemInput, type AttachLibraryItemResult, AuthoritativeSzenenStore, CATALOGUE_TYPES,
|
|
3269
|
+
export { type AttachLibraryItemInput, type AttachLibraryItemResult, AuthoritativeSzenenStore, CATALOGUE_TYPES, CapabilityAnchorError, type CapabilityFlag, type CapabilityReason, type CapabilityReport, type CapabilityReportInput, type CapabilityScope, type CapabilityState, type ChainQueries, type ClientDerivationChannel, type ClientDerivationStore, ContextChainPort, type CreateBrowserTextGenerationPortOptions, type CreateClientDerivationPortOptions, type CreateClientRunPortOptions, type CreateFlowSzenenViewPortOptions, type CreateHfElementStoreOptions, type CreateHfEventChannelOptions, type CreateHfImageBatchHistoryOptions, type CreateHfImageBatchPersistenceOptions, type CreateImageGenerationPortOptions, type CreateMemoryViewPortOptions, DerivableType, DerivationAssessment, DerivationConflict, DerivationDiagnostic, DerivationFailure, DerivationImage, DerivationInputMode, type DeriveItemInput, type DerivedItem, type DerivedLineage, type DerivedRelationship, type DerivedSzenenReference, type DifferentialResult, type DifferentialStep, type Divergence, DraftChainMeta, ELEMENT_VERSION_SCHEMA_FILE, type ElementEvent, type ElementEventChannel, ElementSnapshot, type ElementStoreState, type ExecutableImageModel, type ExecutionTargetModel, type ExistingSzenenItem, FLOW_EXECUTION_PATH, type FlowGenerateImage, type FlowGenerateImageParams, FlowGenerateText, type FreezeDraftChainInput, type FreezeFailure, type FreezeResult, type FreezeSuccess, type FrozenChainNode, type GeneratedImage, type HfImageStore, type HfImageStoreOptions, type IdFactory, type ImageBatchPersistedImage, type ImageBatchPersistedPayload, type ImageExecutionProfile, type ImageExecutionTargetModelReader, type ImageGenerationBatchPersistence, type ImageGenerationEventChannel, type ImageGenerationFinishedPayload, type ImageGenerationOrder, type ImageGenerationProviderPort, type ImageGenerationResult, type ImageGenerationRunReader, type ImageGenerationStartedPayload, type ImageHostCapability, type ImageModelChoice, type ImageModelParameters, ImageProvenance, type ImageProviderInput, type ImportBatchImageInput, type ImportBatchInput, type InMemoryEventChannel, type InputError, type IntegrityVerdict, type ItemDerivationFailure, type ItemDerivationFailureClass, type ItemDerivationResult, type ItemMedium, type LibraryImage, type NodeContribution, NotDerivable, type Notice, type NoticeTone, type PromptBatchImageRef, type PromptImageBatch, type PromptRunOutcome, type PromptRunOutput, type PromptRunPersistencePort, type PromptRunRecord, type PromptRunRecordedPayload, type ProviderCheckRecord, type ProviderCheckRecordedPayload, type ProviderCheckResult, PublishCheckResult, PublishFinding, RULES_WITHOUT_CAPABILITY_EFFECT, RULE_SCOPES, type RawSchema, type RecordedDerivationInput, type RecordedProposal, type RecoveryStatus, type ReducerFinding, ReferenceResolver, type RendererInput, type ResolveFailure, type ResolveResult, type ResolveShotInput, type ResolveShotPayloadInput, ResolveTechnicalError, type ResolvedCamera, type ResolvedNode, type ResolvedPlacement, type RunEventChannel, type RunFailure, type RunFailureClass, type RunItemReference, SZENEN_EVENT_PREFIX, SZENEN_EVENT_TYPES, SZENEN_ITEM_PREFIX, SZENEN_SCHEMAS, type SaveRunAsItemInput, type SceneDerivationPersistencePort, type SceneDerivationRecord, type SceneDerivationRecordedPayload, type SceneDerivationRecoveryRecord, type SceneDerivationRecoveryRecordedPayload, SchemaError, type SelectableTargetModel, type StartImageGenerationInput, type StartRunInput, type StepState, type SzenenArea, type SzenenAreaId, type SzenenBatchOrigin, type SzenenBatchOriginFailure, type SzenenBatchOriginVerdict, SzenenCommands, SzenenElementStore, SzenenElementType, type SzenenImageBatchHistoryPort, type SzenenImageBatchWritePort, type SzenenImageGenerationPort as SzenenImageGenerationPortContract, type SzenenImageLibraryPort, type SzenenItemPort, type SzenenMediaPort, SzenenQueries, type SzenenRunPort, SzenenView, type SzenenViewCapabilities, type SzenenViewPort, type SzenenViewProps, TargetModelResolution, TextGenerationPort, UNCHECKED_PUBLISH_RULES, type UnselectableTargetModel, UnusableProposal, type VersionMedium, type VisibilityNode, areasFor, batchesForPromptRun, bildPfad, buildSystemInstruction, buildUserPrompt, callOptional, capabilitiesOf, capabilityGate, capabilityReport, catalogueFor, checkCreateElementInput, checkElementType, checkImageExecutionProfile, checkImageModelParameters, checkOptionalId, checkParents, checkPayloadPresent, checkPromptRunRecord, checkPublishVersionInput, checkRequiredId, checkReviseMetadataInput, checkRevision, checkRunResponse, checkSceneDerivationRecord, checkSceneDerivationRecoveryRecord, checkSetPreferredHeadInput, checkSzenenBatchOrigin, checkTitle, checkWriteDraftInput, collectImageBatches, collectImageGenerationOrders, collectPromptRuns, collectProviderChecks, collectSceneDerivationRecoveries, collectSceneDerivations, createBrowserTextGenerationPort, createClientDerivationPort, createClientRunPort, createEventLogDerivationPersistence, createEventLogRunPersistence, createFlowImageProvider, createFlowSzenenViewPort, createHfElementStore, createHfEventChannel, createHfImageBatchHistory, createHfImageBatchWrite, createHfImageGenerationBatchPersistence, createHfImageLibrary, createHfImageStore, createImageGenerationPort, createInMemoryEventChannel, createMemoryViewPort, derivationPoliciesOf, deriveItemFromRun, deriveLineage, differentialSteps, draftRevisionOf, executableImageModels, findExecutableImageModel, findImageBatch, findImageGenerationOrder, findPromptRun, findProviderCheck, findSceneDerivation, findSceneDerivationRecovery, firstError, freezeDraftChain, hasPlacementCapability, isKnownElementType, isSzenenItemId, itemIdForRun, logRevisionOf, mergeSzenenBatchOrigin, noticeFor, ordersForPromptRun, parseRunResponse, preferredHeadRevisionOf, publishedHeadsOf, recoveriesForRun, recoveryStatusOf, reduceElementEvents, resolveArea, resolveShot, resolveShotPayload, roundOfRun, runPromptDerivation, runStoreDifferential, scopeOfPath, selectableTargetModels, totalModelCalls, typAusBytes, unclassifiedPublishRules, unsupportedReason };
|