@dxos/plugin-transcription 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef
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/blueprints/index.mjs +1 -1
- package/dist/lib/browser/blueprints/index.mjs.map +3 -3
- package/dist/lib/browser/{chunk-5LWSJZTZ.mjs → chunk-3L623EVL.mjs} +2 -2
- package/dist/lib/browser/chunk-3L623EVL.mjs.map +7 -0
- package/dist/lib/browser/{chunk-HOOPZ7EM.mjs → chunk-KAEXRX3Y.mjs} +1 -1
- package/dist/lib/browser/{chunk-RIUSFL62.mjs → chunk-L4HW35L6.mjs} +4 -5
- package/dist/lib/browser/chunk-L4HW35L6.mjs.map +7 -0
- package/dist/lib/browser/chunk-MLRJWAQH.mjs +179 -0
- package/dist/lib/browser/chunk-MLRJWAQH.mjs.map +7 -0
- package/dist/lib/browser/chunk-NQQK7UZQ.mjs +244 -0
- package/dist/lib/browser/chunk-NQQK7UZQ.mjs.map +7 -0
- package/dist/lib/browser/components/index.mjs +207 -0
- package/dist/lib/browser/components/index.mjs.map +7 -0
- package/dist/lib/browser/{create-IZPB7VZW.mjs → create-ULR5DPJZ.mjs} +6 -4
- package/dist/lib/browser/create-ULR5DPJZ.mjs.map +7 -0
- package/dist/lib/browser/hooks/index.mjs +17 -0
- package/dist/lib/browser/hooks/index.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +93 -831
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/open-SFMPLZVW.mjs +27 -0
- package/dist/lib/browser/open-SFMPLZVW.mjs.map +7 -0
- package/dist/lib/browser/operations/index.mjs +3 -3
- package/dist/lib/browser/operations/index.mjs.map +3 -3
- package/dist/lib/browser/{summarize-5MZENAU5.mjs → summarize-BDFX4APN.mjs} +15 -8
- package/dist/lib/browser/summarize-BDFX4APN.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node-esm/blueprints/index.mjs +1 -1
- package/dist/lib/node-esm/blueprints/index.mjs.map +3 -3
- package/dist/lib/node-esm/{chunk-3GSFEN4L.mjs → chunk-7UIZWCD4.mjs} +4 -5
- package/dist/lib/node-esm/chunk-7UIZWCD4.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-C3AE2NYJ.mjs +181 -0
- package/dist/lib/node-esm/chunk-C3AE2NYJ.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-X74WYCCE.mjs → chunk-KO3IOD2O.mjs} +2 -2
- package/dist/lib/node-esm/chunk-KO3IOD2O.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-MQK4R6GT.mjs +245 -0
- package/dist/lib/node-esm/chunk-MQK4R6GT.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-NVM2QUMX.mjs → chunk-O533NBMK.mjs} +1 -1
- package/dist/lib/node-esm/components/index.mjs +208 -0
- package/dist/lib/node-esm/components/index.mjs.map +7 -0
- package/dist/lib/node-esm/{create-TQDGXQBL.mjs → create-A5QHNWRF.mjs} +6 -4
- package/dist/lib/node-esm/create-A5QHNWRF.mjs.map +7 -0
- package/dist/lib/node-esm/hooks/index.mjs +18 -0
- package/dist/lib/node-esm/hooks/index.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +93 -831
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/open-OI24QNTO.mjs +28 -0
- package/dist/lib/node-esm/open-OI24QNTO.mjs.map +7 -0
- package/dist/lib/node-esm/operations/index.mjs +3 -3
- package/dist/lib/node-esm/operations/index.mjs.map +3 -3
- package/dist/lib/node-esm/{summarize-RVOSRHEC.mjs → summarize-3UNN24I2.mjs} +15 -8
- package/dist/lib/node-esm/summarize-3UNN24I2.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/types/src/TranscriptionPlugin.d.ts +1 -0
- package/dist/types/src/TranscriptionPlugin.d.ts.map +1 -1
- package/dist/types/src/TranscriptionPlugin.node.d.ts +4 -0
- package/dist/types/src/TranscriptionPlugin.node.d.ts.map +1 -0
- package/dist/types/src/TranscriptionPlugin.test.d.ts +2 -0
- package/dist/types/src/TranscriptionPlugin.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/transcription-blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/transcription-blueprint.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +2 -2
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +2 -2
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/transcriber.d.ts.map +1 -1
- package/dist/types/src/components/Transcription/Transcription.d.ts +1 -1
- package/dist/types/src/components/Transcription/Transcription.stories.d.ts +7 -7
- package/dist/types/src/components/Transcription/Transcription.stories.d.ts.map +1 -1
- package/dist/types/src/components/Transcription/transcription-extension.d.ts.map +1 -1
- package/dist/types/src/containers/TranscriptionContainer/TranscriptionContainer.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.map +1 -1
- package/dist/types/src/hooks/useTranscriber.d.ts +1 -1
- package/dist/types/src/hooks/useTranscriber.d.ts.map +1 -1
- package/dist/types/src/hooks/useVoiceInput.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/model/model.d.ts +2 -2
- package/dist/types/src/model/model.d.ts.map +1 -1
- package/dist/types/src/{segments-normalization → normalization}/index.d.ts +1 -1
- package/dist/types/src/normalization/index.d.ts.map +1 -0
- package/dist/types/src/normalization/message-normalizer.d.ts.map +1 -0
- package/dist/types/src/{segments-normalization → normalization}/normalization.d.ts +155 -153
- package/dist/types/src/normalization/normalization.d.ts.map +1 -0
- package/dist/types/src/normalization/normalization.test.d.ts.map +1 -0
- package/dist/types/src/normalization/utils.d.ts.map +1 -0
- package/dist/types/src/operations/create.d.ts +1 -1
- package/dist/types/src/operations/create.d.ts.map +1 -1
- package/dist/types/src/operations/definitions.d.ts +394 -382
- package/dist/types/src/operations/definitions.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +1 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/open.d.ts +1 -1
- package/dist/types/src/operations/open.d.ts.map +1 -1
- package/dist/types/src/operations/summarize.d.ts +1 -1
- package/dist/types/src/operations/summarize.d.ts.map +1 -1
- package/dist/types/src/{components/stories → stories}/FileTranscription.stories.d.ts +3 -3
- package/dist/types/src/stories/FileTranscription.stories.d.ts.map +1 -0
- package/dist/types/src/stories/KeyWordRecognition.stories.d.ts.map +1 -0
- package/dist/types/src/{components/stories → stories}/MicrophoneTranscription.stories.d.ts +1 -1
- package/dist/types/src/stories/MicrophoneTranscription.stories.d.ts.map +1 -0
- package/dist/types/src/stories/TranscriptionStory.d.ts +23 -0
- package/dist/types/src/stories/TranscriptionStory.d.ts.map +1 -0
- package/dist/types/src/stories/useIsSpeaking.d.ts.map +1 -0
- package/dist/types/src/testing/testing.d.ts.map +1 -1
- package/dist/types/src/transcriber/index.d.ts +1 -1
- package/dist/types/src/transcriber/index.d.ts.map +1 -1
- package/dist/types/src/transcriber/media-stream-recorder.d.ts.map +1 -1
- package/dist/types/src/transcriber/transcriber.d.ts +57 -2
- package/dist/types/src/transcriber/transcriber.d.ts.map +1 -1
- package/dist/types/src/transcriber/transcriber.test.d.ts +2 -0
- package/dist/types/src/transcriber/transcriber.test.d.ts.map +1 -0
- package/dist/types/src/transcriber/transcription-manager.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +7 -8
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +2 -1
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/src/types/{types.d.ts → defs.d.ts} +1 -1
- package/dist/types/src/types/defs.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +1 -1
- package/dist/types/src/types/index.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/src/util/render-byline.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +76 -67
- package/src/TranscriptionPlugin.node.ts +48 -0
- package/src/TranscriptionPlugin.test.ts +31 -0
- package/src/TranscriptionPlugin.tsx +7 -3
- package/src/blueprints/transcription-blueprint.ts +2 -3
- package/src/capabilities/blueprint-definition.ts +2 -0
- package/src/capabilities/index.ts +2 -1
- package/src/capabilities/operation-handler.ts +1 -1
- package/src/capabilities/react-surface.tsx +4 -2
- package/src/capabilities/transcriber.ts +2 -0
- package/src/components/Transcription/Transcription.stories.tsx +3 -5
- package/src/containers/TranscriptionContainer/TranscriptionContainer.tsx +4 -2
- package/src/hooks/useTranscriber.ts +3 -1
- package/src/index.ts +9 -4
- package/src/model/model.test.ts +3 -3
- package/src/model/model.ts +3 -3
- package/src/{segments-normalization → normalization}/message-normalizer.ts +1 -5
- package/src/{segments-normalization → normalization}/normalization.ts +5 -5
- package/src/operations/create.ts +4 -2
- package/src/operations/definitions.ts +3 -4
- package/src/operations/index.ts +1 -1
- package/src/operations/open.ts +5 -8
- package/src/operations/summarize.ts +11 -7
- package/src/{components/stories → stories}/FileTranscription.stories.tsx +24 -5
- package/src/{components/stories → stories}/KeyWordRecognition.stories.tsx +30 -28
- package/src/{components/stories → stories}/MicrophoneTranscription.stories.tsx +3 -3
- package/src/stories/TranscriptionStory.tsx +93 -0
- package/src/transcriber/index.ts +1 -1
- package/src/transcriber/transcriber.test.ts +104 -0
- package/src/transcriber/transcriber.ts +92 -51
- package/src/types/capabilities.ts +6 -1
- package/src/types/index.ts +1 -1
- package/dist/lib/browser/chunk-5LWSJZTZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-RIUSFL62.mjs.map +0 -7
- package/dist/lib/browser/create-IZPB7VZW.mjs.map +0 -7
- package/dist/lib/browser/open-SN5O5I6X.mjs +0 -29
- package/dist/lib/browser/open-SN5O5I6X.mjs.map +0 -7
- package/dist/lib/browser/summarize-5MZENAU5.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-3GSFEN4L.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-X74WYCCE.mjs.map +0 -7
- package/dist/lib/node-esm/create-TQDGXQBL.mjs.map +0 -7
- package/dist/lib/node-esm/open-4GAAWWKJ.mjs +0 -30
- package/dist/lib/node-esm/open-4GAAWWKJ.mjs.map +0 -7
- package/dist/lib/node-esm/summarize-RVOSRHEC.mjs.map +0 -7
- package/dist/types/src/components/stories/FileTranscription.stories.d.ts.map +0 -1
- package/dist/types/src/components/stories/KeyWordRecognition.stories.d.ts.map +0 -1
- package/dist/types/src/components/stories/MicrophoneTranscription.stories.d.ts.map +0 -1
- package/dist/types/src/components/stories/TranscriptionStory.d.ts +0 -12
- package/dist/types/src/components/stories/TranscriptionStory.d.ts.map +0 -1
- package/dist/types/src/components/stories/useIsSpeaking.d.ts.map +0 -1
- package/dist/types/src/segments-normalization/index.d.ts.map +0 -1
- package/dist/types/src/segments-normalization/message-normalizer.d.ts.map +0 -1
- package/dist/types/src/segments-normalization/normalization.d.ts.map +0 -1
- package/dist/types/src/segments-normalization/normalization.test.d.ts.map +0 -1
- package/dist/types/src/segments-normalization/utils.d.ts.map +0 -1
- package/dist/types/src/types/types.d.ts.map +0 -1
- package/src/components/stories/TranscriptionStory.tsx +0 -43
- package/dist/lib/browser/{chunk-HOOPZ7EM.mjs.map → chunk-KAEXRX3Y.mjs.map} +0 -0
- package/dist/lib/node-esm/{chunk-NVM2QUMX.mjs.map → chunk-O533NBMK.mjs.map} +0 -0
- package/dist/types/src/{segments-normalization → normalization}/message-normalizer.d.ts +0 -0
- package/dist/types/src/{segments-normalization → normalization}/normalization.test.d.ts +0 -0
- package/dist/types/src/{segments-normalization → normalization}/utils.d.ts +0 -0
- package/dist/types/src/{components/stories → stories}/KeyWordRecognition.stories.d.ts +0 -0
- package/dist/types/src/{components/stories → stories}/useIsSpeaking.d.ts +0 -0
- package/src/{segments-normalization → normalization}/index.ts +1 -1
- /package/src/{segments-normalization → normalization}/normalization.test.ts +0 -0
- /package/src/{segments-normalization → normalization}/utils.ts +0 -0
- /package/src/{components/stories → stories}/useIsSpeaking.tsx +0 -0
- /package/src/types/{types.ts → defs.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
|
-
import { Operation } from '@dxos/
|
|
2
|
+
import { Operation } from '@dxos/compute';
|
|
3
3
|
import { SentenceNormalizationOutput, type MessageWithRangeIdType, type SentenceNormalizationInputType } from '../operations/definitions';
|
|
4
4
|
export type MessageWithRangeId = MessageWithRangeIdType;
|
|
5
5
|
/** @deprecated Use SentenceNormalizationInputType */
|
|
@@ -8,25 +8,25 @@ export type NormalizationInput = SentenceNormalizationInputType;
|
|
|
8
8
|
export type NormalizationOutput = Schema.Schema.Type<typeof SentenceNormalizationOutput>;
|
|
9
9
|
/**
|
|
10
10
|
* Sentence normalization for transcription.
|
|
11
|
-
* TODO(dmaretskyi): Reimplement using
|
|
11
|
+
* TODO(dmaretskyi): Reimplement using AiRequest.run or LanguageModel.generateObject - runStructured was removed.
|
|
12
12
|
*/
|
|
13
13
|
export declare const sentenceNormalization: Operation.WithHandler<Operation.Definition<{
|
|
14
14
|
readonly messages: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
15
15
|
readonly id: string;
|
|
16
16
|
readonly parentMessage?: string | undefined;
|
|
17
|
+
readonly threadId?: string | undefined;
|
|
17
18
|
readonly created: string;
|
|
18
19
|
readonly sender: {
|
|
19
|
-
readonly
|
|
20
|
-
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
20
|
+
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
21
21
|
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
22
|
-
readonly image?: string | undefined;
|
|
23
22
|
readonly fullName?: string | undefined;
|
|
24
23
|
readonly preferredName?: string | undefined;
|
|
25
24
|
readonly nickname?: string | undefined;
|
|
25
|
+
readonly image?: string | undefined;
|
|
26
26
|
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
27
|
-
readonly description?: string | undefined;
|
|
28
27
|
readonly name?: string | undefined;
|
|
29
|
-
readonly
|
|
28
|
+
readonly description?: string | undefined;
|
|
29
|
+
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
30
30
|
readonly image?: string | undefined;
|
|
31
31
|
readonly website?: string | undefined;
|
|
32
32
|
} & {
|
|
@@ -36,23 +36,19 @@ export declare const sentenceNormalization: Operation.WithHandler<Operation.Defi
|
|
|
36
36
|
readonly department?: string | undefined;
|
|
37
37
|
readonly notes?: string | undefined;
|
|
38
38
|
readonly emails?: readonly {
|
|
39
|
-
readonly value: string;
|
|
40
39
|
readonly label?: string | undefined;
|
|
40
|
+
readonly value: string;
|
|
41
41
|
}[] | undefined;
|
|
42
42
|
readonly identities?: readonly {
|
|
43
|
-
readonly value: string;
|
|
44
43
|
readonly label?: string | undefined;
|
|
44
|
+
readonly value: string;
|
|
45
45
|
}[] | undefined;
|
|
46
46
|
readonly phoneNumbers?: readonly {
|
|
47
|
-
readonly value: string;
|
|
48
47
|
readonly label?: string | undefined;
|
|
49
|
-
}[] | undefined;
|
|
50
|
-
readonly fields?: readonly {
|
|
51
48
|
readonly value: string;
|
|
52
|
-
readonly label: string;
|
|
53
|
-
readonly category?: string | undefined;
|
|
54
49
|
}[] | undefined;
|
|
55
50
|
readonly addresses?: readonly {
|
|
51
|
+
readonly label?: string | undefined;
|
|
56
52
|
readonly value: {
|
|
57
53
|
readonly street?: string | undefined;
|
|
58
54
|
readonly extended?: string | undefined;
|
|
@@ -62,62 +58,40 @@ export declare const sentenceNormalization: Operation.WithHandler<Operation.Defi
|
|
|
62
58
|
readonly postOfficeBoxNumber?: string | undefined;
|
|
63
59
|
readonly country?: string | undefined;
|
|
64
60
|
};
|
|
65
|
-
readonly label?: string | undefined;
|
|
66
61
|
}[] | undefined;
|
|
67
62
|
readonly urls?: readonly {
|
|
68
|
-
readonly value: string;
|
|
69
63
|
readonly label?: string | undefined;
|
|
64
|
+
readonly value: string;
|
|
70
65
|
}[] | undefined;
|
|
71
66
|
readonly birthday?: string | undefined;
|
|
67
|
+
readonly fields?: readonly {
|
|
68
|
+
readonly category?: string | undefined;
|
|
69
|
+
readonly label: string;
|
|
70
|
+
readonly value: string;
|
|
71
|
+
}[] | undefined;
|
|
72
72
|
} & {
|
|
73
73
|
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
74
74
|
}> | undefined;
|
|
75
75
|
readonly identityDid?: string | undefined;
|
|
76
76
|
readonly identityKey?: string | undefined;
|
|
77
77
|
readonly email?: string | undefined;
|
|
78
|
+
readonly name?: string | undefined;
|
|
78
79
|
};
|
|
79
80
|
readonly blocks: readonly ({
|
|
81
|
+
readonly _tag: "anchor";
|
|
80
82
|
readonly pending?: boolean | undefined;
|
|
81
|
-
readonly
|
|
82
|
-
readonly
|
|
83
|
-
readonly disposition?: string | undefined;
|
|
84
|
-
readonly _tag: "text";
|
|
85
|
-
} | {
|
|
86
|
-
readonly pending?: boolean | undefined;
|
|
87
|
-
readonly _tag: "reasoning";
|
|
88
|
-
readonly reasoningText?: string | undefined;
|
|
89
|
-
readonly redactedText?: string | undefined;
|
|
90
|
-
readonly signature?: string | undefined;
|
|
91
|
-
} | {
|
|
92
|
-
readonly name: string;
|
|
93
|
-
readonly pending?: boolean | undefined;
|
|
94
|
-
readonly _tag: "toolCall";
|
|
95
|
-
readonly toolCallId: string;
|
|
96
|
-
readonly input: string;
|
|
97
|
-
readonly providerExecuted: boolean;
|
|
83
|
+
readonly objectId: string;
|
|
84
|
+
readonly version: unknown;
|
|
98
85
|
} | {
|
|
99
|
-
readonly
|
|
86
|
+
readonly _tag: "file";
|
|
100
87
|
readonly pending?: boolean | undefined;
|
|
101
|
-
readonly
|
|
102
|
-
readonly
|
|
103
|
-
readonly
|
|
104
|
-
readonly result?: string | undefined;
|
|
105
|
-
readonly error?: string | undefined;
|
|
88
|
+
readonly url: string;
|
|
89
|
+
readonly name?: string | undefined;
|
|
90
|
+
readonly mediaType?: string | undefined;
|
|
106
91
|
} | {
|
|
92
|
+
readonly _tag: "image";
|
|
107
93
|
readonly pending?: boolean | undefined;
|
|
108
|
-
readonly
|
|
109
|
-
readonly _tag: "stats";
|
|
110
|
-
readonly message?: string | undefined;
|
|
111
|
-
readonly model?: string | undefined;
|
|
112
|
-
readonly usage?: {
|
|
113
|
-
readonly inputTokens?: number | undefined;
|
|
114
|
-
readonly outputTokens?: number | undefined;
|
|
115
|
-
readonly totalTokens?: number | undefined;
|
|
116
|
-
} | undefined;
|
|
117
|
-
readonly toolCalls?: number | undefined;
|
|
118
|
-
readonly errors?: number | undefined;
|
|
119
|
-
readonly duration?: number | undefined;
|
|
120
|
-
} | {
|
|
94
|
+
readonly id?: string | undefined;
|
|
121
95
|
readonly source?: {
|
|
122
96
|
readonly type: "base64";
|
|
123
97
|
readonly mediaType: string;
|
|
@@ -126,57 +100,84 @@ export declare const sentenceNormalization: Operation.WithHandler<Operation.Defi
|
|
|
126
100
|
readonly type: "http";
|
|
127
101
|
readonly url: string;
|
|
128
102
|
} | undefined;
|
|
129
|
-
|
|
103
|
+
} | {
|
|
104
|
+
readonly _tag: "json";
|
|
130
105
|
readonly pending?: boolean | undefined;
|
|
131
|
-
readonly
|
|
106
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
107
|
+
readonly data: string;
|
|
132
108
|
} | {
|
|
133
|
-
readonly
|
|
109
|
+
readonly _tag: "proposal";
|
|
134
110
|
readonly pending?: boolean | undefined;
|
|
135
|
-
readonly
|
|
136
|
-
readonly mediaType?: string | undefined;
|
|
137
|
-
readonly url: string;
|
|
111
|
+
readonly text: string;
|
|
138
112
|
} | {
|
|
113
|
+
readonly _tag: "reasoning";
|
|
139
114
|
readonly pending?: boolean | undefined;
|
|
115
|
+
readonly reasoningText?: string | undefined;
|
|
116
|
+
readonly redactedText?: string | undefined;
|
|
117
|
+
readonly signature?: string | undefined;
|
|
118
|
+
} | {
|
|
140
119
|
readonly _tag: "reference";
|
|
120
|
+
readonly pending?: boolean | undefined;
|
|
141
121
|
readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
142
122
|
} | {
|
|
123
|
+
readonly _tag: "select";
|
|
143
124
|
readonly pending?: boolean | undefined;
|
|
144
|
-
readonly
|
|
145
|
-
readonly _tag: "transcript";
|
|
146
|
-
readonly started: string;
|
|
125
|
+
readonly options: string[];
|
|
147
126
|
} | {
|
|
148
|
-
readonly pending?: boolean | undefined;
|
|
149
127
|
readonly _tag: "status";
|
|
128
|
+
readonly pending?: boolean | undefined;
|
|
150
129
|
readonly statusText: string;
|
|
151
130
|
} | {
|
|
152
|
-
readonly pending?: boolean | undefined;
|
|
153
|
-
readonly text: string;
|
|
154
131
|
readonly _tag: "suggestion";
|
|
155
|
-
} | {
|
|
156
132
|
readonly pending?: boolean | undefined;
|
|
157
|
-
readonly
|
|
158
|
-
readonly options: string[];
|
|
133
|
+
readonly text: string;
|
|
159
134
|
} | {
|
|
160
|
-
readonly
|
|
135
|
+
readonly _tag: "stats";
|
|
161
136
|
readonly pending?: boolean | undefined;
|
|
162
|
-
readonly
|
|
163
|
-
readonly
|
|
137
|
+
readonly mimeType?: string | undefined;
|
|
138
|
+
readonly message?: string | undefined;
|
|
139
|
+
readonly model?: string | undefined;
|
|
140
|
+
readonly usage?: {
|
|
141
|
+
readonly inputTokens?: number | undefined;
|
|
142
|
+
readonly outputTokens?: number | undefined;
|
|
143
|
+
readonly totalTokens?: number | undefined;
|
|
144
|
+
} | undefined;
|
|
145
|
+
readonly toolCalls?: number | undefined;
|
|
146
|
+
readonly errors?: number | undefined;
|
|
147
|
+
readonly duration?: number | undefined;
|
|
164
148
|
} | {
|
|
149
|
+
readonly _tag: "text";
|
|
165
150
|
readonly pending?: boolean | undefined;
|
|
151
|
+
readonly mimeType?: string | undefined;
|
|
166
152
|
readonly text: string;
|
|
167
|
-
readonly
|
|
153
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
168
154
|
} | {
|
|
169
|
-
readonly pending?: boolean | undefined;
|
|
170
155
|
readonly _tag: "summary";
|
|
156
|
+
readonly pending?: boolean | undefined;
|
|
171
157
|
readonly content: string;
|
|
172
158
|
} | {
|
|
173
|
-
readonly pending?: boolean | undefined;
|
|
174
159
|
readonly _tag: "toolkit";
|
|
160
|
+
readonly pending?: boolean | undefined;
|
|
175
161
|
} | {
|
|
162
|
+
readonly _tag: "toolCall";
|
|
176
163
|
readonly pending?: boolean | undefined;
|
|
177
|
-
readonly
|
|
178
|
-
readonly
|
|
179
|
-
readonly
|
|
164
|
+
readonly toolCallId: string;
|
|
165
|
+
readonly name: string;
|
|
166
|
+
readonly input: string;
|
|
167
|
+
readonly providerExecuted: boolean;
|
|
168
|
+
} | {
|
|
169
|
+
readonly _tag: "toolResult";
|
|
170
|
+
readonly pending?: boolean | undefined;
|
|
171
|
+
readonly toolCallId: string;
|
|
172
|
+
readonly name: string;
|
|
173
|
+
readonly result?: string | undefined;
|
|
174
|
+
readonly error?: string | undefined;
|
|
175
|
+
readonly providerExecuted: boolean;
|
|
176
|
+
} | {
|
|
177
|
+
readonly _tag: "transcript";
|
|
178
|
+
readonly pending?: boolean | undefined;
|
|
179
|
+
readonly started: string;
|
|
180
|
+
readonly text: string;
|
|
180
181
|
})[];
|
|
181
182
|
readonly properties?: {
|
|
182
183
|
readonly [x: string]: any;
|
|
@@ -186,22 +187,22 @@ export declare const sentenceNormalization: Operation.WithHandler<Operation.Defi
|
|
|
186
187
|
})[];
|
|
187
188
|
}, {
|
|
188
189
|
readonly sentences: {
|
|
189
|
-
id: import("@dxos/keys").ObjectId;
|
|
190
190
|
"~@dxos/echo/Kind": import("@dxos/echo/internal").EntityKind.Object;
|
|
191
|
-
|
|
191
|
+
id: import("@dxos/keys").ObjectId;
|
|
192
|
+
parentMessage?: string | undefined;
|
|
193
|
+
threadId?: string | undefined;
|
|
192
194
|
created: string;
|
|
193
195
|
sender: {
|
|
194
|
-
readonly
|
|
195
|
-
readonly role?: "user" | "assistant" | "tool" | undefined;
|
|
196
|
+
readonly role?: "assistant" | "tool" | "user" | undefined;
|
|
196
197
|
readonly contact?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
197
|
-
readonly image?: string | undefined;
|
|
198
198
|
readonly fullName?: string | undefined;
|
|
199
199
|
readonly preferredName?: string | undefined;
|
|
200
200
|
readonly nickname?: string | undefined;
|
|
201
|
+
readonly image?: string | undefined;
|
|
201
202
|
readonly organization?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
202
|
-
readonly description?: string | undefined;
|
|
203
203
|
readonly name?: string | undefined;
|
|
204
|
-
readonly
|
|
204
|
+
readonly description?: string | undefined;
|
|
205
|
+
readonly status?: "active" | "commit" | "prospect" | "qualified" | "reject" | undefined;
|
|
205
206
|
readonly image?: string | undefined;
|
|
206
207
|
readonly website?: string | undefined;
|
|
207
208
|
} & {
|
|
@@ -211,23 +212,19 @@ export declare const sentenceNormalization: Operation.WithHandler<Operation.Defi
|
|
|
211
212
|
readonly department?: string | undefined;
|
|
212
213
|
readonly notes?: string | undefined;
|
|
213
214
|
readonly emails?: readonly {
|
|
214
|
-
readonly value: string;
|
|
215
215
|
readonly label?: string | undefined;
|
|
216
|
+
readonly value: string;
|
|
216
217
|
}[] | undefined;
|
|
217
218
|
readonly identities?: readonly {
|
|
218
|
-
readonly value: string;
|
|
219
219
|
readonly label?: string | undefined;
|
|
220
|
+
readonly value: string;
|
|
220
221
|
}[] | undefined;
|
|
221
222
|
readonly phoneNumbers?: readonly {
|
|
222
|
-
readonly value: string;
|
|
223
223
|
readonly label?: string | undefined;
|
|
224
|
-
}[] | undefined;
|
|
225
|
-
readonly fields?: readonly {
|
|
226
224
|
readonly value: string;
|
|
227
|
-
readonly label: string;
|
|
228
|
-
readonly category?: string | undefined;
|
|
229
225
|
}[] | undefined;
|
|
230
226
|
readonly addresses?: readonly {
|
|
227
|
+
readonly label?: string | undefined;
|
|
231
228
|
readonly value: {
|
|
232
229
|
readonly street?: string | undefined;
|
|
233
230
|
readonly extended?: string | undefined;
|
|
@@ -237,62 +234,40 @@ export declare const sentenceNormalization: Operation.WithHandler<Operation.Defi
|
|
|
237
234
|
readonly postOfficeBoxNumber?: string | undefined;
|
|
238
235
|
readonly country?: string | undefined;
|
|
239
236
|
};
|
|
240
|
-
readonly label?: string | undefined;
|
|
241
237
|
}[] | undefined;
|
|
242
238
|
readonly urls?: readonly {
|
|
243
|
-
readonly value: string;
|
|
244
239
|
readonly label?: string | undefined;
|
|
240
|
+
readonly value: string;
|
|
245
241
|
}[] | undefined;
|
|
246
242
|
readonly birthday?: string | undefined;
|
|
243
|
+
readonly fields?: readonly {
|
|
244
|
+
readonly category?: string | undefined;
|
|
245
|
+
readonly label: string;
|
|
246
|
+
readonly value: string;
|
|
247
|
+
}[] | undefined;
|
|
247
248
|
} & {
|
|
248
249
|
readonly location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
249
250
|
}> | undefined;
|
|
250
251
|
readonly identityDid?: string | undefined;
|
|
251
252
|
readonly identityKey?: string | undefined;
|
|
252
253
|
readonly email?: string | undefined;
|
|
254
|
+
readonly name?: string | undefined;
|
|
253
255
|
};
|
|
254
256
|
blocks: readonly ({
|
|
257
|
+
readonly _tag: "anchor";
|
|
255
258
|
readonly pending?: boolean | undefined;
|
|
256
|
-
readonly
|
|
257
|
-
readonly
|
|
258
|
-
readonly disposition?: string | undefined;
|
|
259
|
-
readonly _tag: "text";
|
|
260
|
-
} | {
|
|
261
|
-
readonly pending?: boolean | undefined;
|
|
262
|
-
readonly _tag: "reasoning";
|
|
263
|
-
readonly reasoningText?: string | undefined;
|
|
264
|
-
readonly redactedText?: string | undefined;
|
|
265
|
-
readonly signature?: string | undefined;
|
|
266
|
-
} | {
|
|
267
|
-
readonly name: string;
|
|
268
|
-
readonly pending?: boolean | undefined;
|
|
269
|
-
readonly _tag: "toolCall";
|
|
270
|
-
readonly toolCallId: string;
|
|
271
|
-
readonly input: string;
|
|
272
|
-
readonly providerExecuted: boolean;
|
|
259
|
+
readonly objectId: string;
|
|
260
|
+
readonly version: unknown;
|
|
273
261
|
} | {
|
|
274
|
-
readonly
|
|
262
|
+
readonly _tag: "file";
|
|
275
263
|
readonly pending?: boolean | undefined;
|
|
276
|
-
readonly
|
|
277
|
-
readonly
|
|
278
|
-
readonly
|
|
279
|
-
readonly result?: string | undefined;
|
|
280
|
-
readonly error?: string | undefined;
|
|
264
|
+
readonly url: string;
|
|
265
|
+
readonly name?: string | undefined;
|
|
266
|
+
readonly mediaType?: string | undefined;
|
|
281
267
|
} | {
|
|
268
|
+
readonly _tag: "image";
|
|
282
269
|
readonly pending?: boolean | undefined;
|
|
283
|
-
readonly
|
|
284
|
-
readonly _tag: "stats";
|
|
285
|
-
readonly message?: string | undefined;
|
|
286
|
-
readonly model?: string | undefined;
|
|
287
|
-
readonly usage?: {
|
|
288
|
-
readonly inputTokens?: number | undefined;
|
|
289
|
-
readonly outputTokens?: number | undefined;
|
|
290
|
-
readonly totalTokens?: number | undefined;
|
|
291
|
-
} | undefined;
|
|
292
|
-
readonly toolCalls?: number | undefined;
|
|
293
|
-
readonly errors?: number | undefined;
|
|
294
|
-
readonly duration?: number | undefined;
|
|
295
|
-
} | {
|
|
270
|
+
readonly id?: string | undefined;
|
|
296
271
|
readonly source?: {
|
|
297
272
|
readonly type: "base64";
|
|
298
273
|
readonly mediaType: string;
|
|
@@ -301,61 +276,88 @@ export declare const sentenceNormalization: Operation.WithHandler<Operation.Defi
|
|
|
301
276
|
readonly type: "http";
|
|
302
277
|
readonly url: string;
|
|
303
278
|
} | undefined;
|
|
304
|
-
|
|
279
|
+
} | {
|
|
280
|
+
readonly _tag: "json";
|
|
305
281
|
readonly pending?: boolean | undefined;
|
|
306
|
-
readonly
|
|
282
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
283
|
+
readonly data: string;
|
|
307
284
|
} | {
|
|
308
|
-
readonly
|
|
285
|
+
readonly _tag: "proposal";
|
|
309
286
|
readonly pending?: boolean | undefined;
|
|
310
|
-
readonly
|
|
311
|
-
readonly mediaType?: string | undefined;
|
|
312
|
-
readonly url: string;
|
|
287
|
+
readonly text: string;
|
|
313
288
|
} | {
|
|
289
|
+
readonly _tag: "reasoning";
|
|
314
290
|
readonly pending?: boolean | undefined;
|
|
291
|
+
readonly reasoningText?: string | undefined;
|
|
292
|
+
readonly redactedText?: string | undefined;
|
|
293
|
+
readonly signature?: string | undefined;
|
|
294
|
+
} | {
|
|
315
295
|
readonly _tag: "reference";
|
|
296
|
+
readonly pending?: boolean | undefined;
|
|
316
297
|
readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
317
298
|
} | {
|
|
299
|
+
readonly _tag: "select";
|
|
318
300
|
readonly pending?: boolean | undefined;
|
|
319
|
-
readonly
|
|
320
|
-
readonly _tag: "transcript";
|
|
321
|
-
readonly started: string;
|
|
301
|
+
readonly options: string[];
|
|
322
302
|
} | {
|
|
323
|
-
readonly pending?: boolean | undefined;
|
|
324
303
|
readonly _tag: "status";
|
|
304
|
+
readonly pending?: boolean | undefined;
|
|
325
305
|
readonly statusText: string;
|
|
326
306
|
} | {
|
|
327
|
-
readonly pending?: boolean | undefined;
|
|
328
|
-
readonly text: string;
|
|
329
307
|
readonly _tag: "suggestion";
|
|
330
|
-
} | {
|
|
331
308
|
readonly pending?: boolean | undefined;
|
|
332
|
-
readonly
|
|
333
|
-
readonly options: string[];
|
|
309
|
+
readonly text: string;
|
|
334
310
|
} | {
|
|
335
|
-
readonly
|
|
311
|
+
readonly _tag: "stats";
|
|
336
312
|
readonly pending?: boolean | undefined;
|
|
337
|
-
readonly
|
|
338
|
-
readonly
|
|
313
|
+
readonly mimeType?: string | undefined;
|
|
314
|
+
readonly message?: string | undefined;
|
|
315
|
+
readonly model?: string | undefined;
|
|
316
|
+
readonly usage?: {
|
|
317
|
+
readonly inputTokens?: number | undefined;
|
|
318
|
+
readonly outputTokens?: number | undefined;
|
|
319
|
+
readonly totalTokens?: number | undefined;
|
|
320
|
+
} | undefined;
|
|
321
|
+
readonly toolCalls?: number | undefined;
|
|
322
|
+
readonly errors?: number | undefined;
|
|
323
|
+
readonly duration?: number | undefined;
|
|
339
324
|
} | {
|
|
325
|
+
readonly _tag: "text";
|
|
340
326
|
readonly pending?: boolean | undefined;
|
|
327
|
+
readonly mimeType?: string | undefined;
|
|
341
328
|
readonly text: string;
|
|
342
|
-
readonly
|
|
329
|
+
readonly disposition?: "cot" | "synthetic" | "user" | "version-pin" | undefined;
|
|
343
330
|
} | {
|
|
344
|
-
readonly pending?: boolean | undefined;
|
|
345
331
|
readonly _tag: "summary";
|
|
332
|
+
readonly pending?: boolean | undefined;
|
|
346
333
|
readonly content: string;
|
|
347
334
|
} | {
|
|
348
|
-
readonly pending?: boolean | undefined;
|
|
349
335
|
readonly _tag: "toolkit";
|
|
336
|
+
readonly pending?: boolean | undefined;
|
|
350
337
|
} | {
|
|
338
|
+
readonly _tag: "toolCall";
|
|
351
339
|
readonly pending?: boolean | undefined;
|
|
352
|
-
readonly
|
|
353
|
-
readonly
|
|
354
|
-
readonly
|
|
340
|
+
readonly toolCallId: string;
|
|
341
|
+
readonly name: string;
|
|
342
|
+
readonly input: string;
|
|
343
|
+
readonly providerExecuted: boolean;
|
|
344
|
+
} | {
|
|
345
|
+
readonly _tag: "toolResult";
|
|
346
|
+
readonly pending?: boolean | undefined;
|
|
347
|
+
readonly toolCallId: string;
|
|
348
|
+
readonly name: string;
|
|
349
|
+
readonly result?: string | undefined;
|
|
350
|
+
readonly error?: string | undefined;
|
|
351
|
+
readonly providerExecuted: boolean;
|
|
352
|
+
} | {
|
|
353
|
+
readonly _tag: "transcript";
|
|
354
|
+
readonly pending?: boolean | undefined;
|
|
355
|
+
readonly started: string;
|
|
356
|
+
readonly text: string;
|
|
355
357
|
})[];
|
|
356
358
|
properties?: {
|
|
357
359
|
readonly [x: string]: any;
|
|
358
|
-
} | undefined
|
|
360
|
+
} | undefined;
|
|
359
361
|
rangeId?: readonly string[] | undefined;
|
|
360
362
|
}[];
|
|
361
363
|
}, never>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalization.d.ts","sourceRoot":"","sources":["../../../../src/normalization/normalization.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI1C,OAAO,EAEL,2BAA2B,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,8BAA8B,EACpC,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;AAExD,qDAAqD;AACrD,MAAM,MAAM,kBAAkB,GAAG,8BAA8B,CAAC;AAEhE,kDAAkD;AAClD,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEzF;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAYjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalization.test.d.ts","sourceRoot":"","sources":["../../../../src/normalization/normalization.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/normalization/utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,eAAO,MAAM,UAAU,UAAW,KAAK,CAAC,KAAK,WAE5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/operations/create.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/operations/create.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI1C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,MAAM,CASjD,CAAC;eAEa,OAAO"}
|