@workglow/huggingface-inference 0.3.15 → 0.3.17

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.
Files changed (57) hide show
  1. package/package.json +12 -12
  2. package/dist/ai/HfInferenceProvider.d.ts +0 -68
  3. package/dist/ai/HfInferenceProvider.d.ts.map +0 -1
  4. package/dist/ai/HfInferenceQueuedProvider.d.ts +0 -65
  5. package/dist/ai/HfInferenceQueuedProvider.d.ts.map +0 -1
  6. package/dist/ai/common/HFI_AspectRatio.d.ts +0 -15
  7. package/dist/ai/common/HFI_AspectRatio.d.ts.map +0 -1
  8. package/dist/ai/common/HFI_Capabilities.d.ts +0 -23
  9. package/dist/ai/common/HFI_Capabilities.d.ts.map +0 -1
  10. package/dist/ai/common/HFI_CapabilitySets.d.ts +0 -25
  11. package/dist/ai/common/HFI_CapabilitySets.d.ts.map +0 -1
  12. package/dist/ai/common/HFI_Client.d.ts +0 -14
  13. package/dist/ai/common/HFI_Client.d.ts.map +0 -1
  14. package/dist/ai/common/HFI_Constants.d.ts +0 -7
  15. package/dist/ai/common/HFI_Constants.d.ts.map +0 -1
  16. package/dist/ai/common/HFI_ImageEdit.d.ts +0 -13
  17. package/dist/ai/common/HFI_ImageEdit.d.ts.map +0 -1
  18. package/dist/ai/common/HFI_ImageGenerate.d.ts +0 -13
  19. package/dist/ai/common/HFI_ImageGenerate.d.ts.map +0 -1
  20. package/dist/ai/common/HFI_ImageValidation.d.ts +0 -7
  21. package/dist/ai/common/HFI_ImageValidation.d.ts.map +0 -1
  22. package/dist/ai/common/HFI_JobRunFns.d.ts +0 -10
  23. package/dist/ai/common/HFI_JobRunFns.d.ts.map +0 -1
  24. package/dist/ai/common/HFI_ModelInfo.d.ts +0 -9
  25. package/dist/ai/common/HFI_ModelInfo.d.ts.map +0 -1
  26. package/dist/ai/common/HFI_ModelSchema.d.ts +0 -152
  27. package/dist/ai/common/HFI_ModelSchema.d.ts.map +0 -1
  28. package/dist/ai/common/HFI_ModelSearch.d.ts +0 -8
  29. package/dist/ai/common/HFI_ModelSearch.d.ts.map +0 -1
  30. package/dist/ai/common/HFI_TextEmbedding.d.ts +0 -9
  31. package/dist/ai/common/HFI_TextEmbedding.d.ts.map +0 -1
  32. package/dist/ai/common/HFI_TextGeneration.d.ts +0 -9
  33. package/dist/ai/common/HFI_TextGeneration.d.ts.map +0 -1
  34. package/dist/ai/common/HFI_TextRewriter.d.ts +0 -9
  35. package/dist/ai/common/HFI_TextRewriter.d.ts.map +0 -1
  36. package/dist/ai/common/HFI_TextSummary.d.ts +0 -9
  37. package/dist/ai/common/HFI_TextSummary.d.ts.map +0 -1
  38. package/dist/ai/common/HFI_ToolCalling.d.ts +0 -9
  39. package/dist/ai/common/HFI_ToolCalling.d.ts.map +0 -1
  40. package/dist/ai/index.d.ts +0 -37
  41. package/dist/ai/index.d.ts.map +0 -1
  42. package/dist/ai/registerHfInference.d.ts +0 -10
  43. package/dist/ai/registerHfInference.d.ts.map +0 -1
  44. package/dist/ai/registerHfInferenceInline.d.ts +0 -8
  45. package/dist/ai/registerHfInferenceInline.d.ts.map +0 -1
  46. package/dist/ai/registerHfInferenceWorker.d.ts +0 -7
  47. package/dist/ai/registerHfInferenceWorker.d.ts.map +0 -1
  48. package/dist/ai/runtime.d.ts +0 -16
  49. package/dist/ai/runtime.d.ts.map +0 -1
  50. package/dist/ai-runtime.d.ts +0 -7
  51. package/dist/ai-runtime.d.ts.map +0 -1
  52. package/dist/ai-runtime.js +0 -544
  53. package/dist/ai-runtime.js.map +0 -29
  54. package/dist/ai.d.ts +0 -7
  55. package/dist/ai.d.ts.map +0 -1
  56. package/dist/ai.js +0 -578
  57. package/dist/ai.js.map +0 -29
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@workglow/huggingface-inference",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.3.15",
5
+ "version": "0.3.17",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/workglow-dev/libs.git",
@@ -35,14 +35,14 @@
35
35
  }
36
36
  },
37
37
  "dependencies": {
38
- "@huggingface/inference": "^4.13.18"
38
+ "@huggingface/inference": "^4.13.19"
39
39
  },
40
40
  "peerDependencies": {
41
- "@workglow/ai": "0.3.15",
42
- "@workglow/job-queue": "0.3.15",
43
- "@workglow/storage": "0.3.15",
44
- "@workglow/task-graph": "0.3.15",
45
- "@workglow/util": "0.3.15"
41
+ "@workglow/ai": "0.3.17",
42
+ "@workglow/job-queue": "0.3.17",
43
+ "@workglow/storage": "0.3.17",
44
+ "@workglow/task-graph": "0.3.17",
45
+ "@workglow/util": "0.3.17"
46
46
  },
47
47
  "peerDependenciesMeta": {
48
48
  "@workglow/ai": {
@@ -62,11 +62,11 @@
62
62
  }
63
63
  },
64
64
  "devDependencies": {
65
- "@workglow/ai": "0.3.15",
66
- "@workglow/job-queue": "0.3.15",
67
- "@workglow/storage": "0.3.15",
68
- "@workglow/task-graph": "0.3.15",
69
- "@workglow/util": "0.3.15"
65
+ "@workglow/ai": "0.3.17",
66
+ "@workglow/job-queue": "0.3.17",
67
+ "@workglow/storage": "0.3.17",
68
+ "@workglow/task-graph": "0.3.17",
69
+ "@workglow/util": "0.3.17"
70
70
  },
71
71
  "files": [
72
72
  "dist",
@@ -1,68 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import type { Capability, ModelRecord } from "@workglow/ai/worker";
7
- import { AiProvider } from "@workglow/ai/worker";
8
- declare const HfInferenceProvider_base: new (promiseRunFns?: readonly import("@workglow/ai").AiProviderRunFnRegistration<any, any, {
9
- capabilities?: string[] | undefined;
10
- description?: string | undefined;
11
- metadata?: {
12
- [x: string]: unknown;
13
- } | undefined;
14
- model_id?: string | undefined;
15
- provider: "HF_INFERENCE";
16
- provider_config: {
17
- credential_key?: string | undefined;
18
- model_name: string;
19
- provider?: string | undefined;
20
- };
21
- title?: string | undefined;
22
- }>[] | undefined, previewTasks?: Record<string, import("@workglow/ai").AiProviderPreviewRunFn<any, any, {
23
- capabilities?: string[] | undefined;
24
- description?: string | undefined;
25
- metadata?: {
26
- [x: string]: unknown;
27
- } | undefined;
28
- model_id?: string | undefined;
29
- provider: "HF_INFERENCE";
30
- provider_config: {
31
- credential_key?: string | undefined;
32
- model_name: string;
33
- provider?: string | undefined;
34
- };
35
- title?: string | undefined;
36
- }>> | undefined) => AiProvider<{
37
- capabilities?: string[] | undefined;
38
- description?: string | undefined;
39
- metadata?: {
40
- [x: string]: unknown;
41
- } | undefined;
42
- model_id?: string | undefined;
43
- provider: "HF_INFERENCE";
44
- provider_config: {
45
- credential_key?: string | undefined;
46
- model_name: string;
47
- provider?: string | undefined;
48
- };
49
- title?: string | undefined;
50
- }> & {
51
- readonly name: string;
52
- readonly displayName: string;
53
- readonly isLocal: boolean;
54
- readonly supportsBrowser: boolean;
55
- readonly supportsServer: boolean;
56
- };
57
- /**
58
- * Worker-server registration for Hugging Face Inference. Imports `AiProvider`
59
- * from `@workglow/ai/worker` so the SDK is only loaded in the worker.
60
- */
61
- export declare class HfInferenceProvider extends HfInferenceProvider_base {
62
- inferCapabilities(model: ModelRecord): readonly Capability[];
63
- protected workerRunFnSpecs(): readonly {
64
- serves: readonly Capability[];
65
- }[];
66
- }
67
- export {};
68
- //# sourceMappingURL=HfInferenceProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HfInferenceProvider.d.ts","sourceRoot":"","sources":["../../src/ai/HfInferenceProvider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQjD;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,wBAMxC;IACU,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,UAAU,EAAE,CAEpE;IAED,UAAmB,gBAAgB,IAAI,SAAS;QAAE,MAAM,EAAE,SAAS,UAAU,EAAE,CAAA;KAAE,EAAE,CAElF;CACF"}
@@ -1,65 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import type { Capability, ModelRecord } from "@workglow/ai";
7
- import { AiProvider } from "@workglow/ai";
8
- declare const HfInferenceQueuedProvider_base: new (promiseRunFns?: readonly import("@workglow/ai").AiProviderRunFnRegistration<any, any, {
9
- capabilities?: string[] | undefined;
10
- description?: string | undefined;
11
- metadata?: {
12
- [x: string]: unknown;
13
- } | undefined;
14
- model_id?: string | undefined;
15
- provider: "HF_INFERENCE";
16
- provider_config: {
17
- credential_key?: string | undefined;
18
- model_name: string;
19
- provider?: string | undefined;
20
- };
21
- title?: string | undefined;
22
- }>[] | undefined, previewTasks?: Record<string, import("@workglow/ai").AiProviderPreviewRunFn<any, any, {
23
- capabilities?: string[] | undefined;
24
- description?: string | undefined;
25
- metadata?: {
26
- [x: string]: unknown;
27
- } | undefined;
28
- model_id?: string | undefined;
29
- provider: "HF_INFERENCE";
30
- provider_config: {
31
- credential_key?: string | undefined;
32
- model_name: string;
33
- provider?: string | undefined;
34
- };
35
- title?: string | undefined;
36
- }>> | undefined) => AiProvider<{
37
- capabilities?: string[] | undefined;
38
- description?: string | undefined;
39
- metadata?: {
40
- [x: string]: unknown;
41
- } | undefined;
42
- model_id?: string | undefined;
43
- provider: "HF_INFERENCE";
44
- provider_config: {
45
- credential_key?: string | undefined;
46
- model_name: string;
47
- provider?: string | undefined;
48
- };
49
- title?: string | undefined;
50
- }> & {
51
- readonly name: string;
52
- readonly displayName: string;
53
- readonly isLocal: boolean;
54
- readonly supportsBrowser: boolean;
55
- readonly supportsServer: boolean;
56
- };
57
- /** Main-thread registration (inline or worker-backed). No queue — uses direct execution. */
58
- export declare class HfInferenceQueuedProvider extends HfInferenceQueuedProvider_base {
59
- inferCapabilities(model: ModelRecord): readonly Capability[];
60
- protected workerRunFnSpecs(): readonly {
61
- serves: readonly Capability[];
62
- }[];
63
- }
64
- export {};
65
- //# sourceMappingURL=HfInferenceQueuedProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HfInferenceQueuedProvider.d.ts","sourceRoot":"","sources":["../../src/ai/HfInferenceQueuedProvider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAS1C,4FAA4F;AAC5F,qBAAa,yBAA0B,SAAQ,8BAM9C;IACU,iBAAiB,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,UAAU,EAAE,CAEpE;IAED,UAAmB,gBAAgB,IAAI,SAAS;QAAE,MAAM,EAAE,SAAS,UAAU,EAAE,CAAA;KAAE,EAAE,CAElF;CACF"}
@@ -1,15 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- export type AspectRatio = "1:1" | "16:9" | "9:16" | "4:3" | "3:4";
7
- export interface ImageDims {
8
- width: number;
9
- height: number;
10
- }
11
- /** Resolves output dims for a model id and aspect ratio. Falls back to SDXL dims. */
12
- export declare function resolveHfImageDims(modelId: string, aspectRatio: AspectRatio): ImageDims;
13
- /** Returns true if the model id matches a known inpainting variant (mask supported). */
14
- export declare function isHfInpaintingModel(modelId: string): boolean;
15
- //# sourceMappingURL=HFI_AspectRatio.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFI_AspectRatio.d.ts","sourceRoot":"","sources":["../../../src/ai/common/HFI_AspectRatio.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;AAElE,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAyBD,qFAAqF;AACrF,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,GAAG,SAAS,CAGvF;AAED,wFAAwF;AACxF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAE5D"}
@@ -1,23 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2026 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import type { Capability, ModelRecord } from "@workglow/ai/worker";
7
- export declare const HFI_RUN_FN_SPECS: {
8
- serves: ["image.editing"] | ["image.generation"] | ["model.info"] | ["model.search"] | ["text.embedding"] | ["text.generation"] | ["text.rewriter"] | ["text.summary"] | ["text.generation", "tool-use"];
9
- }[];
10
- export declare function hfInferenceWorkerRunFnSpecs(): readonly {
11
- readonly serves: readonly Capability[];
12
- }[];
13
- type CapabilityHints = Pick<ModelRecord, "model_id" | "provider_config" | "capabilities">;
14
- /**
15
- * Heuristic capability inference for a HuggingFace Inference {@link ModelRecord}.
16
- *
17
- * HF Inference catalog items are HF Hub repo IDs (e.g. `mistralai/Mistral-7B-Instruct`,
18
- * `black-forest-labs/FLUX.1-dev`). Like HFT, declared capabilities (set by
19
- * model-search) win. Otherwise fall back to id patterns.
20
- */
21
- export declare function inferHfInferenceCapabilities(model: CapabilityHints): readonly Capability[];
22
- export {};
23
- //# sourceMappingURL=HFI_Capabilities.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFI_Capabilities.d.ts","sourceRoot":"","sources":["../../../src/ai/common/HFI_Capabilities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGnE,eAAO,MAAM,gBAAgB;;GAAoD,CAAC;AAElF,wBAAgB,2BAA2B,IAAI,SAAS;IACtD,QAAQ,CAAC,MAAM,EAAE,SAAS,UAAU,EAAE,CAAC;CACxC,EAAE,CAEF;AAED,KAAK,eAAe,GAAG,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,iBAAiB,GAAG,cAAc,CAAC,CAAC;AAE1F;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,eAAe,GAAG,SAAS,UAAU,EAAE,CAoC1F"}
@@ -1,25 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2026 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- /**
7
- * Single source of truth for HuggingFace Inference's capability sets.
8
- *
9
- * Both `HFI_RUN_FNS` (worker-side registration) and `workerRunFnSpecs()`
10
- * (main-thread proxy declaration) derive their `serves` arrays from these
11
- * named exports. SDK-free so the main thread can import without paying the
12
- * `@huggingface/inference` cost.
13
- */
14
- export declare const HFI_TEXT_GENERATION: ["text.generation"];
15
- export declare const HFI_TOOL_USE: ["text.generation", "tool-use"];
16
- export declare const HFI_TEXT_REWRITER: ["text.rewriter"];
17
- export declare const HFI_TEXT_SUMMARY: ["text.summary"];
18
- export declare const HFI_TEXT_EMBEDDING: ["text.embedding"];
19
- export declare const HFI_IMAGE_GENERATION: ["image.generation"];
20
- export declare const HFI_IMAGE_EDITING: ["image.editing"];
21
- export declare const HFI_MODEL_SEARCH: ["model.search"];
22
- export declare const HFI_MODEL_INFO: ["model.info"];
23
- /** Aggregated list — for `workerRunFnSpecs()` derivation. Order MUST match `HFI_RUN_FNS`. */
24
- export declare const HFI_CAPABILITY_SETS: readonly [["text.generation"], ["text.generation", "tool-use"], ["text.rewriter"], ["text.summary"], ["text.embedding"], ["image.generation"], ["image.editing"], ["model.search"], ["model.info"]];
25
- //# sourceMappingURL=HFI_CapabilitySets.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFI_CapabilitySets.d.ts","sourceRoot":"","sources":["../../../src/ai/common/HFI_CapabilitySets.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,qBAAsD,CAAC;AACvF,eAAO,MAAM,YAAY,iCAAkE,CAAC;AAC5F,eAAO,MAAM,iBAAiB,mBAAoD,CAAC;AACnF,eAAO,MAAM,gBAAgB,kBAAmD,CAAC;AACjF,eAAO,MAAM,kBAAkB,oBAAqD,CAAC;AACrF,eAAO,MAAM,oBAAoB,sBAAuD,CAAC;AACzF,eAAO,MAAM,iBAAiB,mBAAoD,CAAC;AACnF,eAAO,MAAM,gBAAgB,kBAAmD,CAAC;AACjF,eAAO,MAAM,cAAc,gBAAiD,CAAC;AAE7E,6FAA6F;AAC7F,eAAO,MAAM,mBAAmB,qMAUtB,CAAC"}
@@ -1,14 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import type { InferenceProviderOrPolicy } from "@huggingface/inference";
7
- import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
8
- type HfInferenceSDKModule = typeof import("@huggingface/inference");
9
- export declare function loadHfInferenceSDK(): Promise<HfInferenceSDKModule>;
10
- export declare function getClient(model: HfInferenceModelConfig | undefined): Promise<import("@huggingface/inference").InferenceClient>;
11
- export declare function getModelName(model: HfInferenceModelConfig | undefined): string;
12
- export declare function getProvider(model: HfInferenceModelConfig | undefined): InferenceProviderOrPolicy | undefined;
13
- export {};
14
- //# sourceMappingURL=HFI_Client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFI_Client.d.ts","sourceRoot":"","sources":["../../../src/ai/common/HFI_Client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAExE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAChE,KAAK,oBAAoB,GAAG,cAAc,wBAAwB,CAAC,CAAC;AAKpE,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,oBAAoB,CAAC,CAUxE;AASD,wBAAsB,SAAS,CAAC,KAAK,EAAE,sBAAsB,GAAG,SAAS,6DAexE;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,sBAAsB,GAAG,SAAS,GAAG,MAAM,CAM9E;AAED,wBAAgB,WAAW,CACzB,KAAK,EAAE,sBAAsB,GAAG,SAAS,GACxC,yBAAyB,GAAG,SAAS,CAEvC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- export declare const HF_INFERENCE = "HF_INFERENCE";
7
- //# sourceMappingURL=HFI_Constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFI_Constants.d.ts","sourceRoot":"","sources":["../../../src/ai/common/HFI_Constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,YAAY,iBAAiB,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import type { AiProviderRunFn, ImageEditTaskInput, ImageEditTaskOutput } from "@workglow/ai";
7
- import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
8
- /**
9
- * One-shot run fn. HF Inference does not support partial image streaming,
10
- * so we run the request, emit one snapshot, then finish.
11
- */
12
- export declare const HFI_ImageEdit_Stream: AiProviderRunFn<ImageEditTaskInput, ImageEditTaskOutput, HfInferenceModelConfig>;
13
- //# sourceMappingURL=HFI_ImageEdit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFI_ImageEdit.d.ts","sourceRoot":"","sources":["../../../src/ai/common/HFI_ImageEdit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAY7F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAgBhE;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,eAAe,CAChD,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,CAuDvB,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import type { AiProviderRunFn, ImageGenerateTaskInput, ImageGenerateTaskOutput } from "@workglow/ai";
7
- import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
8
- /**
9
- * One-shot run fn. HF Inference does not support partial image streaming,
10
- * so we run the request, emit one snapshot, then finish.
11
- */
12
- export declare const HFI_ImageGenerate_Stream: AiProviderRunFn<ImageGenerateTaskInput, ImageGenerateTaskOutput, HfInferenceModelConfig>;
13
- //# sourceMappingURL=HFI_ImageGenerate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFI_ImageGenerate.d.ts","sourceRoot":"","sources":["../../../src/ai/common/HFI_ImageGenerate.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,cAAc,CAAC;AAOtB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,eAAe,CACpD,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,CA6CvB,CAAC"}
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- export declare function registerHfImageValidator(): void;
7
- //# sourceMappingURL=HFI_ImageValidation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFI_ImageValidation.d.ts","sourceRoot":"","sources":["../../../src/ai/common/HFI_ImageValidation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,wBAAgB,wBAAwB,IAAI,IAAI,CA8B/C"}
@@ -1,10 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import type { AiProviderRunFnRegistration } from "@workglow/ai";
7
- import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
8
- export { getClient, getModelName, getProvider, loadHfInferenceSDK } from "./HFI_Client";
9
- export declare const HFI_RUN_FNS: readonly AiProviderRunFnRegistration<any, any, HfInferenceModelConfig>[];
10
- //# sourceMappingURL=HFI_JobRunFns.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFI_JobRunFns.d.ts","sourceRoot":"","sources":["../../../src/ai/common/HFI_JobRunFns.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AAYhE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAsBxF,eAAO,MAAM,WAAW,EAAE,SAAS,2BAA2B,CAAC,GAAG,EAAE,GAAG,EAAE,sBAAsB,CAAC,EAW7F,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import type { AiProviderRunFn, ModelInfoTaskInput, ModelInfoTaskOutput } from "@workglow/ai";
7
- import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
8
- export declare const HFI_ModelInfo: AiProviderRunFn<ModelInfoTaskInput, ModelInfoTaskOutput, HfInferenceModelConfig>;
9
- //# sourceMappingURL=HFI_ModelInfo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFI_ModelInfo.d.ts","sourceRoot":"","sources":["../../../src/ai/common/HFI_ModelInfo.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAC7F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,eAAO,MAAM,aAAa,EAAE,eAAe,CACzC,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,CAqCvB,CAAC"}
@@ -1,152 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { FromSchema } from "@workglow/util/worker";
7
- export declare const HfInferenceModelSchema: {
8
- readonly type: "object";
9
- readonly properties: {
10
- readonly provider: {
11
- readonly const: "HF_INFERENCE";
12
- readonly description: "Discriminator: Hugging Face Inference API provider.";
13
- };
14
- readonly provider_config: {
15
- readonly type: "object";
16
- readonly description: "Hugging Face Inference-specific configuration.";
17
- readonly properties: {
18
- readonly model_name: {
19
- readonly type: "string";
20
- readonly description: "The Hugging Face model identifier (e.g., 'meta-llama/Llama-3.3-70B-Instruct').";
21
- };
22
- readonly credential_key: {
23
- readonly type: "string";
24
- readonly format: "credential";
25
- readonly description: "Key to look up in the credential store for the API key.";
26
- readonly "x-ui-hidden": true;
27
- };
28
- readonly provider: {
29
- readonly type: "string";
30
- readonly description: "Optional provider to route to specific HF inference providers (e.g., 'fal-ai', 'fireworks-ai').";
31
- };
32
- };
33
- readonly required: readonly ["model_name"];
34
- readonly additionalProperties: false;
35
- };
36
- };
37
- readonly required: readonly ["provider", "provider_config"];
38
- readonly additionalProperties: true;
39
- };
40
- export declare const HfInferenceModelRecordSchema: {
41
- readonly type: "object";
42
- readonly properties: {
43
- readonly model_id: {
44
- readonly type: "string";
45
- };
46
- readonly capabilities: {
47
- readonly type: "array";
48
- readonly items: {
49
- readonly type: "string";
50
- };
51
- readonly "x-ui-editor": "multiselect";
52
- };
53
- readonly title: {
54
- readonly type: "string";
55
- };
56
- readonly description: {
57
- readonly type: "string";
58
- readonly "x-ui-editor": "textarea";
59
- };
60
- readonly metadata: {
61
- readonly type: "object";
62
- readonly default: {};
63
- readonly "x-ui-hidden": true;
64
- };
65
- readonly provider: {
66
- readonly const: "HF_INFERENCE";
67
- readonly description: "Discriminator: Hugging Face Inference API provider.";
68
- };
69
- readonly provider_config: {
70
- readonly type: "object";
71
- readonly description: "Hugging Face Inference-specific configuration.";
72
- readonly properties: {
73
- readonly model_name: {
74
- readonly type: "string";
75
- readonly description: "The Hugging Face model identifier (e.g., 'meta-llama/Llama-3.3-70B-Instruct').";
76
- };
77
- readonly credential_key: {
78
- readonly type: "string";
79
- readonly format: "credential";
80
- readonly description: "Key to look up in the credential store for the API key.";
81
- readonly "x-ui-hidden": true;
82
- };
83
- readonly provider: {
84
- readonly type: "string";
85
- readonly description: "Optional provider to route to specific HF inference providers (e.g., 'fal-ai', 'fireworks-ai').";
86
- };
87
- };
88
- readonly required: readonly ["model_name"];
89
- readonly additionalProperties: false;
90
- };
91
- };
92
- readonly required: readonly ["model_id", "capabilities", "provider", "title", "description", "provider_config", "metadata", "provider", "provider_config"];
93
- readonly additionalProperties: false;
94
- };
95
- export type HfInferenceModelRecord = FromSchema<typeof HfInferenceModelRecordSchema>;
96
- export declare const HfInferenceModelConfigSchema: {
97
- readonly type: "object";
98
- readonly properties: {
99
- readonly model_id: {
100
- readonly type: "string";
101
- };
102
- readonly capabilities: {
103
- readonly type: "array";
104
- readonly items: {
105
- readonly type: "string";
106
- };
107
- readonly "x-ui-editor": "multiselect";
108
- };
109
- readonly title: {
110
- readonly type: "string";
111
- };
112
- readonly description: {
113
- readonly type: "string";
114
- readonly "x-ui-editor": "textarea";
115
- };
116
- readonly metadata: {
117
- readonly type: "object";
118
- readonly default: {};
119
- readonly "x-ui-hidden": true;
120
- };
121
- readonly provider: {
122
- readonly const: "HF_INFERENCE";
123
- readonly description: "Discriminator: Hugging Face Inference API provider.";
124
- };
125
- readonly provider_config: {
126
- readonly type: "object";
127
- readonly description: "Hugging Face Inference-specific configuration.";
128
- readonly properties: {
129
- readonly model_name: {
130
- readonly type: "string";
131
- readonly description: "The Hugging Face model identifier (e.g., 'meta-llama/Llama-3.3-70B-Instruct').";
132
- };
133
- readonly credential_key: {
134
- readonly type: "string";
135
- readonly format: "credential";
136
- readonly description: "Key to look up in the credential store for the API key.";
137
- readonly "x-ui-hidden": true;
138
- };
139
- readonly provider: {
140
- readonly type: "string";
141
- readonly description: "Optional provider to route to specific HF inference providers (e.g., 'fal-ai', 'fireworks-ai').";
142
- };
143
- };
144
- readonly required: readonly ["model_name"];
145
- readonly additionalProperties: false;
146
- };
147
- };
148
- readonly required: readonly ["provider", "provider_config", "provider", "provider_config"];
149
- readonly additionalProperties: false;
150
- };
151
- export type HfInferenceModelConfig = FromSchema<typeof HfInferenceModelConfigSchema>;
152
- //# sourceMappingURL=HFI_ModelSchema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFI_ModelSchema.d.ts","sourceRoot":"","sources":["../../../src/ai/common/HFI_ModelSchema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAwB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGzE,eAAO,MAAM,sBAAsB;mBAC3B,QAAQ;;iBAEZ,QAAQ;qBACN,KAAK;qBACL,WAAW,EAAE,qDAAqD;;iBAEpE,eAAe;qBACb,IAAI,EAAE,QAAQ;qBACd,WAAW,EAAE,gDAAgD;qBAC7D,UAAU;yBACR,UAAU;6BACR,IAAI,EAAE,QAAQ;6BACd,WAAW,EACT,gFAAgF;;yBAEpF,cAAc;6BACZ,IAAI,EAAE,QAAQ;6BACd,MAAM,EAAE,YAAY;6BACpB,WAAW,EAAE,yDAAyD;6BACtE,aAAa;;yBAEf,QAAQ;6BACN,IAAI,EAAE,QAAQ;6BACd,WAAW,EACT,iGAAiG;;;qBAGvG,QAAQ;qBACR,oBAAoB;;;;;CAKe,CAAC;AAE1C,eAAO,MAAM,4BAA4B;mBACjC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;qBAjCV,KAAK;qBACL,WAAW,EAAE,qDAAqD;;;qBAGlE,IAAI,EAAE,QAAQ;qBACd,WAAW,EAAE,gDAAgD;qBAC7D,UAAU;yBACR,UAAU;6BACR,IAAI,EAAE,QAAQ;6BACd,WAAW,EACT,gFAAgF;;yBAEpF,cAAc;6BACZ,IAAI,EAAE,QAAQ;6BACd,MAAM,EAAE,YAAY;6BACpB,WAAW,EAAE,yDAAyD;6BACtE,aAAa;;yBAEf,QAAQ;6BACN,IAAI,EAAE,QAAQ;6BACd,WAAW,EACT,iGAAiG;;;qBAGvG,QAAQ;qBACR,oBAAoB;;;;;CAee,CAAC;AAE1C,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAErF,eAAO,MAAM,4BAA4B;mBACjC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;qBA7CV,KAAK;qBACL,WAAW,EAAE,qDAAqD;;;qBAGlE,IAAI,EAAE,QAAQ;qBACd,WAAW,EAAE,gDAAgD;qBAC7D,UAAU;yBACR,UAAU;6BACR,IAAI,EAAE,QAAQ;6BACd,WAAW,EACT,gFAAgF;;yBAEpF,cAAc;6BACZ,IAAI,EAAE,QAAQ;6BACd,MAAM,EAAE,YAAY;6BACpB,WAAW,EAAE,yDAAyD;6BACtE,aAAa;;yBAEf,QAAQ;6BACN,IAAI,EAAE,QAAQ;6BACd,WAAW,EACT,iGAAiG;;;qBAGvG,QAAQ;qBACR,oBAAoB;;;;;CA2Be,CAAC;AAE1C,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import type { AiProviderRunFn, ModelSearchTaskInput, ModelSearchTaskOutput } from "@workglow/ai";
7
- export declare const HFI_ModelSearch: AiProviderRunFn<ModelSearchTaskInput, ModelSearchTaskOutput>;
8
- //# sourceMappingURL=HFI_ModelSearch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFI_ModelSearch.d.ts","sourceRoot":"","sources":["../../../src/ai/common/HFI_ModelSearch.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EAEf,oBAAoB,EACpB,qBAAqB,EACtB,MAAM,cAAc,CAAC;AAgCtB,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,oBAAoB,EAAE,qBAAqB,CA4BxF,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import type { AiProviderRunFn, TextEmbeddingTaskInput, TextEmbeddingTaskOutput } from "@workglow/ai";
7
- import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
8
- export declare const HFI_TextEmbedding: AiProviderRunFn<TextEmbeddingTaskInput, TextEmbeddingTaskOutput, HfInferenceModelConfig>;
9
- //# sourceMappingURL=HFI_TextEmbedding.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFI_TextEmbedding.d.ts","sourceRoot":"","sources":["../../../src/ai/common/HFI_TextEmbedding.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,eAAO,MAAM,iBAAiB,EAAE,eAAe,CAC7C,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,CA6CvB,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import type { AiProviderRunFn, TextGenerationTaskInput, TextGenerationTaskOutput } from "@workglow/ai";
7
- import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
8
- export declare const HFI_TextGeneration_Stream: AiProviderRunFn<TextGenerationTaskInput, TextGenerationTaskOutput, HfInferenceModelConfig>;
9
- //# sourceMappingURL=HFI_TextGeneration.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFI_TextGeneration.d.ts","sourceRoot":"","sources":["../../../src/ai/common/HFI_TextGeneration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAYhE,eAAO,MAAM,yBAAyB,EAAE,eAAe,CACrD,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,CA8CvB,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import type { AiProviderRunFn, TextRewriterTaskInput, TextRewriterTaskOutput } from "@workglow/ai";
7
- import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
8
- export declare const HFI_TextRewriter_Stream: AiProviderRunFn<TextRewriterTaskInput, TextRewriterTaskOutput, HfInferenceModelConfig>;
9
- //# sourceMappingURL=HFI_TextRewriter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFI_TextRewriter.d.ts","sourceRoot":"","sources":["../../../src/ai/common/HFI_TextRewriter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEnG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,eAAO,MAAM,uBAAuB,EAAE,eAAe,CACnD,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,CAyBvB,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import type { AiProviderRunFn, TextSummaryTaskInput, TextSummaryTaskOutput } from "@workglow/ai";
7
- import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
8
- export declare const HFI_TextSummary_Stream: AiProviderRunFn<TextSummaryTaskInput, TextSummaryTaskOutput, HfInferenceModelConfig>;
9
- //# sourceMappingURL=HFI_TextSummary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFI_TextSummary.d.ts","sourceRoot":"","sources":["../../../src/ai/common/HFI_TextSummary.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAEjG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,eAAO,MAAM,sBAAsB,EAAE,eAAe,CAClD,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,CAyBvB,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import type { AiProviderRunFn, ToolCallingTaskInput, ToolCallingTaskOutput } from "@workglow/ai";
7
- import type { HfInferenceModelConfig } from "./HFI_ModelSchema";
8
- export declare const HFI_ToolCalling_Stream: AiProviderRunFn<ToolCallingTaskInput, ToolCallingTaskOutput, HfInferenceModelConfig>;
9
- //# sourceMappingURL=HFI_ToolCalling.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFI_ToolCalling.d.ts","sourceRoot":"","sources":["../../../src/ai/common/HFI_ToolCalling.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAQjG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,eAAO,MAAM,sBAAsB,EAAE,eAAe,CAClD,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,CA2BvB,CAAC"}