@absolutejs/meeting 0.0.1-beta.5 → 0.0.1-beta.6

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.
@@ -0,0 +1,247 @@
1
+ {
2
+ "contract": 1,
3
+ "identity": {
4
+ "accent": "#f97316",
5
+ "category": "voice",
6
+ "description": "Meeting-bot core: join a call through a `MeetingSource` platform adapter (`@absolutejs/meeting-*`), transcribe it live with the `@absolutejs/voice` scribe, and surface diarized turns, the participant roster, and call chat for analysis (deal coaching, summaries, action items). The bot can also speak into the call and post chat where the platform allows.",
7
+ "docsUrl": "https://github.com/absolutejs/meeting",
8
+ "name": "@absolutejs/meeting",
9
+ "tagline": "Put a bot in your meetings — live transcripts and analysis."
10
+ },
11
+ "implements": [
12
+ {
13
+ "contract": "meeting/source",
14
+ "factory": "createBufferMeetingSource",
15
+ "from": "@absolutejs/meeting",
16
+ "settings": {
17
+ "type": "object",
18
+ "properties": {
19
+ "chunkMs": {
20
+ "description": "How often a slice of the buffer is emitted, in milliseconds. Default 40.",
21
+ "minimum": 1,
22
+ "title": "Chunk cadence",
23
+ "type": "number"
24
+ }
25
+ }
26
+ },
27
+ "title": "In-memory audio buffer (testing without a live platform)",
28
+ "wiring": {
29
+ "code": "createBufferMeetingSource({\n\tchunkMs: ${settings.chunkMs},\n\tformat: { channels: 1, container: 'raw', encoding: 'pcm_s16le', sampleRateHz: 16000 },\n\t// TODO: supply raw PCM matching `format` (e.g. a recorded test fixture).\n\tpcm: new Uint8Array(0)\n})",
30
+ "imports": [
31
+ {
32
+ "from": "@absolutejs/meeting",
33
+ "names": [
34
+ "createBufferMeetingSource"
35
+ ]
36
+ }
37
+ ]
38
+ }
39
+ }
40
+ ],
41
+ "settings": {
42
+ "type": "object",
43
+ "properties": {
44
+ "languageStrategy": {
45
+ "description": "What languages the calls are in. Auto-detect works for most teams; pin a language for better accuracy in single-language calls.",
46
+ "title": "Meeting languages",
47
+ "anyOf": [
48
+ {
49
+ "type": "object",
50
+ "required": [
51
+ "mode"
52
+ ],
53
+ "properties": {
54
+ "allowedLanguages": {
55
+ "type": "array",
56
+ "items": {
57
+ "type": "string"
58
+ }
59
+ },
60
+ "mode": {
61
+ "const": "auto-detect",
62
+ "type": "string"
63
+ }
64
+ }
65
+ },
66
+ {
67
+ "type": "object",
68
+ "required": [
69
+ "mode",
70
+ "primaryLanguage"
71
+ ],
72
+ "properties": {
73
+ "mode": {
74
+ "const": "fixed",
75
+ "type": "string"
76
+ },
77
+ "primaryLanguage": {
78
+ "type": "string"
79
+ },
80
+ "secondaryLanguages": {
81
+ "type": "array",
82
+ "items": {
83
+ "type": "string"
84
+ }
85
+ }
86
+ }
87
+ },
88
+ {
89
+ "type": "object",
90
+ "required": [
91
+ "mode",
92
+ "secondaryLanguages"
93
+ ],
94
+ "properties": {
95
+ "mode": {
96
+ "const": "allow-switching",
97
+ "type": "string"
98
+ },
99
+ "primaryLanguage": {
100
+ "type": "string"
101
+ },
102
+ "secondaryLanguages": {
103
+ "type": "array",
104
+ "items": {
105
+ "type": "string"
106
+ }
107
+ }
108
+ }
109
+ }
110
+ ]
111
+ },
112
+ "phraseHints": {
113
+ "description": "Names, products, and jargon the transcriber should recognize — improves accuracy on words unique to your business.",
114
+ "title": "Vocabulary hints",
115
+ "type": "array",
116
+ "items": {
117
+ "type": "object",
118
+ "required": [
119
+ "text"
120
+ ],
121
+ "properties": {
122
+ "aliases": {
123
+ "type": "array",
124
+ "items": {
125
+ "type": "string"
126
+ }
127
+ },
128
+ "boost": {
129
+ "type": "number"
130
+ },
131
+ "text": {
132
+ "type": "string"
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ },
139
+ "slots": {
140
+ "source": {
141
+ "configPath": "source",
142
+ "contract": "meeting/source",
143
+ "description": "The platform the bot joins calls on",
144
+ "known": [
145
+ "@absolutejs/meeting-recall",
146
+ "@absolutejs/meeting-discord",
147
+ "@absolutejs/meeting#buffer"
148
+ ],
149
+ "required": true
150
+ },
151
+ "stt": {
152
+ "configPath": "stt",
153
+ "contract": "voice/stt",
154
+ "description": "Who turns the call audio into text",
155
+ "known": [
156
+ "@absolutejs/voice-deepgram"
157
+ ],
158
+ "required": true
159
+ }
160
+ },
161
+ "wiring": [
162
+ {
163
+ "description": "The bot joins the call via the source adapter; the scribe streams back diarized turns and the final transcript.",
164
+ "id": "default",
165
+ "server": {
166
+ "code": "const meeting = await createMeeting({\n\tlanguageStrategy: ${settings.languageStrategy},\n\tphraseHints: ${settings.phraseHints},\n\tsessionId: crypto.randomUUID(),\n\tsource: ${slot.source},\n\tstt: ${slot.stt}\n});\n\nmeeting.on('turn', ({ turn }) => {\n\t// TODO: stream diarized turns to your analyzer / UI.\n});\nmeeting.on('end', ({ transcript }) => {\n\t// TODO: persist or analyze the full transcript.\n});\n\nawait meeting.start(); // the bot joins the call",
167
+ "imports": [
168
+ {
169
+ "from": "@absolutejs/meeting",
170
+ "names": [
171
+ "createMeeting"
172
+ ]
173
+ }
174
+ ],
175
+ "placement": "module-scope"
176
+ },
177
+ "title": "Join a call and transcribe it live"
178
+ }
179
+ ],
180
+ "tools": {
181
+ "leave_meeting": {
182
+ "annotations": {
183
+ "destructiveHint": true,
184
+ "idempotentHint": true
185
+ },
186
+ "description": "Make the bot leave the call, finalize the transcript, and end the session.",
187
+ "input": {
188
+ "type": "object",
189
+ "properties": {
190
+ "reason": {
191
+ "type": "string"
192
+ }
193
+ }
194
+ },
195
+ "kind": "runtime"
196
+ },
197
+ "meeting_participants": {
198
+ "annotations": {
199
+ "readOnlyHint": true
200
+ },
201
+ "description": "List the participants the call platform has reported for this meeting.",
202
+ "input": {
203
+ "type": "object",
204
+ "properties": {}
205
+ },
206
+ "kind": "runtime"
207
+ },
208
+ "meeting_transcript": {
209
+ "annotations": {
210
+ "readOnlyHint": true
211
+ },
212
+ "description": "Read the diarized transcript so far — the most recent turns, each with its speaker and (when known) the resolved participant.",
213
+ "input": {
214
+ "type": "object",
215
+ "properties": {
216
+ "limit": {
217
+ "default": 50,
218
+ "maximum": 200,
219
+ "minimum": 1,
220
+ "type": "integer"
221
+ }
222
+ }
223
+ },
224
+ "kind": "runtime"
225
+ },
226
+ "send_chat_message": {
227
+ "annotations": {
228
+ "openWorldHint": true
229
+ },
230
+ "description": "Post a text message into the call chat as the bot. Fails cleanly when the platform adapter can't write chat (check first: not every source supports it).",
231
+ "input": {
232
+ "type": "object",
233
+ "required": [
234
+ "text"
235
+ ],
236
+ "properties": {
237
+ "text": {
238
+ "maxLength": 2000,
239
+ "minLength": 1,
240
+ "type": "string"
241
+ }
242
+ }
243
+ },
244
+ "kind": "runtime"
245
+ }
246
+ }
247
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/meeting",
3
- "version": "0.0.1-beta.5",
3
+ "version": "0.0.1-beta.6",
4
4
  "description": "Meeting-bot core for AbsoluteJS — join a call (via a source adapter), transcribe it live with the voice scribe, and surface diarized turns + participants for analysis",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,19 +20,29 @@
20
20
  ".": {
21
21
  "import": "./dist/index.js",
22
22
  "types": "./dist/index.d.ts"
23
- }
23
+ },
24
+ "./manifest": {
25
+ "import": "./dist/manifest.js",
26
+ "types": "./dist/manifest.d.ts"
27
+ },
28
+ "./manifest.json": "./dist/manifest.json"
24
29
  },
25
30
  "license": "BSL-1.1",
26
31
  "author": "Alex Kahn",
32
+ "absolutejs": {
33
+ "manifestContract": 1
34
+ },
27
35
  "scripts": {
28
- "build": "rm -rf dist && bun build ./src/index.ts --outdir dist --target bun --external @absolutejs/voice && tsc --emitDeclarationOnly --project tsconfig.json",
36
+ "build": "rm -rf dist && bun build ./src/index.ts ./src/manifest.ts --outdir dist --root src --target bun --external @absolutejs/voice && tsc --emitDeclarationOnly --project tsconfig.json && absolute-manifest emit",
29
37
  "format": "prettier --write \"./**/*.{js,ts,json,md}\"",
30
38
  "release": "bun run format && bun run build && bun publish",
31
39
  "test": "bun test",
32
40
  "typecheck": "bun run tsc --noEmit"
33
41
  },
34
42
  "dependencies": {
35
- "@absolutejs/voice": "0.0.22-beta.550"
43
+ "@absolutejs/manifest": "^0.1.0",
44
+ "@absolutejs/voice": "0.0.22-beta.550",
45
+ "@sinclair/typebox": "^0.34.0"
36
46
  },
37
47
  "devDependencies": {
38
48
  "@types/bun": "1.3.9",