@rslsp1/fa-app-tools 6.1.0 → 7.0.1
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-GHKN2VX3.mjs → chunk-B2YV4TNI.mjs} +319 -13
- package/dist/{hfEventTypes-Dkfrcd_t.d.mts → hfEventTypes-BUztJySs.d.mts} +1 -11
- package/dist/{hfEventTypes-C_PX6RFR.d.ts → hfEventTypes-fAdA-0A9.d.ts} +1 -11
- package/dist/index.d.mts +18 -49
- package/dist/index.d.ts +18 -49
- package/dist/index.js +635 -1481
- package/dist/index.mjs +207 -670
- package/dist/szenen.d.mts +2 -2
- package/dist/szenen.d.ts +2 -2
- package/dist/szenen.mjs +1 -2
- package/package.json +1 -1
- package/dist/chunk-NBUS7AWR.mjs +0 -418
- package/dist/chunk-UFXDXENC.mjs +0 -218
- package/dist/hfStateService-W7KO2FOH.mjs +0 -56
- package/dist/project-O4ORKXY5.mjs +0 -8
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,
|
|
4
|
-
export { a as FlowSdk, c as HFEventVersion, d as HFFileInfo, e as HFMetadataEntry, f as HFStateMeta, I as ImageAddedPayload, M as MetadataUpdatedPayload,
|
|
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';
|
|
5
5
|
import { Node, Edge } from '@xyflow/react';
|
|
6
6
|
import * as zustand_vanilla from 'zustand/vanilla';
|
|
7
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';
|
|
8
8
|
|
|
9
|
-
var version = "
|
|
9
|
+
var version = "7.0.1";
|
|
10
10
|
|
|
11
11
|
declare function useOnClickOutside(ref: RefObject<HTMLElement | null>, handler: (e: MouseEvent | TouchEvent) => void): void;
|
|
12
12
|
|
|
@@ -28,14 +28,6 @@ declare const GLOBAL_STYLES: string;
|
|
|
28
28
|
|
|
29
29
|
declare function injectXMPMetadata(base64: string, prompt: string, seed?: number, model?: string, id?: string, tags?: string[], hierarchy?: string): string;
|
|
30
30
|
|
|
31
|
-
/**
|
|
32
|
-
* Vollständiger Export: JSON + MD + Bilder (mit XMP Meta)
|
|
33
|
-
*/
|
|
34
|
-
declare function exportProjectToZip(nodes: any[], edges: any[], history: any[], galleryItems: any[], settings: any, workspaceTags?: any, recentLabItemIds?: string[]): Promise<{
|
|
35
|
-
base64: string;
|
|
36
|
-
}>;
|
|
37
|
-
declare function importProjectFromZip(file: File): Promise<any>;
|
|
38
|
-
|
|
39
31
|
interface ExtractedCharacter {
|
|
40
32
|
name: string;
|
|
41
33
|
prompts: {
|
|
@@ -277,12 +269,8 @@ interface AvatarArchitectAppProps {
|
|
|
277
269
|
/** Flow-Host verlangt vor der App dieselbe User-/Context-Auswahl wie React. */
|
|
278
270
|
requireWorkspaceSelection?: boolean;
|
|
279
271
|
serverBaseUrl?: string;
|
|
280
|
-
onFetchServerProjects?: () => Promise<ProjectMeta[]>;
|
|
281
|
-
onServerSave?: (zipBase64: string, name: string) => Promise<ProjectMeta>;
|
|
282
|
-
onServerLoad?: (id: string) => Promise<File>;
|
|
283
|
-
onServerDelete?: (id: string) => Promise<void>;
|
|
284
272
|
}
|
|
285
|
-
declare function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onSelectMedia, buildInfo, initialHfToken, hfNamespace, allowDevNamespace, requireWorkspaceSelection, serverBaseUrl
|
|
273
|
+
declare function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onSelectMedia, buildInfo, initialHfToken, hfNamespace, allowDevNamespace, requireWorkspaceSelection, serverBaseUrl }: AvatarArchitectAppProps): React__default.JSX.Element;
|
|
286
274
|
|
|
287
275
|
interface FaAppProps {
|
|
288
276
|
onGenerateImage: (params: Record<string, any>) => Promise<{
|
|
@@ -310,13 +298,9 @@ interface FaAppProps {
|
|
|
310
298
|
libToken?: string;
|
|
311
299
|
allowDevNamespace?: boolean;
|
|
312
300
|
serverBaseUrl?: string;
|
|
313
|
-
onFetchServerProjects?: () => Promise<ProjectMeta[]>;
|
|
314
|
-
onServerSave?: (zipBase64: string, name: string) => Promise<ProjectMeta>;
|
|
315
|
-
onServerLoad?: (id: string) => Promise<File>;
|
|
316
|
-
onServerDelete?: (id: string) => Promise<void>;
|
|
317
301
|
buildInfo?: string;
|
|
318
302
|
}
|
|
319
|
-
declare function FaApp({ onGenerateImage, onGeneratePrompt, onGenerateVideo: _onGenerateVideo, onDownload, onSelectMedia, onFlowSave: _onFlowSave, onFlowUpload: _onFlowUpload, onFlowMediaUpload: _onFlowMediaUpload, libToken, allowDevNamespace, serverBaseUrl,
|
|
303
|
+
declare function FaApp({ onGenerateImage, onGeneratePrompt, onGenerateVideo: _onGenerateVideo, onDownload, onSelectMedia, onFlowSave: _onFlowSave, onFlowUpload: _onFlowUpload, onFlowMediaUpload: _onFlowMediaUpload, libToken, allowDevNamespace, serverBaseUrl, buildInfo, }: FaAppProps): React.JSX.Element;
|
|
320
304
|
|
|
321
305
|
interface FlowWorkspacePickerProps {
|
|
322
306
|
tagBase: TagBase;
|
|
@@ -370,25 +354,21 @@ interface PromptTabProps {
|
|
|
370
354
|
}
|
|
371
355
|
declare const PromptTab: React__default.FC<PromptTabProps>;
|
|
372
356
|
|
|
373
|
-
interface
|
|
357
|
+
interface HfMediaSyncTabProps {
|
|
374
358
|
topSlot?: React__default.ReactNode;
|
|
375
|
-
|
|
376
|
-
onProjectImport?: (file: File) => Promise<void>;
|
|
377
|
-
onWorkspaceImport?: (file: File) => void;
|
|
378
|
-
projectActionState?: 'idle' | 'working' | 'working-full' | 'done' | 'error';
|
|
379
|
-
serverProjects?: ProjectMeta[];
|
|
380
|
-
onServerSave?: (name?: string) => Promise<void>;
|
|
381
|
-
onServerLoad?: (id: string) => void;
|
|
382
|
-
onServerDelete?: (id: string) => void;
|
|
383
|
-
onRefreshServerProjects?: () => Promise<void>;
|
|
384
|
-
onComputeSyncDiff?: () => Promise<SyncDiff>;
|
|
385
|
-
onExecuteSync?: (selectedLocalIds: string[]) => Promise<void>;
|
|
386
|
-
hfToken?: string;
|
|
387
|
-
onHfLoad?: (file: File) => void;
|
|
388
|
-
onProjectExportBase64?: () => Promise<string>;
|
|
359
|
+
/** Lädt lokal erzeugte Gallery-Bilder nach, die noch kein HF-Event haben. */
|
|
389
360
|
onHfInitialSync?: (onProgress: (done: number, total: number) => void) => Promise<void>;
|
|
390
361
|
}
|
|
391
|
-
|
|
362
|
+
/**
|
|
363
|
+
* Sync-Tab der Flow-Runtime. Zeigt den HF-State-Status (`topSlot`) und den
|
|
364
|
+
* einmaligen Nachlade-Sync lokal erzeugter Bilder nach Hugging Face.
|
|
365
|
+
*
|
|
366
|
+
* Flow hat keinen eigenen Projekt-State-Lifecycle mehr: Projekt-ZIP-Export,
|
|
367
|
+
* -Import, Server-Projektspeicher und ZIP-Diff sind mit dem globalen Event
|
|
368
|
+
* `2026-08-24-flow-legacy-project-state-removal` entfallen. Persistenz läuft
|
|
369
|
+
* ausschließlich über den HF-Snapshot- und Event-State.
|
|
370
|
+
*/
|
|
371
|
+
declare const HfMediaSyncTab: React__default.FC<HfMediaSyncTabProps>;
|
|
392
372
|
|
|
393
373
|
interface TagManagerPanelProps {
|
|
394
374
|
workspaceTags: WorkspaceTags;
|
|
@@ -849,19 +829,8 @@ declare function writeHFEvent<P>(namespace: string, token: string, type: string,
|
|
|
849
829
|
|
|
850
830
|
declare function getHFToken(): string | null;
|
|
851
831
|
declare function setHFToken(token: string): void;
|
|
852
|
-
interface HFProjectMeta {
|
|
853
|
-
id: string;
|
|
854
|
-
name: string;
|
|
855
|
-
path: string;
|
|
856
|
-
size: number;
|
|
857
|
-
isLfs: boolean;
|
|
858
|
-
}
|
|
859
832
|
declare function loadHFState(namespace: string, token: string): Promise<HFStateSnapshot | null>;
|
|
860
833
|
declare function hfBootstrapFromLegacy(namespace: string, token: string, onProgress?: (msg: string) => void): Promise<void>;
|
|
861
|
-
declare function hfListProjects(token: string): Promise<HFProjectMeta[]>;
|
|
862
|
-
declare function hfDownloadProject(path: string, token: string): Promise<File>;
|
|
863
|
-
declare function hfUploadProjectForm(_zipBase64: string, _name: string, _token: string): Promise<HFProjectMeta>;
|
|
864
|
-
declare function hfDeleteProject(path: string, token: string): Promise<void>;
|
|
865
834
|
declare function hfUploadImage(base64: string, id: string, token: string, mimeType?: string): Promise<void>;
|
|
866
835
|
declare function hfLoadImageAsBase64(id: string, token: string, namespace?: string, filename?: string, on404?: () => boolean, mimeType?: string, hasThumb?: boolean): Promise<string | null>;
|
|
867
836
|
|
|
@@ -912,4 +881,4 @@ interface UseTagBaseResult {
|
|
|
912
881
|
}
|
|
913
882
|
declare function useTagBase(token: string, namespace: string): UseTagBaseResult;
|
|
914
883
|
|
|
915
|
-
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, 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,
|
|
884
|
+
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, 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, autoLabel, buildBlendInstruction, buildCompareInstruction, buildLoopInstruction, buildReferenceImageMediaIds, buildRemixInstruction, buildScanInstruction, createFaStore, createInMemoryLibraryDataSource, createInMemoryWorkspacePersistence, createLibraryDefault, createPersistenceCoordinator, createTagCreatedEvent, createTagUpdatedEvent, createTagsDefault, deriveTagBaseWorkspaceTags, deriveTagViewModel, formatTreeToMarkdown, frameToGeneration, getFormattedTimestamp, getHFToken, getSessionClientId, groupGenerationsToLabItems, 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 };
|