@dxos/plugin-transformer 0.8.4-main.7ace549 → 0.8.4-main.937b3ca

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.7ace549",
3
+ "version": "0.8.4-main.937b3ca",
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,41 @@
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.7ace549",
44
- "@dxos/display-name": "0.8.4-main.7ace549",
45
- "@dxos/async": "0.8.4-main.7ace549",
46
- "@dxos/invariant": "0.8.4-main.7ace549",
47
- "@dxos/live-object": "0.8.4-main.7ace549",
48
- "@dxos/log": "0.8.4-main.7ace549",
49
- "@dxos/plugin-client": "0.8.4-main.7ace549",
50
- "@dxos/plugin-graph": "0.8.4-main.7ace549",
51
- "@dxos/plugin-space": "0.8.4-main.7ace549",
52
- "@dxos/echo": "0.8.4-main.7ace549",
53
- "@dxos/react-client": "0.8.4-main.7ace549",
54
- "@dxos/react-ui-stack": "0.8.4-main.7ace549",
55
- "@dxos/util": "0.8.4-main.7ace549",
56
- "@dxos/react-ui-attention": "0.8.4-main.7ace549"
44
+ "effect": "3.19.11",
45
+ "@dxos/async": "0.8.4-main.937b3ca",
46
+ "@dxos/app-framework": "0.8.4-main.937b3ca",
47
+ "@dxos/display-name": "0.8.4-main.937b3ca",
48
+ "@dxos/echo": "0.8.4-main.937b3ca",
49
+ "@dxos/invariant": "0.8.4-main.937b3ca",
50
+ "@dxos/plugin-client": "0.8.4-main.937b3ca",
51
+ "@dxos/log": "0.8.4-main.937b3ca",
52
+ "@dxos/operation": "0.8.4-main.937b3ca",
53
+ "@dxos/plugin-graph": "0.8.4-main.937b3ca",
54
+ "@dxos/plugin-space": "0.8.4-main.937b3ca",
55
+ "@dxos/react-ui-attention": "0.8.4-main.937b3ca",
56
+ "@dxos/react-client": "0.8.4-main.937b3ca",
57
+ "@dxos/react-ui-stack": "0.8.4-main.937b3ca",
58
+ "@dxos/util": "0.8.4-main.937b3ca"
57
59
  },
58
60
  "devDependencies": {
59
- "@types/react": "~19.2.2",
60
- "@types/react-dom": "~19.2.2",
61
+ "@types/react": "~19.2.7",
62
+ "@types/react-dom": "~19.2.3",
61
63
  "@xenova/transformers": "^2.17.2",
62
- "react": "~19.2.0",
63
- "react-dom": "~19.2.0",
64
+ "react": "~19.2.3",
65
+ "react-dom": "~19.2.3",
64
66
  "vite": "7.1.9",
65
- "@dxos/random": "0.8.4-main.7ace549",
66
- "@dxos/react-ui": "0.8.4-main.7ace549",
67
- "@dxos/react-ui-theme": "0.8.4-main.7ace549",
68
- "@dxos/storybook-utils": "0.8.4-main.7ace549"
67
+ "@dxos/random": "0.8.4-main.937b3ca",
68
+ "@dxos/react-ui": "0.8.4-main.937b3ca",
69
+ "@dxos/storybook-utils": "0.8.4-main.937b3ca",
70
+ "@dxos/ui-theme": "0.8.4-main.937b3ca"
69
71
  },
70
72
  "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.7ace549",
75
- "@dxos/react-ui-theme": "0.8.4-main.7ace549"
73
+ "effect": "3.19.11",
74
+ "react": "~19.2.3",
75
+ "react-dom": "~19.2.3",
76
+ "@dxos/react-ui": "0.8.4-main.937b3ca",
77
+ "@dxos/ui-theme": "0.8.4-main.937b3ca"
76
78
  },
77
79
  "publishConfig": {
78
80
  "access": "public"
@@ -2,32 +2,19 @@
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 { Common, Plugin } from '@dxos/app-framework';
7
6
 
8
7
  // import { IntentResolver } from './capabilities';
9
8
  import { meta } from './meta';
10
9
  import { translations } from './translations';
11
10
 
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`,
11
+ export const TransformerPlugin = Plugin.define(meta).pipe(
12
+ Common.Plugin.addTranslationsModule({ translations }),
13
+ Common.Plugin.addSchemaModule({ schema: [], id: 'schema' }),
14
+ // Plugin.addModule({
15
+ // id: 'intent-resolver',
30
16
  // activatesOn: Events.SetupIntentResolver,
31
17
  // activate: IntentResolver,
32
18
  // }),
33
- ]);
19
+ Plugin.make,
20
+ );
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`