derolicia 1.0.3 → 1.0.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/bin/postinstall.js +21 -28
- package/package.json +1 -1
package/bin/postinstall.js
CHANGED
|
@@ -1,38 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Dera postinstall
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* Runs the installation wizard after "npm install derolicia"
|
|
8
|
-
* Silently skips if wizard is not found or errors occur
|
|
4
|
+
* Dera postinstall — cross-platform banner
|
|
5
|
+
* Shows welcome message and next steps.
|
|
6
|
+
* Does NOT run interactive wizard (stdin is not available during npm install).
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
const fs = require('fs');
|
|
13
|
-
|
|
14
|
-
// Skip in CI environments
|
|
9
|
+
// Skip in CI
|
|
15
10
|
if (process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true') {
|
|
16
11
|
process.exit(0);
|
|
17
12
|
}
|
|
18
13
|
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} else if (fs.existsSync(legacyPath)) {
|
|
28
|
-
require(legacyPath);
|
|
29
|
-
} else {
|
|
30
|
-
console.log('\n✅ derolicia installed! Run "npx derolicia" to set up your project.\n');
|
|
31
|
-
}
|
|
32
|
-
} catch (err) {
|
|
33
|
-
// Never block install due to wizard errors
|
|
34
|
-
console.log('\n✅ derolicia installed! Run "npx derolicia" to set up your project.\n');
|
|
35
|
-
}
|
|
36
|
-
}
|
|
14
|
+
const banner = `
|
|
15
|
+
██████╗ ███████╗██████╗ █████╗
|
|
16
|
+
██╔══██╗██╔════╝██╔══██╗██╔══██╗
|
|
17
|
+
██║ ██║█████╗ ██████╔╝███████║
|
|
18
|
+
██║ ██║██╔══╝ ██╔══██╗██╔══██║
|
|
19
|
+
██████╔╝███████╗██║ ██║██║ ██║
|
|
20
|
+
╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝
|
|
21
|
+
`;
|
|
37
22
|
|
|
38
|
-
|
|
23
|
+
console.log('\x1b[36m' + banner + '\x1b[0m');
|
|
24
|
+
console.log('\x1b[35m Universal AI Agent Framework for Any Domain\x1b[0m');
|
|
25
|
+
console.log('\x1b[33m derolicia v' + require('../package.json').version + '\x1b[0m');
|
|
26
|
+
console.log('\n \x1b[90m' + '─'.repeat(50) + '\x1b[0m\n');
|
|
27
|
+
console.log(' \x1b[32m✅ derolicia installed!\x1b[0m\n');
|
|
28
|
+
console.log(' \x1b[1mNext step — run the setup wizard:\x1b[0m');
|
|
29
|
+
console.log(' \x1b[36m npx derolicia init\x1b[0m\n');
|
|
30
|
+
console.log(' \x1b[90mThis will configure your IDE, agents, and project.\x1b[0m');
|
|
31
|
+
console.log('\n \x1b[90m' + '─'.repeat(50) + '\x1b[0m\n');
|