@rslsp1/fa-app-tools 7.4.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/szenen.mjs CHANGED
@@ -8,6 +8,7 @@ import {
8
8
  DERIVABLE_TYPES,
9
9
  ELEMENT_VERSION_SCHEMA_FILE,
10
10
  FLOW_EXECUTION_PATH,
11
+ GENERAL_POLICY_SUBTYPE,
11
12
  MAX_PROPOSAL_TITLE_LENGTH,
12
13
  PROBE_VERSION_ID,
13
14
  PROMPT_RULE_EFFECT,
@@ -72,6 +73,7 @@ import {
72
73
  collectSceneDerivations,
73
74
  collectVersionRefs,
74
75
  compileSchemas,
76
+ contextOfRun,
75
77
  createClientDerivationPort,
76
78
  createClientRunPort,
77
79
  createEventLogDerivationPersistence,
@@ -115,6 +117,8 @@ import {
115
117
  generationBatchIdOf,
116
118
  gesamtHerkunft,
117
119
  getSzenenSchemas,
120
+ groupKeyOf,
121
+ groupOf,
118
122
  gruppiereZuItems,
119
123
  hasPlacementCapability,
120
124
  isKnownElementType,
@@ -136,6 +140,7 @@ import {
136
140
  mergeSzenenBatchOrigin,
137
141
  mimeTypAus,
138
142
  mitDefaultVorlage,
143
+ namingElementOf,
139
144
  noticeFor,
140
145
  ordersForPromptRun,
141
146
  ordneSeedsZu,
@@ -150,6 +155,7 @@ import {
150
155
  recoveryStatusOf,
151
156
  reduceElementEvents,
152
157
  resolveArea,
158
+ resolveGeneralScenePolicies,
153
159
  resolveScenePayload,
154
160
  resolveShot,
155
161
  resolveShotPayload,
@@ -161,11 +167,16 @@ import {
161
167
  runPublishChecks,
162
168
  runSceneDerivation,
163
169
  sceneOnlyCapabilities,
170
+ scenePolicyFingerprint,
164
171
  scopeOfPath,
165
172
  seedFehlerText,
173
+ selectPromptRuns,
166
174
  selectableTargetModels,
167
175
  showChain,
176
+ siblingsOf,
168
177
  simulatedAnswerFor,
178
+ sortScenePolicies,
179
+ sourceOf,
169
180
  szenenSnapshotFilename,
170
181
  typAusBytes,
171
182
  unclassifiedPublishRules,
@@ -175,7 +186,7 @@ import {
175
186
  validateElementVersion,
176
187
  validatePayload,
177
188
  withReference
178
- } from "./chunk-HUGUH4VB.mjs";
189
+ } from "./chunk-2ADFDRFX.mjs";
179
190
  import {
180
191
  ContractViolation,
181
192
  STYLE_PAYLOAD,
@@ -514,7 +525,7 @@ function createMemoryViewPort(options = {}) {
514
525
  const itemMedien = /* @__PURE__ */ new Map();
515
526
  const runs = {
516
527
  async listRunsForShot(shotVersionId) {
517
- return ok(laeufe.filter((l) => l.shot_version_id === shotVersionId));
528
+ return ok(laeufe.filter((l) => groupKeyOf(l) === `published:${shotVersionId}`));
518
529
  },
519
530
  async getRun(runId) {
520
531
  return ok(laeufe.find((l) => l.run_id === runId) ?? null);
@@ -598,6 +609,12 @@ function createMemoryViewPort(options = {}) {
598
609
  return ok(laeufe.filter(
599
610
  (r) => r.source?.kind === "scene_direct" && r.source.scene.element_id === sceneElementId
600
611
  ));
612
+ },
613
+ // P1-A: die gemeinsame Sicht. Auch hier nur die **Form** — gefiltert wird
614
+ // mit `selectPromptRuns()`, derselben Funktion wie im Client und im
615
+ // Server. Ein eigener Filter waere eine zweite Wahrheit.
616
+ async listAllRuns(filter) {
617
+ return ok(selectPromptRuns(laeufe, filter));
601
618
  }
602
619
  };
603
620
  const itemPort = {
@@ -1784,6 +1801,7 @@ export {
1784
1801
  DERIVABLE_TYPES,
1785
1802
  ELEMENT_VERSION_SCHEMA_FILE,
1786
1803
  FLOW_EXECUTION_PATH,
1804
+ GENERAL_POLICY_SUBTYPE,
1787
1805
  MCP_CLIENT_PROVIDER,
1788
1806
  PROBE_VERSION_ID,
1789
1807
  PROMPT_RULE_EFFECT,
@@ -1858,6 +1876,7 @@ export {
1858
1876
  collectVersionRefs,
1859
1877
  compileSchemas,
1860
1878
  completePromptOperation,
1879
+ contextOfRun,
1861
1880
  createBrowserTextGenerationPort,
1862
1881
  createClientDerivationPort,
1863
1882
  createClientRunPort,
@@ -1908,6 +1927,8 @@ export {
1908
1927
  generationBatchIdOf,
1909
1928
  gesamtHerkunft,
1910
1929
  getSzenenSchemas,
1930
+ groupKeyOf,
1931
+ groupOf,
1911
1932
  gruppiereZuItems,
1912
1933
  hasPlacementCapability,
1913
1934
  isKnownElementType,
@@ -1929,6 +1950,7 @@ export {
1929
1950
  mergeSzenenBatchOrigin,
1930
1951
  mimeTypAus,
1931
1952
  mitDefaultVorlage,
1953
+ namingElementOf,
1932
1954
  noticeFor,
1933
1955
  ordersForPromptRun,
1934
1956
  ordneSeedsZu,
@@ -1945,6 +1967,7 @@ export {
1945
1967
  recoveryStatusOf,
1946
1968
  reduceElementEvents,
1947
1969
  resolveArea,
1970
+ resolveGeneralScenePolicies,
1948
1971
  resolvePreferredHead,
1949
1972
  resolveScenePayload,
1950
1973
  resolveShot,
@@ -1962,11 +1985,16 @@ export {
1962
1985
  runStoreDifferential,
1963
1986
  sameResponseAs,
1964
1987
  sceneOnlyCapabilities,
1988
+ scenePolicyFingerprint,
1965
1989
  scopeOfPath,
1966
1990
  seedFehlerText,
1991
+ selectPromptRuns,
1967
1992
  selectableTargetModels,
1968
1993
  showChain,
1994
+ siblingsOf,
1969
1995
  simulatedAnswerFor,
1996
+ sortScenePolicies,
1997
+ sourceOf,
1970
1998
  szenenSnapshotFilename,
1971
1999
  totalModelCalls,
1972
2000
  typAusBytes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rslsp1/fa-app-tools",
3
- "version": "7.4.0",
3
+ "version": "9.0.0",
4
4
  "description": "Shared tools and hooks for Fine Art flow apps",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",