@rslsp1/fa-app-tools 7.2.0 → 7.4.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/szenen.d.ts CHANGED
@@ -124,6 +124,59 @@ declare const SZENEN_EVENT_TYPES: {
124
124
  * wird mit `collectImageBatches` (`imageBatchStore.ts`).
125
125
  */
126
126
  readonly imageBatchPersisted: "szenen.image_batch_persisted";
127
+ /**
128
+ * Ein vorbereiteter Promptvorgang — der Durchstich „Szene → ChatGPT → Lauf".
129
+ *
130
+ * Der bestehende Promptpfad ruft das Modell selbst
131
+ * (`runPromptDerivation()`); ein aufrufendes Chatmodell formuliert dagegen
132
+ * **zwischen** zwei Werkzeugaufrufen. Damit zerfaellt der eine Vorgang in
133
+ * zwei, und der zweite braucht genau den Stand, den der erste eingefroren
134
+ * hat — sonst loeste der Abschluss die inzwischen geaenderte Szene neu auf
135
+ * und der Lauf behauptete eine Herkunft, die er nicht hat (D-22).
136
+ *
137
+ * Deshalb ein eigenes Ereignis und **kein** fluechtiger Prozesszustand: Der
138
+ * Snapshot ueberlebt Neustart, Hostwechsel und Sitzungsende, weil er im
139
+ * selben autoritativen Log liegt wie der Lauf, der daraus entsteht.
140
+ *
141
+ * Der Elementreducer ignoriert diesen Typ (`default:`-Zweig); gelesen wird
142
+ * mit `collectPromptOperations` (`scenePromptOperation.ts`).
143
+ */
144
+ readonly promptOperationPrepared: "szenen.prompt_operation_prepared";
145
+ /**
146
+ * Ein Bildauftrag wartet auf einen ausfuehrenden Flow-Host.
147
+ *
148
+ * Die vorhandene Auftragshistorie (`imageGenerationStarted`) beginnt
149
+ * **unmittelbar vor** dem Provideraufruf und kennt deshalb keinen wartenden
150
+ * Auftrag. Genau der entsteht hier: Ein Chatmodell beauftragt ueber MCP ein
151
+ * Bild, der Auftrag wird dauerhaft abgelegt, und der Werkzeugaufruf endet
152
+ * sofort mit seiner Kennung — er haelt keine Antwort minutenlang offen.
153
+ *
154
+ * Traegt **keinen** Prompt: Der steht im referenzierten Lauf, und ihn hier
155
+ * zu kopieren waere eine zweite Wahrheit ueber denselben eingefrorenen Text
156
+ * (D-103).
157
+ */
158
+ readonly imageJobRequested: "szenen.image_job_requested";
159
+ /**
160
+ * Ein Flow-Host beansprucht einen wartenden Bildauftrag.
161
+ *
162
+ * Ein append-only Log kennt kein Lock: Zwei Tabs koennen beide anhaengen.
163
+ * Deshalb ist die Uebernahme **nicht** der Append, sondern das Ergebnis
164
+ * einer deterministischen Schiedsregel darueber (`winningClaimOf`) — der
165
+ * erste Anspruch in Logreihenfolge gewinnt, und jeder Host liest nach
166
+ * seinem Append erneut, bevor er einen bezahlten Provideraufruf startet.
167
+ * Ein unterlegener Anspruch bleibt sichtbar stehen; er wird nicht geloescht,
168
+ * weil das Log das nicht kann und weil der Versuch ein Beleg ist.
169
+ */
170
+ readonly imageJobClaimed: "szenen.image_job_claimed";
171
+ /**
172
+ * Der Bildauftrag ist erledigt — mit dem Ausgang, den der Host gesehen hat.
173
+ *
174
+ * Getrennt von `imageGenerationFinished`: Jenes gehoert zum bezahlten
175
+ * Provideraufruf, dieses zur Zustellung. Ein Auftrag kann fehlschlagen,
176
+ * **bevor** ein Provider gerufen wurde (abgelehntes Profil), und dann gibt
177
+ * es kein `imageGenerationFinished`, das den Wartenden erloesen wuerde.
178
+ */
179
+ readonly imageJobSettled: "szenen.image_job_settled";
127
180
  };
128
181
  /** Ein einzelnes Bild innerhalb von `ImageBatchPersistedPayload` (D-6.9.2-6). */
129
182
  interface ImageBatchPersistedImage {
@@ -1915,6 +1968,35 @@ declare const UNCHECKED_PUBLISH_RULES: readonly string[];
1915
1968
  */
1916
1969
  declare function createHfElementStore(options: CreateHfElementStoreOptions): AuthoritativeSzenenStore & ChainQueries;
1917
1970
 
1971
+ /**
1972
+ * Der HF-Kanal kann mehr als der hostneutrale `ElementEventChannel`: Er kann
1973
+ * seinen Kopf-Commit nennen und gegen ihn schreiben.
1974
+ *
1975
+ * Das ist **keine** Erweiterung des allgemeinen Vertrags. Ein Kanal ohne
1976
+ * Versionsbegriff — der Dateilog, der Speicherkanal — kann das nicht, und
1977
+ * fordern darf es deshalb nur, wer es wirklich braucht: die exklusive
1978
+ * Auftragsuebernahme (Kette `szenen-mcp-chatgpt-flow`).
1979
+ */
1980
+ interface RevisionAwareEventChannel extends ElementEventChannel {
1981
+ /** Der aktuelle Kopf-Commit des Bestands. */
1982
+ readHead(): Promise<string>;
1983
+ /**
1984
+ * Die Ereignisse **bei genau dieser Revision**.
1985
+ *
1986
+ * Der Unterschied zu `readEvents()` ist die Dateiliste: Sie wird an die
1987
+ * Revision gebunden, statt „irgendwann waehrend der Anfrage" zu gelten. Nur
1988
+ * damit passt der gelesene Stand zu dem `parentCommit`, gegen den danach
1989
+ * geschrieben wird — sonst koennte die Liste ein Ereignis uebersehen, das
1990
+ * beim Kopf schon da war, und der Schreibvorgang ginge trotzdem durch.
1991
+ */
1992
+ readEventsAt(revision: string): Promise<readonly ElementEvent[]>;
1993
+ /**
1994
+ * Anhaengen, aber nur wenn der Bestand noch auf `parentCommit` steht.
1995
+ *
1996
+ * Wirft `HfPreconditionFailedError`, wenn nicht — und schreibt dann nichts.
1997
+ */
1998
+ appendEventAt(type: string, payload: unknown, parentCommit: string): Promise<void>;
1999
+ }
1918
2000
  interface CreateHfEventChannelOptions {
1919
2001
  /** HF-Namespace mit abschließendem Schrägstrich, wie in `hfStateService`. */
1920
2002
  namespace: string;
@@ -1945,7 +2027,7 @@ interface CreateHfEventChannelOptions {
1945
2027
  * Erfordert nur einen HF-Token — kein Server, keine Datenbank. Das ist die
1946
2028
  * Zusage von R-2 für Flow-FA Pure.
1947
2029
  */
1948
- declare function createHfEventChannel(options: CreateHfEventChannelOptions): ElementEventChannel;
2030
+ declare function createHfEventChannel(options: CreateHfEventChannelOptions): RevisionAwareEventChannel;
1949
2031
 
1950
2032
  interface InMemoryEventChannel extends ElementEventChannel {
1951
2033
  /** Der rohe Log, für Prüfungen. */
@@ -2372,6 +2454,190 @@ interface CreateImageGenerationPortOptions {
2372
2454
  /** Der gemeinsame Bildgenerierungs-Port. */
2373
2455
  declare function createImageGenerationPort(options: CreateImageGenerationPortOptions): SzenenImageGenerationPort;
2374
2456
 
2457
+ /** Nutzlast von `imageJobRequested` — geschrieben beim MCP-Auftrag. */
2458
+ interface ImageJobRequestedPayload {
2459
+ job_id: string;
2460
+ prompt_run_id: string;
2461
+ /** Das Zielmodell, mit dem ausgefuehrt werden soll — ausdruecklich (D-131). */
2462
+ execution_target_model_key: string;
2463
+ /** Dessen Ausfuehrungsprofil; die Faehigkeiten kommen von dort, nicht vom MCP. */
2464
+ execution_profile_id: string;
2465
+ image_count: number;
2466
+ aspect_ratio?: string;
2467
+ /** Wer beauftragt hat — der kanonische Nutzerschluessel des Aufrufers. */
2468
+ requested_by: string;
2469
+ /**
2470
+ * Die Kennung des Bestands, in dem dieser Auftrag gilt — `hf:<namespace>`
2471
+ * bzw. `file:<verzeichnis>`, dieselbe Form, an der die Projektionsschranke
2472
+ * misst.
2473
+ *
2474
+ * Ein Auftrag ist an Nutzer **und** Bestand gebunden. Ein Host auf einem
2475
+ * anderen Bestand sieht ihn gar nicht erst; einer, der ihn doch faende,
2476
+ * schriebe sein Ergebnis dorthin, wo der Auftraggeber nicht sucht.
2477
+ */
2478
+ store_id: string;
2479
+ created_at: string;
2480
+ }
2481
+ /** Nutzlast von `imageJobClaimed` — der Anspruch eines Flow-Hosts. */
2482
+ interface ImageJobClaimedPayload {
2483
+ job_id: string;
2484
+ claim_id: string;
2485
+ /** Der Client, der beansprucht — zwei Tabs sind zwei Clients. */
2486
+ client_id: string;
2487
+ claimed_at: string;
2488
+ }
2489
+ /** Nutzlast von `imageJobSettled` — der Ausgang der Zustellung. */
2490
+ interface ImageJobSettledPayload {
2491
+ job_id: string;
2492
+ claim_id: string;
2493
+ status: 'succeeded' | 'partial' | 'failed' | 'rejected';
2494
+ /** Der Batch des bezahlten Aufrufs, sofern einer entstand. */
2495
+ generation_batch_id?: string;
2496
+ /** Das Library-Item des Batches, sofern eines entstand. */
2497
+ item_id?: string;
2498
+ produced_count?: number;
2499
+ diagnostic?: string;
2500
+ settled_at: string;
2501
+ }
2502
+ /**
2503
+ * Der Auftrag, wie ein Leser ihn sieht.
2504
+ *
2505
+ * `claimed` heisst „ein Host fuehrt aus **oder** ist dabei abgebrochen" — aus
2506
+ * dem Log allein ist das nicht unterscheidbar, genau wie bei `started` in
2507
+ * `ImageGenerationOrder`. Das ist Absicht und kein Mangel: Ein Zustand, der
2508
+ * beides trennte, muesste eine Lebendigkeit behaupten, die niemand belegt.
2509
+ */
2510
+ interface ImageJob {
2511
+ job_id: string;
2512
+ prompt_run_id: string;
2513
+ execution_target_model_key: string;
2514
+ execution_profile_id: string;
2515
+ image_count: number;
2516
+ aspect_ratio?: string;
2517
+ requested_by: string;
2518
+ store_id: string;
2519
+ created_at: string;
2520
+ status: 'pending' | 'claimed' | 'succeeded' | 'partial' | 'failed' | 'rejected';
2521
+ /** Der massgebliche Anspruch — der erste in Logreihenfolge. */
2522
+ claim?: ImageJobClaimedPayload;
2523
+ /** Alle Anspruechenden, auch die unterlegenen. Ein Versuch ist ein Beleg. */
2524
+ claim_attempts: readonly ImageJobClaimedPayload[];
2525
+ generation_batch_id?: string;
2526
+ item_id?: string;
2527
+ produced_count?: number;
2528
+ diagnostic?: string;
2529
+ settled_at?: string;
2530
+ }
2531
+ /**
2532
+ * Liest alle Bildauftraege aus dem Ereignislog.
2533
+ *
2534
+ * Drei Durchgaenge in fester Reihenfolge — Auftrag, Anspruch, Abschluss —,
2535
+ * damit ein Ereignis nie einen Auftrag erfindet, den es nicht gibt: Ein
2536
+ * Anspruch oder Abschluss ohne `requested` wird ignoriert, genauso wie
2537
+ * `collectImageGenerationOrders` ein `finished` ohne `started` ignoriert.
2538
+ */
2539
+ declare function collectImageJobs(events: readonly ElementEvent[]): readonly ImageJob[];
2540
+ /** Alle Auftraege eines Prompt-Laufs, in Erfassungsreihenfolge. */
2541
+ declare function jobsForPromptRun(events: readonly ElementEvent[], runId: string): readonly ImageJob[];
2542
+ /** Ein einzelner Auftrag, oder `null`. */
2543
+ declare function findImageJob(events: readonly ElementEvent[], jobId: string): ImageJob | null;
2544
+ /**
2545
+ * Ob dieser Anspruch der massgebliche ist.
2546
+ *
2547
+ * Die eine Frage, die ein Flow-Host nach seinem Append stellen muss, bevor er
2548
+ * einen bezahlten Aufruf startet.
2549
+ */
2550
+ declare function claimWon(job: ImageJob | null, claimId: string): boolean;
2551
+ /**
2552
+ * Die Kennung des Bild-Batches eines Auftrags.
2553
+ *
2554
+ * **Aus der Auftragskennung abgeleitet und nicht gewuerfelt.** Damit ist ein
2555
+ * zweiter Ausfuehrungsversuch desselben Auftrags auch dann noch harmlos, wenn
2556
+ * er die Schiedsregel umginge: `collectImageGenerationOrders` haelt das erste
2557
+ * `started` je `generation_batch_id` fest und ignoriert jedes weitere. Zwei
2558
+ * unabhaengige Sicherungen fuer denselben teuren Fehler sind hier
2559
+ * angemessen — der Schaden ist bezahlte Rechenzeit, nicht ein Logeintrag.
2560
+ */
2561
+ declare function generationBatchIdOf(jobId: string): string;
2562
+
2563
+ /**
2564
+ * Was der Auftragskanal braucht.
2565
+ *
2566
+ * `readHead`, `readEventsAt` und `appendEventAt` sind **Pflicht**, nicht
2567
+ * optional: Ohne sie gibt es keine verbindliche Uebernahme, und ein Host, der
2568
+ * sie nicht hat, darf einen bezahlten Auftrag nicht uebernehmen. Ein
2569
+ * optionaler Rueckfall auf blosses `appendEvent` waere genau die Fassung, die
2570
+ * zwei Clients beide gewinnen liess.
2571
+ */
2572
+ interface ImageJobChannel {
2573
+ readEvents(): Promise<readonly ElementEvent[]>;
2574
+ /**
2575
+ * Der schlichte Anhang — fuer den **Abschluss**.
2576
+ *
2577
+ * Er braucht kein CAS: Nur der Gewinner schreibt ihn, und die Faltung
2578
+ * akzeptiert ohnehin nur den Abschluss des massgeblichen Anspruchs.
2579
+ */
2580
+ appendEvent(type: string, payload: unknown): Promise<void>;
2581
+ /** Der aktuelle Kopf-Commit des Bestands. */
2582
+ readHead(): Promise<string>;
2583
+ /** Die Ereignisse bei genau dieser Revision — die Liste ist daran gebunden. */
2584
+ readEventsAt(revision: string): Promise<readonly ElementEvent[]>;
2585
+ /** Anhaengen, aber nur wenn der Bestand noch auf `parentCommit` steht. */
2586
+ appendEventAt(type: string, payload: unknown, parentCommit: string): Promise<void>;
2587
+ }
2588
+ /** Die Ausgaenge einer Uebernahme. */
2589
+ type ClaimAndRunResult =
2590
+ /** Uebernommen und ausgefuehrt — der Ausgang steht im Auftrag. */
2591
+ {
2592
+ kind: 'ok';
2593
+ job: ImageJob;
2594
+ }
2595
+ /**
2596
+ * Ein anderer Client hat den Auftrag. **Kein Fehler**: Genau dafuer gibt es
2597
+ * die Schiedsregel, und dieser Client hat nichts bezahlt.
2598
+ */
2599
+ | {
2600
+ kind: 'lost';
2601
+ job: ImageJob;
2602
+ message: string;
2603
+ }
2604
+ /** Fachlich abgelehnt — falscher Zustand, falscher Bestand, kein Auftrag. */
2605
+ | {
2606
+ kind: 'rejected';
2607
+ message: string;
2608
+ }
2609
+ /** Technisch gescheitert; der Bestand ist in Ordnung, der Zugriff nicht. */
2610
+ | {
2611
+ kind: 'error';
2612
+ message: string;
2613
+ retryable: boolean;
2614
+ };
2615
+ interface SzenenImageJobPort {
2616
+ /** Die Auftraege eines Prompt-Laufs, aus dem autoritativen Log. */
2617
+ listJobs(runId: string): Promise<QueryResult<readonly ImageJob[]>>;
2618
+ /** Beansprucht einen wartenden Auftrag und fuehrt ihn als Gewinner aus. */
2619
+ claimAndRun(jobId: string): Promise<ClaimAndRunResult>;
2620
+ }
2621
+ interface CreateImageJobPortOptions {
2622
+ channel: ImageJobChannel;
2623
+ /** Der bestehende Bildgenerierungs-Port dieses Hosts (D-116/D-119). */
2624
+ imageGeneration: SzenenImageGenerationPort;
2625
+ /**
2626
+ * Die Bestandskennung dieses Hosts — `hf:<namespace>`.
2627
+ *
2628
+ * Sie wird gegen die des Auftrags geprueft. Nutzer, Umgebung und Bestand
2629
+ * muessen zusammenpassen; ein Host, der einen fremden Auftrag ausfuehrte,
2630
+ * schriebe sein Ergebnis in einen Bestand, in dem es niemand sucht.
2631
+ */
2632
+ storeId: string;
2633
+ /** Diese Sitzung. Zwei Tabs sind zwei Clients — sonst sind sie ununterscheidbar. */
2634
+ clientId: string;
2635
+ newClaimId?: () => string;
2636
+ now?: () => Date;
2637
+ }
2638
+ /** Der Uebernahmeweg als Port. */
2639
+ declare function createImageJobPort(options: CreateImageJobPortOptions): SzenenImageJobPort;
2640
+
2375
2641
  /** Eine benannte Seedliste, wie der Nutzer sie im Dropdown sieht. */
2376
2642
  interface SeedVorlage {
2377
2643
  /** Fehlt bei der eingebauten Vorlage — sie liegt in keinem Speicher. */
@@ -3178,6 +3444,16 @@ interface SzenenViewPort {
3178
3444
  * Bildlauf starten und das Ergebnis danach verlieren.
3179
3445
  */
3180
3446
  imageGeneration?: SzenenImageGenerationPort;
3447
+ /**
3448
+ * Bildauftraege aus dem Chat uebernehmen — fehlt, wo es nichts auszufuehren
3449
+ * gibt.
3450
+ *
3451
+ * Haengt an denselben zwei Voraussetzungen wie `imageGeneration`: ohne
3452
+ * Provider und ohne kanonischen Schreibweg darf ein Host keinen bezahlten
3453
+ * Auftrag uebernehmen (D-122). Zusaetzlich braucht er den autoritativen
3454
+ * Kanal, denn die Uebernahme ist ein Append mit Gegenlesen.
3455
+ */
3456
+ imageJobs?: SzenenImageJobPort;
3181
3457
  }
3182
3458
  /**
3183
3459
  * Die Fähigkeiten eines Ports, wie die View sie abfragt.
@@ -3198,6 +3474,8 @@ interface SzenenViewCapabilities {
3198
3474
  imageOrderHistory: boolean;
3199
3475
  imageBatchWrite: boolean;
3200
3476
  imageGeneration: boolean;
3477
+ /** Bildauftraege aus dem Chat uebernehmen (Kette szenen-mcp-chatgpt-flow). */
3478
+ imageJobs: boolean;
3201
3479
  }
3202
3480
  declare function capabilitiesOf(port: SzenenViewPort): SzenenViewCapabilities;
3203
3481
  /**
@@ -3332,6 +3610,42 @@ interface GruppierbaresBild extends LibraryImage {
3332
3610
  * Locator-Position aufsteigend; die ist stabil, der Zeitstempel wäre es nicht.
3333
3611
  */
3334
3612
  declare function gruppiereZuItems(bilder: readonly GruppierbaresBild[]): readonly LibraryImageItem[];
3613
+ /** Ein Galerieeintrag, wie ihn `metadata.gallery` einer Library-Zeile fuehrt. */
3614
+ interface BestandsGalerieEintrag {
3615
+ file?: string | null;
3616
+ }
3617
+ /** Eine Library-Zeile, wie sie `/api/storage/:user/library` ausliefert. */
3618
+ interface BestandsItem {
3619
+ id: string;
3620
+ title?: string | null;
3621
+ timestamp?: number | null;
3622
+ gallery?: readonly BestandsGalerieEintrag[] | null;
3623
+ }
3624
+ /**
3625
+ * Der Locator eines Bildes — dieselbe Bildung wie `locatorVon()` auf dem
3626
+ * Server und beim Hochladen nach HF: bei einem Bild die blosse Kennung, bei
3627
+ * mehreren `${id}-${position}`. `locatorTeile` oben zerlegt genau das wieder.
3628
+ */
3629
+ declare function locatorAus(itemId: string, position: number, anzahl: number): string;
3630
+ /** Der MIME-Typ aus der Dateiendung — dieselben drei Faelle wie serverseitig. */
3631
+ declare function mimeTypAus(dateiname: string): string;
3632
+ /**
3633
+ * Library-Zeilen → Werke fuer den Bildwaehler.
3634
+ *
3635
+ * @param items Der Bestand, wie ihn der Library-Lesepfad liefert.
3636
+ * @param options `search` filtert am Titel, `limit` zaehlt **Werke** (nicht
3637
+ * Bilder), `thumbUrl` bildet die Vorschauquelle aus dem
3638
+ * Dateinamen — der Host reicht sie herein, damit diese Funktion
3639
+ * keine Adresse kennt.
3640
+ *
3641
+ * Ein Item ohne lesbaren Galerieeintrag ist kein leeres Werk, sondern gar
3642
+ * keins: eine Karte ohne Bild waere nur eine Sackgasse.
3643
+ */
3644
+ declare function itemsAusBestand(items: readonly BestandsItem[], options?: {
3645
+ search?: string;
3646
+ limit?: number;
3647
+ thumbUrl?: (dateiname: string) => string;
3648
+ }): readonly LibraryImageItem[];
3335
3649
 
3336
3650
  interface VorschauLauf {
3337
3651
  /** Wird `true`, sobald der Aufrufer das Ergebnis nicht mehr braucht. */
@@ -3554,6 +3868,17 @@ interface CreateFlowSzenenViewPortOptions {
3554
3868
  imageContextId?: () => string | null;
3555
3869
  /** Kennung je abgelegtem Batch-Bild. Ersetzbar, damit ein Test nicht würfelt. */
3556
3870
  newBatchImageId?: (generationBatchId: string, position: number) => string;
3871
+ /**
3872
+ * Diese Sitzung — die Kennung, mit der dieser Host einen Bildauftrag
3873
+ * beansprucht (Kette `szenen-mcp-chatgpt-flow`).
3874
+ *
3875
+ * **Zwei Tabs müssen zwei Clients sein**, sonst kann die Schiedsregel den
3876
+ * Doppelklick nicht vom zweiten Tab unterscheiden. Vorgabe ist deshalb eine
3877
+ * frisch gezogene Kennung je Portinstanz, kein stabiler Gerätewert.
3878
+ */
3879
+ imageJobClientId?: string;
3880
+ /** Anspruchskennung je Übernahme. Ersetzbar, damit ein Test nicht würfelt. */
3881
+ newImageJobClaimId?: () => string;
3557
3882
  }
3558
3883
  /**
3559
3884
  * Complete Flow adapter for the shared SzenenView: authoritative HF elements
@@ -3895,6 +4220,164 @@ interface TargetModelChoices {
3895
4220
  */
3896
4221
  declare function selectableTargetModels(queries: VisibilityQueries, contextChain: readonly (string | null)[]): Promise<QueryResult<TargetModelChoices>>;
3897
4222
 
4223
+ /**
4224
+ * Der Anbieter, der in einem so entstandenen Lauf steht.
4225
+ *
4226
+ * `mcp_client` und nicht `openai`/`chatgpt`: Was der Server sicher weiss, ist
4227
+ * dass **sein MCP-Aufrufer** formuliert hat. Welcher Anbieter dahinter steht,
4228
+ * sagt ihm niemand — und ein geratener Anbietername waere im Lauf spaeter
4229
+ * nicht mehr von einem belegten zu unterscheiden (D-107).
4230
+ */
4231
+ declare const MCP_CLIENT_PROVIDER = "mcp_client";
4232
+ /**
4233
+ * Die Modellkennung, wenn der Host keine belegte liefert — und das tut er nie.
4234
+ *
4235
+ * Bewusst ein sprechender Platzhalter statt einer Modellversion: `model_id`
4236
+ * ist das Feld, an dem ein Leser ablesen soll, **womit** formuliert wurde.
4237
+ * Eine dort eingetragene Selbstauskunft saehe aus wie eine belegte Kennung.
4238
+ * Die Selbstauskunft steht deshalb in `execution_origin.declared_model_id` und
4239
+ * traegt dort sichtbar, dass sie unbelegt ist.
4240
+ */
4241
+ declare const UNVERIFIED_MODEL_ID = "mcp-client-unspecified";
4242
+ /**
4243
+ * Die Herkunft der Ausfuehrung, so ehrlich wie sie belegbar ist.
4244
+ *
4245
+ * Additiv am Lauf und nicht in `model_id`/`provider` versteckt: Der
4246
+ * Unterschied zwischen „das war Modell X" und „der Aufrufer sagt, es war
4247
+ * Modell X" ist genau der, um den es geht.
4248
+ */
4249
+ interface PromptExecutionOrigin {
4250
+ /** Wer den Lauf eingereicht hat — hier immer der MCP-Werkzeugweg. */
4251
+ host: 'mcp';
4252
+ /** Was der Aufrufer ueber sich selbst gesagt hat, unveraendert und unbelegt. */
4253
+ declared_model_id?: string;
4254
+ /**
4255
+ * Ob die unten mitgegebene Renderer-Anweisung die tatsaechliche
4256
+ * Systemnachricht des formulierenden Chats war.
4257
+ *
4258
+ * Sie war es nie: Der MCP reicht sie als Werkzeugergebnis heraus; was im
4259
+ * Chat als Systemprompt stand, kennt der Server nicht. Das Feld steht
4260
+ * trotzdem im Lauf, weil `system_prompt` sonst genau so gelesen wuerde.
4261
+ */
4262
+ renderer_instruction_was_system_prompt: false;
4263
+ }
4264
+ /** Der Antwortvertrag, den der Aufrufer erfuellen muss — maschinenlesbar. */
4265
+ interface PromptResponseContract {
4266
+ format: 'json';
4267
+ /** Pflichtfelder der Antwort, wie `checkRunResponse()` sie prueft. */
4268
+ required_fields: readonly string[];
4269
+ /** Ob ein Negativ-Prompt zugesagt ist (sonst muss `negative` null bleiben). */
4270
+ negative_prompt_allowed: boolean;
4271
+ /** Jeder dieser Knoten muss in `visibility.nodes` erscheinen (D-21). */
4272
+ node_ids: readonly string[];
4273
+ /** Die Sprache, in der `positive` formuliert wird. */
4274
+ prompt_language: string;
4275
+ }
4276
+ /** Ein vorbereiteter Promptvorgang — dauerhaft unter `operation_id`. */
4277
+ interface PreparedPromptOperation {
4278
+ operation_id: string;
4279
+ /** Die eingefrorene Szene: genau ein Entwurfs- oder Versionsstand (D-135). */
4280
+ scene: FrozenSceneState;
4281
+ context_id: string | null;
4282
+ /** Die Arbeitsanweisung des Nutzers, soweit eine gegeben wurde. */
4283
+ user_instruction: string | null;
4284
+ /** Der eingefrorene `RendererInput` — woertlich der des bestehenden Pfads. */
4285
+ renderer_input: RendererInput;
4286
+ /**
4287
+ * Die Renderer-Anweisung (`buildSystemInstruction`).
4288
+ *
4289
+ * Sie ist **Material fuer den Aufrufer**, nicht sein Systemprompt. Beim
4290
+ * Abschluss landet sie unveraendert in `system_prompt` des Laufs, weil das
4291
+ * Feld seit Stufe 3 genau diese Anweisung fuehrt.
4292
+ */
4293
+ renderer_instruction: string;
4294
+ /** Die Nutzernachricht: die Renderer-Eingabe als JSON (D-47). */
4295
+ renderer_payload: string;
4296
+ response_contract: PromptResponseContract;
4297
+ prepared_by: string;
4298
+ created_at: string;
4299
+ }
4300
+ /** Nutzlast von `promptOperationPrepared`. */
4301
+ type PromptOperationPreparedPayload = PreparedPromptOperation;
4302
+ /** Liest alle vorbereiteten Vorgaenge aus dem Ereignislog. */
4303
+ declare function collectPromptOperations(events: readonly ElementEvent[]): readonly PreparedPromptOperation[];
4304
+ /** Ein einzelner vorbereiteter Vorgang, oder `null`. */
4305
+ declare function findPromptOperation(events: readonly ElementEvent[], operationId: string): PreparedPromptOperation | null;
4306
+ interface PreparePromptOperationInput {
4307
+ sceneElementId: string;
4308
+ operationId: string;
4309
+ store: ChainQueries;
4310
+ resolver: ReferenceResolver;
4311
+ contextChain: readonly (string | null)[];
4312
+ contextId: string | null;
4313
+ userInstruction?: string | null;
4314
+ preparedBy: string;
4315
+ now?: () => Date;
4316
+ }
4317
+ type PreparePromptOperationResult = {
4318
+ kind: 'ok';
4319
+ operation: PreparedPromptOperation;
4320
+ } | FreezeFailure;
4321
+ /**
4322
+ * Friert den Arbeitsstand einer Szene ein und baut daraus den Vorgang.
4323
+ *
4324
+ * Ruft **kein** Modell — hier entstehen keine Kosten. Das Einfrieren ist
4325
+ * woertlich `freezeSceneWorkingState()`, also derselbe Zwei-Durchgang-Vergleich
4326
+ * mit denselben drei Ausgaengen wie im bestehenden Pfad (D-97/D-135). Ein
4327
+ * Konflikt bleibt ein Konflikt, kein „nochmal versuchen".
4328
+ */
4329
+ declare function preparePromptOperation(input: PreparePromptOperationInput): Promise<PreparePromptOperationResult>;
4330
+ /**
4331
+ * Der Antwortvertrag, abgelesen an derselben Eingabe wie die Anweisung.
4332
+ *
4333
+ * Bewusst abgelesen und nicht danebengeschrieben: Was `checkRunResponse()
4334
+ * prueft, entscheidet allein `promptRun.ts`. Ein hier gepflegter zweiter
4335
+ * Katalog liefe irgendwann auseinander, und der Aufrufer bekaeme einen
4336
+ * Vertrag, den die Pruefung nicht kennt.
4337
+ */
4338
+ declare function responseContractOf(input: RendererInput): PromptResponseContract;
4339
+ interface CompletePromptOperationInput {
4340
+ operation: PreparedPromptOperation;
4341
+ /** Die Antwort des aufrufenden Modells, woertlich. */
4342
+ response: string;
4343
+ runId: string;
4344
+ /** Was der Aufrufer ueber sein eigenes Modell sagt — unbelegt (D-107). */
4345
+ declaredModelId?: string | null;
4346
+ now?: () => Date;
4347
+ }
4348
+ type CompletePromptOperationResult = {
4349
+ kind: 'ok';
4350
+ record: PromptRunRecord;
4351
+ } | {
4352
+ kind: 'rejected';
4353
+ message: string;
4354
+ };
4355
+ /**
4356
+ * Macht aus der Antwort des Aufrufers einen normalen Promptlauf.
4357
+ *
4358
+ * **Eine ungueltige Antwort wird nicht als gescheiterter Lauf abgelegt.** Das
4359
+ * ist der eine bewusste Unterschied zum Providerpfad, und er hat einen Grund:
4360
+ * Dort belegt ein `failed` einen **bezahlten** Aufruf, der sich nicht
4361
+ * wiederholen laesst, ohne noch einmal zu kosten (D-23 §6). Hier hat niemand
4362
+ * bezahlt — der Aufrufer hat nur falsch formuliert und kann es unter derselben
4363
+ * `operation_id` sofort richtig tun. Ein Fehlerlauf waere hier kein Nachweis,
4364
+ * sondern Muell im autoritativen Bestand, und er wuerde die Wiederholung
4365
+ * ausserdem als Konflikt blockieren.
4366
+ */
4367
+ declare function completePromptOperation(input: CompletePromptOperationInput): CompletePromptOperationResult;
4368
+ /**
4369
+ * Der Lauf, der aus diesem Vorgang schon entstanden ist — oder `null`.
4370
+ *
4371
+ * Grundlage der Idempotenz: Derselbe Vorgang mit derselben Antwort liefert
4372
+ * denselben Lauf; eine **andere** Antwort unter derselben Kennung ist ein
4373
+ * Konflikt und kein zweiter Lauf. Verglichen wird die woertliche Antwort aus
4374
+ * `raw_output` — es braucht keinen Fingerabdruck neben etwas, das der Lauf
4375
+ * ohnehin vollstaendig traegt.
4376
+ */
4377
+ declare function runOfOperation(runs: readonly PromptRunRecord[], operationId: string): PromptRunRecord | null;
4378
+ /** Ob eine eingereichte Antwort woertlich die des bereits gespeicherten Laufs ist. */
4379
+ declare function sameResponseAs(run: PromptRunRecord, response: string): boolean;
4380
+
3898
4381
  interface CreateHfImageBatchPersistenceOptions {
3899
4382
  namespace: string;
3900
4383
  token: string;
@@ -4055,4 +4538,4 @@ interface SzenenViewProps {
4055
4538
  }
4056
4539
  declare const SzenenView: React__default.FC<SzenenViewProps>;
4057
4540
 
4058
- export { type AttachLibraryItemInput, type AttachLibraryItemResult, AuthoritativeSzenenStore, CATALOGUE_TYPES, CapabilityAnchorError, type CapabilityFlag, type CapabilityFlagName, 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, DEFAULT_SEED_VORLAGE, 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 FreezeSceneResult, type FreezeSceneSuccess, type FreezeSceneWorkingStateInput, type FreezeSuccess, type FrozenChainNode, type FrozenSceneState, type GeneratedImage, type GruppierbaresBild, type HfImageStore, type HfImageStoreOptions, type IdFactory, type ImageBatchPersistedImage, type ImageBatchPersistedPayload, type ImageExecutionProfile, type ImageExecutionRoute, 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 LibraryImageItem, type NodeContribution, NotDerivable, type Notice, type NoticeTone, PROMPT_RULE_EFFECT, type PromptBatchImageRef, type PromptBatchOrigin, type PromptDiagnostic, type PromptEffect, 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 ResolveScenePayloadInput, 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, SZENEN_SNAPSHOT_FILE, SZENEN_SNAPSHOT_PREFIX, SZENEN_SNAPSHOT_SCHEMA_VERSION, type SaveRunAsItemInput, type SceneDerivationPersistencePort, type SceneDerivationRecord, type SceneDerivationRecordedPayload, type SceneDerivationRecoveryRecord, type SceneDerivationRecoveryRecordedPayload, SchemaError, type SeedVorlage, type SeedZuordnung, type SeedZuordnungEintrag, type SelectableTargetModel, type StartImageGenerationInput, type StartRunFromSceneInput, type StartRunInput, type StepState, type SzenenArea, type SzenenAreaId, type SzenenBatchOrigin, type SzenenBatchOriginFailure, type SzenenBatchOriginVerdict, type SzenenBatchSourceKind, SzenenCommands, SzenenElementStore, SzenenElementType, type SzenenImageBatchHistoryPort, type SzenenImageBatchWritePort, type SzenenImageGenerationPort as SzenenImageGenerationPortContract, type SzenenImageLibraryPort, type SzenenItemPort, type SzenenLeseErgebnis, type SzenenMediaPort, SzenenQueries, type SzenenRunPort, type SzenenSeedTemplatePort, type SzenenSnapshot, SzenenView, type SzenenViewCapabilities, type SzenenViewPort, type SzenenViewProps, TargetModelResolution, TextGenerationPort, UNCHECKED_PUBLISH_RULES, UPLOAD_MAX_BYTES, type UnselectableTargetModel, UnusableProposal, type VersionMedium, type VisibilityNode, type ZipBild, areasFor, batchesForPromptRun, bildPfad, buildSystemInstruction, buildSzenenSnapshot, buildUserPrompt, callOptional, capabilitiesOf, capabilityGate, capabilityReport, catalogueFor, checkCreateElementInput, checkElementType, checkImageExecutionProfile, checkImageExecutionProfiles, 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, describableContent, diagnosticOfFinding, diagnosticOfSchemaError, differentialSteps, draftRevisionOf, executableImageModels, findExecutableImageModel, findImageBatch, findImageGenerationOrder, findPromptRun, findProviderCheck, findSceneDerivation, findSceneDerivationRecovery, firstError, formatSeedListe, freezeDraftChain, freezeSceneWorkingState, gesamtHerkunft, gruppiereZuItems, hasPlacementCapability, isKnownElementType, isSzenenItemId, istSzenenSnapshotDatei, istZipDatei, itemIdForRun, ladeVorschauen, leseBilderAusZip, locatorTeile, logRevisionOf, mergeSnapshotAndPending, mergeSzenenBatchOrigin, mitDefaultVorlage, noticeFor, ordersForPromptRun, ordneSeedsZu, parseRunResponse, parseSeedListe, parseSzenenSnapshot, preferredHeadRevisionOf, promptDiagnosticsOf, publishedHeadsOf, recoveriesForRun, recoveryStatusOf, reduceElementEvents, resolveArea, resolveScenePayload, resolveShot, resolveShotPayload, roundOfRun, rulesWithoutPromptEffect, runPromptDerivation, runStoreDifferential, sceneOnlyCapabilities, scopeOfPath, seedFehlerText, selectableTargetModels, szenenSnapshotFilename, totalModelCalls, typAusBytes, unclassifiedPublishRules, unsupportedReason };
4541
+ export { type AttachLibraryItemInput, type AttachLibraryItemResult, AuthoritativeSzenenStore, type BestandsGalerieEintrag, type BestandsItem, CATALOGUE_TYPES, CapabilityAnchorError, type CapabilityFlag, type CapabilityFlagName, type CapabilityReason, type CapabilityReport, type CapabilityReportInput, type CapabilityScope, type CapabilityState, type ChainQueries, type ClaimAndRunResult, type ClientDerivationChannel, type ClientDerivationStore, type CompletePromptOperationInput, type CompletePromptOperationResult, ContextChainPort, type CreateBrowserTextGenerationPortOptions, type CreateClientDerivationPortOptions, type CreateClientRunPortOptions, type CreateFlowSzenenViewPortOptions, type CreateHfElementStoreOptions, type CreateHfEventChannelOptions, type CreateHfImageBatchHistoryOptions, type CreateHfImageBatchPersistenceOptions, type CreateImageGenerationPortOptions, type CreateImageJobPortOptions, type CreateMemoryViewPortOptions, DEFAULT_SEED_VORLAGE, 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 FreezeSceneResult, type FreezeSceneSuccess, type FreezeSceneWorkingStateInput, type FreezeSuccess, type FrozenChainNode, type FrozenSceneState, type GeneratedImage, type GruppierbaresBild, type HfImageStore, type HfImageStoreOptions, type IdFactory, type ImageBatchPersistedImage, type ImageBatchPersistedPayload, type ImageExecutionProfile, type ImageExecutionRoute, type ImageExecutionTargetModelReader, type ImageGenerationBatchPersistence, type ImageGenerationEventChannel, type ImageGenerationFinishedPayload, type ImageGenerationOrder, type ImageGenerationProviderPort, type ImageGenerationResult, type ImageGenerationRunReader, type ImageGenerationStartedPayload, type ImageHostCapability, type ImageJob, type ImageJobChannel, type ImageJobClaimedPayload, type ImageJobRequestedPayload, type ImageJobSettledPayload, 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 LibraryImageItem, MCP_CLIENT_PROVIDER, type NodeContribution, NotDerivable, type Notice, type NoticeTone, PROMPT_RULE_EFFECT, type PreparePromptOperationInput, type PreparePromptOperationResult, type PreparedPromptOperation, type PromptBatchImageRef, type PromptBatchOrigin, type PromptDiagnostic, type PromptEffect, type PromptExecutionOrigin, type PromptImageBatch, type PromptOperationPreparedPayload, type PromptResponseContract, 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 ResolveScenePayloadInput, 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, SZENEN_SNAPSHOT_FILE, SZENEN_SNAPSHOT_PREFIX, SZENEN_SNAPSHOT_SCHEMA_VERSION, type SaveRunAsItemInput, type SceneDerivationPersistencePort, type SceneDerivationRecord, type SceneDerivationRecordedPayload, type SceneDerivationRecoveryRecord, type SceneDerivationRecoveryRecordedPayload, SchemaError, type SeedVorlage, type SeedZuordnung, type SeedZuordnungEintrag, type SelectableTargetModel, type StartImageGenerationInput, type StartRunFromSceneInput, type StartRunInput, type StepState, type SzenenArea, type SzenenAreaId, type SzenenBatchOrigin, type SzenenBatchOriginFailure, type SzenenBatchOriginVerdict, type SzenenBatchSourceKind, SzenenCommands, SzenenElementStore, SzenenElementType, type SzenenImageBatchHistoryPort, type SzenenImageBatchWritePort, type SzenenImageGenerationPort as SzenenImageGenerationPortContract, type SzenenImageJobPort, type SzenenImageLibraryPort, type SzenenItemPort, type SzenenLeseErgebnis, type SzenenMediaPort, SzenenQueries, type SzenenRunPort, type SzenenSeedTemplatePort, type SzenenSnapshot, SzenenView, type SzenenViewCapabilities, type SzenenViewPort, type SzenenViewProps, TargetModelResolution, TextGenerationPort, UNCHECKED_PUBLISH_RULES, UNVERIFIED_MODEL_ID, UPLOAD_MAX_BYTES, type UnselectableTargetModel, UnusableProposal, type VersionMedium, type VisibilityNode, type ZipBild, areasFor, batchesForPromptRun, bildPfad, buildSystemInstruction, buildSzenenSnapshot, buildUserPrompt, callOptional, capabilitiesOf, capabilityGate, capabilityReport, catalogueFor, checkCreateElementInput, checkElementType, checkImageExecutionProfile, checkImageExecutionProfiles, checkImageModelParameters, checkOptionalId, checkParents, checkPayloadPresent, checkPromptRunRecord, checkPublishVersionInput, checkRequiredId, checkReviseMetadataInput, checkRevision, checkRunResponse, checkSceneDerivationRecord, checkSceneDerivationRecoveryRecord, checkSetPreferredHeadInput, checkSzenenBatchOrigin, checkTitle, checkWriteDraftInput, claimWon, collectImageBatches, collectImageGenerationOrders, collectImageJobs, collectPromptOperations, collectPromptRuns, collectProviderChecks, collectSceneDerivationRecoveries, collectSceneDerivations, completePromptOperation, createBrowserTextGenerationPort, createClientDerivationPort, createClientRunPort, createEventLogDerivationPersistence, createEventLogRunPersistence, createFlowImageProvider, createFlowSzenenViewPort, createHfElementStore, createHfEventChannel, createHfImageBatchHistory, createHfImageBatchWrite, createHfImageGenerationBatchPersistence, createHfImageLibrary, createHfImageStore, createImageGenerationPort, createImageJobPort, createInMemoryEventChannel, createMemoryViewPort, derivationPoliciesOf, deriveItemFromRun, deriveLineage, describableContent, diagnosticOfFinding, diagnosticOfSchemaError, differentialSteps, draftRevisionOf, executableImageModels, findExecutableImageModel, findImageBatch, findImageGenerationOrder, findImageJob, findPromptOperation, findPromptRun, findProviderCheck, findSceneDerivation, findSceneDerivationRecovery, firstError, formatSeedListe, freezeDraftChain, freezeSceneWorkingState, generationBatchIdOf, gesamtHerkunft, gruppiereZuItems, hasPlacementCapability, isKnownElementType, isSzenenItemId, istSzenenSnapshotDatei, istZipDatei, itemIdForRun, itemsAusBestand, jobsForPromptRun, ladeVorschauen, leseBilderAusZip, locatorAus, locatorTeile, logRevisionOf, mergeSnapshotAndPending, mergeSzenenBatchOrigin, mimeTypAus, mitDefaultVorlage, noticeFor, ordersForPromptRun, ordneSeedsZu, parseRunResponse, parseSeedListe, parseSzenenSnapshot, preferredHeadRevisionOf, preparePromptOperation, promptDiagnosticsOf, publishedHeadsOf, recoveriesForRun, recoveryStatusOf, reduceElementEvents, resolveArea, resolveScenePayload, resolveShot, resolveShotPayload, responseContractOf, roundOfRun, rulesWithoutPromptEffect, runOfOperation, runPromptDerivation, runStoreDifferential, sameResponseAs, sceneOnlyCapabilities, scopeOfPath, seedFehlerText, selectableTargetModels, szenenSnapshotFilename, totalModelCalls, typAusBytes, unclassifiedPublishRules, unsupportedReason };