@moltium/world-cli 0.1.7 → 0.1.8
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 +13 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -111,13 +111,13 @@ async function main() {
|
|
|
111
111
|
// Start HTTP server
|
|
112
112
|
await startWorldServer(world);
|
|
113
113
|
|
|
114
|
-
console.log(
|
|
115
|
-
console.log(
|
|
116
|
-
console.log(
|
|
114
|
+
console.log(\`\u{1F30D} \${config.name} is running!\`);
|
|
115
|
+
console.log(\` Server: http://\${config.server?.host ?? 'localhost'}:\${config.server?.port ?? 3000}\`);
|
|
116
|
+
console.log(\` Agents: \${world.getAgents().length}/\${config.admission?.maxAgents ?? 10}\`);
|
|
117
117
|
|
|
118
118
|
// Graceful shutdown
|
|
119
119
|
process.on('SIGINT', async () => {
|
|
120
|
-
console.log('
|
|
120
|
+
console.log('\\n\\n\u{1F6D1} Shutting down...');
|
|
121
121
|
await world.stop();
|
|
122
122
|
process.exit(0);
|
|
123
123
|
});
|
|
@@ -396,11 +396,17 @@ var initCommand = new Command("init").description("Initialize a new world projec
|
|
|
396
396
|
"deploy:contracts": "moltium-world deploy"
|
|
397
397
|
},
|
|
398
398
|
dependencies: {
|
|
399
|
-
"@moltium/world-core": "^0.1.
|
|
400
|
-
dotenv: "^16.4.0"
|
|
399
|
+
"@moltium/world-core": "^0.1.8",
|
|
400
|
+
dotenv: "^16.4.0",
|
|
401
|
+
...persistenceAnswers.persistenceType === "sqlite" ? { "better-sqlite3": "^11.0.0" } : {},
|
|
402
|
+
...persistenceAnswers.persistenceType === "redis" ? { "ioredis": "^5.3.0" } : {},
|
|
403
|
+
...persistenceAnswers.persistenceType === "postgres" ? { "pg": "^8.12.0" } : {},
|
|
404
|
+
...persistenceAnswers.persistenceType === "mongo" ? { "mongodb": "^6.3.0" } : {},
|
|
405
|
+
...persistenceAnswers.persistenceType === "leveldb" ? { "level": "^8.0.0" } : {}
|
|
401
406
|
},
|
|
402
407
|
devDependencies: {
|
|
403
408
|
"@types/node": "^22.0.0",
|
|
409
|
+
...persistenceAnswers.persistenceType === "sqlite" ? { "@types/better-sqlite3": "^7.6.0" } : {},
|
|
404
410
|
tsup: "^8.3.0",
|
|
405
411
|
tsx: "^4.7.0",
|
|
406
412
|
typescript: "^5.3.0"
|
|
@@ -809,7 +815,7 @@ var deployCommand = new Command4("deploy").description("Deploy smart contracts t
|
|
|
809
815
|
|
|
810
816
|
// src/index.ts
|
|
811
817
|
var program = new Command5();
|
|
812
|
-
program.name("moltium-world").description("CLI tool for creating and managing Moltium World SDK projects").version("0.1.
|
|
818
|
+
program.name("moltium-world").description("CLI tool for creating and managing Moltium World SDK projects").version("0.1.8");
|
|
813
819
|
program.addCommand(initCommand);
|
|
814
820
|
program.addCommand(tokenCommand);
|
|
815
821
|
program.addCommand(startCommand);
|