@drakulavich/kesha-voice-kit 1.0.2 → 1.0.3
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/openclaw-plugin.js +14 -0
- package/package.json +10 -1
- package/src/engine-install.ts +10 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// OpenClaw plugin entry stub for Kesha Voice Kit.
|
|
2
|
+
//
|
|
3
|
+
// The actual wiring lives in openclaw.plugin.json's configPatch, which
|
|
4
|
+
// installs `kesha --json {{MediaPath}}` under tools.media.audio. This
|
|
5
|
+
// file exists only to satisfy OpenClaw's requirement that native
|
|
6
|
+
// plugins declare at least one JavaScript extension in
|
|
7
|
+
// package.json#openclaw.extensions — Kesha has no hooks, tools, or
|
|
8
|
+
// services to register beyond the config patch itself.
|
|
9
|
+
export default {
|
|
10
|
+
id: "kesha-voice-kit",
|
|
11
|
+
register() {
|
|
12
|
+
// intentionally empty — see openclaw.plugin.json
|
|
13
|
+
},
|
|
14
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drakulavich/kesha-voice-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Open-source voice toolkit for Apple Silicon. Speech-to-text, language detection. 25 languages.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -17,11 +17,20 @@
|
|
|
17
17
|
"package.json",
|
|
18
18
|
"tsconfig.json",
|
|
19
19
|
"openclaw.plugin.json",
|
|
20
|
+
"openclaw-plugin.js",
|
|
20
21
|
"SKILL.md",
|
|
21
22
|
"scripts/postinstall.cjs",
|
|
22
23
|
"LICENSE",
|
|
23
24
|
"README.md"
|
|
24
25
|
],
|
|
26
|
+
"openclaw": {
|
|
27
|
+
"extensions": [
|
|
28
|
+
"./openclaw-plugin.js"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"keshaEngine": {
|
|
32
|
+
"version": "1.0.2"
|
|
33
|
+
},
|
|
25
34
|
"scripts": {
|
|
26
35
|
"test": "bun test",
|
|
27
36
|
"test:unit": "bun test tests/unit/",
|
package/src/engine-install.ts
CHANGED
|
@@ -25,8 +25,16 @@ export async function downloadEngine(noCache = false, backend?: string): Promise
|
|
|
25
25
|
} else {
|
|
26
26
|
const binaryName = getEngineBinaryName();
|
|
27
27
|
const pkg = await Bun.file(new URL("../package.json", import.meta.url)).json();
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
// The engine version is tracked separately from the CLI version so
|
|
29
|
+
// CLI-only patch releases don't require cutting a new GitHub release
|
|
30
|
+
// + Rust rebuild. Fall back to the CLI version for backwards compat.
|
|
31
|
+
const engineVersion =
|
|
32
|
+
typeof pkg.keshaEngine?.version === "string"
|
|
33
|
+
? pkg.keshaEngine.version
|
|
34
|
+
: typeof pkg.version === "string"
|
|
35
|
+
? pkg.version
|
|
36
|
+
: "unknown";
|
|
37
|
+
const url = `https://github.com/${GITHUB_REPO}/releases/download/v${engineVersion}/${binaryName}`;
|
|
30
38
|
|
|
31
39
|
mkdirSync(dirname(binPath), { recursive: true });
|
|
32
40
|
|