@dxos/plugin-transcription 0.8.4-main.9735255 → 0.8.4-main.9be5663bfe

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.
Files changed (225) hide show
  1. package/dist/lib/browser/blueprints/index.mjs +27 -5
  2. package/dist/lib/browser/blueprints/index.mjs.map +4 -4
  3. package/dist/lib/browser/chunk-5LWSJZTZ.mjs +17 -0
  4. package/dist/lib/browser/chunk-5LWSJZTZ.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-RIUSFL62.mjs +112 -0
  6. package/dist/lib/browser/chunk-RIUSFL62.mjs.map +7 -0
  7. package/dist/lib/browser/create-IZPB7VZW.mjs +19 -0
  8. package/dist/lib/browser/create-IZPB7VZW.mjs.map +7 -0
  9. package/dist/lib/browser/index.mjs +1154 -60
  10. package/dist/lib/browser/index.mjs.map +4 -4
  11. package/dist/lib/browser/meta.json +1 -1
  12. package/dist/lib/browser/open-SN5O5I6X.mjs +29 -0
  13. package/dist/lib/browser/open-SN5O5I6X.mjs.map +7 -0
  14. package/dist/lib/browser/operations/index.mjs +13 -0
  15. package/dist/lib/browser/operations/index.mjs.map +7 -0
  16. package/dist/lib/browser/summarize-5MZENAU5.mjs +71 -0
  17. package/dist/lib/browser/summarize-5MZENAU5.mjs.map +7 -0
  18. package/dist/lib/browser/types/index.mjs +1 -5
  19. package/dist/lib/node-esm/blueprints/index.mjs +27 -5
  20. package/dist/lib/node-esm/blueprints/index.mjs.map +4 -4
  21. package/dist/lib/node-esm/chunk-3GSFEN4L.mjs +113 -0
  22. package/dist/lib/node-esm/chunk-3GSFEN4L.mjs.map +7 -0
  23. package/dist/lib/node-esm/chunk-X74WYCCE.mjs +19 -0
  24. package/dist/lib/node-esm/chunk-X74WYCCE.mjs.map +7 -0
  25. package/dist/lib/node-esm/create-TQDGXQBL.mjs +20 -0
  26. package/dist/lib/node-esm/create-TQDGXQBL.mjs.map +7 -0
  27. package/dist/lib/node-esm/index.mjs +1154 -60
  28. package/dist/lib/node-esm/index.mjs.map +4 -4
  29. package/dist/lib/node-esm/meta.json +1 -1
  30. package/dist/lib/node-esm/open-4GAAWWKJ.mjs +30 -0
  31. package/dist/lib/node-esm/open-4GAAWWKJ.mjs.map +7 -0
  32. package/dist/lib/node-esm/operations/index.mjs +14 -0
  33. package/dist/lib/node-esm/operations/index.mjs.map +7 -0
  34. package/dist/lib/node-esm/summarize-RVOSRHEC.mjs +72 -0
  35. package/dist/lib/node-esm/summarize-RVOSRHEC.mjs.map +7 -0
  36. package/dist/lib/node-esm/types/index.mjs +1 -5
  37. package/dist/types/src/TranscriptionPlugin.d.ts.map +1 -1
  38. package/dist/types/src/blueprints/index.d.ts +1 -1
  39. package/dist/types/src/blueprints/index.d.ts.map +1 -1
  40. package/dist/types/src/blueprints/transcription-blueprint.d.ts +3 -20
  41. package/dist/types/src/blueprints/transcription-blueprint.d.ts.map +1 -1
  42. package/dist/types/src/capabilities/blueprint-definition.d.ts +6 -0
  43. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
  44. package/dist/types/src/capabilities/index.d.ts +6 -4
  45. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  46. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  47. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  48. package/dist/types/src/capabilities/react-surface.d.ts +5 -0
  49. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  50. package/dist/types/src/capabilities/transcriber.d.ts +9 -0
  51. package/dist/types/src/capabilities/transcriber.d.ts.map +1 -0
  52. package/dist/types/src/components/{Transcript/Transcript.d.ts → Transcription/Transcription.d.ts} +6 -5
  53. package/dist/types/src/components/Transcription/Transcription.d.ts.map +1 -0
  54. package/dist/types/src/components/{Transcript/Transcript.stories.d.ts → Transcription/Transcription.stories.d.ts} +12 -12
  55. package/dist/types/src/components/Transcription/Transcription.stories.d.ts.map +1 -0
  56. package/dist/types/src/components/Transcription/index.d.ts +2 -0
  57. package/dist/types/src/components/Transcription/index.d.ts.map +1 -0
  58. package/dist/types/src/components/{Transcript/transcript-extension.d.ts → Transcription/transcription-extension.d.ts} +3 -3
  59. package/dist/types/src/components/Transcription/transcription-extension.d.ts.map +1 -0
  60. package/dist/types/src/components/index.d.ts +1 -3
  61. package/dist/types/src/components/index.d.ts.map +1 -1
  62. package/dist/types/src/components/stories/FileTranscription.stories.d.ts.map +1 -1
  63. package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts +2 -2
  64. package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts.map +1 -1
  65. package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts +2 -2
  66. package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts.map +1 -1
  67. package/dist/types/src/components/stories/TranscriptionStory.d.ts.map +1 -1
  68. package/dist/types/src/containers/TranscriptionContainer/TranscriptionContainer.d.ts +6 -0
  69. package/dist/types/src/containers/TranscriptionContainer/TranscriptionContainer.d.ts.map +1 -0
  70. package/dist/types/src/containers/TranscriptionContainer/index.d.ts +2 -0
  71. package/dist/types/src/containers/TranscriptionContainer/index.d.ts.map +1 -0
  72. package/dist/types/src/containers/index.d.ts +3 -0
  73. package/dist/types/src/containers/index.d.ts.map +1 -0
  74. package/dist/types/src/hooks/useTranscriber.d.ts +1 -1
  75. package/dist/types/src/hooks/useTranscriber.d.ts.map +1 -1
  76. package/dist/types/src/hooks/useVoiceInput.d.ts.map +1 -1
  77. package/dist/types/src/operations/create.d.ts +5 -0
  78. package/dist/types/src/operations/create.d.ts.map +1 -0
  79. package/dist/types/src/operations/definitions.d.ts +905 -0
  80. package/dist/types/src/operations/definitions.d.ts.map +1 -0
  81. package/dist/types/src/operations/index.d.ts +4 -0
  82. package/dist/types/src/operations/index.d.ts.map +1 -0
  83. package/dist/types/src/operations/open.d.ts +5 -0
  84. package/dist/types/src/operations/open.d.ts.map +1 -0
  85. package/dist/types/src/operations/summarize.d.ts +8 -0
  86. package/dist/types/src/operations/summarize.d.ts.map +1 -0
  87. package/dist/types/src/segments-normalization/normalization.d.ts +41 -200
  88. package/dist/types/src/segments-normalization/normalization.d.ts.map +1 -1
  89. package/dist/types/src/testing/testing.d.ts.map +1 -1
  90. package/dist/types/src/translations.d.ts +7 -7
  91. package/dist/types/src/translations.d.ts.map +1 -1
  92. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  93. package/dist/types/src/types/index.d.ts +0 -2
  94. package/dist/types/src/types/index.d.ts.map +1 -1
  95. package/dist/types/tsconfig.tsbuildinfo +1 -1
  96. package/package.json +86 -65
  97. package/src/TranscriptionPlugin.tsx +17 -13
  98. package/src/blueprints/index.ts +1 -1
  99. package/src/blueprints/transcription-blueprint.ts +13 -8
  100. package/src/capabilities/blueprint-definition.ts +17 -0
  101. package/src/capabilities/index.ts +10 -4
  102. package/src/capabilities/operation-handler.ts +16 -0
  103. package/src/capabilities/react-surface.tsx +29 -0
  104. package/src/capabilities/{transcriber/transcriber.ts → transcriber.ts} +7 -6
  105. package/src/components/{Transcript/Transcript.stories.tsx → Transcription/Transcription.stories.tsx} +24 -21
  106. package/src/components/Transcription/Transcription.tsx +64 -0
  107. package/src/components/{Transcript → Transcription}/index.ts +1 -1
  108. package/src/components/{Transcript/transcript-extension.ts → Transcription/transcription-extension.ts} +4 -4
  109. package/src/components/index.ts +1 -6
  110. package/src/components/stories/FileTranscription.stories.tsx +11 -13
  111. package/src/components/stories/KeyWordRecognition.stories.tsx +6 -6
  112. package/src/components/stories/MicrophoneTranscription.stories.tsx +17 -35
  113. package/src/components/stories/TranscriptionStory.tsx +7 -5
  114. package/src/containers/TranscriptionContainer/TranscriptionContainer.tsx +33 -0
  115. package/src/containers/TranscriptionContainer/index.ts +5 -0
  116. package/src/containers/index.ts +7 -0
  117. package/src/hooks/useTranscriber.ts +3 -2
  118. package/src/hooks/useVoiceInput.ts +0 -1
  119. package/src/meta.ts +1 -1
  120. package/src/model/model.test.ts +6 -6
  121. package/src/operations/create.ts +22 -0
  122. package/src/operations/definitions.ts +102 -0
  123. package/src/operations/index.ts +13 -0
  124. package/src/operations/open.ts +31 -0
  125. package/src/{functions → operations}/summarize.ts +41 -47
  126. package/src/segments-normalization/normalization.test.ts +2 -2
  127. package/src/segments-normalization/normalization.ts +33 -71
  128. package/src/testing/testing.ts +8 -18
  129. package/src/transcriber/transcriber.browser.test.ts +0 -1
  130. package/src/transcriber/transcriber.ts +2 -2
  131. package/src/translations.ts +7 -7
  132. package/src/types/capabilities.ts +4 -3
  133. package/src/types/index.ts +0 -2
  134. package/dist/lib/browser/TranscriptContainer-6EHKWVS4.mjs +0 -12
  135. package/dist/lib/browser/TranscriptContainer-6EHKWVS4.mjs.map +0 -7
  136. package/dist/lib/browser/blueprint-definition-FTRNMLJZ.mjs +0 -18
  137. package/dist/lib/browser/blueprint-definition-FTRNMLJZ.mjs.map +0 -7
  138. package/dist/lib/browser/chunk-ICM7JRCO.mjs +0 -698
  139. package/dist/lib/browser/chunk-ICM7JRCO.mjs.map +0 -7
  140. package/dist/lib/browser/chunk-Q5OC3WVG.mjs +0 -72
  141. package/dist/lib/browser/chunk-Q5OC3WVG.mjs.map +0 -7
  142. package/dist/lib/browser/chunk-SYGEFDWO.mjs +0 -8
  143. package/dist/lib/browser/chunk-SYGEFDWO.mjs.map +0 -7
  144. package/dist/lib/browser/chunk-TKFU53OZ.mjs +0 -460
  145. package/dist/lib/browser/chunk-TKFU53OZ.mjs.map +0 -7
  146. package/dist/lib/browser/chunk-ZZF7ICVM.mjs +0 -150
  147. package/dist/lib/browser/chunk-ZZF7ICVM.mjs.map +0 -7
  148. package/dist/lib/browser/operation-resolver-ZUWTU7C5.mjs +0 -22
  149. package/dist/lib/browser/operation-resolver-ZUWTU7C5.mjs.map +0 -7
  150. package/dist/lib/browser/react-surface-ZXH5267I.mjs +0 -34
  151. package/dist/lib/browser/react-surface-ZXH5267I.mjs.map +0 -7
  152. package/dist/lib/browser/transcriber-EZZTUCPE.mjs +0 -60
  153. package/dist/lib/browser/transcriber-EZZTUCPE.mjs.map +0 -7
  154. package/dist/lib/node-esm/TranscriptContainer-5YT5W73I.mjs +0 -13
  155. package/dist/lib/node-esm/TranscriptContainer-5YT5W73I.mjs.map +0 -7
  156. package/dist/lib/node-esm/blueprint-definition-IOX35YUX.mjs +0 -19
  157. package/dist/lib/node-esm/blueprint-definition-IOX35YUX.mjs.map +0 -7
  158. package/dist/lib/node-esm/chunk-4BFY6P2D.mjs +0 -73
  159. package/dist/lib/node-esm/chunk-4BFY6P2D.mjs.map +0 -7
  160. package/dist/lib/node-esm/chunk-BX2AB7S7.mjs +0 -699
  161. package/dist/lib/node-esm/chunk-BX2AB7S7.mjs.map +0 -7
  162. package/dist/lib/node-esm/chunk-CWP22IHV.mjs +0 -151
  163. package/dist/lib/node-esm/chunk-CWP22IHV.mjs.map +0 -7
  164. package/dist/lib/node-esm/chunk-EPC27WWV.mjs +0 -461
  165. package/dist/lib/node-esm/chunk-EPC27WWV.mjs.map +0 -7
  166. package/dist/lib/node-esm/chunk-GVAVEVZ6.mjs +0 -10
  167. package/dist/lib/node-esm/chunk-GVAVEVZ6.mjs.map +0 -7
  168. package/dist/lib/node-esm/operation-resolver-Z72B4H2Q.mjs +0 -23
  169. package/dist/lib/node-esm/operation-resolver-Z72B4H2Q.mjs.map +0 -7
  170. package/dist/lib/node-esm/react-surface-6GUBZX2V.mjs +0 -35
  171. package/dist/lib/node-esm/react-surface-6GUBZX2V.mjs.map +0 -7
  172. package/dist/lib/node-esm/transcriber-RGW3YYT4.mjs +0 -61
  173. package/dist/lib/node-esm/transcriber-RGW3YYT4.mjs.map +0 -7
  174. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +0 -9
  175. package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +0 -1
  176. package/dist/types/src/capabilities/blueprint-definition/index.d.ts +0 -3
  177. package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +0 -1
  178. package/dist/types/src/capabilities/operation-handler/index.d.ts +0 -3
  179. package/dist/types/src/capabilities/operation-handler/index.d.ts.map +0 -1
  180. package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts +0 -5
  181. package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts.map +0 -1
  182. package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
  183. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
  184. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
  185. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
  186. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
  187. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  188. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -5
  189. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  190. package/dist/types/src/capabilities/transcriber/index.d.ts +0 -3
  191. package/dist/types/src/capabilities/transcriber/index.d.ts.map +0 -1
  192. package/dist/types/src/capabilities/transcriber/transcriber.d.ts +0 -9
  193. package/dist/types/src/capabilities/transcriber/transcriber.d.ts.map +0 -1
  194. package/dist/types/src/components/Transcript/Transcript.d.ts.map +0 -1
  195. package/dist/types/src/components/Transcript/Transcript.stories.d.ts.map +0 -1
  196. package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts +0 -28
  197. package/dist/types/src/components/Transcript/deprecated/OldTranscript.d.ts.map +0 -1
  198. package/dist/types/src/components/Transcript/index.d.ts +0 -2
  199. package/dist/types/src/components/Transcript/index.d.ts.map +0 -1
  200. package/dist/types/src/components/Transcript/transcript-extension.d.ts.map +0 -1
  201. package/dist/types/src/components/TranscriptContainer.d.ts +0 -7
  202. package/dist/types/src/components/TranscriptContainer.d.ts.map +0 -1
  203. package/dist/types/src/functions/index.d.ts +0 -3
  204. package/dist/types/src/functions/index.d.ts.map +0 -1
  205. package/dist/types/src/functions/open.d.ts +0 -7
  206. package/dist/types/src/functions/open.d.ts.map +0 -1
  207. package/dist/types/src/functions/summarize.d.ts +0 -11
  208. package/dist/types/src/functions/summarize.d.ts.map +0 -1
  209. package/dist/types/src/types/TranscriptAction.d.ts +0 -25
  210. package/dist/types/src/types/TranscriptAction.d.ts.map +0 -1
  211. package/src/capabilities/blueprint-definition/blueprint-definition.ts +0 -23
  212. package/src/capabilities/blueprint-definition/index.ts +0 -7
  213. package/src/capabilities/operation-handler/index.ts +0 -7
  214. package/src/capabilities/operation-handler/operation-handler.ts +0 -25
  215. package/src/capabilities/operation-resolver/index.ts +0 -7
  216. package/src/capabilities/operation-resolver/operation-resolver.ts +0 -25
  217. package/src/capabilities/react-surface/index.ts +0 -7
  218. package/src/capabilities/react-surface/react-surface.tsx +0 -27
  219. package/src/capabilities/transcriber/index.ts +0 -7
  220. package/src/components/Transcript/Transcript.tsx +0 -66
  221. package/src/components/Transcript/deprecated/OldTranscript.tsx +0 -260
  222. package/src/components/TranscriptContainer.tsx +0 -34
  223. package/src/functions/index.ts +0 -6
  224. package/src/functions/open.ts +0 -39
  225. package/src/types/TranscriptAction.ts +0 -32
@@ -1,9 +1,31 @@
1
- import {
2
- transcription_blueprint_exports
3
- } from "../chunk-ZZF7ICVM.mjs";
4
- import "../chunk-HOOPZ7EM.mjs";
5
1
  import "../chunk-J5LGTIGS.mjs";
2
+
3
+ // src/blueprints/transcription-blueprint.ts
4
+ import { Blueprint, Template } from "@dxos/blueprints";
5
+ import { trim } from "@dxos/util";
6
+ import { TranscriptOperation } from "#operations";
7
+ var BLUEPRINT_KEY = "org.dxos.blueprint.transcription";
8
+ var make = () => Blueprint.make({
9
+ key: BLUEPRINT_KEY,
10
+ name: "Transcription",
11
+ tools: Blueprint.toolDefinitions({
12
+ operations: [
13
+ TranscriptOperation.Open,
14
+ TranscriptOperation.Summarize
15
+ ]
16
+ }),
17
+ instructions: Template.make({
18
+ source: trim`
19
+ You can open and summarize a meeting transcript.
20
+ `
21
+ })
22
+ });
23
+ var blueprint = {
24
+ key: BLUEPRINT_KEY,
25
+ make
26
+ };
27
+ var transcription_blueprint_default = blueprint;
6
28
  export {
7
- transcription_blueprint_exports as TranscriptionBlueprint
29
+ transcription_blueprint_default as TranscriptionBlueprint
8
30
  };
9
31
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
3
+ "sources": ["../../../../src/blueprints/transcription-blueprint.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 { TranscriptOperation } from '#operations';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.transcription';\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Transcription',\n tools: Blueprint.toolDefinitions({ operations: [TranscriptOperation.Open, TranscriptOperation.Summarize] }),\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 make,\n};\n\nexport default blueprint;\n"],
5
+ "mappings": ";;;AAKA,SAASA,WAAWC,gBAAgB;AACpC,SAASC,YAAY;AAErB,SAASC,2BAA2B;AAEpC,IAAMC,gBAAgB;AAEtB,IAAMC,OAAO,MACXC,UAAUD,KAAK;EACbE,KAAKH;EACLI,MAAM;EACNC,OAAOH,UAAUI,gBAAgB;IAAEC,YAAY;MAACC,oBAAoBC;MAAMD,oBAAoBE;;EAAW,CAAA;EACzGC,cAAcC,SAASX,KAAK;IAC1BY,QAAQC;;;EAGV,CAAA;AACF,CAAA;AAEF,IAAMC,YAAiD;EACrDZ,KAAKH;EACLC;AACF;AAEA,IAAA,kCAAec;",
6
+ "names": ["Blueprint", "Template", "trim", "TranscriptOperation", "BLUEPRINT_KEY", "make", "Blueprint", "key", "name", "tools", "toolDefinitions", "operations", "TranscriptOperation", "Open", "Summarize", "instructions", "Template", "source", "trim", "blueprint"]
7
7
  }
@@ -0,0 +1,17 @@
1
+ // src/types/capabilities.ts
2
+ import { Capability } from "@dxos/app-framework";
3
+ import { meta } from "#meta";
4
+ (function(TranscriptionCapabilities2) {
5
+ TranscriptionCapabilities2.Transcriber = Capability.make(`${meta.id}.capability.transcriber`);
6
+ TranscriptionCapabilities2.TranscriptionManager = Capability.make(`${meta.id}.capability.transcription-manager`);
7
+ })(TranscriptionCapabilities || (TranscriptionCapabilities = {}));
8
+ var TranscriptionCapabilities;
9
+
10
+ // src/types/types.ts
11
+ var TRANSCRIPTION_URL = "https://calls-service.dxos.workers.dev";
12
+
13
+ export {
14
+ TranscriptionCapabilities,
15
+ TRANSCRIPTION_URL
16
+ };
17
+ //# sourceMappingURL=chunk-5LWSJZTZ.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/types/capabilities.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';\n\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\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;AAE3B,SAASC,YAAY;UAUJC,4BAAAA;6BAQFC,cAAcC,WAAWC,KAAqB,GAAGC,KAAKC,EAAE,yBAAyB;6BAMjFC,uBAAuBJ,WAAWC,KAC7C,GAAGC,KAAKC,EAAE,mCAAmC;AAEjD,GAjBiBL,8BAAAA,4BAAAA,CAAAA,EAAAA;;;;ACRV,IAAMO,oBAAoB;",
6
+ "names": ["Capability", "meta", "TranscriptionCapabilities", "Transcriber", "Capability", "make", "meta", "id", "TranscriptionManager", "TRANSCRIPTION_URL"]
7
+ }
@@ -0,0 +1,112 @@
1
+ import {
2
+ __export
3
+ } from "./chunk-J5LGTIGS.mjs";
4
+
5
+ // src/operations/definitions.ts
6
+ var definitions_exports = {};
7
+ __export(definitions_exports, {
8
+ Create: () => Create,
9
+ MessageWithRangeId: () => MessageWithRangeId,
10
+ Open: () => Open,
11
+ SentenceNormalization: () => SentenceNormalization,
12
+ SentenceNormalizationInput: () => SentenceNormalizationInput,
13
+ SentenceNormalizationOutput: () => SentenceNormalizationOutput,
14
+ Summarize: () => Summarize
15
+ });
16
+ import * as Schema from "effect/Schema";
17
+ import { AiService } from "@dxos/ai";
18
+ import { SpaceSchema } from "@dxos/client/echo";
19
+ import { Database, Ref } from "@dxos/echo";
20
+ import { QueueService } from "@dxos/functions";
21
+ import { Operation } from "@dxos/operation";
22
+ import { Message, Transcript } from "@dxos/types";
23
+ import { meta } from "#meta";
24
+ var TRANSCRIPT_OPERATION = `${meta.id}.operation`;
25
+ var Create = Operation.make({
26
+ meta: {
27
+ key: `${TRANSCRIPT_OPERATION}.create`,
28
+ name: "Create Transcript"
29
+ },
30
+ input: Schema.Struct({
31
+ name: Schema.optional(Schema.String),
32
+ space: SpaceSchema
33
+ }),
34
+ output: Schema.Struct({
35
+ object: Transcript.Transcript
36
+ })
37
+ });
38
+ var MessageWithRangeId = Schema.extend(Message.Message, Schema.Struct({
39
+ rangeId: Schema.optional(Schema.Array(Schema.String)).annotations({
40
+ description: "The IDs of the messages that contain the sentences."
41
+ })
42
+ }));
43
+ var Open = Operation.make({
44
+ meta: {
45
+ key: "org.dxos.function.transcription.open",
46
+ name: "Open",
47
+ description: "Opens and reads the contents of a transcription object."
48
+ },
49
+ input: Schema.Struct({
50
+ transcript: Ref.Ref(Transcript.Transcript).annotations({
51
+ description: "The ID of the transcription object."
52
+ })
53
+ }),
54
+ output: Schema.Struct({
55
+ content: Schema.String
56
+ }),
57
+ services: [
58
+ Database.Service,
59
+ QueueService
60
+ ]
61
+ });
62
+ var Summarize = Operation.make({
63
+ meta: {
64
+ key: "org.dxos.function.transcription.summarize",
65
+ name: "Summarize",
66
+ description: "Summarize a transcript of a meeting."
67
+ },
68
+ input: Schema.Struct({
69
+ transcript: Schema.String.annotations({
70
+ description: "The transcript of the meeting."
71
+ }),
72
+ notes: Schema.optional(Schema.String).annotations({
73
+ description: "Additional notes from the participants."
74
+ })
75
+ }),
76
+ output: Schema.Struct({
77
+ summary: Schema.String.annotations({
78
+ description: "The summary of the transcript."
79
+ })
80
+ }),
81
+ services: [
82
+ AiService.AiService
83
+ ]
84
+ });
85
+ var SentenceNormalizationInput = Schema.Struct({
86
+ messages: Schema.Array(MessageWithRangeId).annotations({
87
+ description: "Messages to normalize into sentences."
88
+ })
89
+ });
90
+ var SentenceNormalizationOutput = Schema.Struct({
91
+ sentences: Schema.Array(MessageWithRangeId.pipe(Schema.mutable)).pipe(Schema.mutable).annotations({
92
+ description: "The sentences of the transcript."
93
+ })
94
+ });
95
+ var SentenceNormalization = Operation.make({
96
+ meta: {
97
+ key: "org.dxos.function.transcription.sentence-normalization",
98
+ name: "Sentence Normalization",
99
+ description: "Post process of transcription for sentence normalization"
100
+ },
101
+ input: SentenceNormalizationInput,
102
+ output: SentenceNormalizationOutput,
103
+ services: []
104
+ });
105
+
106
+ export {
107
+ Create,
108
+ Open,
109
+ Summarize,
110
+ definitions_exports
111
+ };
112
+ //# sourceMappingURL=chunk-RIUSFL62.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/definitions.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { AiService } from '@dxos/ai';\nimport { SpaceSchema } from '@dxos/client/echo';\nimport { Database, Ref } from '@dxos/echo';\nimport { QueueService } from '@dxos/functions';\nimport { Operation } from '@dxos/operation';\nimport { Message, Transcript } from '@dxos/types';\n\nimport { meta } from '#meta';\n\nconst TRANSCRIPT_OPERATION = `${meta.id}.operation`;\n\nexport const Create = Operation.make({\n meta: { key: `${TRANSCRIPT_OPERATION}.create`, name: 'Create Transcript' },\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\nexport const MessageWithRangeId = Schema.extend(\n Message.Message,\n Schema.Struct({\n rangeId: Schema.optional(Schema.Array(Schema.String)).annotations({\n description: 'The IDs of the messages that contain the sentences.',\n }),\n }),\n);\n\nexport type MessageWithRangeIdType = Schema.Schema.Type<typeof MessageWithRangeId>;\n\nexport const Open = Operation.make({\n meta: {\n key: 'org.dxos.function.transcription.open',\n name: 'Open',\n description: 'Opens and reads the contents of a transcription object.',\n },\n input: Schema.Struct({\n transcript: Ref.Ref(Transcript.Transcript).annotations({\n description: 'The ID of the transcription object.',\n }),\n }),\n output: Schema.Struct({\n content: Schema.String,\n }),\n services: [Database.Service, QueueService],\n});\n\nexport const Summarize = Operation.make({\n meta: {\n key: 'org.dxos.function.transcription.summarize',\n name: 'Summarize',\n description: 'Summarize a transcript of a meeting.',\n },\n input: 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 output: Schema.Struct({\n summary: Schema.String.annotations({\n description: 'The summary of the transcript.',\n }),\n }),\n services: [AiService.AiService],\n});\n\nexport const SentenceNormalizationInput = Schema.Struct({\n messages: Schema.Array(MessageWithRangeId).annotations({\n description: 'Messages to normalize into sentences.',\n }),\n});\n\nexport type SentenceNormalizationInputType = Schema.Schema.Type<typeof SentenceNormalizationInput>;\n\nexport const SentenceNormalizationOutput = Schema.Struct({\n sentences: Schema.Array(MessageWithRangeId.pipe(Schema.mutable)).pipe(Schema.mutable).annotations({\n description: 'The sentences of the transcript.',\n }),\n});\n\nexport const SentenceNormalization = Operation.make({\n meta: {\n key: 'org.dxos.function.transcription.sentence-normalization',\n name: 'Sentence Normalization',\n description: 'Post process of transcription for sentence normalization',\n },\n input: SentenceNormalizationInput,\n output: SentenceNormalizationOutput,\n services: [],\n});\n"],
5
+ "mappings": ";;;;;AAAA;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiB;AAC1B,SAASC,mBAAmB;AAC5B,SAASC,UAAUC,WAAW;AAC9B,SAASC,oBAAoB;AAC7B,SAASC,iBAAiB;AAC1B,SAASC,SAASC,kBAAkB;AAEpC,SAASC,YAAY;AAErB,IAAMC,uBAAuB,GAAGC,KAAKC,EAAE;AAEhC,IAAMC,SAASC,UAAUC,KAAK;EACnCJ,MAAM;IAAEK,KAAK,GAAGN,oBAAAA;IAA+BO,MAAM;EAAoB;EACzEC,OAAcC,cAAO;IACnBF,MAAaG,gBAAgBC,aAAM;IACnCC,OAAOC;EACT,CAAA;EACAC,QAAeL,cAAO;IACpBM,QAAQC,WAAWA;EACrB,CAAA;AACF,CAAA;AAEO,IAAMC,qBAA4BC,cACvCC,QAAQA,SACDV,cAAO;EACZW,SAAgBV,gBAAgBW,aAAaV,aAAM,CAAA,EAAGW,YAAY;IAChEC,aAAa;EACf,CAAA;AACF,CAAA,CAAA;AAKK,IAAMC,OAAOpB,UAAUC,KAAK;EACjCJ,MAAM;IACJK,KAAK;IACLC,MAAM;IACNgB,aAAa;EACf;EACAf,OAAcC,cAAO;IACnBgB,YAAYC,IAAIA,IAAIV,WAAWA,UAAU,EAAEM,YAAY;MACrDC,aAAa;IACf,CAAA;EACF,CAAA;EACAT,QAAeL,cAAO;IACpBkB,SAAgBhB;EAClB,CAAA;EACAiB,UAAU;IAACC,SAASC;IAASC;;AAC/B,CAAA;AAEO,IAAMC,YAAY5B,UAAUC,KAAK;EACtCJ,MAAM;IACJK,KAAK;IACLC,MAAM;IACNgB,aAAa;EACf;EACAf,OAAcC,cAAO;IACnBgB,YAAmBd,cAAOW,YAAY;MACpCC,aAAa;IACf,CAAA;IACAU,OAAcvB,gBAAgBC,aAAM,EAAEW,YAAY;MAChDC,aAAa;IACf,CAAA;EACF,CAAA;EACAT,QAAeL,cAAO;IACpByB,SAAgBvB,cAAOW,YAAY;MACjCC,aAAa;IACf,CAAA;EACF,CAAA;EACAK,UAAU;IAACO,UAAUA;;AACvB,CAAA;AAEO,IAAMC,6BAAoC3B,cAAO;EACtD4B,UAAiBhB,aAAMJ,kBAAAA,EAAoBK,YAAY;IACrDC,aAAa;EACf,CAAA;AACF,CAAA;AAIO,IAAMe,8BAAqC7B,cAAO;EACvD8B,WAAkBlB,aAAMJ,mBAAmBuB,KAAYC,cAAO,CAAA,EAAGD,KAAYC,cAAO,EAAEnB,YAAY;IAChGC,aAAa;EACf,CAAA;AACF,CAAA;AAEO,IAAMmB,wBAAwBtC,UAAUC,KAAK;EAClDJ,MAAM;IACJK,KAAK;IACLC,MAAM;IACNgB,aAAa;EACf;EACAf,OAAO4B;EACPtB,QAAQwB;EACRV,UAAU,CAAA;AACZ,CAAA;",
6
+ "names": ["Schema", "AiService", "SpaceSchema", "Database", "Ref", "QueueService", "Operation", "Message", "Transcript", "meta", "TRANSCRIPT_OPERATION", "meta", "id", "Create", "Operation", "make", "key", "name", "input", "Struct", "optional", "String", "space", "SpaceSchema", "output", "object", "Transcript", "MessageWithRangeId", "extend", "Message", "rangeId", "Array", "annotations", "description", "Open", "transcript", "Ref", "content", "services", "Database", "Service", "QueueService", "Summarize", "notes", "summary", "AiService", "SentenceNormalizationInput", "messages", "SentenceNormalizationOutput", "sentences", "pipe", "mutable", "SentenceNormalization"]
7
+ }
@@ -0,0 +1,19 @@
1
+ import {
2
+ Create
3
+ } from "./chunk-RIUSFL62.mjs";
4
+ import "./chunk-J5LGTIGS.mjs";
5
+
6
+ // src/operations/create.ts
7
+ import * as Effect from "effect/Effect";
8
+ import { Operation } from "@dxos/operation";
9
+ import { Transcript } from "@dxos/types";
10
+ var handler = Create.pipe(Operation.withHandler(Effect.fn(function* ({ space }) {
11
+ return {
12
+ object: Transcript.make(space.queues.create().dxn)
13
+ };
14
+ })));
15
+ var create_default = handler;
16
+ export {
17
+ create_default as default
18
+ };
19
+ //# sourceMappingURL=create-IZPB7VZW.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/create.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Operation } from '@dxos/operation';\nimport { Transcript } from '@dxos/types';\n\nimport { Create } from './definitions';\n\nconst handler: Operation.WithHandler<typeof Create> = Create.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ space }) {\n return {\n object: Transcript.make(space.queues.create().dxn),\n };\n }),\n ),\n);\n\nexport default handler;\n"],
5
+ "mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiB;AAC1B,SAASC,kBAAkB;AAI3B,IAAMC,UAAgDC,OAAOC,KAC3DC,UAAUC,YACDC,UAAG,WAAW,EAAEC,MAAK,GAAE;AAC5B,SAAO;IACLC,QAAQC,WAAWC,KAAKH,MAAMI,OAAOC,OAAM,EAAGC,GAAG;EACnD;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,iBAAeZ;",
6
+ "names": ["Effect", "Operation", "Transcript", "handler", "Create", "pipe", "Operation", "withHandler", "fn", "space", "object", "Transcript", "make", "queues", "create", "dxn"]
7
+ }