@dxos/plugin-transformer 0.8.4-main.fd6878d → 0.8.4-main.fffef41

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-transformer",
3
- "version": "0.8.4-main.fd6878d",
3
+ "version": "0.8.4-main.fffef41",
4
4
  "description": "Client transformer",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -37,43 +37,42 @@
37
37
  "dependencies": {
38
38
  "@huggingface/transformers": "^3.3.3",
39
39
  "@preact-signals/safe-react": "^0.9.0",
40
- "@preact/signals-core": "^1.9.0",
40
+ "@preact/signals-core": "^1.12.1",
41
41
  "date-fns": "^3.3.1",
42
- "effect": "3.17.7",
43
- "@dxos/app-framework": "0.8.4-main.fd6878d",
44
- "@dxos/async": "0.8.4-main.fd6878d",
45
- "@dxos/display-name": "0.8.4-main.fd6878d",
46
- "@dxos/echo-schema": "0.8.4-main.fd6878d",
47
- "@dxos/invariant": "0.8.4-main.fd6878d",
48
- "@dxos/echo": "0.8.4-main.fd6878d",
49
- "@dxos/live-object": "0.8.4-main.fd6878d",
50
- "@dxos/log": "0.8.4-main.fd6878d",
51
- "@dxos/plugin-client": "0.8.4-main.fd6878d",
52
- "@dxos/plugin-graph": "0.8.4-main.fd6878d",
53
- "@dxos/plugin-space": "0.8.4-main.fd6878d",
54
- "@dxos/react-ui-attention": "0.8.4-main.fd6878d",
55
- "@dxos/util": "0.8.4-main.fd6878d",
56
- "@dxos/react-client": "0.8.4-main.fd6878d",
57
- "@dxos/react-ui-stack": "0.8.4-main.fd6878d"
42
+ "effect": "3.18.3",
43
+ "@dxos/app-framework": "0.8.4-main.fffef41",
44
+ "@dxos/async": "0.8.4-main.fffef41",
45
+ "@dxos/display-name": "0.8.4-main.fffef41",
46
+ "@dxos/echo": "0.8.4-main.fffef41",
47
+ "@dxos/invariant": "0.8.4-main.fffef41",
48
+ "@dxos/live-object": "0.8.4-main.fffef41",
49
+ "@dxos/log": "0.8.4-main.fffef41",
50
+ "@dxos/plugin-client": "0.8.4-main.fffef41",
51
+ "@dxos/plugin-space": "0.8.4-main.fffef41",
52
+ "@dxos/plugin-graph": "0.8.4-main.fffef41",
53
+ "@dxos/react-client": "0.8.4-main.fffef41",
54
+ "@dxos/react-ui-attention": "0.8.4-main.fffef41",
55
+ "@dxos/util": "0.8.4-main.fffef41",
56
+ "@dxos/react-ui-stack": "0.8.4-main.fffef41"
58
57
  },
59
58
  "devDependencies": {
60
- "@types/react": "~18.2.0",
61
- "@types/react-dom": "~18.2.0",
59
+ "@types/react": "~19.2.2",
60
+ "@types/react-dom": "~19.2.2",
62
61
  "@xenova/transformers": "^2.17.2",
63
- "react": "~18.2.0",
64
- "react-dom": "~18.2.0",
65
- "vite": "5.4.7",
66
- "@dxos/react-ui": "0.8.4-main.fd6878d",
67
- "@dxos/random": "0.8.4-main.fd6878d",
68
- "@dxos/storybook-utils": "0.8.4-main.fd6878d",
69
- "@dxos/react-ui-theme": "0.8.4-main.fd6878d"
62
+ "react": "~19.2.0",
63
+ "react-dom": "~19.2.0",
64
+ "vite": "7.1.9",
65
+ "@dxos/react-ui": "0.8.4-main.fffef41",
66
+ "@dxos/random": "0.8.4-main.fffef41",
67
+ "@dxos/react-ui-theme": "0.8.4-main.fffef41",
68
+ "@dxos/storybook-utils": "0.8.4-main.fffef41"
70
69
  },
71
70
  "peerDependencies": {
72
71
  "effect": "^3.13.3",
73
- "react": "~18.2.0",
74
- "react-dom": "~18.2.0",
75
- "@dxos/react-ui": "0.8.4-main.fd6878d",
76
- "@dxos/react-ui-theme": "0.8.4-main.fd6878d"
72
+ "react": "^19.0.0",
73
+ "react-dom": "^19.0.0",
74
+ "@dxos/react-ui": "0.8.4-main.fffef41",
75
+ "@dxos/react-ui-theme": "0.8.4-main.fffef41"
77
76
  },
78
77
  "publishConfig": {
79
78
  "access": "public"
@@ -9,26 +9,25 @@ import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
9
9
  import { meta } from './meta';
10
10
  import { translations } from './translations';
11
11
 
12
- export const TransformerPlugin = () =>
13
- definePlugin(meta, [
14
- defineModule({
15
- id: `${meta.id}/module/translations`,
16
- activatesOn: Events.SetupTranslations,
17
- activate: () => contributes(Capabilities.Translations, translations),
18
- }),
19
- defineModule({
20
- id: `${meta.id}/module/metadata`,
21
- activatesOn: Events.SetupMetadata,
22
- activate: () => [],
23
- }),
24
- defineModule({
25
- id: `${meta.id}/module/schema`,
26
- activatesOn: ClientEvents.SetupSchema,
27
- activate: () => contributes(ClientCapabilities.Schema, []),
28
- }),
29
- // defineModule({
30
- // id: `${meta.id}/module/intent-resolver`,
31
- // activatesOn: Events.SetupIntentResolver,
32
- // activate: IntentResolver,
33
- // }),
34
- ]);
12
+ export const TransformerPlugin = definePlugin(meta, () => [
13
+ defineModule({
14
+ id: `${meta.id}/module/translations`,
15
+ activatesOn: Events.SetupTranslations,
16
+ activate: () => contributes(Capabilities.Translations, translations),
17
+ }),
18
+ defineModule({
19
+ id: `${meta.id}/module/metadata`,
20
+ activatesOn: Events.SetupMetadata,
21
+ activate: () => [],
22
+ }),
23
+ defineModule({
24
+ id: `${meta.id}/module/schema`,
25
+ activatesOn: ClientEvents.SetupSchema,
26
+ activate: () => contributes(ClientCapabilities.Schema, []),
27
+ }),
28
+ // defineModule({
29
+ // id: `${meta.id}/module/intent-resolver`,
30
+ // activatesOn: Events.SetupIntentResolver,
31
+ // activate: IntentResolver,
32
+ // }),
33
+ ]);
@@ -45,9 +45,9 @@ export const DebugInfo: FC<Partial<DebugInfoProps>> = ({
45
45
  <div className='mb-2 text-green-600'>
46
46
  <strong>Status:</strong> Microphone is active
47
47
  {debug && audioLevel && (
48
- <div className='mt-2 w-48 h-5 bg-gray-200 rounded relative'>
48
+ <div className='mt-2 is-48 bs-5 bg-gray-200 rounded relative'>
49
49
  <div
50
- className='h-full bg-green-500 transition-all duration-100 rounded'
50
+ className='bs-full bg-green-500 transition-all duration-100 rounded'
51
51
  style={{ width: `${(audioLevel / 255) * 100}%` }}
52
52
  />
53
53
  </div>
@@ -2,22 +2,20 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import '@dxos-theme';
5
+ import { type Meta, type StoryObj } from '@storybook/react-vite';
6
6
 
7
- import type { Meta, StoryObj } from '@storybook/react-vite';
8
-
9
- import { withLayout, withTheme } from '@dxos/storybook-utils';
7
+ import { withTheme } from '@dxos/react-ui/testing';
10
8
 
11
9
  import { Voice } from './Voice';
12
10
 
13
- const meta: Meta<typeof Voice> = {
11
+ const meta = {
14
12
  title: 'plugins/plugin-transformer/Voice',
15
13
  component: Voice,
16
- decorators: [withTheme, withLayout()],
14
+ decorators: [withTheme],
17
15
  parameters: {
18
16
  layout: 'centered',
19
17
  },
20
- };
18
+ } satisfies Meta<typeof Voice>;
21
19
 
22
20
  export default meta;
23
21
 
@@ -28,7 +28,7 @@ export const useAudioStream = ({ active, debug, onAudioData }: AudioStreamConfig
28
28
  // TODO(burdon): Convert to class.
29
29
  const audioContextRef = useRef<AudioContext | null>(null);
30
30
  const analyserRef = useRef<AnalyserNode | null>(null);
31
- const animationFrameRef = useRef<number>();
31
+ const animationFrameRef = useRef<number>(undefined);
32
32
  const workletNodeRef = useRef<AudioWorkletNode | null>(null);
33
33
  const isProcessingRef = useRef(false);
34
34
  const mediaStreamRef = useRef<MediaStream | null>(null);
package/src/meta.ts CHANGED
@@ -3,13 +3,15 @@
3
3
  //
4
4
 
5
5
  import { type PluginMeta } from '@dxos/app-framework';
6
-
7
- export const TRANSFORMER_PLUGIN = 'dxos.org/plugin/transformer';
6
+ import { trim } from '@dxos/util';
8
7
 
9
8
  export const meta: PluginMeta = {
10
- id: TRANSFORMER_PLUGIN,
9
+ id: 'dxos.org/plugin/transformer',
11
10
  name: 'Transformer',
12
- description: 'Run local transformers.',
11
+ description: trim`
12
+ Execute local machine learning transformers and AI models directly in your browser.
13
+ Run embeddings, classifications, and other ML tasks without server dependencies.
14
+ `,
13
15
  icon: 'ph--cpu--regular',
14
16
  source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-transformer',
15
17
  tags: ['labs'],