@dxos/plugin-transcription 0.8.4-main.ae835ea → 0.8.4-main.bc674ce
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/TranscriptContainer-6EHKWVS4.mjs +12 -0
- package/dist/lib/browser/blueprint-definition-FTRNMLJZ.mjs +18 -0
- package/dist/lib/browser/blueprint-definition-FTRNMLJZ.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +9 -0
- package/dist/lib/browser/chunk-HOOPZ7EM.mjs +35 -0
- package/dist/lib/browser/chunk-HOOPZ7EM.mjs.map +7 -0
- package/dist/lib/browser/{chunk-7DR6HZEF.mjs → chunk-ICM7JRCO.mjs} +64 -98
- package/dist/lib/browser/chunk-ICM7JRCO.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/browser/chunk-Q5OC3WVG.mjs +72 -0
- package/dist/lib/browser/chunk-Q5OC3WVG.mjs.map +7 -0
- package/dist/lib/browser/{chunk-535OJKFO.mjs → chunk-SYGEFDWO.mjs} +2 -2
- package/dist/lib/browser/{chunk-WH36ENNE.mjs → chunk-TKFU53OZ.mjs} +19 -25
- package/dist/lib/browser/chunk-TKFU53OZ.mjs.map +7 -0
- package/dist/lib/browser/{blueprint-definition-UAAJYVLZ.mjs → chunk-ZZF7ICVM.mjs} +31 -31
- package/dist/lib/browser/chunk-ZZF7ICVM.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +59 -72
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-ZUWTU7C5.mjs +22 -0
- package/dist/lib/browser/operation-resolver-ZUWTU7C5.mjs.map +7 -0
- package/dist/lib/browser/react-surface-ZXH5267I.mjs +34 -0
- package/dist/lib/browser/react-surface-ZXH5267I.mjs.map +7 -0
- package/dist/lib/browser/{transcriber-LWOLYQHC.mjs → transcriber-EZZTUCPE.mjs} +17 -13
- package/dist/lib/browser/transcriber-EZZTUCPE.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +7 -5
- package/dist/lib/node-esm/{TranscriptContainer-GRLDCESB.mjs → TranscriptContainer-5YT5W73I.mjs} +5 -4
- package/dist/lib/node-esm/TranscriptContainer-5YT5W73I.mjs.map +7 -0
- package/dist/lib/node-esm/blueprint-definition-IOX35YUX.mjs +19 -0
- package/dist/lib/node-esm/blueprint-definition-IOX35YUX.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +10 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-4BFY6P2D.mjs +73 -0
- package/dist/lib/node-esm/chunk-4BFY6P2D.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-K4AZOB5Y.mjs → chunk-BX2AB7S7.mjs} +64 -98
- package/dist/lib/node-esm/chunk-BX2AB7S7.mjs.map +7 -0
- package/dist/lib/node-esm/{blueprint-definition-Z3LTZ3ID.mjs → chunk-CWP22IHV.mjs} +31 -31
- package/dist/lib/node-esm/chunk-CWP22IHV.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-YFN4FJFK.mjs → chunk-EPC27WWV.mjs} +19 -25
- package/dist/lib/node-esm/chunk-EPC27WWV.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-Q6WD7L2J.mjs → chunk-GVAVEVZ6.mjs} +2 -2
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-NVM2QUMX.mjs +37 -0
- package/dist/lib/node-esm/chunk-NVM2QUMX.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +59 -72
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operation-resolver-Z72B4H2Q.mjs +23 -0
- package/dist/lib/node-esm/operation-resolver-Z72B4H2Q.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-6GUBZX2V.mjs +35 -0
- package/dist/lib/node-esm/react-surface-6GUBZX2V.mjs.map +7 -0
- package/dist/lib/node-esm/{transcriber-UGB7ECX6.mjs → transcriber-RGW3YYT4.mjs} +17 -13
- package/dist/lib/node-esm/transcriber-RGW3YYT4.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +7 -5
- package/dist/types/src/TranscriptionPlugin.d.ts +2 -1
- package/dist/types/src/TranscriptionPlugin.d.ts.map +1 -1
- package/dist/types/src/blueprints/index.d.ts +2 -0
- package/dist/types/src/blueprints/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/transcription-blueprint.d.ts +21 -0
- package/dist/types/src/blueprints/transcription-blueprint.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +9 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts +3 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +4 -5
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler/index.d.ts +3 -0
- package/dist/types/src/capabilities/operation-handler/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts +5 -0
- package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/transcriber/index.d.ts +3 -0
- package/dist/types/src/capabilities/transcriber/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/transcriber/transcriber.d.ts +9 -0
- package/dist/types/src/capabilities/transcriber/transcriber.d.ts.map +1 -0
- package/dist/types/src/components/Transcript/Transcript.d.ts +5 -8
- package/dist/types/src/components/Transcript/Transcript.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/Transcript.stories.d.ts +4 -3
- package/dist/types/src/components/Transcript/Transcript.stories.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts +9 -9
- package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/transcript-extension.d.ts +2 -2
- package/dist/types/src/components/Transcript/transcript-extension.d.ts.map +1 -1
- package/dist/types/src/components/TranscriptContainer.d.ts +4 -6
- package/dist/types/src/components/TranscriptContainer.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/components/stories/FileTranscription.stories.d.ts +3 -3
- package/dist/types/src/components/stories/FileTranscription.stories.d.ts.map +1 -1
- package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts +3 -3
- package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts.map +1 -1
- package/dist/types/src/components/stories/TranscriptionStory.d.ts +2 -2
- package/dist/types/src/components/stories/TranscriptionStory.d.ts.map +1 -1
- package/dist/types/src/functions/open.d.ts +1 -1
- package/dist/types/src/functions/summarize.d.ts +1 -1
- package/dist/types/src/hooks/useQueueModelAdapter.d.ts +1 -1
- package/dist/types/src/hooks/useQueueModelAdapter.d.ts.map +1 -1
- package/dist/types/src/hooks/useTranscriber.d.ts +1 -1
- package/dist/types/src/hooks/useTranscriber.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/segments-normalization/message-normalizer.d.ts +5 -5
- package/dist/types/src/segments-normalization/message-normalizer.d.ts.map +1 -1
- package/dist/types/src/segments-normalization/normalization.d.ts +502 -457
- package/dist/types/src/segments-normalization/normalization.d.ts.map +1 -1
- package/dist/types/src/segments-normalization/utils.d.ts +2 -2
- package/dist/types/src/segments-normalization/utils.d.ts.map +1 -1
- package/dist/types/src/testing/testing.d.ts +9 -9
- package/dist/types/src/testing/testing.d.ts.map +1 -1
- package/dist/types/src/transcriber/media-stream-recorder.d.ts +2 -2
- package/dist/types/src/transcriber/media-stream-recorder.d.ts.map +1 -1
- package/dist/types/src/transcriber/transcriber.d.ts +4 -4
- package/dist/types/src/transcriber/transcriber.d.ts.map +1 -1
- package/dist/types/src/transcriber/transcription-manager.d.ts +9 -6
- package/dist/types/src/transcriber/transcription-manager.d.ts.map +1 -1
- package/dist/types/src/types/TranscriptAction.d.ts +22 -20
- package/dist/types/src/types/TranscriptAction.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +18 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/util/index.d.ts +1 -0
- package/dist/types/src/util/index.d.ts.map +1 -1
- package/dist/types/src/util/render-byline.d.ts +4 -0
- package/dist/types/src/util/render-byline.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +83 -69
- package/src/TranscriptionPlugin.tsx +34 -58
- package/src/blueprints/index.ts +5 -0
- package/src/blueprints/transcription-blueprint.ts +25 -0
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +23 -0
- package/src/capabilities/blueprint-definition/index.ts +7 -0
- package/src/capabilities/index.ts +4 -8
- package/src/capabilities/operation-handler/index.ts +7 -0
- package/src/capabilities/operation-handler/operation-handler.ts +25 -0
- package/src/capabilities/operation-resolver/index.ts +7 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +25 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +27 -0
- package/src/capabilities/transcriber/index.ts +7 -0
- package/src/capabilities/transcriber/transcriber.ts +85 -0
- package/src/components/Transcript/Transcript.stories.tsx +38 -37
- package/src/components/Transcript/Transcript.tsx +11 -38
- package/src/components/Transcript/deprecated/OldTranscript.tsx +2 -2
- package/src/components/Transcript/transcript-extension.ts +10 -6
- package/src/components/TranscriptContainer.tsx +15 -17
- package/src/components/stories/FileTranscription.stories.tsx +27 -31
- package/src/components/stories/KeyWordRecognition.stories.tsx +4 -4
- package/src/components/stories/MicrophoneTranscription.stories.tsx +47 -50
- package/src/components/stories/TranscriptionStory.tsx +7 -11
- package/src/functions/open.ts +6 -6
- package/src/hooks/useQueueModelAdapter.ts +1 -1
- package/src/hooks/useTranscriber.ts +8 -3
- package/src/hooks/useVoiceInput.ts +2 -2
- package/src/index.ts +1 -1
- package/src/meta.ts +2 -2
- package/src/model/model.test.ts +20 -14
- package/src/segments-normalization/message-normalizer.ts +18 -13
- package/src/segments-normalization/normalization.test.ts +5 -10
- package/src/segments-normalization/normalization.ts +6 -6
- package/src/segments-normalization/utils.ts +2 -2
- package/src/testing/testing.ts +28 -18
- package/src/transcriber/media-stream-recorder.ts +3 -3
- package/src/transcriber/transcriber.browser.test.ts +4 -4
- package/src/transcriber/transcriber.ts +6 -6
- package/src/transcriber/transcription-manager.ts +21 -15
- package/src/types/TranscriptAction.ts +21 -13
- package/src/{capabilities → types}/capabilities.ts +8 -8
- package/src/types/index.ts +2 -1
- package/src/util/index.ts +1 -0
- package/src/util/render-byline.ts +33 -0
- package/dist/lib/browser/TranscriptContainer-2GSL2XB5.mjs +0 -11
- package/dist/lib/browser/blueprint-definition-UAAJYVLZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-3MKZ2MNQ.mjs +0 -16
- package/dist/lib/browser/chunk-3MKZ2MNQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-7DR6HZEF.mjs.map +0 -7
- package/dist/lib/browser/chunk-VBUIO677.mjs +0 -29
- package/dist/lib/browser/chunk-VBUIO677.mjs.map +0 -7
- package/dist/lib/browser/chunk-W7WKZTM4.mjs +0 -63
- package/dist/lib/browser/chunk-W7WKZTM4.mjs.map +0 -7
- package/dist/lib/browser/chunk-WH36ENNE.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-ZTKTEAQX.mjs +0 -25
- package/dist/lib/browser/intent-resolver-ZTKTEAQX.mjs.map +0 -7
- package/dist/lib/browser/react-surface-KA32A72I.mjs +0 -34
- package/dist/lib/browser/react-surface-KA32A72I.mjs.map +0 -7
- package/dist/lib/browser/transcriber-LWOLYQHC.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-Z3LTZ3ID.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-K4AZOB5Y.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-OLMSTF3M.mjs +0 -64
- package/dist/lib/node-esm/chunk-OLMSTF3M.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SWUVPFKR.mjs +0 -17
- package/dist/lib/node-esm/chunk-SWUVPFKR.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-YFN4FJFK.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-YVNQN2J6.mjs +0 -30
- package/dist/lib/node-esm/chunk-YVNQN2J6.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-55WH2GY6.mjs +0 -26
- package/dist/lib/node-esm/intent-resolver-55WH2GY6.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-GU7LW2JO.mjs +0 -35
- package/dist/lib/node-esm/react-surface-GU7LW2JO.mjs.map +0 -7
- package/dist/lib/node-esm/transcriber-UGB7ECX6.mjs.map +0 -7
- package/dist/types/src/capabilities/blueprint-definition.d.ts +0 -5
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +0 -1
- package/dist/types/src/capabilities/capabilities.d.ts +0 -17
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/transcriber.d.ts +0 -8
- package/dist/types/src/capabilities/transcriber.d.ts.map +0 -1
- package/dist/types/src/types/Transcript.d.ts +0 -30
- package/dist/types/src/types/Transcript.d.ts.map +0 -1
- package/src/capabilities/blueprint-definition.ts +0 -31
- package/src/capabilities/intent-resolver.ts +0 -18
- package/src/capabilities/react-surface.tsx +0 -22
- package/src/capabilities/transcriber.ts +0 -77
- package/src/types/Transcript.ts +0 -44
- /package/dist/lib/browser/{TranscriptContainer-2GSL2XB5.mjs.map → TranscriptContainer-6EHKWVS4.mjs.map} +0 -0
- /package/dist/lib/{node-esm/TranscriptContainer-GRLDCESB.mjs.map → browser/blueprints/index.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-535OJKFO.mjs.map → chunk-SYGEFDWO.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-Q6WD7L2J.mjs.map → chunk-GVAVEVZ6.mjs.map} +0 -0
package/package.json
CHANGED
|
@@ -1,29 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-transcription",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.bc674ce",
|
|
4
4
|
"description": "Voice transcription.",
|
|
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
|
"type": "module",
|
|
10
14
|
"exports": {
|
|
11
15
|
".": {
|
|
12
|
-
"source": "./src/index.ts",
|
|
13
|
-
"types": "./dist/types/src/index.d.ts",
|
|
14
16
|
"browser": "./dist/lib/browser/index.mjs",
|
|
15
|
-
"node": "./dist/lib/node-esm/index.mjs"
|
|
17
|
+
"node": "./dist/lib/node-esm/index.mjs",
|
|
18
|
+
"source": "./src/index.ts",
|
|
19
|
+
"types": "./dist/types/src/index.d.ts"
|
|
20
|
+
},
|
|
21
|
+
"./blueprints": {
|
|
22
|
+
"browser": "./dist/lib/browser/blueprints/index.mjs",
|
|
23
|
+
"node": "./dist/lib/node-esm/blueprints/index.mjs",
|
|
24
|
+
"source": "./src/blueprints/index.ts",
|
|
25
|
+
"types": "./dist/types/src/blueprints/index.d.ts"
|
|
16
26
|
},
|
|
17
27
|
"./types": {
|
|
18
|
-
"source": "./src/types/index.ts",
|
|
19
|
-
"types": "./dist/types/src/types/index.d.ts",
|
|
20
28
|
"browser": "./dist/lib/browser/types/index.mjs",
|
|
21
|
-
"node": "./dist/lib/node-esm/types/index.mjs"
|
|
29
|
+
"node": "./dist/lib/node-esm/types/index.mjs",
|
|
30
|
+
"source": "./src/types/index.ts",
|
|
31
|
+
"types": "./dist/types/src/types/index.d.ts"
|
|
22
32
|
}
|
|
23
33
|
},
|
|
24
34
|
"types": "dist/types/src/index.d.ts",
|
|
25
35
|
"typesVersions": {
|
|
26
36
|
"*": {
|
|
37
|
+
"blueprints": [
|
|
38
|
+
"dist/types/src/blueprints/index.d.ts"
|
|
39
|
+
],
|
|
27
40
|
"types": [
|
|
28
41
|
"dist/types/src/types/index.d.ts"
|
|
29
42
|
]
|
|
@@ -36,8 +49,6 @@
|
|
|
36
49
|
"dependencies": {
|
|
37
50
|
"@codemirror/state": "^6.5.2",
|
|
38
51
|
"@codemirror/view": "^6.38.4",
|
|
39
|
-
"@preact-signals/safe-react": "^0.9.0",
|
|
40
|
-
"@preact/signals-core": "^1.12.1",
|
|
41
52
|
"date-fns": "^3.3.1",
|
|
42
53
|
"extendable-media-recorder": "^9.2.19",
|
|
43
54
|
"extendable-media-recorder-wav-encoder": "^7.0.123",
|
|
@@ -46,72 +57,75 @@
|
|
|
46
57
|
"react-router-dom": "^6.4.0",
|
|
47
58
|
"react-use": "^17.5.1",
|
|
48
59
|
"wavefile": "^11.0.0",
|
|
49
|
-
"@dxos/ai": "0.8.4-main.
|
|
50
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/codec-protobuf": "0.8.4-main.
|
|
56
|
-
"@dxos/context": "0.8.4-main.
|
|
57
|
-
"@dxos/display-name": "0.8.4-main.
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/keys": "0.8.4-main.
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/plugin-client": "0.8.4-main.
|
|
68
|
-
"@dxos/plugin-deck": "0.8.4-main.
|
|
69
|
-
"@dxos/plugin-
|
|
70
|
-
"@dxos/plugin-
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/react-client": "0.8.4-main.
|
|
75
|
-
"@dxos/
|
|
76
|
-
"@dxos/react-ui-attention": "0.8.4-main.
|
|
77
|
-
"@dxos/react-ui-components": "0.8.4-main.
|
|
78
|
-
"@dxos/react-ui-editor": "0.8.4-main.
|
|
79
|
-
"@dxos/react-ui-form": "0.8.4-main.
|
|
80
|
-
"@dxos/react-ui-
|
|
81
|
-
"@dxos/react-ui-sfx": "0.8.4-main.
|
|
82
|
-
"@dxos/react-ui-
|
|
83
|
-
"@dxos/
|
|
84
|
-
"@dxos/
|
|
85
|
-
"@dxos/
|
|
60
|
+
"@dxos/ai": "0.8.4-main.bc674ce",
|
|
61
|
+
"@dxos/app-framework": "0.8.4-main.bc674ce",
|
|
62
|
+
"@dxos/async": "0.8.4-main.bc674ce",
|
|
63
|
+
"@dxos/assistant": "0.8.4-main.bc674ce",
|
|
64
|
+
"@dxos/blueprints": "0.8.4-main.bc674ce",
|
|
65
|
+
"@dxos/client": "0.8.4-main.bc674ce",
|
|
66
|
+
"@dxos/codec-protobuf": "0.8.4-main.bc674ce",
|
|
67
|
+
"@dxos/context": "0.8.4-main.bc674ce",
|
|
68
|
+
"@dxos/display-name": "0.8.4-main.bc674ce",
|
|
69
|
+
"@dxos/debug": "0.8.4-main.bc674ce",
|
|
70
|
+
"@dxos/echo": "0.8.4-main.bc674ce",
|
|
71
|
+
"@dxos/functions": "0.8.4-main.bc674ce",
|
|
72
|
+
"@dxos/echo-db": "0.8.4-main.bc674ce",
|
|
73
|
+
"@dxos/functions-runtime": "0.8.4-main.bc674ce",
|
|
74
|
+
"@dxos/keys": "0.8.4-main.bc674ce",
|
|
75
|
+
"@dxos/log": "0.8.4-main.bc674ce",
|
|
76
|
+
"@dxos/invariant": "0.8.4-main.bc674ce",
|
|
77
|
+
"@dxos/operation": "0.8.4-main.bc674ce",
|
|
78
|
+
"@dxos/plugin-client": "0.8.4-main.bc674ce",
|
|
79
|
+
"@dxos/plugin-deck": "0.8.4-main.bc674ce",
|
|
80
|
+
"@dxos/plugin-graph": "0.8.4-main.bc674ce",
|
|
81
|
+
"@dxos/plugin-markdown": "0.8.4-main.bc674ce",
|
|
82
|
+
"@dxos/plugin-thread": "0.8.4-main.bc674ce",
|
|
83
|
+
"@dxos/protocols": "0.8.4-main.bc674ce",
|
|
84
|
+
"@dxos/react-client": "0.8.4-main.bc674ce",
|
|
85
|
+
"@dxos/react-edge-client": "0.8.4-main.bc674ce",
|
|
86
|
+
"@dxos/plugin-space": "0.8.4-main.bc674ce",
|
|
87
|
+
"@dxos/react-ui-attention": "0.8.4-main.bc674ce",
|
|
88
|
+
"@dxos/react-ui-components": "0.8.4-main.bc674ce",
|
|
89
|
+
"@dxos/react-ui-editor": "0.8.4-main.bc674ce",
|
|
90
|
+
"@dxos/react-ui-form": "0.8.4-main.bc674ce",
|
|
91
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.bc674ce",
|
|
92
|
+
"@dxos/react-ui-sfx": "0.8.4-main.bc674ce",
|
|
93
|
+
"@dxos/react-ui-grid": "0.8.4-main.bc674ce",
|
|
94
|
+
"@dxos/react-ui-stack": "0.8.4-main.bc674ce",
|
|
95
|
+
"@dxos/schema": "0.8.4-main.bc674ce",
|
|
96
|
+
"@dxos/types": "0.8.4-main.bc674ce",
|
|
97
|
+
"@dxos/ui-editor": "0.8.4-main.bc674ce",
|
|
98
|
+
"@dxos/tracing": "0.8.4-main.bc674ce",
|
|
99
|
+
"@dxos/util": "0.8.4-main.bc674ce"
|
|
86
100
|
},
|
|
87
101
|
"devDependencies": {
|
|
88
|
-
"@effect-
|
|
89
|
-
"@effect/platform": "0.
|
|
102
|
+
"@effect-atom/atom-react": "^0.4.6",
|
|
103
|
+
"@effect/platform": "0.93.6",
|
|
90
104
|
"@types/dom-speech-recognition": "^0.0.6",
|
|
91
|
-
"@types/react": "~19.2.
|
|
92
|
-
"effect": "3.
|
|
93
|
-
"react": "~19.2.
|
|
94
|
-
"react-dom": "~19.2.
|
|
105
|
+
"@types/react": "~19.2.7",
|
|
106
|
+
"effect": "3.19.11",
|
|
107
|
+
"react": "~19.2.3",
|
|
108
|
+
"react-dom": "~19.2.3",
|
|
95
109
|
"tailwindcss": "~3.4.1",
|
|
96
|
-
"@dxos/plugin-preview": "0.8.4-main.
|
|
97
|
-
"@dxos/plugin-
|
|
98
|
-
"@dxos/plugin-theme": "0.8.4-main.
|
|
99
|
-
"@dxos/random": "0.8.4-main.
|
|
100
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
101
|
-
"@dxos/react-ui
|
|
102
|
-
"@dxos/
|
|
103
|
-
"@dxos/react-ui-
|
|
104
|
-
"@dxos/
|
|
105
|
-
"@dxos/test-utils": "0.8.4-main.
|
|
110
|
+
"@dxos/plugin-preview": "0.8.4-main.bc674ce",
|
|
111
|
+
"@dxos/plugin-testing": "0.8.4-main.bc674ce",
|
|
112
|
+
"@dxos/plugin-theme": "0.8.4-main.bc674ce",
|
|
113
|
+
"@dxos/random": "0.8.4-main.bc674ce",
|
|
114
|
+
"@dxos/react-ui-form": "0.8.4-main.bc674ce",
|
|
115
|
+
"@dxos/react-ui": "0.8.4-main.bc674ce",
|
|
116
|
+
"@dxos/storybook-utils": "0.8.4-main.bc674ce",
|
|
117
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.bc674ce",
|
|
118
|
+
"@dxos/ui-theme": "0.8.4-main.bc674ce",
|
|
119
|
+
"@dxos/test-utils": "0.8.4-main.bc674ce"
|
|
106
120
|
},
|
|
107
121
|
"peerDependencies": {
|
|
108
|
-
"@effect-
|
|
109
|
-
"@effect/platform": "
|
|
110
|
-
"effect": "
|
|
111
|
-
"react": "
|
|
112
|
-
"react-dom": "
|
|
113
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
114
|
-
"@dxos/
|
|
122
|
+
"@effect-atom/atom-react": "^0.4.6",
|
|
123
|
+
"@effect/platform": "0.93.6",
|
|
124
|
+
"effect": "3.19.11",
|
|
125
|
+
"react": "~19.2.3",
|
|
126
|
+
"react-dom": "~19.2.3",
|
|
127
|
+
"@dxos/react-ui": "0.8.4-main.bc674ce",
|
|
128
|
+
"@dxos/ui-theme": "0.8.4-main.bc674ce"
|
|
115
129
|
},
|
|
116
130
|
"publishConfig": {
|
|
117
131
|
"access": "public"
|
|
@@ -2,71 +2,47 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { Common, Plugin } from '@dxos/app-framework';
|
|
6
6
|
import { Obj } from '@dxos/echo';
|
|
7
|
-
import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
|
|
8
7
|
import { getSpace } from '@dxos/react-client/echo';
|
|
9
|
-
import {
|
|
8
|
+
import { Message, Transcript } from '@dxos/types';
|
|
10
9
|
|
|
11
|
-
import { BlueprintDefinition,
|
|
12
|
-
import { renderByline } from './components';
|
|
10
|
+
import { BlueprintDefinition, OperationResolver, ReactSurface, Transcriber } from './capabilities';
|
|
13
11
|
import { meta } from './meta';
|
|
14
12
|
import { translations } from './translations';
|
|
15
|
-
import {
|
|
13
|
+
import { renderByline } from './util';
|
|
16
14
|
|
|
17
|
-
export const TranscriptionPlugin =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const queue = space?.queues.get<DataType.Message>(transcript.queue.dxn);
|
|
37
|
-
await queue?.refresh();
|
|
38
|
-
const content = queue?.objects
|
|
39
|
-
.filter((message) => Obj.instanceOf(DataType.Message, message))
|
|
40
|
-
.flatMap((message, index) => renderByline(members)(message, index))
|
|
41
|
-
.join('\n\n');
|
|
42
|
-
return content;
|
|
43
|
-
},
|
|
15
|
+
export const TranscriptionPlugin = Plugin.define(meta).pipe(
|
|
16
|
+
Common.Plugin.addTranslationsModule({ translations }),
|
|
17
|
+
Common.Plugin.addMetadataModule({
|
|
18
|
+
metadata: {
|
|
19
|
+
id: Transcript.Transcript.typename,
|
|
20
|
+
metadata: {
|
|
21
|
+
icon: 'ph--subtitles--regular',
|
|
22
|
+
iconHue: 'sky',
|
|
23
|
+
// TODO(wittjosiah): Factor out. Artifact? Separate capability?
|
|
24
|
+
getTextContent: async (transcript: Transcript.Transcript) => {
|
|
25
|
+
const space = getSpace(transcript);
|
|
26
|
+
const members = space?.members.get().map((member) => member.identity) ?? [];
|
|
27
|
+
const queue = space?.queues.get<Message.Message>(transcript.queue.dxn);
|
|
28
|
+
await queue?.refresh();
|
|
29
|
+
const content = queue?.objects
|
|
30
|
+
.filter((message) => Obj.instanceOf(Message.Message, message))
|
|
31
|
+
.flatMap((message, index) => renderByline(members)(message, index))
|
|
32
|
+
.join('\n\n');
|
|
33
|
+
return content;
|
|
44
34
|
},
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
defineModule({
|
|
48
|
-
id: `${meta.id}/module/schema`,
|
|
49
|
-
activatesOn: ClientEvents.SetupSchema,
|
|
50
|
-
activate: () => [contributes(ClientCapabilities.Schema, [Transcript.Transcript])],
|
|
51
|
-
}),
|
|
52
|
-
defineModule({
|
|
53
|
-
id: `${meta.id}/module/react-surface`,
|
|
54
|
-
activatesOn: Events.SetupReactSurface,
|
|
55
|
-
activate: ReactSurface,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
56
37
|
}),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
id: `${meta.id}/module/transcription`,
|
|
64
|
-
activatesOn: Events.SetupAppGraph,
|
|
38
|
+
Common.Plugin.addSchemaModule({ schema: [Transcript.Transcript] }),
|
|
39
|
+
Common.Plugin.addSurfaceModule({ activate: ReactSurface }),
|
|
40
|
+
Common.Plugin.addOperationResolverModule({ activate: OperationResolver }),
|
|
41
|
+
Plugin.addModule({
|
|
42
|
+
id: 'transcription',
|
|
43
|
+
activatesOn: Common.ActivationEvent.SetupAppGraph,
|
|
65
44
|
activate: Transcriber,
|
|
66
45
|
}),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
activate: BlueprintDefinition,
|
|
71
|
-
}),
|
|
72
|
-
]);
|
|
46
|
+
Common.Plugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),
|
|
47
|
+
Plugin.make,
|
|
48
|
+
);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { Blueprint, Template } from '@dxos/blueprints';
|
|
6
|
+
import { type FunctionDefinition } from '@dxos/functions';
|
|
7
|
+
import { trim } from '@dxos/util';
|
|
8
|
+
|
|
9
|
+
import { open, summarize } from '../functions';
|
|
10
|
+
|
|
11
|
+
export const functions: FunctionDefinition[] = [open, summarize];
|
|
12
|
+
|
|
13
|
+
export const Key = 'dxos.org/blueprint/transcription';
|
|
14
|
+
|
|
15
|
+
export const make = () =>
|
|
16
|
+
Blueprint.make({
|
|
17
|
+
key: Key,
|
|
18
|
+
name: 'Transcription',
|
|
19
|
+
tools: Blueprint.toolDefinitions({ functions }),
|
|
20
|
+
instructions: Template.make({
|
|
21
|
+
source: trim`
|
|
22
|
+
You can open and summarize a meeting transcript.
|
|
23
|
+
`,
|
|
24
|
+
}),
|
|
25
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability, Common } from '@dxos/app-framework';
|
|
8
|
+
|
|
9
|
+
import { TranscriptionBlueprint } from '../../blueprints';
|
|
10
|
+
|
|
11
|
+
export type BlueprintCapabilities = [
|
|
12
|
+
Capability.Capability<typeof Common.Capability.Functions>,
|
|
13
|
+
Capability.Capability<typeof Common.Capability.BlueprintDefinition>,
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
const blueprintDefinition = Capability.makeModule<[], BlueprintCapabilities>(() =>
|
|
17
|
+
Effect.succeed([
|
|
18
|
+
Capability.contributes(Common.Capability.Functions, TranscriptionBlueprint.functions),
|
|
19
|
+
Capability.contributes(Common.Capability.BlueprintDefinition, TranscriptionBlueprint.make()),
|
|
20
|
+
]),
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
export default blueprintDefinition;
|
|
@@ -2,11 +2,7 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export const ReactSurface = lazy(() => import('./react-surface'));
|
|
10
|
-
export const Transcriber = lazy(() => import('./transcriber'));
|
|
11
|
-
|
|
12
|
-
export * from './capabilities';
|
|
5
|
+
export * from './blueprint-definition';
|
|
6
|
+
export * from './operation-resolver';
|
|
7
|
+
export * from './react-surface';
|
|
8
|
+
export * from './transcriber';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability, Common } from '@dxos/app-framework';
|
|
8
|
+
import { OperationResolver } from '@dxos/operation';
|
|
9
|
+
import { Transcript } from '@dxos/types';
|
|
10
|
+
|
|
11
|
+
import { TranscriptOperation } from '../../types';
|
|
12
|
+
|
|
13
|
+
export default Capability.makeModule(() =>
|
|
14
|
+
Effect.succeed(
|
|
15
|
+
Capability.contributes(Common.Capability.OperationResolver, [
|
|
16
|
+
OperationResolver.make({
|
|
17
|
+
operation: TranscriptOperation.Create,
|
|
18
|
+
handler: ({ space }) =>
|
|
19
|
+
Effect.succeed({
|
|
20
|
+
object: Transcript.make(space.queues.create().dxn),
|
|
21
|
+
}),
|
|
22
|
+
}),
|
|
23
|
+
]),
|
|
24
|
+
),
|
|
25
|
+
);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability, Common } from '@dxos/app-framework';
|
|
8
|
+
import { OperationResolver } from '@dxos/operation';
|
|
9
|
+
import { Transcript } from '@dxos/types';
|
|
10
|
+
|
|
11
|
+
import { TranscriptOperation } from '../../types';
|
|
12
|
+
|
|
13
|
+
export default Capability.makeModule(() =>
|
|
14
|
+
Effect.succeed(
|
|
15
|
+
Capability.contributes(Common.Capability.OperationResolver, [
|
|
16
|
+
OperationResolver.make({
|
|
17
|
+
operation: TranscriptOperation.Create,
|
|
18
|
+
handler: ({ space }) =>
|
|
19
|
+
Effect.succeed({
|
|
20
|
+
object: Transcript.make(space.queues.create().dxn),
|
|
21
|
+
}),
|
|
22
|
+
}),
|
|
23
|
+
]),
|
|
24
|
+
),
|
|
25
|
+
);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
|
|
8
|
+
import { Capability, Common } from '@dxos/app-framework';
|
|
9
|
+
import { Obj } from '@dxos/echo';
|
|
10
|
+
import { Transcript } from '@dxos/types';
|
|
11
|
+
|
|
12
|
+
import { TranscriptionContainer } from '../../components';
|
|
13
|
+
import { meta } from '../../meta';
|
|
14
|
+
|
|
15
|
+
export default Capability.makeModule(() =>
|
|
16
|
+
Effect.succeed(
|
|
17
|
+
Capability.contributes(Common.Capability.ReactSurface, [
|
|
18
|
+
Common.createSurface({
|
|
19
|
+
id: `${meta.id}/article/transcript`,
|
|
20
|
+
role: ['article', 'section'],
|
|
21
|
+
filter: (data): data is { subject: Transcript.Transcript } =>
|
|
22
|
+
Obj.instanceOf(Transcript.Transcript, data.subject),
|
|
23
|
+
component: ({ data, role }) => <TranscriptionContainer role={role} subject={data.subject} />,
|
|
24
|
+
}),
|
|
25
|
+
]),
|
|
26
|
+
),
|
|
27
|
+
);
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability, Common } from '@dxos/app-framework';
|
|
8
|
+
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
9
|
+
|
|
10
|
+
import { MediaStreamRecorder, Transcriber, TranscriptionManager } from '../../transcriber';
|
|
11
|
+
import { TranscriptionCapabilities } from '../../types';
|
|
12
|
+
|
|
13
|
+
// TODO(burdon): Move to config?
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Length of the chunk in ms.
|
|
17
|
+
*/
|
|
18
|
+
const RECORD_INTERVAL = 200;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Number of chunks to save before the user starts speaking.
|
|
22
|
+
*/
|
|
23
|
+
const PREFIXED_CHUNKS_AMOUNT = 10;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Number of chunks to transcribe automatically after.
|
|
27
|
+
* Combined should be mess than 25MB or whisper would fail.
|
|
28
|
+
*/
|
|
29
|
+
const TRANSCRIBE_AFTER_CHUNKS_AMOUNT = 50;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Records audio while user is speaking and transcribes it after user is done speaking.
|
|
33
|
+
*/
|
|
34
|
+
export default Capability.makeModule(
|
|
35
|
+
Effect.fnUntraced(function* () {
|
|
36
|
+
// Get context for lazy capability access in callbacks.
|
|
37
|
+
const capabilities = yield* Capability.Service;
|
|
38
|
+
const registry = yield* Capability.get(Common.Capability.AtomRegistry);
|
|
39
|
+
|
|
40
|
+
const getTranscriber: TranscriptionCapabilities.GetTranscriber = ({
|
|
41
|
+
audioStreamTrack,
|
|
42
|
+
onSegments,
|
|
43
|
+
transcriberConfig,
|
|
44
|
+
recorderConfig,
|
|
45
|
+
}) => {
|
|
46
|
+
// Initialize audio transcription.
|
|
47
|
+
return new Transcriber({
|
|
48
|
+
config: {
|
|
49
|
+
transcribeAfterChunksAmount: TRANSCRIBE_AFTER_CHUNKS_AMOUNT,
|
|
50
|
+
prefixBufferChunksAmount: PREFIXED_CHUNKS_AMOUNT,
|
|
51
|
+
...transcriberConfig,
|
|
52
|
+
},
|
|
53
|
+
recorder: new MediaStreamRecorder({
|
|
54
|
+
mediaStreamTrack: audioStreamTrack,
|
|
55
|
+
config: {
|
|
56
|
+
interval: RECORD_INTERVAL,
|
|
57
|
+
...recorderConfig,
|
|
58
|
+
},
|
|
59
|
+
}),
|
|
60
|
+
onSegments,
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const getTranscriptionManager: TranscriptionCapabilities.GetTranscriptionManager = ({ messageEnricher }) => {
|
|
65
|
+
const client = capabilities.get(ClientCapabilities.Client);
|
|
66
|
+
const transcriptionManager = new TranscriptionManager({
|
|
67
|
+
edgeClient: client.edge,
|
|
68
|
+
messageEnricher,
|
|
69
|
+
registry,
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
const identity = client.halo.identity.get();
|
|
73
|
+
if (identity) {
|
|
74
|
+
transcriptionManager.setIdentityDid(identity.did);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return transcriptionManager;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
return [
|
|
81
|
+
Capability.contributes(TranscriptionCapabilities.Transcriber, getTranscriber),
|
|
82
|
+
Capability.contributes(TranscriptionCapabilities.TranscriptionManager, getTranscriptionManager),
|
|
83
|
+
];
|
|
84
|
+
}),
|
|
85
|
+
);
|