@rslsp1/fa-app-tools 8.0.0 → 9.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-VVGASAYT.mjs → chunk-2ADFDRFX.mjs} +192 -7
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +190 -9
- package/dist/index.mjs +2 -2
- package/dist/szenen.d.mts +188 -1
- package/dist/szenen.d.ts +188 -1
- package/dist/szenen.js +214 -25
- package/dist/szenen.mjs +9 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
setHFToken,
|
|
18
18
|
tsFromEventPath,
|
|
19
19
|
writeHFEvent
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2ADFDRFX.mjs";
|
|
21
21
|
import "./chunk-FUY2OCVC.mjs";
|
|
22
22
|
|
|
23
23
|
// package.json
|
|
24
|
-
var version = "
|
|
24
|
+
var version = "9.0.0";
|
|
25
25
|
|
|
26
26
|
// src/hooks/useOnClickOutside.ts
|
|
27
27
|
import { useEffect } from "react";
|
package/dist/szenen.d.mts
CHANGED
|
@@ -656,6 +656,118 @@ declare function sceneOnlyCapabilities(scenePayload: unknown): {
|
|
|
656
656
|
can_place: CapabilityFlag;
|
|
657
657
|
};
|
|
658
658
|
|
|
659
|
+
/** Der einzige Subtyp, der in diesem Schritt automatisch gilt (Auftrag §1). */
|
|
660
|
+
declare const GENERAL_POLICY_SUBTYPE = "general";
|
|
661
|
+
/**
|
|
662
|
+
* Eine automatisch aufgeloeste Policy — mit vollstaendiger Provenienz (D-22).
|
|
663
|
+
*
|
|
664
|
+
* `chain_index` ist **nicht** Teil des `RendererInput`: Er ordnet, er ist kein
|
|
665
|
+
* Herkunftsnachweis der Regel. Die entstandene Reihenfolge friert der Lauf
|
|
666
|
+
* ohnehin woertlich ein.
|
|
667
|
+
*/
|
|
668
|
+
interface ResolvedScenePolicy {
|
|
669
|
+
element_id: string;
|
|
670
|
+
version_id: string;
|
|
671
|
+
subtype: string;
|
|
672
|
+
rank: number;
|
|
673
|
+
text: string;
|
|
674
|
+
locale: string | null;
|
|
675
|
+
/** Glied der Kontextkette, auf dem das Element liegt. `0` = Arbeitskontext. */
|
|
676
|
+
chain_index: number;
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* Das Ergebnis der Aufloesung — drei Ausgaenge, drei Sachverhalte.
|
|
680
|
+
*
|
|
681
|
+
* `rejected` ist fachlich (ein Fork, ueber den jemand entscheiden muss),
|
|
682
|
+
* `error` technisch bzw. ein Datenfehler. Sie zusammenzulegen hiesse, einen
|
|
683
|
+
* Speicherdefekt als Normalzustand anzuzeigen.
|
|
684
|
+
*/
|
|
685
|
+
type ScenePolicyResult = {
|
|
686
|
+
kind: 'ok';
|
|
687
|
+
policies: readonly ResolvedScenePolicy[];
|
|
688
|
+
} | {
|
|
689
|
+
kind: 'rejected';
|
|
690
|
+
message: string;
|
|
691
|
+
element_id: string;
|
|
692
|
+
heads: readonly string[];
|
|
693
|
+
} | {
|
|
694
|
+
kind: 'error';
|
|
695
|
+
message: string;
|
|
696
|
+
retryable: boolean;
|
|
697
|
+
};
|
|
698
|
+
/** Ein Lesevorgang der Momentaufnahme, so schmal wie moeglich beschrieben. */
|
|
699
|
+
interface SnapshotRead<T> {
|
|
700
|
+
kind: string;
|
|
701
|
+
message?: string;
|
|
702
|
+
value?: T;
|
|
703
|
+
}
|
|
704
|
+
/** Der Ausschnitt einer Momentaufnahme, den diese Aufloesung braucht. */
|
|
705
|
+
interface PolicySnapshot {
|
|
706
|
+
getElement(elementId: string): SnapshotRead<{
|
|
707
|
+
element: {
|
|
708
|
+
element_id: string;
|
|
709
|
+
type: string;
|
|
710
|
+
context_id?: string | null;
|
|
711
|
+
};
|
|
712
|
+
versions?: readonly {
|
|
713
|
+
version_id: string;
|
|
714
|
+
element_id: string;
|
|
715
|
+
payload: unknown;
|
|
716
|
+
}[];
|
|
717
|
+
preferredHeads?: readonly {
|
|
718
|
+
context_id: string | null;
|
|
719
|
+
version_id?: string;
|
|
720
|
+
}[];
|
|
721
|
+
} | null>;
|
|
722
|
+
/**
|
|
723
|
+
* Die Elemente eines Kettenglieds — **optional im Typ, nicht im Betrieb.**
|
|
724
|
+
*
|
|
725
|
+
* Optional, weil der Shot-Pfad dieselbe Momentaufnahme benutzt und dort
|
|
726
|
+
* keine Liste braucht. Fehlt sie im Szene-Direktlauf, ist das ein
|
|
727
|
+
* unvollstaendiger Hostadapter und wird laut gemeldet — nicht als „keine
|
|
728
|
+
* Policy vorhanden" ausgelegt (Grundsatzregel 4).
|
|
729
|
+
*/
|
|
730
|
+
listElements?(filter: {
|
|
731
|
+
contextId: string | null;
|
|
732
|
+
type: string;
|
|
733
|
+
}): SnapshotRead<readonly {
|
|
734
|
+
element_id: string;
|
|
735
|
+
type: string;
|
|
736
|
+
}[]>;
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* Die deterministische Ordnung automatisch gefundener Policies (Auftrag §6).
|
|
740
|
+
*
|
|
741
|
+
* Eine automatisch entdeckte Menge hat keine gespeicherte Array-Reihenfolge;
|
|
742
|
+
* `rank` allein reicht deshalb nicht aus, sobald zwei Regeln denselben Rang
|
|
743
|
+
* tragen. Keine Deduplizierung nach `name`: verschiedene Elemente sind
|
|
744
|
+
* verschiedene Regeln.
|
|
745
|
+
*/
|
|
746
|
+
declare function sortScenePolicies(policies: readonly ResolvedScenePolicy[]): readonly ResolvedScenePolicy[];
|
|
747
|
+
/**
|
|
748
|
+
* Der Vergleichswert zweier Aufloesungen — fuer die A/B-Stabilitaetspruefung.
|
|
749
|
+
*
|
|
750
|
+
* Verglichen wird Element **und** Version in der entstandenen Reihenfolge:
|
|
751
|
+
* Genau dann ist der Policy-Satz derselbe, den der Nutzer gesehen hat. Der
|
|
752
|
+
* Text gehoert nicht hinein — eine veroeffentlichte Version ist
|
|
753
|
+
* unveraenderlich, und ein abweichender Text bei gleicher Kennung waere ein
|
|
754
|
+
* Speicherdefekt, kein Wettlauf.
|
|
755
|
+
*/
|
|
756
|
+
declare function scenePolicyFingerprint(policies: readonly ResolvedScenePolicy[]): string;
|
|
757
|
+
/**
|
|
758
|
+
* Die allgemeinen Policies, die fuer einen Szene-Direktlauf gelten.
|
|
759
|
+
*
|
|
760
|
+
* Ausgewertet wird die **vollstaendige** Kontextkette: Arbeitskontext, geerbte
|
|
761
|
+
* Kontexte, global. Je sichtbarem `prompt_policy`-Element wird die wirksame
|
|
762
|
+
* Version ausschliesslich mit der vorhandenen Preferred-Head-Logik bestimmt
|
|
763
|
+
* (D-36) — hier wird nichts neu ausgelegt und nichts geraten.
|
|
764
|
+
*
|
|
765
|
+
* Kein Netzzugriff: Gelesen wird genau die uebergebene Momentaufnahme. Das ist
|
|
766
|
+
* die Voraussetzung dafuer, dass die Auswahl in dieselbe Konsistenzgrenze
|
|
767
|
+
* faellt wie das Einfrieren der Szene (Gegenpruefung P2).
|
|
768
|
+
*/
|
|
769
|
+
declare function resolveGeneralScenePolicies(snapshot: PolicySnapshot, contextChain: readonly (string | null)[]): ScenePolicyResult;
|
|
770
|
+
|
|
659
771
|
/** Ein Beitrag zur Beschreibung eines Knotens, mit Herkunft (D-50). */
|
|
660
772
|
interface NodeContribution {
|
|
661
773
|
source: 'component' | 'node_semantic' | 'setup_override';
|
|
@@ -716,6 +828,14 @@ interface RendererInput {
|
|
|
716
828
|
/** `null`, wenn der Shot keine auflösbare Kamera nennt. */
|
|
717
829
|
camera_id: string | null;
|
|
718
830
|
shot_concept: unknown | null;
|
|
831
|
+
/**
|
|
832
|
+
* Die wirksame Arbeitsanweisung dieses Shot-Laufs — unveraendert.
|
|
833
|
+
*
|
|
834
|
+
* Die **kanonische** Stelle ist seit Schritt 03 das gleichnamige Feld auf
|
|
835
|
+
* oberster Ebene; im Shot-Pfad tragen beide denselben Wert. Das Feld hier
|
|
836
|
+
* bleibt, weil Laeufe, Tests und der Vertrag es seit Stufe 3 fuehren, und
|
|
837
|
+
* weil dieser Auftrag am Auswahlverhalten des Shot-Pfads nichts aendert.
|
|
838
|
+
*/
|
|
719
839
|
user_instruction: string | null;
|
|
720
840
|
text_override: string | null;
|
|
721
841
|
} | null;
|
|
@@ -747,7 +867,23 @@ interface RendererInput {
|
|
|
747
867
|
text: string;
|
|
748
868
|
locale: string | null;
|
|
749
869
|
}[];
|
|
870
|
+
/**
|
|
871
|
+
* Die wirksamen Prompt-Policies — mit vollstaendiger Provenienz (D-22).
|
|
872
|
+
*
|
|
873
|
+
* `element_id`/`version_id` gehoeren seit Schritt 03 dazu, und zwar auf
|
|
874
|
+
* **beiden** Wegen: bei den ausdruecklich referenzierten Shot-Policies
|
|
875
|
+
* ebenso wie bei den automatisch aufgeloesten allgemeinen Kontext-Policies
|
|
876
|
+
* des Szene-Direktlaufs. D-22 verlangt eingefrorenen Text **und** Herkunft;
|
|
877
|
+
* ohne die beiden Kennungen liesse sich spaeter nicht sagen, welche Regel in
|
|
878
|
+
* welcher Fassung gewirkt hat.
|
|
879
|
+
*
|
|
880
|
+
* Reihenfolge: erst die ausdruecklich referenzierten (Array-Reihenfolge nach
|
|
881
|
+
* `rank`), dann die automatisch aufgeloesten in ihrer deterministischen
|
|
882
|
+
* Ordnung. Sie wird woertlich eingefroren.
|
|
883
|
+
*/
|
|
750
884
|
policies: readonly {
|
|
885
|
+
element_id: string;
|
|
886
|
+
version_id: string;
|
|
751
887
|
subtype: string;
|
|
752
888
|
rank: number;
|
|
753
889
|
text: string;
|
|
@@ -787,6 +923,19 @@ interface RendererInput {
|
|
|
787
923
|
can_render_prompt: string;
|
|
788
924
|
can_place: string;
|
|
789
925
|
};
|
|
926
|
+
/**
|
|
927
|
+
* Die laufbezogene Arbeitsanweisung — die **kanonische** Stelle (Schritt 03 §7).
|
|
928
|
+
*
|
|
929
|
+
* Vorher stand sie ausschliesslich unter `shot.user_instruction`. Beim
|
|
930
|
+
* Szene-Direktlauf gibt es keinen Shot, und damit erreichte die Anweisung
|
|
931
|
+
* den Renderer nicht, obwohl der Vorgang sie speicherte — der belegte
|
|
932
|
+
* Fehler aus der Gegenpruefung P6. Hier steht sie jetzt fuer **jeden** Weg
|
|
933
|
+
* genau einmal.
|
|
934
|
+
*
|
|
935
|
+
* Sie ist **additiv** zu `policies` und ersetzt keine Regel; Policy-Text
|
|
936
|
+
* wird niemals hierher kopiert.
|
|
937
|
+
*/
|
|
938
|
+
user_instruction: string | null;
|
|
790
939
|
/** Die tatsächlich verwendete Kontextkette (§4.9.1). */
|
|
791
940
|
context_chain: readonly (string | null)[];
|
|
792
941
|
/** Wie das Zielmodell gefunden wurde (§4.9.1). `null` ohne Zielmodell. */
|
|
@@ -953,6 +1102,11 @@ interface ResolveScenePayloadInput {
|
|
|
953
1102
|
resolver: ReferenceResolver;
|
|
954
1103
|
contextChain: readonly (string | null)[];
|
|
955
1104
|
userInstruction?: string | null;
|
|
1105
|
+
/**
|
|
1106
|
+
* Die allgemeinen Kontext-Policies dieses Laufs, bereits aufgeloest und
|
|
1107
|
+
* gegen die zweite Momentaufnahme bestaetigt (Schritt 03 §3).
|
|
1108
|
+
*/
|
|
1109
|
+
autoPolicies?: readonly ResolvedScenePolicy[];
|
|
956
1110
|
}
|
|
957
1111
|
/**
|
|
958
1112
|
* Löst eine **Szene allein** zur Renderer-Eingabe auf (D-135).
|
|
@@ -1573,6 +1727,7 @@ interface ChainSnapshot {
|
|
|
1573
1727
|
version_id: string;
|
|
1574
1728
|
element_id: string;
|
|
1575
1729
|
payload: unknown;
|
|
1730
|
+
parents?: unknown;
|
|
1576
1731
|
}[];
|
|
1577
1732
|
preferredHeads?: readonly {
|
|
1578
1733
|
context_id: string | null;
|
|
@@ -1580,6 +1735,30 @@ interface ChainSnapshot {
|
|
|
1580
1735
|
}[];
|
|
1581
1736
|
} | null;
|
|
1582
1737
|
};
|
|
1738
|
+
/**
|
|
1739
|
+
* Die Elemente eines Kettenglieds — fuer die allgemeinen Kontext-Policies
|
|
1740
|
+
* des Szene-Direktlaufs (Schritt 03 §3).
|
|
1741
|
+
*
|
|
1742
|
+
* Optional im Typ, weil der Shot-Pfad dieselbe Momentaufnahme benutzt und
|
|
1743
|
+
* dort keine Liste braucht. Im Szene-Direktlauf ist sie **Pflicht**: Fehlt
|
|
1744
|
+
* sie, meldet die Policy-Aufloesung einen Fehler, statt „keine Policy"
|
|
1745
|
+
* zu behaupten (Grundsatzregel 4).
|
|
1746
|
+
*
|
|
1747
|
+
* Aus **derselben** Momentaufnahme wie `getElement` — genau das haelt die
|
|
1748
|
+
* Policy-Auswahl in der A/B-Konsistenzgrenze und verhindert einen dritten
|
|
1749
|
+
* Live-Leseweg (Gegenpruefung P2).
|
|
1750
|
+
*/
|
|
1751
|
+
listElements?(filter: {
|
|
1752
|
+
contextId: string | null;
|
|
1753
|
+
type: string;
|
|
1754
|
+
}): {
|
|
1755
|
+
kind: string;
|
|
1756
|
+
message?: string;
|
|
1757
|
+
value?: readonly {
|
|
1758
|
+
element_id: string;
|
|
1759
|
+
type: string;
|
|
1760
|
+
}[];
|
|
1761
|
+
};
|
|
1583
1762
|
}
|
|
1584
1763
|
/**
|
|
1585
1764
|
* Was das Einfrieren vom Elementspeicher braucht — bewusst schmal.
|
|
@@ -1629,6 +1808,14 @@ interface FreezeSceneSuccess {
|
|
|
1629
1808
|
kind: 'ok';
|
|
1630
1809
|
scene: FrozenSceneState;
|
|
1631
1810
|
input: RendererInput;
|
|
1811
|
+
/**
|
|
1812
|
+
* Die automatisch aufgeloesten allgemeinen Kontext-Policies (Schritt 03).
|
|
1813
|
+
*
|
|
1814
|
+
* Redundant zu `input.policies` und trotzdem hier: Der Aufrufer sieht so den
|
|
1815
|
+
* Satz **mit** `chain_index`, ohne die Ordnung nachbauen zu muessen. Der
|
|
1816
|
+
* eingefrorene Lauf traegt weiterhin ausschliesslich `input`.
|
|
1817
|
+
*/
|
|
1818
|
+
policies: readonly ResolvedScenePolicy[];
|
|
1632
1819
|
}
|
|
1633
1820
|
type FreezeSceneResult = FreezeSceneSuccess | FreezeFailure;
|
|
1634
1821
|
interface FreezeSceneWorkingStateInput {
|
|
@@ -4707,4 +4894,4 @@ interface SzenenViewProps {
|
|
|
4707
4894
|
}
|
|
4708
4895
|
declare const SzenenView: React__default.FC<SzenenViewProps>;
|
|
4709
4896
|
|
|
4710
|
-
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 PromptRunFilter, type PromptRunGroup, type PromptRunListing, type PromptRunOutcome, type PromptRunOutput, type PromptRunPersistencePort, type PromptRunRecord, type PromptRunRecordedPayload, type PromptRunSource, type PromptRunStatusFilter, 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, contextOfRun, 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, groupKeyOf, groupOf, gruppiereZuItems, hasPlacementCapability, isKnownElementType, isSzenenItemId, istSzenenSnapshotDatei, istZipDatei, itemIdForRun, itemsAusBestand, jobsForPromptRun, ladeVorschauen, leseBilderAusZip, locatorAus, locatorTeile, logRevisionOf, mergeSnapshotAndPending, mergeSzenenBatchOrigin, mimeTypAus, mitDefaultVorlage, namingElementOf, 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, selectPromptRuns, selectableTargetModels, siblingsOf, sourceOf, szenenSnapshotFilename, totalModelCalls, typAusBytes, unclassifiedPublishRules, unsupportedReason };
|
|
4897
|
+
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, GENERAL_POLICY_SUBTYPE, 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 PolicySnapshot, type PreparePromptOperationInput, type PreparePromptOperationResult, type PreparedPromptOperation, type PromptBatchImageRef, type PromptBatchOrigin, type PromptDiagnostic, type PromptEffect, type PromptExecutionOrigin, type PromptImageBatch, type PromptOperationPreparedPayload, type PromptResponseContract, type PromptRunFilter, type PromptRunGroup, type PromptRunListing, type PromptRunOutcome, type PromptRunOutput, type PromptRunPersistencePort, type PromptRunRecord, type PromptRunRecordedPayload, type PromptRunSource, type PromptRunStatusFilter, 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 ResolvedScenePolicy, 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, type ScenePolicyResult, 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, contextOfRun, 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, groupKeyOf, groupOf, gruppiereZuItems, hasPlacementCapability, isKnownElementType, isSzenenItemId, istSzenenSnapshotDatei, istZipDatei, itemIdForRun, itemsAusBestand, jobsForPromptRun, ladeVorschauen, leseBilderAusZip, locatorAus, locatorTeile, logRevisionOf, mergeSnapshotAndPending, mergeSzenenBatchOrigin, mimeTypAus, mitDefaultVorlage, namingElementOf, noticeFor, ordersForPromptRun, ordneSeedsZu, parseRunResponse, parseSeedListe, parseSzenenSnapshot, preferredHeadRevisionOf, preparePromptOperation, promptDiagnosticsOf, publishedHeadsOf, recoveriesForRun, recoveryStatusOf, reduceElementEvents, resolveArea, resolveGeneralScenePolicies, resolveScenePayload, resolveShot, resolveShotPayload, responseContractOf, roundOfRun, rulesWithoutPromptEffect, runOfOperation, runPromptDerivation, runStoreDifferential, sameResponseAs, sceneOnlyCapabilities, scenePolicyFingerprint, scopeOfPath, seedFehlerText, selectPromptRuns, selectableTargetModels, siblingsOf, sortScenePolicies, sourceOf, szenenSnapshotFilename, totalModelCalls, typAusBytes, unclassifiedPublishRules, unsupportedReason };
|
package/dist/szenen.d.ts
CHANGED
|
@@ -656,6 +656,118 @@ declare function sceneOnlyCapabilities(scenePayload: unknown): {
|
|
|
656
656
|
can_place: CapabilityFlag;
|
|
657
657
|
};
|
|
658
658
|
|
|
659
|
+
/** Der einzige Subtyp, der in diesem Schritt automatisch gilt (Auftrag §1). */
|
|
660
|
+
declare const GENERAL_POLICY_SUBTYPE = "general";
|
|
661
|
+
/**
|
|
662
|
+
* Eine automatisch aufgeloeste Policy — mit vollstaendiger Provenienz (D-22).
|
|
663
|
+
*
|
|
664
|
+
* `chain_index` ist **nicht** Teil des `RendererInput`: Er ordnet, er ist kein
|
|
665
|
+
* Herkunftsnachweis der Regel. Die entstandene Reihenfolge friert der Lauf
|
|
666
|
+
* ohnehin woertlich ein.
|
|
667
|
+
*/
|
|
668
|
+
interface ResolvedScenePolicy {
|
|
669
|
+
element_id: string;
|
|
670
|
+
version_id: string;
|
|
671
|
+
subtype: string;
|
|
672
|
+
rank: number;
|
|
673
|
+
text: string;
|
|
674
|
+
locale: string | null;
|
|
675
|
+
/** Glied der Kontextkette, auf dem das Element liegt. `0` = Arbeitskontext. */
|
|
676
|
+
chain_index: number;
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* Das Ergebnis der Aufloesung — drei Ausgaenge, drei Sachverhalte.
|
|
680
|
+
*
|
|
681
|
+
* `rejected` ist fachlich (ein Fork, ueber den jemand entscheiden muss),
|
|
682
|
+
* `error` technisch bzw. ein Datenfehler. Sie zusammenzulegen hiesse, einen
|
|
683
|
+
* Speicherdefekt als Normalzustand anzuzeigen.
|
|
684
|
+
*/
|
|
685
|
+
type ScenePolicyResult = {
|
|
686
|
+
kind: 'ok';
|
|
687
|
+
policies: readonly ResolvedScenePolicy[];
|
|
688
|
+
} | {
|
|
689
|
+
kind: 'rejected';
|
|
690
|
+
message: string;
|
|
691
|
+
element_id: string;
|
|
692
|
+
heads: readonly string[];
|
|
693
|
+
} | {
|
|
694
|
+
kind: 'error';
|
|
695
|
+
message: string;
|
|
696
|
+
retryable: boolean;
|
|
697
|
+
};
|
|
698
|
+
/** Ein Lesevorgang der Momentaufnahme, so schmal wie moeglich beschrieben. */
|
|
699
|
+
interface SnapshotRead<T> {
|
|
700
|
+
kind: string;
|
|
701
|
+
message?: string;
|
|
702
|
+
value?: T;
|
|
703
|
+
}
|
|
704
|
+
/** Der Ausschnitt einer Momentaufnahme, den diese Aufloesung braucht. */
|
|
705
|
+
interface PolicySnapshot {
|
|
706
|
+
getElement(elementId: string): SnapshotRead<{
|
|
707
|
+
element: {
|
|
708
|
+
element_id: string;
|
|
709
|
+
type: string;
|
|
710
|
+
context_id?: string | null;
|
|
711
|
+
};
|
|
712
|
+
versions?: readonly {
|
|
713
|
+
version_id: string;
|
|
714
|
+
element_id: string;
|
|
715
|
+
payload: unknown;
|
|
716
|
+
}[];
|
|
717
|
+
preferredHeads?: readonly {
|
|
718
|
+
context_id: string | null;
|
|
719
|
+
version_id?: string;
|
|
720
|
+
}[];
|
|
721
|
+
} | null>;
|
|
722
|
+
/**
|
|
723
|
+
* Die Elemente eines Kettenglieds — **optional im Typ, nicht im Betrieb.**
|
|
724
|
+
*
|
|
725
|
+
* Optional, weil der Shot-Pfad dieselbe Momentaufnahme benutzt und dort
|
|
726
|
+
* keine Liste braucht. Fehlt sie im Szene-Direktlauf, ist das ein
|
|
727
|
+
* unvollstaendiger Hostadapter und wird laut gemeldet — nicht als „keine
|
|
728
|
+
* Policy vorhanden" ausgelegt (Grundsatzregel 4).
|
|
729
|
+
*/
|
|
730
|
+
listElements?(filter: {
|
|
731
|
+
contextId: string | null;
|
|
732
|
+
type: string;
|
|
733
|
+
}): SnapshotRead<readonly {
|
|
734
|
+
element_id: string;
|
|
735
|
+
type: string;
|
|
736
|
+
}[]>;
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* Die deterministische Ordnung automatisch gefundener Policies (Auftrag §6).
|
|
740
|
+
*
|
|
741
|
+
* Eine automatisch entdeckte Menge hat keine gespeicherte Array-Reihenfolge;
|
|
742
|
+
* `rank` allein reicht deshalb nicht aus, sobald zwei Regeln denselben Rang
|
|
743
|
+
* tragen. Keine Deduplizierung nach `name`: verschiedene Elemente sind
|
|
744
|
+
* verschiedene Regeln.
|
|
745
|
+
*/
|
|
746
|
+
declare function sortScenePolicies(policies: readonly ResolvedScenePolicy[]): readonly ResolvedScenePolicy[];
|
|
747
|
+
/**
|
|
748
|
+
* Der Vergleichswert zweier Aufloesungen — fuer die A/B-Stabilitaetspruefung.
|
|
749
|
+
*
|
|
750
|
+
* Verglichen wird Element **und** Version in der entstandenen Reihenfolge:
|
|
751
|
+
* Genau dann ist der Policy-Satz derselbe, den der Nutzer gesehen hat. Der
|
|
752
|
+
* Text gehoert nicht hinein — eine veroeffentlichte Version ist
|
|
753
|
+
* unveraenderlich, und ein abweichender Text bei gleicher Kennung waere ein
|
|
754
|
+
* Speicherdefekt, kein Wettlauf.
|
|
755
|
+
*/
|
|
756
|
+
declare function scenePolicyFingerprint(policies: readonly ResolvedScenePolicy[]): string;
|
|
757
|
+
/**
|
|
758
|
+
* Die allgemeinen Policies, die fuer einen Szene-Direktlauf gelten.
|
|
759
|
+
*
|
|
760
|
+
* Ausgewertet wird die **vollstaendige** Kontextkette: Arbeitskontext, geerbte
|
|
761
|
+
* Kontexte, global. Je sichtbarem `prompt_policy`-Element wird die wirksame
|
|
762
|
+
* Version ausschliesslich mit der vorhandenen Preferred-Head-Logik bestimmt
|
|
763
|
+
* (D-36) — hier wird nichts neu ausgelegt und nichts geraten.
|
|
764
|
+
*
|
|
765
|
+
* Kein Netzzugriff: Gelesen wird genau die uebergebene Momentaufnahme. Das ist
|
|
766
|
+
* die Voraussetzung dafuer, dass die Auswahl in dieselbe Konsistenzgrenze
|
|
767
|
+
* faellt wie das Einfrieren der Szene (Gegenpruefung P2).
|
|
768
|
+
*/
|
|
769
|
+
declare function resolveGeneralScenePolicies(snapshot: PolicySnapshot, contextChain: readonly (string | null)[]): ScenePolicyResult;
|
|
770
|
+
|
|
659
771
|
/** Ein Beitrag zur Beschreibung eines Knotens, mit Herkunft (D-50). */
|
|
660
772
|
interface NodeContribution {
|
|
661
773
|
source: 'component' | 'node_semantic' | 'setup_override';
|
|
@@ -716,6 +828,14 @@ interface RendererInput {
|
|
|
716
828
|
/** `null`, wenn der Shot keine auflösbare Kamera nennt. */
|
|
717
829
|
camera_id: string | null;
|
|
718
830
|
shot_concept: unknown | null;
|
|
831
|
+
/**
|
|
832
|
+
* Die wirksame Arbeitsanweisung dieses Shot-Laufs — unveraendert.
|
|
833
|
+
*
|
|
834
|
+
* Die **kanonische** Stelle ist seit Schritt 03 das gleichnamige Feld auf
|
|
835
|
+
* oberster Ebene; im Shot-Pfad tragen beide denselben Wert. Das Feld hier
|
|
836
|
+
* bleibt, weil Laeufe, Tests und der Vertrag es seit Stufe 3 fuehren, und
|
|
837
|
+
* weil dieser Auftrag am Auswahlverhalten des Shot-Pfads nichts aendert.
|
|
838
|
+
*/
|
|
719
839
|
user_instruction: string | null;
|
|
720
840
|
text_override: string | null;
|
|
721
841
|
} | null;
|
|
@@ -747,7 +867,23 @@ interface RendererInput {
|
|
|
747
867
|
text: string;
|
|
748
868
|
locale: string | null;
|
|
749
869
|
}[];
|
|
870
|
+
/**
|
|
871
|
+
* Die wirksamen Prompt-Policies — mit vollstaendiger Provenienz (D-22).
|
|
872
|
+
*
|
|
873
|
+
* `element_id`/`version_id` gehoeren seit Schritt 03 dazu, und zwar auf
|
|
874
|
+
* **beiden** Wegen: bei den ausdruecklich referenzierten Shot-Policies
|
|
875
|
+
* ebenso wie bei den automatisch aufgeloesten allgemeinen Kontext-Policies
|
|
876
|
+
* des Szene-Direktlaufs. D-22 verlangt eingefrorenen Text **und** Herkunft;
|
|
877
|
+
* ohne die beiden Kennungen liesse sich spaeter nicht sagen, welche Regel in
|
|
878
|
+
* welcher Fassung gewirkt hat.
|
|
879
|
+
*
|
|
880
|
+
* Reihenfolge: erst die ausdruecklich referenzierten (Array-Reihenfolge nach
|
|
881
|
+
* `rank`), dann die automatisch aufgeloesten in ihrer deterministischen
|
|
882
|
+
* Ordnung. Sie wird woertlich eingefroren.
|
|
883
|
+
*/
|
|
750
884
|
policies: readonly {
|
|
885
|
+
element_id: string;
|
|
886
|
+
version_id: string;
|
|
751
887
|
subtype: string;
|
|
752
888
|
rank: number;
|
|
753
889
|
text: string;
|
|
@@ -787,6 +923,19 @@ interface RendererInput {
|
|
|
787
923
|
can_render_prompt: string;
|
|
788
924
|
can_place: string;
|
|
789
925
|
};
|
|
926
|
+
/**
|
|
927
|
+
* Die laufbezogene Arbeitsanweisung — die **kanonische** Stelle (Schritt 03 §7).
|
|
928
|
+
*
|
|
929
|
+
* Vorher stand sie ausschliesslich unter `shot.user_instruction`. Beim
|
|
930
|
+
* Szene-Direktlauf gibt es keinen Shot, und damit erreichte die Anweisung
|
|
931
|
+
* den Renderer nicht, obwohl der Vorgang sie speicherte — der belegte
|
|
932
|
+
* Fehler aus der Gegenpruefung P6. Hier steht sie jetzt fuer **jeden** Weg
|
|
933
|
+
* genau einmal.
|
|
934
|
+
*
|
|
935
|
+
* Sie ist **additiv** zu `policies` und ersetzt keine Regel; Policy-Text
|
|
936
|
+
* wird niemals hierher kopiert.
|
|
937
|
+
*/
|
|
938
|
+
user_instruction: string | null;
|
|
790
939
|
/** Die tatsächlich verwendete Kontextkette (§4.9.1). */
|
|
791
940
|
context_chain: readonly (string | null)[];
|
|
792
941
|
/** Wie das Zielmodell gefunden wurde (§4.9.1). `null` ohne Zielmodell. */
|
|
@@ -953,6 +1102,11 @@ interface ResolveScenePayloadInput {
|
|
|
953
1102
|
resolver: ReferenceResolver;
|
|
954
1103
|
contextChain: readonly (string | null)[];
|
|
955
1104
|
userInstruction?: string | null;
|
|
1105
|
+
/**
|
|
1106
|
+
* Die allgemeinen Kontext-Policies dieses Laufs, bereits aufgeloest und
|
|
1107
|
+
* gegen die zweite Momentaufnahme bestaetigt (Schritt 03 §3).
|
|
1108
|
+
*/
|
|
1109
|
+
autoPolicies?: readonly ResolvedScenePolicy[];
|
|
956
1110
|
}
|
|
957
1111
|
/**
|
|
958
1112
|
* Löst eine **Szene allein** zur Renderer-Eingabe auf (D-135).
|
|
@@ -1573,6 +1727,7 @@ interface ChainSnapshot {
|
|
|
1573
1727
|
version_id: string;
|
|
1574
1728
|
element_id: string;
|
|
1575
1729
|
payload: unknown;
|
|
1730
|
+
parents?: unknown;
|
|
1576
1731
|
}[];
|
|
1577
1732
|
preferredHeads?: readonly {
|
|
1578
1733
|
context_id: string | null;
|
|
@@ -1580,6 +1735,30 @@ interface ChainSnapshot {
|
|
|
1580
1735
|
}[];
|
|
1581
1736
|
} | null;
|
|
1582
1737
|
};
|
|
1738
|
+
/**
|
|
1739
|
+
* Die Elemente eines Kettenglieds — fuer die allgemeinen Kontext-Policies
|
|
1740
|
+
* des Szene-Direktlaufs (Schritt 03 §3).
|
|
1741
|
+
*
|
|
1742
|
+
* Optional im Typ, weil der Shot-Pfad dieselbe Momentaufnahme benutzt und
|
|
1743
|
+
* dort keine Liste braucht. Im Szene-Direktlauf ist sie **Pflicht**: Fehlt
|
|
1744
|
+
* sie, meldet die Policy-Aufloesung einen Fehler, statt „keine Policy"
|
|
1745
|
+
* zu behaupten (Grundsatzregel 4).
|
|
1746
|
+
*
|
|
1747
|
+
* Aus **derselben** Momentaufnahme wie `getElement` — genau das haelt die
|
|
1748
|
+
* Policy-Auswahl in der A/B-Konsistenzgrenze und verhindert einen dritten
|
|
1749
|
+
* Live-Leseweg (Gegenpruefung P2).
|
|
1750
|
+
*/
|
|
1751
|
+
listElements?(filter: {
|
|
1752
|
+
contextId: string | null;
|
|
1753
|
+
type: string;
|
|
1754
|
+
}): {
|
|
1755
|
+
kind: string;
|
|
1756
|
+
message?: string;
|
|
1757
|
+
value?: readonly {
|
|
1758
|
+
element_id: string;
|
|
1759
|
+
type: string;
|
|
1760
|
+
}[];
|
|
1761
|
+
};
|
|
1583
1762
|
}
|
|
1584
1763
|
/**
|
|
1585
1764
|
* Was das Einfrieren vom Elementspeicher braucht — bewusst schmal.
|
|
@@ -1629,6 +1808,14 @@ interface FreezeSceneSuccess {
|
|
|
1629
1808
|
kind: 'ok';
|
|
1630
1809
|
scene: FrozenSceneState;
|
|
1631
1810
|
input: RendererInput;
|
|
1811
|
+
/**
|
|
1812
|
+
* Die automatisch aufgeloesten allgemeinen Kontext-Policies (Schritt 03).
|
|
1813
|
+
*
|
|
1814
|
+
* Redundant zu `input.policies` und trotzdem hier: Der Aufrufer sieht so den
|
|
1815
|
+
* Satz **mit** `chain_index`, ohne die Ordnung nachbauen zu muessen. Der
|
|
1816
|
+
* eingefrorene Lauf traegt weiterhin ausschliesslich `input`.
|
|
1817
|
+
*/
|
|
1818
|
+
policies: readonly ResolvedScenePolicy[];
|
|
1632
1819
|
}
|
|
1633
1820
|
type FreezeSceneResult = FreezeSceneSuccess | FreezeFailure;
|
|
1634
1821
|
interface FreezeSceneWorkingStateInput {
|
|
@@ -4707,4 +4894,4 @@ interface SzenenViewProps {
|
|
|
4707
4894
|
}
|
|
4708
4895
|
declare const SzenenView: React__default.FC<SzenenViewProps>;
|
|
4709
4896
|
|
|
4710
|
-
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 PromptRunFilter, type PromptRunGroup, type PromptRunListing, type PromptRunOutcome, type PromptRunOutput, type PromptRunPersistencePort, type PromptRunRecord, type PromptRunRecordedPayload, type PromptRunSource, type PromptRunStatusFilter, 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, contextOfRun, 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, groupKeyOf, groupOf, gruppiereZuItems, hasPlacementCapability, isKnownElementType, isSzenenItemId, istSzenenSnapshotDatei, istZipDatei, itemIdForRun, itemsAusBestand, jobsForPromptRun, ladeVorschauen, leseBilderAusZip, locatorAus, locatorTeile, logRevisionOf, mergeSnapshotAndPending, mergeSzenenBatchOrigin, mimeTypAus, mitDefaultVorlage, namingElementOf, 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, selectPromptRuns, selectableTargetModels, siblingsOf, sourceOf, szenenSnapshotFilename, totalModelCalls, typAusBytes, unclassifiedPublishRules, unsupportedReason };
|
|
4897
|
+
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, GENERAL_POLICY_SUBTYPE, 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 PolicySnapshot, type PreparePromptOperationInput, type PreparePromptOperationResult, type PreparedPromptOperation, type PromptBatchImageRef, type PromptBatchOrigin, type PromptDiagnostic, type PromptEffect, type PromptExecutionOrigin, type PromptImageBatch, type PromptOperationPreparedPayload, type PromptResponseContract, type PromptRunFilter, type PromptRunGroup, type PromptRunListing, type PromptRunOutcome, type PromptRunOutput, type PromptRunPersistencePort, type PromptRunRecord, type PromptRunRecordedPayload, type PromptRunSource, type PromptRunStatusFilter, 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 ResolvedScenePolicy, 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, type ScenePolicyResult, 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, contextOfRun, 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, groupKeyOf, groupOf, gruppiereZuItems, hasPlacementCapability, isKnownElementType, isSzenenItemId, istSzenenSnapshotDatei, istZipDatei, itemIdForRun, itemsAusBestand, jobsForPromptRun, ladeVorschauen, leseBilderAusZip, locatorAus, locatorTeile, logRevisionOf, mergeSnapshotAndPending, mergeSzenenBatchOrigin, mimeTypAus, mitDefaultVorlage, namingElementOf, noticeFor, ordersForPromptRun, ordneSeedsZu, parseRunResponse, parseSeedListe, parseSzenenSnapshot, preferredHeadRevisionOf, preparePromptOperation, promptDiagnosticsOf, publishedHeadsOf, recoveriesForRun, recoveryStatusOf, reduceElementEvents, resolveArea, resolveGeneralScenePolicies, resolveScenePayload, resolveShot, resolveShotPayload, responseContractOf, roundOfRun, rulesWithoutPromptEffect, runOfOperation, runPromptDerivation, runStoreDifferential, sameResponseAs, sceneOnlyCapabilities, scenePolicyFingerprint, scopeOfPath, seedFehlerText, selectPromptRuns, selectableTargetModels, siblingsOf, sortScenePolicies, sourceOf, szenenSnapshotFilename, totalModelCalls, typAusBytes, unclassifiedPublishRules, unsupportedReason };
|