sandymount 0.0.7 → 0.0.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.
Files changed (2) hide show
  1. package/bin/sandymount.js +18 -3
  2. package/package.json +1 -1
package/bin/sandymount.js CHANGED
@@ -21,7 +21,7 @@ const __dirname = dirname(__filename);
21
21
  const args = process.argv.slice(2);
22
22
  const command = args[0];
23
23
 
24
- const VERSION = '0.0.7';
24
+ const VERSION = '0.0.8';
25
25
  const DEFAULT_PORT = 5420;
26
26
 
27
27
  function showBanner() {
@@ -109,8 +109,23 @@ function startServer(startArgs) {
109
109
 
110
110
  showBanner();
111
111
 
112
- console.log(` Starting server on port ${startArgs.includes('--port') ? startArgs[startArgs.indexOf('--port') + 1] : DEFAULT_PORT}...`);
113
- console.log(` Data directory: ${startArgs.includes('--root') ? startArgs[startArgs.indexOf('--root') + 1] : './data'}`);
112
+ // Determine what's enabled
113
+ const port = startArgs.includes('--port') ? startArgs[startArgs.indexOf('--port') + 1] : DEFAULT_PORT;
114
+ const dataDir = startArgs.includes('--root') ? startArgs[startArgs.indexOf('--root') + 1] : './data';
115
+ const nostrEnabled = !startArgs.includes('--no-nostr');
116
+ const gitEnabled = !startArgs.includes('--no-git');
117
+ const apEnabled = startArgs.includes('--activitypub');
118
+ const idpEnabled = startArgs.includes('--idp');
119
+
120
+ // Show SAND stack status
121
+ console.log(' ┌─────────────────────────────────────┐');
122
+ console.log(' │ S Solid ✓ enabled │');
123
+ console.log(` │ A ActivityPub ${apEnabled ? '✓ enabled │' : '○ --activitypub │'}`);
124
+ console.log(` │ N Nostr ${nostrEnabled ? '✓ enabled │' : '○ disabled │'}`);
125
+ console.log(` │ D DID ${idpEnabled ? '✓ enabled (IdP) │' : '○ --idp │'}`);
126
+ console.log(' └─────────────────────────────────────┘');
127
+ console.log('');
128
+ console.log(` Port: ${port} Data: ${dataDir} Git: ${gitEnabled ? '✓' : '○'}`);
114
129
  console.log('');
115
130
 
116
131
  // Find jss binary
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sandymount",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "SAND Stack: Solid + ActivityPub + Nostr + DID — Personal sovereignty in one command",
5
5
  "main": "index.js",
6
6
  "type": "module",