Release 0.0.10
This commit is contained in:
@@ -2,7 +2,11 @@ import { analyzeStorage } from "../core/analyzer.js";
|
||||
import { isMediaPath, normalizePath } from "../core/path-utils.js";
|
||||
|
||||
async function* walkFilePicker(storage, target = "", onProgress = null) {
|
||||
onProgress?.({ phase: "files", label: format("KSA.Progress.BrowseStorage", { storage, path: target || "/" }) });
|
||||
onProgress?.({
|
||||
phase: "files",
|
||||
label: format("KSA.Progress.ScanFiles"),
|
||||
currentSource: format("KSA.Progress.BrowseStorage", { storage, path: target || "/" })
|
||||
});
|
||||
const result = await FilePicker.browse(storage, target);
|
||||
for (const file of result.files ?? []) {
|
||||
const path = normalizePath(file);
|
||||
@@ -83,7 +87,11 @@ async function* packagePackEntries(onProgress = null) {
|
||||
const ownerType = pack.metadata.packageType;
|
||||
const ownerId = pack.metadata.packageName;
|
||||
if (!["module", "system"].includes(ownerType) || !ownerId) continue;
|
||||
onProgress?.({ phase: "sources", label: format("KSA.Progress.ReadPack", { pack: pack.collection }), currentSource: pack.collection });
|
||||
onProgress?.({
|
||||
phase: "sources",
|
||||
label: format("KSA.Progress.ReadReferences"),
|
||||
currentSource: format("KSA.Progress.ReadPack", { pack: pack.collection })
|
||||
});
|
||||
const documents = await pack.getDocuments();
|
||||
for (const document of documents) {
|
||||
yield {
|
||||
|
||||
Reference in New Issue
Block a user