@treestructuredplanning/gateway 0.3.0 → 0.3.4
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/README.md +31 -6
- package/dist/cli.js +254 -161
- package/dist/gateway-schema.json +84 -0
- package/dist/{shared-KRIZBGVD.js → shared-IDNTQEWS.js} +1580 -598
- package/package.json +1 -1
package/dist/gateway-schema.json
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"launch": "#/components/schemas/GatewayLaunchOffer",
|
|
7
7
|
"permit": "#/components/schemas/GatewayPermit",
|
|
8
8
|
"ping": "#/components/schemas/GatewayPing",
|
|
9
|
+
"recheck_sign_in": "#/components/schemas/GatewayRecheckSignIn",
|
|
9
10
|
"resume": "#/components/schemas/GatewayResumeOffer",
|
|
10
11
|
"retire": "#/components/schemas/GatewayRetire",
|
|
11
12
|
"stop": "#/components/schemas/GatewayStopOffer"
|
|
@@ -30,6 +31,9 @@
|
|
|
30
31
|
},
|
|
31
32
|
{
|
|
32
33
|
"$ref": "#/components/schemas/GatewayRetire"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"$ref": "#/components/schemas/GatewayRecheckSignIn"
|
|
33
37
|
}
|
|
34
38
|
],
|
|
35
39
|
"title": "HubToGateway"
|
|
@@ -607,6 +611,7 @@
|
|
|
607
611
|
"launch_superseded",
|
|
608
612
|
"launch_expired",
|
|
609
613
|
"launch_withdrawn",
|
|
614
|
+
"launch_dismissed",
|
|
610
615
|
"control_expired",
|
|
611
616
|
"control_withdrawn"
|
|
612
617
|
],
|
|
@@ -803,6 +808,32 @@
|
|
|
803
808
|
"title": "GatewayRetire",
|
|
804
809
|
"type": "object"
|
|
805
810
|
},
|
|
811
|
+
"GatewayRecheckSignIn": {
|
|
812
|
+
"additionalProperties": false,
|
|
813
|
+
"description": "Check a signed-out harness's sign-in now and restart its close checking.\n\nSent only to a gateway whose advertisement carries that harness's\n``sign_in_check``: an older gateway closes on a kind it cannot decode.\n``MachineService.recheck_sign_in`` is the one sender. The gateway answers\nthrough its next advertisement, never with a receipt.",
|
|
814
|
+
"properties": {
|
|
815
|
+
"protocol_version": {
|
|
816
|
+
"const": 3,
|
|
817
|
+
"default": 3,
|
|
818
|
+
"title": "Protocol Version",
|
|
819
|
+
"type": "integer"
|
|
820
|
+
},
|
|
821
|
+
"kind": {
|
|
822
|
+
"const": "recheck_sign_in",
|
|
823
|
+
"default": "recheck_sign_in",
|
|
824
|
+
"title": "Kind",
|
|
825
|
+
"type": "string"
|
|
826
|
+
},
|
|
827
|
+
"harness": {
|
|
828
|
+
"$ref": "#/components/schemas/HarnessKind"
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
"required": [
|
|
832
|
+
"harness"
|
|
833
|
+
],
|
|
834
|
+
"title": "GatewayRecheckSignIn",
|
|
835
|
+
"type": "object"
|
|
836
|
+
},
|
|
806
837
|
"GatewayToHub": {
|
|
807
838
|
"description": "The complete gateway-to-server frame; exported through OpenAPI.",
|
|
808
839
|
"discriminator": {
|
|
@@ -871,6 +902,10 @@
|
|
|
871
902
|
"title": "Repositories",
|
|
872
903
|
"type": "array"
|
|
873
904
|
},
|
|
905
|
+
"gateway_install": {
|
|
906
|
+
"$ref": "#/components/schemas/GatewayInstall",
|
|
907
|
+
"default": "npx"
|
|
908
|
+
},
|
|
874
909
|
"kind": {
|
|
875
910
|
"const": "hello",
|
|
876
911
|
"default": "hello",
|
|
@@ -921,6 +956,17 @@
|
|
|
921
956
|
},
|
|
922
957
|
"operations": {
|
|
923
958
|
"$ref": "#/components/schemas/HarnessOperations"
|
|
959
|
+
},
|
|
960
|
+
"sign_in_check": {
|
|
961
|
+
"anyOf": [
|
|
962
|
+
{
|
|
963
|
+
"$ref": "#/components/schemas/SignInCheck"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"type": "null"
|
|
967
|
+
}
|
|
968
|
+
],
|
|
969
|
+
"description": "How closely the gateway is checking this harness's sign-in, sent only while it is installed and signed out. Its presence says the gateway accepts recheck_sign_in for this harness; older gateways omit it, are never sent that frame, and offer no recheck."
|
|
924
970
|
}
|
|
925
971
|
},
|
|
926
972
|
"additionalProperties": false,
|
|
@@ -972,6 +1018,15 @@
|
|
|
972
1018
|
],
|
|
973
1019
|
"title": "HarnessOperations"
|
|
974
1020
|
},
|
|
1021
|
+
"SignInCheck": {
|
|
1022
|
+
"type": "string",
|
|
1023
|
+
"enum": [
|
|
1024
|
+
"close",
|
|
1025
|
+
"eased"
|
|
1026
|
+
],
|
|
1027
|
+
"title": "SignInCheck",
|
|
1028
|
+
"description": "How closely the gateway is checking a harness it found installed but signed out.\n\n``close``: every few seconds, so a sign-in reaches the canvas without help.\n``eased``: a minute apart, or stopped, so the canvas offers a recheck."
|
|
1029
|
+
},
|
|
975
1030
|
"AdvertisedRepository": {
|
|
976
1031
|
"properties": {
|
|
977
1032
|
"harness": {
|
|
@@ -1019,6 +1074,15 @@
|
|
|
1019
1074
|
],
|
|
1020
1075
|
"title": "RepositoryTrust"
|
|
1021
1076
|
},
|
|
1077
|
+
"GatewayInstall": {
|
|
1078
|
+
"type": "string",
|
|
1079
|
+
"enum": [
|
|
1080
|
+
"global",
|
|
1081
|
+
"npx"
|
|
1082
|
+
],
|
|
1083
|
+
"title": "GatewayInstall",
|
|
1084
|
+
"description": "Which command can run this gateway on its machine.\n\nGlobal means the running entry is in npm's global layout, its command folder\nis on the gateway's PATH, and the first tsp-gateway there runs this gateway.\nNpx covers every other launch, including source, project, linked, off-PATH,\nand shadowed global copies. Commands use npx on a machine with npm.\nAn absent value reads as npx, including advertisements from older gateways."
|
|
1085
|
+
},
|
|
1022
1086
|
"GatewayAdvertise": {
|
|
1023
1087
|
"additionalProperties": false,
|
|
1024
1088
|
"properties": {
|
|
@@ -1048,6 +1112,10 @@
|
|
|
1048
1112
|
"title": "Repositories",
|
|
1049
1113
|
"type": "array"
|
|
1050
1114
|
},
|
|
1115
|
+
"gateway_install": {
|
|
1116
|
+
"$ref": "#/components/schemas/GatewayInstall",
|
|
1117
|
+
"default": "npx"
|
|
1118
|
+
},
|
|
1051
1119
|
"kind": {
|
|
1052
1120
|
"const": "advertise",
|
|
1053
1121
|
"default": "advertise",
|
|
@@ -1404,5 +1472,21 @@
|
|
|
1404
1472
|
"hub_path"
|
|
1405
1473
|
],
|
|
1406
1474
|
"title": "GatewayMachineRegistered"
|
|
1475
|
+
},
|
|
1476
|
+
"GatewayRelease": {
|
|
1477
|
+
"properties": {
|
|
1478
|
+
"version": {
|
|
1479
|
+
"type": "string",
|
|
1480
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$",
|
|
1481
|
+
"title": "Version"
|
|
1482
|
+
}
|
|
1483
|
+
},
|
|
1484
|
+
"additionalProperties": false,
|
|
1485
|
+
"type": "object",
|
|
1486
|
+
"required": [
|
|
1487
|
+
"version"
|
|
1488
|
+
],
|
|
1489
|
+
"title": "GatewayRelease",
|
|
1490
|
+
"description": "The gateway release TSP ships, which a gateway compares with its own version."
|
|
1407
1491
|
}
|
|
1408
1492
|
}
|