@dxos/plugin-transformer 0.8.4-main.406dc2a → 0.8.4-main.52d7546f51

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,9 +1,13 @@
1
1
  {
2
2
  "name": "@dxos/plugin-transformer",
3
- "version": "0.8.4-main.406dc2a",
3
+ "version": "0.8.4-main.52d7546f51",
4
4
  "description": "Client transformer",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/dxos/dxos"
10
+ },
7
11
  "license": "MIT",
8
12
  "author": "DXOS.org",
9
13
  "sideEffects": true,
@@ -36,43 +40,42 @@
36
40
  ],
37
41
  "dependencies": {
38
42
  "@huggingface/transformers": "^3.3.3",
39
- "@preact-signals/safe-react": "^0.9.0",
40
- "@preact/signals-core": "^1.12.1",
41
43
  "date-fns": "^3.3.1",
42
- "effect": "3.18.3",
43
- "@dxos/app-framework": "0.8.4-main.406dc2a",
44
- "@dxos/async": "0.8.4-main.406dc2a",
45
- "@dxos/display-name": "0.8.4-main.406dc2a",
46
- "@dxos/echo": "0.8.4-main.406dc2a",
47
- "@dxos/live-object": "0.8.4-main.406dc2a",
48
- "@dxos/invariant": "0.8.4-main.406dc2a",
49
- "@dxos/log": "0.8.4-main.406dc2a",
50
- "@dxos/plugin-client": "0.8.4-main.406dc2a",
51
- "@dxos/plugin-space": "0.8.4-main.406dc2a",
52
- "@dxos/react-client": "0.8.4-main.406dc2a",
53
- "@dxos/react-ui-attention": "0.8.4-main.406dc2a",
54
- "@dxos/react-ui-stack": "0.8.4-main.406dc2a",
55
- "@dxos/plugin-graph": "0.8.4-main.406dc2a",
56
- "@dxos/util": "0.8.4-main.406dc2a"
44
+ "effect": "3.19.16",
45
+ "@dxos/app-framework": "0.8.4-main.52d7546f51",
46
+ "@dxos/async": "0.8.4-main.52d7546f51",
47
+ "@dxos/display-name": "0.8.4-main.52d7546f51",
48
+ "@dxos/app-toolkit": "0.8.4-main.52d7546f51",
49
+ "@dxos/echo": "0.8.4-main.52d7546f51",
50
+ "@dxos/invariant": "0.8.4-main.52d7546f51",
51
+ "@dxos/log": "0.8.4-main.52d7546f51",
52
+ "@dxos/operation": "0.8.4-main.52d7546f51",
53
+ "@dxos/plugin-client": "0.8.4-main.52d7546f51",
54
+ "@dxos/plugin-space": "0.8.4-main.52d7546f51",
55
+ "@dxos/plugin-graph": "0.8.4-main.52d7546f51",
56
+ "@dxos/react-client": "0.8.4-main.52d7546f51",
57
+ "@dxos/react-ui-attention": "0.8.4-main.52d7546f51",
58
+ "@dxos/react-ui-stack": "0.8.4-main.52d7546f51",
59
+ "@dxos/util": "0.8.4-main.52d7546f51"
57
60
  },
58
61
  "devDependencies": {
59
- "@types/react": "~19.2.2",
60
- "@types/react-dom": "~19.2.1",
62
+ "@types/react": "~19.2.7",
63
+ "@types/react-dom": "~19.2.3",
61
64
  "@xenova/transformers": "^2.17.2",
62
- "react": "~19.2.0",
63
- "react-dom": "~19.2.0",
65
+ "react": "~19.2.3",
66
+ "react-dom": "~19.2.3",
64
67
  "vite": "7.1.9",
65
- "@dxos/random": "0.8.4-main.406dc2a",
66
- "@dxos/storybook-utils": "0.8.4-main.406dc2a",
67
- "@dxos/react-ui": "0.8.4-main.406dc2a",
68
- "@dxos/react-ui-theme": "0.8.4-main.406dc2a"
68
+ "@dxos/random": "0.8.4-main.52d7546f51",
69
+ "@dxos/react-ui": "0.8.4-main.52d7546f51",
70
+ "@dxos/storybook-utils": "0.8.4-main.52d7546f51",
71
+ "@dxos/ui-theme": "0.8.4-main.52d7546f51"
69
72
  },
70
73
  "peerDependencies": {
71
- "effect": "^3.13.3",
72
- "react": "^19.0.0",
73
- "react-dom": "^19.0.0",
74
- "@dxos/react-ui": "0.8.4-main.406dc2a",
75
- "@dxos/react-ui-theme": "0.8.4-main.406dc2a"
74
+ "effect": "3.19.16",
75
+ "react": "~19.2.3",
76
+ "react-dom": "~19.2.3",
77
+ "@dxos/react-ui": "0.8.4-main.52d7546f51",
78
+ "@dxos/ui-theme": "0.8.4-main.52d7546f51"
76
79
  },
77
80
  "publishConfig": {
78
81
  "access": "public"
@@ -2,32 +2,20 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
- import { Capabilities, Events, contributes, defineModule, definePlugin } from '@dxos/app-framework';
6
- import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
5
+ import { Plugin } from '@dxos/app-framework';
6
+ import { AppPlugin } from '@dxos/app-toolkit';
7
7
 
8
8
  // import { IntentResolver } from './capabilities';
9
9
  import { meta } from './meta';
10
10
  import { translations } from './translations';
11
11
 
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`,
12
+ export const TransformerPlugin = Plugin.define(meta).pipe(
13
+ AppPlugin.addSchemaModule({ schema: [], id: 'schema' }),
14
+ AppPlugin.addTranslationsModule({ translations }),
15
+ // Plugin.addModule({
16
+ // id: 'intent-resolver',
30
17
  // activatesOn: Events.SetupIntentResolver,
31
18
  // activate: IntentResolver,
32
19
  // }),
33
- ]);
20
+ Plugin.make,
21
+ );
@@ -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>
@@ -11,7 +11,7 @@ import { Voice } from './Voice';
11
11
  const meta = {
12
12
  title: 'plugins/plugin-transformer/Voice',
13
13
  component: Voice,
14
- decorators: [withTheme],
14
+ decorators: [withTheme()],
15
15
  parameters: {
16
16
  layout: 'centered',
17
17
  },
package/src/meta.ts CHANGED
@@ -2,12 +2,16 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { type PluginMeta } from '@dxos/app-framework';
5
+ import { type Plugin } from '@dxos/app-framework';
6
+ import { trim } from '@dxos/util';
6
7
 
7
- export const meta: PluginMeta = {
8
+ export const meta: Plugin.Meta = {
8
9
  id: 'dxos.org/plugin/transformer',
9
10
  name: 'Transformer',
10
- 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
+ `,
11
15
  icon: 'ph--cpu--regular',
12
16
  source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-transformer',
13
17
  tags: ['labs'],