@rslsp1/fa-app-tools 2.0.19 → 2.0.20
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.
|
@@ -93,8 +93,9 @@ async function hfBatchArchive(moves, token, summary) {
|
|
|
93
93
|
}
|
|
94
94
|
function tsFromEventPath(repoPath) {
|
|
95
95
|
const filename = repoPath.split("/").pop() || "";
|
|
96
|
-
const
|
|
97
|
-
const
|
|
96
|
+
const base = filename.replace(/_[^_]+\.json$/, "");
|
|
97
|
+
const iso = base.replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z$/, "T$1:$2:$3.$4Z");
|
|
98
|
+
const ts = Date.parse(iso);
|
|
98
99
|
return isNaN(ts) ? 0 : ts;
|
|
99
100
|
}
|
|
100
101
|
async function loadHFState(namespace, token) {
|
package/dist/index.d.mts
CHANGED
|
@@ -614,6 +614,6 @@ declare function findTips(dag: Dag): number[];
|
|
|
614
614
|
declare function findForks(dag: Dag): DagFork[];
|
|
615
615
|
declare function topoSort(events: HFEvent[]): HFEvent[];
|
|
616
616
|
|
|
617
|
-
declare const LIB_VERSION = "2.0.
|
|
617
|
+
declare const LIB_VERSION = "2.0.20";
|
|
618
618
|
|
|
619
619
|
export { AvatarArchitectApp, type AvatarArchitectAppProps, 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, 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, SetupPanel, type SyncDiff, TagManagerPanel, type TagOption, type TagUpsertedPayload, type WorkspaceTags, applyEvent, applyEvents, autoLabel, buildBlendInstruction, buildCompareInstruction, buildDag, buildFallbackPrompt, buildGenerationPrompt, buildImageGenerationOptions, buildLoopInstruction, buildPromptTabPayload, buildReferenceImageMediaIds, buildRemixInstruction, buildScanInstruction, cleanAiResponse, createFlowServices, exportProjectToZip, findForks, findTips, formatTreeToMarkdown, frameToGeneration, getFormattedTimestamp, getHFToken, getSessionClientId, groupGenerationsToLabItems, hfBatchArchive, hfBootstrapFromLegacy, hfDeleteProject, hfDownloadProject, hfListDir, hfListProjects, hfLoadImageAsBase64, hfUploadImage, hfUploadProjectForm, hfUploadSmallFile, importProjectFromZip, injectXMPMetadata, interpretSdkError, loadHFState, loadPendingEvents, parsePromptFile, parsePromptResponse, setHFToken, topoSort, tsFromEventPath, useHFState, useKeyboardNavigation, useOnClickOutside, writeHFEvent };
|
package/dist/index.d.ts
CHANGED
|
@@ -614,6 +614,6 @@ declare function findTips(dag: Dag): number[];
|
|
|
614
614
|
declare function findForks(dag: Dag): DagFork[];
|
|
615
615
|
declare function topoSort(events: HFEvent[]): HFEvent[];
|
|
616
616
|
|
|
617
|
-
declare const LIB_VERSION = "2.0.
|
|
617
|
+
declare const LIB_VERSION = "2.0.20";
|
|
618
618
|
|
|
619
619
|
export { AvatarArchitectApp, type AvatarArchitectAppProps, 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, 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, SetupPanel, type SyncDiff, TagManagerPanel, type TagOption, type TagUpsertedPayload, type WorkspaceTags, applyEvent, applyEvents, autoLabel, buildBlendInstruction, buildCompareInstruction, buildDag, buildFallbackPrompt, buildGenerationPrompt, buildImageGenerationOptions, buildLoopInstruction, buildPromptTabPayload, buildReferenceImageMediaIds, buildRemixInstruction, buildScanInstruction, cleanAiResponse, createFlowServices, exportProjectToZip, findForks, findTips, formatTreeToMarkdown, frameToGeneration, getFormattedTimestamp, getHFToken, getSessionClientId, groupGenerationsToLabItems, hfBatchArchive, hfBootstrapFromLegacy, hfDeleteProject, hfDownloadProject, hfListDir, hfListProjects, hfLoadImageAsBase64, hfUploadImage, hfUploadProjectForm, hfUploadSmallFile, importProjectFromZip, injectXMPMetadata, interpretSdkError, loadHFState, loadPendingEvents, parsePromptFile, parsePromptResponse, setHFToken, topoSort, tsFromEventPath, useHFState, useKeyboardNavigation, useOnClickOutside, writeHFEvent };
|
package/dist/index.js
CHANGED
|
@@ -381,8 +381,9 @@ async function hfBatchArchive(moves, token, summary) {
|
|
|
381
381
|
}
|
|
382
382
|
function tsFromEventPath(repoPath) {
|
|
383
383
|
const filename = repoPath.split("/").pop() || "";
|
|
384
|
-
const
|
|
385
|
-
const
|
|
384
|
+
const base = filename.replace(/_[^_]+\.json$/, "");
|
|
385
|
+
const iso = base.replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z$/, "T$1:$2:$3.$4Z");
|
|
386
|
+
const ts = Date.parse(iso);
|
|
386
387
|
return isNaN(ts) ? 0 : ts;
|
|
387
388
|
}
|
|
388
389
|
async function loadHFState(namespace, token) {
|
|
@@ -6007,7 +6008,7 @@ function FaApp({
|
|
|
6007
6008
|
// src/index.ts
|
|
6008
6009
|
init_hfStateService();
|
|
6009
6010
|
init_hfStateService();
|
|
6010
|
-
var LIB_VERSION = "2.0.
|
|
6011
|
+
var LIB_VERSION = "2.0.20";
|
|
6011
6012
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6012
6013
|
0 && (module.exports = {
|
|
6013
6014
|
AvatarArchitectApp,
|
package/dist/index.mjs
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
setHFToken,
|
|
22
22
|
tsFromEventPath,
|
|
23
23
|
writeHFEvent
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-I73HODO5.mjs";
|
|
25
25
|
|
|
26
26
|
// src/hooks/useOnClickOutside.ts
|
|
27
27
|
import { useEffect } from "react";
|
|
@@ -1598,7 +1598,7 @@ var ProjectSyncTab = ({
|
|
|
1598
1598
|
{
|
|
1599
1599
|
onClick: async () => {
|
|
1600
1600
|
try {
|
|
1601
|
-
const { hfDownloadProject: hfDownloadProject2 } = await import("./hfStateService-
|
|
1601
|
+
const { hfDownloadProject: hfDownloadProject2 } = await import("./hfStateService-PDBVLFML.mjs");
|
|
1602
1602
|
const file = await hfDownloadProject2(p.path, hfToken);
|
|
1603
1603
|
onHfLoad(file);
|
|
1604
1604
|
} catch (e) {
|
|
@@ -4604,7 +4604,7 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
4604
4604
|
onClick: async () => {
|
|
4605
4605
|
setIsLoadingFromHF(true);
|
|
4606
4606
|
try {
|
|
4607
|
-
const { hfListProjects: hfListProjects2, hfDownloadProject: hfDownloadProject2 } = await import("./hfStateService-
|
|
4607
|
+
const { hfListProjects: hfListProjects2, hfDownloadProject: hfDownloadProject2 } = await import("./hfStateService-PDBVLFML.mjs");
|
|
4608
4608
|
const projects = await hfListProjects2(hfToken);
|
|
4609
4609
|
if (projects.length > 0) {
|
|
4610
4610
|
const file = await hfDownloadProject2(projects[0].path, hfToken);
|
|
@@ -5337,7 +5337,7 @@ function FaApp({
|
|
|
5337
5337
|
}
|
|
5338
5338
|
|
|
5339
5339
|
// src/index.ts
|
|
5340
|
-
var LIB_VERSION = "2.0.
|
|
5340
|
+
var LIB_VERSION = "2.0.20";
|
|
5341
5341
|
export {
|
|
5342
5342
|
AvatarArchitectApp,
|
|
5343
5343
|
CollapsibleCard,
|