@yujinapp/yuemail 0.6.0 → 0.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/yuemail.mjs +6 -1
- package/package.json +1 -1
package/bin/yuemail.mjs
CHANGED
|
@@ -25,7 +25,12 @@ const require = createRequire(import.meta.url);
|
|
|
25
25
|
const __filename = fileURLToPath(import.meta.url);
|
|
26
26
|
const __dirname = path.dirname(__filename);
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
/* Read the version from package.json so `yuemail version` never drifts from
|
|
29
|
+
* the published package (the bin used to hardcode '0.3.0'). require() here
|
|
30
|
+
* resolves relative to this file -> the package root package.json, both in
|
|
31
|
+
* dev and when installed globally. */
|
|
32
|
+
let VERSION = '0.0.0';
|
|
33
|
+
try { VERSION = require('../package.json').version || VERSION; } catch { /* keep fallback */ }
|
|
29
34
|
|
|
30
35
|
function printHelp() {
|
|
31
36
|
process.stdout.write(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yujinapp/yuemail",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Voice-first single-user email client. Dictate, sign, send. AI voice assistant (Brain) plus Google STT/TTS hearing+speaking, BYOK encrypted vault; degrades to the browser + fixed-phrase commands offline.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|