@dxos/plugin-transcription 0.8.4-main.bc674ce → 0.8.4-main.c351d160a8
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/TranscriptionContainer-5MFETUHZ.mjs +40 -0
- package/dist/lib/browser/TranscriptionContainer-5MFETUHZ.mjs.map +7 -0
- package/dist/lib/browser/blueprint-definition-ICUHRZXS.mjs +18 -0
- package/dist/lib/browser/blueprint-definition-ICUHRZXS.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +3 -3
- package/dist/lib/browser/{chunk-Q5OC3WVG.mjs → chunk-7D57BEI2.mjs} +8 -26
- package/dist/lib/browser/chunk-7D57BEI2.mjs.map +7 -0
- package/dist/lib/browser/{chunk-ZZF7ICVM.mjs → chunk-DCPLHPHH.mjs} +24 -26
- package/dist/lib/browser/chunk-DCPLHPHH.mjs.map +7 -0
- package/dist/lib/browser/chunk-KYI5GIQM.mjs +22 -0
- package/dist/lib/browser/chunk-KYI5GIQM.mjs.map +7 -0
- package/dist/lib/browser/{chunk-TKFU53OZ.mjs → chunk-QWIUIEWX.mjs} +2 -2
- package/dist/lib/browser/{chunk-ICM7JRCO.mjs → chunk-SLZXQVQU.mjs} +361 -391
- package/dist/lib/browser/chunk-SLZXQVQU.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +28 -30
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{operation-resolver-ZUWTU7C5.mjs → operation-resolver-PFR5PQTK.mjs} +5 -4
- package/dist/lib/browser/operation-resolver-PFR5PQTK.mjs.map +7 -0
- package/dist/lib/browser/react-surface-MISGR3BD.mjs +37 -0
- package/dist/lib/browser/react-surface-MISGR3BD.mjs.map +7 -0
- package/dist/lib/browser/{transcriber-EZZTUCPE.mjs → transcriber-GKFU347S.mjs} +7 -6
- package/dist/lib/browser/transcriber-GKFU347S.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +2 -1
- package/dist/lib/node-esm/TranscriptionContainer-3ZP67PX6.mjs +41 -0
- package/dist/lib/node-esm/TranscriptionContainer-3ZP67PX6.mjs.map +7 -0
- package/dist/lib/node-esm/{blueprint-definition-IOX35YUX.mjs → blueprint-definition-KYLTO7UH.mjs} +6 -6
- package/dist/lib/node-esm/blueprint-definition-KYLTO7UH.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +3 -3
- package/dist/lib/node-esm/chunk-5XJY5QP5.mjs +24 -0
- package/dist/lib/node-esm/chunk-5XJY5QP5.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-4BFY6P2D.mjs → chunk-6BWAFL5Z.mjs} +8 -26
- package/dist/lib/node-esm/chunk-6BWAFL5Z.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-EPC27WWV.mjs → chunk-LSWGXNVP.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-CWP22IHV.mjs → chunk-TRS6GDYW.mjs} +24 -26
- package/dist/lib/node-esm/chunk-TRS6GDYW.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-BX2AB7S7.mjs → chunk-WVSA6JHE.mjs} +361 -391
- package/dist/lib/node-esm/chunk-WVSA6JHE.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +28 -30
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{operation-resolver-Z72B4H2Q.mjs → operation-resolver-IZ7BRISJ.mjs} +5 -4
- package/dist/lib/node-esm/operation-resolver-IZ7BRISJ.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-BCAKAGCT.mjs +38 -0
- package/dist/lib/node-esm/react-surface-BCAKAGCT.mjs.map +7 -0
- package/dist/lib/node-esm/{transcriber-RGW3YYT4.mjs → transcriber-7BSCYWMV.mjs} +7 -6
- package/dist/lib/node-esm/transcriber-7BSCYWMV.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +2 -1
- package/dist/types/src/TranscriptionPlugin.d.ts.map +1 -1
- package/dist/types/src/blueprints/index.d.ts +1 -1
- package/dist/types/src/blueprints/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/transcription-blueprint.d.ts +3 -20
- package/dist/types/src/blueprints/transcription-blueprint.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +3 -6
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts +1 -1
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler/index.d.ts +1 -1
- package/dist/types/src/capabilities/operation-handler/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts +2 -2
- package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +2 -2
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +2 -2
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/transcriber/transcriber.d.ts +1 -1
- package/dist/types/src/capabilities/transcriber/transcriber.d.ts.map +1 -1
- package/dist/types/src/components/{Transcript/Transcript.d.ts → Transcription/Transcription.d.ts} +3 -3
- package/dist/types/src/components/Transcription/Transcription.d.ts.map +1 -0
- package/dist/types/src/components/{Transcript/Transcript.stories.d.ts → Transcription/Transcription.stories.d.ts} +3 -3
- package/dist/types/src/components/Transcription/Transcription.stories.d.ts.map +1 -0
- package/dist/types/src/components/Transcription/index.d.ts +2 -0
- package/dist/types/src/components/Transcription/index.d.ts.map +1 -0
- package/dist/types/src/components/{Transcript/transcript-extension.d.ts → Transcription/transcription-extension.d.ts} +3 -3
- package/dist/types/src/components/Transcription/transcription-extension.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +1 -3
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/{components/TranscriptContainer.d.ts → containers/TranscriptionContainer/TranscriptionContainer.d.ts} +3 -4
- package/dist/types/src/containers/TranscriptionContainer/TranscriptionContainer.d.ts.map +1 -0
- package/dist/types/src/containers/TranscriptionContainer/index.d.ts +3 -0
- package/dist/types/src/containers/TranscriptionContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +3 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/functions/index.d.ts +17 -2
- package/dist/types/src/functions/index.d.ts.map +1 -1
- package/dist/types/src/functions/open.d.ts +5 -1
- package/dist/types/src/functions/open.d.ts.map +1 -1
- package/dist/types/src/segments-normalization/normalization.d.ts +19 -6
- package/dist/types/src/segments-normalization/normalization.d.ts.map +1 -1
- package/dist/types/src/types/TranscriptAction.d.ts +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +65 -64
- package/src/TranscriptionPlugin.tsx +14 -11
- package/src/blueprints/index.ts +1 -1
- package/src/blueprints/transcription-blueprint.ts +14 -6
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +6 -12
- package/src/capabilities/operation-handler/operation-handler.ts +2 -2
- package/src/capabilities/operation-resolver/operation-resolver.ts +2 -2
- package/src/capabilities/react-surface/react-surface.tsx +11 -8
- package/src/capabilities/transcriber/transcriber.ts +3 -3
- package/src/components/{Transcript/Transcript.stories.tsx → Transcription/Transcription.stories.tsx} +8 -8
- package/src/components/{Transcript/Transcript.tsx → Transcription/Transcription.tsx} +5 -8
- package/src/components/{Transcript → Transcription}/index.ts +1 -1
- package/src/components/{Transcript/transcript-extension.ts → Transcription/transcription-extension.ts} +4 -4
- package/src/components/index.ts +1 -6
- package/src/components/stories/FileTranscription.stories.tsx +4 -4
- package/src/components/stories/KeyWordRecognition.stories.tsx +4 -4
- package/src/components/stories/MicrophoneTranscription.stories.tsx +4 -4
- package/src/components/stories/TranscriptionStory.tsx +3 -3
- package/src/{components/TranscriptContainer.tsx → containers/TranscriptionContainer/TranscriptionContainer.tsx} +11 -13
- package/src/containers/TranscriptionContainer/index.ts +7 -0
- package/src/containers/index.ts +7 -0
- package/src/functions/index.ts +7 -2
- package/src/functions/open.ts +6 -8
- package/src/functions/summarize.ts +1 -1
- package/src/hooks/useTranscriber.ts +1 -1
- package/src/meta.ts +1 -1
- package/src/segments-normalization/normalization.test.ts +1 -1
- package/src/testing/testing.ts +1 -1
- package/src/types/TranscriptAction.ts +2 -2
- package/src/types/capabilities.ts +2 -2
- package/dist/lib/browser/TranscriptContainer-6EHKWVS4.mjs +0 -12
- package/dist/lib/browser/TranscriptContainer-6EHKWVS4.mjs.map +0 -7
- package/dist/lib/browser/blueprint-definition-FTRNMLJZ.mjs +0 -18
- package/dist/lib/browser/blueprint-definition-FTRNMLJZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-ICM7JRCO.mjs.map +0 -7
- package/dist/lib/browser/chunk-Q5OC3WVG.mjs.map +0 -7
- package/dist/lib/browser/chunk-SYGEFDWO.mjs +0 -8
- package/dist/lib/browser/chunk-SYGEFDWO.mjs.map +0 -7
- package/dist/lib/browser/chunk-ZZF7ICVM.mjs.map +0 -7
- package/dist/lib/browser/operation-resolver-ZUWTU7C5.mjs.map +0 -7
- package/dist/lib/browser/react-surface-ZXH5267I.mjs +0 -34
- package/dist/lib/browser/react-surface-ZXH5267I.mjs.map +0 -7
- package/dist/lib/browser/transcriber-EZZTUCPE.mjs.map +0 -7
- package/dist/lib/node-esm/TranscriptContainer-5YT5W73I.mjs +0 -13
- package/dist/lib/node-esm/TranscriptContainer-5YT5W73I.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-IOX35YUX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-4BFY6P2D.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BX2AB7S7.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-CWP22IHV.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GVAVEVZ6.mjs +0 -10
- package/dist/lib/node-esm/chunk-GVAVEVZ6.mjs.map +0 -7
- package/dist/lib/node-esm/operation-resolver-Z72B4H2Q.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-6GUBZX2V.mjs +0 -35
- package/dist/lib/node-esm/react-surface-6GUBZX2V.mjs.map +0 -7
- package/dist/lib/node-esm/transcriber-RGW3YYT4.mjs.map +0 -7
- package/dist/types/src/components/Transcript/Transcript.d.ts.map +0 -1
- package/dist/types/src/components/Transcript/Transcript.stories.d.ts.map +0 -1
- package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts +0 -28
- package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts.map +0 -1
- package/dist/types/src/components/Transcript/index.d.ts +0 -2
- package/dist/types/src/components/Transcript/index.d.ts.map +0 -1
- package/dist/types/src/components/Transcript/transcript-extension.d.ts.map +0 -1
- package/dist/types/src/components/TranscriptContainer.d.ts.map +0 -1
- package/src/components/Transcript/deprecated/OldTranscript.tsx +0 -260
- /package/dist/lib/browser/{chunk-TKFU53OZ.mjs.map → chunk-QWIUIEWX.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-EPC27WWV.mjs.map → chunk-LSWGXNVP.mjs.map} +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Transcription,
|
|
3
|
+
useQueueModelAdapter
|
|
4
|
+
} from "./chunk-SLZXQVQU.mjs";
|
|
5
|
+
import {
|
|
6
|
+
renderByline
|
|
7
|
+
} from "./chunk-HOOPZ7EM.mjs";
|
|
8
|
+
import "./chunk-7D57BEI2.mjs";
|
|
9
|
+
import "./chunk-KYI5GIQM.mjs";
|
|
10
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
11
|
+
|
|
12
|
+
// src/containers/TranscriptionContainer/TranscriptionContainer.tsx
|
|
13
|
+
import React from "react";
|
|
14
|
+
import { Obj } from "@dxos/echo";
|
|
15
|
+
import { useMembers, useQueue } from "@dxos/react-client/echo";
|
|
16
|
+
import { Panel } from "@dxos/react-ui";
|
|
17
|
+
var TranscriptionContainer = ({ role, subject: transcript, attendableId }) => {
|
|
18
|
+
const db = Obj.getDatabase(transcript);
|
|
19
|
+
const members = useMembers(db?.spaceId).map((member) => member.identity);
|
|
20
|
+
const queue = useQueue(transcript.queue.dxn, {
|
|
21
|
+
pollInterval: 1e3
|
|
22
|
+
});
|
|
23
|
+
const model = useQueueModelAdapter(renderByline(members), queue);
|
|
24
|
+
return /* @__PURE__ */ React.createElement(Panel.Root, {
|
|
25
|
+
role
|
|
26
|
+
}, /* @__PURE__ */ React.createElement(Panel.Content, {
|
|
27
|
+
asChild: true
|
|
28
|
+
}, /* @__PURE__ */ React.createElement(Transcription, {
|
|
29
|
+
attendableId,
|
|
30
|
+
model,
|
|
31
|
+
transcript
|
|
32
|
+
})));
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// src/containers/TranscriptionContainer/index.ts
|
|
36
|
+
var TranscriptionContainer_default = TranscriptionContainer;
|
|
37
|
+
export {
|
|
38
|
+
TranscriptionContainer_default as default
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=TranscriptionContainer-5MFETUHZ.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/containers/TranscriptionContainer/TranscriptionContainer.tsx", "../../../src/containers/TranscriptionContainer/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type SurfaceComponentProps } from '@dxos/app-toolkit/ui';\nimport { Obj } from '@dxos/echo';\nimport { useMembers, useQueue } from '@dxos/react-client/echo';\nimport { Panel } from '@dxos/react-ui';\nimport { type Message, type Transcript } from '@dxos/types';\n\nimport { Transcription } from '../../components';\nimport { useQueueModelAdapter } from '../../hooks';\nimport { renderByline } from '../../util';\n\nexport type TranscriptionContainerProps = SurfaceComponentProps<Transcript.Transcript>;\n\nexport const TranscriptionContainer = ({ role, subject: transcript, attendableId }: TranscriptionContainerProps) => {\n const db = Obj.getDatabase(transcript);\n const members = useMembers(db?.spaceId).map((member) => member.identity);\n const queue = useQueue<Message.Message>(transcript.queue.dxn, { pollInterval: 1_000 });\n const model = useQueueModelAdapter(renderByline(members), queue);\n\n return (\n <Panel.Root role={role}>\n <Panel.Content asChild>\n <Transcription attendableId={attendableId} model={model} transcript={transcript} />\n </Panel.Content>\n </Panel.Root>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { TranscriptionContainer } from './TranscriptionContainer';\n\nexport default TranscriptionContainer;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;AAIA,OAAOA,WAAW;AAGlB,SAASC,WAAW;AACpB,SAASC,YAAYC,gBAAgB;AACrC,SAASC,aAAa;AASf,IAAMC,yBAAyB,CAAC,EAAEC,MAAMC,SAASC,YAAYC,aAAY,MAA+B;AAC7G,QAAMC,KAAKC,IAAIC,YAAYJ,UAAAA;AAC3B,QAAMK,UAAUC,WAAWJ,IAAIK,OAAAA,EAASC,IAAI,CAACC,WAAWA,OAAOC,QAAQ;AACvE,QAAMC,QAAQC,SAA0BZ,WAAWW,MAAME,KAAK;IAAEC,cAAc;EAAM,CAAA;AACpF,QAAMC,QAAQC,qBAAqBC,aAAaZ,OAAAA,GAAUM,KAAAA;AAE1D,SACE,sBAAA,cAACO,MAAMC,MAAI;IAACrB;KACV,sBAAA,cAACoB,MAAME,SAAO;IAACC,SAAAA;KACb,sBAAA,cAACC,eAAAA;IAAcrB;IAA4Bc;IAAcf;;AAIjE;;;ACzBA,IAAA,iCAAeuB;",
|
|
6
|
+
"names": ["React", "Obj", "useMembers", "useQueue", "Panel", "TranscriptionContainer", "role", "subject", "transcript", "attendableId", "db", "Obj", "getDatabase", "members", "useMembers", "spaceId", "map", "member", "identity", "queue", "useQueue", "dxn", "pollInterval", "model", "useQueueModelAdapter", "renderByline", "Panel", "Root", "Content", "asChild", "Transcription", "TranscriptionContainer"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
transcription_blueprint_default
|
|
3
|
+
} from "./chunk-DCPLHPHH.mjs";
|
|
4
|
+
import "./chunk-HOOPZ7EM.mjs";
|
|
5
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
6
|
+
|
|
7
|
+
// src/capabilities/blueprint-definition/blueprint-definition.ts
|
|
8
|
+
import * as Effect from "effect/Effect";
|
|
9
|
+
import { Capability } from "@dxos/app-framework";
|
|
10
|
+
import { AppCapabilities } from "@dxos/app-toolkit";
|
|
11
|
+
var blueprintDefinition = Capability.makeModule(() => Effect.succeed([
|
|
12
|
+
Capability.contributes(AppCapabilities.BlueprintDefinition, transcription_blueprint_default)
|
|
13
|
+
]));
|
|
14
|
+
var blueprint_definition_default = blueprintDefinition;
|
|
15
|
+
export {
|
|
16
|
+
blueprint_definition_default as default
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=blueprint-definition-ICUHRZXS.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/blueprint-definition/blueprint-definition.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities } from '@dxos/app-toolkit';\n\nimport { TranscriptionBlueprint } from '../../blueprints';\n\nconst blueprintDefinition = Capability.makeModule<\n [],\n Capability.Capability<typeof AppCapabilities.BlueprintDefinition>[]\n>(() => Effect.succeed([Capability.contributes(AppCapabilities.BlueprintDefinition, TranscriptionBlueprint)]));\n\nexport default blueprintDefinition;\n"],
|
|
5
|
+
"mappings": ";;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAIhC,IAAMC,sBAAsBC,WAAWC,WAGrC,MAAaC,eAAQ;EAACF,WAAWG,YAAYC,gBAAgBC,qBAAqBC,+BAAAA;CAAwB,CAAA;AAE5G,IAAA,+BAAeP;",
|
|
6
|
+
"names": ["Effect", "Capability", "AppCapabilities", "blueprintDefinition", "Capability", "makeModule", "succeed", "contributes", "AppCapabilities", "BlueprintDefinition", "TranscriptionBlueprint"]
|
|
7
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunk-
|
|
2
|
+
transcription_blueprint_default
|
|
3
|
+
} from "../chunk-DCPLHPHH.mjs";
|
|
4
4
|
import "../chunk-HOOPZ7EM.mjs";
|
|
5
5
|
import "../chunk-J5LGTIGS.mjs";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
transcription_blueprint_default as TranscriptionBlueprint
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,32 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
meta
|
|
3
|
+
} from "./chunk-KYI5GIQM.mjs";
|
|
1
4
|
import {
|
|
2
5
|
__export
|
|
3
6
|
} from "./chunk-J5LGTIGS.mjs";
|
|
4
7
|
|
|
5
8
|
// src/types/capabilities.ts
|
|
6
9
|
import { Capability } from "@dxos/app-framework";
|
|
7
|
-
|
|
8
|
-
// src/meta.ts
|
|
9
|
-
import { trim } from "@dxos/util";
|
|
10
|
-
var meta = {
|
|
11
|
-
id: "dxos.org/plugin/transcription",
|
|
12
|
-
name: "Transcription",
|
|
13
|
-
description: trim`
|
|
14
|
-
Real-time voice-to-text transcription service for capturing spoken content.
|
|
15
|
-
Convert audio input into searchable text that integrates seamlessly with notes and documents.
|
|
16
|
-
`,
|
|
17
|
-
icon: "ph--microphone--regular",
|
|
18
|
-
iconHue: "sky",
|
|
19
|
-
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-transcription",
|
|
20
|
-
tags: [
|
|
21
|
-
"labs"
|
|
22
|
-
],
|
|
23
|
-
screenshots: []
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
// src/types/capabilities.ts
|
|
27
10
|
(function(TranscriptionCapabilities2) {
|
|
28
|
-
TranscriptionCapabilities2.Transcriber = Capability.make(`${meta.id}
|
|
29
|
-
TranscriptionCapabilities2.TranscriptionManager = Capability.make(`${meta.id}
|
|
11
|
+
TranscriptionCapabilities2.Transcriber = Capability.make(`${meta.id}.capability.transcriber`);
|
|
12
|
+
TranscriptionCapabilities2.TranscriptionManager = Capability.make(`${meta.id}.capability.transcription-manager`);
|
|
30
13
|
})(TranscriptionCapabilities || (TranscriptionCapabilities = {}));
|
|
31
14
|
var TranscriptionCapabilities;
|
|
32
15
|
|
|
@@ -39,11 +22,11 @@ import * as Schema from "effect/Schema";
|
|
|
39
22
|
import { SpaceSchema } from "@dxos/client/echo";
|
|
40
23
|
import { Operation } from "@dxos/operation";
|
|
41
24
|
import { Transcript } from "@dxos/types";
|
|
42
|
-
var TRANSCRIPT_OPERATION = `${meta.id}
|
|
25
|
+
var TRANSCRIPT_OPERATION = `${meta.id}.operation`;
|
|
43
26
|
(function(TranscriptOperation2) {
|
|
44
27
|
TranscriptOperation2.Create = Operation.make({
|
|
45
28
|
meta: {
|
|
46
|
-
key: `${TRANSCRIPT_OPERATION}
|
|
29
|
+
key: `${TRANSCRIPT_OPERATION}.create`,
|
|
47
30
|
name: "Create Transcript"
|
|
48
31
|
},
|
|
49
32
|
schema: {
|
|
@@ -63,10 +46,9 @@ var TranscriptOperation;
|
|
|
63
46
|
var TRANSCRIPTION_URL = "https://calls-service.dxos.workers.dev";
|
|
64
47
|
|
|
65
48
|
export {
|
|
66
|
-
meta,
|
|
67
49
|
TranscriptionCapabilities,
|
|
68
50
|
TranscriptOperation,
|
|
69
51
|
TranscriptAction_exports,
|
|
70
52
|
TRANSCRIPTION_URL
|
|
71
53
|
};
|
|
72
|
-
//# sourceMappingURL=chunk-
|
|
54
|
+
//# sourceMappingURL=chunk-7D57BEI2.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/capabilities.ts", "../../../src/types/TranscriptAction.ts", "../../../src/types/types.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nimport { meta } from '../meta';\nimport {\n type MediaStreamRecorderProps,\n type Transcriber,\n type TranscriberProps,\n type TranscriptMessageEnricher,\n type TranscriptionManager,\n} from '../transcriber';\n\nexport namespace TranscriptionCapabilities {\n export type GetTranscriberProps = {\n audioStreamTrack: MediaStreamTrack;\n recorderConfig?: Partial<MediaStreamRecorderProps['config']>;\n transcriberConfig?: Partial<TranscriberProps['config']>;\n onSegments: TranscriberProps['onSegments'];\n };\n export type GetTranscriber = (props: GetTranscriberProps) => Transcriber;\n export const Transcriber = Capability.make<GetTranscriber>(`${meta.id}.capability.transcriber`);\n\n export type GetTranscriptionManagerProps = {\n messageEnricher?: TranscriptMessageEnricher;\n };\n export type GetTranscriptionManager = (props: GetTranscriptionManagerProps) => TranscriptionManager;\n export const TranscriptionManager = Capability.make<GetTranscriptionManager>(\n `${meta.id}.capability.transcription-manager`,\n );\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { SpaceSchema } from '@dxos/client/echo';\nimport { Operation } from '@dxos/operation';\nimport { Transcript } from '@dxos/types';\n\nimport { meta } from '../meta';\n\n//\n// Operations\n//\n\nconst TRANSCRIPT_OPERATION = `${meta.id}.operation`;\n\nexport namespace TranscriptOperation {\n export const Create = Operation.make({\n meta: { key: `${TRANSCRIPT_OPERATION}.create`, name: 'Create Transcript' },\n schema: {\n input: Schema.Struct({\n name: Schema.optional(Schema.String),\n space: SpaceSchema,\n }),\n output: Schema.Struct({\n object: Transcript.Transcript,\n }),\n },\n });\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\n/**\n * Endpoint to the calls service.\n */\n// TODO(burdon): Reconfigure/move.\nexport const TRANSCRIPTION_URL = 'https://calls-service.dxos.workers.dev';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,SAASA,kBAAkB;UAWVC,4BAAAA;6BAQFC,cAAcC,WAAWC,KAAqB,GAAGC,KAAKC,EAAE,yBAAyB;6BAMjFC,uBAAuBJ,WAAWC,KAC7C,GAAGC,KAAKC,EAAE,mCAAmC;AAEjD,GAjBiBL,8BAAAA,4BAAAA,CAAAA,EAAAA;;;;ACfjB;;;;AAIA,YAAYO,YAAY;AAExB,SAASC,mBAAmB;AAC5B,SAASC,iBAAiB;AAC1B,SAASC,kBAAkB;AAQ3B,IAAMC,uBAAuB,GAAGC,KAAKC,EAAE;UAEtBC,sBAAAA;uBACFC,SAASC,UAAUC,KAAK;IACnCL,MAAM;MAAEM,KAAK,GAAGP,oBAAAA;MAA+BQ,MAAM;IAAoB;IACzEC,QAAQ;MACNC,OAAcC,cAAO;QACnBH,MAAaI,gBAAgBC,aAAM;QACnCC,OAAOC;MACT,CAAA;MACAC,QAAeL,cAAO;QACpBM,QAAQC,WAAWA;MACrB,CAAA;IACF;EACF,CAAA;AACF,GAbiBf,wBAAAA,sBAAAA,CAAAA,EAAAA;;;;ACVV,IAAMgB,oBAAoB;",
|
|
6
|
+
"names": ["Capability", "TranscriptionCapabilities", "Transcriber", "Capability", "make", "meta", "id", "TranscriptionManager", "Schema", "SpaceSchema", "Operation", "Transcript", "TRANSCRIPT_OPERATION", "meta", "id", "TranscriptOperation", "Create", "Operation", "make", "key", "name", "schema", "input", "Struct", "optional", "String", "space", "SpaceSchema", "output", "object", "Transcript", "TRANSCRIPTION_URL"]
|
|
7
|
+
}
|
|
@@ -1,43 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderByline
|
|
3
3
|
} from "./chunk-HOOPZ7EM.mjs";
|
|
4
|
-
import {
|
|
5
|
-
__export
|
|
6
|
-
} from "./chunk-J5LGTIGS.mjs";
|
|
7
4
|
|
|
8
5
|
// src/blueprints/transcription-blueprint.ts
|
|
9
|
-
var transcription_blueprint_exports = {};
|
|
10
|
-
__export(transcription_blueprint_exports, {
|
|
11
|
-
Key: () => Key,
|
|
12
|
-
functions: () => functions,
|
|
13
|
-
make: () => make
|
|
14
|
-
});
|
|
15
6
|
import { Blueprint, Template } from "@dxos/blueprints";
|
|
16
7
|
import { trim as trim2 } from "@dxos/util";
|
|
17
8
|
|
|
18
9
|
// src/functions/open.ts
|
|
19
10
|
import * as Effect from "effect/Effect";
|
|
20
11
|
import * as Schema from "effect/Schema";
|
|
21
|
-
import {
|
|
22
|
-
import { Obj } from "@dxos/echo";
|
|
23
|
-
import { Database } from "@dxos/echo";
|
|
12
|
+
import { Database, Obj, Ref } from "@dxos/echo";
|
|
24
13
|
import { QueueService, defineFunction } from "@dxos/functions";
|
|
25
14
|
import { Message, Transcript } from "@dxos/types";
|
|
26
15
|
var open_default = defineFunction({
|
|
27
|
-
key: "dxos.
|
|
16
|
+
key: "org.dxos.function.transcription.open",
|
|
28
17
|
name: "Open",
|
|
29
18
|
description: "Opens and reads the contents of a transcription object.",
|
|
30
19
|
inputSchema: Schema.Struct({
|
|
31
|
-
|
|
20
|
+
transcript: Ref.Ref(Transcript.Transcript).annotations({
|
|
32
21
|
description: "The ID of the transcription object."
|
|
33
22
|
})
|
|
34
23
|
}),
|
|
35
24
|
outputSchema: Schema.Struct({
|
|
36
25
|
content: Schema.String
|
|
37
26
|
}),
|
|
38
|
-
handler: Effect.fn(function* ({ data: {
|
|
39
|
-
const
|
|
40
|
-
const { dxn } = yield* Effect.promise(() =>
|
|
27
|
+
handler: Effect.fn(function* ({ data: { transcript } }) {
|
|
28
|
+
const transcriptObj = yield* Database.load(transcript);
|
|
29
|
+
const { dxn } = yield* Effect.promise(() => transcriptObj.queue.load());
|
|
41
30
|
const queue = yield* QueueService.getQueue(dxn);
|
|
42
31
|
yield* Effect.promise(() => queue?.queryObjects());
|
|
43
32
|
const content = queue?.objects.filter((message) => Obj.instanceOf(Message.Message, message)).flatMap((message, index) => renderByline([])(message, index)).join("\n\n");
|
|
@@ -59,7 +48,7 @@ import { AiSession, GenerationObserver } from "@dxos/assistant";
|
|
|
59
48
|
import { TracingService, defineFunction as defineFunction2 } from "@dxos/functions";
|
|
60
49
|
import { trim } from "@dxos/util";
|
|
61
50
|
var summarize_default = defineFunction2({
|
|
62
|
-
key: "dxos.
|
|
51
|
+
key: "org.dxos.function.transcription.summarize",
|
|
63
52
|
name: "Summarize",
|
|
64
53
|
description: "Summarize a transcript of a meeting.",
|
|
65
54
|
inputSchema: Schema2.Struct({
|
|
@@ -125,14 +114,17 @@ var systemPrompt = trim`
|
|
|
125
114
|
If no actionable tasks are found, omit this tasks section.
|
|
126
115
|
`;
|
|
127
116
|
|
|
117
|
+
// src/functions/index.ts
|
|
118
|
+
var TranscriptionFunctions = {
|
|
119
|
+
Open: open_default,
|
|
120
|
+
Summarize: summarize_default
|
|
121
|
+
};
|
|
122
|
+
|
|
128
123
|
// src/blueprints/transcription-blueprint.ts
|
|
129
|
-
var
|
|
130
|
-
|
|
131
|
-
summarize_default
|
|
132
|
-
];
|
|
133
|
-
var Key = "dxos.org/blueprint/transcription";
|
|
124
|
+
var BLUEPRINT_KEY = "org.dxos.blueprint.transcription";
|
|
125
|
+
var functions = Object.values(TranscriptionFunctions);
|
|
134
126
|
var make = () => Blueprint.make({
|
|
135
|
-
key:
|
|
127
|
+
key: BLUEPRINT_KEY,
|
|
136
128
|
name: "Transcription",
|
|
137
129
|
tools: Blueprint.toolDefinitions({
|
|
138
130
|
functions
|
|
@@ -143,8 +135,14 @@ var make = () => Blueprint.make({
|
|
|
143
135
|
`
|
|
144
136
|
})
|
|
145
137
|
});
|
|
138
|
+
var blueprint = {
|
|
139
|
+
key: BLUEPRINT_KEY,
|
|
140
|
+
functions,
|
|
141
|
+
make
|
|
142
|
+
};
|
|
143
|
+
var transcription_blueprint_default = blueprint;
|
|
146
144
|
|
|
147
145
|
export {
|
|
148
|
-
|
|
146
|
+
transcription_blueprint_default
|
|
149
147
|
};
|
|
150
|
-
//# sourceMappingURL=chunk-
|
|
148
|
+
//# sourceMappingURL=chunk-DCPLHPHH.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/transcription-blueprint.ts", "../../../src/functions/open.ts", "../../../src/functions/summarize.ts", "../../../src/functions/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint, Template } from '@dxos/blueprints';\nimport { trim } from '@dxos/util';\n\nimport { TranscriptionFunctions } from '../functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.transcription';\n\nconst functions = Object.values(TranscriptionFunctions);\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Transcription',\n tools: Blueprint.toolDefinitions({ functions }),\n instructions: Template.make({\n source: trim`\n You can open and summarize a meeting transcript.\n `,\n }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n functions,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Schema from 'effect/Schema';\n\nimport { Database, Obj, Ref } from '@dxos/echo';\nimport { QueueService, defineFunction } from '@dxos/functions';\nimport { Message, Transcript } from '@dxos/types';\n\nimport { renderByline } from '../util';\n\nexport default defineFunction({\n key: 'org.dxos.function.transcription.open',\n name: 'Open',\n description: 'Opens and reads the contents of a transcription object.',\n inputSchema: Schema.Struct({\n transcript: Ref.Ref(Transcript.Transcript).annotations({\n description: 'The ID of the transcription object.',\n }),\n }),\n outputSchema: Schema.Struct({\n content: Schema.String,\n }),\n handler: Effect.fn(function* ({ data: { transcript } }) {\n const transcriptObj = yield* Database.load(transcript);\n const { dxn } = yield* Effect.promise(() => transcriptObj.queue.load());\n const queue = yield* QueueService.getQueue(dxn);\n yield* Effect.promise(() => queue?.queryObjects());\n const content = queue?.objects\n .filter((message) => Obj.instanceOf(Message.Message, message))\n .flatMap((message, index) => renderByline([])(message, index))\n .join('\\n\\n');\n return { content };\n }),\n});\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Array from 'effect/Array';\nimport * as Effect from 'effect/Effect';\nimport * as Function from 'effect/Function';\nimport * as Layer from 'effect/Layer';\nimport * as Option from 'effect/Option';\nimport * as Schema from 'effect/Schema';\n\nimport { AiService, ConsolePrinter, ToolExecutionService, ToolResolverService } from '@dxos/ai';\nimport { AiSession, GenerationObserver } from '@dxos/assistant';\nimport { TracingService, defineFunction } from '@dxos/functions';\nimport { trim } from '@dxos/util';\n\n/**\n * Summarize a transcript of a meeting.\n */\nexport default defineFunction({\n key: 'org.dxos.function.transcription.summarize',\n name: 'Summarize',\n description: 'Summarize a transcript of a meeting.',\n inputSchema: Schema.Struct({\n transcript: Schema.String.annotations({\n description: 'The transcript of the meeting.',\n }),\n notes: Schema.optional(Schema.String).annotations({\n description: 'Additional notes from the participants.',\n }),\n }),\n outputSchema: Schema.Struct({\n summary: Schema.String.annotations({\n description: 'The summary of the transcript.',\n }),\n }),\n handler: Effect.fnUntraced(\n function* ({ data: { transcript, notes } }) {\n const result = yield* new AiSession().run({\n prompt: `Transcript: ${transcript}\\n\\nNotes: ${notes}`,\n history: [],\n system: systemPrompt,\n observer: GenerationObserver.fromPrinter(new ConsolePrinter({ tag: 'summarize' })),\n });\n\n const summary = Function.pipe(\n result,\n Array.findLast((msg) => msg.sender.role === 'assistant' && msg.blocks.some((block) => block._tag === 'text')),\n Option.flatMap((msg) =>\n Function.pipe(\n msg.blocks,\n Array.findLast((block) => block._tag === 'text'),\n Option.map((block) => block.text),\n ),\n ),\n Option.getOrThrowWith(() => new Error('No summary found')),\n );\n\n return { summary };\n },\n Effect.provide(\n Layer.mergeAll(\n AiService.model('@anthropic/claude-sonnet-4-0'),\n ToolResolverService.layerEmpty,\n ToolExecutionService.layerEmpty,\n TracingService.layerNoop,\n ),\n ),\n ),\n});\n\nconst systemPrompt = trim`\n You are a helpful assistant that summarizes transcripts of meetings.\n\n # Goal\n Create a markdown summary of the meeting transcript with text notes provided.\n Notes are very important so make sure to include them in the summary if they contain meaningful information.\n\n # Formatting\n - Format the summary as a markdown document without extra comments like \"Here is the summary of the transcript:\".\n - Use markdown formatting for headings and bullet points.\n - Format the summary as a list of key points and takeaways.\n - All names of people should be in bold.\n\n # Note Taking\n - Correlate items in the summary with the person of origin to build a coherent narrative.\n - Include short quotes verbatim where appropriate. Especially when concerned with design decisions and problem descriptions.\n\n # Tasks\n At the end of the summary include tasks.\n Extract only the tasks that are:\n - Directly actionable.\n - Clearly assigned to a person or team (or can easily be inferred).\n - Strongly implied by the conversation and/or user note (no speculative tasks).\n - Specific enough that someone reading them would know exactly what to do next.\n\n Format all tasks as markdown checkboxes using the syntax:\n - [ ] Task description.\n\n Additional information can be included (indented).\n\n If no actionable tasks are found, omit this tasks section.\n`;\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport Open from './open';\nimport Summarize from './summarize';\n\nexport const TranscriptionFunctions = {\n Open,\n Summarize,\n};\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["Blueprint", "Template", "trim", "Effect", "Schema", "Database", "Obj", "Ref", "QueueService", "defineFunction", "Message", "Transcript", "defineFunction", "key", "name", "description", "inputSchema", "Struct", "transcript", "Ref", "Transcript", "annotations", "outputSchema", "content", "String", "handler", "fn", "data", "transcriptObj", "Database", "load", "dxn", "promise", "queue", "QueueService", "getQueue", "queryObjects", "objects", "filter", "message", "Obj", "instanceOf", "Message", "flatMap", "index", "renderByline", "join", "Array", "Effect", "Function", "Layer", "Option", "Schema", "AiService", "ConsolePrinter", "ToolExecutionService", "ToolResolverService", "AiSession", "GenerationObserver", "TracingService", "defineFunction", "trim", "defineFunction", "key", "name", "description", "inputSchema", "Struct", "transcript", "String", "annotations", "notes", "optional", "outputSchema", "summary", "handler", "fnUntraced", "data", "result", "AiSession", "run", "prompt", "history", "system", "systemPrompt", "observer", "GenerationObserver", "fromPrinter", "ConsolePrinter", "tag", "pipe", "findLast", "msg", "sender", "role", "blocks", "some", "block", "_tag", "flatMap", "map", "text", "getOrThrowWith", "Error", "provide", "mergeAll", "AiService", "model", "ToolResolverService", "layerEmpty", "ToolExecutionService", "TracingService", "layerNoop", "trim", "TranscriptionFunctions", "Open", "Summarize", "BLUEPRINT_KEY", "functions", "Object", "values", "TranscriptionFunctions", "make", "Blueprint", "key", "name", "tools", "toolDefinitions", "instructions", "Template", "source", "trim", "blueprint"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/meta.ts
|
|
2
|
+
import { trim } from "@dxos/util";
|
|
3
|
+
var meta = {
|
|
4
|
+
id: "org.dxos.plugin.transcription",
|
|
5
|
+
name: "Transcription",
|
|
6
|
+
description: trim`
|
|
7
|
+
Real-time voice-to-text transcription service for capturing spoken content.
|
|
8
|
+
Convert audio input into searchable text that integrates seamlessly with notes and documents.
|
|
9
|
+
`,
|
|
10
|
+
icon: "ph--microphone--regular",
|
|
11
|
+
iconHue: "sky",
|
|
12
|
+
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-transcription",
|
|
13
|
+
tags: [
|
|
14
|
+
"labs"
|
|
15
|
+
],
|
|
16
|
+
screenshots: []
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
meta
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=chunk-KYI5GIQM.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.transcription',\n name: 'Transcription',\n description: trim`\n Real-time voice-to-text transcription service for capturing spoken content.\n Convert audio input into searchable text that integrates seamlessly with notes and documents.\n `,\n icon: 'ph--microphone--regular',\n iconHue: 'sky',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-transcription',\n tags: ['labs'],\n screenshots: [],\n};\n"],
|
|
5
|
+
"mappings": ";AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;EACNC,SAAS;EACTC,QAAQ;EACRC,MAAM;IAAC;;EACPC,aAAa,CAAA;AACf;",
|
|
6
|
+
"names": ["trim", "meta", "id", "name", "description", "trim", "icon", "iconHue", "source", "tags", "screenshots"]
|
|
7
|
+
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-HOOPZ7EM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
TRANSCRIPTION_URL
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7D57BEI2.mjs";
|
|
7
7
|
|
|
8
8
|
// src/transcriber/media-stream-recorder.ts
|
|
9
9
|
import { MediaRecorder, register } from "extendable-media-recorder";
|
|
@@ -457,4 +457,4 @@ export {
|
|
|
457
457
|
Transcriber,
|
|
458
458
|
TranscriptionManager
|
|
459
459
|
};
|
|
460
|
-
//# sourceMappingURL=chunk-
|
|
460
|
+
//# sourceMappingURL=chunk-QWIUIEWX.mjs.map
|