@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.
- package/CHANGELOG.md +42 -25
- package/README.md +81 -221
- package/TODO.md +173 -35
- package/agents/agent_creator.js +105 -0
- package/agents/agent_creator.prompt.md +371 -0
- package/agents/ask_agent.js +64 -127
- package/agents/claude_agent.js +68 -0
- package/agents/code_agent.js +55 -135
- package/agents/code_agent.prompt.md +50 -0
- package/agents/echo_agent.js +76 -0
- package/agents/financial_expert.js +75 -0
- package/agents/gpt_agent.js +52 -103
- package/agents/gpt_code.js +81 -0
- package/agents/grok_agent.js +58 -114
- package/agents/minimax_agent.js +92 -0
- package/agents/mureka_agent.js +77 -0
- package/agents/planner_agent.js +172 -0
- package/agents/stability_agent.js +87 -0
- package/agents/test_agent.js +75 -157
- package/agents/weather_agent.js +73 -0
- package/agents/workflow_agent.js +189 -0
- package/bin/dave.js +436 -184
- package/docs/bin-dave.md +85 -35
- package/docs/cdn-ssh.md +100 -0
- package/docs/creating-agents.md +301 -0
- package/docs/creating-toolsets.md +336 -0
- package/docs/docs-organization.md +48 -0
- package/docs/project-overview.md +86 -51
- package/lib/API/elevenlabs.io/music.compose.md +441 -0
- package/lib/API/elevenlabs.io/music.create-composition-plan.md +370 -0
- package/lib/API/elevenlabs.io/music.stream.md +425 -0
- package/lib/API/lalal.ai/lalal.js +445 -0
- package/lib/API/lalal.ai/openapi.json +2614 -0
- package/lib/API/minimax/ImageToolset.js +82 -37
- package/lib/API/minimax/MusicToolset.js +125 -79
- package/lib/API/minimax/VideoToolset.js +170 -167
- package/lib/API/minimax/image.js +5 -1
- package/lib/API/minimax/music.js +210 -23
- package/lib/API/minimax/video.js +242 -53
- package/lib/API/mureka/MusicToolset.js +646 -0
- package/lib/API/mureka/README.md +41 -0
- package/lib/API/mureka/index.js +7 -0
- package/lib/API/mureka/music.js +658 -0
- package/lib/API/openai.com/index.js +7 -0
- package/lib/API/openai.com/{reponses/text.js → responses.js} +64 -18
- package/lib/API/openai.com/video.create.character.md +40 -0
- package/lib/API/openai.com/video.create.md +219 -0
- package/lib/API/openai.com/video.delete.md +44 -0
- package/lib/API/openai.com/video.download.md +31 -0
- package/lib/API/openai.com/video.edit.md +155 -0
- package/lib/API/openai.com/video.extend.md +166 -0
- package/lib/API/openai.com/video.fetch.character.md +43 -0
- package/lib/API/openai.com/video.js +784 -0
- package/lib/API/openai.com/video.list.md +201 -0
- package/lib/API/openai.com/video.remix.md +175 -0
- package/lib/API/openai.com/video.retrieve.md +139 -0
- package/lib/API/openai.com/videoToolset.js +616 -0
- package/lib/API/stability.ai/ImageToolset.js +131 -40
- package/lib/API/stability.ai/MusicToolset.js +79 -47
- package/lib/API/stability.ai/audio.js +63 -131
- package/lib/API/x.ai/chat.responses.md +1040 -0
- package/lib/API/x.ai/image.js +229 -59
- package/lib/API/x.ai/imageToolset.js +376 -0
- package/lib/API/x.ai/index.js +1 -1
- package/lib/API/x.ai/responses.js +9 -18
- package/lib/Agent.js +271 -0
- package/lib/Agent.js.old +284 -0
- package/lib/AgentLauncher.js +593 -0
- package/lib/Cli.js +87 -13
- package/lib/Prompt.js +23 -1
- package/lib/Session.js +5 -4
- package/lib/ToolSet.js +102 -6
- package/lib/agentLoader.js +369 -0
- package/lib/cdn.js +67 -231
- package/lib/{CdnToolset.js → cdnToolset.js} +47 -64
- package/lib/defaultToolsets.js +43 -0
- package/lib/fafs.js +1 -1
- package/lib/genericToolset.js +442 -119
- package/lib/handOffToolset.js +179 -0
- package/lib/index.js +34 -27
- package/lib/toolsetLoader.js +248 -0
- package/package.json +10 -4
- package/types/API/lalal.ai/lalal.d.ts +116 -0
- package/types/API/minimax/image.d.ts +2 -1
- package/types/API/minimax/music.d.ts +189 -26
- package/types/API/minimax/video.d.ts +100 -31
- package/types/API/mureka/index.d.ts +7 -0
- package/types/API/mureka/music.d.ts +472 -0
- package/types/API/openai.com/index.d.ts +7 -0
- package/types/API/openai.com/{reponses/text.d.ts → responses.d.ts} +11 -11
- package/types/API/openai.com/video.d.ts +409 -0
- package/types/API/openai.com/videoToolset.d.ts +24 -0
- package/types/API/stability.ai/audio.d.ts +14 -103
- package/types/API/stability.ai/image.d.ts +2 -2
- package/types/API/x.ai/image.d.ts +138 -26
- package/types/API/x.ai/imageToolset.d.ts +3 -0
- package/types/API/x.ai/index.d.ts +1 -1
- package/types/API/x.ai/responses.d.ts +4 -4
- package/types/Agent.d.ts +123 -0
- package/types/AgentLauncher.d.ts +250 -0
- package/types/Cli.d.ts +28 -8
- package/types/Prompt.d.ts +23 -5
- package/types/Session.d.ts +1 -1
- package/types/ToolSet.d.ts +10 -0
- package/types/agentLoader.d.ts +78 -0
- package/types/cdn.d.ts +15 -90
- package/types/defaultToolsets.d.ts +9 -0
- package/types/fafs.d.ts +1 -1
- package/types/genericToolset.d.ts +1 -1
- package/types/handOffToolset.d.ts +28 -0
- package/types/index.d.ts +19 -17
- package/types/toolsetLoader.d.ts +114 -0
- package/utils/format_log.js +101 -23
- package/utils/launch_agent.js +18 -0
- package/utils/list_sessions.sh +13 -5
- package/utils/search_sessions.sh +65 -29
- package/utils/toolsets.js +33 -0
- package/README.md.bak.1779452127 +0 -240
- package/agents/codeserver.sh +0 -47
- package/agents/daisy_agent.js +0 -173
- package/agents/docs_agent.js +0 -148
- package/agents/memory_agent.js +0 -263
- package/agents/minimax.js +0 -173
- package/agents/npm_agent.js +0 -202
- package/agents/prompt_agent.js +0 -133
- package/agents/readme_agent.js +0 -148
- package/agents/spawn_agent.js +0 -160
- package/agents/stability.js +0 -173
- package/agents/todo_agent.js +0 -175
- package/bin/codeDave +0 -58
- package/docs/agent-dave-websocket-protocol.md +0 -180
- package/docs/agent-manager.md +0 -244
- package/docs/codeserver-pattern.md +0 -191
- package/docs/generic-toolset.md +0 -326
- package/docs/howtos/agent-networking.md +0 -253
- package/docs/howtos/spawn-agents.md.bak +0 -200
- package/docs/howtos/spawn-agents.md.bak_new +0 -200
- package/docs/multi-agent-clusters.md +0 -265
- package/docs/music-toolsets.md +0 -137
- package/docs/path-resolution-best-practices.md +0 -104
- package/docs/plans/minimax-music-generation.md +0 -80
- package/docs/plans/unified-agent-architecture.md +0 -146
- package/docs/plans/websocket-streaming-plan.md.bak +0 -317
- package/docs/prompt/spawn_agent.md +0 -175
- package/docs/prompt/spawn_agent.md.bak +0 -201
- package/docs/prompt/task_clarification_and_documentation.md +0 -35
- package/docs/prompt-class.md +0 -141
- package/docs/todo-archive-infra-2026-04-21.md +0 -15
- package/docs/todo-archive-v0.0.8.md +0 -1
- package/docs/todo-archive-v0.1.0.md +0 -32
- package/docs/todo-archive.md +0 -44
- package/docs/tools-syntax-validation.md +0 -121
- package/docs/toolset.md +0 -164
- package/docs/xai-responses.md +0 -111
- package/docs/xai_collections.md +0 -106
- package/lib/API/x.ai/ImageToolset.js +0 -165
- package/lib/API/x.ai/text.js +0 -415
- package/lib/AgentClient.js +0 -248
- package/lib/AgentManager.js +0 -245
- package/lib/AgentServer.js +0 -404
- package/lib/wsCli.js +0 -287
- package/lib/wsIO.js +0 -90
- package/types/API/x.ai/text.d.ts +0 -286
- package/types/AgentClient.d.ts +0 -109
- package/types/AgentManager.d.ts +0 -100
- package/types/AgentServer.d.ts +0 -89
- package/types/wsCli.d.ts +0 -17
- package/types/wsIO.d.ts +0 -30
- package/utils/test.sh +0 -46
- /package/docs/{suggestions.md → _notes/token-counts.md} +0 -0
- /package/lib/API/openai.com/{reponses/MESSAGES.md → MESSAGES.md} +0 -0
- /package/types/API/{x.ai/ImageToolset.d.ts → mureka/MusicToolset.d.ts} +0 -0
- /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>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type Prompt =
|
|
2
|
-
export type ToolSet =
|
|
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.
|
|
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" | "
|
|
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
|
-
*
|
|
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
|
|
98
|
+
top_logprobs?: number | null | undefined;
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
100
|
+
* Top-p sampling value between 0 and 1.
|
|
101
101
|
*/
|
|
102
|
-
top_p
|
|
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" | "
|
|
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?:
|
|
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<
|
|
239
|
+
export function request(prompt: Prompt, toolset?: ToolSet | null, options?: OAOptions, counter?: number): Promise<any>;
|