@dxos/plugin-transformer 0.8.3 → 0.8.4-main.03d5cd7b56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/neutral/TransformerPlugin.mjs +25 -0
- package/dist/lib/neutral/TransformerPlugin.mjs.map +7 -0
- package/dist/lib/neutral/chunk-BKDV4JXC.mjs +20 -0
- package/dist/lib/neutral/chunk-BKDV4JXC.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +136 -0
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/hooks/index.mjs +339 -0
- package/dist/lib/neutral/hooks/index.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +7 -0
- package/dist/lib/neutral/plugin.mjs +11 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +15 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/types/src/TransformerPlugin.d.ts +3 -1
- package/dist/types/src/TransformerPlugin.d.ts.map +1 -1
- package/dist/types/src/TransformerPlugin.test.d.ts +2 -0
- package/dist/types/src/TransformerPlugin.test.d.ts.map +1 -0
- package/dist/types/src/components/Voice/DebugInfo.d.ts.map +1 -0
- package/dist/types/src/components/Voice/Voice.d.ts.map +1 -0
- package/dist/types/src/components/Voice/Voice.stories.d.ts +14 -0
- package/dist/types/src/components/Voice/Voice.stories.d.ts.map +1 -0
- package/dist/types/src/components/Voice/index.d.ts +3 -0
- package/dist/types/src/components/Voice/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +2 -0
- package/dist/types/src/components/index.d.ts.map +1 -0
- package/dist/types/src/hooks/useAudioStream.d.ts.map +1 -1
- package/dist/types/src/hooks/usePipeline.d.ts +1 -16
- package/dist/types/src/hooks/usePipeline.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -3
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +3 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/testing/node-pipeline.d.ts +1 -1
- package/dist/types/src/testing/node-pipeline.d.ts.map +1 -1
- package/dist/types/src/testing/pipeline.d.ts.map +1 -1
- package/dist/types/src/testing/web-pipeline.d.ts +1 -1
- package/dist/types/src/testing/web-pipeline.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +5 -6
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +77 -51
- package/src/TransformerPlugin.test.ts +25 -0
- package/src/TransformerPlugin.tsx +16 -27
- package/src/components/{DebugInfo.tsx → Voice/DebugInfo.tsx} +3 -3
- package/src/components/{Voice.stories.tsx → Voice/Voice.stories.tsx} +6 -8
- package/src/components/{Voice.tsx → Voice/Voice.tsx} +3 -2
- package/src/components/Voice/index.ts +6 -0
- package/src/{capabilities → components}/index.ts +2 -0
- package/src/hooks/useAudioStream.ts +2 -2
- package/src/hooks/usePipeline.ts +11 -35
- package/src/index.ts +0 -2
- package/src/meta.ts +8 -6
- package/src/plugin.ts +9 -0
- package/src/translations.ts +7 -5
- package/dist/lib/browser/index.mjs +0 -52
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/types/index.mjs +0 -1
- package/dist/lib/node/index.cjs +0 -71
- package/dist/lib/node/index.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- package/dist/lib/node/types/index.cjs +0 -2
- package/dist/lib/node/types/index.cjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -54
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/types/index.mjs +0 -2
- package/dist/types/src/capabilities/index.d.ts +0 -1
- package/dist/types/src/capabilities/index.d.ts.map +0 -1
- package/dist/types/src/components/DebugInfo.d.ts.map +0 -1
- package/dist/types/src/components/Voice.d.ts.map +0 -1
- package/dist/types/src/components/Voice.stories.d.ts +0 -8
- package/dist/types/src/components/Voice.stories.d.ts.map +0 -1
- /package/dist/lib/{browser/types → neutral}/index.mjs.map +0 -0
- /package/dist/lib/{node-esm/types/index.mjs.map → neutral/meta.mjs.map} +0 -0
- /package/dist/types/src/components/{DebugInfo.d.ts → Voice/DebugInfo.d.ts} +0 -0
- /package/dist/types/src/components/{Voice.d.ts → Voice/Voice.d.ts} +0 -0
package/dist/lib/node/meta.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/plugin-transformer/src/meta.ts":{"bytes":1546,"imports":[],"format":"esm"},"packages/plugins/plugin-transformer/src/translations.ts":{"bytes":1036,"imports":[{"path":"packages/plugins/plugin-transformer/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-transformer/src/TransformerPlugin.tsx":{"bytes":3915,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-transformer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-transformer/src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"packages/plugins/plugin-transformer/src/index.ts":{"bytes":580,"imports":[{"path":"packages/plugins/plugin-transformer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-transformer/src/TransformerPlugin.tsx","kind":"import-statement","original":"./TransformerPlugin"}],"format":"esm"},"packages/plugins/plugin-transformer/src/types/index.ts":{"bytes":393,"imports":[],"format":"esm"}},"outputs":{"packages/plugins/plugin-transformer/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3075},"packages/plugins/plugin-transformer/dist/lib/node/index.cjs":{"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":"packages/plugins/plugin-transformer/src/index.ts","inputs":{"packages/plugins/plugin-transformer/src/meta.ts":{"bytesInOutput":304},"packages/plugins/plugin-transformer/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-transformer/src/TransformerPlugin.tsx":{"bytesInOutput":704},"packages/plugins/plugin-transformer/src/translations.ts":{"bytesInOutput":137}},"bytes":1485},"packages/plugins/plugin-transformer/dist/lib/node/types/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-transformer/dist/lib/node/types/index.cjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/plugin-transformer/src/types/index.ts","inputs":{"packages/plugins/plugin-transformer/src/types/index.ts":{"bytesInOutput":0}},"bytes":35}}}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
-
|
|
3
|
-
// packages/plugins/plugin-transformer/src/meta.ts
|
|
4
|
-
var TRANSFORMER_PLUGIN = "dxos.org/plugin/transformer";
|
|
5
|
-
var meta = {
|
|
6
|
-
id: TRANSFORMER_PLUGIN,
|
|
7
|
-
name: "Transformer",
|
|
8
|
-
description: "Run local transformers.",
|
|
9
|
-
icon: "ph--cpu--regular",
|
|
10
|
-
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-transformer",
|
|
11
|
-
tags: [
|
|
12
|
-
"labs"
|
|
13
|
-
]
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
// packages/plugins/plugin-transformer/src/TransformerPlugin.tsx
|
|
17
|
-
import { Capabilities, contributes, defineModule, definePlugin, Events } from "@dxos/app-framework";
|
|
18
|
-
import { ClientCapabilities, ClientEvents } from "@dxos/plugin-client";
|
|
19
|
-
|
|
20
|
-
// packages/plugins/plugin-transformer/src/translations.ts
|
|
21
|
-
var translations_default = [
|
|
22
|
-
{
|
|
23
|
-
"en-US": {
|
|
24
|
-
[TRANSFORMER_PLUGIN]: {
|
|
25
|
-
"plugin name": "Transformers"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
];
|
|
30
|
-
|
|
31
|
-
// packages/plugins/plugin-transformer/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_default)
|
|
37
|
-
}),
|
|
38
|
-
defineModule({
|
|
39
|
-
id: `${meta.id}/module/metadata`,
|
|
40
|
-
activatesOn: Events.SetupMetadata,
|
|
41
|
-
activate: () => []
|
|
42
|
-
}),
|
|
43
|
-
defineModule({
|
|
44
|
-
id: `${meta.id}/module/schema`,
|
|
45
|
-
activatesOn: ClientEvents.SetupSchema,
|
|
46
|
-
activate: () => contributes(ClientCapabilities.Schema, [])
|
|
47
|
-
})
|
|
48
|
-
]);
|
|
49
|
-
export {
|
|
50
|
-
TRANSFORMER_PLUGIN,
|
|
51
|
-
TransformerPlugin,
|
|
52
|
-
meta
|
|
53
|
-
};
|
|
54
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
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 { TRANSFORMER_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [TRANSFORMER_PLUGIN]: {\n 'plugin name': 'Transformers',\n },\n },\n },\n];\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;;;ACCjD,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACC,kBAAAA,GAAqB;QACpB,eAAe;MACjB;IACF;EACF;;;;ADFK,IAAMC,oBAAoB,MAC/BC,aAAaC,MAAM;EACjBC,aAAa;IACXC,IAAI,GAAGF,KAAKE,EAAE;IACdC,aAAaC,OAAOC;IACpBC,UAAU,MAAMC,YAAYC,aAAaC,cAAcC,oBAAAA;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", "TRANSFORMER_PLUGIN", "TransformerPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupTranslations", "activate", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "ClientEvents", "SetupSchema", "ClientCapabilities", "Schema"]
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/plugin-transformer/src/meta.ts":{"bytes":1546,"imports":[],"format":"esm"},"packages/plugins/plugin-transformer/src/translations.ts":{"bytes":1036,"imports":[{"path":"packages/plugins/plugin-transformer/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-transformer/src/TransformerPlugin.tsx":{"bytes":3915,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-client","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-transformer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-transformer/src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"packages/plugins/plugin-transformer/src/index.ts":{"bytes":580,"imports":[{"path":"packages/plugins/plugin-transformer/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-transformer/src/TransformerPlugin.tsx","kind":"import-statement","original":"./TransformerPlugin"}],"format":"esm"},"packages/plugins/plugin-transformer/src/types/index.ts":{"bytes":393,"imports":[],"format":"esm"}},"outputs":{"packages/plugins/plugin-transformer/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":3077},"packages/plugins/plugin-transformer/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":"packages/plugins/plugin-transformer/src/index.ts","inputs":{"packages/plugins/plugin-transformer/src/meta.ts":{"bytesInOutput":304},"packages/plugins/plugin-transformer/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-transformer/src/TransformerPlugin.tsx":{"bytesInOutput":704},"packages/plugins/plugin-transformer/src/translations.ts":{"bytesInOutput":137}},"bytes":1578},"packages/plugins/plugin-transformer/dist/lib/node-esm/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-transformer/dist/lib/node-esm/types/index.mjs":{"imports":[],"exports":[],"entryPoint":"packages/plugins/plugin-transformer/src/types/index.ts","inputs":{"packages/plugins/plugin-transformer/src/types/index.ts":{"bytesInOutput":0}},"bytes":127}}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DebugInfo.d.ts","sourceRoot":"","sources":["../../../../src/components/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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Voice.d.ts","sourceRoot":"","sources":["../../../../src/components/Voice.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAOhE,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,GAAI,0BAAkD,UAAU,sBA4FjF,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import '@dxos-theme';
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
import { Voice } from './Voice';
|
|
4
|
-
declare const meta: Meta<typeof Voice>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof Voice>;
|
|
7
|
-
export declare const Default: Story;
|
|
8
|
-
//# sourceMappingURL=Voice.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Voice.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Voice.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIvD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,KAAK,CAO5B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAEpC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|