@rslsp1/fa-app-tools 10.1.3 → 10.3.3

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.
@@ -163,4 +163,4 @@ type CommandResult<T> = {
163
163
  retryable: boolean;
164
164
  };
165
165
 
166
- export { type CommandResult as C, type FeatureSliceId as F, type LoadResult as L, type PersistedSlice as P, type QueryResult as Q, type RequestContext as R, SIMULATION_PROVIDER as S, type TextGenerationPort as T, type WorkspacePersistence as W, type PersistenceDescriptor as a, type SliceContract as b, type TextGenerationRequest as c, type TextGenerationResult as d, type WorkspaceTabId as e, type WriteResult as f, createFakeTextGenerationPort as g, createSimulationTextGenerationPort as h, simulatedAnswerFor as s };
166
+ export { type CommandResult as C, type FeatureSliceId as F, type LoadResult as L, type PersistedSlice as P, type QueryResult as Q, type RequestContext as R, SIMULATION_PROVIDER as S, type TextGenerationImage as T, type WorkspacePersistence as W, type PersistenceDescriptor as a, type SliceContract as b, type TextGenerationPort as c, type TextGenerationRequest as d, type TextGenerationResult as e, type WorkspaceTabId as f, type WriteResult as g, createFakeTextGenerationPort as h, createSimulationTextGenerationPort as i, simulatedAnswerFor as s };
@@ -163,4 +163,4 @@ type CommandResult<T> = {
163
163
  retryable: boolean;
164
164
  };
165
165
 
166
- export { type CommandResult as C, type FeatureSliceId as F, type LoadResult as L, type PersistedSlice as P, type QueryResult as Q, type RequestContext as R, SIMULATION_PROVIDER as S, type TextGenerationPort as T, type WorkspacePersistence as W, type PersistenceDescriptor as a, type SliceContract as b, type TextGenerationRequest as c, type TextGenerationResult as d, type WorkspaceTabId as e, type WriteResult as f, createFakeTextGenerationPort as g, createSimulationTextGenerationPort as h, simulatedAnswerFor as s };
166
+ export { type CommandResult as C, type FeatureSliceId as F, type LoadResult as L, type PersistedSlice as P, type QueryResult as Q, type RequestContext as R, SIMULATION_PROVIDER as S, type TextGenerationImage as T, type WorkspacePersistence as W, type PersistenceDescriptor as a, type SliceContract as b, type TextGenerationPort as c, type TextGenerationRequest as d, type TextGenerationResult as e, type WorkspaceTabId as f, type WriteResult as g, createFakeTextGenerationPort as h, createSimulationTextGenerationPort as i, simulatedAnswerFor as s };
@@ -1,4 +1,4 @@
1
- import { T as TextGenerationPort } from './contracts-DdYOMBl9.mjs';
1
+ import { c as TextGenerationPort } from './contracts-B3AbzYQ4.mjs';
2
2
 
3
3
  interface TagOption {
4
4
  label: string;
@@ -100,6 +100,17 @@ interface HFMetadataEntry {
100
100
  filename?: string;
101
101
  hasThumb?: boolean;
102
102
  titleTs?: number;
103
+ /** Display metadata, independent of prompt identity. */
104
+ title?: string;
105
+ /** Upload origin; only server is excluded by the Library sync (#511). */
106
+ source?: 'server' | 'flow' | 'external';
107
+ flow_provenance?: {
108
+ kind: 'szenen';
109
+ prompt_run_id: string;
110
+ generation_batch_id: string;
111
+ position: number;
112
+ source_kind: 'generated_in_app' | 'external_import';
113
+ };
103
114
  }
104
115
 
105
116
  declare function buildGenerationPrompt(hierarchyText: string, mode?: 'literal' | 'creative'): string;
@@ -1,4 +1,4 @@
1
- import { T as TextGenerationPort } from './contracts-DdYOMBl9.js';
1
+ import { c as TextGenerationPort } from './contracts-B3AbzYQ4.js';
2
2
 
3
3
  interface TagOption {
4
4
  label: string;
@@ -100,6 +100,17 @@ interface HFMetadataEntry {
100
100
  filename?: string;
101
101
  hasThumb?: boolean;
102
102
  titleTs?: number;
103
+ /** Display metadata, independent of prompt identity. */
104
+ title?: string;
105
+ /** Upload origin; only server is excluded by the Library sync (#511). */
106
+ source?: 'server' | 'flow' | 'external';
107
+ flow_provenance?: {
108
+ kind: 'szenen';
109
+ prompt_run_id: string;
110
+ generation_batch_id: string;
111
+ position: number;
112
+ source_kind: 'generated_in_app' | 'external_import';
113
+ };
103
114
  }
104
115
 
105
116
  declare function buildGenerationPrompt(hierarchyText: string, mode?: 'literal' | 'creative'): string;
package/dist/index.d.mts CHANGED
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { RefObject, ReactNode } from 'react';
3
- import { G as Generation, W as WorkspaceTags, F as FlowGenerateText, b as FlowTextGenerationOptions, j as SelectedTag, T as TagOption, i as LabServices, h as LabItem, L as LabFrame, S as SelectedLabImage, H as HFEvent, g as HFStateSnapshot } from './hfEventTypes-BUztJySs.mjs';
4
- export { a as FlowSdk, c as HFEventVersion, d as HFFileInfo, e as HFMetadataEntry, f as HFStateMeta, I as ImageAddedPayload, M as MetadataUpdatedPayload, P as ProjectSettings, k as TagUpsertedPayload, l as buildFallbackPrompt, m as buildGenerationPrompt, n as buildImageGenerationOptions, o as buildPromptTabPayload, p as cleanAiResponse, q as createFlowServices, s as interpretSdkError, t as parsePromptResponse } from './hfEventTypes-BUztJySs.mjs';
3
+ import { G as Generation, W as WorkspaceTags, F as FlowGenerateText, b as FlowTextGenerationOptions, j as SelectedTag, T as TagOption, i as LabServices, h as LabItem, L as LabFrame, S as SelectedLabImage, H as HFEvent, g as HFStateSnapshot } from './hfEventTypes-DQPjEP4T.mjs';
4
+ export { a as FlowSdk, c as HFEventVersion, d as HFFileInfo, e as HFMetadataEntry, f as HFStateMeta, I as ImageAddedPayload, M as MetadataUpdatedPayload, P as ProjectSettings, k as TagUpsertedPayload, l as buildFallbackPrompt, m as buildGenerationPrompt, n as buildImageGenerationOptions, o as buildPromptTabPayload, p as cleanAiResponse, q as createFlowServices, s as interpretSdkError, t as parsePromptResponse } from './hfEventTypes-DQPjEP4T.mjs';
5
5
  import { Node, Edge } from '@xyflow/react';
6
6
  import * as zustand_vanilla from 'zustand/vanilla';
7
- import { F as FeatureSliceId, b as SliceContract, a as PersistenceDescriptor, W as WorkspacePersistence, P as PersistedSlice, L as LoadResult, f as WriteResult, e as WorkspaceTabId, C as CommandResult, R as RequestContext, Q as QueryResult } from './contracts-DdYOMBl9.mjs';
7
+ import { F as FeatureSliceId, b as SliceContract, a as PersistenceDescriptor, W as WorkspacePersistence, P as PersistedSlice, L as LoadResult, g as WriteResult, f as WorkspaceTabId, C as CommandResult, R as RequestContext, Q as QueryResult } from './contracts-B3AbzYQ4.mjs';
8
8
 
9
- var version = "10.1.3";
9
+ var version = "10.3.3";
10
10
 
11
11
  declare function useOnClickOutside(ref: RefObject<HTMLElement | null>, handler: (e: MouseEvent | TouchEvent) => void): void;
12
12
 
@@ -316,6 +316,57 @@ interface FlowWorkspacePickerProps {
316
316
  */
317
317
  declare function FlowWorkspacePicker({ tagBase, selectedUserId, message, onSelectUser, onSelectContext, }: FlowWorkspacePickerProps): React.JSX.Element;
318
318
 
319
+ interface FlowBridgeError {
320
+ code: string;
321
+ message: string;
322
+ }
323
+ type FlowBridgeStatus = {
324
+ available: true;
325
+ name: string;
326
+ version: string;
327
+ protocol: number;
328
+ roundTripMs: number;
329
+ } | {
330
+ available: false;
331
+ error: FlowBridgeError;
332
+ roundTripMs: number;
333
+ };
334
+ /** Die einzige freigegebene Anfrage; weitere kommen nur gemeinsam mit der Extension-Allowlist. */
335
+ interface FlowBridgeRequest {
336
+ target: 'dev';
337
+ method: 'GET';
338
+ path: '/api/status';
339
+ }
340
+ interface FlowBridgeResponse {
341
+ ok: boolean;
342
+ transport: string | null;
343
+ status: number | null;
344
+ data: unknown;
345
+ /** Dauer des Server-Requests im Extension-Hintergrund. */
346
+ latencyMs: number | null;
347
+ /** Dauer Seite -> Extension -> Seite. */
348
+ roundTripMs: number;
349
+ error: FlowBridgeError | null;
350
+ }
351
+ interface FlowBridgeClient {
352
+ status(): Promise<FlowBridgeStatus>;
353
+ request(request: FlowBridgeRequest): Promise<FlowBridgeResponse>;
354
+ }
355
+ interface FlowBridgeClientOptions {
356
+ target?: EventTarget;
357
+ appVersion?: string;
358
+ helloTimeoutMs?: number;
359
+ requestTimeoutMs?: number;
360
+ clock?: () => number;
361
+ }
362
+ declare function createFlowBridgeClient({ target, appVersion, helloTimeoutMs, requestTimeoutMs, clock, }?: FlowBridgeClientOptions): FlowBridgeClient;
363
+
364
+ interface FlowBridgePanelProps {
365
+ appVersion?: string;
366
+ client?: FlowBridgeClient;
367
+ }
368
+ declare const FlowBridgePanel: React__default.FC<FlowBridgePanelProps>;
369
+
319
370
  interface CollapsibleCardProps {
320
371
  title: string;
321
372
  icon?: ReactNode;
@@ -580,6 +631,8 @@ interface LibraryViewProps {
580
631
  layout?: 'list' | 'grid';
581
632
  emptyText?: string;
582
633
  /** Host-gerenderte Zusatzaktionen je Item (z.B. Flow-Referenzgenerierung). */
634
+ /** Inline child rows below a list card, e.g. expandable related items. */
635
+ renderItemChildren?: (item: LibraryViewItem) => React__default.ReactNode;
583
636
  renderItemExtras?: (item: LibraryViewItem) => React__default.ReactNode;
584
637
  /** Host-Datenversion: Änderung erzwingt Re-Query (z.B. nach Reload/Import). */
585
638
  dataVersion?: number;
@@ -617,12 +670,22 @@ interface Zugehoerigkeit {
617
670
  */
618
671
  hinweis: string | null;
619
672
  }
620
- /** Das Item, soweit die Zuordnung es überhaupt anschaut. */
673
+ /**
674
+ * Das Item, soweit die Zuordnung es überhaupt anschaut.
675
+ *
676
+ * Seit Issue #503 (E7) ist ein Item ein Prompt und kann **mehrere** Runs
677
+ * führen: `szenen.prompt_run_id` bleibt der Primärlauf (der erste), alle Runs
678
+ * stehen in `szenen.runs[]`; `szenen_run_links` löst sie der Reihe nach auf.
679
+ */
621
680
  interface ZugehoerigkeitEingabe {
622
681
  szenen?: {
623
682
  prompt_run_id?: string | null;
683
+ runs?: ReadonlyArray<{
684
+ prompt_run_id?: string | null;
685
+ }> | null;
624
686
  } | null;
625
687
  szenen_links?: SzenenLinks | null;
688
+ szenen_run_links?: ReadonlyArray<SzenenLinks> | null;
626
689
  }
627
690
  /**
628
691
  * Ob die Zugehörigkeit ein **anklickbares** Ziel hergibt.
@@ -642,6 +705,15 @@ declare function hatNavigationsziele(zugehoerigkeit: Zugehoerigkeit | null | und
642
705
  * Oberfläche zeigt dann gar nichts an.
643
706
  */
644
707
  declare function zugehoerigkeitOf(item: ZugehoerigkeitEingabe | null | undefined): Zugehoerigkeit | null;
708
+ /**
709
+ * Die Zugehörigkeiten **aller** Runs eines Items, in Reihenfolge des
710
+ * Hinzukommens (Primärlauf zuerst). Ein Item mit einem Run liefert genau die
711
+ * Zugehörigkeit von `zugehoerigkeitOf`; ein Item ohne Run eine leere Liste.
712
+ *
713
+ * Additiv zu `zugehoerigkeitOf` (dessen Vertrag unverändert bleibt): Wer nur den
714
+ * Primärlauf zeigt, ruft weiter diese Funktion.
715
+ */
716
+ declare function zugehoerigkeitenOf(item: ZugehoerigkeitEingabe | null | undefined): Zugehoerigkeit[];
645
717
 
646
718
  interface ZugehoerigkeitLinksProps {
647
719
  zugehoerigkeit: Zugehoerigkeit | null;
@@ -974,4 +1046,4 @@ interface UseTagBaseResult {
974
1046
  }
975
1047
  declare function useTagBase(token: string, namespace: string): UseTagBaseResult;
976
1048
 
977
- export { AvatarArchitectApp, type AvatarArchitectAppProps, CURRENT_TAG_EVENT_VERSION, CollapsibleCard, CommandResult, CompactDropdown, type CreateFaStoreOptions, type CreatePersistenceCoordinatorOptions, type ExtractedCharacter, FaApp, type FaAppProps, type FaStore, type FaStoreState, FaToolsBadge, FeatureSliceId, FlowTextGenerationOptions, FlowWorkspacePicker, type FlowWorkspacePickerProps, GLOBAL_STYLES, Generation, HFEvent, type HFStateResult, HFStateSnapshot, HfMediaSyncTab, HistoryPanel, type InMemoryWorkspacePersistence, InspectPanel, LIBRARY_CUTOVER_MARKER, LIBRARY_SLICE_SCHEMA_VERSION, version as LIB_VERSION, LabBlend, LabCompare, LabFrame, LabFrameExtractor, type LabFrameExtractorProps, LabImagePicker, LabItem, LabLoop, LabRemix, LabServices, type LabSlotId, LabsTab, type LegacyMigrationOptions, type LegacyMigrationResult, type LegacyRecentTagRef, type LegacySourceResult, type LibraryCommandName, type LibraryCommands, type LibraryDataSource, type LibraryLegacySource, type LibraryListQuery, type LibraryPage, LibraryView, type LibraryViewItem, type LibraryViewProps, type LibraryViewTag, type LibraryWorkspaceState, ListView, LoadResult, type MediaItem, MediaLibrary, PersistedSlice, type PersistenceCoordinator, PersistenceDescriptor, PillButton, PromptTab, QueryResult, RequestContext, type RunLibraryLegacyImportOptions, type RunTagsLegacyImportOptions, SCOPE_MAP, type SaveState, SectionLabel, SelectedLabImage, SelectedTag, type SelectionValidation, ServerTab, SetupPanel, SliceContract, type SliceMeta, type SzenenLinks, TAGS_CUTOVER_MARKER, TAGS_SLICE_SCHEMA_VERSION, type TagBase, type TagBaseContext, type TagBaseEvent, type TagBaseMeta, TagBaseSection, type TagBaseSectionProps, type TagBaseTagEntry, type TagBaseTagOption, type TagBaseUser, type TagBaseWorkspaceTags, type TagCommandName, type TagCommands, type TagCreatedEvent, type TagCreatedPayload, type TagEntry, type TagEntryInput, TagManager, TagManagerPanel, type TagManagerProps, type TagManagerSelection, TagOption, type TagQueries, type TagUpdateDelta, type TagUpdatedDelta, type TagUpdatedEvent, type TagUpdatedPayload, type TagViewCategory, type TagViewModel, type TagViewOption, type TagViewScope, type TagsWorkspaceState, type UseTagBaseResult, WorkspacePersistence, WorkspaceTabId, WorkspaceTags, WriteResult, type Zugehoerigkeit, type ZugehoerigkeitEingabe, ZugehoerigkeitLinks, type ZugehoerigkeitLinksProps, type ZugehoerigkeitZiel, autoLabel, buildBlendInstruction, buildCompareInstruction, buildLoopInstruction, buildReferenceImageMediaIds, buildRemixInstruction, buildScanInstruction, createFaStore, createInMemoryLibraryDataSource, createInMemoryWorkspacePersistence, createLibraryDefault, createPersistenceCoordinator, createTagCreatedEvent, createTagUpdatedEvent, createTagsDefault, deriveTagBaseWorkspaceTags, deriveTagViewModel, formatTreeToMarkdown, frameToGeneration, getFormattedTimestamp, getHFToken, getSessionClientId, groupGenerationsToLabItems, hatNavigationsziele, hfBatchArchive, hfBootstrapFromLegacy, hfListDir, hfLoadImageAsBase64, hfUploadImage, hfUploadSmallFile, injectXMPMetadata, libraryContract, libraryReactDescriptor, listCategories, loadHFState, loadPendingEvents, loadTagBase, parseLegacyLibraryFilters, parseLegacyRecentTags, parsePromptFile, runLegacyMigration, runLibraryLegacyImport, runTagsLegacyImport, setHFToken, tagsContract, tagsReactDescriptor, tsFromEventPath, useFaSlice, useFaSliceMeta, useHFState, useKeyboardNavigation, useOnClickOutside, useTagBase, validateTagBaseSelection, writeHFEvent, writeTagEvent, zugehoerigkeitOf };
1049
+ export { AvatarArchitectApp, type AvatarArchitectAppProps, CURRENT_TAG_EVENT_VERSION, CollapsibleCard, CommandResult, CompactDropdown, type CreateFaStoreOptions, type CreatePersistenceCoordinatorOptions, type ExtractedCharacter, FaApp, type FaAppProps, type FaStore, type FaStoreState, FaToolsBadge, FeatureSliceId, type FlowBridgeClient, type FlowBridgeError, FlowBridgePanel, type FlowBridgeRequest, type FlowBridgeResponse, type FlowBridgeStatus, FlowTextGenerationOptions, FlowWorkspacePicker, type FlowWorkspacePickerProps, GLOBAL_STYLES, Generation, HFEvent, type HFStateResult, HFStateSnapshot, HfMediaSyncTab, HistoryPanel, type InMemoryWorkspacePersistence, InspectPanel, LIBRARY_CUTOVER_MARKER, LIBRARY_SLICE_SCHEMA_VERSION, version as LIB_VERSION, LabBlend, LabCompare, LabFrame, LabFrameExtractor, type LabFrameExtractorProps, LabImagePicker, LabItem, LabLoop, LabRemix, LabServices, type LabSlotId, LabsTab, type LegacyMigrationOptions, type LegacyMigrationResult, type LegacyRecentTagRef, type LegacySourceResult, type LibraryCommandName, type LibraryCommands, type LibraryDataSource, type LibraryLegacySource, type LibraryListQuery, type LibraryPage, LibraryView, type LibraryViewItem, type LibraryViewProps, type LibraryViewTag, type LibraryWorkspaceState, ListView, LoadResult, type MediaItem, MediaLibrary, PersistedSlice, type PersistenceCoordinator, PersistenceDescriptor, PillButton, PromptTab, QueryResult, RequestContext, type RunLibraryLegacyImportOptions, type RunTagsLegacyImportOptions, SCOPE_MAP, type SaveState, SectionLabel, SelectedLabImage, SelectedTag, type SelectionValidation, ServerTab, SetupPanel, SliceContract, type SliceMeta, type SzenenLinks, TAGS_CUTOVER_MARKER, TAGS_SLICE_SCHEMA_VERSION, type TagBase, type TagBaseContext, type TagBaseEvent, type TagBaseMeta, TagBaseSection, type TagBaseSectionProps, type TagBaseTagEntry, type TagBaseTagOption, type TagBaseUser, type TagBaseWorkspaceTags, type TagCommandName, type TagCommands, type TagCreatedEvent, type TagCreatedPayload, type TagEntry, type TagEntryInput, TagManager, TagManagerPanel, type TagManagerProps, type TagManagerSelection, TagOption, type TagQueries, type TagUpdateDelta, type TagUpdatedDelta, type TagUpdatedEvent, type TagUpdatedPayload, type TagViewCategory, type TagViewModel, type TagViewOption, type TagViewScope, type TagsWorkspaceState, type UseTagBaseResult, WorkspacePersistence, WorkspaceTabId, WorkspaceTags, WriteResult, type Zugehoerigkeit, type ZugehoerigkeitEingabe, ZugehoerigkeitLinks, type ZugehoerigkeitLinksProps, type ZugehoerigkeitZiel, autoLabel, buildBlendInstruction, buildCompareInstruction, buildLoopInstruction, buildReferenceImageMediaIds, buildRemixInstruction, buildScanInstruction, createFaStore, createFlowBridgeClient, createInMemoryLibraryDataSource, createInMemoryWorkspacePersistence, createLibraryDefault, createPersistenceCoordinator, createTagCreatedEvent, createTagUpdatedEvent, createTagsDefault, deriveTagBaseWorkspaceTags, deriveTagViewModel, formatTreeToMarkdown, frameToGeneration, getFormattedTimestamp, getHFToken, getSessionClientId, groupGenerationsToLabItems, hatNavigationsziele, hfBatchArchive, hfBootstrapFromLegacy, hfListDir, hfLoadImageAsBase64, hfUploadImage, hfUploadSmallFile, injectXMPMetadata, libraryContract, libraryReactDescriptor, listCategories, loadHFState, loadPendingEvents, loadTagBase, parseLegacyLibraryFilters, parseLegacyRecentTags, parsePromptFile, runLegacyMigration, runLibraryLegacyImport, runTagsLegacyImport, setHFToken, tagsContract, tagsReactDescriptor, tsFromEventPath, useFaSlice, useFaSliceMeta, useHFState, useKeyboardNavigation, useOnClickOutside, useTagBase, validateTagBaseSelection, writeHFEvent, writeTagEvent, zugehoerigkeitOf, zugehoerigkeitenOf };
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { RefObject, ReactNode } from 'react';
3
- import { G as Generation, W as WorkspaceTags, F as FlowGenerateText, b as FlowTextGenerationOptions, j as SelectedTag, T as TagOption, i as LabServices, h as LabItem, L as LabFrame, S as SelectedLabImage, H as HFEvent, g as HFStateSnapshot } from './hfEventTypes-fAdA-0A9.js';
4
- export { a as FlowSdk, c as HFEventVersion, d as HFFileInfo, e as HFMetadataEntry, f as HFStateMeta, I as ImageAddedPayload, M as MetadataUpdatedPayload, P as ProjectSettings, k as TagUpsertedPayload, l as buildFallbackPrompt, m as buildGenerationPrompt, n as buildImageGenerationOptions, o as buildPromptTabPayload, p as cleanAiResponse, q as createFlowServices, s as interpretSdkError, t as parsePromptResponse } from './hfEventTypes-fAdA-0A9.js';
3
+ import { G as Generation, W as WorkspaceTags, F as FlowGenerateText, b as FlowTextGenerationOptions, j as SelectedTag, T as TagOption, i as LabServices, h as LabItem, L as LabFrame, S as SelectedLabImage, H as HFEvent, g as HFStateSnapshot } from './hfEventTypes-DharkVsi.js';
4
+ export { a as FlowSdk, c as HFEventVersion, d as HFFileInfo, e as HFMetadataEntry, f as HFStateMeta, I as ImageAddedPayload, M as MetadataUpdatedPayload, P as ProjectSettings, k as TagUpsertedPayload, l as buildFallbackPrompt, m as buildGenerationPrompt, n as buildImageGenerationOptions, o as buildPromptTabPayload, p as cleanAiResponse, q as createFlowServices, s as interpretSdkError, t as parsePromptResponse } from './hfEventTypes-DharkVsi.js';
5
5
  import { Node, Edge } from '@xyflow/react';
6
6
  import * as zustand_vanilla from 'zustand/vanilla';
7
- import { F as FeatureSliceId, b as SliceContract, a as PersistenceDescriptor, W as WorkspacePersistence, P as PersistedSlice, L as LoadResult, f as WriteResult, e as WorkspaceTabId, C as CommandResult, R as RequestContext, Q as QueryResult } from './contracts-DdYOMBl9.js';
7
+ import { F as FeatureSliceId, b as SliceContract, a as PersistenceDescriptor, W as WorkspacePersistence, P as PersistedSlice, L as LoadResult, g as WriteResult, f as WorkspaceTabId, C as CommandResult, R as RequestContext, Q as QueryResult } from './contracts-B3AbzYQ4.js';
8
8
 
9
- var version = "10.1.3";
9
+ var version = "10.3.3";
10
10
 
11
11
  declare function useOnClickOutside(ref: RefObject<HTMLElement | null>, handler: (e: MouseEvent | TouchEvent) => void): void;
12
12
 
@@ -316,6 +316,57 @@ interface FlowWorkspacePickerProps {
316
316
  */
317
317
  declare function FlowWorkspacePicker({ tagBase, selectedUserId, message, onSelectUser, onSelectContext, }: FlowWorkspacePickerProps): React.JSX.Element;
318
318
 
319
+ interface FlowBridgeError {
320
+ code: string;
321
+ message: string;
322
+ }
323
+ type FlowBridgeStatus = {
324
+ available: true;
325
+ name: string;
326
+ version: string;
327
+ protocol: number;
328
+ roundTripMs: number;
329
+ } | {
330
+ available: false;
331
+ error: FlowBridgeError;
332
+ roundTripMs: number;
333
+ };
334
+ /** Die einzige freigegebene Anfrage; weitere kommen nur gemeinsam mit der Extension-Allowlist. */
335
+ interface FlowBridgeRequest {
336
+ target: 'dev';
337
+ method: 'GET';
338
+ path: '/api/status';
339
+ }
340
+ interface FlowBridgeResponse {
341
+ ok: boolean;
342
+ transport: string | null;
343
+ status: number | null;
344
+ data: unknown;
345
+ /** Dauer des Server-Requests im Extension-Hintergrund. */
346
+ latencyMs: number | null;
347
+ /** Dauer Seite -> Extension -> Seite. */
348
+ roundTripMs: number;
349
+ error: FlowBridgeError | null;
350
+ }
351
+ interface FlowBridgeClient {
352
+ status(): Promise<FlowBridgeStatus>;
353
+ request(request: FlowBridgeRequest): Promise<FlowBridgeResponse>;
354
+ }
355
+ interface FlowBridgeClientOptions {
356
+ target?: EventTarget;
357
+ appVersion?: string;
358
+ helloTimeoutMs?: number;
359
+ requestTimeoutMs?: number;
360
+ clock?: () => number;
361
+ }
362
+ declare function createFlowBridgeClient({ target, appVersion, helloTimeoutMs, requestTimeoutMs, clock, }?: FlowBridgeClientOptions): FlowBridgeClient;
363
+
364
+ interface FlowBridgePanelProps {
365
+ appVersion?: string;
366
+ client?: FlowBridgeClient;
367
+ }
368
+ declare const FlowBridgePanel: React__default.FC<FlowBridgePanelProps>;
369
+
319
370
  interface CollapsibleCardProps {
320
371
  title: string;
321
372
  icon?: ReactNode;
@@ -580,6 +631,8 @@ interface LibraryViewProps {
580
631
  layout?: 'list' | 'grid';
581
632
  emptyText?: string;
582
633
  /** Host-gerenderte Zusatzaktionen je Item (z.B. Flow-Referenzgenerierung). */
634
+ /** Inline child rows below a list card, e.g. expandable related items. */
635
+ renderItemChildren?: (item: LibraryViewItem) => React__default.ReactNode;
583
636
  renderItemExtras?: (item: LibraryViewItem) => React__default.ReactNode;
584
637
  /** Host-Datenversion: Änderung erzwingt Re-Query (z.B. nach Reload/Import). */
585
638
  dataVersion?: number;
@@ -617,12 +670,22 @@ interface Zugehoerigkeit {
617
670
  */
618
671
  hinweis: string | null;
619
672
  }
620
- /** Das Item, soweit die Zuordnung es überhaupt anschaut. */
673
+ /**
674
+ * Das Item, soweit die Zuordnung es überhaupt anschaut.
675
+ *
676
+ * Seit Issue #503 (E7) ist ein Item ein Prompt und kann **mehrere** Runs
677
+ * führen: `szenen.prompt_run_id` bleibt der Primärlauf (der erste), alle Runs
678
+ * stehen in `szenen.runs[]`; `szenen_run_links` löst sie der Reihe nach auf.
679
+ */
621
680
  interface ZugehoerigkeitEingabe {
622
681
  szenen?: {
623
682
  prompt_run_id?: string | null;
683
+ runs?: ReadonlyArray<{
684
+ prompt_run_id?: string | null;
685
+ }> | null;
624
686
  } | null;
625
687
  szenen_links?: SzenenLinks | null;
688
+ szenen_run_links?: ReadonlyArray<SzenenLinks> | null;
626
689
  }
627
690
  /**
628
691
  * Ob die Zugehörigkeit ein **anklickbares** Ziel hergibt.
@@ -642,6 +705,15 @@ declare function hatNavigationsziele(zugehoerigkeit: Zugehoerigkeit | null | und
642
705
  * Oberfläche zeigt dann gar nichts an.
643
706
  */
644
707
  declare function zugehoerigkeitOf(item: ZugehoerigkeitEingabe | null | undefined): Zugehoerigkeit | null;
708
+ /**
709
+ * Die Zugehörigkeiten **aller** Runs eines Items, in Reihenfolge des
710
+ * Hinzukommens (Primärlauf zuerst). Ein Item mit einem Run liefert genau die
711
+ * Zugehörigkeit von `zugehoerigkeitOf`; ein Item ohne Run eine leere Liste.
712
+ *
713
+ * Additiv zu `zugehoerigkeitOf` (dessen Vertrag unverändert bleibt): Wer nur den
714
+ * Primärlauf zeigt, ruft weiter diese Funktion.
715
+ */
716
+ declare function zugehoerigkeitenOf(item: ZugehoerigkeitEingabe | null | undefined): Zugehoerigkeit[];
645
717
 
646
718
  interface ZugehoerigkeitLinksProps {
647
719
  zugehoerigkeit: Zugehoerigkeit | null;
@@ -974,4 +1046,4 @@ interface UseTagBaseResult {
974
1046
  }
975
1047
  declare function useTagBase(token: string, namespace: string): UseTagBaseResult;
976
1048
 
977
- export { AvatarArchitectApp, type AvatarArchitectAppProps, CURRENT_TAG_EVENT_VERSION, CollapsibleCard, CommandResult, CompactDropdown, type CreateFaStoreOptions, type CreatePersistenceCoordinatorOptions, type ExtractedCharacter, FaApp, type FaAppProps, type FaStore, type FaStoreState, FaToolsBadge, FeatureSliceId, FlowTextGenerationOptions, FlowWorkspacePicker, type FlowWorkspacePickerProps, GLOBAL_STYLES, Generation, HFEvent, type HFStateResult, HFStateSnapshot, HfMediaSyncTab, HistoryPanel, type InMemoryWorkspacePersistence, InspectPanel, LIBRARY_CUTOVER_MARKER, LIBRARY_SLICE_SCHEMA_VERSION, version as LIB_VERSION, LabBlend, LabCompare, LabFrame, LabFrameExtractor, type LabFrameExtractorProps, LabImagePicker, LabItem, LabLoop, LabRemix, LabServices, type LabSlotId, LabsTab, type LegacyMigrationOptions, type LegacyMigrationResult, type LegacyRecentTagRef, type LegacySourceResult, type LibraryCommandName, type LibraryCommands, type LibraryDataSource, type LibraryLegacySource, type LibraryListQuery, type LibraryPage, LibraryView, type LibraryViewItem, type LibraryViewProps, type LibraryViewTag, type LibraryWorkspaceState, ListView, LoadResult, type MediaItem, MediaLibrary, PersistedSlice, type PersistenceCoordinator, PersistenceDescriptor, PillButton, PromptTab, QueryResult, RequestContext, type RunLibraryLegacyImportOptions, type RunTagsLegacyImportOptions, SCOPE_MAP, type SaveState, SectionLabel, SelectedLabImage, SelectedTag, type SelectionValidation, ServerTab, SetupPanel, SliceContract, type SliceMeta, type SzenenLinks, TAGS_CUTOVER_MARKER, TAGS_SLICE_SCHEMA_VERSION, type TagBase, type TagBaseContext, type TagBaseEvent, type TagBaseMeta, TagBaseSection, type TagBaseSectionProps, type TagBaseTagEntry, type TagBaseTagOption, type TagBaseUser, type TagBaseWorkspaceTags, type TagCommandName, type TagCommands, type TagCreatedEvent, type TagCreatedPayload, type TagEntry, type TagEntryInput, TagManager, TagManagerPanel, type TagManagerProps, type TagManagerSelection, TagOption, type TagQueries, type TagUpdateDelta, type TagUpdatedDelta, type TagUpdatedEvent, type TagUpdatedPayload, type TagViewCategory, type TagViewModel, type TagViewOption, type TagViewScope, type TagsWorkspaceState, type UseTagBaseResult, WorkspacePersistence, WorkspaceTabId, WorkspaceTags, WriteResult, type Zugehoerigkeit, type ZugehoerigkeitEingabe, ZugehoerigkeitLinks, type ZugehoerigkeitLinksProps, type ZugehoerigkeitZiel, autoLabel, buildBlendInstruction, buildCompareInstruction, buildLoopInstruction, buildReferenceImageMediaIds, buildRemixInstruction, buildScanInstruction, createFaStore, createInMemoryLibraryDataSource, createInMemoryWorkspacePersistence, createLibraryDefault, createPersistenceCoordinator, createTagCreatedEvent, createTagUpdatedEvent, createTagsDefault, deriveTagBaseWorkspaceTags, deriveTagViewModel, formatTreeToMarkdown, frameToGeneration, getFormattedTimestamp, getHFToken, getSessionClientId, groupGenerationsToLabItems, hatNavigationsziele, hfBatchArchive, hfBootstrapFromLegacy, hfListDir, hfLoadImageAsBase64, hfUploadImage, hfUploadSmallFile, injectXMPMetadata, libraryContract, libraryReactDescriptor, listCategories, loadHFState, loadPendingEvents, loadTagBase, parseLegacyLibraryFilters, parseLegacyRecentTags, parsePromptFile, runLegacyMigration, runLibraryLegacyImport, runTagsLegacyImport, setHFToken, tagsContract, tagsReactDescriptor, tsFromEventPath, useFaSlice, useFaSliceMeta, useHFState, useKeyboardNavigation, useOnClickOutside, useTagBase, validateTagBaseSelection, writeHFEvent, writeTagEvent, zugehoerigkeitOf };
1049
+ export { AvatarArchitectApp, type AvatarArchitectAppProps, CURRENT_TAG_EVENT_VERSION, CollapsibleCard, CommandResult, CompactDropdown, type CreateFaStoreOptions, type CreatePersistenceCoordinatorOptions, type ExtractedCharacter, FaApp, type FaAppProps, type FaStore, type FaStoreState, FaToolsBadge, FeatureSliceId, type FlowBridgeClient, type FlowBridgeError, FlowBridgePanel, type FlowBridgeRequest, type FlowBridgeResponse, type FlowBridgeStatus, FlowTextGenerationOptions, FlowWorkspacePicker, type FlowWorkspacePickerProps, GLOBAL_STYLES, Generation, HFEvent, type HFStateResult, HFStateSnapshot, HfMediaSyncTab, HistoryPanel, type InMemoryWorkspacePersistence, InspectPanel, LIBRARY_CUTOVER_MARKER, LIBRARY_SLICE_SCHEMA_VERSION, version as LIB_VERSION, LabBlend, LabCompare, LabFrame, LabFrameExtractor, type LabFrameExtractorProps, LabImagePicker, LabItem, LabLoop, LabRemix, LabServices, type LabSlotId, LabsTab, type LegacyMigrationOptions, type LegacyMigrationResult, type LegacyRecentTagRef, type LegacySourceResult, type LibraryCommandName, type LibraryCommands, type LibraryDataSource, type LibraryLegacySource, type LibraryListQuery, type LibraryPage, LibraryView, type LibraryViewItem, type LibraryViewProps, type LibraryViewTag, type LibraryWorkspaceState, ListView, LoadResult, type MediaItem, MediaLibrary, PersistedSlice, type PersistenceCoordinator, PersistenceDescriptor, PillButton, PromptTab, QueryResult, RequestContext, type RunLibraryLegacyImportOptions, type RunTagsLegacyImportOptions, SCOPE_MAP, type SaveState, SectionLabel, SelectedLabImage, SelectedTag, type SelectionValidation, ServerTab, SetupPanel, SliceContract, type SliceMeta, type SzenenLinks, TAGS_CUTOVER_MARKER, TAGS_SLICE_SCHEMA_VERSION, type TagBase, type TagBaseContext, type TagBaseEvent, type TagBaseMeta, TagBaseSection, type TagBaseSectionProps, type TagBaseTagEntry, type TagBaseTagOption, type TagBaseUser, type TagBaseWorkspaceTags, type TagCommandName, type TagCommands, type TagCreatedEvent, type TagCreatedPayload, type TagEntry, type TagEntryInput, TagManager, TagManagerPanel, type TagManagerProps, type TagManagerSelection, TagOption, type TagQueries, type TagUpdateDelta, type TagUpdatedDelta, type TagUpdatedEvent, type TagUpdatedPayload, type TagViewCategory, type TagViewModel, type TagViewOption, type TagViewScope, type TagsWorkspaceState, type UseTagBaseResult, WorkspacePersistence, WorkspaceTabId, WorkspaceTags, WriteResult, type Zugehoerigkeit, type ZugehoerigkeitEingabe, ZugehoerigkeitLinks, type ZugehoerigkeitLinksProps, type ZugehoerigkeitZiel, autoLabel, buildBlendInstruction, buildCompareInstruction, buildLoopInstruction, buildReferenceImageMediaIds, buildRemixInstruction, buildScanInstruction, createFaStore, createFlowBridgeClient, createInMemoryLibraryDataSource, createInMemoryWorkspacePersistence, createLibraryDefault, createPersistenceCoordinator, createTagCreatedEvent, createTagUpdatedEvent, createTagsDefault, deriveTagBaseWorkspaceTags, deriveTagViewModel, formatTreeToMarkdown, frameToGeneration, getFormattedTimestamp, getHFToken, getSessionClientId, groupGenerationsToLabItems, hatNavigationsziele, hfBatchArchive, hfBootstrapFromLegacy, hfListDir, hfLoadImageAsBase64, hfUploadImage, hfUploadSmallFile, injectXMPMetadata, libraryContract, libraryReactDescriptor, listCategories, loadHFState, loadPendingEvents, loadTagBase, parseLegacyLibraryFilters, parseLegacyRecentTags, parsePromptFile, runLegacyMigration, runLibraryLegacyImport, runTagsLegacyImport, setHFToken, tagsContract, tagsReactDescriptor, tsFromEventPath, useFaSlice, useFaSliceMeta, useHFState, useKeyboardNavigation, useOnClickOutside, useTagBase, validateTagBaseSelection, writeHFEvent, writeTagEvent, zugehoerigkeitOf, zugehoerigkeitenOf };