devlanes 0.4.4 → 0.5.0
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/package.json +7 -7
- package/schema.json +25 -6
- package/user-schema.json +42 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devlanes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
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.
|
|
34
|
-
"@devlanes/darwin-x64": "0.
|
|
35
|
-
"@devlanes/linux-arm64": "0.
|
|
36
|
-
"@devlanes/linux-x64": "0.
|
|
37
|
-
"@devlanes/win32-arm64": "0.
|
|
38
|
-
"@devlanes/win32-x64": "0.
|
|
33
|
+
"@devlanes/darwin-arm64": "0.5.0",
|
|
34
|
+
"@devlanes/darwin-x64": "0.5.0",
|
|
35
|
+
"@devlanes/linux-arm64": "0.5.0",
|
|
36
|
+
"@devlanes/linux-x64": "0.5.0",
|
|
37
|
+
"@devlanes/win32-arm64": "0.5.0",
|
|
38
|
+
"@devlanes/win32-x64": "0.5.0"
|
|
39
39
|
}
|
|
40
40
|
}
|
package/schema.json
CHANGED
|
@@ -401,6 +401,25 @@
|
|
|
401
401
|
],
|
|
402
402
|
"markdownDescription": "HTTP readiness probe against the unit's main port. Passes on a 2xx answer when `status` is unset, or on exactly `status` when it is set. Redirects are not followed.",
|
|
403
403
|
"properties": {
|
|
404
|
+
"host": {
|
|
405
|
+
"anyOf": [
|
|
406
|
+
{
|
|
407
|
+
"$ref": "#/$defs/Templated_string",
|
|
408
|
+
"description": "",
|
|
409
|
+
"examples": [],
|
|
410
|
+
"markdownDescription": ""
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"type": "null"
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"description": "Host header the check sends, for apps that answer only on their own hostname, such as `${{ self.hosts[0] }}`. The request still goes to 127.0.0.1; only the header changes. Defaults to `127.0.0.1:<port>`. Spaces and control characters are refused.",
|
|
417
|
+
"examples": [
|
|
418
|
+
"${{ self.hosts[0] }}",
|
|
419
|
+
"api.example.invalid"
|
|
420
|
+
],
|
|
421
|
+
"markdownDescription": "Host header the check sends, for apps that answer only on their own hostname, such as `${{ self.hosts[0] }}`. The request still goes to 127.0.0.1; only the header changes. Defaults to `127.0.0.1:<port>`. Spaces and control characters are refused."
|
|
422
|
+
},
|
|
404
423
|
"path": {
|
|
405
424
|
"anyOf": [
|
|
406
425
|
{
|
|
@@ -1548,7 +1567,7 @@
|
|
|
1548
1567
|
"type": "null"
|
|
1549
1568
|
}
|
|
1550
1569
|
],
|
|
1551
|
-
"description": "Ready once a GET request to `path` on the unit's main port answers with `status`, or with a 2xx status when `status` is unset. Redirects are not followed. Best when the app has a health route that fails while it is broken.",
|
|
1570
|
+
"description": "Ready once a GET request to `path` on the unit's main port answers with `status`, or with a 2xx status when `status` is unset. Redirects are not followed. Best when the app has a health route that fails while it is broken. Each request sends `User-Agent: devlanes-ready`, so an app can leave the checks out of its request logs.",
|
|
1552
1571
|
"examples": [
|
|
1553
1572
|
{
|
|
1554
1573
|
"path": "/healthz",
|
|
@@ -1556,7 +1575,7 @@
|
|
|
1556
1575
|
"timeout": "60s"
|
|
1557
1576
|
}
|
|
1558
1577
|
],
|
|
1559
|
-
"markdownDescription": "Ready once a GET request to `path` on the unit's main port answers with `status`, or with a 2xx status when `status` is unset. Redirects are not followed. Best when the app has a health route that fails while it is broken."
|
|
1578
|
+
"markdownDescription": "Ready once a GET request to `path` on the unit's main port answers with `status`, or with a 2xx status when `status` is unset. Redirects are not followed. Best when the app has a health route that fails while it is broken. Each request sends `User-Agent: devlanes-ready`, so an app can leave the checks out of its request logs."
|
|
1560
1579
|
},
|
|
1561
1580
|
"log": {
|
|
1562
1581
|
"anyOf": [
|
|
@@ -1869,12 +1888,12 @@
|
|
|
1869
1888
|
"type": "null"
|
|
1870
1889
|
}
|
|
1871
1890
|
],
|
|
1872
|
-
"description": "Set false for an on-demand service: a plain `devlanes start` without a `default` profile skips it, and so do globs such as `*` in profiles. Naming it or its `+tag`, on the command line or in a profile, still starts it. An expression is evaluated for each lane and acts like the `true` or `false` it gives, such as `${{ lane.index == 0 }}` to autostart only in the main lane. With `replicas`, the service starts all its copies when any copy's expression gives true. Defaults to true.",
|
|
1891
|
+
"description": "Set false for an on-demand service: a plain `devlanes start` without a `default` profile skips it unless the lane ran it before, and so do globs such as `*` in profiles. Naming it or its `+tag`, on the command line or in a profile, still starts it. An expression is evaluated for each lane and acts like the `true` or `false` it gives, such as `${{ lane.index == 0 }}` to autostart only in the main lane. With `replicas`, the service starts all its copies when any copy's expression gives true. Defaults to true.",
|
|
1873
1892
|
"examples": [
|
|
1874
1893
|
true,
|
|
1875
1894
|
false
|
|
1876
1895
|
],
|
|
1877
|
-
"markdownDescription": "Set false for an on-demand service: a plain `devlanes start` without a `default` profile skips it, and so do globs such as `*` in profiles. Naming it or its `+tag`, on the command line or in a profile, still starts it. An expression is evaluated for each lane and acts like the `true` or `false` it gives, such as `${{ lane.index == 0 }}` to autostart only in the main lane. With `replicas`, the service starts all its copies when any copy's expression gives true. Defaults to true."
|
|
1896
|
+
"markdownDescription": "Set false for an on-demand service: a plain `devlanes start` without a `default` profile skips it unless the lane ran it before, and so do globs such as `*` in profiles. Naming it or its `+tag`, on the command line or in a profile, still starts it. An expression is evaluated for each lane and acts like the `true` or `false` it gives, such as `${{ lane.index == 0 }}` to autostart only in the main lane. With `replicas`, the service starts all its copies when any copy's expression gives true. Defaults to true."
|
|
1878
1897
|
},
|
|
1879
1898
|
"cwd": {
|
|
1880
1899
|
"anyOf": [
|
|
@@ -3062,7 +3081,7 @@
|
|
|
3062
3081
|
"markdownDescription": "Services started by `devlanes start --profile <name>` (`default` when no profile is given): a list of names, globs and `+tag` selectors, or a mapping that can also exclude services, skip infra, add `env` and remap script names. Several `--profile` flags start the union."
|
|
3063
3082
|
},
|
|
3064
3083
|
"default": {},
|
|
3065
|
-
"description": "Named selections of services for `devlanes start --profile <name
|
|
3084
|
+
"description": "Named selections of services for `devlanes start --profile <name>`. A plain `devlanes start` brings back what the lane ran before; `default` is used when there is nothing to bring back, such as after `devlanes stop`. A profile is a list of names, globs and `+tag` selectors, or a mapping that can also exclude services, skip infra, add `env` and remap script names.",
|
|
3066
3085
|
"examples": [
|
|
3067
3086
|
{
|
|
3068
3087
|
"default": [
|
|
@@ -3079,7 +3098,7 @@
|
|
|
3079
3098
|
}
|
|
3080
3099
|
}
|
|
3081
3100
|
],
|
|
3082
|
-
"markdownDescription": "Named selections of services for `devlanes start --profile <name
|
|
3101
|
+
"markdownDescription": "Named selections of services for `devlanes start --profile <name>`. A plain `devlanes start` brings back what the lane ran before; `default` is used when there is nothing to bring back, such as after `devlanes stop`. A profile is a list of names, globs and `+tag` selectors, or a mapping that can also exclude services, skip infra, add `env` and remap script names.",
|
|
3083
3102
|
"type": "object"
|
|
3084
3103
|
},
|
|
3085
3104
|
"project": {
|
package/user-schema.json
CHANGED
|
@@ -485,6 +485,32 @@
|
|
|
485
485
|
],
|
|
486
486
|
"type": "string"
|
|
487
487
|
},
|
|
488
|
+
"StartConfig": {
|
|
489
|
+
"additionalProperties": false,
|
|
490
|
+
"description": "What a plain `devlanes start`, or `s` on a lane in the TUI, starts. Changes apply to the next command.",
|
|
491
|
+
"examples": [
|
|
492
|
+
{
|
|
493
|
+
"restore": true
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"restore": false
|
|
497
|
+
}
|
|
498
|
+
],
|
|
499
|
+
"markdownDescription": "What a plain `devlanes start`, or `s` on a lane in the TUI, starts. Changes apply to the next command.",
|
|
500
|
+
"properties": {
|
|
501
|
+
"restore": {
|
|
502
|
+
"default": true,
|
|
503
|
+
"description": "Bring back the services the lane ran before, with the same profiles, so a reboot or daemon crash costs one `devlanes start`; defaults to true. A lane stopped as a whole with `devlanes stop` has nothing to bring back and starts its `default` profile. Set false to always start the `default` profile (or every `autostart` service). `lane resume` and `daemon restart` restore either way.",
|
|
504
|
+
"examples": [
|
|
505
|
+
true,
|
|
506
|
+
false
|
|
507
|
+
],
|
|
508
|
+
"markdownDescription": "Bring back the services the lane ran before, with the same profiles, so a reboot or daemon crash costs one `devlanes start`; defaults to true. A lane stopped as a whole with `devlanes stop` has nothing to bring back and starts its `default` profile. Set false to always start the `default` profile (or every `autostart` service). `lane resume` and `daemon restart` restore either way.",
|
|
509
|
+
"type": "boolean"
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
"type": "object"
|
|
513
|
+
},
|
|
488
514
|
"StartupConfig": {
|
|
489
515
|
"additionalProperties": false,
|
|
490
516
|
"description": "Pacing of service starts, shared by every lane and project on this machine. Starts queue first come, first served; only spawning waits, running processes are never limited.",
|
|
@@ -1233,6 +1259,22 @@
|
|
|
1233
1259
|
],
|
|
1234
1260
|
"markdownDescription": "Ports of the daemon's HTTP/HTTPS proxy, which serves every `hosts` entry, and whether other devices on the network may connect to it."
|
|
1235
1261
|
},
|
|
1262
|
+
"start": {
|
|
1263
|
+
"$ref": "#/$defs/StartConfig",
|
|
1264
|
+
"default": {
|
|
1265
|
+
"restore": true
|
|
1266
|
+
},
|
|
1267
|
+
"description": "What a plain `devlanes start` (no services, no `--profile`) brings up: the services the lane ran before, or its default selection.",
|
|
1268
|
+
"examples": [
|
|
1269
|
+
{
|
|
1270
|
+
"restore": true
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
"restore": false
|
|
1274
|
+
}
|
|
1275
|
+
],
|
|
1276
|
+
"markdownDescription": "What a plain `devlanes start` (no services, no `--profile`) brings up: the services the lane ran before, or its default selection."
|
|
1277
|
+
},
|
|
1236
1278
|
"startup": {
|
|
1237
1279
|
"$ref": "#/$defs/StartupConfig",
|
|
1238
1280
|
"default": {
|