devlanes 0.13.0 → 0.13.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.
Files changed (2) hide show
  1. package/package.json +7 -7
  2. package/user-schema.json +25 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devlanes",
3
- "version": "0.13.0",
3
+ "version": "0.13.3",
4
4
  "description": "Development environments in Git worktree lanes",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://devlanes.run",
@@ -30,11 +30,11 @@
30
30
  "node": ">=18"
31
31
  },
32
32
  "optionalDependencies": {
33
- "@devlanes/darwin-arm64": "0.13.0",
34
- "@devlanes/darwin-x64": "0.13.0",
35
- "@devlanes/linux-arm64": "0.13.0",
36
- "@devlanes/linux-x64": "0.13.0",
37
- "@devlanes/win32-arm64": "0.13.0",
38
- "@devlanes/win32-x64": "0.13.0"
33
+ "@devlanes/darwin-arm64": "0.13.3",
34
+ "@devlanes/darwin-x64": "0.13.3",
35
+ "@devlanes/linux-arm64": "0.13.3",
36
+ "@devlanes/linux-x64": "0.13.3",
37
+ "@devlanes/win32-arm64": "0.13.3",
38
+ "@devlanes/win32-x64": "0.13.3"
39
39
  }
40
40
  }
package/user-schema.json CHANGED
@@ -402,6 +402,7 @@
402
402
  "http_port": 80,
403
403
  "https_port": 443,
404
404
  "lan": false,
405
+ "server_timing": true,
405
406
  "via": true
406
407
  }
407
408
  ],
@@ -443,6 +444,16 @@
443
444
  "markdownDescription": "Accept connections from other devices on the network; defaults to false, which refuses every peer that is not this machine. Those devices must still resolve the hostnames to this machine and trust the CA.",
444
445
  "type": "boolean"
445
446
  },
447
+ "server_timing": {
448
+ "default": true,
449
+ "description": "Add a `Server-Timing` header to every response, after any the service sent, with the time devlanes added (`devlanes`), waits for a starting service or a frozen lane (`devlanes-wait`), the connection to the service (`devlanes-connect`) and the service's own time (`devlanes-upstream`). Browser dev tools show these in the request's Timing tab. For a lane on a remote box, `devlanes-upstream` includes the connection to the box, which `devlanes-tunnel` estimates from its latest ping. Defaults to true; set false if a client or test compares response headers exactly.",
450
+ "examples": [
451
+ true,
452
+ false
453
+ ],
454
+ "markdownDescription": "Add a `Server-Timing` header to every response, after any the service sent, with the time devlanes added (`devlanes`), waits for a starting service or a frozen lane (`devlanes-wait`), the connection to the service (`devlanes-connect`) and the service's own time (`devlanes-upstream`). Browser dev tools show these in the request's Timing tab. For a lane on a remote box, `devlanes-upstream` includes the connection to the box, which `devlanes-tunnel` estimates from its latest ping. Defaults to true; set false if a client or test compares response headers exactly.",
455
+ "type": "boolean"
456
+ },
446
457
  "via": {
447
458
  "default": true,
448
459
  "description": "Add `Via: 1.1 devlanes.run` to every response the proxy forwards from a service (`1.1 devlanes.run (remote)` for lanes on a remote box), so a client can tell that devlanes sat in between. Defaults to true; set false if a client or test compares response headers exactly.",
@@ -1156,12 +1167,12 @@
1156
1167
  },
1157
1168
  "open_on_start": {
1158
1169
  "default": true,
1159
- "description": "Open the TUI for `start`, `restart`, `lane resume` and `lane new --start` when they run at a terminal; defaults to true. Set false to have them print text instead, as `--no-ui` or `DEVLANES_NO_UI=1` do.",
1170
+ "description": "Open the TUI for `start`, `restart`, `reload`, `lane resume` and `lane new --start` when they run at a terminal; defaults to true. Set false to have them print text instead, as `--no-ui` or `DEVLANES_NO_UI=1` do.",
1160
1171
  "examples": [
1161
1172
  true,
1162
1173
  false
1163
1174
  ],
1164
- "markdownDescription": "Open the TUI for `start`, `restart`, `lane resume` and `lane new --start` when they run at a terminal; defaults to true. Set false to have them print text instead, as `--no-ui` or `DEVLANES_NO_UI=1` do.",
1175
+ "markdownDescription": "Open the TUI for `start`, `restart`, `reload`, `lane resume` and `lane new --start` when they run at a terminal; defaults to true. Set false to have them print text instead, as `--no-ui` or `DEVLANES_NO_UI=1` do.",
1165
1176
  "type": "boolean"
1166
1177
  },
1167
1178
  "theme": {
@@ -1267,8 +1278,8 @@
1267
1278
  ],
1268
1279
  "enumDescriptions": [
1269
1280
  "Never look for releases; nothing is read from the network.",
1270
- "Read the latest version from the registry devlanes was installed from, and show it in the TUI and in command output when it is newer. Nothing is installed.",
1271
- "Like `notify`, and also install patch releases in the background where the install method allows it; they apply the next time you start devlanes at a terminal. Minor releases, which can break things before 1.0, still wait for you to update."
1281
+ "Read the latest version from the registry devlanes was installed from, and show it in the TUI and in command output when it is newer. Nothing is installed; run `devlanes update` to install it.",
1282
+ "The default. Read the latest version from the registry devlanes was installed from, show it in the TUI and in command output when it is newer, and install patch releases in the background where the install method allows it; they apply the next time you start devlanes at a terminal. Minor releases, which can break things before 1.0, still wait for `devlanes update`."
1272
1283
  ],
1273
1284
  "examples": [
1274
1285
  "disable",
@@ -1278,8 +1289,8 @@
1278
1289
  "markdownDescription": "What devlanes does about newer releases.",
1279
1290
  "markdownEnumDescriptions": [
1280
1291
  "Never look for releases; nothing is read from the network.",
1281
- "Read the latest version from the registry devlanes was installed from, and show it in the TUI and in command output when it is newer. Nothing is installed.",
1282
- "Like `notify`, and also install patch releases in the background where the install method allows it; they apply the next time you start devlanes at a terminal. Minor releases, which can break things before 1.0, still wait for you to update."
1292
+ "Read the latest version from the registry devlanes was installed from, and show it in the TUI and in command output when it is newer. Nothing is installed; run `devlanes update` to install it.",
1293
+ "The default. Read the latest version from the registry devlanes was installed from, show it in the TUI and in command output when it is newer, and install patch releases in the background where the install method allows it; they apply the next time you start devlanes at a terminal. Minor releases, which can break things before 1.0, still wait for `devlanes update`."
1283
1294
  ],
1284
1295
  "type": "string"
1285
1296
  },
@@ -1311,14 +1322,14 @@
1311
1322
  },
1312
1323
  "mode": {
1313
1324
  "$ref": "#/$defs/UpdateMode",
1314
- "default": "notify",
1315
- "description": "What devlanes does about newer releases: `notify` (the default) checks every 4 hours and when the TUI opens, and shows the new version; `auto` also installs patch releases in the background where the install method allows it; `disable` never checks. `DEVLANES_NO_UPDATE_CHECK=1` or a CI environment also turns checks off.",
1325
+ "default": "auto",
1326
+ "description": "What devlanes does about newer releases: `auto` (the default) checks every 4 hours and when the TUI opens, shows the new version and installs patch releases in the background where the install method allows it; `notify` only shows the new version; `disable` never checks. `DEVLANES_NO_UPDATE_CHECK=1` or a CI environment also turns checks off.",
1316
1327
  "examples": [
1317
1328
  "disable",
1318
1329
  "notify",
1319
1330
  "auto"
1320
1331
  ],
1321
- "markdownDescription": "What devlanes does about newer releases: `notify` (the default) checks every 4 hours and when the TUI opens, and shows the new version; `auto` also installs patch releases in the background where the install method allows it; `disable` never checks. `DEVLANES_NO_UPDATE_CHECK=1` or a CI environment also turns checks off."
1332
+ "markdownDescription": "What devlanes does about newer releases: `auto` (the default) checks every 4 hours and when the TUI opens, shows the new version and installs patch releases in the background where the install method allows it; `notify` only shows the new version; `disable` never checks. `DEVLANES_NO_UPDATE_CHECK=1` or a CI environment also turns checks off."
1322
1333
  }
1323
1334
  },
1324
1335
  "type": "object"
@@ -1357,13 +1368,13 @@
1357
1368
  "freeze_after": {
1358
1369
  "$ref": "#/$defs/ConfigDuration",
1359
1370
  "default": "900000ms",
1360
- "description": "After this long without activity, devlanes freezes a lane: it suspends every process of the lane and pauses the lane's own containers. Shared infra is never paused. Ports and process state are kept, so a frozen lane still counts as running. Activity is a request through the proxy, a new connection to one of the lane's ports, the lane's services using CPU, or a devlanes command on the lane; any of it resumes a frozen lane and restarts the timer. A request through the proxy resumes the lane at once and then goes through; a direct connection to a port is noticed within about half a second. When both are set above `0s`, it must be longer than `throttle_after` (`5m` unless set). A running service with `services.<name>.keep_awake: true` keeps its whole lane awake. Defaults to `15m`; `0s` turns freezing off. The daemon reads it when it starts.",
1371
+ "description": "After this long without activity, devlanes freezes a lane: it suspends every process of the lane and pauses the lane's own containers. Shared infra is never paused. Ports and process state are kept, so a frozen lane still counts as running. A request through the proxy, a new connection to one of the lane's ports, or a devlanes command on the lane resumes a frozen lane and restarts the timer. The lane's services using CPU keep a running lane from freezing, but cannot resume a frozen one, since its processes are suspended. A request through the proxy resumes the lane at once and then goes through; a direct connection to a port is noticed within about half a second. When both are set above `0s`, it must be longer than `throttle_after` (`5m` unless set). A running service with `services.<name>.keep_awake: true` keeps its whole lane awake. Defaults to `15m`; `0s` turns freezing off. The daemon reads it when it starts.",
1361
1372
  "examples": [
1362
1373
  "15m",
1363
1374
  "1h",
1364
1375
  "0s"
1365
1376
  ],
1366
- "markdownDescription": "After this long without activity, devlanes freezes a lane: it suspends every process of the lane and pauses the lane's own containers. Shared infra is never paused. Ports and process state are kept, so a frozen lane still counts as running. Activity is a request through the proxy, a new connection to one of the lane's ports, the lane's services using CPU, or a devlanes command on the lane; any of it resumes a frozen lane and restarts the timer. A request through the proxy resumes the lane at once and then goes through; a direct connection to a port is noticed within about half a second. When both are set above `0s`, it must be longer than `throttle_after` (`5m` unless set). A running service with `services.<name>.keep_awake: true` keeps its whole lane awake. Defaults to `15m`; `0s` turns freezing off. The daemon reads it when it starts."
1377
+ "markdownDescription": "After this long without activity, devlanes freezes a lane: it suspends every process of the lane and pauses the lane's own containers. Shared infra is never paused. Ports and process state are kept, so a frozen lane still counts as running. A request through the proxy, a new connection to one of the lane's ports, or a devlanes command on the lane resumes a frozen lane and restarts the timer. The lane's services using CPU keep a running lane from freezing, but cannot resume a frozen one, since its processes are suspended. A request through the proxy resumes the lane at once and then goes through; a direct connection to a port is noticed within about half a second. When both are set above `0s`, it must be longer than `throttle_after` (`5m` unless set). A running service with `services.<name>.keep_awake: true` keeps its whole lane awake. Defaults to `15m`; `0s` turns freezing off. The daemon reads it when it starts."
1367
1378
  },
1368
1379
  "throttle_after": {
1369
1380
  "$ref": "#/$defs/ConfigDuration",
@@ -1522,6 +1533,7 @@
1522
1533
  "http_port": 80,
1523
1534
  "https_port": 443,
1524
1535
  "lan": false,
1536
+ "server_timing": true,
1525
1537
  "via": true
1526
1538
  },
1527
1539
  "description": "Ports of the daemon's HTTP/HTTPS proxy, which serves every `hosts` entry, and whether other devices on the network may connect to it.",
@@ -1530,6 +1542,7 @@
1530
1542
  "http_port": 80,
1531
1543
  "https_port": 443,
1532
1544
  "lan": false,
1545
+ "server_timing": true,
1533
1546
  "via": true
1534
1547
  }
1535
1548
  ],
@@ -1696,7 +1709,7 @@
1696
1709
  "$ref": "#/$defs/UpdatesConfig",
1697
1710
  "default": {
1698
1711
  "highlights": true,
1699
- "mode": "notify"
1712
+ "mode": "auto"
1700
1713
  },
1701
1714
  "description": "Release checks: whether the daemon looks for newer devlanes releases (`mode`), and whether the TUI shows release highlights after an update (`highlights`).",
1702
1715
  "examples": [