whisperpro 0.0.0-stage → 1.6.1
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/bin/WhisperPro.exe +0 -0
- package/bin/cli.js +23 -0
- package/package.json +17 -3
- package/README.md +0 -3
|
Binary file
|
package/bin/cli.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// WhisperPro launcher: resolves the bundled native binary and starts it detached.
|
|
3
|
+
import { spawn } from "node:child_process";
|
|
4
|
+
import { existsSync } from "node:fs";
|
|
5
|
+
import path from "node:path";
|
|
6
|
+
import { fileURLToPath } from "node:url";
|
|
7
|
+
|
|
8
|
+
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
|
|
10
|
+
const candidates = [
|
|
11
|
+
process.env.WHISPERPRO_BIN,
|
|
12
|
+
path.join(here, "..", "bin", "WhisperPro.exe"),
|
|
13
|
+
].filter(Boolean);
|
|
14
|
+
|
|
15
|
+
const bin = candidates.find((p) => existsSync(p));
|
|
16
|
+
if (!bin) {
|
|
17
|
+
console.error("WhisperPro binary not found. Reinstall the package or set WHISPERPRO_BIN.");
|
|
18
|
+
process.exit(1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const child = spawn(bin, process.argv.slice(2), { detached: true, stdio: "ignore" });
|
|
22
|
+
child.unref();
|
|
23
|
+
console.log(`WhisperPro started (pid ${child.pid})`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "whisperpro",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "1.6.1",
|
|
4
|
+
"description": "WhisperPro - local voice dictation for Windows. Launch with: whisperpro",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"whisperpro": "bin/cli.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"bin/cli.js",
|
|
12
|
+
"bin/WhisperPro.exe"
|
|
13
|
+
],
|
|
14
|
+
"os": [
|
|
15
|
+
"win32"
|
|
16
|
+
],
|
|
17
|
+
"cpu": [
|
|
18
|
+
"x64"
|
|
19
|
+
]
|
|
6
20
|
}
|
package/README.md
DELETED