sandymount 0.0.11 → 0.0.12

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/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.11';
24
+ const VERSION = '0.0.12';
25
25
  const DEFAULT_PORT = 5420;
26
26
 
27
27
  function showBanner() {
@@ -52,14 +52,14 @@ Options:
52
52
  --root <path> Data directory (default: ./data)
53
53
  --no-nostr Disable Nostr relay
54
54
  --no-git Disable Git HTTP backend
55
- --idp Enable identity provider
55
+ --no-idp Disable identity provider
56
56
  --activitypub Enable ActivityPub federation
57
57
  --quiet Suppress logs
58
58
 
59
59
  Examples:
60
60
  npx sandymount
61
61
  sandymount --port 3000
62
- sandymount --activitypub --idp
62
+ sandymount --activitypub
63
63
 
64
64
  Website: https://sandy-mount.com
65
65
  `);
@@ -96,13 +96,16 @@ function startServer(startArgs) {
96
96
  jssArgs.push('--port', String(DEFAULT_PORT));
97
97
  }
98
98
 
99
- // Add defaults: nostr and git ON unless disabled
99
+ // Add defaults: nostr, git, and idp ON unless disabled
100
100
  if (!startArgs.includes('--nostr') && !startArgs.includes('--no-nostr')) {
101
101
  jssArgs.push('--nostr');
102
102
  }
103
103
  if (!startArgs.includes('--git') && !startArgs.includes('--no-git')) {
104
104
  jssArgs.push('--git');
105
105
  }
106
+ if (!startArgs.includes('--idp') && !startArgs.includes('--no-idp')) {
107
+ jssArgs.push('--idp');
108
+ }
106
109
 
107
110
  // Pass through all other args
108
111
  jssArgs.push(...startArgs);
@@ -115,14 +118,14 @@ function startServer(startArgs) {
115
118
  const nostrEnabled = !startArgs.includes('--no-nostr');
116
119
  const gitEnabled = !startArgs.includes('--no-git');
117
120
  const apEnabled = startArgs.includes('--activitypub');
118
- const idpEnabled = startArgs.includes('--idp');
121
+ const idpEnabled = !startArgs.includes('--no-idp');
119
122
 
120
123
  // Show SAND stack status
121
124
  console.log(' ┌─────────────────────────────────────┐');
122
125
  console.log(' │ S Solid ✓ enabled │');
123
126
  console.log(` │ A ActivityPub ${apEnabled ? '✓ enabled │' : '○ --activitypub │'}`);
124
127
  console.log(` │ N Nostr ${nostrEnabled ? '✓ enabled │' : '○ disabled │'}`);
125
- console.log(` │ D DID ${idpEnabled ? '✓ enabled (IdP) │' : '○ --idp │'}`);
128
+ console.log(` │ D DID ${idpEnabled ? '✓ enabled (IdP) │' : '○ --no-idp │'}`);
126
129
  console.log(' └─────────────────────────────────────┘');
127
130
  console.log('');
128
131
  console.log(` Port: ${port} Data: ${dataDir} Git: ${gitEnabled ? '✓' : '○'}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sandymount",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "SAND Stack: Solid + ActivityPub + Nostr + DID — Personal sovereignty in one command",
5
5
  "main": "index.js",
6
6
  "type": "module",