@lanonasis/cli 3.0.5 → 3.0.7
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-simple.js +4 -1
- package/dist/index.js +1 -1
- package/dist/mcp/memory-state.js +1 -1
- package/package.json +1 -1
package/dist/index-simple.js
CHANGED
|
@@ -23,6 +23,9 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
23
23
|
const __dirname = path.dirname(__filename);
|
|
24
24
|
// Load environment variables
|
|
25
25
|
config();
|
|
26
|
+
import { createRequire } from 'module';
|
|
27
|
+
const require = createRequire(import.meta.url);
|
|
28
|
+
const packageJson = require('../package.json');
|
|
26
29
|
// Enhanced color scheme (VPS-style)
|
|
27
30
|
const colors = {
|
|
28
31
|
primary: chalk.blue.bold,
|
|
@@ -45,7 +48,7 @@ program
|
|
|
45
48
|
.alias(isOnasisInvocation ? 'lanonasis' : 'memory')
|
|
46
49
|
.alias(isOnasisInvocation ? 'memory' : 'maas')
|
|
47
50
|
.description(colors.info(`🧠 ${isOnasisInvocation ? 'Onasis-Core Golden Contract CLI' : 'LanOnasis Enterprise CLI'} - Memory as a Service, API Management & Infrastructure Orchestration`))
|
|
48
|
-
.version(
|
|
51
|
+
.version(packageJson.version, '-v, --version', 'display version number')
|
|
49
52
|
.option('-V, --verbose', 'enable verbose logging')
|
|
50
53
|
.option('--api-url <url>', 'override API URL')
|
|
51
54
|
.option('--output <format>', 'output format (json, table, yaml)', 'table')
|
package/dist/index.js
CHANGED
|
@@ -453,8 +453,8 @@ program
|
|
|
453
453
|
.command('status')
|
|
454
454
|
.description('Show overall system status')
|
|
455
455
|
.action(async () => {
|
|
456
|
-
const isAuth = await cliConfig.isAuthenticated();
|
|
457
456
|
await cliConfig.init();
|
|
457
|
+
const isAuth = await cliConfig.isAuthenticated();
|
|
458
458
|
const apiUrl = cliConfig.getApiUrl();
|
|
459
459
|
console.log(chalk.blue.bold('MaaS CLI Status'));
|
|
460
460
|
console.log(`API URL: ${apiUrl}`);
|
package/dist/mcp/memory-state.js
CHANGED
|
@@ -296,6 +296,6 @@ export class MemoryStateManager {
|
|
|
296
296
|
return 'anonymous';
|
|
297
297
|
}
|
|
298
298
|
generateTransitionId() {
|
|
299
|
-
return `transition_${Date.now()}_${Math.random().toString(36).
|
|
299
|
+
return `transition_${Date.now()}_${Math.random().toString(36).substring(2, 11)}`;
|
|
300
300
|
}
|
|
301
301
|
}
|
package/package.json
CHANGED