@dxos/plugin-transformer 0.8.4-main.1068cf700f → 0.8.4-main.1c7ec43d41

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 (58) hide show
  1. package/dist/lib/browser/TransformerPlugin-TWSS3YA7.mjs +25 -0
  2. package/dist/lib/browser/TransformerPlugin-TWSS3YA7.mjs.map +7 -0
  3. package/dist/lib/browser/index.mjs +6 -32
  4. package/dist/lib/browser/index.mjs.map +4 -4
  5. package/dist/lib/browser/meta.json +1 -1
  6. package/dist/lib/browser/translations.mjs +15 -0
  7. package/dist/lib/browser/translations.mjs.map +7 -0
  8. package/dist/lib/node-esm/TransformerPlugin-JZEUE72G.mjs +27 -0
  9. package/dist/lib/node-esm/TransformerPlugin-JZEUE72G.mjs.map +7 -0
  10. package/dist/lib/node-esm/index.mjs +6 -32
  11. package/dist/lib/node-esm/index.mjs.map +4 -4
  12. package/dist/lib/node-esm/meta.json +1 -1
  13. package/dist/lib/node-esm/translations.mjs +17 -0
  14. package/dist/lib/node-esm/translations.mjs.map +7 -0
  15. package/dist/types/src/TransformerPlugin.d.ts +1 -0
  16. package/dist/types/src/TransformerPlugin.d.ts.map +1 -1
  17. package/dist/types/src/TransformerPlugin.test.d.ts +2 -0
  18. package/dist/types/src/TransformerPlugin.test.d.ts.map +1 -0
  19. package/dist/types/src/components/Voice/DebugInfo.d.ts.map +1 -0
  20. package/dist/types/src/components/Voice/Voice.d.ts.map +1 -0
  21. package/dist/types/src/components/Voice/Voice.stories.d.ts.map +1 -0
  22. package/dist/types/src/components/Voice/index.d.ts +3 -0
  23. package/dist/types/src/components/Voice/index.d.ts.map +1 -0
  24. package/dist/types/src/components/index.d.ts +2 -0
  25. package/dist/types/src/components/index.d.ts.map +1 -0
  26. package/dist/types/src/hooks/useAudioStream.d.ts.map +1 -1
  27. package/dist/types/src/hooks/usePipeline.d.ts +1 -16
  28. package/dist/types/src/hooks/usePipeline.d.ts.map +1 -1
  29. package/dist/types/src/index.d.ts +2 -1
  30. package/dist/types/src/index.d.ts.map +1 -1
  31. package/dist/types/src/testing/node-pipeline.d.ts +1 -1
  32. package/dist/types/src/testing/node-pipeline.d.ts.map +1 -1
  33. package/dist/types/src/testing/pipeline.d.ts.map +1 -1
  34. package/dist/types/src/testing/web-pipeline.d.ts +1 -1
  35. package/dist/types/src/testing/web-pipeline.d.ts.map +1 -1
  36. package/dist/types/src/translations.d.ts +2 -3
  37. package/dist/types/src/translations.d.ts.map +1 -1
  38. package/dist/types/tsconfig.tsbuildinfo +1 -1
  39. package/package.json +42 -34
  40. package/src/TransformerPlugin.test.ts +25 -0
  41. package/src/TransformerPlugin.tsx +5 -3
  42. package/src/components/{DebugInfo.tsx → Voice/DebugInfo.tsx} +3 -3
  43. package/src/components/{Voice.stories.tsx → Voice/Voice.stories.tsx} +1 -1
  44. package/src/components/{Voice.tsx → Voice/Voice.tsx} +1 -1
  45. package/src/components/Voice/index.ts +6 -0
  46. package/src/{capabilities → components}/index.ts +2 -0
  47. package/src/hooks/usePipeline.ts +9 -33
  48. package/src/index.ts +6 -2
  49. package/src/meta.ts +1 -1
  50. package/src/translations.ts +2 -2
  51. package/dist/types/src/capabilities/index.d.ts +0 -1
  52. package/dist/types/src/capabilities/index.d.ts.map +0 -1
  53. package/dist/types/src/components/DebugInfo.d.ts.map +0 -1
  54. package/dist/types/src/components/Voice.d.ts.map +0 -1
  55. package/dist/types/src/components/Voice.stories.d.ts.map +0 -1
  56. /package/dist/types/src/components/{DebugInfo.d.ts → Voice/DebugInfo.d.ts} +0 -0
  57. /package/dist/types/src/components/{Voice.d.ts → Voice/Voice.d.ts} +0 -0
  58. /package/dist/types/src/components/{Voice.stories.d.ts → Voice/Voice.stories.d.ts} +0 -0
@@ -0,0 +1,25 @@
1
+ // src/TransformerPlugin.tsx
2
+ import { Plugin } from "@dxos/app-framework";
3
+ import { AppPlugin } from "@dxos/app-toolkit";
4
+ import { meta } from "#meta";
5
+ import { translations } from "#translations";
6
+ var TransformerPlugin = Plugin.define(meta).pipe(
7
+ AppPlugin.addSchemaModule({
8
+ schema: []
9
+ }),
10
+ AppPlugin.addTranslationsModule({
11
+ translations
12
+ }),
13
+ // Plugin.addModule({
14
+ // id: 'intent-resolver',
15
+ // activatesOn: Events.SetupIntentResolver,
16
+ // activate: IntentResolver,
17
+ // }),
18
+ Plugin.make
19
+ );
20
+ var TransformerPlugin_default = TransformerPlugin;
21
+ export {
22
+ TransformerPlugin,
23
+ TransformerPlugin_default as default
24
+ };
25
+ //# sourceMappingURL=TransformerPlugin-TWSS3YA7.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/TransformerPlugin.tsx"],
4
+ "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\n\n// import { IntentResolver } from './capabilities';\nimport { meta } from '#meta';\nimport { translations } from '#translations';\n\nexport const TransformerPlugin = Plugin.define(meta).pipe(\n AppPlugin.addSchemaModule({ schema: [] }),\n AppPlugin.addTranslationsModule({ translations }),\n // Plugin.addModule({\n // id: 'intent-resolver',\n // activatesOn: Events.SetupIntentResolver,\n // activate: IntentResolver,\n // }),\n Plugin.make,\n);\n\nexport default TransformerPlugin;\n"],
5
+ "mappings": ";AAIA,SAASA,cAAc;AACvB,SAASC,iBAAiB;AAG1B,SAASC,YAAY;AACrB,SAASC,oBAAoB;AAEtB,IAAMC,oBAAoBJ,OAAOK,OAAOH,IAAAA,EAAMI;EACnDL,UAAUM,gBAAgB;IAAEC,QAAQ,CAAA;EAAG,CAAA;EACvCP,UAAUQ,sBAAsB;IAAEN;EAAa,CAAA;;;;;;EAM/CH,OAAOU;AAAI;AAGb,IAAA,4BAAeN;",
6
+ "names": ["Plugin", "AppPlugin", "meta", "translations", "TransformerPlugin", "define", "pipe", "addSchemaModule", "schema", "addTranslationsModule", "make"]
7
+ }
@@ -1,7 +1,10 @@
1
+ // src/index.ts
2
+ import { Plugin } from "@dxos/app-framework";
3
+
1
4
  // src/meta.ts
2
5
  import { trim } from "@dxos/util";
3
6
  var meta = {
4
- id: "dxos.org/plugin/transformer",
7
+ id: "org.dxos.plugin.transformer",
5
8
  name: "Transformer",
6
9
  description: trim`
7
10
  Execute local machine learning transformers and AI models directly in your browser.
@@ -14,37 +17,8 @@ var meta = {
14
17
  ]
15
18
  };
16
19
 
17
- // src/TransformerPlugin.tsx
18
- import { Plugin } from "@dxos/app-framework";
19
- import { AppPlugin } from "@dxos/app-toolkit";
20
-
21
- // src/translations.ts
22
- var translations = [
23
- {
24
- "en-US": {
25
- [meta.id]: {
26
- "plugin name": "Transformers"
27
- }
28
- }
29
- }
30
- ];
31
-
32
- // src/TransformerPlugin.tsx
33
- var TransformerPlugin = Plugin.define(meta).pipe(
34
- AppPlugin.addSchemaModule({
35
- schema: [],
36
- id: "schema"
37
- }),
38
- AppPlugin.addTranslationsModule({
39
- translations
40
- }),
41
- // Plugin.addModule({
42
- // id: 'intent-resolver',
43
- // activatesOn: Events.SetupIntentResolver,
44
- // activate: IntentResolver,
45
- // }),
46
- Plugin.make
47
- );
20
+ // src/index.ts
21
+ var TransformerPlugin = Plugin.lazy(meta, () => import("./TransformerPlugin-TWSS3YA7.mjs"));
48
22
  export {
49
23
  TransformerPlugin,
50
24
  meta
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/meta.ts", "../../../src/TransformerPlugin.tsx", "../../../src/translations.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'dxos.org/plugin/transformer',\n name: 'Transformer',\n description: trim`\n Execute local machine learning transformers and AI models directly in your browser.\n Run embeddings, classifications, and other ML tasks without server dependencies.\n `,\n icon: 'ph--cpu--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-transformer',\n tags: ['labs'],\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\n\n// import { IntentResolver } from './capabilities';\nimport { meta } from './meta';\nimport { translations } from './translations';\n\nexport const TransformerPlugin = Plugin.define(meta).pipe(\n AppPlugin.addSchemaModule({ schema: [], id: 'schema' }),\n AppPlugin.addTranslationsModule({ translations }),\n // Plugin.addModule({\n // id: 'intent-resolver',\n // activatesOn: Events.SetupIntentResolver,\n // activate: IntentResolver,\n // }),\n Plugin.make,\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from './meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin name': 'Transformers',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
- "mappings": ";AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;AACT;;;ACbA,SAASC,cAAc;AACvB,SAASC,iBAAiB;;;ACGnB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;MACjB;IACF;EACF;;;;ADJK,IAAMC,oBAAoBC,OAAOC,OAAOC,IAAAA,EAAMC;EACnDC,UAAUC,gBAAgB;IAAEC,QAAQ,CAAA;IAAIC,IAAI;EAAS,CAAA;EACrDH,UAAUI,sBAAsB;IAAEC;EAAa,CAAA;;;;;;EAM/CT,OAAOU;AAAI;",
6
- "names": ["trim", "meta", "id", "name", "description", "trim", "icon", "source", "tags", "Plugin", "AppPlugin", "translations", "meta", "id", "TransformerPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addSchemaModule", "schema", "id", "addTranslationsModule", "translations", "make"]
3
+ "sources": ["../../../src/index.ts", "../../../src/meta.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const TransformerPlugin = Plugin.lazy(meta, () => import('./TransformerPlugin'));\n\nexport * from './meta';\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.transformer',\n name: 'Transformer',\n description: trim`\n Execute local machine learning transformers and AI models directly in your browser.\n Run embeddings, classifications, and other ML tasks without server dependencies.\n `,\n icon: 'ph--cpu--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-transformer',\n tags: ['labs'],\n};\n"],
5
+ "mappings": ";AAIA,SAASA,cAAc;;;ACCvB,SAASC,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;AACT;;;ADTO,IAAMC,oBAAoBC,OAAOC,KAAKC,MAAM,MAAM,OAAO,kCAAA,CAAA;",
6
+ "names": ["Plugin", "trim", "meta", "id", "name", "description", "icon", "source", "tags", "TransformerPlugin", "Plugin", "lazy", "meta"]
7
7
  }
@@ -1 +1 @@
1
- {"inputs":{"src/meta.ts":{"bytes":1859,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/translations.ts":{"bytes":1135,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/TransformerPlugin.tsx":{"bytes":2384,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/index.ts":{"bytes":567,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/TransformerPlugin.tsx","kind":"import-statement","original":"./TransformerPlugin"}],"format":"esm"},"src/types/index.ts":{"bytes":380,"imports":[],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2358},"dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true}],"exports":["TransformerPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/meta.ts":{"bytesInOutput":451},"src/index.ts":{"bytesInOutput":0},"src/TransformerPlugin.tsx":{"bytesInOutput":432},"src/translations.ts":{"bytesInOutput":118}},"bytes":1175},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[],"exports":[],"entryPoint":"src/types/index.ts","inputs":{"src/types/index.ts":{"bytesInOutput":0}},"bytes":35}}}
1
+ {"inputs":{"src/meta.ts":{"bytes":1774,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/TransformerPlugin.tsx":{"bytes":2327,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":988,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/TransformerPlugin.tsx","kind":"dynamic-import","original":"./TransformerPlugin"}],"format":"esm"},"src/translations.ts":{"bytes":1041,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":288,"imports":[],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1274},"dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"dist/lib/browser/TransformerPlugin-TWSS3YA7.mjs","kind":"dynamic-import"}],"exports":["TransformerPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":139},"src/meta.ts":{"bytesInOutput":451}},"bytes":714},"dist/lib/browser/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":548},"dist/lib/browser/translations.mjs":{"imports":[{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":148}},"bytes":240},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[],"exports":[],"entryPoint":"src/types/index.ts","inputs":{"src/types/index.ts":{"bytesInOutput":0}},"bytes":35},"dist/lib/browser/TransformerPlugin-TWSS3YA7.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1149},"dist/lib/browser/TransformerPlugin-TWSS3YA7.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"exports":["TransformerPlugin","default"],"entryPoint":"src/TransformerPlugin.tsx","inputs":{"src/TransformerPlugin.tsx":{"bytesInOutput":541}},"bytes":698}}}
@@ -0,0 +1,15 @@
1
+ // src/translations.ts
2
+ import { meta } from "#meta";
3
+ var translations = [
4
+ {
5
+ "en-US": {
6
+ [meta.id]: {
7
+ "plugin.name": "Transformers"
8
+ }
9
+ }
10
+ }
11
+ ];
12
+ export {
13
+ translations
14
+ };
15
+ //# sourceMappingURL=translations.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Transformers',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";AAMA,SAASA,YAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACD,KAAKE,EAAE,GAAG;QACT,eAAe;MACjB;IACF;EACF;;",
6
+ "names": ["meta", "translations", "id"]
7
+ }
@@ -0,0 +1,27 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+
3
+ // src/TransformerPlugin.tsx
4
+ import { Plugin } from "@dxos/app-framework";
5
+ import { AppPlugin } from "@dxos/app-toolkit";
6
+ import { meta } from "#meta";
7
+ import { translations } from "#translations";
8
+ var TransformerPlugin = Plugin.define(meta).pipe(
9
+ AppPlugin.addSchemaModule({
10
+ schema: []
11
+ }),
12
+ AppPlugin.addTranslationsModule({
13
+ translations
14
+ }),
15
+ // Plugin.addModule({
16
+ // id: 'intent-resolver',
17
+ // activatesOn: Events.SetupIntentResolver,
18
+ // activate: IntentResolver,
19
+ // }),
20
+ Plugin.make
21
+ );
22
+ var TransformerPlugin_default = TransformerPlugin;
23
+ export {
24
+ TransformerPlugin,
25
+ TransformerPlugin_default as default
26
+ };
27
+ //# sourceMappingURL=TransformerPlugin-JZEUE72G.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/TransformerPlugin.tsx"],
4
+ "sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\n\n// import { IntentResolver } from './capabilities';\nimport { meta } from '#meta';\nimport { translations } from '#translations';\n\nexport const TransformerPlugin = Plugin.define(meta).pipe(\n AppPlugin.addSchemaModule({ schema: [] }),\n AppPlugin.addTranslationsModule({ translations }),\n // Plugin.addModule({\n // id: 'intent-resolver',\n // activatesOn: Events.SetupIntentResolver,\n // activate: IntentResolver,\n // }),\n Plugin.make,\n);\n\nexport default TransformerPlugin;\n"],
5
+ "mappings": ";;;AAIA,SAASA,cAAc;AACvB,SAASC,iBAAiB;AAG1B,SAASC,YAAY;AACrB,SAASC,oBAAoB;AAEtB,IAAMC,oBAAoBJ,OAAOK,OAAOH,IAAAA,EAAMI;EACnDL,UAAUM,gBAAgB;IAAEC,QAAQ,CAAA;EAAG,CAAA;EACvCP,UAAUQ,sBAAsB;IAAEN;EAAa,CAAA;;;;;;EAM/CH,OAAOU;AAAI;AAGb,IAAA,4BAAeN;",
6
+ "names": ["Plugin", "AppPlugin", "meta", "translations", "TransformerPlugin", "define", "pipe", "addSchemaModule", "schema", "addTranslationsModule", "make"]
7
+ }
@@ -1,9 +1,12 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
 
3
+ // src/index.ts
4
+ import { Plugin } from "@dxos/app-framework";
5
+
3
6
  // src/meta.ts
4
7
  import { trim } from "@dxos/util";
5
8
  var meta = {
6
- id: "dxos.org/plugin/transformer",
9
+ id: "org.dxos.plugin.transformer",
7
10
  name: "Transformer",
8
11
  description: trim`
9
12
  Execute local machine learning transformers and AI models directly in your browser.
@@ -16,37 +19,8 @@ var meta = {
16
19
  ]
17
20
  };
18
21
 
19
- // src/TransformerPlugin.tsx
20
- import { Plugin } from "@dxos/app-framework";
21
- import { AppPlugin } from "@dxos/app-toolkit";
22
-
23
- // src/translations.ts
24
- var translations = [
25
- {
26
- "en-US": {
27
- [meta.id]: {
28
- "plugin name": "Transformers"
29
- }
30
- }
31
- }
32
- ];
33
-
34
- // src/TransformerPlugin.tsx
35
- var TransformerPlugin = Plugin.define(meta).pipe(
36
- AppPlugin.addSchemaModule({
37
- schema: [],
38
- id: "schema"
39
- }),
40
- AppPlugin.addTranslationsModule({
41
- translations
42
- }),
43
- // Plugin.addModule({
44
- // id: 'intent-resolver',
45
- // activatesOn: Events.SetupIntentResolver,
46
- // activate: IntentResolver,
47
- // }),
48
- Plugin.make
49
- );
22
+ // src/index.ts
23
+ var TransformerPlugin = Plugin.lazy(meta, () => import("./TransformerPlugin-JZEUE72G.mjs"));
50
24
  export {
51
25
  TransformerPlugin,
52
26
  meta
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/meta.ts", "../../../src/TransformerPlugin.tsx", "../../../src/translations.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'dxos.org/plugin/transformer',\n name: 'Transformer',\n description: trim`\n Execute local machine learning transformers and AI models directly in your browser.\n Run embeddings, classifications, and other ML tasks without server dependencies.\n `,\n icon: 'ph--cpu--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-transformer',\n tags: ['labs'],\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\n\n// import { IntentResolver } from './capabilities';\nimport { meta } from './meta';\nimport { translations } from './translations';\n\nexport const TransformerPlugin = Plugin.define(meta).pipe(\n AppPlugin.addSchemaModule({ schema: [], id: 'schema' }),\n AppPlugin.addTranslationsModule({ translations }),\n // Plugin.addModule({\n // id: 'intent-resolver',\n // activatesOn: Events.SetupIntentResolver,\n // activate: IntentResolver,\n // }),\n Plugin.make,\n);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from './meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin name': 'Transformers',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
- "mappings": ";;;AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;AACT;;;ACbA,SAASC,cAAc;AACvB,SAASC,iBAAiB;;;ACGnB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;MACjB;IACF;EACF;;;;ADJK,IAAMC,oBAAoBC,OAAOC,OAAOC,IAAAA,EAAMC;EACnDC,UAAUC,gBAAgB;IAAEC,QAAQ,CAAA;IAAIC,IAAI;EAAS,CAAA;EACrDH,UAAUI,sBAAsB;IAAEC;EAAa,CAAA;;;;;;EAM/CT,OAAOU;AAAI;",
6
- "names": ["trim", "meta", "id", "name", "description", "trim", "icon", "source", "tags", "Plugin", "AppPlugin", "translations", "meta", "id", "TransformerPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addSchemaModule", "schema", "id", "addTranslationsModule", "translations", "make"]
3
+ "sources": ["../../../src/index.ts", "../../../src/meta.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const TransformerPlugin = Plugin.lazy(meta, () => import('./TransformerPlugin'));\n\nexport * from './meta';\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.transformer',\n name: 'Transformer',\n description: trim`\n Execute local machine learning transformers and AI models directly in your browser.\n Run embeddings, classifications, and other ML tasks without server dependencies.\n `,\n icon: 'ph--cpu--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-transformer',\n tags: ['labs'],\n};\n"],
5
+ "mappings": ";;;AAIA,SAASA,cAAc;;;ACCvB,SAASC,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;AACT;;;ADTO,IAAMC,oBAAoBC,OAAOC,KAAKC,MAAM,MAAM,OAAO,kCAAA,CAAA;",
6
+ "names": ["Plugin", "trim", "meta", "id", "name", "description", "icon", "source", "tags", "TransformerPlugin", "Plugin", "lazy", "meta"]
7
7
  }
@@ -1 +1 @@
1
- {"inputs":{"src/meta.ts":{"bytes":1859,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/translations.ts":{"bytes":1135,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/TransformerPlugin.tsx":{"bytes":2384,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/index.ts":{"bytes":567,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/TransformerPlugin.tsx","kind":"import-statement","original":"./TransformerPlugin"}],"format":"esm"},"src/types/index.ts":{"bytes":380,"imports":[],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2360},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true}],"exports":["TransformerPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/meta.ts":{"bytesInOutput":451},"src/index.ts":{"bytesInOutput":0},"src/TransformerPlugin.tsx":{"bytesInOutput":432},"src/translations.ts":{"bytesInOutput":118}},"bytes":1268},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/types/index.mjs":{"imports":[],"exports":[],"entryPoint":"src/types/index.ts","inputs":{"src/types/index.ts":{"bytesInOutput":0}},"bytes":127}}}
1
+ {"inputs":{"src/meta.ts":{"bytes":1774,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/TransformerPlugin.tsx":{"bytes":2327,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":988,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/TransformerPlugin.tsx","kind":"dynamic-import","original":"./TransformerPlugin"}],"format":"esm"},"src/translations.ts":{"bytes":1041,"imports":[{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/types/index.ts":{"bytes":288,"imports":[],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1276},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"dist/lib/node-esm/TransformerPlugin-JZEUE72G.mjs","kind":"dynamic-import"}],"exports":["TransformerPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":139},"src/meta.ts":{"bytesInOutput":451}},"bytes":807},"dist/lib/node-esm/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":550},"dist/lib/node-esm/translations.mjs":{"imports":[{"path":"#meta","kind":"import-statement","external":true}],"exports":["translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":148}},"bytes":333},"dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/node-esm/types/index.mjs":{"imports":[],"exports":[],"entryPoint":"src/types/index.ts","inputs":{"src/types/index.ts":{"bytesInOutput":0}},"bytes":127},"dist/lib/node-esm/TransformerPlugin-JZEUE72G.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1151},"dist/lib/node-esm/TransformerPlugin-JZEUE72G.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"exports":["TransformerPlugin","default"],"entryPoint":"src/TransformerPlugin.tsx","inputs":{"src/TransformerPlugin.tsx":{"bytesInOutput":541}},"bytes":791}}}
@@ -0,0 +1,17 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+
3
+ // src/translations.ts
4
+ import { meta } from "#meta";
5
+ var translations = [
6
+ {
7
+ "en-US": {
8
+ [meta.id]: {
9
+ "plugin.name": "Transformers"
10
+ }
11
+ }
12
+ }
13
+ ];
14
+ export {
15
+ translations
16
+ };
17
+ //# sourceMappingURL=translations.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [meta.id]: {\n 'plugin.name': 'Transformers',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";;;AAMA,SAASA,YAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACD,KAAKE,EAAE,GAAG;QACT,eAAe;MACjB;IACF;EACF;;",
6
+ "names": ["meta", "translations", "id"]
7
+ }
@@ -1,3 +1,4 @@
1
1
  import { Plugin } from '@dxos/app-framework';
2
2
  export declare const TransformerPlugin: Plugin.PluginFactory<void>;
3
+ export default TransformerPlugin;
3
4
  //# sourceMappingURL=TransformerPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TransformerPlugin.d.ts","sourceRoot":"","sources":["../../../src/TransformerPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAO7C,eAAO,MAAM,iBAAiB,4BAS7B,CAAC"}
1
+ {"version":3,"file":"TransformerPlugin.d.ts","sourceRoot":"","sources":["../../../src/TransformerPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAO7C,eAAO,MAAM,iBAAiB,4BAS7B,CAAC;eAEa,iBAAiB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=TransformerPlugin.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransformerPlugin.test.d.ts","sourceRoot":"","sources":["../../../src/TransformerPlugin.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DebugInfo.d.ts","sourceRoot":"","sources":["../../../../../src/components/Voice/DebugInfo.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC,CA4DjD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Voice.d.ts","sourceRoot":"","sources":["../../../../../src/components/Voice/Voice.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAQhE,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,KAAK,6BAAsD,UAAU,sBA4FjF,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Voice.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Voice/Voice.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAIjE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,QAAA,MAAM,IAAI;;;;;QAKN,MAAM;;CAEoB,CAAC;eAEhB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAEpC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './DebugInfo';
2
+ export * from './Voice';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Voice/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Voice';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useAudioStream.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAudioStream.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1D,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,gCAAgC,iBAAiB,qBAuO/E,CAAC"}
1
+ {"version":3,"file":"useAudioStream.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAudioStream.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1D,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,cAAc,mCAAoC,iBAAiB,qBAuO/E,CAAC"}
@@ -1,18 +1,3 @@
1
- declare global {
2
- interface Navigator {
3
- gpu?: {
4
- requestAdapter(): Promise<GPUAdapter | null>;
5
- };
6
- }
7
- interface GPUAdapter {
8
- requestAdapterInfo(): Promise<GPUAdapterInfo>;
9
- }
10
- interface GPUAdapterInfo {
11
- vendor: string;
12
- architecture: string;
13
- description: string;
14
- }
15
- }
16
1
  export type PipelineConfig = {
17
2
  active?: boolean;
18
3
  debug?: boolean;
@@ -32,10 +17,10 @@ export type TranscriptionOptions = {
32
17
  language: string;
33
18
  };
34
19
  export declare const usePipeline: ({ active, model, debug }: PipelineConfig) => {
35
- transcribe: (audioData: Float32Array, options: TranscriptionOptions) => Promise<any>;
36
20
  gpuInfo: string;
37
21
  isLoaded: boolean;
38
22
  isLoading: boolean;
39
23
  error: string | null;
24
+ transcribe: (audioData: Float32Array, options: TranscriptionOptions) => Promise<any>;
40
25
  };
41
26
  //# sourceMappingURL=usePipeline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePipeline.d.ts","sourceRoot":"","sources":["../../../../src/hooks/usePipeline.ts"],"names":[],"mappings":"AAWA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,SAAS;QACjB,GAAG,CAAC,EAAE;YACJ,cAAc,IAAI,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;SAC9C,CAAC;KACH;IAED,UAAU,UAAU;QAClB,kBAAkB,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;KAC/C;IAED,UAAU,cAAc;QACtB,MAAM,EAAE,MAAM,CAAC;QACf,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;KACrB;CACF;AAaD,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,CAAC;AAGF,MAAM,MAAM,oBAAoB,GAAG;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,0BAA0B,cAAc;4BAgF7B,YAAY,WAAW,oBAAoB;aA/FvE,MAAM;cACL,OAAO;eACN,OAAO;WACX,MAAM,GAAG,IAAI;CAsGrB,CAAC"}
1
+ {"version":3,"file":"usePipeline.d.ts","sourceRoot":"","sources":["../../../../src/hooks/usePipeline.ts"],"names":[],"mappings":"AAqBA,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,CAAC;AAGF,MAAM,MAAM,oBAAoB,GAAG;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,WAAW,6BAA8B,cAAc;aAfzD,MAAM;cACL,OAAO;eACN,OAAO;WACX,MAAM,GAAG,IAAI;4BAuFiB,YAAY,WAAW,oBAAoB;CAUjF,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const TransformerPlugin: Plugin.PluginFactory<void>;
1
3
  export * from './meta';
2
- export * from './TransformerPlugin';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC;AAEvB,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,eAAO,MAAM,iBAAiB,4BAAyD,CAAC;AAExF,cAAc,QAAQ,CAAC"}
@@ -7,6 +7,6 @@ export declare class NodeRagPipeline extends RagPipeline {
7
7
  private textModel;
8
8
  constructor(embeddingModel?: string, textModel?: string);
9
9
  protected generateEmbeddings(text: string | string[]): Promise<EmbeddingOutput>;
10
- protected generateText(prompt: string): Promise<import("@xenova/transformers").Text2TextGenerationOutput | import("@xenova/transformers").Text2TextGenerationOutput[]>;
10
+ protected generateText(prompt: string): Promise<import("@xenova/transformers").Text2TextGenerationOutput[] | import("@xenova/transformers").Text2TextGenerationOutput>;
11
11
  }
12
12
  //# sourceMappingURL=node-pipeline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node-pipeline.d.ts","sourceRoot":"","sources":["../../../../src/testing/node-pipeline.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,eAAe,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE/D;;GAEG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,SAAS,CAAS;gBAEd,cAAc,SAA4B,EAAE,SAAS,SAAoB;cAMrE,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC;cAMrE,YAAY,CAAC,MAAM,EAAE,MAAM;CAO5C"}
1
+ {"version":3,"file":"node-pipeline.d.ts","sourceRoot":"","sources":["../../../../src/testing/node-pipeline.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,eAAe,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE/D;;GAEG;AACH,qBAAa,eAAgB,SAAQ,WAAW;IAC9C,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,SAAS,CAAS;IAE1B,YAAY,cAAc,SAA4B,EAAE,SAAS,SAAoB,EAIpF;IAED,UAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,CAIpF;IAED,UAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,kIAM1C;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../../../src/testing/pipeline.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,8BAAsB,WAAW;IAC/B;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC;IAExF;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IAE7D;;OAEG;IACH,SAAS,CAAC,gBAAgB,CAAC,CAAC,EAAE,YAAY,GAAG,MAAM,EAAE,EAAE,CAAC,EAAE,YAAY,GAAG,MAAM,EAAE,GAAG,MAAM;IAS1F;;OAEG;IACG,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE;CA+BjE"}
1
+ {"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../../../src/testing/pipeline.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,8BAAsB,WAAW;IAC/B;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAEzF;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAE9D;;OAEG;IACH,SAAS,CAAC,gBAAgB,CAAC,CAAC,EAAE,YAAY,GAAG,MAAM,EAAE,EAAE,CAAC,EAAE,YAAY,GAAG,MAAM,EAAE,GAAG,MAAM,CAOzF;IAED;;OAEG;IACG,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,gBA8B/D;CACF"}
@@ -7,6 +7,6 @@ export declare class WebRagPipeline extends RagPipeline {
7
7
  private textModel;
8
8
  constructor(embeddingModel?: string, textModel?: string);
9
9
  protected generateEmbeddings(text: string | string[]): Promise<EmbeddingOutput>;
10
- protected generateText(prompt: string): Promise<import("@huggingface/transformers").TextGenerationOutput | import("@huggingface/transformers").TextGenerationOutput[]>;
10
+ protected generateText(prompt: string): Promise<import("@huggingface/transformers").TextGenerationOutput[] | import("@huggingface/transformers").TextGenerationOutput>;
11
11
  }
12
12
  //# sourceMappingURL=web-pipeline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"web-pipeline.d.ts","sourceRoot":"","sources":["../../../../src/testing/web-pipeline.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,eAAe,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAO/D;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,SAAS,CAAS;gBAEd,cAAc,SAA4B,EAAE,SAAS,SAAsB;cAMvE,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC;cASrE,YAAY,CAAC,MAAM,EAAE,MAAM;CAU5C"}
1
+ {"version":3,"file":"web-pipeline.d.ts","sourceRoot":"","sources":["../../../../src/testing/web-pipeline.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,eAAe,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAO/D;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,SAAS,CAAS;IAE1B,YAAY,cAAc,SAA4B,EAAE,SAAS,SAAsB,EAItF;IAED,UAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,CAOpF;IAED,UAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,kIAS1C;CACF"}
@@ -1,8 +1,7 @@
1
- import { meta } from './meta';
2
1
  export declare const translations: [{
3
2
  readonly 'en-US': {
4
- readonly [meta.id]: {
5
- readonly 'plugin name': "Transformers";
3
+ readonly [x: string]: {
4
+ readonly 'plugin.name': 'Transformers';
6
5
  };
7
6
  };
8
7
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,YAAY;;QAGnB,SAAA,CAAC,IAAI,CAAC,EAAE,CAAC;;UAER;;EAGwB,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY;;;oCAIF,cAAc;;;EAIN,CAAC"}