@dxos/plugin-transcription 0.8.4-main.72ec0f3 → 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/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-EHT3TE6U.mjs → chunk-ICM7JRCO.mjs} +57 -97
- 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-OCI42DWB.mjs → chunk-SYGEFDWO.mjs} +2 -2
- package/dist/lib/browser/{chunk-PVU4XCKI.mjs → chunk-TKFU53OZ.mjs} +17 -23
- package/dist/lib/browser/chunk-TKFU53OZ.mjs.map +7 -0
- package/dist/lib/browser/{blueprint-definition-WBWHO4OH.mjs → chunk-ZZF7ICVM.mjs} +30 -30
- 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-E2KAOXPS.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-WU3EDQR3.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-7XASA7DX.mjs → chunk-BX2AB7S7.mjs} +57 -97
- package/dist/lib/node-esm/chunk-BX2AB7S7.mjs.map +7 -0
- package/dist/lib/node-esm/{blueprint-definition-WUHZFRWZ.mjs → chunk-CWP22IHV.mjs} +30 -30
- package/dist/lib/node-esm/chunk-CWP22IHV.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-UVOYXXDJ.mjs → chunk-EPC27WWV.mjs} +17 -23
- package/dist/lib/node-esm/chunk-EPC27WWV.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-X5BKN32O.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-ZPJM4U2W.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 +4 -7
- package/dist/types/src/components/Transcript/Transcript.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/Transcript.stories.d.ts +2 -1
- 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/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.map +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 +2 -2
- package/dist/types/src/segments-normalization/message-normalizer.d.ts.map +1 -1
- package/dist/types/src/segments-normalization/normalization.d.ts +501 -456
- package/dist/types/src/segments-normalization/normalization.d.ts.map +1 -1
- package/dist/types/src/testing/testing.d.ts +4 -4
- 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 +2 -2
- package/dist/types/src/transcriber/transcriber.d.ts.map +1 -1
- package/dist/types/src/transcriber/transcription-manager.d.ts +6 -3
- 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 -71
- 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 +31 -32
- package/src/components/Transcript/Transcript.tsx +8 -36
- package/src/components/Transcript/deprecated/OldTranscript.tsx +2 -2
- package/src/components/TranscriptContainer.tsx +12 -15
- package/src/components/stories/FileTranscription.stories.tsx +21 -26
- package/src/components/stories/KeyWordRecognition.stories.tsx +2 -2
- package/src/components/stories/MicrophoneTranscription.stories.tsx +41 -45
- package/src/components/stories/TranscriptionStory.tsx +1 -4
- package/src/functions/open.ts +5 -5
- package/src/hooks/useQueueModelAdapter.ts +1 -1
- package/src/hooks/useTranscriber.ts +1 -1
- 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 +9 -3
- package/src/segments-normalization/message-normalizer.ts +12 -7
- package/src/segments-normalization/normalization.test.ts +0 -5
- package/src/testing/testing.ts +10 -5
- package/src/transcriber/media-stream-recorder.ts +3 -3
- package/src/transcriber/transcriber.browser.test.ts +1 -1
- package/src/transcriber/transcriber.ts +3 -3
- package/src/transcriber/transcription-manager.ts +15 -9
- 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-EKSP5DQ6.mjs +0 -11
- package/dist/lib/browser/blueprint-definition-WBWHO4OH.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-EHT3TE6U.mjs.map +0 -7
- package/dist/lib/browser/chunk-PVU4XCKI.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/intent-resolver-ZTKTEAQX.mjs +0 -25
- package/dist/lib/browser/intent-resolver-ZTKTEAQX.mjs.map +0 -7
- package/dist/lib/browser/react-surface-NARMYO2O.mjs +0 -34
- package/dist/lib/browser/react-surface-NARMYO2O.mjs.map +0 -7
- package/dist/lib/browser/transcriber-E2KAOXPS.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-WUHZFRWZ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-7XASA7DX.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-UVOYXXDJ.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-5MQA3IUS.mjs +0 -35
- package/dist/lib/node-esm/react-surface-5MQA3IUS.mjs.map +0 -7
- package/dist/lib/node-esm/transcriber-ZPJM4U2W.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-EKSP5DQ6.mjs.map → TranscriptContainer-6EHKWVS4.mjs.map} +0 -0
- /package/dist/lib/{node-esm/TranscriptContainer-WU3EDQR3.mjs.map → browser/blueprints/index.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-OCI42DWB.mjs.map → chunk-SYGEFDWO.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-X5BKN32O.mjs.map → chunk-GVAVEVZ6.mjs.map} +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import "./chunk-GVAVEVZ6.mjs";
|
|
3
|
+
import {
|
|
4
|
+
TranscriptionContainer
|
|
5
|
+
} from "./chunk-BX2AB7S7.mjs";
|
|
6
|
+
import "./chunk-NVM2QUMX.mjs";
|
|
7
|
+
import {
|
|
8
|
+
meta
|
|
9
|
+
} from "./chunk-4BFY6P2D.mjs";
|
|
10
|
+
import "./chunk-HSLMI22Q.mjs";
|
|
11
|
+
|
|
12
|
+
// src/capabilities/react-surface/react-surface.tsx
|
|
13
|
+
import * as Effect from "effect/Effect";
|
|
14
|
+
import React from "react";
|
|
15
|
+
import { Capability, Common } from "@dxos/app-framework";
|
|
16
|
+
import { Obj } from "@dxos/echo";
|
|
17
|
+
import { Transcript } from "@dxos/types";
|
|
18
|
+
var react_surface_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Common.Capability.ReactSurface, [
|
|
19
|
+
Common.createSurface({
|
|
20
|
+
id: `${meta.id}/article/transcript`,
|
|
21
|
+
role: [
|
|
22
|
+
"article",
|
|
23
|
+
"section"
|
|
24
|
+
],
|
|
25
|
+
filter: (data) => Obj.instanceOf(Transcript.Transcript, data.subject),
|
|
26
|
+
component: ({ data, role }) => /* @__PURE__ */ React.createElement(TranscriptionContainer, {
|
|
27
|
+
role,
|
|
28
|
+
subject: data.subject
|
|
29
|
+
})
|
|
30
|
+
})
|
|
31
|
+
])));
|
|
32
|
+
export {
|
|
33
|
+
react_surface_default as default
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=react-surface-6GUBZX2V.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/react-surface/react-surface.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React from 'react';\n\nimport { Capability, Common } from '@dxos/app-framework';\nimport { Obj } from '@dxos/echo';\nimport { Transcript } from '@dxos/types';\n\nimport { TranscriptionContainer } from '../../components';\nimport { meta } from '../../meta';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Common.Capability.ReactSurface, [\n Common.createSurface({\n id: `${meta.id}/article/transcript`,\n role: ['article', 'section'],\n filter: (data): data is { subject: Transcript.Transcript } =>\n Obj.instanceOf(Transcript.Transcript, data.subject),\n component: ({ data, role }) => <TranscriptionContainer role={role} subject={data.subject} />,\n }),\n ]),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,YAAYC,cAAc;AACnC,SAASC,WAAW;AACpB,SAASC,kBAAkB;AAK3B,IAAA,wBAAeC,WAAWC,WAAW,MAC5BC,eACLF,WAAWG,YAAYC,OAAOJ,WAAWK,cAAc;EACrDD,OAAOE,cAAc;IACnBC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;MAAC;MAAW;;IAClBC,QAAQ,CAACC,SACPC,IAAIC,WAAWC,WAAWA,YAAYH,KAAKI,OAAO;IACpDC,WAAW,CAAC,EAAEL,MAAMF,KAAI,MAAO,sBAAA,cAACQ,wBAAAA;MAAuBR;MAAYM,SAASJ,KAAKI;;EACnF,CAAA;CACD,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "React", "Capability", "Common", "Obj", "Transcript", "Capability", "makeModule", "succeed", "contributes", "Common", "ReactSurface", "createSurface", "id", "meta", "role", "filter", "data", "Obj", "instanceOf", "Transcript", "subject", "component", "TranscriptionContainer"]
|
|
7
|
+
}
|
|
@@ -3,20 +3,23 @@ import {
|
|
|
3
3
|
MediaStreamRecorder,
|
|
4
4
|
Transcriber,
|
|
5
5
|
TranscriptionManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EPC27WWV.mjs";
|
|
7
|
+
import "./chunk-NVM2QUMX.mjs";
|
|
7
8
|
import {
|
|
8
9
|
TranscriptionCapabilities
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-YVNQN2J6.mjs";
|
|
10
|
+
} from "./chunk-4BFY6P2D.mjs";
|
|
11
|
+
import "./chunk-HSLMI22Q.mjs";
|
|
12
12
|
|
|
13
|
-
// src/capabilities/transcriber.ts
|
|
14
|
-
import
|
|
13
|
+
// src/capabilities/transcriber/transcriber.ts
|
|
14
|
+
import * as Effect from "effect/Effect";
|
|
15
|
+
import { Capability, Common } from "@dxos/app-framework";
|
|
15
16
|
import { ClientCapabilities } from "@dxos/plugin-client";
|
|
16
17
|
var RECORD_INTERVAL = 200;
|
|
17
18
|
var PREFIXED_CHUNKS_AMOUNT = 10;
|
|
18
19
|
var TRANSCRIBE_AFTER_CHUNKS_AMOUNT = 50;
|
|
19
|
-
var transcriber_default = ((
|
|
20
|
+
var transcriber_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
21
|
+
const capabilities = yield* Capability.Service;
|
|
22
|
+
const registry = yield* Capability.get(Common.Capability.AtomRegistry);
|
|
20
23
|
const getTranscriber = ({ audioStreamTrack, onSegments, transcriberConfig, recorderConfig }) => {
|
|
21
24
|
return new Transcriber({
|
|
22
25
|
config: {
|
|
@@ -35,10 +38,11 @@ var transcriber_default = ((context) => {
|
|
|
35
38
|
});
|
|
36
39
|
};
|
|
37
40
|
const getTranscriptionManager = ({ messageEnricher }) => {
|
|
38
|
-
const client =
|
|
41
|
+
const client = capabilities.get(ClientCapabilities.Client);
|
|
39
42
|
const transcriptionManager = new TranscriptionManager({
|
|
40
43
|
edgeClient: client.edge,
|
|
41
|
-
messageEnricher
|
|
44
|
+
messageEnricher,
|
|
45
|
+
registry
|
|
42
46
|
});
|
|
43
47
|
const identity = client.halo.identity.get();
|
|
44
48
|
if (identity) {
|
|
@@ -47,11 +51,11 @@ var transcriber_default = ((context) => {
|
|
|
47
51
|
return transcriptionManager;
|
|
48
52
|
};
|
|
49
53
|
return [
|
|
50
|
-
contributes(TranscriptionCapabilities.Transcriber, getTranscriber),
|
|
51
|
-
contributes(TranscriptionCapabilities.TranscriptionManager, getTranscriptionManager)
|
|
54
|
+
Capability.contributes(TranscriptionCapabilities.Transcriber, getTranscriber),
|
|
55
|
+
Capability.contributes(TranscriptionCapabilities.TranscriptionManager, getTranscriptionManager)
|
|
52
56
|
];
|
|
53
|
-
});
|
|
57
|
+
}));
|
|
54
58
|
export {
|
|
55
59
|
transcriber_default as default
|
|
56
60
|
};
|
|
57
|
-
//# sourceMappingURL=transcriber-
|
|
61
|
+
//# sourceMappingURL=transcriber-RGW3YYT4.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/transcriber/transcriber.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability, Common } from '@dxos/app-framework';\nimport { ClientCapabilities } from '@dxos/plugin-client';\n\nimport { MediaStreamRecorder, Transcriber, TranscriptionManager } from '../../transcriber';\nimport { TranscriptionCapabilities } from '../../types';\n\n// TODO(burdon): Move to config?\n\n/**\n * Length of the chunk in ms.\n */\nconst RECORD_INTERVAL = 200;\n\n/**\n * Number of chunks to save before the user starts speaking.\n */\nconst PREFIXED_CHUNKS_AMOUNT = 10;\n\n/**\n * Number of chunks to transcribe automatically after.\n * Combined should be mess than 25MB or whisper would fail.\n */\nconst TRANSCRIBE_AFTER_CHUNKS_AMOUNT = 50;\n\n/**\n * Records audio while user is speaking and transcribes it after user is done speaking.\n */\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n // Get context for lazy capability access in callbacks.\n const capabilities = yield* Capability.Service;\n const registry = yield* Capability.get(Common.Capability.AtomRegistry);\n\n const getTranscriber: TranscriptionCapabilities.GetTranscriber = ({\n audioStreamTrack,\n onSegments,\n transcriberConfig,\n recorderConfig,\n }) => {\n // Initialize audio transcription.\n return new Transcriber({\n config: {\n transcribeAfterChunksAmount: TRANSCRIBE_AFTER_CHUNKS_AMOUNT,\n prefixBufferChunksAmount: PREFIXED_CHUNKS_AMOUNT,\n ...transcriberConfig,\n },\n recorder: new MediaStreamRecorder({\n mediaStreamTrack: audioStreamTrack,\n config: {\n interval: RECORD_INTERVAL,\n ...recorderConfig,\n },\n }),\n onSegments,\n });\n };\n\n const getTranscriptionManager: TranscriptionCapabilities.GetTranscriptionManager = ({ messageEnricher }) => {\n const client = capabilities.get(ClientCapabilities.Client);\n const transcriptionManager = new TranscriptionManager({\n edgeClient: client.edge,\n messageEnricher,\n registry,\n });\n\n const identity = client.halo.identity.get();\n if (identity) {\n transcriptionManager.setIdentityDid(identity.did);\n }\n\n return transcriptionManager;\n };\n\n return [\n Capability.contributes(TranscriptionCapabilities.Transcriber, getTranscriber),\n Capability.contributes(TranscriptionCapabilities.TranscriptionManager, getTranscriptionManager),\n ];\n }),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,YAAYC,cAAc;AACnC,SAASC,0BAA0B;AAUnC,IAAMC,kBAAkB;AAKxB,IAAMC,yBAAyB;AAM/B,IAAMC,iCAAiC;AAKvC,IAAA,sBAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAEhB,QAAMC,eAAe,OAAOH,WAAWI;AACvC,QAAMC,WAAW,OAAOL,WAAWM,IAAIC,OAAOP,WAAWQ,YAAY;AAErE,QAAMC,iBAA2D,CAAC,EAChEC,kBACAC,YACAC,mBACAC,eAAc,MACf;AAEC,WAAO,IAAIC,YAAY;MACrBC,QAAQ;QACNC,6BAA6BjB;QAC7BkB,0BAA0BnB;QAC1B,GAAGc;MACL;MACAM,UAAU,IAAIC,oBAAoB;QAChCC,kBAAkBV;QAClBK,QAAQ;UACNM,UAAUxB;UACV,GAAGgB;QACL;MACF,CAAA;MACAF;IACF,CAAA;EACF;AAEA,QAAMW,0BAA6E,CAAC,EAAEC,gBAAe,MAAE;AACrG,UAAMC,SAASrB,aAAaG,IAAImB,mBAAmBC,MAAM;AACzD,UAAMC,uBAAuB,IAAIC,qBAAqB;MACpDC,YAAYL,OAAOM;MACnBP;MACAlB;IACF,CAAA;AAEA,UAAM0B,WAAWP,OAAOQ,KAAKD,SAASzB,IAAG;AACzC,QAAIyB,UAAU;AACZJ,2BAAqBM,eAAeF,SAASG,GAAG;IAClD;AAEA,WAAOP;EACT;AAEA,SAAO;IACL3B,WAAWmC,YAAYC,0BAA0BtB,aAAaL,cAAAA;IAC9DT,WAAWmC,YAAYC,0BAA0BR,sBAAsBN,uBAAAA;;AAE3E,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Capability", "Common", "ClientCapabilities", "RECORD_INTERVAL", "PREFIXED_CHUNKS_AMOUNT", "TRANSCRIBE_AFTER_CHUNKS_AMOUNT", "Capability", "makeModule", "fnUntraced", "capabilities", "Service", "registry", "get", "Common", "AtomRegistry", "getTranscriber", "audioStreamTrack", "onSegments", "transcriberConfig", "recorderConfig", "Transcriber", "config", "transcribeAfterChunksAmount", "prefixBufferChunksAmount", "recorder", "MediaStreamRecorder", "mediaStreamTrack", "interval", "getTranscriptionManager", "messageEnricher", "client", "ClientCapabilities", "Client", "transcriptionManager", "TranscriptionManager", "edgeClient", "edge", "identity", "halo", "setIdentityDid", "did", "contributes", "TranscriptionCapabilities"]
|
|
7
|
+
}
|
|
@@ -2,12 +2,14 @@ import { createRequire } from 'node:module';const require = createRequire(import
|
|
|
2
2
|
import {
|
|
3
3
|
TRANSCRIPTION_URL,
|
|
4
4
|
TranscriptAction_exports,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
TranscriptOperation,
|
|
6
|
+
TranscriptionCapabilities
|
|
7
|
+
} from "../chunk-4BFY6P2D.mjs";
|
|
8
|
+
import "../chunk-HSLMI22Q.mjs";
|
|
8
9
|
export {
|
|
9
10
|
TRANSCRIPTION_URL,
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
TranscriptAction_exports as TranscriptAction,
|
|
12
|
+
TranscriptOperation,
|
|
13
|
+
TranscriptionCapabilities
|
|
12
14
|
};
|
|
13
15
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TranscriptionPlugin.d.ts","sourceRoot":"","sources":["../../../src/TranscriptionPlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TranscriptionPlugin.d.ts","sourceRoot":"","sources":["../../../src/TranscriptionPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAU,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAUrD,eAAO,MAAM,mBAAmB,4BAiC/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,sBAAsB,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type FunctionDefinition } from '@dxos/functions';
|
|
2
|
+
export declare const functions: FunctionDefinition[];
|
|
3
|
+
export declare const Key = "dxos.org/blueprint/transcription";
|
|
4
|
+
export declare const make: () => import("@dxos/echo/Obj").Obj<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
5
|
+
readonly description?: string | undefined;
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly key: string;
|
|
8
|
+
readonly instructions: {
|
|
9
|
+
source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
10
|
+
readonly content: string;
|
|
11
|
+
}>;
|
|
12
|
+
inputs?: {
|
|
13
|
+
function?: string | undefined;
|
|
14
|
+
name: string;
|
|
15
|
+
kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
|
|
16
|
+
default?: any;
|
|
17
|
+
}[] | undefined;
|
|
18
|
+
};
|
|
19
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
20
|
+
}>;
|
|
21
|
+
//# sourceMappingURL=transcription-blueprint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transcription-blueprint.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/transcription-blueprint.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAK1D,eAAO,MAAM,SAAS,EAAE,kBAAkB,EAAsB,CAAC;AAEjE,eAAO,MAAM,GAAG,qCAAqC,CAAC;AAEtD,eAAO,MAAM,IAAI;;;;;;;;cAW0sC,CAAC;oBAAwB,CAAC;;gBAAgE,CAAC;mBAAoI,CAAC;;;;EADv7C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability, Common } from '@dxos/app-framework';
|
|
3
|
+
export type BlueprintCapabilities = [
|
|
4
|
+
Capability.Capability<typeof Common.Capability.Functions>,
|
|
5
|
+
Capability.Capability<typeof Common.Capability.BlueprintDefinition>
|
|
6
|
+
];
|
|
7
|
+
declare const blueprintDefinition: (props?: [] | undefined) => Effect.Effect<BlueprintCapabilities, Error, Capability.Service>;
|
|
8
|
+
export default blueprintDefinition;
|
|
9
|
+
//# sourceMappingURL=blueprint-definition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint-definition.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/blueprint-definition/blueprint-definition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAIzD,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,CAAC,UAAU,CAAC,OAAO,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC;IACzD,UAAU,CAAC,UAAU,CAAC,OAAO,MAAM,CAAC,UAAU,CAAC,mBAAmB,CAAC;CACpE,CAAC;AAEF,QAAA,MAAM,mBAAmB,6FAKxB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/blueprint-definition/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,mBAAmB,8FAAiF,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export * from './capabilities';
|
|
1
|
+
export * from './blueprint-definition';
|
|
2
|
+
export * from './operation-resolver';
|
|
3
|
+
export * from './react-surface';
|
|
4
|
+
export * from './transcriber';
|
|
6
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
|
+
export declare const OperationResolver: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Common").Capability.OperationResolver[]>>, Error>;
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-handler/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,iBAAiB,6JAA4E,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability, Common } from '@dxos/app-framework';
|
|
3
|
+
declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Common.Capability.OperationResolver[]>>, never, never>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=operation-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-handler.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-handler/operation-handler.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;;AAMzD,wBAYE"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
|
+
export declare const OperationResolver: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Common").Capability.OperationResolver[]>>, Error>;
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-resolver/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,iBAAiB,6JAA6E,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability, Common } from '@dxos/app-framework';
|
|
3
|
+
declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Common.Capability.OperationResolver[]>>, never, never>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=operation-resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-resolver.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/operation-resolver/operation-resolver.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;;AAMzD,wBAYE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,YAAY,sJAAmE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability, Common } from '@dxos/app-framework';
|
|
3
|
+
declare const _default: (props?: void | undefined) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<Common.Capability.ReactSurface>>, never, never>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=react-surface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/react-surface/react-surface.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;;AAOzD,wBAYE"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
|
+
export declare const Transcriber: Capability.LazyCapability<void, [Capability.Capability<Capability.InterfaceDef<import("../..").TranscriptionCapabilities.GetTranscriber>>, Capability.Capability<Capability.InterfaceDef<import("../..").TranscriptionCapabilities.GetTranscriptionManager>>], Error>;
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/transcriber/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,eAAO,MAAM,WAAW,uQAAgE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { TranscriptionCapabilities } from '../../types';
|
|
4
|
+
/**
|
|
5
|
+
* Records audio while user is speaking and transcribes it after user is done speaking.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: (props?: void | undefined) => Effect.Effect<[Capability.Capability<Capability.InterfaceDef<TranscriptionCapabilities.GetTranscriber>>, Capability.Capability<Capability.InterfaceDef<TranscriptionCapabilities.GetTranscriptionManager>>], Error, Capability.Service>;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=transcriber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transcriber.d.ts","sourceRoot":"","sources":["../../../../../src/capabilities/transcriber/transcriber.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAU,MAAM,qBAAqB,CAAC;AAIzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAoBxD;;GAEG;;AACH,wBAmDE"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type Space } from '@dxos/react-client/echo';
|
|
3
|
-
import { type Identity } from '@dxos/react-client/halo';
|
|
4
2
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
5
|
-
import { type Message } from '@dxos/types';
|
|
3
|
+
import { type Message, type Transcript } from '@dxos/types';
|
|
6
4
|
import { type SerializationModel } from '../../model';
|
|
7
|
-
import {
|
|
8
|
-
export
|
|
5
|
+
import { renderByline } from '../../util';
|
|
6
|
+
export { renderByline };
|
|
9
7
|
export type TranscriptViewProps = ThemedClassName<{
|
|
10
|
-
space?: Space;
|
|
11
8
|
transcript?: Transcript.Transcript;
|
|
12
9
|
model: SerializationModel<Message.Message>;
|
|
13
10
|
attendableId?: string;
|
|
@@ -16,5 +13,5 @@ export type TranscriptViewProps = ThemedClassName<{
|
|
|
16
13
|
/**
|
|
17
14
|
* Transcript component implemented using the editor.
|
|
18
15
|
*/
|
|
19
|
-
export declare const TranscriptView: ({ classNames,
|
|
16
|
+
export declare const TranscriptView: ({ classNames, transcript: object, model }: TranscriptViewProps) => React.JSX.Element;
|
|
20
17
|
//# sourceMappingURL=Transcript.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transcript.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcript/Transcript.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"Transcript.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcript/Transcript.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAa5D,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI1C,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;IAChD,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC;IACnC,KAAK,EAAE,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAE3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,2CAA2C,mBAAmB,sBA0B5F,CAAC"}
|
|
@@ -33,7 +33,8 @@ declare const meta: {
|
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
export default meta;
|
|
36
|
-
|
|
36
|
+
declare const DefaultStory: (props: StoryProps) => React.JSX.Element;
|
|
37
|
+
export declare const Default: StoryObj<typeof DefaultStory>;
|
|
37
38
|
export declare const Empty: StoryObj<typeof BasicStory>;
|
|
38
39
|
export declare const WithQueue: StoryObj<typeof QueueStoryWrapper>;
|
|
39
40
|
//# sourceMappingURL=Transcript.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transcript.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcript/Transcript.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"Transcript.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Transcript/Transcript.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAgD,MAAM,OAAO,CAAC;AAarE,OAAO,EAAE,KAAK,OAAO,EAAwB,MAAM,aAAa,CAAC;AAajE,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAoCxE,KAAK,UAAU,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,EAAE,CAAA;CAAE,GAAG,IAAI,CAAC,mBAAmB,EAAE,iBAAiB,GAAG,cAAc,CAAC,CAAC;AAEnH;;GAEG;AACH,QAAA,MAAM,UAAU,GAAI,yCAA8C,UAAU,sBAmD3E,CAAC;AAiCF;;GAEG;AACH,QAAA,MAAM,iBAAiB,yBAQtB,CAAC;AAEF,QAAA,MAAM,IAAI;;;;;;;yBApKY,CAAQ,IAAI,CAAE,EAAC,CAAC;;;;;;;;;;;CA4LtB,CAAC;AAEjB,eAAe,IAAI,CAAC;AAGpB,QAAA,MAAM,YAAY,GAAI,OAAO,UAAU,sBAStC,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,YAAY,CAMjD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,QAAQ,CAAC,OAAO,UAAU,CAM7C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,OAAO,iBAAiB,CAMxD,CAAC"}
|
|
@@ -5,15 +5,15 @@ import { type ThemedClassName } from '@dxos/react-ui';
|
|
|
5
5
|
/**
|
|
6
6
|
* Transcription block (from single speaker).
|
|
7
7
|
*/
|
|
8
|
-
declare const TranscriptBlock: Type.
|
|
9
|
-
id:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
8
|
+
declare const TranscriptBlock: Type.Obj<{
|
|
9
|
+
readonly id: string;
|
|
10
|
+
readonly segments: readonly {
|
|
11
|
+
readonly text: string;
|
|
12
|
+
readonly started: string;
|
|
13
|
+
}[];
|
|
14
|
+
readonly authorName?: string | undefined;
|
|
15
|
+
readonly authorHue?: string | undefined;
|
|
16
|
+
}, Schema.Struct.Fields>;
|
|
17
17
|
type TranscriptBlock = Schema.Schema.Type<typeof TranscriptBlock>;
|
|
18
18
|
export type TranscriptViewProps = ThemedClassName<{
|
|
19
19
|
blocks?: TranscriptBlock[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OldTranscript.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Transcript/deprecated/OldTranscript.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAc,EAAE,KAAK,EAAE,EAAsE,MAAM,OAAO,CAAC;AAG3G,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAc,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAyBlF;;GAEG;AACH,QAAA,MAAM,eAAe;;;;;;;;
|
|
1
|
+
{"version":3,"file":"OldTranscript.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Transcript/deprecated/OldTranscript.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAc,EAAE,KAAK,EAAE,EAAsE,MAAM,OAAO,CAAC;AAG3G,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAc,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAyBlF;;GAEG;AACH,QAAA,MAAM,eAAe;;;;;;;;wBAUpB,CAAC;AAEF,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC;AAkElE,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;IAChD,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,mBAAmB,CAqI9C,CAAC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
export declare const TranscriptionContainer: ({ transcript }: TranscriptionContainerProps) => React.JSX.Element;
|
|
2
|
+
import { type SurfaceComponentProps } from '@dxos/app-framework/react';
|
|
3
|
+
import { type Transcript } from '@dxos/types';
|
|
4
|
+
export type TranscriptionContainerProps = SurfaceComponentProps<Transcript.Transcript>;
|
|
5
|
+
export declare const TranscriptionContainer: ({ role, subject: transcript }: TranscriptionContainerProps) => React.JSX.Element;
|
|
8
6
|
export default TranscriptionContainer;
|
|
9
7
|
//# sourceMappingURL=TranscriptContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TranscriptContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/TranscriptContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TranscriptContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/TranscriptContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAIvE,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAO5D,MAAM,MAAM,2BAA2B,GAAG,qBAAqB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AAEvF,eAAO,MAAM,sBAAsB,GAAI,+BAA+B,2BAA2B,sBAYhG,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './Transcript';
|
|
2
2
|
export * from './TranscriptContainer';
|
|
3
|
-
export declare const TranscriptContainer: import("react").LazyExoticComponent<({ transcript }: import("./TranscriptContainer").TranscriptionContainerProps) => import("react").JSX.Element>;
|
|
3
|
+
export declare const TranscriptContainer: import("react").LazyExoticComponent<({ role, subject: transcript }: import("./TranscriptContainer").TranscriptionContainerProps) => import("react").JSX.Element>;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AAEtC,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AAEtC,eAAO,MAAM,mBAAmB,kKAA8C,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { type
|
|
3
|
+
import { type MediaStreamRecorderProps, type TranscriberProps } from '../../transcriber';
|
|
4
4
|
declare const AudioFile: ({ detectSpeaking, audioUrl, normalizeSentences, transcriberConfig, recorderConfig, audioConstraints, }: {
|
|
5
5
|
detectSpeaking?: boolean;
|
|
6
6
|
normalizeSentences?: boolean;
|
|
7
7
|
audioUrl: string;
|
|
8
|
-
transcriberConfig?:
|
|
9
|
-
recorderConfig?:
|
|
8
|
+
transcriberConfig?: TranscriberProps["config"];
|
|
9
|
+
recorderConfig?: MediaStreamRecorderProps["config"];
|
|
10
10
|
audioConstraints?: MediaTrackConstraints;
|
|
11
11
|
}) => React.JSX.Element;
|
|
12
12
|
declare const meta: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileTranscription.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/FileTranscription.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"FileTranscription.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/FileTranscription.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAA4D,MAAM,OAAO,CAAC;AAsBjF,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAOzF,QAAA,MAAM,SAAS,GAAI,wGAOhB;IACD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC/C,cAAc,CAAC,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IACpD,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;CAC1C,sBAsIA,CAAC;AAEF,QAAA,MAAM,IAAI;;;CA0BM,CAAC;AAEjB,eAAe,IAAI,CAAC;AAcpB,eAAO,MAAM,OAAO,EAAE,QAAQ,CAAC,OAAO,SAAS,CAU9C,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { type
|
|
3
|
+
import { type MediaStreamRecorderProps, type TranscriberProps } from '../../transcriber';
|
|
4
4
|
type StoryProps = {
|
|
5
5
|
detectSpeaking?: boolean;
|
|
6
|
-
transcriberConfig:
|
|
7
|
-
recorderConfig:
|
|
6
|
+
transcriberConfig: TranscriberProps['config'];
|
|
7
|
+
recorderConfig: MediaStreamRecorderProps['config'];
|
|
8
8
|
audioConstraints?: MediaTrackConstraints;
|
|
9
9
|
entityExtraction: 'none' | 'ner' | 'llm';
|
|
10
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MicrophoneTranscription.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/MicrophoneTranscription.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"MicrophoneTranscription.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/MicrophoneTranscription.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjE,OAAO,KAAoD,MAAM,OAAO,CAAC;AA4BzE,OAAO,EAAE,KAAK,wBAAwB,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAgBzF,KAAK,UAAU,GAAG;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAC9C,cAAc,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IACnD,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC,gBAAgB,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;CAC1C,CAAC;AAuIF,QAAA,MAAM,IAAI;;yGA/HP,UAAU;;CAyKwB,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAkBF,eAAO,MAAM,eAAe,EAAE,KAY7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TranscriptionStory.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/TranscriptionStory.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAc,EAAE,KAAK,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TranscriptionStory.d.ts","sourceRoot":"","sources":["../../../../../src/components/stories/TranscriptionStory.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAc,EAAE,KAAK,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAG3F,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGtD,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC;IAClC,KAAK,EAAE,kBAAkB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACnD,QAAQ,CAAC,EAAE,SAAS,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;CAC/C,CAoBA,CAAC"}
|
|
@@ -4,5 +4,5 @@ import { type ChunkRenderer, SerializationModel } from '../model';
|
|
|
4
4
|
/**
|
|
5
5
|
* Model adapter for a queue.
|
|
6
6
|
*/
|
|
7
|
-
export declare const useQueueModelAdapter: <T extends Obj.
|
|
7
|
+
export declare const useQueueModelAdapter: <T extends Obj.Unknown>(renderer: ChunkRenderer<T>, queue: Queue<T> | undefined, initialChunks?: T[]) => SerializationModel<T>;
|
|
8
8
|
//# sourceMappingURL=useQueueModelAdapter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useQueueModelAdapter.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useQueueModelAdapter.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,KAAK,aAAa,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"useQueueModelAdapter.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useQueueModelAdapter.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,EAAE,KAAK,aAAa,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,GAAG,CAAC,OAAO,EACxD,UAAU,aAAa,CAAC,CAAC,CAAC,EAC1B,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,EAC3B,gBAAe,CAAC,EAAO,KACtB,kBAAkB,CAAC,CAAC,CA+CtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTranscriber.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTranscriber.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"useTranscriber.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTranscriber.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAErD;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,sEAK5B,OAAO,CAAC,yBAAyB,CAAC,mBAAmB,CAAC,4BAwBxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEpD,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAE9B,cAAc,uBAAuB,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export declare const meta:
|
|
1
|
+
import { type Plugin } from '@dxos/app-framework';
|
|
2
|
+
export declare const meta: Plugin.Meta;
|
|
3
3
|
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,eAAO,MAAM,IAAI,EAAE,MAAM,CAAC,IAYzB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { Resource } from '@dxos/context';
|
|
|
2
2
|
import { type Queue } from '@dxos/echo-db';
|
|
3
3
|
import { type FunctionExecutor } from '@dxos/functions-runtime';
|
|
4
4
|
import { type Message } from '@dxos/types';
|
|
5
|
-
export type
|
|
5
|
+
export type SegmentsNormalizerProps = {
|
|
6
6
|
functionExecutor: FunctionExecutor;
|
|
7
7
|
queue: Queue<Message.Message>;
|
|
8
8
|
startingCursor: QueueCursor;
|
|
@@ -18,7 +18,7 @@ export declare class MessageNormalizer extends Resource {
|
|
|
18
18
|
private _messagesToProcess;
|
|
19
19
|
private _normalizationTask?;
|
|
20
20
|
private _lastProcessedMessageIds?;
|
|
21
|
-
constructor({ functionExecutor, queue, startingCursor }:
|
|
21
|
+
constructor({ functionExecutor, queue, startingCursor }: SegmentsNormalizerProps);
|
|
22
22
|
protected _open(): Promise<void>;
|
|
23
23
|
private _processMessages;
|
|
24
24
|
private _writeMessages;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-normalizer.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/message-normalizer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"message-normalizer.d.ts","sourceRoot":"","sources":["../../../../src/segments-normalization/message-normalizer.ts"],"names":[],"mappings":"AASA,OAAO,EAAkB,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAQ3C,MAAM,MAAM,uBAAuB,GAAG;IACpC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9B,cAAc,EAAE,WAAW,CAAC;CAC7B,CAAC;AAGF,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAGF,qBAAa,iBAAkB,SAAQ,QAAQ;IAC7C,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAmB;IACrD,OAAO,CAAC,MAAM,CAAyB;IACvC,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,kBAAkB,CAA4B;IACtD,OAAO,CAAC,kBAAkB,CAAC,CAAe;IAC1C,OAAO,CAAC,wBAAwB,CAAC,CAAW;gBAEhC,EAAE,gBAAgB,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE,uBAAuB;cAOvD,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;YAyBjC,gBAAgB;IAgC9B,OAAO,CAAC,cAAc;CAMvB"}
|