@cerebriline/core 4.100.271 → 4.100.272
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/assets/prompt-templates/claude.md +3 -0
- package/assets/prompt-templates/deepseek.md +3 -0
- package/assets/prompt-templates/default.md +13 -0
- package/assets/prompt-templates/gemma.md +3 -0
- package/assets/prompt-templates/glm.md +3 -0
- package/assets/prompt-templates/kimi-k3.md +3 -0
- package/assets/prompt-templates/kimi.md +3 -0
- package/assets/prompt-templates/minimax-m3.1-flash.md +3 -0
- package/assets/prompt-templates/minimax.md +3 -0
- package/assets/prompt-templates/nemotron.md +3 -0
- package/assets/prompt-templates/qwen.md +3 -0
- package/assets/skills/media-audio/SKILL.md +22 -7
- package/dist/cloud/index.js +1 -1
- package/dist/extensions/tools/audio-tools.d.ts +54 -7
- package/dist/extensions/tools/image-edit.d.ts +1 -1
- package/dist/extensions/tools/image-generation.d.ts +1 -1
- package/dist/extensions/tools/media-endpoint.d.ts +14 -5
- package/dist/extensions/tools/media-tools.d.ts +10 -4
- package/dist/hub/daemon/entry.js +495 -495
- package/dist/hub/index.js +465 -465
- package/dist/index.d.ts +1 -1
- package/dist/index.js +749 -729
- package/dist/remote/remote-helper-entry.js +1 -1
- package/dist/remote/remote-helper.js +1 -1
- package/package.json +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The media tools as one set, built from one configuration.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
* `synthesize_speech`, `generate_video` -- share one rule for where a request
|
|
4
|
+
* Six tools -- `generate_image`, `edit_image`, `transcribe_audio`,
|
|
5
|
+
* `synthesize_speech`, `generate_sound_effect`, `generate_video` -- share one rule for where a request
|
|
6
6
|
* goes (see `media-endpoint.ts`), and two hosts offer them: the extension from
|
|
7
7
|
* its settings tabs and the CLI from a file. If each host wrote its own
|
|
8
8
|
* "which tools, pointed where", the two would drift the first time one of them
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* soon as it names somewhere to go, whether or not that server answers now.
|
|
15
15
|
*/
|
|
16
16
|
import type { AgentTool } from "@cerebriline/shared";
|
|
17
|
-
import { type SpeechEndpoint, type TranscriptionEndpoint } from "./audio-tools";
|
|
17
|
+
import { type SoundEffectEndpoint, type SpeechEndpoint, type TranscriptionEndpoint } from "./audio-tools";
|
|
18
18
|
import { type ImageGenerationEndpoint } from "./image-generation";
|
|
19
19
|
import { type MediaEndpointProbe, type MediaSessionProvider, type ResolvedMediaEndpoint } from "./media-endpoint";
|
|
20
20
|
import type { RenderDriver } from "./render-image";
|
|
@@ -49,6 +49,10 @@ export interface MediaToolsConfig {
|
|
|
49
49
|
voice?: string;
|
|
50
50
|
format?: string;
|
|
51
51
|
};
|
|
52
|
+
/** `generate_sound_effect`. */
|
|
53
|
+
soundEffects?: MediaSectionSettings & {
|
|
54
|
+
format?: string;
|
|
55
|
+
};
|
|
52
56
|
/** `generate_video`. */
|
|
53
57
|
video?: MediaSectionSettings & {
|
|
54
58
|
size?: string;
|
|
@@ -56,13 +60,14 @@ export interface MediaToolsConfig {
|
|
|
56
60
|
format?: string;
|
|
57
61
|
};
|
|
58
62
|
}
|
|
59
|
-
export declare const MEDIA_TOOL_NAMES: readonly ["generate_image", "edit_image", "transcribe_audio", "synthesize_speech", "generate_video"];
|
|
63
|
+
export declare const MEDIA_TOOL_NAMES: readonly ["generate_image", "edit_image", "transcribe_audio", "synthesize_speech", "generate_sound_effect", "generate_video"];
|
|
60
64
|
export type MediaToolName = (typeof MEDIA_TOOL_NAMES)[number];
|
|
61
65
|
interface MediaToolEndpoints {
|
|
62
66
|
generate_image: ImageGenerationEndpoint;
|
|
63
67
|
edit_image: ImageGenerationEndpoint;
|
|
64
68
|
transcribe_audio: TranscriptionEndpoint;
|
|
65
69
|
synthesize_speech: SpeechEndpoint;
|
|
70
|
+
generate_sound_effect: SoundEffectEndpoint;
|
|
66
71
|
generate_video: VideoGenerationEndpoint;
|
|
67
72
|
}
|
|
68
73
|
export type ResolvedMediaTool<T extends MediaToolName = MediaToolName> = (Omit<Exclude<ResolvedMediaEndpoint, {
|
|
@@ -131,6 +136,7 @@ export declare function createMediaTools(options: CreateMediaToolsOptions): Prom
|
|
|
131
136
|
* "image": { "model": "flux2-klein", "size": "1024x1024" },
|
|
132
137
|
* "transcription": true,
|
|
133
138
|
* "speech": { "voice": "alloy" },
|
|
139
|
+
* "soundEffects": { "model": "mannix/stable-audio:3-small-sfx-q8_0" },
|
|
134
140
|
* "video": { "baseUrl": "http://other:8090", "model": "wan2.1" }
|
|
135
141
|
* }
|
|
136
142
|
* ```
|