@j-o-r/hello-dave 0.1.1 → 0.1.5

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 (173) hide show
  1. package/CHANGELOG.md +42 -25
  2. package/README.md +81 -221
  3. package/TODO.md +173 -35
  4. package/agents/agent_creator.js +105 -0
  5. package/agents/agent_creator.prompt.md +371 -0
  6. package/agents/ask_agent.js +64 -127
  7. package/agents/claude_agent.js +68 -0
  8. package/agents/code_agent.js +55 -135
  9. package/agents/code_agent.prompt.md +50 -0
  10. package/agents/echo_agent.js +76 -0
  11. package/agents/financial_expert.js +75 -0
  12. package/agents/gpt_agent.js +52 -103
  13. package/agents/gpt_code.js +81 -0
  14. package/agents/grok_agent.js +58 -114
  15. package/agents/minimax_agent.js +92 -0
  16. package/agents/mureka_agent.js +77 -0
  17. package/agents/planner_agent.js +172 -0
  18. package/agents/stability_agent.js +87 -0
  19. package/agents/test_agent.js +75 -157
  20. package/agents/weather_agent.js +73 -0
  21. package/agents/workflow_agent.js +189 -0
  22. package/bin/dave.js +436 -184
  23. package/docs/bin-dave.md +85 -35
  24. package/docs/cdn-ssh.md +100 -0
  25. package/docs/creating-agents.md +301 -0
  26. package/docs/creating-toolsets.md +336 -0
  27. package/docs/docs-organization.md +48 -0
  28. package/docs/project-overview.md +86 -51
  29. package/lib/API/elevenlabs.io/music.compose.md +441 -0
  30. package/lib/API/elevenlabs.io/music.create-composition-plan.md +370 -0
  31. package/lib/API/elevenlabs.io/music.stream.md +425 -0
  32. package/lib/API/lalal.ai/lalal.js +445 -0
  33. package/lib/API/lalal.ai/openapi.json +2614 -0
  34. package/lib/API/minimax/ImageToolset.js +82 -37
  35. package/lib/API/minimax/MusicToolset.js +125 -79
  36. package/lib/API/minimax/VideoToolset.js +170 -167
  37. package/lib/API/minimax/image.js +5 -1
  38. package/lib/API/minimax/music.js +210 -23
  39. package/lib/API/minimax/video.js +242 -53
  40. package/lib/API/mureka/MusicToolset.js +646 -0
  41. package/lib/API/mureka/README.md +41 -0
  42. package/lib/API/mureka/index.js +7 -0
  43. package/lib/API/mureka/music.js +658 -0
  44. package/lib/API/openai.com/index.js +7 -0
  45. package/lib/API/openai.com/{reponses/text.js → responses.js} +64 -18
  46. package/lib/API/openai.com/video.create.character.md +40 -0
  47. package/lib/API/openai.com/video.create.md +219 -0
  48. package/lib/API/openai.com/video.delete.md +44 -0
  49. package/lib/API/openai.com/video.download.md +31 -0
  50. package/lib/API/openai.com/video.edit.md +155 -0
  51. package/lib/API/openai.com/video.extend.md +166 -0
  52. package/lib/API/openai.com/video.fetch.character.md +43 -0
  53. package/lib/API/openai.com/video.js +784 -0
  54. package/lib/API/openai.com/video.list.md +201 -0
  55. package/lib/API/openai.com/video.remix.md +175 -0
  56. package/lib/API/openai.com/video.retrieve.md +139 -0
  57. package/lib/API/openai.com/videoToolset.js +616 -0
  58. package/lib/API/stability.ai/ImageToolset.js +131 -40
  59. package/lib/API/stability.ai/MusicToolset.js +79 -47
  60. package/lib/API/stability.ai/audio.js +63 -131
  61. package/lib/API/x.ai/chat.responses.md +1040 -0
  62. package/lib/API/x.ai/image.js +229 -59
  63. package/lib/API/x.ai/imageToolset.js +376 -0
  64. package/lib/API/x.ai/index.js +1 -1
  65. package/lib/API/x.ai/responses.js +9 -18
  66. package/lib/Agent.js +271 -0
  67. package/lib/Agent.js.old +284 -0
  68. package/lib/AgentLauncher.js +593 -0
  69. package/lib/Cli.js +87 -13
  70. package/lib/Prompt.js +23 -1
  71. package/lib/Session.js +5 -4
  72. package/lib/ToolSet.js +102 -6
  73. package/lib/agentLoader.js +369 -0
  74. package/lib/cdn.js +67 -231
  75. package/lib/{CdnToolset.js → cdnToolset.js} +47 -64
  76. package/lib/defaultToolsets.js +43 -0
  77. package/lib/fafs.js +1 -1
  78. package/lib/genericToolset.js +442 -119
  79. package/lib/handOffToolset.js +179 -0
  80. package/lib/index.js +34 -27
  81. package/lib/toolsetLoader.js +248 -0
  82. package/package.json +10 -4
  83. package/types/API/lalal.ai/lalal.d.ts +116 -0
  84. package/types/API/minimax/image.d.ts +2 -1
  85. package/types/API/minimax/music.d.ts +189 -26
  86. package/types/API/minimax/video.d.ts +100 -31
  87. package/types/API/mureka/index.d.ts +7 -0
  88. package/types/API/mureka/music.d.ts +472 -0
  89. package/types/API/openai.com/index.d.ts +7 -0
  90. package/types/API/openai.com/{reponses/text.d.ts → responses.d.ts} +11 -11
  91. package/types/API/openai.com/video.d.ts +409 -0
  92. package/types/API/openai.com/videoToolset.d.ts +24 -0
  93. package/types/API/stability.ai/audio.d.ts +14 -103
  94. package/types/API/stability.ai/image.d.ts +2 -2
  95. package/types/API/x.ai/image.d.ts +138 -26
  96. package/types/API/x.ai/imageToolset.d.ts +3 -0
  97. package/types/API/x.ai/index.d.ts +1 -1
  98. package/types/API/x.ai/responses.d.ts +4 -4
  99. package/types/Agent.d.ts +123 -0
  100. package/types/AgentLauncher.d.ts +250 -0
  101. package/types/Cli.d.ts +28 -8
  102. package/types/Prompt.d.ts +23 -5
  103. package/types/Session.d.ts +1 -1
  104. package/types/ToolSet.d.ts +10 -0
  105. package/types/agentLoader.d.ts +78 -0
  106. package/types/cdn.d.ts +15 -90
  107. package/types/defaultToolsets.d.ts +9 -0
  108. package/types/fafs.d.ts +1 -1
  109. package/types/genericToolset.d.ts +1 -1
  110. package/types/handOffToolset.d.ts +28 -0
  111. package/types/index.d.ts +19 -17
  112. package/types/toolsetLoader.d.ts +114 -0
  113. package/utils/format_log.js +101 -23
  114. package/utils/launch_agent.js +18 -0
  115. package/utils/list_sessions.sh +13 -5
  116. package/utils/search_sessions.sh +65 -29
  117. package/utils/toolsets.js +33 -0
  118. package/README.md.bak.1779452127 +0 -240
  119. package/agents/codeserver.sh +0 -47
  120. package/agents/daisy_agent.js +0 -173
  121. package/agents/docs_agent.js +0 -148
  122. package/agents/memory_agent.js +0 -263
  123. package/agents/minimax.js +0 -173
  124. package/agents/npm_agent.js +0 -202
  125. package/agents/prompt_agent.js +0 -133
  126. package/agents/readme_agent.js +0 -148
  127. package/agents/spawn_agent.js +0 -160
  128. package/agents/stability.js +0 -173
  129. package/agents/todo_agent.js +0 -175
  130. package/bin/codeDave +0 -58
  131. package/docs/agent-dave-websocket-protocol.md +0 -180
  132. package/docs/agent-manager.md +0 -244
  133. package/docs/codeserver-pattern.md +0 -191
  134. package/docs/generic-toolset.md +0 -326
  135. package/docs/howtos/agent-networking.md +0 -253
  136. package/docs/howtos/spawn-agents.md.bak +0 -200
  137. package/docs/howtos/spawn-agents.md.bak_new +0 -200
  138. package/docs/multi-agent-clusters.md +0 -265
  139. package/docs/music-toolsets.md +0 -137
  140. package/docs/path-resolution-best-practices.md +0 -104
  141. package/docs/plans/minimax-music-generation.md +0 -80
  142. package/docs/plans/unified-agent-architecture.md +0 -146
  143. package/docs/plans/websocket-streaming-plan.md.bak +0 -317
  144. package/docs/prompt/spawn_agent.md +0 -175
  145. package/docs/prompt/spawn_agent.md.bak +0 -201
  146. package/docs/prompt/task_clarification_and_documentation.md +0 -35
  147. package/docs/prompt-class.md +0 -141
  148. package/docs/todo-archive-infra-2026-04-21.md +0 -15
  149. package/docs/todo-archive-v0.0.8.md +0 -1
  150. package/docs/todo-archive-v0.1.0.md +0 -32
  151. package/docs/todo-archive.md +0 -44
  152. package/docs/tools-syntax-validation.md +0 -121
  153. package/docs/toolset.md +0 -164
  154. package/docs/xai-responses.md +0 -111
  155. package/docs/xai_collections.md +0 -106
  156. package/lib/API/x.ai/ImageToolset.js +0 -165
  157. package/lib/API/x.ai/text.js +0 -415
  158. package/lib/AgentClient.js +0 -248
  159. package/lib/AgentManager.js +0 -245
  160. package/lib/AgentServer.js +0 -404
  161. package/lib/wsCli.js +0 -287
  162. package/lib/wsIO.js +0 -90
  163. package/types/API/x.ai/text.d.ts +0 -286
  164. package/types/AgentClient.d.ts +0 -109
  165. package/types/AgentManager.d.ts +0 -100
  166. package/types/AgentServer.d.ts +0 -89
  167. package/types/wsCli.d.ts +0 -17
  168. package/types/wsIO.d.ts +0 -30
  169. package/utils/test.sh +0 -46
  170. /package/docs/{suggestions.md → _notes/token-counts.md} +0 -0
  171. /package/lib/API/openai.com/{reponses/MESSAGES.md → MESSAGES.md} +0 -0
  172. /package/types/API/{x.ai/ImageToolset.d.ts → mureka/MusicToolset.d.ts} +0 -0
  173. /package/types/{CdnToolset.d.ts → cdnToolset.d.ts} +0 -0
@@ -0,0 +1,472 @@
1
+ export type MurekaWord = {
2
+ /**
3
+ * - Start time in milliseconds
4
+ */
5
+ start: number;
6
+ /**
7
+ * - End time in milliseconds
8
+ */
9
+ end: number;
10
+ /**
11
+ * - The word text
12
+ */
13
+ text: string;
14
+ };
15
+ export type MurekaLine = {
16
+ /**
17
+ * - Start time in milliseconds
18
+ */
19
+ start: number;
20
+ /**
21
+ * - End time in milliseconds
22
+ */
23
+ end: number;
24
+ /**
25
+ * - Full line text
26
+ */
27
+ text: string;
28
+ /**
29
+ * - Word-level timing (optional)
30
+ */
31
+ words?: MurekaWord[] | undefined;
32
+ };
33
+ export type MurekaLyricsSection = {
34
+ /**
35
+ * - e.g. "intro", "verse", "chorus", "bridge"
36
+ */
37
+ section_type: string;
38
+ /**
39
+ * - Section start time (ms)
40
+ */
41
+ start?: number | undefined;
42
+ /**
43
+ * - Section end time (ms)
44
+ */
45
+ end?: number | undefined;
46
+ /**
47
+ * - Lines with timing
48
+ */
49
+ lines?: MurekaLine[] | undefined;
50
+ };
51
+ export type MurekaChoice = {
52
+ /**
53
+ * - Primary MP3 URL
54
+ */
55
+ url: string;
56
+ /**
57
+ * - FLAC version
58
+ */
59
+ flac_url?: string | undefined;
60
+ /**
61
+ * - WAV version
62
+ */
63
+ wav_url?: string | undefined;
64
+ /**
65
+ * - Duration in milliseconds
66
+ */
67
+ duration: number;
68
+ /**
69
+ * - Choice-specific ID
70
+ */
71
+ id?: string | undefined;
72
+ /**
73
+ * - Choice index (0-based)
74
+ */
75
+ index?: number | undefined;
76
+ /**
77
+ * - Detailed timed lyrics
78
+ */
79
+ lyrics_sections?: MurekaLyricsSection[] | undefined;
80
+ /**
81
+ * - Locally saved MP3 path (added by wrapper)
82
+ */
83
+ local_path?: string | undefined;
84
+ /**
85
+ * - Locally saved FLAC path (added by wrapper)
86
+ */
87
+ local_flac_path?: string | undefined;
88
+ /**
89
+ * - Locally saved WAV path (added by wrapper)
90
+ */
91
+ local_wav_path?: string | undefined;
92
+ };
93
+ export type MurekaGenerationResult = {
94
+ /**
95
+ * - Main task/result ID
96
+ */
97
+ id: string;
98
+ /**
99
+ * - Unix timestamp (seconds)
100
+ */
101
+ created_at: number;
102
+ /**
103
+ * - Unix timestamp when finished
104
+ */
105
+ finished_at?: number | undefined;
106
+ /**
107
+ * - Model used (e.g. "mureka-9")
108
+ */
109
+ model?: string | undefined;
110
+ /**
111
+ * - "succeeded", "processing", "failed", etc.
112
+ */
113
+ status: string;
114
+ /**
115
+ * - Array of generated audio variants (ALL auto-saved)
116
+ */
117
+ choices?: MurekaChoice[] | undefined;
118
+ /**
119
+ * - Request trace ID for debugging
120
+ */
121
+ trace_id?: string | undefined;
122
+ /**
123
+ * - Legacy top-level MP3 (for backward compatibility)
124
+ */
125
+ mp3_url?: string | undefined;
126
+ /**
127
+ * - Legacy top-level audio URL
128
+ */
129
+ audio_url?: string | undefined;
130
+ /**
131
+ * - Array of all locally saved MP3 paths (added by wrapper)
132
+ */
133
+ local_paths?: string[] | undefined;
134
+ /**
135
+ * - Original raw API response
136
+ */
137
+ raw?: Object | undefined;
138
+ };
139
+ /**
140
+ * Returns authentication headers for Mureka API requests.
141
+ * @returns {{'Authorization': string}}
142
+ * @throws {Error} If MUREKA_API_KEY is not set.
143
+ * @see https://platform.mureka.ai/docs/
144
+ */
145
+ export function getHeaders(): {
146
+ "Authorization": string;
147
+ };
148
+ /**
149
+ * Saves audio data (URL or base64) to a local file.
150
+ * @param {string|Buffer} audioData
151
+ * @param {string} [filenamePrefix='mureka']
152
+ * @returns {Promise<string>} Local file path
153
+ */
154
+ /**
155
+ * Saves audio data (URL or base64) to a local file in the .cache/mureka directory.
156
+ * @param {string|Buffer} audioData - URL, base64 string, or Buffer of the audio.
157
+ * @param {string} [filenamePrefix="mureka"] - Prefix for the saved filename.
158
+ * @returns {Promise<string>} The local file path of the saved audio.
159
+ */
160
+ export function saveAudioToLocal(audioData: string | Buffer, filenamePrefix?: string): Promise<string>;
161
+ /**
162
+ * Poll until task completes.
163
+ * @param {string} taskId
164
+ * @param {string} [type='song']
165
+ * @returns {Promise<MurekaGenerationResult>}
166
+ */
167
+ /**
168
+ * Polls a task until it completes or fails.
169
+ * @param {string} taskId - The task ID to poll.
170
+ * @param {string} [type="song"] - Task type (song, instrumental, tts, etc.).
171
+ * @returns {Promise<MurekaGenerationResult>} The completed result.
172
+ */
173
+ export function pollUntilDone(taskId: string, type?: string): Promise<MurekaGenerationResult>;
174
+ /**
175
+ * Generate a complete song with both lyrics and vocals (text-to-song).
176
+ * Supports reference_id, vocal_id, motif_id, etc.
177
+ * Automatically polls until completion and saves audio locally.
178
+ *
179
+ * @param {Object} [params={}]
180
+ * @param {string} params.prompt - Style/mood/genre description (required).
181
+ * @param {string} [params.lyrics] - Structured lyrics with [Verse], [Chorus], etc.
182
+ * @param {string} [params.model="auto"] - Model to use.
183
+ * @param {string} [params.reference_id] - Reference audio file_id (purpose=reference).
184
+ * @param {string} [params.vocal_id] - Cloned voice ID.
185
+ * @param {string} [params.motif_id] - Melody motif file_id.
186
+ * @returns {Promise<MurekaGenerationResult>} Generation result with choices and local paths.
187
+ */
188
+ export function generateSong(params?: {
189
+ prompt: string;
190
+ lyrics?: string | undefined;
191
+ model?: string | undefined;
192
+ reference_id?: string | undefined;
193
+ vocal_id?: string | undefined;
194
+ motif_id?: string | undefined;
195
+ }): Promise<MurekaGenerationResult>;
196
+ /**
197
+ * Generate pure instrumental music (no vocals).
198
+ *
199
+ * @param {Object} [params={}]
200
+ * @param {string} params.prompt - Instrumental style/mood description (required).
201
+ * @param {string} [params.model="auto"]
202
+ * @param {string} [params.reference_id] - Reference audio (purpose=reference or instrumental).
203
+ * @returns {Promise<MurekaGenerationResult>}
204
+ */
205
+ export function generateInstrumental(params?: {
206
+ prompt: string;
207
+ model?: string | undefined;
208
+ reference_id?: string | undefined;
209
+ }): Promise<MurekaGenerationResult>;
210
+ /**
211
+ * Generate a musical soundtrack matching an image or video.
212
+ *
213
+ * @param {Object} [params={}]
214
+ * @param {string} [params.image] - Image URL or file_id.
215
+ * @param {string} [params.video] - Video URL or file_id.
216
+ * @param {string} [params.prompt] - Optional style guidance.
217
+ * @returns {Promise<MurekaGenerationResult>}
218
+ */
219
+ export function generateSoundtrack(params?: {
220
+ image?: string | undefined;
221
+ video?: string | undefined;
222
+ prompt?: string | undefined;
223
+ }): Promise<MurekaGenerationResult>;
224
+ /**
225
+ * Analyze an existing audio file and return structured description (genre, mood, structure, etc.).
226
+ *
227
+ * @param {Object} [params={}]
228
+ * @param {string} params.url - Audio URL or base64 (required).
229
+ * @returns {Promise<Object>} Description result.
230
+ */
231
+ export function describeSong(params?: {
232
+ url: string;
233
+ }): Promise<Object>;
234
+ /**
235
+ * Extend an existing song by adding more sections.
236
+ *
237
+ * @param {Object} [params={}]
238
+ * @param {string} params.song_id - ID from previous generation (required).
239
+ * @param {string} [params.lyrics] - Additional lyrics.
240
+ * @returns {Promise<MurekaGenerationResult>}
241
+ */
242
+ export function extendSong(params?: {
243
+ song_id: string;
244
+ lyrics?: string | undefined;
245
+ }): Promise<MurekaGenerationResult>;
246
+ /**
247
+ * Regenerate a song (or specific parts).
248
+ *
249
+ * @param {Object} [params={}]
250
+ * @returns {Promise<MurekaGenerationResult>}
251
+ */
252
+ export function regenerateSong(params?: Object): Promise<MurekaGenerationResult>;
253
+ /**
254
+ * Separate a song into stems (vocals, drums, bass, etc.).
255
+ *
256
+ * @param {Object} [params={}]
257
+ * @param {string} params.url - Audio URL or base64 (required).
258
+ * @param {string} [params.model] - Separation model.
259
+ * @returns {Promise<MurekaGenerationResult>}
260
+ */
261
+ export function stemSong(params?: {
262
+ url: string;
263
+ model?: string | undefined;
264
+ }): Promise<MurekaGenerationResult>;
265
+ /**
266
+ * Recognize/identify a song from audio.
267
+ *
268
+ * @param {Object} [params={}]
269
+ * @param {string} params.url - Audio URL or base64 (required).
270
+ * @returns {Promise<Object>}
271
+ */
272
+ export function recognizeSong(params?: {
273
+ url: string;
274
+ }): Promise<Object>;
275
+ /**
276
+ * Edit a specific time region of a song (replace lyrics/melody in a section).
277
+ *
278
+ * @param {Object} [params={}]
279
+ * @param {string} params.song_id - Song ID (required).
280
+ * @param {number} params.start_milliseconds - Start time (ms).
281
+ * @param {number} params.end_milliseconds - End time (ms).
282
+ * @param {string} [params.lyrics] - New lyrics for the region.
283
+ * @returns {Promise<MurekaGenerationResult>}
284
+ */
285
+ export function regionEditSong(params?: {
286
+ song_id: string;
287
+ start_milliseconds: number;
288
+ end_milliseconds: number;
289
+ lyrics?: string | undefined;
290
+ }): Promise<MurekaGenerationResult>;
291
+ /**
292
+ * Generate a lyrics video from lyrics and background image.
293
+ *
294
+ * @param {Object} [params={}]
295
+ * @returns {Promise<MurekaGenerationResult>}
296
+ */
297
+ export function generateLyricsVideo(params?: Object): Promise<MurekaGenerationResult>;
298
+ /**
299
+ * Generate a specific track type (Vocals, Instrumental, Drums, etc.) from a song or uploaded audio.
300
+ *
301
+ * @param {Object} [params={}]
302
+ * @param {string} [params.song_id] - Song ID (mutually exclusive with upload_audio_id).
303
+ * @param {string} [params.upload_audio_id] - Upload ID from purpose="audio".
304
+ * @param {string} params.type - Track type (Vocals, Instrumental, Drums, Bass, Guitar, Keyboard, Percussion, Strings, Synth, FX, Brass, Woodwinds).
305
+ * @param {string} [params.generate_type] - Legacy alias for type.
306
+ * @param {string} params.prompt - Control prompt (required).
307
+ * @param {number} [params.generate_start] - Start time (ms).
308
+ * @param {number} [params.generate_end] - End time (ms).
309
+ * @param {string} [params.lyrics] - Lyrics (for Vocals).
310
+ * @param {string} [params.vocal_gender] - "male" or "female".
311
+ * @returns {Promise<MurekaGenerationResult>}
312
+ */
313
+ export function generateTrack(params?: {
314
+ song_id?: string | undefined;
315
+ upload_audio_id?: string | undefined;
316
+ type: string;
317
+ generate_type?: string | undefined;
318
+ prompt: string;
319
+ generate_start?: number | undefined;
320
+ generate_end?: number | undefined;
321
+ lyrics?: string | undefined;
322
+ vocal_gender?: string | undefined;
323
+ }): Promise<MurekaGenerationResult>;
324
+ /**
325
+ * Create a remix of an existing song.
326
+ *
327
+ * @param {Object} [params={}]
328
+ * @param {string} [params.song_id] - Song ID.
329
+ * @param {string} [params.upload_audio_id] - Upload ID from purpose="remix".
330
+ * @param {string} params.prompt - Remix style prompt (required).
331
+ * @param {string} params.lyrics - Full lyrics of the target song (required).
332
+ * @param {number} [params.n=2] - Number of variants.
333
+ * @param {string} [params.model="auto"]
334
+ * @returns {Promise<MurekaGenerationResult>}
335
+ */
336
+ export function remixSong(params?: {
337
+ song_id?: string | undefined;
338
+ upload_audio_id?: string | undefined;
339
+ prompt: string;
340
+ lyrics: string;
341
+ n?: number | undefined;
342
+ model?: string | undefined;
343
+ }): Promise<MurekaGenerationResult>;
344
+ /**
345
+ * Generate brand new song lyrics from a theme or style prompt.
346
+ *
347
+ * @param {Object} [params={}]
348
+ * @param {string} params.prompt - Theme/style instructions (required).
349
+ * @returns {Promise<Object>} Generated lyrics.
350
+ */
351
+ export function generateLyrics(params?: {
352
+ prompt: string;
353
+ }): Promise<Object>;
354
+ /**
355
+ * Extend or continue existing lyrics.
356
+ *
357
+ * @param {Object} [params={}]
358
+ * @param {string} params.lyrics - Existing lyrics (required).
359
+ * @param {string} params.prompt - Instructions for extension (required).
360
+ * @returns {Promise<Object>}
361
+ */
362
+ export function extendLyrics(params?: {
363
+ lyrics: string;
364
+ prompt: string;
365
+ }): Promise<Object>;
366
+ /**
367
+ * Convert text to natural-sounding speech (single-speaker or multi-speaker).
368
+ *
369
+ * @param {Object} [params={}]
370
+ * @param {string} [params.text] - Text for single-speaker mode.
371
+ * @param {Array} [params.script] - Array of {speaker, text} for podcast mode.
372
+ * @param {string} [params.voice_id] - Voice ID for single-speaker.
373
+ * @param {Object} [params.voices] - Map of speaker -> voice_id for podcast.
374
+ * @param {number} [params.speed=1.0]
375
+ * @param {number} [params.pitch=0]
376
+ * @returns {Promise<MurekaGenerationResult>}
377
+ */
378
+ export function generateTTS(params?: {
379
+ text?: string | undefined;
380
+ script?: any[] | undefined;
381
+ voice_id?: string | undefined;
382
+ voices?: Object | undefined;
383
+ speed?: number | undefined;
384
+ pitch?: number | undefined;
385
+ }): Promise<MurekaGenerationResult>;
386
+ /**
387
+ * Generate a multi-speaker podcast.
388
+ *
389
+ * @param {Object} [params={}]
390
+ * @returns {Promise<MurekaGenerationResult>}
391
+ */
392
+ export function generatePodcast(params?: Object): Promise<MurekaGenerationResult>;
393
+ /**
394
+ * Create a custom voice clone from a short vocal sample.
395
+ *
396
+ * @param {Object} [params={}]
397
+ * @param {string} params.file - URL or base64 of vocal sample (5-15s recommended).
398
+ * @param {string} [params.name] - Friendly name for the voice.
399
+ * @returns {Promise<Object>} Result containing voice_id.
400
+ */
401
+ export function cloneVocal(params?: {
402
+ file: string;
403
+ name?: string | undefined;
404
+ }): Promise<Object>;
405
+ /**
406
+ * Upload a file for use as reference (audio, image, video, MIDI).
407
+ * Supports multiple purposes (reference, vocal, melody, audio, remix, soundtrack, lyrics-video, etc.).
408
+ *
409
+ * @param {Object} [params={}]
410
+ * @param {string} params.url - Public URL of the file (required).
411
+ * @param {string} params.purpose - Purpose of upload (required).
412
+ * @returns {Promise<Object>} Upload result with file_id.
413
+ */
414
+ export function uploadFile(params?: {
415
+ url: string;
416
+ purpose: string;
417
+ }): Promise<Object>;
418
+ /**
419
+ * Create a new upload session.
420
+ *
421
+ * @param {Object} [params={}]
422
+ * @returns {Promise<Object>}
423
+ */
424
+ export function uploadsCreate(params?: Object): Promise<Object>;
425
+ /**
426
+ * Add data to an upload session.
427
+ *
428
+ * @param {Object} [params={}]
429
+ * @returns {Promise<Object>}
430
+ */
431
+ export function uploadsAdd(params?: Object): Promise<Object>;
432
+ /**
433
+ * Complete an upload session.
434
+ *
435
+ * @param {Object} [params={}]
436
+ * @returns {Promise<Object>}
437
+ */
438
+ export function uploadsComplete(params?: Object): Promise<Object>;
439
+ /**
440
+ * Manually query the status of a task.
441
+ *
442
+ * @param {string} taskId - Task ID.
443
+ * @param {string} [type="song"] - Task type.
444
+ * @returns {Promise<Object>} Task status.
445
+ */
446
+ export function queryTask(taskId: string, type?: string): Promise<Object>;
447
+ /**
448
+ * Retrieve current account billing information (balance, credits, usage).
449
+ *
450
+ * @returns {Promise<Object>}
451
+ */
452
+ export function getBilling(): Promise<Object>;
453
+ /**
454
+ * Retrieve account profile information.
455
+ *
456
+ * @returns {Promise<Object>}
457
+ */
458
+ export function getProfile(): Promise<Object>;
459
+ /**
460
+ * Create a fine-tuning task.
461
+ *
462
+ * @param {Object} [params={}]
463
+ * @returns {Promise<MurekaGenerationResult>}
464
+ */
465
+ export function createFineTune(params?: Object): Promise<MurekaGenerationResult>;
466
+ /**
467
+ * Query the status of a fine-tuning task.
468
+ *
469
+ * @param {string} taskId - Fine-tune task ID.
470
+ * @returns {Promise<Object>}
471
+ */
472
+ export function queryFineTune(taskId: string): Promise<Object>;
@@ -0,0 +1,7 @@
1
+ declare namespace _default {
2
+ export { video };
3
+ export { videoToolset };
4
+ }
5
+ export default _default;
6
+ import * as video from './video.js';
7
+ import videoToolset from './videoToolset.js';
@@ -1,5 +1,5 @@
1
- export type Prompt = import("../../../Prompt.js").default;
2
- export type ToolSet = import("../../../ToolSet.js").default;
1
+ export type Prompt = any;
2
+ export type ToolSet = any;
3
3
  export type Includes = "code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_conten";
4
4
  export type OAOptions = {
5
5
  /**
@@ -33,7 +33,7 @@ export type OAOptions = {
33
33
  /**
34
34
  * - Model version to use.
35
35
  */
36
- model?: "gpt-5.4" | "gpt-5-mini" | "gpt-5-nano" | "gpt-5-pro" | undefined;
36
+ model?: "gpt-5.5" | "gpt-5.4" | "gpt-5.4-mini" | undefined;
37
37
  /**
38
38
  * - Reusable prompt string.
39
39
  */
@@ -54,7 +54,7 @@ export type OAOptions = {
54
54
  /**
55
55
  * - Convenience: Adds `{type: "web_search_preview", search_context_size: search}` tool.
56
56
  */
57
- search?: "low" | "high" | "medium" | undefined;
57
+ search?: "low" | "medium" | "high" | undefined;
58
58
  /**
59
59
  * - Service tier option, default is auto-selected.
60
60
  */
@@ -93,13 +93,13 @@ export type OAOptions = {
93
93
  */
94
94
  tools?: OpenAITool[] | undefined;
95
95
  /**
96
- * =null An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability.
96
+ * An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability.
97
97
  */
98
- top_logprobs: number | null;
98
+ top_logprobs?: number | null | undefined;
99
99
  /**
100
- * =1 Top-p sampling value between 0 and 1.
100
+ * Top-p sampling value between 0 and 1.
101
101
  */
102
- top_p: number | null;
102
+ top_p?: number | null | undefined;
103
103
  /**
104
104
  * - Needed reponse_id to validate tool calls on the next request
105
105
  */
@@ -137,7 +137,7 @@ export type OABuiltinTool = {
137
137
  /**
138
138
  * - Context size for `web_search_preview` only.
139
139
  */
140
- search_context_size?: "low" | "high" | "medium" | undefined;
140
+ search_context_size?: "low" | "medium" | "high" | undefined;
141
141
  };
142
142
  export type OpenAITool = OAToolCall | OABuiltinTool;
143
143
  export type OAParameterProperty = {
@@ -227,7 +227,7 @@ export function generateRequest(prompt: Prompt, toolset?: ToolSet, options?: OAO
227
227
  * @param {import('../../../request.js').FetchResponse} res
228
228
  * @param {import('../../../ToolSet.js').default} [toolset]
229
229
  */
230
- export function parseResponse(duration: number, prompt: Prompt, res: any, toolset?: import("../../../ToolSet.js").default): Promise<void>;
230
+ export function parseResponse(duration: number, prompt: Prompt, res: any, toolset?: any): Promise<void>;
231
231
  /**
232
232
  * Do a request
233
233
  * @param {Prompt} prompt
@@ -236,4 +236,4 @@ export function parseResponse(duration: number, prompt: Prompt, res: any, toolse
236
236
  * @param {number} [counter] - leave empty this counts the number of requests when doing recursive request calls
237
237
  * @return {Promise<import('../../../Session.js').Message>}
238
238
  */
239
- export function request(prompt: Prompt, toolset?: ToolSet | null, options?: OAOptions, counter?: number): Promise<import("../../../Session.js").Message>;
239
+ export function request(prompt: Prompt, toolset?: ToolSet | null, options?: OAOptions, counter?: number): Promise<any>;