@rslsp1/fa-app-tools 10.1.3 → 10.3.2

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.
@@ -1,4 +1,18 @@
1
- import { Q as QueryResult, T as TextGenerationPort, C as CommandResult } from './contracts-DdYOMBl9.mjs';
1
+ import { Q as QueryResult, c as TextGenerationPort, C as CommandResult } from './contracts-B3AbzYQ4.js';
2
+
3
+ /** Existing Library vocabulary; a selector is independent of its display text. */
4
+ interface PromptTagSelector {
5
+ category: string;
6
+ label: string;
7
+ }
8
+ interface PromptConstructionTag extends PromptTagSelector {
9
+ value: string;
10
+ context_id: string | null;
11
+ ord?: number;
12
+ }
13
+ declare function promptTagGroup(category: string): string | null;
14
+ declare function effectivePromptVocabulary(tags: readonly PromptConstructionTag[], chain: readonly (string | null)[]): PromptConstructionTag[];
15
+ declare function resolvePromptConstructionTags(selectors: readonly PromptTagSelector[], tags: readonly PromptConstructionTag[], chain: readonly (string | null)[]): PromptConstructionTag[];
2
16
 
3
17
  /** Ein einzelner Validierungsbefund, im Aufbau an ajv angelehnt. */
4
18
  interface SchemaError {
@@ -398,6 +412,7 @@ interface ResolvedVersion {
398
412
  * Regeln arbeiten — kein Datenbankzugriff im Prüfcode (R-2).
399
413
  */
400
414
  interface ReferenceResolver {
415
+ promptConstructionTags?(contextChain: readonly (string | null)[]): Promise<readonly PromptConstructionTag[]>;
401
416
  /** Eine veröffentlichte Version, oder `null`, wenn unbekannt oder Draft. */
402
417
  getVersion(versionId: string): Promise<ResolvedVersion | null>;
403
418
  /**
@@ -430,6 +445,8 @@ interface PublishCheckInput {
430
445
  }[];
431
446
  /** Fehlt er, werden die referenzabhängigen Regeln als ungeprüft gemeldet. */
432
447
  resolver?: ReferenceResolver;
448
+ /** Nur Arbeitsstandsprüfung: Nodes aus dem tatsächlichen Scene-Draft der Kette. */
449
+ chainScene?: unknown;
433
450
  }
434
451
  interface PublishCheckResult {
435
452
  /** `true`, wenn kein `blocking`-Befund vorliegt. */
@@ -925,7 +942,9 @@ interface DraftChainMeta {
925
942
  /** Gemeinsame Kennung aller Knoten **einer** Übernahme. */
926
943
  chain_id: string;
927
944
  /** Der Rekonstruktionslauf, aus dem die Vorschläge stammen. */
928
- source_run_id: string;
945
+ source_run_id?: string;
946
+ /** Manuelle Bearbeitung existierender Szene/Setup; kein erfundener KI-Lauf. */
947
+ origin?: 'stage';
929
948
  /** Gesetzt, wenn der Inhalt aus einer geprüften Arbeitsfassung kam (D-99). */
930
949
  source_recovery_id?: string;
931
950
  links: readonly DraftChainLink[];
@@ -1114,8 +1133,20 @@ interface PromptRunPreviewImage {
1114
1133
  interface PromptRunAnnotation {
1115
1134
  /** Wie viele Bilder dem Lauf ueber seine Batches zugeordnet sind. */
1116
1135
  imageCount: number;
1117
- /** Ein Bild als Vorschau, oder `null` — bei `imageCount === 0` immer `null`. */
1136
+ /**
1137
+ * Ein Bild als Vorschau, oder `null` — bei `imageCount === 0` immer `null`.
1138
+ *
1139
+ * Bleibt, bis alle Verwender auf `previewImages` umgestellt sind; es ist
1140
+ * stets `previewImages[0]` (Kette `szenen-design`, P4).
1141
+ */
1118
1142
  previewImage: PromptRunPreviewImage | null;
1143
+ /**
1144
+ * Bis zu {@link LAUF_VORSCHAU_ANZAHL} Bilder fuer den Bildstreifen der
1145
+ * Laufkarte — die kleinsten `position`s aus dem **ersten** Batch des Laufs,
1146
+ * aufsteigend. Dieselbe stabile Wahl wie `previewImage`: Spaeter angehaengte
1147
+ * Batches verschieben den Streifen nicht. Leer bei `imageCount === 0`.
1148
+ */
1149
+ previewImages: readonly PromptRunPreviewImage[];
1119
1150
  /**
1120
1151
  * Die Library-Items dieses Laufs. Sie stehen hier, weil die Tag-Herkunft
1121
1152
  * daran haengt und der Host sonst nicht wuesste, welche Items er nachschlagen
@@ -1150,39 +1181,96 @@ interface AnnotateRunsOptions {
1150
1181
  * Die Vorschau ist das Bild mit der kleinsten `position` im **ersten** Batch
1151
1182
  * des Laufs. Stabil gewaehlt und nicht geraten: Dieselbe Karte zeigt morgen
1152
1183
  * dasselbe Bild, auch wenn spaeter Batches dazukommen (D-113 — ein Lauf bleibt
1153
- * ein Item, weitere Batches werden angehaengt).
1184
+ * ein Item, weitere Batches werden angehaengt). Der Bildstreifen
1185
+ * (`previewImages`) folgt derselben Regel: die ersten
1186
+ * {@link LAUF_VORSCHAU_ANZAHL} Positionen dieses Batches.
1154
1187
  */
1155
1188
  declare function annotateRunsFromEvents(events: readonly ElementEvent[], options?: AnnotateRunsOptions): ReadonlyMap<string, PromptRunAnnotation>;
1156
1189
  /** Die Annotation eines Laufs, oder die leere Aussage „keine Bilder". */
1157
1190
  declare const KEINE_BILDER: PromptRunAnnotation;
1191
+ /**
1192
+ * Woher das Deckbild eines Elements kommt (Kette `szenen-design`, P6).
1193
+ *
1194
+ * - `automatisch` — keine eigene Wahl; es gilt die Vorschau des juengsten
1195
+ * Laufs mit Bildern.
1196
+ * - `gewaehlt` — `metadata.cover_media_ref` gehoert zu einem Batch eines
1197
+ * Laufs dieses Elements und ist das Deckbild.
1198
+ * - `gewaehlt_fehlt` — es gibt eine Wahl, aber ihr Locator gehoert zu keinem
1199
+ * Batch eines Laufs dieses Elements. Das Deckbild ist automatisch gewaehlt;
1200
+ * die Oberflaeche sagt das sichtbar, statt es still zu ersetzen.
1201
+ */
1202
+ type TitelbildHerkunft = 'automatisch' | 'gewaehlt' | 'gewaehlt_fehlt';
1158
1203
  /** Was eine Elementkarte ueber die Ergebnisse ihres Elements weiss. */
1159
1204
  interface ElementAnnotation {
1160
1205
  /** Bilder ueber **alle** Laeufe dieses Elements. */
1161
1206
  imageCount: number;
1162
1207
  /** Das Deckbild, oder `null`. */
1163
1208
  previewImage: PromptRunPreviewImage | null;
1209
+ /** Ob das Deckbild von Hand gewaehlt oder automatisch ist (P6). */
1210
+ titelbild: TitelbildHerkunft;
1164
1211
  /** Die Library-Items aller Laeufe — der Nachschlagepunkt fuer die Tags. */
1165
1212
  itemIds: readonly string[];
1166
1213
  /** Die direkten Tags der Laeufe, zusammengefuehrt ueber das Label. */
1167
1214
  promptTags: readonly LibraryTagRef[];
1168
1215
  /** Die Tags der zugeordneten Library-Items, ebenso zusammengefuehrt. */
1169
1216
  libraryTags: readonly LibraryTagRef[];
1217
+ /**
1218
+ * Zeitstempel (`ts` des Ereignisses, ms) des juengsten Drafts, der juengsten
1219
+ * Version oder des juengsten Laufs dieses Elements — oder `null`, wenn es
1220
+ * nichts davon gibt.
1221
+ *
1222
+ * `ElementRecord` hat keinen Zeitstempel; dieser hier ist abgeleitet und
1223
+ * wird nirgends gespeichert. Das **Maximum** und nicht das letzte Ereignis
1224
+ * im Log: Der Log ist nach Pfad sortiert, nicht nach Zeit.
1225
+ */
1226
+ lastActivityAt: number | null;
1227
+ /**
1228
+ * Die Node-Typen der Szene aus ihrem **aktuellen Stand**, je Typ einmal in
1229
+ * der Reihenfolge des ersten Auftretens.
1230
+ *
1231
+ * Aktueller Stand ist derselbe, den ein Szene-Direktlauf einfriert: der
1232
+ * Draft, sonst der wirksame Kopf entlang der Kontextkette (D-36). `null`,
1233
+ * wenn das Element keine Szene ist, es keinen solchen Stand gibt (mehrere
1234
+ * Koepfe ohne Auswahl, keine Kontextkette fuer die Kopfaufloesung) oder die
1235
+ * Payload keine `nodes` fuehrt. `[]` ist eine Szene ohne Nodes.
1236
+ */
1237
+ nodeTypes: readonly string[] | null;
1238
+ }
1239
+ interface AnnotateElementsOptions extends AnnotateRunsOptions {
1240
+ /**
1241
+ * Die wirksame Kontextkette fuer die Kopfaufloesung der `nodeTypes`.
1242
+ *
1243
+ * Fehlt sie, kommen `nodeTypes` nur aus einem Draft: Ohne Kette gibt es
1244
+ * keinen wirksamen Kopf, und die neueste Version an seine Stelle zu setzen
1245
+ * waere die Zeitstempel-Heuristik, die R-3 ausschliesst.
1246
+ */
1247
+ contextChain?: readonly (string | null)[] | null;
1170
1248
  }
1171
1249
  /**
1172
- * Die Annotationen **aller** Elemente, die mindestens einen Lauf haben.
1250
+ * Die Annotationen **aller** Elemente mit mindestens einem Lauf, Draft oder
1251
+ * einer Version.
1173
1252
  *
1174
- * Ein Durchgang ueber die Laeufe in Logreihenfolge. Welches Element zu einem
1175
- * Lauf gehoert, entscheidet `namingElementOf()` — dieselbe Funktion, aus der
1176
- * die Laufliste ihren Titel holt. Zwei Zuordnungsregeln waeren zwei
1177
- * Wahrheiten darueber, wessen Lauf das ist.
1253
+ * Ein Durchgang über die Läufe in Logreihenfolge. Für Szenen entscheidet
1254
+ * `sceneElementOf()` aus dem eingefrorenen Input und seiner historischen
1255
+ * Provenienz, wie in der Szenenhistorie. Aktuelle Heads werden nicht aufgelöst.
1178
1256
  *
1179
1257
  * Das Deckbild ist die Vorschau des **juengsten** Laufs mit Bildern. Anders
1180
1258
  * als bei der Promptkarte, die ihr erstes Bild behaelt: Eine Szene wird
1181
1259
  * weiterbearbeitet, und ihr Deckbild soll den aktuellen Stand zeigen, nicht
1182
1260
  * den ersten Versuch. Deterministisch bleibt es trotzdem — dieselben
1183
1261
  * Ereignisse ergeben dasselbe Bild.
1262
+ *
1263
+ * `lastActivityAt` und `nodeTypes` kommen aus demselben Log: die Zeitstempel
1264
+ * aus einem Durchgang ueber die Ereignisse, der Stand aus
1265
+ * `reduceElementEvents()` — demselben Reducer, aus dem `getElement()` liest.
1266
+ *
1267
+ * **Von Hand gewaehltes Deckbild (P6).** `metadata.cover_media_ref` aus
1268
+ * demselben Reducer gilt, wenn der Locator zu einem Batch eines Laufs dieses
1269
+ * Elements gehoert. Sonst bleibt die Automatik, und `titelbild` sagt
1270
+ * `gewaehlt_fehlt`. Die Wahl liegt im Log, also ergeben dieselben Ereignisse
1271
+ * dasselbe Deckbild.
1184
1272
  */
1185
- declare function annotateElementsFromEvents(events: readonly ElementEvent[], options?: AnnotateRunsOptions): ReadonlyMap<string, ElementAnnotation>;
1273
+ declare function annotateElementsFromEvents(events: readonly ElementEvent[], options?: AnnotateElementsOptions): ReadonlyMap<string, ElementAnnotation>;
1186
1274
 
1187
1275
  /** Element-Stammsatz (`elements`, §2.1). Nach Anlage unveränderlich: `id`, `type`. */
1188
1276
  /** Der Filter beider Elementlisten — ein Typ, damit sie nicht auseinanderlaufen. */
@@ -1215,6 +1303,13 @@ interface ElementMetadata {
1215
1303
  /** Autorensprache des Titels. */
1216
1304
  locale: string;
1217
1305
  revision: number;
1306
+ /**
1307
+ * Das von Hand gewählte Titelbild — ein `media_ref` aus einem Batch eines
1308
+ * Laufs dieses Elements (D-118). `null` = automatisch (Kette `szenen-design`,
1309
+ * P6). Ob der Locator noch zu einem Lauf gehört, entscheidet die Ableitung
1310
+ * in `annotateElementsFromEvents()`, nicht dieses Feld.
1311
+ */
1312
+ cover_media_ref?: string | null;
1218
1313
  }
1219
1314
  /** Veröffentlichte Elementversion (`element_versions`, §2.3). Unveränderlich (D-02). */
1220
1315
  interface PublishedVersion extends VersionNode {
@@ -1300,15 +1395,19 @@ interface PublishRejected {
1300
1395
  type SzenenCommandResult<T, C = T> = CommandResult<T> | WriteConflict<C> | PublishRejected;
1301
1396
  /** Lesezugriffe auf den Elementspeicher. */
1302
1397
  interface SzenenQueries {
1398
+ /** Existing vocabulary, supplied by the host. No separate tag storage. */
1399
+ listPromptConstructionTags?(): Promise<QueryResult<readonly PromptConstructionTag[]>>;
1303
1400
  /** Alle Elemente eines Kontexts, optional nach einem Typ oder einer Typmenge gefiltert. */
1304
1401
  listElements(filter?: ElementListFilter): Promise<QueryResult<readonly ElementRecord[]>>;
1305
1402
  /**
1306
1403
  * **Eine Seite** Elemente, neueste zuerst — Kette `szenen-listen-pagination`.
1307
1404
  *
1308
1405
  * Derselbe Speicher, derselbe Filter, dieselbe Sichtbarkeitsregel wie
1309
- * `listElements`; nur wird nicht alles uebertragen. „Neueste zuerst" ist die
1310
- * umgekehrte Reihenfolge des Ereignislogs — ein Element traegt keinen
1311
- * Zeitstempel, und einen zu erfinden waere eine Aussage ohne Beleg (D-75).
1406
+ * `listElements`; nur wird nicht alles uebertragen. „Neueste zuerst" heisst
1407
+ * juengste Aktivitaet zuerst (`annotatedElementsPageOver`, Kette
1408
+ * `szenen-design`): Ein Element traegt selbst keinen Zeitstempel, abgeleitet
1409
+ * wird er aus dem Log. Ein Host ohne lesbaren Log liefert die umgekehrte
1410
+ * Logreihenfolge und keine Annotationen (D-75).
1312
1411
  *
1313
1412
  * `listElements` bleibt unveraendert: Die Zielmodellauflösung, die
1314
1413
  * Kontextsichtbarkeit und die Policy-Suche brauchen **alle** Kandidaten und
@@ -1399,6 +1498,31 @@ interface ElementPage extends Page<ElementRecord> {
1399
1498
  annotations?: Readonly<Record<string, ElementAnnotation>>;
1400
1499
  }
1401
1500
  declare function listElementsPageOver(liste: (filter?: ElementListFilter) => Promise<QueryResult<readonly ElementRecord[]>>, filter?: ElementListFilter, page?: PageRequest | null): Promise<QueryResult<Page<ElementRecord>>>;
1501
+ /**
1502
+ * Ordnet Elemente nach Aktivitaet, juengste zuerst — Kette `szenen-design`, P2.
1503
+ *
1504
+ * Die Eingabe ist die Logreihenfolge von `listElements`. Gleichstand und
1505
+ * Eintraege ohne Aktivitaet behalten die bisherige Ordnung „neueste
1506
+ * zuerst" (umgekehrte Logreihenfolge): Die Sortierung ist stabil, und ohne
1507
+ * Zeitstempel entscheidet weiter, was belegbar ist.
1508
+ */
1509
+ declare function elementsByActivity<T>(logOrder: readonly T[], activityOf: (eintrag: T) => number | null | undefined): T[];
1510
+ /**
1511
+ * Eine Seite Elemente **mit** Annotationen, nach Aktivitaet geordnet und erst
1512
+ * dann geschnitten — die eine Implementierung fuer Server und Flow.
1513
+ *
1514
+ * Geordnet wird vor `pageOf()`, sonst stimmte „Neueste" nur innerhalb einer
1515
+ * Seite, und die Karte „Zuletzt bearbeitet" zeigte die juengste Szene der
1516
+ * ersten Seite statt die juengste. Sortierschluessel ist `lastActivityAt`;
1517
+ * ein Element ohne Draft, Version und Lauf steht mit seinem Anlagezeitpunkt
1518
+ * dazwischen — eine eben angelegte Szene ist die neueste, auch bevor jemand
1519
+ * an ihr schreibt.
1520
+ *
1521
+ * Der Cursor bleibt eine Kennung (`pagination.ts`). Aendert sich zwischen
1522
+ * zwei Seiten die Aktivitaet, verschiebt sich die Ordnung; der Seitenschnitt
1523
+ * meldet einen verschwundenen Cursor weiterhin laut.
1524
+ */
1525
+ declare function annotatedElementsPageOver(liste: (filter?: ElementListFilter) => Promise<QueryResult<readonly ElementRecord[]>>, events: readonly ElementEvent[], filter?: ElementListFilter, page?: PageRequest | null, options?: AnnotateElementsOptions): Promise<QueryResult<ElementPage>>;
1402
1526
  /**
1403
1527
  * Macht aus einem Lese-Port den `ReferenceResolver` der Publish-Prüfungen.
1404
1528
  *
@@ -1479,6 +1603,8 @@ interface ReviseMetadataInput {
1479
1603
  description?: string | null;
1480
1604
  /** Fehlt = unverändert. */
1481
1605
  locale?: string;
1606
+ /** Titelbild (P6). Fehlt = unverändert. `null` = automatisch. */
1607
+ cover_media_ref?: string | null;
1482
1608
  expectedRevision: number;
1483
1609
  }
1484
1610
  /**
@@ -1928,4 +2054,4 @@ interface ContractRunResult {
1928
2054
  */
1929
2055
  declare function runElementStoreContract(harness: ElementStoreContractHarness): Promise<ContractRunResult>;
1930
2056
 
1931
- export { type Page as $, ALL_PUBLISH_RULES as A, type DerivationProposal as B, CHAIN_EDGES as C, DERIVABLE_TYPES as D, type DraftChainLink as E, type DraftChainMeta as F, type DraftFork as G, type DraftRecord as H, type ElementAnnotation as I, type ElementEvent as J, type ElementListFilter as K, type ElementMetadata as L, type ElementRecord as M, type ElementSnapshot as N, type ElementStoreContractHarness as O, type ElementStoreState as P, type ElementVersionValidation as Q, type FindingSeverity as R, type ImageBatchPersistedImage as S, type ImageBatchPersistedPayload as T, type ImageProvenance as U, KEINE_BILDER as V, LOAD_MORE_PAGE_SIZE as W, type LibraryTagRef as X, type NotDerivable as Y, type OptionalCommand as Z, PROBE_VERSION_ID as _, type AngezeigterTag as a, collectPromptRunTags as a$, type PageRequest as a0, type ParentRelation as a1, type PreferredHeadOutcome as a2, type PreferredHeadResolution as a3, type PreferredHeadSelection as a4, type PreferredHeadSource as a5, type ProjectionState as a6, type ProjectionStatus as a7, type PromptRunAnnotation as a8, type PromptRunPreviewImage as a9, type SzenenCommands as aA, type SzenenElementStore as aB, type SzenenElementType as aC, type SzenenProjection as aD, type SzenenQueries as aE, type TagHerkunft as aF, type TargetModelCandidate as aG, type TargetModelQueries as aH, type TargetModelQuery as aI, type TargetModelResolution as aJ, UnsupportedSchemaError as aK, type UnusableProposal as aL, type VersionDag as aM, VersionDagError as aN, type VersionNode as aO, type VersionParentLink as aP, type WriteConflict as aQ, type WriteDraftInput as aR, annotateElementsFromEvents as aS, annotateRunsFromEvents as aT, assessDerivationResponse as aU, buildSystemInstruction as aV, buildUserPrompt as aW, buildVersionDag as aX, checkChainTargets as aY, checkDerivationResponse as aZ, checkDraftChainMeta as a_, type PromptRunTagsSetPayload as aa, type PublishCheckInput as ab, type PublishCheckResult as ac, type PublishFinding as ad, type PublishRejected as ae, type PublishVersionInput as af, type PublishedVersion as ag, REFERENCE_FIELD as ah, type ReducerFinding as ai, type ReferenceResolver as aj, type ResolvePreferredHeadOptions as ak, type ResolvedVersion as al, type ReviseMetadataInput as am, STYLE_PAYLOAD as an, STYLE_PAYLOAD_V2 as ao, SZENEN_ELEMENT_TYPES as ap, SZENEN_EVENT_PREFIX as aq, SZENEN_EVENT_TYPES as ar, type SceneDerivationInput as as, type SceneDerivationOutcome as at, type SceneDerivationOutput as au, type SchemaError as av, type SchemaValidationResult as aw, type SetPreferredHeadInput as ax, type StoreAuthority as ay, type SzenenCommandResult as az, type AnnotateRunsOptions as b, collectVersionRefs as b0, compileSchemas as b1, createSimulationSceneDerivationPort as b2, describeTargetModelFailure as b3, draftRevisionOf as b4, elementStoreContractChecks as b5, formatSchemaErrors as b6, getSzenenSchemas as b7, isOk as b8, isProjectionCurrent as b9, labelsOf as ba, linkFor as bb, listElementsPageOver as bc, logRevisionOf as bd, mergeRunTags as be, pageOf as bf, pageRequestFrom as bg, parseDerivationResponse as bh, preferredHeadRevisionOf as bi, preferredVersionId as bj, promptRunTagsOf as bk, reduceElementEvents as bl, resolvePreferredHead as bm, resolveTargetModelOver as bn, resolverFromQueries as bo, runElementStoreContract as bp, runPublishChecks as bq, runSceneDerivation as br, showChain as bs, tagRefsAus as bt, validateAgainst as bu, validateDerivationInput as bv, validateElementVersion as bw, validatePayload as bx, withReference as by, type AuthoritativeSzenenStore as c, CHAIN_LINK_FIELDS as d, type CatalogueEntry as e, type ChainLinkField as f, type ChainTarget as g, type ChainVerdict as h, type CompiledSchemas as i, type ContextChainPort as j, type ContractCheck as k, type ContractCheckResult as l, type ContractRunResult as m, ContractViolation as n, type CreateElementInput as o, type DerivableType as p, type DerivationAssessment as q, type DerivationConflict as r, type DerivationDiagnostic as s, type DerivationEnvelope as t, type DerivationFailure as u, type DerivationFailureClass as v, type DerivationFollowUp as w, type DerivationImage as x, type DerivationInputMode as y, type DerivationPolicyPayload as z };
2057
+ export { PROBE_VERSION_ID as $, ALL_PUBLISH_RULES as A, type DerivationPolicyPayload as B, CHAIN_EDGES as C, DERIVABLE_TYPES as D, type DerivationProposal as E, type DraftChainLink as F, type DraftChainMeta as G, type DraftFork as H, type DraftRecord as I, type ElementAnnotation as J, type ElementEvent as K, type ElementListFilter as L, type ElementMetadata as M, type ElementRecord as N, type ElementSnapshot as O, type ElementStoreContractHarness as P, type ElementStoreState as Q, type ElementVersionValidation as R, type FindingSeverity as S, type ImageBatchPersistedImage as T, type ImageBatchPersistedPayload as U, type ImageProvenance as V, KEINE_BILDER as W, LOAD_MORE_PAGE_SIZE as X, type LibraryTagRef as Y, type NotDerivable as Z, type OptionalCommand as _, type AngezeigterTag as a, buildVersionDag as a$, type Page as a0, type PageRequest as a1, type ParentRelation as a2, type PreferredHeadOutcome as a3, type PreferredHeadResolution as a4, type PreferredHeadSelection as a5, type PreferredHeadSource as a6, type ProjectionState as a7, type ProjectionStatus as a8, type PromptConstructionTag as a9, type SetPreferredHeadInput as aA, type StoreAuthority as aB, type SzenenCommandResult as aC, type SzenenCommands as aD, type SzenenElementStore as aE, type SzenenElementType as aF, type SzenenProjection as aG, type SzenenQueries as aH, type TagHerkunft as aI, type TargetModelCandidate as aJ, type TargetModelQueries as aK, type TargetModelQuery as aL, type TargetModelResolution as aM, UnsupportedSchemaError as aN, type UnusableProposal as aO, type VersionDag as aP, VersionDagError as aQ, type VersionNode as aR, type VersionParentLink as aS, type WriteConflict as aT, type WriteDraftInput as aU, annotateElementsFromEvents as aV, annotateRunsFromEvents as aW, annotatedElementsPageOver as aX, assessDerivationResponse as aY, buildSystemInstruction as aZ, buildUserPrompt as a_, type PromptRunAnnotation as aa, type PromptRunPreviewImage as ab, type PromptRunTagsSetPayload as ac, type PromptTagSelector as ad, type PublishCheckInput as ae, type PublishCheckResult as af, type PublishFinding as ag, type PublishRejected as ah, type PublishVersionInput as ai, type PublishedVersion as aj, REFERENCE_FIELD as ak, type ReducerFinding as al, type ReferenceResolver as am, type ResolvePreferredHeadOptions as an, type ResolvedVersion as ao, type ReviseMetadataInput as ap, STYLE_PAYLOAD as aq, STYLE_PAYLOAD_V2 as ar, SZENEN_ELEMENT_TYPES as as, SZENEN_EVENT_PREFIX as at, SZENEN_EVENT_TYPES as au, type SceneDerivationInput as av, type SceneDerivationOutcome as aw, type SceneDerivationOutput as ax, type SchemaError as ay, type SchemaValidationResult as az, type AnnotateElementsOptions as b, checkChainTargets as b0, checkDerivationResponse as b1, checkDraftChainMeta as b2, collectPromptRunTags as b3, collectVersionRefs as b4, compileSchemas as b5, createSimulationSceneDerivationPort as b6, describeTargetModelFailure as b7, draftRevisionOf as b8, effectivePromptVocabulary as b9, showChain as bA, tagRefsAus as bB, validateAgainst as bC, validateDerivationInput as bD, validateElementVersion as bE, validatePayload as bF, withReference as bG, elementStoreContractChecks as ba, elementsByActivity as bb, formatSchemaErrors as bc, getSzenenSchemas as bd, isOk as be, isProjectionCurrent as bf, labelsOf as bg, linkFor as bh, listElementsPageOver as bi, logRevisionOf as bj, mergeRunTags as bk, pageOf as bl, pageRequestFrom as bm, parseDerivationResponse as bn, preferredHeadRevisionOf as bo, preferredVersionId as bp, promptRunTagsOf as bq, promptTagGroup as br, reduceElementEvents as bs, resolvePreferredHead as bt, resolvePromptConstructionTags as bu, resolveTargetModelOver as bv, resolverFromQueries as bw, runElementStoreContract as bx, runPublishChecks as by, runSceneDerivation as bz, type AnnotateRunsOptions as c, type AuthoritativeSzenenStore as d, CHAIN_LINK_FIELDS as e, type CatalogueEntry as f, type ChainLinkField as g, type ChainTarget as h, type ChainVerdict as i, type CompiledSchemas as j, type ContextChainPort as k, type ContractCheck as l, type ContractCheckResult as m, type ContractRunResult as n, ContractViolation as o, type CreateElementInput as p, type DerivableType as q, type DerivationAssessment as r, type DerivationConflict as s, type DerivationDiagnostic as t, type DerivationEnvelope as u, type DerivationFailure as v, type DerivationFailureClass as w, type DerivationFollowUp as x, type DerivationImage as y, type DerivationInputMode as z };
@@ -1,4 +1,18 @@
1
- import { Q as QueryResult, T as TextGenerationPort, C as CommandResult } from './contracts-DdYOMBl9.js';
1
+ import { Q as QueryResult, c as TextGenerationPort, C as CommandResult } from './contracts-B3AbzYQ4.mjs';
2
+
3
+ /** Existing Library vocabulary; a selector is independent of its display text. */
4
+ interface PromptTagSelector {
5
+ category: string;
6
+ label: string;
7
+ }
8
+ interface PromptConstructionTag extends PromptTagSelector {
9
+ value: string;
10
+ context_id: string | null;
11
+ ord?: number;
12
+ }
13
+ declare function promptTagGroup(category: string): string | null;
14
+ declare function effectivePromptVocabulary(tags: readonly PromptConstructionTag[], chain: readonly (string | null)[]): PromptConstructionTag[];
15
+ declare function resolvePromptConstructionTags(selectors: readonly PromptTagSelector[], tags: readonly PromptConstructionTag[], chain: readonly (string | null)[]): PromptConstructionTag[];
2
16
 
3
17
  /** Ein einzelner Validierungsbefund, im Aufbau an ajv angelehnt. */
4
18
  interface SchemaError {
@@ -398,6 +412,7 @@ interface ResolvedVersion {
398
412
  * Regeln arbeiten — kein Datenbankzugriff im Prüfcode (R-2).
399
413
  */
400
414
  interface ReferenceResolver {
415
+ promptConstructionTags?(contextChain: readonly (string | null)[]): Promise<readonly PromptConstructionTag[]>;
401
416
  /** Eine veröffentlichte Version, oder `null`, wenn unbekannt oder Draft. */
402
417
  getVersion(versionId: string): Promise<ResolvedVersion | null>;
403
418
  /**
@@ -430,6 +445,8 @@ interface PublishCheckInput {
430
445
  }[];
431
446
  /** Fehlt er, werden die referenzabhängigen Regeln als ungeprüft gemeldet. */
432
447
  resolver?: ReferenceResolver;
448
+ /** Nur Arbeitsstandsprüfung: Nodes aus dem tatsächlichen Scene-Draft der Kette. */
449
+ chainScene?: unknown;
433
450
  }
434
451
  interface PublishCheckResult {
435
452
  /** `true`, wenn kein `blocking`-Befund vorliegt. */
@@ -925,7 +942,9 @@ interface DraftChainMeta {
925
942
  /** Gemeinsame Kennung aller Knoten **einer** Übernahme. */
926
943
  chain_id: string;
927
944
  /** Der Rekonstruktionslauf, aus dem die Vorschläge stammen. */
928
- source_run_id: string;
945
+ source_run_id?: string;
946
+ /** Manuelle Bearbeitung existierender Szene/Setup; kein erfundener KI-Lauf. */
947
+ origin?: 'stage';
929
948
  /** Gesetzt, wenn der Inhalt aus einer geprüften Arbeitsfassung kam (D-99). */
930
949
  source_recovery_id?: string;
931
950
  links: readonly DraftChainLink[];
@@ -1114,8 +1133,20 @@ interface PromptRunPreviewImage {
1114
1133
  interface PromptRunAnnotation {
1115
1134
  /** Wie viele Bilder dem Lauf ueber seine Batches zugeordnet sind. */
1116
1135
  imageCount: number;
1117
- /** Ein Bild als Vorschau, oder `null` — bei `imageCount === 0` immer `null`. */
1136
+ /**
1137
+ * Ein Bild als Vorschau, oder `null` — bei `imageCount === 0` immer `null`.
1138
+ *
1139
+ * Bleibt, bis alle Verwender auf `previewImages` umgestellt sind; es ist
1140
+ * stets `previewImages[0]` (Kette `szenen-design`, P4).
1141
+ */
1118
1142
  previewImage: PromptRunPreviewImage | null;
1143
+ /**
1144
+ * Bis zu {@link LAUF_VORSCHAU_ANZAHL} Bilder fuer den Bildstreifen der
1145
+ * Laufkarte — die kleinsten `position`s aus dem **ersten** Batch des Laufs,
1146
+ * aufsteigend. Dieselbe stabile Wahl wie `previewImage`: Spaeter angehaengte
1147
+ * Batches verschieben den Streifen nicht. Leer bei `imageCount === 0`.
1148
+ */
1149
+ previewImages: readonly PromptRunPreviewImage[];
1119
1150
  /**
1120
1151
  * Die Library-Items dieses Laufs. Sie stehen hier, weil die Tag-Herkunft
1121
1152
  * daran haengt und der Host sonst nicht wuesste, welche Items er nachschlagen
@@ -1150,39 +1181,96 @@ interface AnnotateRunsOptions {
1150
1181
  * Die Vorschau ist das Bild mit der kleinsten `position` im **ersten** Batch
1151
1182
  * des Laufs. Stabil gewaehlt und nicht geraten: Dieselbe Karte zeigt morgen
1152
1183
  * dasselbe Bild, auch wenn spaeter Batches dazukommen (D-113 — ein Lauf bleibt
1153
- * ein Item, weitere Batches werden angehaengt).
1184
+ * ein Item, weitere Batches werden angehaengt). Der Bildstreifen
1185
+ * (`previewImages`) folgt derselben Regel: die ersten
1186
+ * {@link LAUF_VORSCHAU_ANZAHL} Positionen dieses Batches.
1154
1187
  */
1155
1188
  declare function annotateRunsFromEvents(events: readonly ElementEvent[], options?: AnnotateRunsOptions): ReadonlyMap<string, PromptRunAnnotation>;
1156
1189
  /** Die Annotation eines Laufs, oder die leere Aussage „keine Bilder". */
1157
1190
  declare const KEINE_BILDER: PromptRunAnnotation;
1191
+ /**
1192
+ * Woher das Deckbild eines Elements kommt (Kette `szenen-design`, P6).
1193
+ *
1194
+ * - `automatisch` — keine eigene Wahl; es gilt die Vorschau des juengsten
1195
+ * Laufs mit Bildern.
1196
+ * - `gewaehlt` — `metadata.cover_media_ref` gehoert zu einem Batch eines
1197
+ * Laufs dieses Elements und ist das Deckbild.
1198
+ * - `gewaehlt_fehlt` — es gibt eine Wahl, aber ihr Locator gehoert zu keinem
1199
+ * Batch eines Laufs dieses Elements. Das Deckbild ist automatisch gewaehlt;
1200
+ * die Oberflaeche sagt das sichtbar, statt es still zu ersetzen.
1201
+ */
1202
+ type TitelbildHerkunft = 'automatisch' | 'gewaehlt' | 'gewaehlt_fehlt';
1158
1203
  /** Was eine Elementkarte ueber die Ergebnisse ihres Elements weiss. */
1159
1204
  interface ElementAnnotation {
1160
1205
  /** Bilder ueber **alle** Laeufe dieses Elements. */
1161
1206
  imageCount: number;
1162
1207
  /** Das Deckbild, oder `null`. */
1163
1208
  previewImage: PromptRunPreviewImage | null;
1209
+ /** Ob das Deckbild von Hand gewaehlt oder automatisch ist (P6). */
1210
+ titelbild: TitelbildHerkunft;
1164
1211
  /** Die Library-Items aller Laeufe — der Nachschlagepunkt fuer die Tags. */
1165
1212
  itemIds: readonly string[];
1166
1213
  /** Die direkten Tags der Laeufe, zusammengefuehrt ueber das Label. */
1167
1214
  promptTags: readonly LibraryTagRef[];
1168
1215
  /** Die Tags der zugeordneten Library-Items, ebenso zusammengefuehrt. */
1169
1216
  libraryTags: readonly LibraryTagRef[];
1217
+ /**
1218
+ * Zeitstempel (`ts` des Ereignisses, ms) des juengsten Drafts, der juengsten
1219
+ * Version oder des juengsten Laufs dieses Elements — oder `null`, wenn es
1220
+ * nichts davon gibt.
1221
+ *
1222
+ * `ElementRecord` hat keinen Zeitstempel; dieser hier ist abgeleitet und
1223
+ * wird nirgends gespeichert. Das **Maximum** und nicht das letzte Ereignis
1224
+ * im Log: Der Log ist nach Pfad sortiert, nicht nach Zeit.
1225
+ */
1226
+ lastActivityAt: number | null;
1227
+ /**
1228
+ * Die Node-Typen der Szene aus ihrem **aktuellen Stand**, je Typ einmal in
1229
+ * der Reihenfolge des ersten Auftretens.
1230
+ *
1231
+ * Aktueller Stand ist derselbe, den ein Szene-Direktlauf einfriert: der
1232
+ * Draft, sonst der wirksame Kopf entlang der Kontextkette (D-36). `null`,
1233
+ * wenn das Element keine Szene ist, es keinen solchen Stand gibt (mehrere
1234
+ * Koepfe ohne Auswahl, keine Kontextkette fuer die Kopfaufloesung) oder die
1235
+ * Payload keine `nodes` fuehrt. `[]` ist eine Szene ohne Nodes.
1236
+ */
1237
+ nodeTypes: readonly string[] | null;
1238
+ }
1239
+ interface AnnotateElementsOptions extends AnnotateRunsOptions {
1240
+ /**
1241
+ * Die wirksame Kontextkette fuer die Kopfaufloesung der `nodeTypes`.
1242
+ *
1243
+ * Fehlt sie, kommen `nodeTypes` nur aus einem Draft: Ohne Kette gibt es
1244
+ * keinen wirksamen Kopf, und die neueste Version an seine Stelle zu setzen
1245
+ * waere die Zeitstempel-Heuristik, die R-3 ausschliesst.
1246
+ */
1247
+ contextChain?: readonly (string | null)[] | null;
1170
1248
  }
1171
1249
  /**
1172
- * Die Annotationen **aller** Elemente, die mindestens einen Lauf haben.
1250
+ * Die Annotationen **aller** Elemente mit mindestens einem Lauf, Draft oder
1251
+ * einer Version.
1173
1252
  *
1174
- * Ein Durchgang ueber die Laeufe in Logreihenfolge. Welches Element zu einem
1175
- * Lauf gehoert, entscheidet `namingElementOf()` — dieselbe Funktion, aus der
1176
- * die Laufliste ihren Titel holt. Zwei Zuordnungsregeln waeren zwei
1177
- * Wahrheiten darueber, wessen Lauf das ist.
1253
+ * Ein Durchgang über die Läufe in Logreihenfolge. Für Szenen entscheidet
1254
+ * `sceneElementOf()` aus dem eingefrorenen Input und seiner historischen
1255
+ * Provenienz, wie in der Szenenhistorie. Aktuelle Heads werden nicht aufgelöst.
1178
1256
  *
1179
1257
  * Das Deckbild ist die Vorschau des **juengsten** Laufs mit Bildern. Anders
1180
1258
  * als bei der Promptkarte, die ihr erstes Bild behaelt: Eine Szene wird
1181
1259
  * weiterbearbeitet, und ihr Deckbild soll den aktuellen Stand zeigen, nicht
1182
1260
  * den ersten Versuch. Deterministisch bleibt es trotzdem — dieselben
1183
1261
  * Ereignisse ergeben dasselbe Bild.
1262
+ *
1263
+ * `lastActivityAt` und `nodeTypes` kommen aus demselben Log: die Zeitstempel
1264
+ * aus einem Durchgang ueber die Ereignisse, der Stand aus
1265
+ * `reduceElementEvents()` — demselben Reducer, aus dem `getElement()` liest.
1266
+ *
1267
+ * **Von Hand gewaehltes Deckbild (P6).** `metadata.cover_media_ref` aus
1268
+ * demselben Reducer gilt, wenn der Locator zu einem Batch eines Laufs dieses
1269
+ * Elements gehoert. Sonst bleibt die Automatik, und `titelbild` sagt
1270
+ * `gewaehlt_fehlt`. Die Wahl liegt im Log, also ergeben dieselben Ereignisse
1271
+ * dasselbe Deckbild.
1184
1272
  */
1185
- declare function annotateElementsFromEvents(events: readonly ElementEvent[], options?: AnnotateRunsOptions): ReadonlyMap<string, ElementAnnotation>;
1273
+ declare function annotateElementsFromEvents(events: readonly ElementEvent[], options?: AnnotateElementsOptions): ReadonlyMap<string, ElementAnnotation>;
1186
1274
 
1187
1275
  /** Element-Stammsatz (`elements`, §2.1). Nach Anlage unveränderlich: `id`, `type`. */
1188
1276
  /** Der Filter beider Elementlisten — ein Typ, damit sie nicht auseinanderlaufen. */
@@ -1215,6 +1303,13 @@ interface ElementMetadata {
1215
1303
  /** Autorensprache des Titels. */
1216
1304
  locale: string;
1217
1305
  revision: number;
1306
+ /**
1307
+ * Das von Hand gewählte Titelbild — ein `media_ref` aus einem Batch eines
1308
+ * Laufs dieses Elements (D-118). `null` = automatisch (Kette `szenen-design`,
1309
+ * P6). Ob der Locator noch zu einem Lauf gehört, entscheidet die Ableitung
1310
+ * in `annotateElementsFromEvents()`, nicht dieses Feld.
1311
+ */
1312
+ cover_media_ref?: string | null;
1218
1313
  }
1219
1314
  /** Veröffentlichte Elementversion (`element_versions`, §2.3). Unveränderlich (D-02). */
1220
1315
  interface PublishedVersion extends VersionNode {
@@ -1300,15 +1395,19 @@ interface PublishRejected {
1300
1395
  type SzenenCommandResult<T, C = T> = CommandResult<T> | WriteConflict<C> | PublishRejected;
1301
1396
  /** Lesezugriffe auf den Elementspeicher. */
1302
1397
  interface SzenenQueries {
1398
+ /** Existing vocabulary, supplied by the host. No separate tag storage. */
1399
+ listPromptConstructionTags?(): Promise<QueryResult<readonly PromptConstructionTag[]>>;
1303
1400
  /** Alle Elemente eines Kontexts, optional nach einem Typ oder einer Typmenge gefiltert. */
1304
1401
  listElements(filter?: ElementListFilter): Promise<QueryResult<readonly ElementRecord[]>>;
1305
1402
  /**
1306
1403
  * **Eine Seite** Elemente, neueste zuerst — Kette `szenen-listen-pagination`.
1307
1404
  *
1308
1405
  * Derselbe Speicher, derselbe Filter, dieselbe Sichtbarkeitsregel wie
1309
- * `listElements`; nur wird nicht alles uebertragen. „Neueste zuerst" ist die
1310
- * umgekehrte Reihenfolge des Ereignislogs — ein Element traegt keinen
1311
- * Zeitstempel, und einen zu erfinden waere eine Aussage ohne Beleg (D-75).
1406
+ * `listElements`; nur wird nicht alles uebertragen. „Neueste zuerst" heisst
1407
+ * juengste Aktivitaet zuerst (`annotatedElementsPageOver`, Kette
1408
+ * `szenen-design`): Ein Element traegt selbst keinen Zeitstempel, abgeleitet
1409
+ * wird er aus dem Log. Ein Host ohne lesbaren Log liefert die umgekehrte
1410
+ * Logreihenfolge und keine Annotationen (D-75).
1312
1411
  *
1313
1412
  * `listElements` bleibt unveraendert: Die Zielmodellauflösung, die
1314
1413
  * Kontextsichtbarkeit und die Policy-Suche brauchen **alle** Kandidaten und
@@ -1399,6 +1498,31 @@ interface ElementPage extends Page<ElementRecord> {
1399
1498
  annotations?: Readonly<Record<string, ElementAnnotation>>;
1400
1499
  }
1401
1500
  declare function listElementsPageOver(liste: (filter?: ElementListFilter) => Promise<QueryResult<readonly ElementRecord[]>>, filter?: ElementListFilter, page?: PageRequest | null): Promise<QueryResult<Page<ElementRecord>>>;
1501
+ /**
1502
+ * Ordnet Elemente nach Aktivitaet, juengste zuerst — Kette `szenen-design`, P2.
1503
+ *
1504
+ * Die Eingabe ist die Logreihenfolge von `listElements`. Gleichstand und
1505
+ * Eintraege ohne Aktivitaet behalten die bisherige Ordnung „neueste
1506
+ * zuerst" (umgekehrte Logreihenfolge): Die Sortierung ist stabil, und ohne
1507
+ * Zeitstempel entscheidet weiter, was belegbar ist.
1508
+ */
1509
+ declare function elementsByActivity<T>(logOrder: readonly T[], activityOf: (eintrag: T) => number | null | undefined): T[];
1510
+ /**
1511
+ * Eine Seite Elemente **mit** Annotationen, nach Aktivitaet geordnet und erst
1512
+ * dann geschnitten — die eine Implementierung fuer Server und Flow.
1513
+ *
1514
+ * Geordnet wird vor `pageOf()`, sonst stimmte „Neueste" nur innerhalb einer
1515
+ * Seite, und die Karte „Zuletzt bearbeitet" zeigte die juengste Szene der
1516
+ * ersten Seite statt die juengste. Sortierschluessel ist `lastActivityAt`;
1517
+ * ein Element ohne Draft, Version und Lauf steht mit seinem Anlagezeitpunkt
1518
+ * dazwischen — eine eben angelegte Szene ist die neueste, auch bevor jemand
1519
+ * an ihr schreibt.
1520
+ *
1521
+ * Der Cursor bleibt eine Kennung (`pagination.ts`). Aendert sich zwischen
1522
+ * zwei Seiten die Aktivitaet, verschiebt sich die Ordnung; der Seitenschnitt
1523
+ * meldet einen verschwundenen Cursor weiterhin laut.
1524
+ */
1525
+ declare function annotatedElementsPageOver(liste: (filter?: ElementListFilter) => Promise<QueryResult<readonly ElementRecord[]>>, events: readonly ElementEvent[], filter?: ElementListFilter, page?: PageRequest | null, options?: AnnotateElementsOptions): Promise<QueryResult<ElementPage>>;
1402
1526
  /**
1403
1527
  * Macht aus einem Lese-Port den `ReferenceResolver` der Publish-Prüfungen.
1404
1528
  *
@@ -1479,6 +1603,8 @@ interface ReviseMetadataInput {
1479
1603
  description?: string | null;
1480
1604
  /** Fehlt = unverändert. */
1481
1605
  locale?: string;
1606
+ /** Titelbild (P6). Fehlt = unverändert. `null` = automatisch. */
1607
+ cover_media_ref?: string | null;
1482
1608
  expectedRevision: number;
1483
1609
  }
1484
1610
  /**
@@ -1928,4 +2054,4 @@ interface ContractRunResult {
1928
2054
  */
1929
2055
  declare function runElementStoreContract(harness: ElementStoreContractHarness): Promise<ContractRunResult>;
1930
2056
 
1931
- export { type Page as $, ALL_PUBLISH_RULES as A, type DerivationProposal as B, CHAIN_EDGES as C, DERIVABLE_TYPES as D, type DraftChainLink as E, type DraftChainMeta as F, type DraftFork as G, type DraftRecord as H, type ElementAnnotation as I, type ElementEvent as J, type ElementListFilter as K, type ElementMetadata as L, type ElementRecord as M, type ElementSnapshot as N, type ElementStoreContractHarness as O, type ElementStoreState as P, type ElementVersionValidation as Q, type FindingSeverity as R, type ImageBatchPersistedImage as S, type ImageBatchPersistedPayload as T, type ImageProvenance as U, KEINE_BILDER as V, LOAD_MORE_PAGE_SIZE as W, type LibraryTagRef as X, type NotDerivable as Y, type OptionalCommand as Z, PROBE_VERSION_ID as _, type AngezeigterTag as a, collectPromptRunTags as a$, type PageRequest as a0, type ParentRelation as a1, type PreferredHeadOutcome as a2, type PreferredHeadResolution as a3, type PreferredHeadSelection as a4, type PreferredHeadSource as a5, type ProjectionState as a6, type ProjectionStatus as a7, type PromptRunAnnotation as a8, type PromptRunPreviewImage as a9, type SzenenCommands as aA, type SzenenElementStore as aB, type SzenenElementType as aC, type SzenenProjection as aD, type SzenenQueries as aE, type TagHerkunft as aF, type TargetModelCandidate as aG, type TargetModelQueries as aH, type TargetModelQuery as aI, type TargetModelResolution as aJ, UnsupportedSchemaError as aK, type UnusableProposal as aL, type VersionDag as aM, VersionDagError as aN, type VersionNode as aO, type VersionParentLink as aP, type WriteConflict as aQ, type WriteDraftInput as aR, annotateElementsFromEvents as aS, annotateRunsFromEvents as aT, assessDerivationResponse as aU, buildSystemInstruction as aV, buildUserPrompt as aW, buildVersionDag as aX, checkChainTargets as aY, checkDerivationResponse as aZ, checkDraftChainMeta as a_, type PromptRunTagsSetPayload as aa, type PublishCheckInput as ab, type PublishCheckResult as ac, type PublishFinding as ad, type PublishRejected as ae, type PublishVersionInput as af, type PublishedVersion as ag, REFERENCE_FIELD as ah, type ReducerFinding as ai, type ReferenceResolver as aj, type ResolvePreferredHeadOptions as ak, type ResolvedVersion as al, type ReviseMetadataInput as am, STYLE_PAYLOAD as an, STYLE_PAYLOAD_V2 as ao, SZENEN_ELEMENT_TYPES as ap, SZENEN_EVENT_PREFIX as aq, SZENEN_EVENT_TYPES as ar, type SceneDerivationInput as as, type SceneDerivationOutcome as at, type SceneDerivationOutput as au, type SchemaError as av, type SchemaValidationResult as aw, type SetPreferredHeadInput as ax, type StoreAuthority as ay, type SzenenCommandResult as az, type AnnotateRunsOptions as b, collectVersionRefs as b0, compileSchemas as b1, createSimulationSceneDerivationPort as b2, describeTargetModelFailure as b3, draftRevisionOf as b4, elementStoreContractChecks as b5, formatSchemaErrors as b6, getSzenenSchemas as b7, isOk as b8, isProjectionCurrent as b9, labelsOf as ba, linkFor as bb, listElementsPageOver as bc, logRevisionOf as bd, mergeRunTags as be, pageOf as bf, pageRequestFrom as bg, parseDerivationResponse as bh, preferredHeadRevisionOf as bi, preferredVersionId as bj, promptRunTagsOf as bk, reduceElementEvents as bl, resolvePreferredHead as bm, resolveTargetModelOver as bn, resolverFromQueries as bo, runElementStoreContract as bp, runPublishChecks as bq, runSceneDerivation as br, showChain as bs, tagRefsAus as bt, validateAgainst as bu, validateDerivationInput as bv, validateElementVersion as bw, validatePayload as bx, withReference as by, type AuthoritativeSzenenStore as c, CHAIN_LINK_FIELDS as d, type CatalogueEntry as e, type ChainLinkField as f, type ChainTarget as g, type ChainVerdict as h, type CompiledSchemas as i, type ContextChainPort as j, type ContractCheck as k, type ContractCheckResult as l, type ContractRunResult as m, ContractViolation as n, type CreateElementInput as o, type DerivableType as p, type DerivationAssessment as q, type DerivationConflict as r, type DerivationDiagnostic as s, type DerivationEnvelope as t, type DerivationFailure as u, type DerivationFailureClass as v, type DerivationFollowUp as w, type DerivationImage as x, type DerivationInputMode as y, type DerivationPolicyPayload as z };
2057
+ export { PROBE_VERSION_ID as $, ALL_PUBLISH_RULES as A, type DerivationPolicyPayload as B, CHAIN_EDGES as C, DERIVABLE_TYPES as D, type DerivationProposal as E, type DraftChainLink as F, type DraftChainMeta as G, type DraftFork as H, type DraftRecord as I, type ElementAnnotation as J, type ElementEvent as K, type ElementListFilter as L, type ElementMetadata as M, type ElementRecord as N, type ElementSnapshot as O, type ElementStoreContractHarness as P, type ElementStoreState as Q, type ElementVersionValidation as R, type FindingSeverity as S, type ImageBatchPersistedImage as T, type ImageBatchPersistedPayload as U, type ImageProvenance as V, KEINE_BILDER as W, LOAD_MORE_PAGE_SIZE as X, type LibraryTagRef as Y, type NotDerivable as Z, type OptionalCommand as _, type AngezeigterTag as a, buildVersionDag as a$, type Page as a0, type PageRequest as a1, type ParentRelation as a2, type PreferredHeadOutcome as a3, type PreferredHeadResolution as a4, type PreferredHeadSelection as a5, type PreferredHeadSource as a6, type ProjectionState as a7, type ProjectionStatus as a8, type PromptConstructionTag as a9, type SetPreferredHeadInput as aA, type StoreAuthority as aB, type SzenenCommandResult as aC, type SzenenCommands as aD, type SzenenElementStore as aE, type SzenenElementType as aF, type SzenenProjection as aG, type SzenenQueries as aH, type TagHerkunft as aI, type TargetModelCandidate as aJ, type TargetModelQueries as aK, type TargetModelQuery as aL, type TargetModelResolution as aM, UnsupportedSchemaError as aN, type UnusableProposal as aO, type VersionDag as aP, VersionDagError as aQ, type VersionNode as aR, type VersionParentLink as aS, type WriteConflict as aT, type WriteDraftInput as aU, annotateElementsFromEvents as aV, annotateRunsFromEvents as aW, annotatedElementsPageOver as aX, assessDerivationResponse as aY, buildSystemInstruction as aZ, buildUserPrompt as a_, type PromptRunAnnotation as aa, type PromptRunPreviewImage as ab, type PromptRunTagsSetPayload as ac, type PromptTagSelector as ad, type PublishCheckInput as ae, type PublishCheckResult as af, type PublishFinding as ag, type PublishRejected as ah, type PublishVersionInput as ai, type PublishedVersion as aj, REFERENCE_FIELD as ak, type ReducerFinding as al, type ReferenceResolver as am, type ResolvePreferredHeadOptions as an, type ResolvedVersion as ao, type ReviseMetadataInput as ap, STYLE_PAYLOAD as aq, STYLE_PAYLOAD_V2 as ar, SZENEN_ELEMENT_TYPES as as, SZENEN_EVENT_PREFIX as at, SZENEN_EVENT_TYPES as au, type SceneDerivationInput as av, type SceneDerivationOutcome as aw, type SceneDerivationOutput as ax, type SchemaError as ay, type SchemaValidationResult as az, type AnnotateElementsOptions as b, checkChainTargets as b0, checkDerivationResponse as b1, checkDraftChainMeta as b2, collectPromptRunTags as b3, collectVersionRefs as b4, compileSchemas as b5, createSimulationSceneDerivationPort as b6, describeTargetModelFailure as b7, draftRevisionOf as b8, effectivePromptVocabulary as b9, showChain as bA, tagRefsAus as bB, validateAgainst as bC, validateDerivationInput as bD, validateElementVersion as bE, validatePayload as bF, withReference as bG, elementStoreContractChecks as ba, elementsByActivity as bb, formatSchemaErrors as bc, getSzenenSchemas as bd, isOk as be, isProjectionCurrent as bf, labelsOf as bg, linkFor as bh, listElementsPageOver as bi, logRevisionOf as bj, mergeRunTags as bk, pageOf as bl, pageRequestFrom as bm, parseDerivationResponse as bn, preferredHeadRevisionOf as bo, preferredVersionId as bp, promptRunTagsOf as bq, promptTagGroup as br, reduceElementEvents as bs, resolvePreferredHead as bt, resolvePromptConstructionTags as bu, resolveTargetModelOver as bv, resolverFromQueries as bw, runElementStoreContract as bx, runPublishChecks as by, runSceneDerivation as bz, type AnnotateRunsOptions as c, type AuthoritativeSzenenStore as d, CHAIN_LINK_FIELDS as e, type CatalogueEntry as f, type ChainLinkField as g, type ChainTarget as h, type ChainVerdict as i, type CompiledSchemas as j, type ContextChainPort as k, type ContractCheck as l, type ContractCheckResult as m, type ContractRunResult as n, ContractViolation as o, type CreateElementInput as p, type DerivableType as q, type DerivationAssessment as r, type DerivationConflict as s, type DerivationDiagnostic as t, type DerivationEnvelope as u, type DerivationFailure as v, type DerivationFailureClass as w, type DerivationFollowUp as x, type DerivationImage as y, type DerivationInputMode as z };
@@ -1,5 +1,5 @@
1
- import { O as ElementStoreContractHarness } from './storeContract-CJi0fpCA.mjs';
2
- import './contracts-DdYOMBl9.mjs';
1
+ import { P as ElementStoreContractHarness } from './storeContract-Cc8tFavd.mjs';
2
+ import './contracts-B3AbzYQ4.mjs';
3
3
 
4
4
  /**
5
5
  * Hängt die Vertragssuite an die laufende vitest-Datei.
@@ -1,5 +1,5 @@
1
- import { O as ElementStoreContractHarness } from './storeContract-gc2dxews.js';
2
- import './contracts-DdYOMBl9.js';
1
+ import { P as ElementStoreContractHarness } from './storeContract-C-em5E61.js';
2
+ import './contracts-B3AbzYQ4.js';
3
3
 
4
4
  /**
5
5
  * Hängt die Vertragssuite an die laufende vitest-Datei.