@workglow/huggingface-transformers 0.2.34 → 0.2.36

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 (65) hide show
  1. package/dist/ai/HuggingFaceTransformersProvider.d.ts +9 -8
  2. package/dist/ai/HuggingFaceTransformersProvider.d.ts.map +1 -1
  3. package/dist/ai/HuggingFaceTransformersQueuedProvider.d.ts +10 -8
  4. package/dist/ai/HuggingFaceTransformersQueuedProvider.d.ts.map +1 -1
  5. package/dist/ai/common/HFT_BackgroundRemoval.d.ts.map +1 -1
  6. package/dist/ai/common/HFT_Capabilities.d.ts +28 -0
  7. package/dist/ai/common/HFT_Capabilities.d.ts.map +1 -0
  8. package/dist/ai/common/HFT_CapabilitySets.d.ts +40 -0
  9. package/dist/ai/common/HFT_CapabilitySets.d.ts.map +1 -0
  10. package/dist/ai/common/HFT_Chat.d.ts +1 -2
  11. package/dist/ai/common/HFT_Chat.d.ts.map +1 -1
  12. package/dist/ai/common/HFT_CountTokens.d.ts.map +1 -1
  13. package/dist/ai/common/HFT_Download.d.ts +7 -2
  14. package/dist/ai/common/HFT_Download.d.ts.map +1 -1
  15. package/dist/ai/common/{HFT_Unload.d.ts → HFT_DownloadRemove.d.ts} +3 -3
  16. package/dist/ai/common/HFT_DownloadRemove.d.ts.map +1 -0
  17. package/dist/ai/common/HFT_ImageClassification.d.ts.map +1 -1
  18. package/dist/ai/common/HFT_ImageEmbedding.d.ts.map +1 -1
  19. package/dist/ai/common/HFT_ImageSegmentation.d.ts.map +1 -1
  20. package/dist/ai/common/HFT_ImageToText.d.ts.map +1 -1
  21. package/dist/ai/common/HFT_JobRunFns.d.ts +9 -9
  22. package/dist/ai/common/HFT_JobRunFns.d.ts.map +1 -1
  23. package/dist/ai/common/HFT_ModelInfo.d.ts.map +1 -1
  24. package/dist/ai/common/HFT_ModelSchema.d.ts +3 -3
  25. package/dist/ai/common/HFT_ObjectDetection.d.ts.map +1 -1
  26. package/dist/ai/common/HFT_Pipeline.d.ts +30 -4
  27. package/dist/ai/common/HFT_Pipeline.d.ts.map +1 -1
  28. package/dist/ai/common/HFT_Streaming.d.ts +5 -12
  29. package/dist/ai/common/HFT_Streaming.d.ts.map +1 -1
  30. package/dist/ai/common/HFT_StructuredGeneration.d.ts +1 -2
  31. package/dist/ai/common/HFT_StructuredGeneration.d.ts.map +1 -1
  32. package/dist/ai/common/HFT_TextClassification.d.ts.map +1 -1
  33. package/dist/ai/common/HFT_TextEmbedding.d.ts +4 -0
  34. package/dist/ai/common/HFT_TextEmbedding.d.ts.map +1 -1
  35. package/dist/ai/common/HFT_TextFillMask.d.ts.map +1 -1
  36. package/dist/ai/common/HFT_TextGeneration.d.ts +1 -6
  37. package/dist/ai/common/HFT_TextGeneration.d.ts.map +1 -1
  38. package/dist/ai/common/HFT_TextLanguageDetection.d.ts.map +1 -1
  39. package/dist/ai/common/HFT_TextNamedEntityRecognition.d.ts.map +1 -1
  40. package/dist/ai/common/HFT_TextQuestionAnswer.d.ts +1 -6
  41. package/dist/ai/common/HFT_TextQuestionAnswer.d.ts.map +1 -1
  42. package/dist/ai/common/HFT_TextReranker.d.ts +42 -0
  43. package/dist/ai/common/HFT_TextReranker.d.ts.map +1 -0
  44. package/dist/ai/common/HFT_TextRewriter.d.ts +1 -6
  45. package/dist/ai/common/HFT_TextRewriter.d.ts.map +1 -1
  46. package/dist/ai/common/HFT_TextSummary.d.ts +1 -6
  47. package/dist/ai/common/HFT_TextSummary.d.ts.map +1 -1
  48. package/dist/ai/common/HFT_TextTranslation.d.ts +1 -6
  49. package/dist/ai/common/HFT_TextTranslation.d.ts.map +1 -1
  50. package/dist/ai/common/HFT_ToolCalling.d.ts +1 -2
  51. package/dist/ai/common/HFT_ToolCalling.d.ts.map +1 -1
  52. package/dist/ai/index.d.ts +53 -2
  53. package/dist/ai/index.d.ts.map +1 -1
  54. package/dist/ai/registerHuggingFaceTransformersInline.d.ts.map +1 -1
  55. package/dist/ai/registerHuggingFaceTransformersWorker.d.ts.map +1 -1
  56. package/dist/ai/runtime.d.ts +1 -0
  57. package/dist/ai/runtime.d.ts.map +1 -1
  58. package/dist/ai-runtime.d.ts.map +1 -1
  59. package/dist/ai-runtime.js +665 -858
  60. package/dist/ai-runtime.js.map +38 -36
  61. package/dist/ai.d.ts.map +1 -1
  62. package/dist/ai.js +1434 -183
  63. package/dist/ai.js.map +38 -8
  64. package/package.json +12 -13
  65. package/dist/ai/common/HFT_Unload.d.ts.map +0 -1
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@workglow/huggingface-transformers",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.2.34",
5
+ "version": "0.2.36",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/workglow-dev/libs.git",
@@ -18,8 +18,7 @@
18
18
  "build-clean": "rm -fr dist/* tsconfig.tsbuildinfo",
19
19
  "build-code": "bun build --sourcemap=external --packages=external --root ./src --outdir ./dist ./src/ai.ts ./src/ai-runtime.ts",
20
20
  "build-types": "rm -f tsconfig.tsbuildinfo && tsgo",
21
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
22
- "test": "bun test"
21
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
23
22
  },
24
23
  "exports": {
25
24
  "./ai": {
@@ -35,11 +34,11 @@
35
34
  "@huggingface/transformers": "^4.2.0"
36
35
  },
37
36
  "peerDependencies": {
38
- "@workglow/ai": "0.2.34",
39
- "@workglow/job-queue": "0.2.34",
40
- "@workglow/storage": "0.2.34",
41
- "@workglow/task-graph": "0.2.34",
42
- "@workglow/util": "0.2.34"
37
+ "@workglow/ai": "0.2.36",
38
+ "@workglow/job-queue": "0.2.36",
39
+ "@workglow/storage": "0.2.36",
40
+ "@workglow/task-graph": "0.2.36",
41
+ "@workglow/util": "0.2.36"
43
42
  },
44
43
  "peerDependenciesMeta": {
45
44
  "@workglow/ai": {
@@ -59,11 +58,11 @@
59
58
  }
60
59
  },
61
60
  "devDependencies": {
62
- "@workglow/ai": "0.2.34",
63
- "@workglow/job-queue": "0.2.34",
64
- "@workglow/storage": "0.2.34",
65
- "@workglow/task-graph": "0.2.34",
66
- "@workglow/util": "0.2.34"
61
+ "@workglow/ai": "0.2.36",
62
+ "@workglow/job-queue": "0.2.36",
63
+ "@workglow/storage": "0.2.36",
64
+ "@workglow/task-graph": "0.2.36",
65
+ "@workglow/util": "0.2.36"
67
66
  },
68
67
  "files": [
69
68
  "dist",
@@ -1 +0,0 @@
1
- {"version":3,"file":"HFT_Unload.d.ts","sourceRoot":"","sources":["../../../src/ai/common/HFT_Unload.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AA2DvE;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,eAAe,CACtC,uBAAuB,EACvB,wBAAwB,EACxB,6BAA6B,CAsB9B,CAAC"}