wilfredwake 1.0.1 → 1.0.3

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/.env.example CHANGED
@@ -10,7 +10,10 @@
10
10
  # Port to run orchestrator on
11
11
  PORT=3000
12
12
 
13
- # Path to service registry file
13
+ # Orchestrator public URL when deployed (used by CLI defaults)
14
+ ORCHESTRATOR_URL=https://wilfredwake.onrender.com
15
+
16
+ # Path to local service registry file (used by orchestrator server)
14
17
  REGISTRY_FILE=./src/config/services.yaml
15
18
 
16
19
  # Node environment
package/QUICKSTART.md CHANGED
@@ -89,7 +89,7 @@ wilfredwake init
89
89
  ```
90
90
 
91
91
  Follow the prompts:
92
- - **Orchestrator URL**: `http://localhost:3000` (or your server)
92
+ - **Orchestrator URL**: `https://wilfredwake.onrender.com` (or your server)
93
93
  - **Environment**: `dev` (default)
94
94
  - **API Token**: Optional
95
95
 
@@ -214,7 +214,7 @@ Edit service definitions in:
214
214
  nano src/config/services.yaml
215
215
 
216
216
  # After edit, reload:
217
- curl -X POST http://localhost:3000/api/reload
217
+ curl -X POST https://wilfredwake.onrender.com/api/reload
218
218
  ```
219
219
 
220
220
  To add a new service, edit `services.yaml`:
@@ -243,7 +243,7 @@ wilfredwake wake my-service
243
243
 
244
244
  1. **Check orchestrator is running:**
245
245
  ```bash
246
- curl http://localhost:3000/health
246
+ curl https://wilfredwake.onrender.com/health
247
247
  ```
248
248
 
249
249
  2. **Check configuration:**
@@ -367,7 +367,7 @@ wilfredwake health payment-consumer
367
367
  git pull
368
368
 
369
369
  # Reload service registry
370
- curl -X POST http://localhost:3000/api/reload
370
+ curl -X POST https://wilfredwake.onrender.com/api/reload
371
371
 
372
372
  # Wake any new services
373
373
  wilfredwake wake all
package/README.md CHANGED
@@ -41,7 +41,7 @@
41
41
  # Run setup wizard
42
42
  wilfredwake init
43
43
 
44
- # Provide orchestrator URL (default: http://localhost:3000)
44
+ # Provide orchestrator URL (default: https://wilfredwake.onrender.com)
45
45
  # Select environment (dev, staging, prod)
46
46
  # Optionally provide API token
47
47
  ```
@@ -185,7 +185,7 @@ This creates `~/.wilfredwake/config.json` with:
185
185
 
186
186
  ```json
187
187
  {
188
- "orchestratorUrl": "http://localhost:3000",
188
+ "orchestratorUrl": "https://wilfredwake.onrender.com",
189
189
  "token": "your-api-token",
190
190
  "environment": "dev",
191
191
  "preferences": {
@@ -203,7 +203,7 @@ This creates `~/.wilfredwake/config.json` with:
203
203
 
204
204
  | Option | Type | Default | Description |
205
205
  |--------|------|---------|-------------|
206
- | `orchestratorUrl` | string | `http://localhost:3000` | Orchestrator backend URL |
206
+ | `orchestratorUrl` | string | `https://wilfredwake.onrender.com` | Orchestrator backend URL |
207
207
  | `token` | string | `null` | API token for authentication |
208
208
  | `environment` | string | `dev` | Default environment (dev, staging, prod) |
209
209
  | `preferences.outputFormat` | string | `table` | Output format (table or json) |
@@ -231,7 +231,7 @@ export REQUIRE_AUTH=true
231
231
  Initialize wilfredwake configuration.
232
232
 
233
233
  **Options:**
234
- - `-o, --orchestrator <url>` - Orchestrator URL (default: http://localhost:3000)
234
+ - `-o, --orchestrator <url>` - Orchestrator URL (default: https://wilfredwake.onrender.com)
235
235
  - `-t, --token <token>` - Developer API token
236
236
 
237
237
  **Example:**
@@ -490,7 +490,7 @@ services:
490
490
  ```bash
491
491
  # Orchestrator reloads automatically (watch mode)
492
492
  # Or manually:
493
- curl -X POST http://localhost:3000/api/reload
493
+ curl -X POST https://wilfredwake.onrender.com/api/reload
494
494
  ```
495
495
 
496
496
  3. **Use immediately**
@@ -686,7 +686,7 @@ $ wilfredwake wake all --no-wait
686
686
  **Problem:** CLI can't reach the orchestrator backend.
687
687
 
688
688
  **Solution:**
689
- 1. Check orchestrator is running: `curl http://localhost:3000/health`
689
+ 1. Check orchestrator is running: `curl https://wilfredwake.onrender.com/health`
690
690
  2. Verify orchestrator URL in config: `cat ~/.wilfredwake/config.json`
691
691
  3. Check firewall/networking: Can you reach the URL?
692
692
 
@@ -829,3 +829,4 @@ For issues, questions, or suggestions:
829
829
  **Made with ❤️ by Wilfred Wake**
830
830
 
831
831
  *Keep your development environment awake and ready!* 🌅
832
+ # wilfredwake
package/bin/cli.js CHANGED
@@ -47,7 +47,7 @@ program
47
47
  .description(
48
48
  chalk.magenta('Initialize wilfredwake configuration (first-time setup)')
49
49
  )
50
- .option('-o, --orchestrator <url>', 'Orchestrator URL', 'http://localhost:3000')
50
+ .option('-o, --orchestrator <url>', 'Orchestrator URL', 'https://wilfredwake.onrender.com')
51
51
  .option('-t, --token <token>', 'Developer API token')
52
52
  .action(initCommand);
53
53
 
package/index.js CHANGED
@@ -99,7 +99,7 @@
99
99
  *
100
100
  * Default values:
101
101
  * {
102
- * "orchestratorUrl": "http://localhost:3000",
102
+ * "orchestratorUrl": "https://wilfredwake.onrender.com",
103
103
  * "token": null,
104
104
  * "environment": "dev",
105
105
  * "preferences": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wilfredwake",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "CLI Tool for Multi-Developer Development Environment Wake & Status Management",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -143,9 +143,9 @@ async function _promptForConfig(options) {
143
143
  console.log('');
144
144
 
145
145
  orchestrator = await question(
146
- `Orchestrator URL ${chalk.gray('(default: http://localhost:3000)')} `
146
+ `Orchestrator URL ${chalk.gray('(default: https://wilfredwake.onrender.com)')} `
147
147
  );
148
- orchestrator = orchestrator || 'http://localhost:3000';
148
+ orchestrator = orchestrator || 'https://wilfredwake.onrender.com';
149
149
  }
150
150
 
151
151
  // Validate URL format
package/src/cli/config.js CHANGED
@@ -27,8 +27,8 @@ export class ConfigManager {
27
27
  // DEFAULT CONFIGURATION
28
28
  // ═══════════════════════════════════════════════════════════════
29
29
  this.defaultConfig = {
30
- version: '1.0.0',
31
- orchestratorUrl: 'http://localhost:3000',
30
+ version: '1.0.0',
31
+ orchestratorUrl: 'https://wilfredwake.onrender.com',
32
32
  token: null,
33
33
  environment: 'dev',
34
34
  userId: this._generateUserId(),
@@ -43,15 +43,15 @@ export class ConfigManager {
43
43
  environments: {
44
44
  dev: {
45
45
  name: 'Development',
46
- orchestratorUrl: 'http://localhost:3000',
46
+ orchestratorUrl: 'https://wilfredwake.onrender.com',
47
47
  },
48
48
  staging: {
49
49
  name: 'Staging',
50
- orchestratorUrl: 'http://staging-orchestrator:3000',
50
+ orchestratorUrl: 'https://wilfredwake.onrender.com',
51
51
  },
52
52
  prod: {
53
53
  name: 'Production',
54
- orchestratorUrl: 'http://prod-orchestrator:3000',
54
+ orchestratorUrl: 'https://wilfredwake.onrender.com',
55
55
  },
56
56
  },
57
57
  lastSyncTime: null,
package/tests/cli.test.js CHANGED
@@ -247,7 +247,7 @@ services:
247
247
  test('Config - Validate URL format', async (t) => {
248
248
  const { utils } = await import('../src/shared/logger.js');
249
249
 
250
- assert.ok(utils.isValidUrl('http://localhost:3000'), 'Valid URL');
250
+ assert.ok(utils.isValidUrl('https://wilfredwake.onrender.com'), 'Valid URL');
251
251
  assert.ok(utils.isValidUrl('https://example.com'), 'Valid HTTPS URL');
252
252
  assert.ok(!utils.isValidUrl('not-a-url'), 'Invalid URL');
253
253
  });