@rslsp1/fa-app-tools 2.0.28 → 2.0.30
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/index.mjs +6 -6
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -638,6 +638,6 @@ declare function findTips(dag: Dag): number[];
|
|
|
638
638
|
declare function findForks(dag: Dag): DagFork[];
|
|
639
639
|
declare function topoSort(events: HFEvent[]): HFEvent[];
|
|
640
640
|
|
|
641
|
-
declare const LIB_VERSION = "2.0.
|
|
641
|
+
declare const LIB_VERSION = "2.0.30";
|
|
642
642
|
|
|
643
643
|
export { AvatarArchitectApp, type AvatarArchitectAppProps, CollapsibleCard, CompactDropdown, type DagFork, type ExtractedCharacter, FaApp, type FaAppProps, type FaServerEnv, 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, ServerTab, 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, faServerDelete, faServerGet, faServerPost, faServerPut, 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
|
@@ -638,6 +638,6 @@ declare function findTips(dag: Dag): number[];
|
|
|
638
638
|
declare function findForks(dag: Dag): DagFork[];
|
|
639
639
|
declare function topoSort(events: HFEvent[]): HFEvent[];
|
|
640
640
|
|
|
641
|
-
declare const LIB_VERSION = "2.0.
|
|
641
|
+
declare const LIB_VERSION = "2.0.30";
|
|
642
642
|
|
|
643
643
|
export { AvatarArchitectApp, type AvatarArchitectAppProps, CollapsibleCard, CompactDropdown, type DagFork, type ExtractedCharacter, FaApp, type FaAppProps, type FaServerEnv, 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, ServerTab, 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, faServerDelete, faServerGet, faServerPost, faServerPut, 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
|
@@ -4712,7 +4712,7 @@ function ServerTab({ hfToken }) {
|
|
|
4712
4712
|
setSelectedUser(user);
|
|
4713
4713
|
setContextsLoading(true);
|
|
4714
4714
|
try {
|
|
4715
|
-
const data = await faServerGet(`/
|
|
4715
|
+
const data = await faServerGet(`/api2/contexts?user_id=${user.id}`, env, token);
|
|
4716
4716
|
if (data.length === 1) {
|
|
4717
4717
|
await loadLibrary(user, data[0]);
|
|
4718
4718
|
} else {
|
|
@@ -4732,8 +4732,8 @@ function ServerTab({ hfToken }) {
|
|
|
4732
4732
|
setLibError(null);
|
|
4733
4733
|
try {
|
|
4734
4734
|
const [tagsRes, libRes] = await Promise.all([
|
|
4735
|
-
faServerGet(`/
|
|
4736
|
-
faServerGet(`/
|
|
4735
|
+
faServerGet(`/api2/tags?user_id=${user.id}`, env, token),
|
|
4736
|
+
faServerGet(`/api2/user-library?user_id=${user.id}&context_id=${ctx.id}&limit=100`, env, token)
|
|
4737
4737
|
]);
|
|
4738
4738
|
setTags(Array.isArray(tagsRes) ? tagsRes : []);
|
|
4739
4739
|
const raw = Array.isArray(libRes) ? libRes : libRes.data ?? [];
|
|
@@ -4841,7 +4841,7 @@ function ServerTab({ hfToken }) {
|
|
|
4841
4841
|
libError && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-red-400 text-[11px] text-center py-8", children: libError }),
|
|
4842
4842
|
!libLoading && !libError && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex-1 min-h-0 overflow-y-auto p-3 grid grid-cols-2 gap-2 content-start", children: [
|
|
4843
4843
|
filteredItems.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "col-span-2 text-white/30 text-[11px] text-center py-8", children: "Keine Eintr\xE4ge." }),
|
|
4844
|
-
filteredItems.map((item) => {
|
|
4844
|
+
filteredItems.map((item, i) => {
|
|
4845
4845
|
const imgUrl = item.images?.[0]?.url;
|
|
4846
4846
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4847
4847
|
"button",
|
|
@@ -4856,7 +4856,7 @@ function ServerTab({ hfToken }) {
|
|
|
4856
4856
|
] })
|
|
4857
4857
|
]
|
|
4858
4858
|
},
|
|
4859
|
-
item.ref_id
|
|
4859
|
+
item.item_id || item.ref_id || i
|
|
4860
4860
|
);
|
|
4861
4861
|
})
|
|
4862
4862
|
] })
|
|
@@ -6521,7 +6521,7 @@ function FaApp({
|
|
|
6521
6521
|
// src/index.ts
|
|
6522
6522
|
init_hfStateService();
|
|
6523
6523
|
init_hfStateService();
|
|
6524
|
-
var LIB_VERSION = "2.0.
|
|
6524
|
+
var LIB_VERSION = "2.0.30";
|
|
6525
6525
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6526
6526
|
0 && (module.exports = {
|
|
6527
6527
|
AvatarArchitectApp,
|
package/dist/index.mjs
CHANGED
|
@@ -4031,7 +4031,7 @@ function ServerTab({ hfToken }) {
|
|
|
4031
4031
|
setSelectedUser(user);
|
|
4032
4032
|
setContextsLoading(true);
|
|
4033
4033
|
try {
|
|
4034
|
-
const data = await faServerGet(`/
|
|
4034
|
+
const data = await faServerGet(`/api2/contexts?user_id=${user.id}`, env, token);
|
|
4035
4035
|
if (data.length === 1) {
|
|
4036
4036
|
await loadLibrary(user, data[0]);
|
|
4037
4037
|
} else {
|
|
@@ -4051,8 +4051,8 @@ function ServerTab({ hfToken }) {
|
|
|
4051
4051
|
setLibError(null);
|
|
4052
4052
|
try {
|
|
4053
4053
|
const [tagsRes, libRes] = await Promise.all([
|
|
4054
|
-
faServerGet(`/
|
|
4055
|
-
faServerGet(`/
|
|
4054
|
+
faServerGet(`/api2/tags?user_id=${user.id}`, env, token),
|
|
4055
|
+
faServerGet(`/api2/user-library?user_id=${user.id}&context_id=${ctx.id}&limit=100`, env, token)
|
|
4056
4056
|
]);
|
|
4057
4057
|
setTags(Array.isArray(tagsRes) ? tagsRes : []);
|
|
4058
4058
|
const raw = Array.isArray(libRes) ? libRes : libRes.data ?? [];
|
|
@@ -4160,7 +4160,7 @@ function ServerTab({ hfToken }) {
|
|
|
4160
4160
|
libError && /* @__PURE__ */ jsx22("p", { className: "text-red-400 text-[11px] text-center py-8", children: libError }),
|
|
4161
4161
|
!libLoading && !libError && /* @__PURE__ */ jsxs20("div", { className: "flex-1 min-h-0 overflow-y-auto p-3 grid grid-cols-2 gap-2 content-start", children: [
|
|
4162
4162
|
filteredItems.length === 0 && /* @__PURE__ */ jsx22("p", { className: "col-span-2 text-white/30 text-[11px] text-center py-8", children: "Keine Eintr\xE4ge." }),
|
|
4163
|
-
filteredItems.map((item) => {
|
|
4163
|
+
filteredItems.map((item, i) => {
|
|
4164
4164
|
const imgUrl = item.images?.[0]?.url;
|
|
4165
4165
|
return /* @__PURE__ */ jsxs20(
|
|
4166
4166
|
"button",
|
|
@@ -4175,7 +4175,7 @@ function ServerTab({ hfToken }) {
|
|
|
4175
4175
|
] })
|
|
4176
4176
|
]
|
|
4177
4177
|
},
|
|
4178
|
-
item.ref_id
|
|
4178
|
+
item.item_id || item.ref_id || i
|
|
4179
4179
|
);
|
|
4180
4180
|
})
|
|
4181
4181
|
] })
|
|
@@ -5838,7 +5838,7 @@ function FaApp({
|
|
|
5838
5838
|
}
|
|
5839
5839
|
|
|
5840
5840
|
// src/index.ts
|
|
5841
|
-
var LIB_VERSION = "2.0.
|
|
5841
|
+
var LIB_VERSION = "2.0.30";
|
|
5842
5842
|
export {
|
|
5843
5843
|
AvatarArchitectApp,
|
|
5844
5844
|
CollapsibleCard,
|