@rslsp1/fa-app-tools 7.4.0 → 8.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-HUGUH4VB.mjs → chunk-VVGASAYT.mjs} +1019 -683
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +925 -599
- package/dist/index.mjs +3 -3
- package/dist/szenen.d.mts +177 -8
- package/dist/szenen.d.ts +177 -8
- package/dist/szenen.js +853 -504
- package/dist/szenen.mjs +22 -2
- package/package.json +1 -1
package/dist/szenen.mjs
CHANGED
|
@@ -72,6 +72,7 @@ import {
|
|
|
72
72
|
collectSceneDerivations,
|
|
73
73
|
collectVersionRefs,
|
|
74
74
|
compileSchemas,
|
|
75
|
+
contextOfRun,
|
|
75
76
|
createClientDerivationPort,
|
|
76
77
|
createClientRunPort,
|
|
77
78
|
createEventLogDerivationPersistence,
|
|
@@ -115,6 +116,8 @@ import {
|
|
|
115
116
|
generationBatchIdOf,
|
|
116
117
|
gesamtHerkunft,
|
|
117
118
|
getSzenenSchemas,
|
|
119
|
+
groupKeyOf,
|
|
120
|
+
groupOf,
|
|
118
121
|
gruppiereZuItems,
|
|
119
122
|
hasPlacementCapability,
|
|
120
123
|
isKnownElementType,
|
|
@@ -136,6 +139,7 @@ import {
|
|
|
136
139
|
mergeSzenenBatchOrigin,
|
|
137
140
|
mimeTypAus,
|
|
138
141
|
mitDefaultVorlage,
|
|
142
|
+
namingElementOf,
|
|
139
143
|
noticeFor,
|
|
140
144
|
ordersForPromptRun,
|
|
141
145
|
ordneSeedsZu,
|
|
@@ -163,9 +167,12 @@ import {
|
|
|
163
167
|
sceneOnlyCapabilities,
|
|
164
168
|
scopeOfPath,
|
|
165
169
|
seedFehlerText,
|
|
170
|
+
selectPromptRuns,
|
|
166
171
|
selectableTargetModels,
|
|
167
172
|
showChain,
|
|
173
|
+
siblingsOf,
|
|
168
174
|
simulatedAnswerFor,
|
|
175
|
+
sourceOf,
|
|
169
176
|
szenenSnapshotFilename,
|
|
170
177
|
typAusBytes,
|
|
171
178
|
unclassifiedPublishRules,
|
|
@@ -175,7 +182,7 @@ import {
|
|
|
175
182
|
validateElementVersion,
|
|
176
183
|
validatePayload,
|
|
177
184
|
withReference
|
|
178
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-VVGASAYT.mjs";
|
|
179
186
|
import {
|
|
180
187
|
ContractViolation,
|
|
181
188
|
STYLE_PAYLOAD,
|
|
@@ -514,7 +521,7 @@ function createMemoryViewPort(options = {}) {
|
|
|
514
521
|
const itemMedien = /* @__PURE__ */ new Map();
|
|
515
522
|
const runs = {
|
|
516
523
|
async listRunsForShot(shotVersionId) {
|
|
517
|
-
return ok(laeufe.filter((l) => l
|
|
524
|
+
return ok(laeufe.filter((l) => groupKeyOf(l) === `published:${shotVersionId}`));
|
|
518
525
|
},
|
|
519
526
|
async getRun(runId) {
|
|
520
527
|
return ok(laeufe.find((l) => l.run_id === runId) ?? null);
|
|
@@ -598,6 +605,12 @@ function createMemoryViewPort(options = {}) {
|
|
|
598
605
|
return ok(laeufe.filter(
|
|
599
606
|
(r) => r.source?.kind === "scene_direct" && r.source.scene.element_id === sceneElementId
|
|
600
607
|
));
|
|
608
|
+
},
|
|
609
|
+
// P1-A: die gemeinsame Sicht. Auch hier nur die **Form** — gefiltert wird
|
|
610
|
+
// mit `selectPromptRuns()`, derselben Funktion wie im Client und im
|
|
611
|
+
// Server. Ein eigener Filter waere eine zweite Wahrheit.
|
|
612
|
+
async listAllRuns(filter) {
|
|
613
|
+
return ok(selectPromptRuns(laeufe, filter));
|
|
601
614
|
}
|
|
602
615
|
};
|
|
603
616
|
const itemPort = {
|
|
@@ -1858,6 +1871,7 @@ export {
|
|
|
1858
1871
|
collectVersionRefs,
|
|
1859
1872
|
compileSchemas,
|
|
1860
1873
|
completePromptOperation,
|
|
1874
|
+
contextOfRun,
|
|
1861
1875
|
createBrowserTextGenerationPort,
|
|
1862
1876
|
createClientDerivationPort,
|
|
1863
1877
|
createClientRunPort,
|
|
@@ -1908,6 +1922,8 @@ export {
|
|
|
1908
1922
|
generationBatchIdOf,
|
|
1909
1923
|
gesamtHerkunft,
|
|
1910
1924
|
getSzenenSchemas,
|
|
1925
|
+
groupKeyOf,
|
|
1926
|
+
groupOf,
|
|
1911
1927
|
gruppiereZuItems,
|
|
1912
1928
|
hasPlacementCapability,
|
|
1913
1929
|
isKnownElementType,
|
|
@@ -1929,6 +1945,7 @@ export {
|
|
|
1929
1945
|
mergeSzenenBatchOrigin,
|
|
1930
1946
|
mimeTypAus,
|
|
1931
1947
|
mitDefaultVorlage,
|
|
1948
|
+
namingElementOf,
|
|
1932
1949
|
noticeFor,
|
|
1933
1950
|
ordersForPromptRun,
|
|
1934
1951
|
ordneSeedsZu,
|
|
@@ -1964,9 +1981,12 @@ export {
|
|
|
1964
1981
|
sceneOnlyCapabilities,
|
|
1965
1982
|
scopeOfPath,
|
|
1966
1983
|
seedFehlerText,
|
|
1984
|
+
selectPromptRuns,
|
|
1967
1985
|
selectableTargetModels,
|
|
1968
1986
|
showChain,
|
|
1987
|
+
siblingsOf,
|
|
1969
1988
|
simulatedAnswerFor,
|
|
1989
|
+
sourceOf,
|
|
1970
1990
|
szenenSnapshotFilename,
|
|
1971
1991
|
totalModelCalls,
|
|
1972
1992
|
typAusBytes,
|