@hasna/models 0.0.1
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/LICENSE +17 -0
- package/PLAN.md +359 -0
- package/README.md +67 -0
- package/dist/auth.d.ts +8 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +3738 -0
- package/dist/huggingface.d.ts +18 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +730 -0
- package/dist/paths.d.ts +5 -0
- package/dist/ref.d.ts +6 -0
- package/dist/storage.d.ts +21 -0
- package/dist/storage.js +255 -0
- package/dist/types.d.ts +89 -0
- package/dist/version.d.ts +1 -0
- package/docs/GOALS.md +49 -0
- package/package.json +71 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CatalogEntry, DownloadPlan, EntityKind, RemoteFileEntry, SearchInput, ProviderRef } from "./types.js";
|
|
2
|
+
export declare function fileDownloadUrl(ref: ProviderRef, path: string): string;
|
|
3
|
+
export declare function searchHuggingFace(input?: SearchInput): Promise<CatalogEntry[]>;
|
|
4
|
+
export declare function getHuggingFaceInfo(refOrInput: ProviderRef | string, defaultKind?: EntityKind): Promise<CatalogEntry>;
|
|
5
|
+
export declare function listHuggingFaceFiles(refOrInput: ProviderRef | string, defaultKind?: EntityKind): Promise<RemoteFileEntry[]>;
|
|
6
|
+
export declare function matchesFilePattern(path: string, pattern: string): boolean;
|
|
7
|
+
export declare function createDownloadPlan(input: {
|
|
8
|
+
ref: ProviderRef;
|
|
9
|
+
include?: string[];
|
|
10
|
+
exclude?: string[];
|
|
11
|
+
maxBytes?: number | null;
|
|
12
|
+
destinationRoot?: string;
|
|
13
|
+
}): Promise<DownloadPlan>;
|
|
14
|
+
export declare function downloadPlannedFiles(plan: DownloadPlan): Promise<Array<{
|
|
15
|
+
path: string;
|
|
16
|
+
bytes: number;
|
|
17
|
+
destination: string;
|
|
18
|
+
}>>;
|