@dxos/plugin-transformer 0.8.4-main.c1de068 → 0.8.4-main.e098934
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/browser/index.mjs +1 -1
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +1 -1
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/components/Voice.d.ts.map +1 -1
- package/dist/types/src/components/Voice.stories.d.ts +9 -2
- package/dist/types/src/components/Voice.stories.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +26 -24
- package/src/TransformerPlugin.tsx +1 -1
- package/src/components/Voice.stories.tsx +3 -3
- package/src/components/Voice.tsx +3 -2
- package/src/hooks/useAudioStream.ts +1 -1
- package/src/hooks/usePipeline.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-transformer",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.e098934",
|
|
4
4
|
"description": "Client transformer",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -10,11 +10,13 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
+
"source": "./src/index.ts",
|
|
13
14
|
"types": "./dist/types/src/index.d.ts",
|
|
14
15
|
"browser": "./dist/lib/browser/index.mjs",
|
|
15
16
|
"node": "./dist/lib/node-esm/index.mjs"
|
|
16
17
|
},
|
|
17
18
|
"./types": {
|
|
19
|
+
"source": "./src/types/index.ts",
|
|
18
20
|
"types": "./dist/types/src/types/index.d.ts",
|
|
19
21
|
"browser": "./dist/lib/browser/types/index.mjs",
|
|
20
22
|
"node": "./dist/lib/node-esm/types/index.mjs"
|
|
@@ -37,22 +39,22 @@
|
|
|
37
39
|
"@preact-signals/safe-react": "^0.9.0",
|
|
38
40
|
"@preact/signals-core": "^1.9.0",
|
|
39
41
|
"date-fns": "^3.3.1",
|
|
40
|
-
"effect": "3.17.
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/echo
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/plugin-client": "0.8.4-main.
|
|
49
|
-
"@dxos/plugin-graph": "0.8.4-main.
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/react-
|
|
52
|
-
"@dxos/react-
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/util": "0.8.4-main.
|
|
42
|
+
"effect": "3.17.7",
|
|
43
|
+
"@dxos/async": "0.8.4-main.e098934",
|
|
44
|
+
"@dxos/app-framework": "0.8.4-main.e098934",
|
|
45
|
+
"@dxos/echo-schema": "0.8.4-main.e098934",
|
|
46
|
+
"@dxos/invariant": "0.8.4-main.e098934",
|
|
47
|
+
"@dxos/echo": "0.8.4-main.e098934",
|
|
48
|
+
"@dxos/live-object": "0.8.4-main.e098934",
|
|
49
|
+
"@dxos/log": "0.8.4-main.e098934",
|
|
50
|
+
"@dxos/plugin-client": "0.8.4-main.e098934",
|
|
51
|
+
"@dxos/plugin-graph": "0.8.4-main.e098934",
|
|
52
|
+
"@dxos/plugin-space": "0.8.4-main.e098934",
|
|
53
|
+
"@dxos/react-ui-attention": "0.8.4-main.e098934",
|
|
54
|
+
"@dxos/react-client": "0.8.4-main.e098934",
|
|
55
|
+
"@dxos/react-ui-stack": "0.8.4-main.e098934",
|
|
56
|
+
"@dxos/display-name": "0.8.4-main.e098934",
|
|
57
|
+
"@dxos/util": "0.8.4-main.e098934"
|
|
56
58
|
},
|
|
57
59
|
"devDependencies": {
|
|
58
60
|
"@types/react": "~18.2.0",
|
|
@@ -60,18 +62,18 @@
|
|
|
60
62
|
"@xenova/transformers": "^2.17.2",
|
|
61
63
|
"react": "~18.2.0",
|
|
62
64
|
"react-dom": "~18.2.0",
|
|
63
|
-
"vite": "
|
|
64
|
-
"@dxos/random": "0.8.4-main.
|
|
65
|
-
"@dxos/react-ui
|
|
66
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
67
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
65
|
+
"vite": "7.1.1",
|
|
66
|
+
"@dxos/random": "0.8.4-main.e098934",
|
|
67
|
+
"@dxos/react-ui": "0.8.4-main.e098934",
|
|
68
|
+
"@dxos/react-ui-theme": "0.8.4-main.e098934",
|
|
69
|
+
"@dxos/storybook-utils": "0.8.4-main.e098934"
|
|
68
70
|
},
|
|
69
71
|
"peerDependencies": {
|
|
70
72
|
"effect": "^3.13.3",
|
|
71
73
|
"react": "~18.2.0",
|
|
72
74
|
"react-dom": "~18.2.0",
|
|
73
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
74
|
-
"@dxos/react-ui-theme": "0.8.4-main.
|
|
75
|
+
"@dxos/react-ui": "0.8.4-main.e098934",
|
|
76
|
+
"@dxos/react-ui-theme": "0.8.4-main.e098934"
|
|
75
77
|
},
|
|
76
78
|
"publishConfig": {
|
|
77
79
|
"access": "public"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { Capabilities, contributes, defineModule, definePlugin
|
|
5
|
+
import { Capabilities, Events, contributes, defineModule, definePlugin } from '@dxos/app-framework';
|
|
6
6
|
import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
|
|
7
7
|
|
|
8
8
|
// import { IntentResolver } from './capabilities';
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
import '@dxos-theme';
|
|
6
6
|
|
|
7
|
-
import type
|
|
7
|
+
import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
8
8
|
|
|
9
9
|
import { withLayout, withTheme } from '@dxos/storybook-utils';
|
|
10
10
|
|
|
11
11
|
import { Voice } from './Voice';
|
|
12
12
|
|
|
13
|
-
const meta
|
|
13
|
+
const meta = {
|
|
14
14
|
title: 'plugins/plugin-transformer/Voice',
|
|
15
15
|
component: Voice,
|
|
16
16
|
decorators: [withTheme, withLayout()],
|
|
17
17
|
parameters: {
|
|
18
18
|
layout: 'centered',
|
|
19
19
|
},
|
|
20
|
-
}
|
|
20
|
+
} satisfies Meta<typeof Voice>;
|
|
21
21
|
|
|
22
22
|
export default meta;
|
|
23
23
|
|
package/src/components/Voice.tsx
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import React, {
|
|
5
|
+
import React, { useCallback, useEffect, useState } from 'react';
|
|
6
6
|
|
|
7
7
|
import { log } from '@dxos/log';
|
|
8
8
|
|
|
9
|
-
import { DebugInfo } from './DebugInfo';
|
|
10
9
|
import { useAudioStream, usePipeline } from '../hooks';
|
|
11
10
|
|
|
11
|
+
import { DebugInfo } from './DebugInfo';
|
|
12
|
+
|
|
12
13
|
export type VoiceProps = {
|
|
13
14
|
active?: boolean;
|
|
14
15
|
debug?: boolean;
|
package/src/hooks/usePipeline.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { type Pipeline,
|
|
6
|
-
import {
|
|
5
|
+
import { type Pipeline, env, pipeline } from '@xenova/transformers';
|
|
6
|
+
import { useEffect, useRef, useState } from 'react';
|
|
7
7
|
|
|
8
8
|
import { invariant } from '@dxos/invariant';
|
|
9
9
|
import { log } from '@dxos/log';
|