@dxos/plugin-transcription 0.8.2-main.f081794 → 0.8.2-main.fbd8ed0
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-4D4BHE7G.mjs → TranscriptContainer-CXA4ZBHW.mjs} +3 -3
- package/dist/lib/browser/app-graph-builder-REQZ5SC5.mjs +351 -0
- package/dist/lib/browser/app-graph-builder-REQZ5SC5.mjs.map +7 -0
- package/dist/lib/browser/{chunk-DR3NBV6Q.mjs → chunk-3TKXI6TQ.mjs} +105 -78
- package/dist/lib/browser/chunk-3TKXI6TQ.mjs.map +7 -0
- package/dist/lib/browser/chunk-JHWEZRWC.mjs +63 -0
- package/dist/lib/browser/chunk-JHWEZRWC.mjs.map +7 -0
- package/dist/lib/browser/{chunk-RHHJZQPM.mjs → chunk-K2LS2QOM.mjs} +135 -117
- package/dist/lib/browser/chunk-K2LS2QOM.mjs.map +7 -0
- package/dist/lib/browser/chunk-LCTMCTYY.mjs +27 -0
- package/dist/lib/browser/chunk-LCTMCTYY.mjs.map +7 -0
- package/dist/lib/browser/{chunk-5BE6RTNC.mjs → chunk-LTIQFX4W.mjs} +1 -1
- package/dist/lib/browser/{chunk-5BE6RTNC.mjs.map → chunk-LTIQFX4W.mjs.map} +1 -1
- package/dist/lib/browser/index.mjs +30 -18
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-ZQQEH27F.mjs → intent-resolver-DZ62CJPC.mjs} +4 -4
- package/dist/lib/browser/intent-resolver-DZ62CJPC.mjs.map +7 -0
- package/dist/lib/browser/{meeting-transcription-state-5D52VTHU.mjs → meeting-transcription-state-MNA2XROE.mjs} +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-HETJ5XY6.mjs → react-surface-PUXZNAZL.mjs} +18 -7
- package/dist/lib/browser/react-surface-PUXZNAZL.mjs.map +7 -0
- package/dist/lib/browser/settings-JWDS4J3F.mjs +24 -0
- package/dist/lib/browser/settings-JWDS4J3F.mjs.map +7 -0
- package/dist/lib/browser/{transcriber-SMRLU2KY.mjs → transcriber-YWWIV6KP.mjs} +4 -4
- package/dist/lib/browser/types/index.mjs +3 -3
- package/dist/lib/node/{TranscriptContainer-ZWP6UKY6.cjs → TranscriptContainer-SSJVLRM6.cjs} +8 -8
- package/dist/lib/node/{TranscriptContainer-ZWP6UKY6.cjs.map → TranscriptContainer-SSJVLRM6.cjs.map} +2 -2
- package/dist/lib/node/app-graph-builder-OAPU4GDH.cjs +352 -0
- package/dist/lib/node/app-graph-builder-OAPU4GDH.cjs.map +7 -0
- package/dist/lib/node/{chunk-3QEJ5EBO.cjs → chunk-EJWB53WK.cjs} +22 -32
- package/dist/lib/node/chunk-EJWB53WK.cjs.map +7 -0
- package/dist/lib/node/{chunk-KO6MKCED.cjs → chunk-EVE3H46F.cjs} +138 -119
- package/dist/lib/node/chunk-EVE3H46F.cjs.map +7 -0
- package/dist/lib/node/{chunk-HYGDHS6X.cjs → chunk-JUGOXWES.cjs} +4 -4
- package/dist/lib/node/{chunk-HYGDHS6X.cjs.map → chunk-JUGOXWES.cjs.map} +1 -1
- package/dist/lib/node/{chunk-WXG4Z2EZ.cjs → chunk-L27AK6FQ.cjs} +23 -8
- package/dist/lib/node/chunk-L27AK6FQ.cjs.map +7 -0
- package/dist/lib/node/{chunk-LA73IHCB.cjs → chunk-WKZLGVEJ.cjs} +108 -80
- package/dist/lib/node/chunk-WKZLGVEJ.cjs.map +7 -0
- package/dist/lib/node/index.cjs +47 -35
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/{intent-resolver-VY3XWYAA.cjs → intent-resolver-TRBKI24D.cjs} +9 -9
- package/dist/lib/node/intent-resolver-TRBKI24D.cjs.map +7 -0
- package/dist/lib/node/{meeting-transcription-state-OYWCY5XE.cjs → meeting-transcription-state-5XLTMWPA.cjs} +6 -6
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-M2JQIIDY.cjs → react-surface-SZAMHCX7.cjs} +20 -11
- package/dist/lib/node/react-surface-SZAMHCX7.cjs.map +7 -0
- package/dist/lib/node/settings-AWWMOSCV.cjs +38 -0
- package/dist/lib/node/settings-AWWMOSCV.cjs.map +7 -0
- package/dist/lib/node/{transcriber-E6AAB4SU.cjs → transcriber-AFUXFHCR.cjs} +10 -10
- package/dist/lib/node/types/index.cjs +8 -8
- package/dist/lib/node/types/index.cjs.map +1 -1
- package/dist/lib/node-esm/{TranscriptContainer-3HJ752CP.mjs → TranscriptContainer-M53LI2TX.mjs} +3 -3
- package/dist/lib/node-esm/app-graph-builder-UBP6EOBR.mjs +352 -0
- package/dist/lib/node-esm/app-graph-builder-UBP6EOBR.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-SDMGJZLN.mjs → chunk-4KC3E5T4.mjs} +135 -117
- package/dist/lib/node-esm/chunk-4KC3E5T4.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-YXZOLOFT.mjs → chunk-5E2MR5XK.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-YXZOLOFT.mjs.map → chunk-5E2MR5XK.mjs.map} +1 -1
- package/dist/lib/node-esm/chunk-MHQP2PAF.mjs +28 -0
- package/dist/lib/node-esm/chunk-MHQP2PAF.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-54HDN33F.mjs → chunk-QYG2FOXA.mjs} +22 -32
- package/dist/lib/node-esm/chunk-QYG2FOXA.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-K3R3YK3S.mjs → chunk-V5IWBPYO.mjs} +105 -78
- package/dist/lib/node-esm/chunk-V5IWBPYO.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +30 -18
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-FCTNJPWY.mjs → intent-resolver-HFVAL274.mjs} +4 -4
- package/dist/lib/node-esm/intent-resolver-HFVAL274.mjs.map +7 -0
- package/dist/lib/node-esm/{meeting-transcription-state-XMZJ45P4.mjs → meeting-transcription-state-3WOZ52BQ.mjs} +2 -2
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-PXFSIM6V.mjs → react-surface-UEJELL7I.mjs} +18 -7
- package/dist/lib/node-esm/react-surface-UEJELL7I.mjs.map +7 -0
- package/dist/lib/node-esm/settings-QFNFGFJ5.mjs +25 -0
- package/dist/lib/node-esm/settings-QFNFGFJ5.mjs.map +7 -0
- package/dist/lib/node-esm/{transcriber-REAGRCPY.mjs → transcriber-7RJEFPDI.mjs} +4 -4
- package/dist/lib/node-esm/types/index.mjs +3 -3
- package/dist/types/src/TranscriptionPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +2 -179
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/capabilities.d.ts +1 -1
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +3 -178
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +2 -2
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +4 -0
- package/dist/types/src/capabilities/settings.d.ts.map +1 -0
- package/dist/types/src/components/Transcript/Transcript.d.ts +6 -4
- package/dist/types/src/components/Transcript/Transcript.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/Transcript.stories.d.ts +8 -4
- package/dist/types/src/components/Transcript/Transcript.stories.d.ts.map +1 -1
- package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts +27 -0
- package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts.map +1 -0
- package/dist/types/src/components/Transcript/transcript-extension.d.ts +4 -4
- package/dist/types/src/components/Transcript/transcript-extension.d.ts.map +1 -1
- package/dist/types/src/components/TranscriptContainer.d.ts.map +1 -1
- package/dist/types/src/components/TranscriptionSettings/TranscriptionSettings.d.ts +6 -0
- package/dist/types/src/components/TranscriptionSettings/TranscriptionSettings.d.ts.map +1 -0
- package/dist/types/src/components/TranscriptionSettings/index.d.ts +2 -0
- package/dist/types/src/components/TranscriptionSettings/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/components/transcription.stories.d.ts +6 -3
- package/dist/types/src/components/transcription.stories.d.ts.map +1 -1
- package/dist/types/src/entity-extraction/entity-extraction.d.ts +33 -7
- package/dist/types/src/entity-extraction/entity-extraction.d.ts.map +1 -1
- package/dist/types/src/hooks/useAudioFile.d.ts.map +1 -1
- package/dist/types/src/hooks/useAudioTrack.d.ts.map +1 -1
- package/dist/types/src/hooks/useQueueModelAdapter.d.ts +2 -2
- package/dist/types/src/hooks/useQueueModelAdapter.d.ts.map +1 -1
- package/dist/types/src/hooks/useTranscriber.d.ts.map +1 -1
- package/dist/types/src/hooks/useVoiceInput.d.ts.map +1 -1
- package/dist/types/src/model/model.d.ts +23 -23
- package/dist/types/src/model/model.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +2 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/types/src/testing/testing.d.ts +40 -0
- package/dist/types/src/testing/testing.d.ts.map +1 -0
- 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 +17 -15
- package/dist/types/src/transcriber/transcription-manager.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +3 -18
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +26 -40
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +18 -7
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util/array.d.ts.map +1 -1
- package/dist/types/src/util/get-time-str.d.ts.map +1 -1
- package/dist/types/src/util/monitor-audio-level.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +55 -46
- package/src/TranscriptionPlugin.tsx +30 -13
- package/src/capabilities/app-graph-builder.ts +190 -98
- package/src/capabilities/capabilities.ts +1 -1
- package/src/capabilities/index.ts +1 -0
- package/src/capabilities/intent-resolver.ts +5 -4
- package/src/capabilities/react-surface.tsx +12 -4
- package/src/capabilities/settings.ts +20 -0
- package/src/components/Transcript/Transcript.stories.tsx +72 -36
- package/src/components/Transcript/Transcript.tsx +37 -30
- package/src/components/Transcript/deprecated/{Transcript.tsx → OldTranscript.tsx} +30 -1
- package/src/components/Transcript/transcript-extension.ts +20 -17
- package/src/components/TranscriptContainer.tsx +6 -4
- package/src/components/TranscriptionSettings/TranscriptionSettings.tsx +26 -0
- package/src/components/TranscriptionSettings/index.ts +5 -0
- package/src/components/index.ts +1 -0
- package/src/components/transcription.stories.tsx +85 -35
- package/src/entity-extraction/entity-extraction.test.ts +75 -10
- package/src/entity-extraction/entity-extraction.ts +110 -55
- package/src/entity-extraction/system-prompt.tpl +38 -9
- package/src/hooks/useQueueModelAdapter.ts +44 -11
- package/src/model/model.test.ts +90 -44
- package/src/model/model.ts +59 -59
- package/src/testing/index.ts +5 -0
- package/src/testing/testing.ts +216 -0
- package/src/transcriber/transcriber.browser.test.ts +3 -3
- package/src/transcriber/transcriber.ts +19 -10
- package/src/transcriber/transcription-manager.ts +66 -57
- package/src/translations.ts +2 -0
- package/src/types/schema.ts +10 -31
- package/src/types/types.ts +18 -8
- package/dist/lib/browser/app-graph-builder-I4SSIQMW.mjs +0 -168
- package/dist/lib/browser/app-graph-builder-I4SSIQMW.mjs.map +0 -7
- package/dist/lib/browser/chunk-5Q3R53U3.mjs +0 -73
- package/dist/lib/browser/chunk-5Q3R53U3.mjs.map +0 -7
- package/dist/lib/browser/chunk-DR3NBV6Q.mjs.map +0 -7
- package/dist/lib/browser/chunk-GI5LZ4SV.mjs +0 -8
- package/dist/lib/browser/chunk-GI5LZ4SV.mjs.map +0 -7
- package/dist/lib/browser/chunk-RHHJZQPM.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-ZQQEH27F.mjs.map +0 -7
- package/dist/lib/browser/react-surface-HETJ5XY6.mjs.map +0 -7
- package/dist/lib/node/app-graph-builder-WWC4WNTG.cjs +0 -177
- package/dist/lib/node/app-graph-builder-WWC4WNTG.cjs.map +0 -7
- package/dist/lib/node/chunk-3QEJ5EBO.cjs.map +0 -7
- package/dist/lib/node/chunk-KO6MKCED.cjs.map +0 -7
- package/dist/lib/node/chunk-LA73IHCB.cjs.map +0 -7
- package/dist/lib/node/chunk-WXG4Z2EZ.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-VY3XWYAA.cjs.map +0 -7
- package/dist/lib/node/react-surface-M2JQIIDY.cjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-PPJQAFSI.mjs +0 -169
- package/dist/lib/node-esm/app-graph-builder-PPJQAFSI.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-54HDN33F.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-K3R3YK3S.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SDMGJZLN.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-XY22OP6H.mjs +0 -10
- package/dist/lib/node-esm/chunk-XY22OP6H.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-FCTNJPWY.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-PXFSIM6V.mjs.map +0 -7
- package/dist/types/src/components/Transcript/deprecated/Transcript.d.ts +0 -13
- package/dist/types/src/components/Transcript/deprecated/Transcript.d.ts.map +0 -1
- package/dist/types/src/components/Transcript/testings.d.ts +0 -51
- package/dist/types/src/components/Transcript/testings.d.ts.map +0 -1
- package/dist/types/src/testing/test-data.d.ts +0 -73
- package/dist/types/src/testing/test-data.d.ts.map +0 -1
- package/src/components/Transcript/testings.ts +0 -182
- package/src/testing/test-data.ts +0 -314
- /package/dist/lib/browser/{TranscriptContainer-4D4BHE7G.mjs.map → TranscriptContainer-CXA4ZBHW.mjs.map} +0 -0
- /package/dist/lib/browser/{meeting-transcription-state-5D52VTHU.mjs.map → meeting-transcription-state-MNA2XROE.mjs.map} +0 -0
- /package/dist/lib/browser/{transcriber-SMRLU2KY.mjs.map → transcriber-YWWIV6KP.mjs.map} +0 -0
- /package/dist/lib/node/{meeting-transcription-state-OYWCY5XE.cjs.map → meeting-transcription-state-5XLTMWPA.cjs.map} +0 -0
- /package/dist/lib/node/{transcriber-E6AAB4SU.cjs.map → transcriber-AFUXFHCR.cjs.map} +0 -0
- /package/dist/lib/node-esm/{TranscriptContainer-3HJ752CP.mjs.map → TranscriptContainer-M53LI2TX.mjs.map} +0 -0
- /package/dist/lib/node-esm/{meeting-transcription-state-XMZJ45P4.mjs.map → meeting-transcription-state-3WOZ52BQ.mjs.map} +0 -0
- /package/dist/lib/node-esm/{transcriber-REAGRCPY.mjs.map → transcriber-7RJEFPDI.mjs.map} +0 -0
|
@@ -1,21 +1,32 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
TranscriptionSettings
|
|
3
|
+
} from "./chunk-LCTMCTYY.mjs";
|
|
2
4
|
import {
|
|
3
5
|
TranscriptionContainer
|
|
4
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-K2LS2QOM.mjs";
|
|
5
7
|
import {
|
|
6
8
|
isTranscript
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-JHWEZRWC.mjs";
|
|
10
|
+
import "./chunk-LTIQFX4W.mjs";
|
|
9
11
|
import {
|
|
10
|
-
|
|
12
|
+
meta
|
|
11
13
|
} from "./chunk-6ZR5MDK3.mjs";
|
|
12
14
|
|
|
13
15
|
// packages/plugins/plugin-transcription/src/capabilities/react-surface.tsx
|
|
14
16
|
import React from "react";
|
|
15
17
|
import { Capabilities, contributes, createSurface } from "@dxos/app-framework";
|
|
18
|
+
import { SettingsStore } from "@dxos/local-storage";
|
|
16
19
|
var react_surface_default = () => contributes(Capabilities.ReactSurface, [
|
|
17
20
|
createSurface({
|
|
18
|
-
id: `${
|
|
21
|
+
id: `${meta.id}/plugin-settings`,
|
|
22
|
+
role: "article",
|
|
23
|
+
filter: (data) => data.subject instanceof SettingsStore && data.subject.prefix === meta.id,
|
|
24
|
+
component: ({ data: { subject } }) => /* @__PURE__ */ React.createElement(TranscriptionSettings, {
|
|
25
|
+
settings: subject.value
|
|
26
|
+
})
|
|
27
|
+
}),
|
|
28
|
+
createSurface({
|
|
29
|
+
id: `${meta.id}/article/transcript`,
|
|
19
30
|
role: [
|
|
20
31
|
"article",
|
|
21
32
|
"section"
|
|
@@ -30,4 +41,4 @@ var react_surface_default = () => contributes(Capabilities.ReactSurface, [
|
|
|
30
41
|
export {
|
|
31
42
|
react_surface_default as default
|
|
32
43
|
};
|
|
33
|
-
//# sourceMappingURL=react-surface-
|
|
44
|
+
//# sourceMappingURL=react-surface-PUXZNAZL.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/react-surface.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, createSurface } from '@dxos/app-framework';\nimport { SettingsStore } from '@dxos/local-storage';\n\nimport { TranscriptionContainer, TranscriptionSettings } from '../components';\nimport { meta } from '../meta';\nimport { isTranscript, type TranscriptionSettingsProps, type TranscriptType } from '../types';\n\nexport default () =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: `${meta.id}/plugin-settings`,\n role: 'article',\n filter: (data): data is { subject: SettingsStore<TranscriptionSettingsProps> } =>\n data.subject instanceof SettingsStore && data.subject.prefix === meta.id,\n component: ({ data: { subject } }) => <TranscriptionSettings settings={subject.value} />,\n }),\n createSurface({\n id: `${meta.id}/article/transcript`,\n role: ['article', 'section'],\n filter: (data): data is { subject: TranscriptType } => isTranscript(data.subject),\n component: ({ data, role }) => <TranscriptionContainer transcript={data.subject} role={role} />,\n }),\n ]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,qBAAqB;AACzD,SAASC,qBAAqB;AAM9B,IAAA,wBAAe,MACbC,YAAYC,aAAaC,cAAc;EACrCC,cAAc;IACZC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;IACNC,QAAQ,CAACC,SACPA,KAAKC,mBAAmBC,iBAAiBF,KAAKC,QAAQE,WAAWN,KAAKD;IACxEQ,WAAW,CAAC,EAAEJ,MAAM,EAAEC,QAAO,EAAE,MAAO,sBAAA,cAACI,uBAAAA;MAAsBC,UAAUL,QAAQM;;EACjF,CAAA;EACAZ,cAAc;IACZC,IAAI,GAAGC,KAAKD,EAAE;IACdE,MAAM;MAAC;MAAW;;IAClBC,QAAQ,CAACC,SAA8CQ,aAAaR,KAAKC,OAAO;IAChFG,WAAW,CAAC,EAAEJ,MAAMF,KAAI,MAAO,sBAAA,cAACW,wBAAAA;MAAuBC,YAAYV,KAAKC;MAASH;;EACnF,CAAA;CACD;",
|
|
6
|
+
"names": ["React", "Capabilities", "contributes", "createSurface", "SettingsStore", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "meta", "role", "filter", "data", "subject", "SettingsStore", "prefix", "component", "TranscriptionSettings", "settings", "value", "isTranscript", "TranscriptionContainer", "transcript"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TranscriptionSettingsSchema
|
|
3
|
+
} from "./chunk-JHWEZRWC.mjs";
|
|
4
|
+
import {
|
|
5
|
+
TRANSCRIPTION_PLUGIN
|
|
6
|
+
} from "./chunk-6ZR5MDK3.mjs";
|
|
7
|
+
|
|
8
|
+
// packages/plugins/plugin-transcription/src/capabilities/settings.ts
|
|
9
|
+
import { Capabilities, contributes } from "@dxos/app-framework";
|
|
10
|
+
import { live } from "@dxos/live-object";
|
|
11
|
+
var settings_default = () => {
|
|
12
|
+
const settings = live(TranscriptionSettingsSchema, {
|
|
13
|
+
entityExtraction: true
|
|
14
|
+
});
|
|
15
|
+
return contributes(Capabilities.Settings, {
|
|
16
|
+
schema: TranscriptionSettingsSchema,
|
|
17
|
+
prefix: TRANSCRIPTION_PLUGIN,
|
|
18
|
+
value: settings
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
settings_default as default
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=settings-JWDS4J3F.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/settings.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, contributes } from '@dxos/app-framework';\nimport { live } from '@dxos/live-object';\n\nimport { TRANSCRIPTION_PLUGIN } from '../meta';\nimport { TranscriptionSettingsSchema } from '../types';\n\nexport default () => {\n // TODO(wittjosiah): `live` currently doesn't handle schema default values.\n const settings = live(TranscriptionSettingsSchema, { entityExtraction: true });\n\n return contributes(Capabilities.Settings, {\n schema: TranscriptionSettingsSchema,\n prefix: TRANSCRIPTION_PLUGIN,\n value: settings,\n });\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,SAASA,cAAcC,mBAAmB;AAC1C,SAASC,YAAY;AAKrB,IAAA,mBAAe,MAAA;AAEb,QAAMC,WAAWC,KAAKC,6BAA6B;IAAEC,kBAAkB;EAAK,CAAA;AAE5E,SAAOC,YAAYC,aAAaC,UAAU;IACxCC,QAAQL;IACRM,QAAQC;IACRC,OAAOV;EACT,CAAA;AACF;",
|
|
6
|
+
"names": ["Capabilities", "contributes", "live", "settings", "live", "TranscriptionSettingsSchema", "entityExtraction", "contributes", "Capabilities", "Settings", "schema", "prefix", "TRANSCRIPTION_PLUGIN", "value"]
|
|
7
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MediaStreamRecorder,
|
|
3
3
|
Transcriber
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3TKXI6TQ.mjs";
|
|
5
5
|
import "./chunk-KLD7O5GJ.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-JHWEZRWC.mjs";
|
|
7
7
|
import {
|
|
8
8
|
TranscriptionCapabilities
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LTIQFX4W.mjs";
|
|
10
10
|
import "./chunk-6ZR5MDK3.mjs";
|
|
11
11
|
|
|
12
12
|
// packages/plugins/plugin-transcription/src/capabilities/transcriber.ts
|
|
@@ -34,4 +34,4 @@ var transcriber_default = () => {
|
|
|
34
34
|
export {
|
|
35
35
|
transcriber_default as default
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=transcriber-
|
|
37
|
+
//# sourceMappingURL=transcriber-YWWIV6KP.mjs.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TRANSCRIPTION_URL,
|
|
3
|
-
TranscriptBlock,
|
|
4
3
|
TranscriptSchema,
|
|
5
4
|
TranscriptType,
|
|
6
5
|
TranscriptionAction,
|
|
6
|
+
TranscriptionSettingsSchema,
|
|
7
7
|
isTranscript
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-JHWEZRWC.mjs";
|
|
9
9
|
import "../chunk-6ZR5MDK3.mjs";
|
|
10
10
|
export {
|
|
11
11
|
TRANSCRIPTION_URL,
|
|
12
|
-
TranscriptBlock,
|
|
13
12
|
TranscriptSchema,
|
|
14
13
|
TranscriptType,
|
|
15
14
|
TranscriptionAction,
|
|
15
|
+
TranscriptionSettingsSchema,
|
|
16
16
|
isTranscript
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -16,17 +16,17 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
TranscriptionContainer: () =>
|
|
22
|
-
default: () =>
|
|
19
|
+
var TranscriptContainer_SSJVLRM6_exports = {};
|
|
20
|
+
__export(TranscriptContainer_SSJVLRM6_exports, {
|
|
21
|
+
TranscriptionContainer: () => import_chunk_EVE3H46F.TranscriptionContainer,
|
|
22
|
+
default: () => import_chunk_EVE3H46F.TranscriptContainer_default
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
25
|
-
var
|
|
26
|
-
var
|
|
24
|
+
module.exports = __toCommonJS(TranscriptContainer_SSJVLRM6_exports);
|
|
25
|
+
var import_chunk_EVE3H46F = require("./chunk-EVE3H46F.cjs");
|
|
26
|
+
var import_chunk_JUGOXWES = require("./chunk-JUGOXWES.cjs");
|
|
27
27
|
var import_chunk_NVZWGFJL = require("./chunk-NVZWGFJL.cjs");
|
|
28
28
|
// Annotate the CommonJS export names for ESM import in node:
|
|
29
29
|
0 && (module.exports = {
|
|
30
30
|
TranscriptionContainer
|
|
31
31
|
});
|
|
32
|
-
//# sourceMappingURL=TranscriptContainer-
|
|
32
|
+
//# sourceMappingURL=TranscriptContainer-SSJVLRM6.cjs.map
|
package/dist/lib/node/{TranscriptContainer-ZWP6UKY6.cjs.map → TranscriptContainer-SSJVLRM6.cjs.map}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["TranscriptContainer-
|
|
4
|
-
"sourcesContent": ["import {\n TranscriptContainer_default,\n TranscriptionContainer\n} from \"./chunk-
|
|
3
|
+
"sources": ["TranscriptContainer-SSJVLRM6.cjs"],
|
|
4
|
+
"sourcesContent": ["import {\n TranscriptContainer_default,\n TranscriptionContainer\n} from \"./chunk-EVE3H46F.cjs\";\nimport \"./chunk-JUGOXWES.cjs\";\nimport \"./chunk-NVZWGFJL.cjs\";\nexport {\n TranscriptionContainer,\n TranscriptContainer_default as default\n};\n//# sourceMappingURL=TranscriptContainer-SSJVLRM6.cjs.map\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAGO;AACP,4BAAO;AACP,4BAAO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var app_graph_builder_OAPU4GDH_exports = {};
|
|
20
|
+
__export(app_graph_builder_OAPU4GDH_exports, {
|
|
21
|
+
default: () => app_graph_builder_default
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(app_graph_builder_OAPU4GDH_exports);
|
|
24
|
+
var import_chunk_WKZLGVEJ = require("./chunk-WKZLGVEJ.cjs");
|
|
25
|
+
var import_chunk_J72PUQ3C = require("./chunk-J72PUQ3C.cjs");
|
|
26
|
+
var import_chunk_EJWB53WK = require("./chunk-EJWB53WK.cjs");
|
|
27
|
+
var import_chunk_JUGOXWES = require("./chunk-JUGOXWES.cjs");
|
|
28
|
+
var import_chunk_NVZWGFJL = require("./chunk-NVZWGFJL.cjs");
|
|
29
|
+
var import_rx_react = require("@effect-rx/rx-react");
|
|
30
|
+
var import_effect = require("effect");
|
|
31
|
+
var import_app_framework = require("@dxos/app-framework");
|
|
32
|
+
var import_assistant = require("@dxos/assistant");
|
|
33
|
+
var import_testing = require("@dxos/assistant/testing");
|
|
34
|
+
var import_echo = require("@dxos/client/echo");
|
|
35
|
+
var import_echo_schema = require("@dxos/echo-schema");
|
|
36
|
+
var import_invariant = require("@dxos/invariant");
|
|
37
|
+
var import_keys = require("@dxos/keys");
|
|
38
|
+
var import_log = require("@dxos/log");
|
|
39
|
+
var import_plugin_client = require("@dxos/plugin-client");
|
|
40
|
+
var import_types = require("@dxos/plugin-deck/types");
|
|
41
|
+
var import_plugin_graph = require("@dxos/plugin-graph");
|
|
42
|
+
var import_types2 = require("@dxos/plugin-markdown/types");
|
|
43
|
+
var import_plugin_meeting = require("@dxos/plugin-meeting");
|
|
44
|
+
var import_types3 = require("@dxos/plugin-meeting/types");
|
|
45
|
+
var import_schema = require("@dxos/schema");
|
|
46
|
+
var import_effect2 = require("effect");
|
|
47
|
+
var import_artifact = require("@dxos/artifact");
|
|
48
|
+
var import_assistant2 = require("@dxos/assistant");
|
|
49
|
+
var import_async = require("@dxos/async");
|
|
50
|
+
var import_echo_schema2 = require("@dxos/echo-schema");
|
|
51
|
+
var import_keys2 = require("@dxos/keys");
|
|
52
|
+
var import_log2 = require("@dxos/log");
|
|
53
|
+
var import_schema2 = require("@dxos/schema");
|
|
54
|
+
var system_prompt_default = 'You are an AI assistant specialized in processing and enhancing transcripts with contextual information.\nYour task is to analyze a given transcript and extract references to the context objects.\n\nThe context and transcript are provided in the user message in `context` and `transcript` XML tags.\n\nHere are your instructions:\n\n1. Read the transcript and context information provided above.\n\n2. Process each segment of the transcript separately.\n\n3. For each segment:\n a. Analyze the content and identify relevant information from the context.\n b. Extract a number of references to the context objects that are mentioned in the segment.\n c. Output the references in the format `{ "quote": "earnings report", "id": "01JT0JP9AX0XKGZX4MV4B69VT6" }`.\n d. If there are no references, just output an empty array.\n\n4. Maintain the exact order and structure of the original transcript segments.\n\nOutput Format:\nThe final output should be a JSON array of references.\n\nExample output structure:\n```json\n{\n "references": [\n { "quote": "earnings report", "id": "01JT0JP9AX0XKGZX4MV4B69VT6" },\n { "quote": "John", "id": "01JT0VM0VN3ZKN7GDBM8CV9BA7" }\n ]\n}\n```\n\nRemember:\n- Only quote the text that is in the transcript.\n- Analyze each segment carefully before processing it.\n- Only reference objects that appear in the context and exactly by their id, If the object is not in the context, do not insert a reference. \n\nNow, process the transcript and context provided below according to these instructions.';
|
|
55
|
+
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/plugin-transcription/src/entity-extraction/entity-extraction.ts";
|
|
56
|
+
var createSystemPrompt = () => {
|
|
57
|
+
const template = (0, import_artifact.createTemplate)(system_prompt_default);
|
|
58
|
+
return template({});
|
|
59
|
+
};
|
|
60
|
+
var ReferencedQuotes = import_effect2.Schema.Struct({
|
|
61
|
+
references: import_effect2.Schema.Array(import_effect2.Schema.Struct({
|
|
62
|
+
quote: import_effect2.Schema.String,
|
|
63
|
+
id: import_effect2.Schema.String
|
|
64
|
+
})).annotations({
|
|
65
|
+
description: "The references to the context objects that are mentioned in the transcript. quote should match the original transcript text exactly, while id is the id of the context object."
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
var processTranscriptMessage = async (params) => {
|
|
69
|
+
try {
|
|
70
|
+
const outputParser = (0, import_artifact.structuredOutputParser)(ReferencedQuotes);
|
|
71
|
+
const runParser = async () => {
|
|
72
|
+
const startTime = performance.now();
|
|
73
|
+
const result = outputParser.getResult(await new import_assistant2.MixedStreamParser().parse(await params.aiService.execStream({
|
|
74
|
+
model: "@anthropic/claude-3-5-haiku-20241022",
|
|
75
|
+
systemPrompt: createSystemPrompt(),
|
|
76
|
+
history: [
|
|
77
|
+
(0, import_echo_schema2.create)(import_artifact.Message, {
|
|
78
|
+
role: "user",
|
|
79
|
+
content: [
|
|
80
|
+
{
|
|
81
|
+
type: "text",
|
|
82
|
+
text: `<context>${JSON.stringify(params.context.objects)}</context>`
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
type: "text",
|
|
86
|
+
text: `<transcript>${JSON.stringify(params.message.blocks)}</transcript>`
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
})
|
|
90
|
+
],
|
|
91
|
+
tools: [
|
|
92
|
+
outputParser.tool
|
|
93
|
+
]
|
|
94
|
+
})));
|
|
95
|
+
import_log2.log.info("entity extraction result", {
|
|
96
|
+
refs: result.references
|
|
97
|
+
}, {
|
|
98
|
+
F: __dxlog_file,
|
|
99
|
+
L: 98,
|
|
100
|
+
S: void 0,
|
|
101
|
+
C: (f, a) => f(...a)
|
|
102
|
+
});
|
|
103
|
+
return {
|
|
104
|
+
message: (0, import_echo_schema2.create)(import_schema2.DataType.Message, {
|
|
105
|
+
...params.message,
|
|
106
|
+
blocks: params.message.blocks.map((block, i) => block.type !== "transcription" ? block : {
|
|
107
|
+
...block,
|
|
108
|
+
text: postprocessText(block.text, result)
|
|
109
|
+
})
|
|
110
|
+
}),
|
|
111
|
+
timeElapsed: performance.now() - startTime
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
if (params.options?.timeout && params.options.timeout > 0) {
|
|
115
|
+
return await (0, import_async.asyncTimeout)(runParser(), params.options.timeout);
|
|
116
|
+
} else {
|
|
117
|
+
return await runParser();
|
|
118
|
+
}
|
|
119
|
+
} catch (error) {
|
|
120
|
+
if (params.options?.fallbackToRaw) {
|
|
121
|
+
import_log2.log.warn("failed to process transcript message, falling back to raw text", {
|
|
122
|
+
error
|
|
123
|
+
}, {
|
|
124
|
+
F: __dxlog_file,
|
|
125
|
+
L: 123,
|
|
126
|
+
S: void 0,
|
|
127
|
+
C: (f, a) => f(...a)
|
|
128
|
+
});
|
|
129
|
+
return {
|
|
130
|
+
message: params.message,
|
|
131
|
+
timeElapsed: 0
|
|
132
|
+
};
|
|
133
|
+
} else {
|
|
134
|
+
throw error;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
var postprocessText = (text, quotes) => {
|
|
139
|
+
for (const quote of quotes.references) {
|
|
140
|
+
if (!import_echo_schema2.ObjectId.isValid(quote.id)) {
|
|
141
|
+
continue;
|
|
142
|
+
}
|
|
143
|
+
const regex = new RegExp(quote.quote.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "gi");
|
|
144
|
+
text = text.replace(regex, `[${quote.quote}][${import_keys2.DXN.fromLocalObjectId(quote.id).toString()}]`);
|
|
145
|
+
}
|
|
146
|
+
return text;
|
|
147
|
+
};
|
|
148
|
+
var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/plugins/plugin-transcription/src/capabilities/app-graph-builder.ts";
|
|
149
|
+
var getMeetingTranscript = async (context, meeting) => {
|
|
150
|
+
const { dispatchPromise: dispatch } = context.getCapability(import_app_framework.Capabilities.IntentDispatcher);
|
|
151
|
+
const typename = (0, import_echo_schema.getSchemaTypename)(import_chunk_EJWB53WK.TranscriptType);
|
|
152
|
+
const existing = await meeting.artifacts[typename]?.load();
|
|
153
|
+
if (existing instanceof import_chunk_EJWB53WK.TranscriptType) {
|
|
154
|
+
return existing;
|
|
155
|
+
}
|
|
156
|
+
const space = (0, import_echo.getSpace)(meeting);
|
|
157
|
+
(0, import_invariant.invariant)(space, void 0, {
|
|
158
|
+
F: __dxlog_file2,
|
|
159
|
+
L: 49,
|
|
160
|
+
S: void 0,
|
|
161
|
+
A: [
|
|
162
|
+
"space",
|
|
163
|
+
""
|
|
164
|
+
]
|
|
165
|
+
});
|
|
166
|
+
const { data } = await dispatch((0, import_app_framework.createIntent)(import_chunk_EJWB53WK.TranscriptionAction.Create, {
|
|
167
|
+
spaceId: space.id
|
|
168
|
+
}));
|
|
169
|
+
meeting.artifacts[typename] = (0, import_echo.makeRef)(data.object);
|
|
170
|
+
return data?.object;
|
|
171
|
+
};
|
|
172
|
+
var app_graph_builder_default = (context) => (0, import_app_framework.contributes)(import_app_framework.Capabilities.AppGraphBuilder, [
|
|
173
|
+
(0, import_plugin_graph.createExtension)({
|
|
174
|
+
id: `${import_chunk_NVZWGFJL.TRANSCRIPTION_PLUGIN}/meeting-transcript`,
|
|
175
|
+
actions: (node) => import_rx_react.Rx.make((get) => (0, import_effect.pipe)(get(node), import_effect.Option.flatMap((node2) => (0, import_echo_schema.isInstanceOf)(import_types3.MeetingType, node2.data) ? import_effect.Option.some(node2.data) : import_effect.Option.none()), import_effect.Option.map((meeting) => {
|
|
176
|
+
const state = context.getCapability(import_chunk_JUGOXWES.TranscriptionCapabilities.MeetingTranscriptionState);
|
|
177
|
+
const enabled = get((0, import_plugin_graph.rxFromSignal)(() => state.enabled));
|
|
178
|
+
return [
|
|
179
|
+
{
|
|
180
|
+
id: `${(0, import_echo.fullyQualifiedId)(meeting)}/action/start-stop-transcription`,
|
|
181
|
+
data: async () => {
|
|
182
|
+
const transcript = await getMeetingTranscript(context, meeting);
|
|
183
|
+
(0, import_invariant.invariant)(transcript, "Failed to create transcript", {
|
|
184
|
+
F: __dxlog_file2,
|
|
185
|
+
L: 76,
|
|
186
|
+
S: void 0,
|
|
187
|
+
A: [
|
|
188
|
+
"transcript",
|
|
189
|
+
"'Failed to create transcript'"
|
|
190
|
+
]
|
|
191
|
+
});
|
|
192
|
+
const callManager = context.getCapability(import_plugin_meeting.MeetingCapabilities.CallManager);
|
|
193
|
+
callManager.setActivity((0, import_echo_schema.getSchemaTypename)(import_chunk_EJWB53WK.TranscriptType), {
|
|
194
|
+
queueDxn: transcript.queue.dxn.toString(),
|
|
195
|
+
enabled: !enabled
|
|
196
|
+
});
|
|
197
|
+
},
|
|
198
|
+
properties: {
|
|
199
|
+
label: enabled ? [
|
|
200
|
+
"stop transcription label",
|
|
201
|
+
{
|
|
202
|
+
ns: import_chunk_NVZWGFJL.TRANSCRIPTION_PLUGIN
|
|
203
|
+
}
|
|
204
|
+
] : [
|
|
205
|
+
"start transcription label",
|
|
206
|
+
{
|
|
207
|
+
ns: import_chunk_NVZWGFJL.TRANSCRIPTION_PLUGIN
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
icon: "ph--subtitles--regular",
|
|
211
|
+
disposition: "toolbar",
|
|
212
|
+
classNames: enabled ? "bg-callAlert" : ""
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
];
|
|
216
|
+
}), import_effect.Option.getOrElse(() => []))),
|
|
217
|
+
connector: (node) => import_rx_react.Rx.make((get) => (0, import_effect.pipe)(get(node), import_effect.Option.flatMap((node2) => (0, import_echo_schema.isInstanceOf)(import_types3.MeetingType, node2.data) ? import_effect.Option.some(node2.data) : import_effect.Option.none()), import_effect.Option.map((meeting) => {
|
|
218
|
+
const client = context.getCapability(import_plugin_client.ClientCapabilities.Client);
|
|
219
|
+
const state = context.getCapability(import_chunk_JUGOXWES.TranscriptionCapabilities.MeetingTranscriptionState);
|
|
220
|
+
const settingsStore = get(context.capabilities(import_app_framework.Capabilities.SettingsStore))[0];
|
|
221
|
+
const settings = get((0, import_plugin_graph.rxFromSignal)(() => settingsStore?.getStore(import_chunk_NVZWGFJL.TRANSCRIPTION_PLUGIN).value));
|
|
222
|
+
const aiClient = new import_assistant.AIServiceEdgeClient({
|
|
223
|
+
// TODO(burdon): Get from config.
|
|
224
|
+
endpoint: import_testing.AI_SERVICE_ENDPOINT.REMOTE
|
|
225
|
+
});
|
|
226
|
+
return [
|
|
227
|
+
{
|
|
228
|
+
id: `${(0, import_echo.fullyQualifiedId)(meeting)}${import_types.ATTENDABLE_PATH_SEPARATOR}${(0, import_echo_schema.getSchemaTypename)(import_chunk_EJWB53WK.TranscriptType)}`,
|
|
229
|
+
type: import_types.PLANK_COMPANION_TYPE,
|
|
230
|
+
data: get((0, import_plugin_graph.rxFromSignal)(() => meeting.artifacts[(0, import_echo_schema.getSchemaTypename)(import_chunk_EJWB53WK.TranscriptType)]?.target)),
|
|
231
|
+
properties: {
|
|
232
|
+
label: [
|
|
233
|
+
"transcript companion label",
|
|
234
|
+
{
|
|
235
|
+
ns: import_chunk_NVZWGFJL.TRANSCRIPTION_PLUGIN
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
icon: "ph--subtitles--regular",
|
|
239
|
+
position: "hoist",
|
|
240
|
+
disposition: "hidden",
|
|
241
|
+
schema: import_chunk_EJWB53WK.TranscriptType,
|
|
242
|
+
getIntent: ({ space }) => (0, import_app_framework.createIntent)(import_chunk_EJWB53WK.TranscriptionAction.Create, {
|
|
243
|
+
spaceId: space.id
|
|
244
|
+
}),
|
|
245
|
+
// TODO(burdon): Is this the right place to inisitalize the state? Change to a capability?
|
|
246
|
+
onJoin: async ({ meeting: meeting2 }) => {
|
|
247
|
+
const identity = client.halo.identity.get();
|
|
248
|
+
(0, import_invariant.invariant)(identity, void 0, {
|
|
249
|
+
F: __dxlog_file2,
|
|
250
|
+
L: 134,
|
|
251
|
+
S: void 0,
|
|
252
|
+
A: [
|
|
253
|
+
"identity",
|
|
254
|
+
""
|
|
255
|
+
]
|
|
256
|
+
});
|
|
257
|
+
const space = (0, import_echo.getSpace)(meeting2);
|
|
258
|
+
(0, import_invariant.invariant)(space, void 0, {
|
|
259
|
+
F: __dxlog_file2,
|
|
260
|
+
L: 136,
|
|
261
|
+
S: void 0,
|
|
262
|
+
A: [
|
|
263
|
+
"space",
|
|
264
|
+
""
|
|
265
|
+
]
|
|
266
|
+
});
|
|
267
|
+
let messageEnricher;
|
|
268
|
+
if (aiClient && settings.entityExtraction) {
|
|
269
|
+
messageEnricher = createEntityExtractionEnricher({
|
|
270
|
+
aiClient,
|
|
271
|
+
// TODO(dmaretskyi): Have those be discovered from the schema graph or contributed by capabilities?
|
|
272
|
+
// This forced me to add a dependency on markdown plugin.
|
|
273
|
+
// This will be replaced with a vector search index anyway, so its not a big deal.
|
|
274
|
+
contextTypes: [
|
|
275
|
+
import_types2.DocumentType,
|
|
276
|
+
import_schema.DataType.Person,
|
|
277
|
+
import_schema.DataType.Organization
|
|
278
|
+
],
|
|
279
|
+
space
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
state.transcriptionManager = await new import_chunk_WKZLGVEJ.TranscriptionManager({
|
|
283
|
+
edgeClient: client.edge,
|
|
284
|
+
messageEnricher
|
|
285
|
+
}).setIdentityDid(identity.did).open();
|
|
286
|
+
},
|
|
287
|
+
onLeave: async () => {
|
|
288
|
+
await state.transcriptionManager?.close();
|
|
289
|
+
state.transcriptionManager = void 0;
|
|
290
|
+
state.enabled = false;
|
|
291
|
+
},
|
|
292
|
+
onCallStateUpdated: async (callState) => {
|
|
293
|
+
const typename = (0, import_echo_schema.getSchemaTypename)(import_chunk_EJWB53WK.TranscriptType);
|
|
294
|
+
const transcription = typename ? callState.activities?.[typename] : void 0;
|
|
295
|
+
if (!transcription?.payload) {
|
|
296
|
+
return;
|
|
297
|
+
}
|
|
298
|
+
const payload = transcription.payload;
|
|
299
|
+
state.enabled = !!payload.enabled;
|
|
300
|
+
if (payload.queueDxn) {
|
|
301
|
+
state.transcriptionManager?.setQueue(import_keys.DXN.parse(payload.queueDxn));
|
|
302
|
+
}
|
|
303
|
+
await state.transcriptionManager?.setEnabled(payload.enabled);
|
|
304
|
+
},
|
|
305
|
+
onMediaStateUpdated: async ([mediaState, isSpeaking]) => {
|
|
306
|
+
void state.transcriptionManager?.setAudioTrack(mediaState.audioTrack);
|
|
307
|
+
void state.transcriptionManager?.setRecording(isSpeaking);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
];
|
|
312
|
+
}), import_effect.Option.getOrElse(() => [])))
|
|
313
|
+
})
|
|
314
|
+
]);
|
|
315
|
+
var createEntityExtractionEnricher = ({ aiClient, contextTypes, space }) => {
|
|
316
|
+
return async (message) => {
|
|
317
|
+
const { objects } = await space.db.query(import_echo.Query.select(import_echo.Filter.or(...contextTypes.map((s) => import_echo.Filter.type(s))))).run();
|
|
318
|
+
import_log.log.info("context", {
|
|
319
|
+
objects
|
|
320
|
+
}, {
|
|
321
|
+
F: __dxlog_file2,
|
|
322
|
+
L: 203,
|
|
323
|
+
S: void 0,
|
|
324
|
+
C: (f, a) => f(...a)
|
|
325
|
+
});
|
|
326
|
+
const { message: enhancedMessage, timeElapsed } = await processTranscriptMessage({
|
|
327
|
+
aiService: aiClient,
|
|
328
|
+
message,
|
|
329
|
+
context: {
|
|
330
|
+
objects: await Promise.all(objects.map((o) => processContextObject(o)))
|
|
331
|
+
},
|
|
332
|
+
options: {
|
|
333
|
+
timeout: ENTITY_EXTRACTOR_TIMEOUT,
|
|
334
|
+
fallbackToRaw: true
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
import_log.log.info("entity extraction time", {
|
|
338
|
+
timeElapsed
|
|
339
|
+
}, {
|
|
340
|
+
F: __dxlog_file2,
|
|
341
|
+
L: 214,
|
|
342
|
+
S: void 0,
|
|
343
|
+
C: (f, a) => f(...a)
|
|
344
|
+
});
|
|
345
|
+
return enhancedMessage;
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
var processContextObject = async (object) => {
|
|
349
|
+
return object;
|
|
350
|
+
};
|
|
351
|
+
var ENTITY_EXTRACTOR_TIMEOUT = 25e3;
|
|
352
|
+
//# sourceMappingURL=app-graph-builder-OAPU4GDH.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/app-graph-builder.ts", "../../../src/entity-extraction/entity-extraction.ts", "raw-loader:./system-prompt.tpl?raw"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Rx } from '@effect-rx/rx-react';\nimport { Option, pipe, type Schema } from 'effect';\n\nimport { Capabilities, contributes, createIntent, type PluginContext } from '@dxos/app-framework';\nimport { AIServiceEdgeClient, type AIServiceClient } from '@dxos/assistant';\nimport { AI_SERVICE_ENDPOINT } from '@dxos/assistant/testing';\nimport { Filter, fullyQualifiedId, getSpace, makeRef, Query, type Space } from '@dxos/client/echo';\nimport { getSchemaTypename, isInstanceOf, type BaseEchoObject } from '@dxos/echo-schema';\nimport { invariant } from '@dxos/invariant';\nimport { DXN } from '@dxos/keys';\nimport { log } from '@dxos/log';\nimport { ClientCapabilities } from '@dxos/plugin-client';\nimport { PLANK_COMPANION_TYPE, ATTENDABLE_PATH_SEPARATOR } from '@dxos/plugin-deck/types';\nimport { createExtension, rxFromSignal } from '@dxos/plugin-graph';\nimport { DocumentType } from '@dxos/plugin-markdown/types';\nimport { MeetingCapabilities, type CallState, type MediaState } from '@dxos/plugin-meeting';\nimport { MeetingType, type MeetingCallProperties } from '@dxos/plugin-meeting/types';\nimport { type buf } from '@dxos/protocols/buf';\nimport { type TranscriptionPayloadSchema } from '@dxos/protocols/buf/dxos/edge/calls_pb';\nimport { DataType } from '@dxos/schema';\n\nimport { TranscriptionCapabilities } from './capabilities';\nimport { processTranscriptMessage } from '../entity-extraction';\nimport { TRANSCRIPTION_PLUGIN } from '../meta';\nimport { TranscriptionManager } from '../transcriber';\nimport { TranscriptionAction, type TranscriptionSettingsProps, TranscriptType } from '../types';\n\n// TODO(wittjosiah): Factor out.\n// TODO(wittjosiah): Can we stop using protobuf for this?\ntype TranscriptionPayload = buf.MessageInitShape<typeof TranscriptionPayloadSchema>;\n\nconst getMeetingTranscript = async (\n context: PluginContext,\n meeting: MeetingType,\n): Promise<TranscriptType | undefined> => {\n const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);\n\n const typename = getSchemaTypename(TranscriptType)!;\n const existing = await meeting.artifacts[typename]?.load();\n if (existing instanceof TranscriptType) {\n return existing;\n }\n\n const space = getSpace(meeting);\n invariant(space);\n const { data } = await dispatch(createIntent(TranscriptionAction.Create, { spaceId: space.id }));\n meeting.artifacts[typename] = makeRef(data!.object);\n return data?.object;\n};\n\n// TODO(wittjosiah): Introduce a sound that plays when transcription is activated/deactivated.\nexport default (context: PluginContext) =>\n contributes(Capabilities.AppGraphBuilder, [\n createExtension({\n id: `${TRANSCRIPTION_PLUGIN}/meeting-transcript`,\n actions: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (isInstanceOf(MeetingType, node.data) ? Option.some(node.data) : Option.none())),\n Option.map((meeting) => {\n const state = context.getCapability(TranscriptionCapabilities.MeetingTranscriptionState);\n const enabled = get(rxFromSignal(() => state.enabled));\n return [\n {\n id: `${fullyQualifiedId(meeting)}/action/start-stop-transcription`,\n data: async () => {\n // NOTE: We are not saving the state of the transcription manager here.\n // We expect the state to be updated through `onCallStateUpdated` once it is propagated through Swarm.\n // This is done to avoid race conditions and to not handle optimistic updates.\n const transcript = await getMeetingTranscript(context, meeting);\n invariant(transcript, 'Failed to create transcript');\n\n const callManager = context.getCapability(MeetingCapabilities.CallManager);\n callManager.setActivity(getSchemaTypename(TranscriptType)!, {\n queueDxn: transcript.queue.dxn.toString(),\n enabled: !enabled,\n });\n },\n properties: {\n label: enabled\n ? ['stop transcription label', { ns: TRANSCRIPTION_PLUGIN }]\n : ['start transcription label', { ns: TRANSCRIPTION_PLUGIN }],\n icon: 'ph--subtitles--regular',\n disposition: 'toolbar',\n classNames: enabled ? 'bg-callAlert' : '',\n },\n },\n ];\n }),\n Option.getOrElse(() => []),\n ),\n ),\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (isInstanceOf(MeetingType, node.data) ? Option.some(node.data) : Option.none())),\n Option.map((meeting) => {\n const client = context.getCapability(ClientCapabilities.Client);\n const state = context.getCapability(TranscriptionCapabilities.MeetingTranscriptionState);\n const settingsStore = get(context.capabilities(Capabilities.SettingsStore))[0];\n const settings = get(\n rxFromSignal(() => settingsStore?.getStore<TranscriptionSettingsProps>(TRANSCRIPTION_PLUGIN)!.value),\n );\n\n // TODO(dmaretskyi): Request via capability.\n const aiClient: AIServiceClient | undefined = new AIServiceEdgeClient({\n // TODO(burdon): Get from config.\n endpoint: AI_SERVICE_ENDPOINT.REMOTE,\n });\n\n return [\n {\n id: `${fullyQualifiedId(meeting)}${ATTENDABLE_PATH_SEPARATOR}${getSchemaTypename(TranscriptType)}`,\n type: PLANK_COMPANION_TYPE,\n data: get(rxFromSignal(() => meeting.artifacts[getSchemaTypename(TranscriptType)!]?.target)),\n properties: {\n label: ['transcript companion label', { ns: TRANSCRIPTION_PLUGIN }],\n icon: 'ph--subtitles--regular',\n position: 'hoist',\n disposition: 'hidden',\n schema: TranscriptType,\n getIntent: ({ space }: { space: Space }) =>\n createIntent(TranscriptionAction.Create, { spaceId: space.id }),\n\n // TODO(burdon): Is this the right place to inisitalize the state? Change to a capability?\n onJoin: async ({ meeting }: { meeting?: MeetingType }) => {\n const identity = client.halo.identity.get();\n invariant(identity);\n const space = getSpace(meeting);\n invariant(space);\n\n let messageEnricher;\n if (aiClient && settings.entityExtraction) {\n messageEnricher = createEntityExtractionEnricher({\n aiClient,\n // TODO(dmaretskyi): Have those be discovered from the schema graph or contributed by capabilities?\n // This forced me to add a dependency on markdown plugin.\n // This will be replaced with a vector search index anyway, so its not a big deal.\n contextTypes: [DocumentType, DataType.Person, DataType.Organization],\n space,\n });\n }\n\n // TODO(burdon): The TranscriptionManager singleton is part of the state and should just be updated here.\n state.transcriptionManager = await new TranscriptionManager({\n edgeClient: client.edge,\n messageEnricher,\n })\n .setIdentityDid(identity.did)\n .open();\n },\n onLeave: async () => {\n await state.transcriptionManager?.close();\n state.transcriptionManager = undefined;\n state.enabled = false;\n },\n onCallStateUpdated: async (callState: CallState) => {\n const typename = getSchemaTypename(TranscriptType);\n const transcription = typename ? callState.activities?.[typename] : undefined;\n if (!transcription?.payload) {\n return;\n }\n\n const payload: TranscriptionPayload = transcription.payload;\n state.enabled = !!payload.enabled;\n if (payload.queueDxn) {\n // NOTE: Must set queue before enabling transcription.\n state.transcriptionManager?.setQueue(DXN.parse(payload.queueDxn));\n }\n await state.transcriptionManager?.setEnabled(payload.enabled);\n },\n onMediaStateUpdated: async ([mediaState, isSpeaking]: [MediaState, boolean]) => {\n void state.transcriptionManager?.setAudioTrack(mediaState.audioTrack);\n void state.transcriptionManager?.setRecording(isSpeaking);\n },\n } satisfies MeetingCallProperties,\n },\n ];\n }),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n ]);\n\ntype EntityExtractionEnricherFactoryOptions = {\n aiClient: AIServiceClient;\n contextTypes: Schema.Schema.AnyNoContext[];\n space: Space;\n};\n\nconst createEntityExtractionEnricher = ({ aiClient, contextTypes, space }: EntityExtractionEnricherFactoryOptions) => {\n return async (message: DataType.Message) => {\n const { objects } = await space.db\n .query(Query.select(Filter.or(...contextTypes.map((s) => Filter.type(s as Schema.Schema<BaseEchoObject>)))))\n .run();\n log.info('context', { objects });\n\n const { message: enhancedMessage, timeElapsed } = await processTranscriptMessage({\n aiService: aiClient,\n message,\n context: {\n objects: await Promise.all(objects.map((o) => processContextObject(o))),\n },\n options: { timeout: ENTITY_EXTRACTOR_TIMEOUT, fallbackToRaw: true },\n });\n\n log.info('entity extraction time', { timeElapsed });\n return enhancedMessage;\n };\n};\n\n// TODO(dmaretskyi): Use Type.Any\nconst processContextObject = async (object: BaseEchoObject): Promise<any> => {\n // TODO(dmaretskyi): Documents need special processing is the content is behind a ref.\n // TODO(dmaretskyi): Think about a way to handle this serialization with a decorator.\n // if (isInstanceOf(DocumentType, object)) {\n // return {\n // ...object,\n // content: await object.content.load(),\n // };\n // }\n\n return object;\n};\n\nconst ENTITY_EXTRACTOR_TIMEOUT = 25_000;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nimport { createTemplate, Message, structuredOutputParser } from '@dxos/artifact';\nimport type { AIServiceClient } from '@dxos/assistant';\nimport { MixedStreamParser } from '@dxos/assistant';\nimport { asyncTimeout } from '@dxos/async';\nimport { type BaseEchoObject, create, ObjectId } from '@dxos/echo-schema';\nimport { DXN } from '@dxos/keys';\nimport { log } from '@dxos/log';\nimport { DataType } from '@dxos/schema';\n\nimport SYSTEM_PROMPT from './system-prompt.tpl?raw';\n\ntype ProcessTranscriptMessageParams = {\n message: DataType.Message;\n aiService: AIServiceClient;\n context: {\n objects?: BaseEchoObject[];\n };\n\n options?: {\n /**\n * Timeout for the entity extraction.\n */\n timeout?: number;\n\n /**\n * Fallback to raw text if the entity extraction fails.\n * Otherwise the function will throw an error.\n * @default false\n */\n fallbackToRaw?: boolean;\n };\n};\n\ntype ProcessTranscriptMessageResult = {\n message: DataType.Message;\n timeElapsed: number;\n};\n\n/**\n * Process Handlebars template.\n */\nconst createSystemPrompt = (): string => {\n const template = createTemplate(SYSTEM_PROMPT);\n return template({});\n};\n\nconst ReferencedQuotes = Schema.Struct({\n references: Schema.Array(\n Schema.Struct({\n quote: Schema.String,\n id: Schema.String,\n }),\n ).annotations({\n description:\n 'The references to the context objects that are mentioned in the transcript. quote should match the original transcript text exactly, while id is the id of the context object.',\n }),\n});\ninterface ReferencedQuotes extends Schema.Schema.Type<typeof ReferencedQuotes> {}\n\n// TODO(dmaretskyi): Move context to a vector search index.\nexport const processTranscriptMessage = async (\n params: ProcessTranscriptMessageParams,\n): Promise<ProcessTranscriptMessageResult> => {\n try {\n const outputParser = structuredOutputParser(ReferencedQuotes);\n const runParser = async (): Promise<ProcessTranscriptMessageResult> => {\n const startTime = performance.now();\n const result = outputParser.getResult(\n await new MixedStreamParser().parse(\n await params.aiService.execStream({\n model: '@anthropic/claude-3-5-haiku-20241022',\n systemPrompt: createSystemPrompt(),\n history: [\n create(Message, {\n role: 'user',\n content: [\n {\n type: 'text',\n text: `<context>${JSON.stringify(params.context.objects)}</context>`,\n },\n {\n type: 'text',\n text: `<transcript>${JSON.stringify(params.message.blocks)}</transcript>`,\n },\n ],\n }),\n ],\n tools: [outputParser.tool],\n }),\n ),\n );\n log.info('entity extraction result', { refs: result.references });\n\n return {\n message: create(DataType.Message, {\n ...params.message,\n blocks: params.message.blocks.map((block, i) =>\n block.type !== 'transcription'\n ? block\n : {\n ...block,\n text: postprocessText(block.text, result),\n },\n ),\n }),\n timeElapsed: performance.now() - startTime,\n };\n };\n\n if (params.options?.timeout && params.options.timeout > 0) {\n return await asyncTimeout(runParser(), params.options.timeout);\n } else {\n return await runParser();\n }\n } catch (error) {\n if (params.options?.fallbackToRaw) {\n log.warn('failed to process transcript message, falling back to raw text', { error });\n return {\n message: params.message,\n timeElapsed: 0,\n };\n } else {\n throw error;\n }\n }\n};\n\n/**\n * Finds and replaces all quotes with DXNs references.\n */\n// TODO(dmaretskyi): Lookup and verifiy ids from provided context.\nexport const postprocessText = (text: string, quotes: ReferencedQuotes) => {\n for (const quote of quotes.references) {\n if (!ObjectId.isValid(quote.id)) {\n continue;\n }\n\n // Use a case-insensitive regular expression to replace the quote\n const regex = new RegExp(quote.quote.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&'), 'gi');\n text = text.replace(regex, `[${quote.quote}][${DXN.fromLocalObjectId(quote.id).toString()}]`);\n }\n return text;\n};\n", "You are an AI assistant specialized in processing and enhancing transcripts with contextual information.\nYour task is to analyze a given transcript and extract references to the context objects.\n\nThe context and transcript are provided in the user message in `context` and `transcript` XML tags.\n\nHere are your instructions:\n\n1. Read the transcript and context information provided above.\n\n2. Process each segment of the transcript separately.\n\n3. For each segment:\n a. Analyze the content and identify relevant information from the context.\n b. Extract a number of references to the context objects that are mentioned in the segment.\n c. Output the references in the format `{ \"quote\": \"earnings report\", \"id\": \"01JT0JP9AX0XKGZX4MV4B69VT6\" }`.\n d. If there are no references, just output an empty array.\n\n4. Maintain the exact order and structure of the original transcript segments.\n\nOutput Format:\nThe final output should be a JSON array of references.\n\nExample output structure:\n```json\n{\n \"references\": [\n { \"quote\": \"earnings report\", \"id\": \"01JT0JP9AX0XKGZX4MV4B69VT6\" },\n { \"quote\": \"John\", \"id\": \"01JT0VM0VN3ZKN7GDBM8CV9BA7\" }\n ]\n}\n```\n\nRemember:\n- Only quote the text that is in the transcript.\n- Analyze each segment carefully before processing it.\n- Only reference objects that appear in the context and exactly by their id, If the object is not in the context, do not insert a reference. \n\nNow, process the transcript and context provided below according to these instructions."],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,sBAAmB;AACnB,oBAA0C;AAE1C,2BAA4E;AAC5E,uBAA0D;AAC1D,qBAAoC;AACpC,kBAA+E;AAC/E,yBAAqE;AACrE,uBAA0B;AAC1B,kBAAoB;AACpB,iBAAoB;AACpB,2BAAmC;AACnC,mBAAgE;AAChE,0BAA8C;AAC9C,IAAAA,gBAA6B;AAC7B,4BAAqE;AACrE,IAAAA,gBAAwD;AAGxD,oBAAyB;ACnBzB,IAAAC,iBAAuB;AAEvB,sBAAgE;AAEhE,IAAAC,oBAAkC;AAClC,mBAA6B;AAC7B,IAAAC,sBAAsD;AACtD,IAAAC,eAAoB;AACpB,IAAAC,cAAoB;AACpB,IAAAC,iBAAyB;ACbzB,IAAA,wBAAA;;AD+CA,IAAMC,qBAAqB,MAAA;AACzB,QAAMC,eAAWC,gCAAeC,qBAAAA;AAChC,SAAOF,SAAS,CAAC,CAAA;AACnB;AAEA,IAAMG,mBAAmBC,sBAAOC,OAAO;EACrCC,YAAYF,sBAAOG,MACjBH,sBAAOC,OAAO;IACZG,OAAOJ,sBAAOK;IACdC,IAAIN,sBAAOK;EACb,CAAA,CAAA,EACAE,YAAY;IACZC,aACE;EACJ,CAAA;AACF,CAAA;AAIO,IAAMC,2BAA2B,OACtCC,WAAAA;AAEA,MAAI;AACF,UAAMC,mBAAeC,wCAAuBb,gBAAAA;AAC5C,UAAMc,YAAY,YAAA;AAChB,YAAMC,YAAYC,YAAYC,IAAG;AACjC,YAAMC,SAASN,aAAaO,UAC1B,MAAM,IAAIC,oCAAAA,EAAoBC,M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QAA0B1I,eAAe;MAAK;IACpE,CAAA;AAEAb,eAAAA,IAAIC,KAAK,0BAA0B;MAAEO;IAAY,GAAA;;;;;;AACjD,WAAO0I;EACT;AACF;AAGA,IAAMI,uBAAuB,OAAOxG,WAAAA;AAUlC,SAAOA;AACT;AAEA,IAAMyG,2BAA2B;",
|
|
6
|
+
"names": ["import_types", "import_effect", "import_assistant", "import_echo_schema", "import_keys", "import_log", "import_schema", "createSystemPrompt", "template", "createTemplate", "SYSTEM_PROMPT", "ReferencedQuotes", "Schema", "Struct", "references", "Array", "quote", "String", "id", "annotations", "description", "processTranscriptMessage", "params", "outputParser", "structuredOutputParser", "runParser", "startTime", "performance", "now", "result", "getResult", "MixedStreamParser", "parse", "aiService", "execStream", "model", "systemPrompt", "history", "create", "Message", "role", "content", "type", "text", "JSON", "stringify", "context", "objects", "message", "blocks", "tools", "tool", "log", "info", "refs", "DataType", "map", "block", "i", "postprocessText", "timeElapsed", "options", "timeout", "asyncTimeout", "error", "fallbackToRaw", "warn", "quotes", "ObjectId", "isValid", "regex", "RegExp", "replace", "DXN", "fromLocalObjectId", "toString", "getMeetingTranscript", "meeting", "dispatchPromise", "dispatch", "getCapability", "Capabilities", "IntentDispatcher", "typename", "getSchemaTypename", "TranscriptType", "existing", "artifacts", "load", "space", "getSpace", "invariant", "data", "createIntent", "TranscriptionAction", "Create", "spaceId", "makeRef", "object", "contributes", "AppGraphBuilder", "createExtension", "TRANSCRIPTION_PLUGIN", "actions", "node", "Rx", "make", "get", "pipe", "Option", "flatMap", "isInstanceOf", "MeetingType", "some", "none", "state", "TranscriptionCapabilities", "MeetingTranscriptionState", "enabled", "rxFromSignal", "fullyQualifiedId", "transcript", "callManager", "MeetingCapabilities", "CallManager", "setActivity", "queueDxn", "queue", "dxn", "properties", "label", "ns", "icon", "disposition", "classNames", "getOrElse", "connector", "client", "ClientCapabilities", "Client", "settingsStore", "capabilities", "SettingsStore", "settings", "getStore", "value", "aiClient", "AIServiceEdgeClient", "endpoint", "AI_SERVICE_ENDPOINT", "REMOTE", "ATTENDABLE_PATH_SEPARATOR", "PLANK_COMPANION_TYPE", "target", "position", "schema", "getIntent", "onJoin", "identity", "halo", "messageEnricher", "entityExtraction", "createEntityExtractionEnricher", "contextTypes", "DocumentType", "Person", "Organization", "transcriptionManager", "TranscriptionManager", "edgeClient", "edge", "setIdentityDid", "did", "open", "onLeave", "close", "undefined", "onCallStateUpdated", "callState", "transcription", "activities", "payload", "setQueue", "setEnabled", "onMediaStateUpdated", "mediaState", "isSpeaking", "setAudioTrack", "audioTrack", "setRecording", "db", "query", "Query", "select", "Filter", "or", "s", "run", "enhancedMessage", "Promise", "all", "o", "processContextObject", "ENTITY_EXTRACTOR_TIMEOUT"]
|
|
7
|
+
}
|