@emblemvault/agentwallet 3.0.0 → 3.0.2
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/emblemai.js +16 -8
- package/package.json +1 -1
package/emblemai.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* EmblemAI
|
|
4
|
+
* EmblemAI — Agent Command & Control
|
|
5
5
|
*
|
|
6
6
|
* Interactive mode (default):
|
|
7
7
|
* emblemai -p "password"
|
|
@@ -23,6 +23,9 @@ import { getPassword, authenticate, webLogin, promptPassword, authMenu, readPlug
|
|
|
23
23
|
import { processCommand } from './src/commands.js';
|
|
24
24
|
import { PluginManager } from './src/plugins/loader.js';
|
|
25
25
|
import * as glow from './src/glow.js';
|
|
26
|
+
import { createRequire } from 'module';
|
|
27
|
+
const require = createRequire(import.meta.url);
|
|
28
|
+
const { version: PKG_VERSION } = require('./package.json');
|
|
26
29
|
|
|
27
30
|
// History directory — partitioned by vaultId
|
|
28
31
|
const HISTORY_DIR = path.join(os.homedir(), '.emblemai', 'history');
|
|
@@ -414,14 +417,19 @@ async function main() {
|
|
|
414
417
|
await showSplash();
|
|
415
418
|
|
|
416
419
|
// Show banner after splash
|
|
420
|
+
const W = 59; // inner width between ║ borders
|
|
421
|
+
const pad = (s, visible) => s + ' '.repeat(Math.max(0, W - visible));
|
|
417
422
|
console.log('');
|
|
418
|
-
console.log(fmt.brand('
|
|
419
|
-
console.log(fmt.brand('║') + '
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
console.log(fmt.brand('║') + ` ${chalk.
|
|
423
|
-
console.log(fmt.brand('║') + '
|
|
424
|
-
|
|
423
|
+
console.log(fmt.brand('╔' + '═'.repeat(W) + '╗'));
|
|
424
|
+
console.log(fmt.brand('║') + ' '.repeat(W) + fmt.brand('║'));
|
|
425
|
+
const title = ` ⚡ EMBLEM AI v${PKG_VERSION} — Agent Command & Control`;
|
|
426
|
+
const titleLen = title.length + 1; // ⚡ renders as 2 columns
|
|
427
|
+
console.log(fmt.brand('║') + pad(` ${chalk.bold.white('⚡ EMBLEM AI')} ${chalk.dim(`v${PKG_VERSION} — Agent Command & Control`)}`, titleLen) + fmt.brand('║'));
|
|
428
|
+
console.log(fmt.brand('║') + ' '.repeat(W) + fmt.brand('║'));
|
|
429
|
+
const sub = ' Powered by Hustle Incognito';
|
|
430
|
+
console.log(fmt.brand('║') + pad(` ${chalk.dim('Powered by Hustle Incognito')}`, sub.length) + fmt.brand('║'));
|
|
431
|
+
console.log(fmt.brand('║') + ' '.repeat(W) + fmt.brand('║'));
|
|
432
|
+
console.log(fmt.brand('╚' + '═'.repeat(W) + '╝'));
|
|
425
433
|
console.log('');
|
|
426
434
|
|
|
427
435
|
// Load plugins
|
package/package.json
CHANGED