sandymount 0.0.11 → 0.0.13

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 +15 -7
  2. package/package.json +2 -2
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.13';
25
25
  const DEFAULT_PORT = 5420;
26
26
 
27
27
  function showBanner() {
@@ -52,14 +52,15 @@ 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
+ --no-mashlib Disable SolidOS data browser UI
56
57
  --activitypub Enable ActivityPub federation
57
58
  --quiet Suppress logs
58
59
 
59
60
  Examples:
60
61
  npx sandymount
61
62
  sandymount --port 3000
62
- sandymount --activitypub --idp
63
+ sandymount --activitypub
63
64
 
64
65
  Website: https://sandy-mount.com
65
66
  `);
@@ -96,13 +97,19 @@ function startServer(startArgs) {
96
97
  jssArgs.push('--port', String(DEFAULT_PORT));
97
98
  }
98
99
 
99
- // Add defaults: nostr and git ON unless disabled
100
+ // Add defaults: nostr, git, idp, and mashlib-cdn ON unless disabled
100
101
  if (!startArgs.includes('--nostr') && !startArgs.includes('--no-nostr')) {
101
102
  jssArgs.push('--nostr');
102
103
  }
103
104
  if (!startArgs.includes('--git') && !startArgs.includes('--no-git')) {
104
105
  jssArgs.push('--git');
105
106
  }
107
+ if (!startArgs.includes('--idp') && !startArgs.includes('--no-idp')) {
108
+ jssArgs.push('--idp');
109
+ }
110
+ if (!startArgs.includes('--mashlib-cdn') && !startArgs.includes('--no-mashlib')) {
111
+ jssArgs.push('--mashlib-cdn');
112
+ }
106
113
 
107
114
  // Pass through all other args
108
115
  jssArgs.push(...startArgs);
@@ -115,17 +122,18 @@ function startServer(startArgs) {
115
122
  const nostrEnabled = !startArgs.includes('--no-nostr');
116
123
  const gitEnabled = !startArgs.includes('--no-git');
117
124
  const apEnabled = startArgs.includes('--activitypub');
118
- const idpEnabled = startArgs.includes('--idp');
125
+ const idpEnabled = !startArgs.includes('--no-idp');
126
+ const mashlibEnabled = !startArgs.includes('--no-mashlib');
119
127
 
120
128
  // Show SAND stack status
121
129
  console.log(' ┌─────────────────────────────────────┐');
122
130
  console.log(' │ S Solid ✓ enabled │');
123
131
  console.log(` │ A ActivityPub ${apEnabled ? '✓ enabled │' : '○ --activitypub │'}`);
124
132
  console.log(` │ N Nostr ${nostrEnabled ? '✓ enabled │' : '○ disabled │'}`);
125
- console.log(` │ D DID ${idpEnabled ? '✓ enabled (IdP) │' : '○ --idp │'}`);
133
+ console.log(` │ D DID ${idpEnabled ? '✓ enabled (IdP) │' : '○ --no-idp │'}`);
126
134
  console.log(' └─────────────────────────────────────┘');
127
135
  console.log('');
128
- console.log(` Port: ${port} Data: ${dataDir} Git: ${gitEnabled ? '✓' : '○'}`);
136
+ console.log(` Port: ${port} Data: ${dataDir} Git: ${gitEnabled ? '✓' : '○'} UI: ${mashlibEnabled ? '✓' : '○'}`);
129
137
  console.log('');
130
138
 
131
139
  // Find jss binary
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sandymount",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "SAND Stack: Solid + ActivityPub + Nostr + DID — Personal sovereignty in one command",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -33,6 +33,6 @@
33
33
  },
34
34
  "homepage": "https://sandy-mount.com",
35
35
  "dependencies": {
36
- "javascript-solid-server": "^0.0.70"
36
+ "javascript-solid-server": "^0.0.71"
37
37
  }
38
38
  }