@openlife/cli 1.7.3 → 1.7.4
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/dist/index.js +10 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -223,10 +223,19 @@ function tryHandleDesignConversation(message) {
|
|
|
223
223
|
}
|
|
224
224
|
return null;
|
|
225
225
|
}
|
|
226
|
+
const pkgVersion = (() => {
|
|
227
|
+
try {
|
|
228
|
+
const raw = fs.readFileSync(path.join(__dirname, '..', 'package.json'), 'utf-8');
|
|
229
|
+
return JSON.parse(raw).version || '0.0.0';
|
|
230
|
+
}
|
|
231
|
+
catch {
|
|
232
|
+
return '0.0.0';
|
|
233
|
+
}
|
|
234
|
+
})();
|
|
226
235
|
program
|
|
227
236
|
.name('openlife')
|
|
228
237
|
.description('OPEN-LIFE Córtex Orquestrador (Dual-Core)')
|
|
229
|
-
.version(
|
|
238
|
+
.version(pkgVersion);
|
|
230
239
|
program
|
|
231
240
|
.command('install')
|
|
232
241
|
.description('Onboarding unificado: instala CLI ou Agente Autônomo')
|