@rslsp1/fa-app-tools 1.2.9 → 1.3.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.
|
@@ -60,8 +60,7 @@ async function hfUploadProject(zipBase64, name, token) {
|
|
|
60
60
|
const fileInfo = preData.files?.[0];
|
|
61
61
|
const debugInfo = JSON.stringify({ uploadMode: fileInfo?.uploadMode, hasUploadUrl: !!fileInfo?.uploadUrl, hasVerifyUrl: !!fileInfo?.verifyUrl, headerKeys: Object.keys(fileInfo?.header || {}), verifyHeaderKeys: Object.keys(fileInfo?.verifyHeader || {}) });
|
|
62
62
|
if (!fileInfo?.uploadMode) throw new Error(`HF preupload kein fileInfo: ${JSON.stringify(preData)}`);
|
|
63
|
-
if (fileInfo.uploadMode === "lfs") {
|
|
64
|
-
if (!fileInfo.uploadUrl) throw new Error(`HF preupload: kein uploadUrl \u2014 ${debugInfo}`);
|
|
63
|
+
if (fileInfo.uploadMode === "lfs" && fileInfo.uploadUrl) {
|
|
65
64
|
const uploadRes = await fetch(fileInfo.uploadUrl, {
|
|
66
65
|
method: "PUT",
|
|
67
66
|
headers: { "Content-Type": "application/octet-stream", ...fileInfo.header || {} },
|
|
@@ -82,7 +81,6 @@ async function hfUploadProject(zipBase64, name, token) {
|
|
|
82
81
|
throw new Error(`HF LFS verify failed: ${verifyRes.status} \u2014 ${verifyErr.slice(0, 200)}`);
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
|
-
} else if (fileInfo.uploadMode === "regular") {
|
|
86
84
|
}
|
|
87
85
|
const commitRes = await fetch(`${HF_BASE}/api/datasets/${HF_REPO}/commit/main`, {
|
|
88
86
|
method: "POST",
|
package/dist/index.d.mts
CHANGED
|
@@ -448,6 +448,6 @@ declare function buildLoopInstruction(rounds: Array<{
|
|
|
448
448
|
declare function autoLabel(index: number): string;
|
|
449
449
|
declare function buildReferenceImageMediaIds(images: SelectedLabImage[]): string[];
|
|
450
450
|
|
|
451
|
-
declare const LIB_VERSION = "1.
|
|
451
|
+
declare const LIB_VERSION = "1.3.0";
|
|
452
452
|
|
|
453
453
|
export { AvatarArchitectApp, type AvatarArchitectAppProps, CollapsibleCard, CompactDropdown, type ExtractedCharacter, FaToolsBadge, type FlowSdk, GLOBAL_STYLES, type Generation, HistoryPanel, InspectPanel, LIB_VERSION, LabBlend, LabCompare, type LabFrame, LabImagePicker, type LabItem, LabLoop, LabRemix, type LabServices, LabsTab, ListView, type MediaItem, MediaLibrary, PillButton, type ProjectMeta, type ProjectSettings, ProjectSyncTab, PromptTab, SectionLabel, type SelectedLabImage, type SelectedTag, SetupPanel, type SyncDiff, TagManagerPanel, type TagOption, type WorkspaceTags, autoLabel, buildBlendInstruction, buildCompareInstruction, buildFallbackPrompt, buildGenerationPrompt, buildImageGenerationOptions, buildLoopInstruction, buildPromptTabPayload, buildReferenceImageMediaIds, buildRemixInstruction, buildScanInstruction, cleanAiResponse, createFlowServices, exportProjectToZip, formatTreeToMarkdown, frameToGeneration, getFormattedTimestamp, groupGenerationsToLabItems, importProjectFromZip, injectXMPMetadata, interpretSdkError, parsePromptFile, parsePromptResponse, useKeyboardNavigation, useOnClickOutside };
|
package/dist/index.d.ts
CHANGED
|
@@ -448,6 +448,6 @@ declare function buildLoopInstruction(rounds: Array<{
|
|
|
448
448
|
declare function autoLabel(index: number): string;
|
|
449
449
|
declare function buildReferenceImageMediaIds(images: SelectedLabImage[]): string[];
|
|
450
450
|
|
|
451
|
-
declare const LIB_VERSION = "1.
|
|
451
|
+
declare const LIB_VERSION = "1.3.0";
|
|
452
452
|
|
|
453
453
|
export { AvatarArchitectApp, type AvatarArchitectAppProps, CollapsibleCard, CompactDropdown, type ExtractedCharacter, FaToolsBadge, type FlowSdk, GLOBAL_STYLES, type Generation, HistoryPanel, InspectPanel, LIB_VERSION, LabBlend, LabCompare, type LabFrame, LabImagePicker, type LabItem, LabLoop, LabRemix, type LabServices, LabsTab, ListView, type MediaItem, MediaLibrary, PillButton, type ProjectMeta, type ProjectSettings, ProjectSyncTab, PromptTab, SectionLabel, type SelectedLabImage, type SelectedTag, SetupPanel, type SyncDiff, TagManagerPanel, type TagOption, type WorkspaceTags, autoLabel, buildBlendInstruction, buildCompareInstruction, buildFallbackPrompt, buildGenerationPrompt, buildImageGenerationOptions, buildLoopInstruction, buildPromptTabPayload, buildReferenceImageMediaIds, buildRemixInstruction, buildScanInstruction, cleanAiResponse, createFlowServices, exportProjectToZip, formatTreeToMarkdown, frameToGeneration, getFormattedTimestamp, groupGenerationsToLabItems, importProjectFromZip, injectXMPMetadata, interpretSdkError, parsePromptFile, parsePromptResponse, useKeyboardNavigation, useOnClickOutside };
|
package/dist/index.js
CHANGED
|
@@ -328,8 +328,7 @@ async function hfUploadProject(zipBase64, name, token) {
|
|
|
328
328
|
const fileInfo = preData.files?.[0];
|
|
329
329
|
const debugInfo = JSON.stringify({ uploadMode: fileInfo?.uploadMode, hasUploadUrl: !!fileInfo?.uploadUrl, hasVerifyUrl: !!fileInfo?.verifyUrl, headerKeys: Object.keys(fileInfo?.header || {}), verifyHeaderKeys: Object.keys(fileInfo?.verifyHeader || {}) });
|
|
330
330
|
if (!fileInfo?.uploadMode) throw new Error(`HF preupload kein fileInfo: ${JSON.stringify(preData)}`);
|
|
331
|
-
if (fileInfo.uploadMode === "lfs") {
|
|
332
|
-
if (!fileInfo.uploadUrl) throw new Error(`HF preupload: kein uploadUrl \u2014 ${debugInfo}`);
|
|
331
|
+
if (fileInfo.uploadMode === "lfs" && fileInfo.uploadUrl) {
|
|
333
332
|
const uploadRes = await fetch(fileInfo.uploadUrl, {
|
|
334
333
|
method: "PUT",
|
|
335
334
|
headers: { "Content-Type": "application/octet-stream", ...fileInfo.header || {} },
|
|
@@ -350,7 +349,6 @@ async function hfUploadProject(zipBase64, name, token) {
|
|
|
350
349
|
throw new Error(`HF LFS verify failed: ${verifyRes.status} \u2014 ${verifyErr.slice(0, 200)}`);
|
|
351
350
|
}
|
|
352
351
|
}
|
|
353
|
-
} else if (fileInfo.uploadMode === "regular") {
|
|
354
352
|
}
|
|
355
353
|
const commitRes = await fetch(`${HF_BASE}/api/datasets/${HF_REPO}/commit/main`, {
|
|
356
354
|
method: "POST",
|
|
@@ -4605,7 +4603,7 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
4605
4603
|
}
|
|
4606
4604
|
|
|
4607
4605
|
// src/index.ts
|
|
4608
|
-
var LIB_VERSION = "1.
|
|
4606
|
+
var LIB_VERSION = "1.3.0";
|
|
4609
4607
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4610
4608
|
0 && (module.exports = {
|
|
4611
4609
|
AvatarArchitectApp,
|
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
hfDeleteProject,
|
|
8
8
|
hfListProjects,
|
|
9
9
|
hfUploadProject
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Q4S6265R.mjs";
|
|
11
11
|
|
|
12
12
|
// src/hooks/useOnClickOutside.ts
|
|
13
13
|
import { useEffect } from "react";
|
|
@@ -1547,7 +1547,7 @@ var ProjectSyncTab = ({
|
|
|
1547
1547
|
{
|
|
1548
1548
|
onClick: async () => {
|
|
1549
1549
|
try {
|
|
1550
|
-
const { hfDownloadProject } = await import("./hfStateService-
|
|
1550
|
+
const { hfDownloadProject } = await import("./hfStateService-TIQTJTHV.mjs");
|
|
1551
1551
|
const file = await hfDownloadProject(p.path, hfToken);
|
|
1552
1552
|
onHfLoad(file);
|
|
1553
1553
|
} catch (e) {
|
|
@@ -3507,7 +3507,7 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
3507
3507
|
onClick: async () => {
|
|
3508
3508
|
setIsLoadingFromHF(true);
|
|
3509
3509
|
try {
|
|
3510
|
-
const { hfListProjects: hfListProjects2, hfDownloadProject } = await import("./hfStateService-
|
|
3510
|
+
const { hfListProjects: hfListProjects2, hfDownloadProject } = await import("./hfStateService-TIQTJTHV.mjs");
|
|
3511
3511
|
const projects = await hfListProjects2(hfToken);
|
|
3512
3512
|
if (projects.length > 0) {
|
|
3513
3513
|
const file = await hfDownloadProject(projects[0].path, hfToken);
|
|
@@ -4165,7 +4165,7 @@ function AvatarArchitectApp({ onGenerateImage, onGeneratePrompt, onDownload, onS
|
|
|
4165
4165
|
}
|
|
4166
4166
|
|
|
4167
4167
|
// src/index.ts
|
|
4168
|
-
var LIB_VERSION = "1.
|
|
4168
|
+
var LIB_VERSION = "1.3.0";
|
|
4169
4169
|
export {
|
|
4170
4170
|
AvatarArchitectApp,
|
|
4171
4171
|
CollapsibleCard,
|