@dxos/plugin-transformer 0.8.4-main.f9ba587 → 0.8.4-main.fcc0d83b33

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 (52) hide show
  1. package/dist/lib/browser/index.mjs +23 -34
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/browser/translations.mjs +15 -0
  5. package/dist/lib/browser/translations.mjs.map +7 -0
  6. package/dist/lib/node-esm/index.mjs +23 -34
  7. package/dist/lib/node-esm/index.mjs.map +4 -4
  8. package/dist/lib/node-esm/meta.json +1 -1
  9. package/dist/lib/node-esm/translations.mjs +17 -0
  10. package/dist/lib/node-esm/translations.mjs.map +7 -0
  11. package/dist/types/src/TransformerPlugin.d.ts +2 -1
  12. package/dist/types/src/TransformerPlugin.d.ts.map +1 -1
  13. package/dist/types/src/components/Voice/DebugInfo.d.ts.map +1 -0
  14. package/dist/types/src/components/Voice/Voice.d.ts.map +1 -0
  15. package/dist/types/src/components/Voice/Voice.stories.d.ts +14 -0
  16. package/dist/types/src/components/Voice/Voice.stories.d.ts.map +1 -0
  17. package/dist/types/src/components/Voice/index.d.ts +3 -0
  18. package/dist/types/src/components/Voice/index.d.ts.map +1 -0
  19. package/dist/types/src/components/index.d.ts +2 -0
  20. package/dist/types/src/components/index.d.ts.map +1 -0
  21. package/dist/types/src/hooks/useAudioStream.d.ts.map +1 -1
  22. package/dist/types/src/hooks/usePipeline.d.ts +1 -16
  23. package/dist/types/src/hooks/usePipeline.d.ts.map +1 -1
  24. package/dist/types/src/meta.d.ts +2 -3
  25. package/dist/types/src/meta.d.ts.map +1 -1
  26. package/dist/types/src/testing/node-pipeline.d.ts +1 -1
  27. package/dist/types/src/testing/node-pipeline.d.ts.map +1 -1
  28. package/dist/types/src/testing/pipeline.d.ts.map +1 -1
  29. package/dist/types/src/testing/web-pipeline.d.ts +1 -1
  30. package/dist/types/src/testing/web-pipeline.d.ts.map +1 -1
  31. package/dist/types/src/translations.d.ts +2 -3
  32. package/dist/types/src/translations.d.ts.map +1 -1
  33. package/dist/types/tsconfig.tsbuildinfo +1 -1
  34. package/package.json +52 -42
  35. package/src/TransformerPlugin.tsx +14 -27
  36. package/src/components/{DebugInfo.tsx → Voice/DebugInfo.tsx} +3 -3
  37. package/src/components/{Voice.stories.tsx → Voice/Voice.stories.tsx} +6 -8
  38. package/src/components/{Voice.tsx → Voice/Voice.tsx} +3 -2
  39. package/src/components/Voice/index.ts +6 -0
  40. package/src/{capabilities → components}/index.ts +2 -0
  41. package/src/hooks/useAudioStream.ts +2 -2
  42. package/src/hooks/usePipeline.ts +11 -35
  43. package/src/meta.ts +8 -6
  44. package/src/translations.ts +2 -2
  45. package/dist/types/src/capabilities/index.d.ts +0 -1
  46. package/dist/types/src/capabilities/index.d.ts.map +0 -1
  47. package/dist/types/src/components/DebugInfo.d.ts.map +0 -1
  48. package/dist/types/src/components/Voice.d.ts.map +0 -1
  49. package/dist/types/src/components/Voice.stories.d.ts +0 -8
  50. package/dist/types/src/components/Voice.stories.d.ts.map +0 -1
  51. /package/dist/types/src/components/{DebugInfo.d.ts → Voice/DebugInfo.d.ts} +0 -0
  52. /package/dist/types/src/components/{Voice.d.ts → Voice/Voice.d.ts} +0 -0
@@ -1,9 +1,12 @@
1
1
  // src/meta.ts
2
- var TRANSFORMER_PLUGIN = "dxos.org/plugin/transformer";
2
+ import { trim } from "@dxos/util";
3
3
  var meta = {
4
- id: TRANSFORMER_PLUGIN,
4
+ id: "org.dxos.plugin.transformer",
5
5
  name: "Transformer",
6
- description: "Run local transformers.",
6
+ description: trim`
7
+ Execute local machine learning transformers and AI models directly in your browser.
8
+ Run embeddings, classifications, and other ML tasks without server dependencies.
9
+ `,
7
10
  icon: "ph--cpu--regular",
8
11
  source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-transformer",
9
12
  tags: [
@@ -12,40 +15,26 @@ var meta = {
12
15
  };
13
16
 
14
17
  // src/TransformerPlugin.tsx
15
- import { Capabilities, contributes, defineModule, definePlugin, Events } from "@dxos/app-framework";
16
- import { ClientCapabilities, ClientEvents } from "@dxos/plugin-client";
17
-
18
- // src/translations.ts
19
- var translations = [
20
- {
21
- "en-US": {
22
- [meta.id]: {
23
- "plugin name": "Transformers"
24
- }
25
- }
26
- }
27
- ];
28
-
29
- // src/TransformerPlugin.tsx
30
- var TransformerPlugin = () => definePlugin(meta, [
31
- defineModule({
32
- id: `${meta.id}/module/translations`,
33
- activatesOn: Events.SetupTranslations,
34
- activate: () => contributes(Capabilities.Translations, translations)
18
+ import { Plugin } from "@dxos/app-framework";
19
+ import { AppPlugin } from "@dxos/app-toolkit";
20
+ import { meta as meta2 } from "#meta";
21
+ import { translations } from "#translations";
22
+ var TransformerPlugin = Plugin.define(meta2).pipe(
23
+ AppPlugin.addSchemaModule({
24
+ schema: [],
25
+ id: "schema"
35
26
  }),
36
- defineModule({
37
- id: `${meta.id}/module/metadata`,
38
- activatesOn: Events.SetupMetadata,
39
- activate: () => []
27
+ AppPlugin.addTranslationsModule({
28
+ translations
40
29
  }),
41
- defineModule({
42
- id: `${meta.id}/module/schema`,
43
- activatesOn: ClientEvents.SetupSchema,
44
- activate: () => contributes(ClientCapabilities.Schema, [])
45
- })
46
- ]);
30
+ // Plugin.addModule({
31
+ // id: 'intent-resolver',
32
+ // activatesOn: Events.SetupIntentResolver,
33
+ // activate: IntentResolver,
34
+ // }),
35
+ Plugin.make
36
+ );
47
37
  export {
48
- TRANSFORMER_PLUGIN,
49
38
  TransformerPlugin,
50
39
  meta
51
40
  };
@@ -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 PluginMeta } from '@dxos/app-framework';\n\nexport const TRANSFORMER_PLUGIN = 'dxos.org/plugin/transformer';\n\nexport const meta: PluginMeta = {\n id: TRANSFORMER_PLUGIN,\n name: 'Transformer',\n description: 'Run local transformers.',\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 { Capabilities, contributes, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\n\n// import { IntentResolver } from './capabilities';\nimport { meta } from './meta';\nimport { translations } from './translations';\n\nexport const TransformerPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () => [],\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () => contributes(ClientCapabilities.Schema, []),\n }),\n // defineModule({\n // id: `${meta.id}/module/intent-resolver`,\n // activatesOn: Events.SetupIntentResolver,\n // activate: IntentResolver,\n // }),\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": ";AAMO,IAAMA,qBAAqB;AAE3B,IAAMC,OAAmB;EAC9BC,IAAIF;EACJG,MAAM;EACNC,aAAa;EACbC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;AACT;;;ACXA,SAASC,cAAcC,aAAaC,cAAcC,cAAcC,cAAc;AAC9E,SAASC,oBAAoBC,oBAAoB;;;ACG1C,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;MACjB;IACF;EACF;;;;ADJK,IAAMC,oBAAoB,MAC/BC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,UAAU,MAAMC,YAAYC,aAAaC,cAAcC,YAAAA;EACzD,CAAA;EACAT,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOO;IACpBL,UAAU,MAAM,CAAA;EAClB,CAAA;EACAL,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaS,aAAaC;IAC1BP,UAAU,MAAMC,YAAYO,mBAAmBC,QAAQ,CAAA,CAAE;EAC3D,CAAA;CAMD;",
6
- "names": ["TRANSFORMER_PLUGIN", "meta", "id", "name", "description", "icon", "source", "tags", "Capabilities", "contributes", "defineModule", "definePlugin", "Events", "ClientCapabilities", "ClientEvents", "translations", "meta", "id", "TransformerPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "ClientEvents", "SetupSchema", "ClientCapabilities", "Schema"]
3
+ "sources": ["../../../src/meta.ts", "../../../src/TransformerPlugin.tsx"],
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: '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", "//\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"],
5
+ "mappings": ";AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;AACT;;;ACbA,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAG1B,SAASC,QAAAA,aAAY;AACrB,SAASC,oBAAoB;AAEtB,IAAMC,oBAAoBJ,OAAOK,OAAOH,KAAAA,EAAMI;EACnDL,UAAUM,gBAAgB;IAAEC,QAAQ,CAAA;IAAIC,IAAI;EAAS,CAAA;EACrDR,UAAUS,sBAAsB;IAAEP;EAAa,CAAA;;;;;;EAM/CH,OAAOW;AAAI;",
6
+ "names": ["trim", "meta", "id", "name", "description", "icon", "source", "tags", "Plugin", "AppPlugin", "meta", "translations", "TransformerPlugin", "define", "pipe", "addSchemaModule", "schema", "id", "addTranslationsModule", "make"]
7
7
  }
@@ -1 +1 @@
1
- {"inputs":{"src/meta.ts":{"bytes":1533,"imports":[],"format":"esm"},"src/translations.ts":{"bytes":1135,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/TransformerPlugin.tsx":{"bytes":3914,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","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":3158},"dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true}],"exports":["TRANSFORMER_PLUGIN","TransformerPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/meta.ts":{"bytesInOutput":304},"src/index.ts":{"bytesInOutput":0},"src/TransformerPlugin.tsx":{"bytesInOutput":696},"src/translations.ts":{"bytesInOutput":118}},"bytes":1314},"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":2279,"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":481,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/TransformerPlugin.tsx","kind":"import-statement","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":1918},"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},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","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":518}},"bytes":1089},"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}}}
@@ -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
+ }
@@ -1,11 +1,14 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
 
3
3
  // src/meta.ts
4
- var TRANSFORMER_PLUGIN = "dxos.org/plugin/transformer";
4
+ import { trim } from "@dxos/util";
5
5
  var meta = {
6
- id: TRANSFORMER_PLUGIN,
6
+ id: "org.dxos.plugin.transformer",
7
7
  name: "Transformer",
8
- description: "Run local transformers.",
8
+ description: trim`
9
+ Execute local machine learning transformers and AI models directly in your browser.
10
+ Run embeddings, classifications, and other ML tasks without server dependencies.
11
+ `,
9
12
  icon: "ph--cpu--regular",
10
13
  source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-transformer",
11
14
  tags: [
@@ -14,40 +17,26 @@ var meta = {
14
17
  };
15
18
 
16
19
  // src/TransformerPlugin.tsx
17
- import { Capabilities, contributes, defineModule, definePlugin, Events } from "@dxos/app-framework";
18
- import { ClientCapabilities, ClientEvents } from "@dxos/plugin-client";
19
-
20
- // src/translations.ts
21
- var translations = [
22
- {
23
- "en-US": {
24
- [meta.id]: {
25
- "plugin name": "Transformers"
26
- }
27
- }
28
- }
29
- ];
30
-
31
- // src/TransformerPlugin.tsx
32
- var TransformerPlugin = () => definePlugin(meta, [
33
- defineModule({
34
- id: `${meta.id}/module/translations`,
35
- activatesOn: Events.SetupTranslations,
36
- activate: () => contributes(Capabilities.Translations, translations)
20
+ import { Plugin } from "@dxos/app-framework";
21
+ import { AppPlugin } from "@dxos/app-toolkit";
22
+ import { meta as meta2 } from "#meta";
23
+ import { translations } from "#translations";
24
+ var TransformerPlugin = Plugin.define(meta2).pipe(
25
+ AppPlugin.addSchemaModule({
26
+ schema: [],
27
+ id: "schema"
37
28
  }),
38
- defineModule({
39
- id: `${meta.id}/module/metadata`,
40
- activatesOn: Events.SetupMetadata,
41
- activate: () => []
29
+ AppPlugin.addTranslationsModule({
30
+ translations
42
31
  }),
43
- defineModule({
44
- id: `${meta.id}/module/schema`,
45
- activatesOn: ClientEvents.SetupSchema,
46
- activate: () => contributes(ClientCapabilities.Schema, [])
47
- })
48
- ]);
32
+ // Plugin.addModule({
33
+ // id: 'intent-resolver',
34
+ // activatesOn: Events.SetupIntentResolver,
35
+ // activate: IntentResolver,
36
+ // }),
37
+ Plugin.make
38
+ );
49
39
  export {
50
- TRANSFORMER_PLUGIN,
51
40
  TransformerPlugin,
52
41
  meta
53
42
  };
@@ -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 PluginMeta } from '@dxos/app-framework';\n\nexport const TRANSFORMER_PLUGIN = 'dxos.org/plugin/transformer';\n\nexport const meta: PluginMeta = {\n id: TRANSFORMER_PLUGIN,\n name: 'Transformer',\n description: 'Run local transformers.',\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 { Capabilities, contributes, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\n\n// import { IntentResolver } from './capabilities';\nimport { meta } from './meta';\nimport { translations } from './translations';\n\nexport const TransformerPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () => [],\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () => contributes(ClientCapabilities.Schema, []),\n }),\n // defineModule({\n // id: `${meta.id}/module/intent-resolver`,\n // activatesOn: Events.SetupIntentResolver,\n // activate: IntentResolver,\n // }),\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": ";;;AAMO,IAAMA,qBAAqB;AAE3B,IAAMC,OAAmB;EAC9BC,IAAIF;EACJG,MAAM;EACNC,aAAa;EACbC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;AACT;;;ACXA,SAASC,cAAcC,aAAaC,cAAcC,cAAcC,cAAc;AAC9E,SAASC,oBAAoBC,oBAAoB;;;ACG1C,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,KAAKC,EAAE,GAAG;QACT,eAAe;MACjB;IACF;EACF;;;;ADJK,IAAMC,oBAAoB,MAC/BC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,UAAU,MAAMC,YAAYC,aAAaC,cAAcC,YAAAA;EACzD,CAAA;EACAT,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOO;IACpBL,UAAU,MAAM,CAAA;EAClB,CAAA;EACAL,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaS,aAAaC;IAC1BP,UAAU,MAAMC,YAAYO,mBAAmBC,QAAQ,CAAA,CAAE;EAC3D,CAAA;CAMD;",
6
- "names": ["TRANSFORMER_PLUGIN", "meta", "id", "name", "description", "icon", "source", "tags", "Capabilities", "contributes", "defineModule", "definePlugin", "Events", "ClientCapabilities", "ClientEvents", "translations", "meta", "id", "TransformerPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "ClientEvents", "SetupSchema", "ClientCapabilities", "Schema"]
3
+ "sources": ["../../../src/meta.ts", "../../../src/TransformerPlugin.tsx"],
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: '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", "//\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"],
5
+ "mappings": ";;;AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;AACT;;;ACbA,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAG1B,SAASC,QAAAA,aAAY;AACrB,SAASC,oBAAoB;AAEtB,IAAMC,oBAAoBJ,OAAOK,OAAOH,KAAAA,EAAMI;EACnDL,UAAUM,gBAAgB;IAAEC,QAAQ,CAAA;IAAIC,IAAI;EAAS,CAAA;EACrDR,UAAUS,sBAAsB;IAAEP;EAAa,CAAA;;;;;;EAM/CH,OAAOW;AAAI;",
6
+ "names": ["trim", "meta", "id", "name", "description", "icon", "source", "tags", "Plugin", "AppPlugin", "meta", "translations", "TransformerPlugin", "define", "pipe", "addSchemaModule", "schema", "id", "addTranslationsModule", "make"]
7
7
  }
@@ -1 +1 @@
1
- {"inputs":{"src/meta.ts":{"bytes":1533,"imports":[],"format":"esm"},"src/translations.ts":{"bytes":1135,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"src/TransformerPlugin.tsx":{"bytes":3914,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","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":3160},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true}],"exports":["TRANSFORMER_PLUGIN","TransformerPlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/meta.ts":{"bytesInOutput":304},"src/index.ts":{"bytesInOutput":0},"src/TransformerPlugin.tsx":{"bytesInOutput":696},"src/translations.ts":{"bytesInOutput":118}},"bytes":1407},"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":2279,"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":481,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/TransformerPlugin.tsx","kind":"import-statement","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":1920},"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},{"path":"#meta","kind":"import-statement","external":true},{"path":"#translations","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":518}},"bytes":1182},"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}}}
@@ -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,2 +1,3 @@
1
- export declare const TransformerPlugin: () => import("@dxos/app-framework").Plugin;
1
+ import { Plugin } from '@dxos/app-framework';
2
+ export declare const TransformerPlugin: Plugin.PluginFactory<void>;
2
3
  //# sourceMappingURL=TransformerPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TransformerPlugin.d.ts","sourceRoot":"","sources":["../../../src/TransformerPlugin.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,iBAAiB,4CAsB1B,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"}
@@ -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,14 @@
1
+ import { type StoryObj } from '@storybook/react-vite';
2
+ import { Voice } from './Voice';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ active, debug, model }: import("./Voice").VoiceProps) => import("react").JSX.Element;
6
+ decorators: import("@storybook/react").Decorator[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof Voice>;
13
+ export declare const Default: Story;
14
+ //# sourceMappingURL=Voice.stories.d.ts.map
@@ -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,4 +1,3 @@
1
- import { type PluginMeta } from '@dxos/app-framework';
2
- export declare const TRANSFORMER_PLUGIN = "dxos.org/plugin/transformer";
3
- export declare const meta: PluginMeta;
1
+ import { type Plugin } from '@dxos/app-framework';
2
+ export declare const meta: Plugin.Meta;
4
3
  //# sourceMappingURL=meta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,eAAO,MAAM,kBAAkB,gCAAgC,CAAC;AAEhE,eAAO,MAAM,IAAI,EAAE,UAOlB,CAAC"}
1
+ {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAUzB,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"}