@dxos/plugin-transformer 0.8.4-main.3c1ae3b → 0.8.4-main.3eb6e50203

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.3c1ae3b",
3
+ "version": "0.8.4-main.3eb6e50203",
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/async": "0.8.4-main.3c1ae3b",
44
- "@dxos/app-framework": "0.8.4-main.3c1ae3b",
45
- "@dxos/display-name": "0.8.4-main.3c1ae3b",
46
- "@dxos/echo": "0.8.4-main.3c1ae3b",
47
- "@dxos/live-object": "0.8.4-main.3c1ae3b",
48
- "@dxos/invariant": "0.8.4-main.3c1ae3b",
49
- "@dxos/plugin-client": "0.8.4-main.3c1ae3b",
50
- "@dxos/plugin-graph": "0.8.4-main.3c1ae3b",
51
- "@dxos/log": "0.8.4-main.3c1ae3b",
52
- "@dxos/react-client": "0.8.4-main.3c1ae3b",
53
- "@dxos/react-ui-attention": "0.8.4-main.3c1ae3b",
54
- "@dxos/plugin-space": "0.8.4-main.3c1ae3b",
55
- "@dxos/react-ui-stack": "0.8.4-main.3c1ae3b",
56
- "@dxos/util": "0.8.4-main.3c1ae3b"
44
+ "effect": "3.19.16",
45
+ "@dxos/async": "0.8.4-main.3eb6e50203",
46
+ "@dxos/app-framework": "0.8.4-main.3eb6e50203",
47
+ "@dxos/invariant": "0.8.4-main.3eb6e50203",
48
+ "@dxos/display-name": "0.8.4-main.3eb6e50203",
49
+ "@dxos/echo": "0.8.4-main.3eb6e50203",
50
+ "@dxos/log": "0.8.4-main.3eb6e50203",
51
+ "@dxos/operation": "0.8.4-main.3eb6e50203",
52
+ "@dxos/plugin-client": "0.8.4-main.3eb6e50203",
53
+ "@dxos/plugin-graph": "0.8.4-main.3eb6e50203",
54
+ "@dxos/plugin-space": "0.8.4-main.3eb6e50203",
55
+ "@dxos/react-client": "0.8.4-main.3eb6e50203",
56
+ "@dxos/react-ui-attention": "0.8.4-main.3eb6e50203",
57
+ "@dxos/util": "0.8.4-main.3eb6e50203",
58
+ "@dxos/react-ui-stack": "0.8.4-main.3eb6e50203",
59
+ "@dxos/app-toolkit": "0.8.4-main.3eb6e50203"
57
60
  },
58
61
  "devDependencies": {
59
- "@types/react": "~19.2.2",
60
- "@types/react-dom": "~19.2.2",
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.3c1ae3b",
66
- "@dxos/react-ui": "0.8.4-main.3c1ae3b",
67
- "@dxos/storybook-utils": "0.8.4-main.3c1ae3b",
68
- "@dxos/react-ui-theme": "0.8.4-main.3c1ae3b"
68
+ "@dxos/random": "0.8.4-main.3eb6e50203",
69
+ "@dxos/react-ui": "0.8.4-main.3eb6e50203",
70
+ "@dxos/storybook-utils": "0.8.4-main.3eb6e50203",
71
+ "@dxos/ui-theme": "0.8.4-main.3eb6e50203"
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.3c1ae3b",
75
- "@dxos/react-ui-theme": "0.8.4-main.3c1ae3b"
74
+ "effect": "3.19.16",
75
+ "react": "~19.2.3",
76
+ "react-dom": "~19.2.3",
77
+ "@dxos/ui-theme": "0.8.4-main.3eb6e50203",
78
+ "@dxos/react-ui": "0.8.4-main.3eb6e50203"
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
+ );
@@ -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,10 +2,10 @@
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
6
  import { trim } from '@dxos/util';
7
7
 
8
- export const meta: PluginMeta = {
8
+ export const meta: Plugin.Meta = {
9
9
  id: 'dxos.org/plugin/transformer',
10
10
  name: 'Transformer',
11
11
  description: trim`