@rslsp1/fa-app-tools 2.0.72 → 2.0.73
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.
|
@@ -100,7 +100,7 @@ function tsFromEventPath(repoPath) {
|
|
|
100
100
|
}
|
|
101
101
|
async function loadHFState(namespace, token) {
|
|
102
102
|
const files = await hfListDir(namespace, "", token);
|
|
103
|
-
const stateFiles = files.filter((f) => f.type === "file" &&
|
|
103
|
+
const stateFiles = files.filter((f) => f.type === "file" && /^state-[\dT\-]+Z\.zip$/.test(f.path.split("/").pop() || "")).sort((a, b) => b.path.localeCompare(a.path));
|
|
104
104
|
if (!stateFiles.length) return null;
|
|
105
105
|
const zipBytes = await hfDownloadBinaryByPath(stateFiles[0].path, token);
|
|
106
106
|
const zip = await JSZip.loadAsync(zipBytes);
|
package/dist/index.d.mts
CHANGED
|
@@ -783,6 +783,6 @@ interface UseTagBaseResult {
|
|
|
783
783
|
}
|
|
784
784
|
declare function useTagBase(token: string, namespace: string): UseTagBaseResult;
|
|
785
785
|
|
|
786
|
-
declare const LIB_VERSION = "2.0.
|
|
786
|
+
declare const LIB_VERSION = "2.0.73";
|
|
787
787
|
|
|
788
788
|
export { AvatarArchitectApp, type AvatarArchitectAppProps, CURRENT_TAG_EVENT_VERSION, CollapsibleCard, CompactDropdown, type DagFork, type ExtractedCharacter, FaApp, type FaAppProps, FaToolsBadge, type FlowSdk, GLOBAL_STYLES, type Generation, type HFEvent, type HFEventVersion, type HFFileInfo$1 as HFFileInfo, type HFMetadataEntry, type HFStateMeta, type HFStateResult, type HFStateSnapshot, HistoryPanel, type ImageAddedPayload, InspectPanel, LIB_VERSION, LabBlend, LabCompare, type LabFrame, LabFrameExtractor, type LabFrameExtractorProps, LabImagePicker, type LabItem, LabLoop, LabRemix, type LabServices, LabsTab, ListView, type MediaItem, MediaLibrary, type MetadataUpdatedPayload, PillButton, type ProjectMeta, type ProjectSettings, ProjectSyncTab, PromptTab, SectionLabel, type SelectedLabImage, type SelectedTag, type SelectionValidation, ServerTab, SetupPanel, type SyncDiff, type TagBase, type TagBaseContext, type TagBaseEvent, type TagBaseMeta, TagBaseSection, type TagBaseSectionProps, type TagBaseTagEntry, type TagBaseTagOption, type TagBaseUser, type TagBaseWorkspaceTags, type TagCreatedEvent, type TagCreatedPayload, TagManagerPanel, type TagOption, type TagUpdatedDelta, type TagUpdatedEvent, type TagUpdatedPayload, type TagUpsertedPayload, type UseTagBaseResult, type WorkspaceTags, applyEvent, applyEvents, autoLabel, buildBlendInstruction, buildCompareInstruction, buildDag, buildFallbackPrompt, buildGenerationPrompt, buildImageGenerationOptions, buildLoopInstruction, buildPromptTabPayload, buildReferenceImageMediaIds, buildRemixInstruction, buildScanInstruction, cleanAiResponse, createFlowServices, createTagCreatedEvent, createTagUpdatedEvent, deriveTagBaseWorkspaceTags, exportProjectToZip, findForks, findTips, formatTreeToMarkdown, frameToGeneration, getFormattedTimestamp, getHFToken, getSessionClientId, groupGenerationsToLabItems, hfBatchArchive, hfBootstrapFromLegacy, hfDeleteProject, hfDownloadProject, hfListDir, hfListProjects, hfLoadImageAsBase64, hfUploadImage, hfUploadProjectForm, hfUploadSmallFile, importProjectFromZip, injectXMPMetadata, interpretSdkError, loadHFState, loadPendingEvents, loadTagBase, parsePromptFile, parsePromptResponse, setHFToken, topoSort, tsFromEventPath, useHFState, useKeyboardNavigation, useOnClickOutside, useTagBase, validateTagBaseSelection, writeHFEvent, writeTagEvent };
|
package/dist/index.d.ts
CHANGED
|
@@ -783,6 +783,6 @@ interface UseTagBaseResult {
|
|
|
783
783
|
}
|
|
784
784
|
declare function useTagBase(token: string, namespace: string): UseTagBaseResult;
|
|
785
785
|
|
|
786
|
-
declare const LIB_VERSION = "2.0.
|
|
786
|
+
declare const LIB_VERSION = "2.0.73";
|
|
787
787
|
|
|
788
788
|
export { AvatarArchitectApp, type AvatarArchitectAppProps, CURRENT_TAG_EVENT_VERSION, CollapsibleCard, CompactDropdown, type DagFork, type ExtractedCharacter, FaApp, type FaAppProps, FaToolsBadge, type FlowSdk, GLOBAL_STYLES, type Generation, type HFEvent, type HFEventVersion, type HFFileInfo$1 as HFFileInfo, type HFMetadataEntry, type HFStateMeta, type HFStateResult, type HFStateSnapshot, HistoryPanel, type ImageAddedPayload, InspectPanel, LIB_VERSION, LabBlend, LabCompare, type LabFrame, LabFrameExtractor, type LabFrameExtractorProps, LabImagePicker, type LabItem, LabLoop, LabRemix, type LabServices, LabsTab, ListView, type MediaItem, MediaLibrary, type MetadataUpdatedPayload, PillButton, type ProjectMeta, type ProjectSettings, ProjectSyncTab, PromptTab, SectionLabel, type SelectedLabImage, type SelectedTag, type SelectionValidation, ServerTab, SetupPanel, type SyncDiff, type TagBase, type TagBaseContext, type TagBaseEvent, type TagBaseMeta, TagBaseSection, type TagBaseSectionProps, type TagBaseTagEntry, type TagBaseTagOption, type TagBaseUser, type TagBaseWorkspaceTags, type TagCreatedEvent, type TagCreatedPayload, TagManagerPanel, type TagOption, type TagUpdatedDelta, type TagUpdatedEvent, type TagUpdatedPayload, type TagUpsertedPayload, type UseTagBaseResult, type WorkspaceTags, applyEvent, applyEvents, autoLabel, buildBlendInstruction, buildCompareInstruction, buildDag, buildFallbackPrompt, buildGenerationPrompt, buildImageGenerationOptions, buildLoopInstruction, buildPromptTabPayload, buildReferenceImageMediaIds, buildRemixInstruction, buildScanInstruction, cleanAiResponse, createFlowServices, createTagCreatedEvent, createTagUpdatedEvent, deriveTagBaseWorkspaceTags, exportProjectToZip, findForks, findTips, formatTreeToMarkdown, frameToGeneration, getFormattedTimestamp, getHFToken, getSessionClientId, groupGenerationsToLabItems, hfBatchArchive, hfBootstrapFromLegacy, hfDeleteProject, hfDownloadProject, hfListDir, hfListProjects, hfLoadImageAsBase64, hfUploadImage, hfUploadProjectForm, hfUploadSmallFile, importProjectFromZip, injectXMPMetadata, interpretSdkError, loadHFState, loadPendingEvents, loadTagBase, parsePromptFile, parsePromptResponse, setHFToken, topoSort, tsFromEventPath, useHFState, useKeyboardNavigation, useOnClickOutside, useTagBase, validateTagBaseSelection, writeHFEvent, writeTagEvent };
|
package/dist/index.js
CHANGED
|
@@ -388,7 +388,7 @@ function tsFromEventPath(repoPath) {
|
|
|
388
388
|
}
|
|
389
389
|
async function loadHFState(namespace, token) {
|
|
390
390
|
const files = await hfListDir(namespace, "", token);
|
|
391
|
-
const stateFiles = files.filter((f) => f.type === "file" &&
|
|
391
|
+
const stateFiles = files.filter((f) => f.type === "file" && /^state-[\dT\-]+Z\.zip$/.test(f.path.split("/").pop() || "")).sort((a, b) => b.path.localeCompare(a.path));
|
|
392
392
|
if (!stateFiles.length) return null;
|
|
393
393
|
const zipBytes = await hfDownloadBinaryByPath(stateFiles[0].path, token);
|
|
394
394
|
const zip = await import_jszip2.default.loadAsync(zipBytes);
|
|
@@ -3106,7 +3106,7 @@ init_hfStateService();
|
|
|
3106
3106
|
var CURRENT_TAG_EVENT_VERSION = { major: 1, minor: 0 };
|
|
3107
3107
|
async function loadTagBase(namespace, token) {
|
|
3108
3108
|
const files = await hfListDir(namespace, "", token);
|
|
3109
|
-
const tagBaseFiles = files.filter((f) => f.type === "file" &&
|
|
3109
|
+
const tagBaseFiles = files.filter((f) => f.type === "file" && /^tags-state-[\dT\-]+Z\.zip$/.test(f.path.split("/").pop() || "")).sort((a, b) => b.path.localeCompare(a.path));
|
|
3110
3110
|
if (!tagBaseFiles.length) return null;
|
|
3111
3111
|
const newestPath = tagBaseFiles[0].path;
|
|
3112
3112
|
const zipBytes = await hfDownloadBinaryByPath(newestPath, token);
|
|
@@ -7396,7 +7396,7 @@ function FaApp({
|
|
|
7396
7396
|
// src/index.ts
|
|
7397
7397
|
init_hfStateService();
|
|
7398
7398
|
init_hfStateService();
|
|
7399
|
-
var LIB_VERSION = "2.0.
|
|
7399
|
+
var LIB_VERSION = "2.0.73";
|
|
7400
7400
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7401
7401
|
0 && (module.exports = {
|
|
7402
7402
|
AvatarArchitectApp,
|
package/dist/index.mjs
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
setHFToken,
|
|
23
23
|
tsFromEventPath,
|
|
24
24
|
writeHFEvent
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-PVLOJQWS.mjs";
|
|
26
26
|
|
|
27
27
|
// src/hooks/useOnClickOutside.ts
|
|
28
28
|
import { useEffect } from "react";
|
|
@@ -1901,7 +1901,7 @@ var ProjectSyncTab = ({
|
|
|
1901
1901
|
{
|
|
1902
1902
|
onClick: async () => {
|
|
1903
1903
|
try {
|
|
1904
|
-
const { hfDownloadProject: hfDownloadProject2 } = await import("./hfStateService-
|
|
1904
|
+
const { hfDownloadProject: hfDownloadProject2 } = await import("./hfStateService-E5MHAF3M.mjs");
|
|
1905
1905
|
const file = await hfDownloadProject2(p.path, hfToken);
|
|
1906
1906
|
onHfLoad(file);
|
|
1907
1907
|
} catch (e) {
|
|
@@ -2408,7 +2408,7 @@ import JSZip from "jszip";
|
|
|
2408
2408
|
var CURRENT_TAG_EVENT_VERSION = { major: 1, minor: 0 };
|
|
2409
2409
|
async function loadTagBase(namespace, token) {
|
|
2410
2410
|
const files = await hfListDir(namespace, "", token);
|
|
2411
|
-
const tagBaseFiles = files.filter((f) => f.type === "file" &&
|
|
2411
|
+
const tagBaseFiles = files.filter((f) => f.type === "file" && /^tags-state-[\dT\-]+Z\.zip$/.test(f.path.split("/").pop() || "")).sort((a, b) => b.path.localeCompare(a.path));
|
|
2412
2412
|
if (!tagBaseFiles.length) return null;
|
|
2413
2413
|
const newestPath = tagBaseFiles[0].path;
|
|
2414
2414
|
const zipBytes = await hfDownloadBinaryByPath(newestPath, token);
|
|
@@ -5867,7 +5867,7 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
5867
5867
|
onClick: async () => {
|
|
5868
5868
|
setIsLoadingFromHF(true);
|
|
5869
5869
|
try {
|
|
5870
|
-
const { hfListProjects: hfListProjects2, hfDownloadProject: hfDownloadProject2 } = await import("./hfStateService-
|
|
5870
|
+
const { hfListProjects: hfListProjects2, hfDownloadProject: hfDownloadProject2 } = await import("./hfStateService-E5MHAF3M.mjs");
|
|
5871
5871
|
const projects = await hfListProjects2(hfToken);
|
|
5872
5872
|
if (projects.length > 0) {
|
|
5873
5873
|
const file = await hfDownloadProject2(projects[0].path, hfToken);
|
|
@@ -6696,7 +6696,7 @@ function FaApp({
|
|
|
6696
6696
|
}
|
|
6697
6697
|
|
|
6698
6698
|
// src/index.ts
|
|
6699
|
-
var LIB_VERSION = "2.0.
|
|
6699
|
+
var LIB_VERSION = "2.0.73";
|
|
6700
6700
|
export {
|
|
6701
6701
|
AvatarArchitectApp,
|
|
6702
6702
|
CURRENT_TAG_EVENT_VERSION,
|