@mark1russell7/conventions 0.41.12 → 0.41.14
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 +16 -5
- package/build/cli.js +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -1
- package/build/{run-CgrTw_XP.js → run-fxiGe-ig.js} +350 -100
- package/build/run-fxiGe-ig.js.map +1 -0
- package/package.json +2 -2
- package/build/run-CgrTw_XP.js.map +0 -1
|
@@ -2236,6 +2236,7 @@ const SHARED_ACTIONS = [
|
|
|
2236
2236
|
"gate-summary",
|
|
2237
2237
|
"green-main",
|
|
2238
2238
|
"npm-publish",
|
|
2239
|
+
"pull-of-run",
|
|
2239
2240
|
"release-check",
|
|
2240
2241
|
"security-scan",
|
|
2241
2242
|
"setup-cue",
|
|
@@ -2682,12 +2683,13 @@ function addedLines(context) {
|
|
|
2682
2683
|
/** The names of the values that each home package exports, with the version that the names come from. */
|
|
2683
2684
|
const HOME_EXPORTS = {
|
|
2684
2685
|
"@mark1russell7/algebra": {
|
|
2685
|
-
version: "0.8.
|
|
2686
|
+
version: "0.8.9",
|
|
2686
2687
|
names: [
|
|
2687
2688
|
"Cancel",
|
|
2688
2689
|
"Clock",
|
|
2689
2690
|
"FIRED",
|
|
2690
2691
|
"FakeClock",
|
|
2692
|
+
"FakeWallClock",
|
|
2691
2693
|
"LocalTime",
|
|
2692
2694
|
"MachineRun",
|
|
2693
2695
|
"PlatformClockOptions",
|
|
@@ -2696,6 +2698,7 @@ const HOME_EXPORTS = {
|
|
|
2696
2698
|
"RunMachineOptions",
|
|
2697
2699
|
"TimeWindow",
|
|
2698
2700
|
"Transition",
|
|
2701
|
+
"WallClock",
|
|
2699
2702
|
"WindowBoundary",
|
|
2700
2703
|
"algebraProblems",
|
|
2701
2704
|
"arr",
|
|
@@ -2706,7 +2709,9 @@ const HOME_EXPORTS = {
|
|
|
2706
2709
|
"evaluate",
|
|
2707
2710
|
"exprKnobs",
|
|
2708
2711
|
"fakeClock",
|
|
2712
|
+
"fakeWallClock",
|
|
2709
2713
|
"firings",
|
|
2714
|
+
"firstInstantOf",
|
|
2710
2715
|
"fromStates",
|
|
2711
2716
|
"inWindow",
|
|
2712
2717
|
"instantsOf",
|
|
@@ -2733,6 +2738,7 @@ const HOME_EXPORTS = {
|
|
|
2733
2738
|
"timerOf",
|
|
2734
2739
|
"timerUnder",
|
|
2735
2740
|
"transitionOn",
|
|
2741
|
+
"wallClock",
|
|
2736
2742
|
"windowProblems"
|
|
2737
2743
|
]
|
|
2738
2744
|
},
|
|
@@ -3278,7 +3284,7 @@ const HOME_EXPORTS = {
|
|
|
3278
3284
|
]
|
|
3279
3285
|
},
|
|
3280
3286
|
"@mark1russell7/conventions": {
|
|
3281
|
-
version: "0.41.
|
|
3287
|
+
version: "0.41.12",
|
|
3282
3288
|
names: [
|
|
3283
3289
|
"ACTIONS_COMMIT",
|
|
3284
3290
|
"DEFAULT_ALLOWED",
|
|
@@ -3480,7 +3486,7 @@ const HOME_EXPORTS = {
|
|
|
3480
3486
|
]
|
|
3481
3487
|
},
|
|
3482
3488
|
"@mark1russell7/desktop": {
|
|
3483
|
-
version: "0.1.
|
|
3489
|
+
version: "0.1.1",
|
|
3484
3490
|
names: [
|
|
3485
3491
|
"CONTENT_SECURITY_POLICY",
|
|
3486
3492
|
"NET_ERRORS",
|
|
@@ -3527,8 +3533,52 @@ const HOME_EXPORTS = {
|
|
|
3527
3533
|
"walk"
|
|
3528
3534
|
]
|
|
3529
3535
|
},
|
|
3536
|
+
"@mark1russell7/geo": {
|
|
3537
|
+
version: "0.2.0",
|
|
3538
|
+
names: [
|
|
3539
|
+
"DEFAULT_GEOHASH_PRECISION",
|
|
3540
|
+
"DEFAULT_MAX_GEOHASH_CELLS",
|
|
3541
|
+
"EARTH_MEAN_RADIUS_KM",
|
|
3542
|
+
"EARTH_MEAN_RADIUS_METERS",
|
|
3543
|
+
"GEOHASH_ALPHABET",
|
|
3544
|
+
"GeoError",
|
|
3545
|
+
"MAX_GEOHASH_PRECISION",
|
|
3546
|
+
"MAX_GEOJSON_DEPTH",
|
|
3547
|
+
"MAX_GEOMETRY_LONGITUDE",
|
|
3548
|
+
"bboxContains",
|
|
3549
|
+
"bboxIntersects",
|
|
3550
|
+
"bboxOfGeoJson",
|
|
3551
|
+
"bboxOfPoints",
|
|
3552
|
+
"centralAngleRadians",
|
|
3553
|
+
"decodeGeohash",
|
|
3554
|
+
"destinationKm",
|
|
3555
|
+
"destinationMeters",
|
|
3556
|
+
"distanceKm",
|
|
3557
|
+
"distanceMeters",
|
|
3558
|
+
"followsRightHandRule",
|
|
3559
|
+
"fromGeoJsonBBox",
|
|
3560
|
+
"fromPosition",
|
|
3561
|
+
"geohash",
|
|
3562
|
+
"geohashNeighbor",
|
|
3563
|
+
"geohashNeighbors",
|
|
3564
|
+
"geohashesInBBox",
|
|
3565
|
+
"initialBearing",
|
|
3566
|
+
"latLon",
|
|
3567
|
+
"locatePoint",
|
|
3568
|
+
"normalizeLon",
|
|
3569
|
+
"parseGeoJson",
|
|
3570
|
+
"parseGeometry",
|
|
3571
|
+
"parseLatLon",
|
|
3572
|
+
"polygonIntersectsBBox",
|
|
3573
|
+
"polygonsIntersect",
|
|
3574
|
+
"rewind",
|
|
3575
|
+
"ringWinding",
|
|
3576
|
+
"toGeoJsonBBox",
|
|
3577
|
+
"toPosition"
|
|
3578
|
+
]
|
|
3579
|
+
},
|
|
3530
3580
|
"@mark1russell7/harness": {
|
|
3531
|
-
version: "0.16.
|
|
3581
|
+
version: "0.16.1",
|
|
3532
3582
|
names: [
|
|
3533
3583
|
"AWS_FROM",
|
|
3534
3584
|
"CLIENT_CAPABILITIES",
|
|
@@ -5416,7 +5466,7 @@ const HOME_EXPORTS = {
|
|
|
5416
5466
|
]
|
|
5417
5467
|
},
|
|
5418
5468
|
"@mark1russell7/lag": {
|
|
5419
|
-
version: "0.5.
|
|
5469
|
+
version: "0.5.1",
|
|
5420
5470
|
names: [
|
|
5421
5471
|
"ANONYMOUS_CALLBACK",
|
|
5422
5472
|
"BrowserReportMonitor",
|
|
@@ -6012,6 +6062,128 @@ const HOME_EXPORTS = {
|
|
|
6012
6062
|
"writeStrategyCatalog"
|
|
6013
6063
|
]
|
|
6014
6064
|
},
|
|
6065
|
+
"@mark1russell7/market": {
|
|
6066
|
+
version: "0.1.1",
|
|
6067
|
+
names: [
|
|
6068
|
+
"AVAILABILITIES",
|
|
6069
|
+
"CONDITIONS",
|
|
6070
|
+
"FORMATS",
|
|
6071
|
+
"bestOffer",
|
|
6072
|
+
"costOf",
|
|
6073
|
+
"foldCode",
|
|
6074
|
+
"gtinCheckDigit",
|
|
6075
|
+
"gtinSchema",
|
|
6076
|
+
"instantSchema",
|
|
6077
|
+
"isKept",
|
|
6078
|
+
"keepUntil",
|
|
6079
|
+
"latestObservations",
|
|
6080
|
+
"matchKeys",
|
|
6081
|
+
"moneySchema",
|
|
6082
|
+
"offerId",
|
|
6083
|
+
"offerSchema",
|
|
6084
|
+
"offersOfPart",
|
|
6085
|
+
"offersPart",
|
|
6086
|
+
"parseGtin",
|
|
6087
|
+
"partNumberSchema",
|
|
6088
|
+
"permitsHistory",
|
|
6089
|
+
"permitsTrend",
|
|
6090
|
+
"priceBreakSchema",
|
|
6091
|
+
"priceReadingSchema",
|
|
6092
|
+
"productSchema",
|
|
6093
|
+
"retentionSchema",
|
|
6094
|
+
"sellerSchema",
|
|
6095
|
+
"shippingSchema",
|
|
6096
|
+
"sourceOfOffer",
|
|
6097
|
+
"sourceSchema",
|
|
6098
|
+
"sourceTermsSchema",
|
|
6099
|
+
"specSchema",
|
|
6100
|
+
"textSchema",
|
|
6101
|
+
"unitPriceFor"
|
|
6102
|
+
]
|
|
6103
|
+
},
|
|
6104
|
+
"@mark1russell7/market-sources": {
|
|
6105
|
+
version: "0.1.1",
|
|
6106
|
+
names: [
|
|
6107
|
+
"ApiError",
|
|
6108
|
+
"BEST_BUY_HOST",
|
|
6109
|
+
"BEST_BUY_PACE_MS",
|
|
6110
|
+
"BEST_BUY_PAGE_LIMIT",
|
|
6111
|
+
"BEST_BUY_SOURCE",
|
|
6112
|
+
"BEST_BUY_TERMS",
|
|
6113
|
+
"DIGIKEY_HOST",
|
|
6114
|
+
"DIGIKEY_PACE_MS",
|
|
6115
|
+
"DIGIKEY_SANDBOX_HOST",
|
|
6116
|
+
"DIGIKEY_SEARCH_LIMIT",
|
|
6117
|
+
"DIGIKEY_SELLER",
|
|
6118
|
+
"DIGIKEY_SOURCE",
|
|
6119
|
+
"DIGIKEY_TERMS",
|
|
6120
|
+
"DIGIKEY_US",
|
|
6121
|
+
"EBAY_HOST",
|
|
6122
|
+
"EBAY_PACE_MS",
|
|
6123
|
+
"EBAY_SANDBOX_HOST",
|
|
6124
|
+
"EBAY_SCOPE",
|
|
6125
|
+
"EBAY_SEARCH_LIMIT",
|
|
6126
|
+
"EBAY_SOURCE",
|
|
6127
|
+
"EBAY_TERMS",
|
|
6128
|
+
"EBAY_US",
|
|
6129
|
+
"SECRET_MARK",
|
|
6130
|
+
"SOURCE_TERMS",
|
|
6131
|
+
"bestBuyCondition",
|
|
6132
|
+
"createBestBuyClient",
|
|
6133
|
+
"createDigiKeyClient",
|
|
6134
|
+
"createEbayClient",
|
|
6135
|
+
"ebayCondition",
|
|
6136
|
+
"parseBestBuyOpenBox",
|
|
6137
|
+
"parseBestBuyProduct",
|
|
6138
|
+
"parseBestBuyProducts",
|
|
6139
|
+
"parseDigiKeyKeywordSearch",
|
|
6140
|
+
"parseDigiKeyProductDetails",
|
|
6141
|
+
"parseEbayItem",
|
|
6142
|
+
"parseEbaySearch",
|
|
6143
|
+
"redact"
|
|
6144
|
+
]
|
|
6145
|
+
},
|
|
6146
|
+
"@mark1russell7/netdiag": {
|
|
6147
|
+
version: "0.1.0",
|
|
6148
|
+
names: [
|
|
6149
|
+
"DEFAULT_MAX_PORTS_PER_HOST",
|
|
6150
|
+
"FLOOR",
|
|
6151
|
+
"LAYERS",
|
|
6152
|
+
"NONE",
|
|
6153
|
+
"PARTS",
|
|
6154
|
+
"STANDARD_CATALOG",
|
|
6155
|
+
"STANDARD_CATALOG_SPEC",
|
|
6156
|
+
"STANDARD_FAULTS",
|
|
6157
|
+
"STANDARD_FEATURES",
|
|
6158
|
+
"STRENGTHS",
|
|
6159
|
+
"UNKNOWN",
|
|
6160
|
+
"canonicalHost",
|
|
6161
|
+
"compileCatalog",
|
|
6162
|
+
"createRunner",
|
|
6163
|
+
"decideScope",
|
|
6164
|
+
"defineFactKind",
|
|
6165
|
+
"defineProbe",
|
|
6166
|
+
"diagnose",
|
|
6167
|
+
"expand",
|
|
6168
|
+
"explain",
|
|
6169
|
+
"factsOf",
|
|
6170
|
+
"formatTarget",
|
|
6171
|
+
"grantProblems",
|
|
6172
|
+
"hostKind",
|
|
6173
|
+
"isFactOf",
|
|
6174
|
+
"isLayer",
|
|
6175
|
+
"layerRank",
|
|
6176
|
+
"namedGrant",
|
|
6177
|
+
"observe",
|
|
6178
|
+
"parseTarget",
|
|
6179
|
+
"predictive",
|
|
6180
|
+
"resolvedGrant",
|
|
6181
|
+
"sameTarget",
|
|
6182
|
+
"scopeOf",
|
|
6183
|
+
"target",
|
|
6184
|
+
"widen"
|
|
6185
|
+
]
|
|
6186
|
+
},
|
|
6015
6187
|
"@mark1russell7/optional": {
|
|
6016
6188
|
version: "1.2.0",
|
|
6017
6189
|
names: [
|
|
@@ -6590,7 +6762,7 @@ const HOME_EXPORTS = {
|
|
|
6590
6762
|
]
|
|
6591
6763
|
},
|
|
6592
6764
|
"@mark1russell7/rigor-bench": {
|
|
6593
|
-
version: "0.2.
|
|
6765
|
+
version: "0.2.39",
|
|
6594
6766
|
names: [
|
|
6595
6767
|
"BUDGET_LOOKS",
|
|
6596
6768
|
"BenchEnv",
|
|
@@ -6780,7 +6952,7 @@ const HOME_EXPORTS = {
|
|
|
6780
6952
|
]
|
|
6781
6953
|
},
|
|
6782
6954
|
"@mark1russell7/rigor-statistics": {
|
|
6783
|
-
version: "0.2.
|
|
6955
|
+
version: "0.2.2",
|
|
6784
6956
|
names: [
|
|
6785
6957
|
"BRADLEY_TERRY_DENSE_LIMIT",
|
|
6786
6958
|
"EMPTY_RUNNING",
|
|
@@ -6811,9 +6983,11 @@ const HOME_EXPORTS = {
|
|
|
6811
6983
|
"brier",
|
|
6812
6984
|
"calibration",
|
|
6813
6985
|
"choosePair",
|
|
6986
|
+
"classScores",
|
|
6814
6987
|
"clopperPearson",
|
|
6815
6988
|
"cohenKappa",
|
|
6816
6989
|
"compareRatios",
|
|
6990
|
+
"confusion",
|
|
6817
6991
|
"coverageMinSample",
|
|
6818
6992
|
"eloExpected",
|
|
6819
6993
|
"eloReplay",
|
|
@@ -7036,7 +7210,7 @@ const HOME_EXPORTS = {
|
|
|
7036
7210
|
]
|
|
7037
7211
|
},
|
|
7038
7212
|
"@mark1russell7/service": {
|
|
7039
|
-
version: "0.8.
|
|
7213
|
+
version: "0.8.19",
|
|
7040
7214
|
names: [
|
|
7041
7215
|
"AMQP_HEADER",
|
|
7042
7216
|
"BOUND_RULES",
|
|
@@ -7081,6 +7255,7 @@ const HOME_EXPORTS = {
|
|
|
7081
7255
|
"LIMITER_RULES",
|
|
7082
7256
|
"LIMITER_SCRIPT",
|
|
7083
7257
|
"LOG_LEVELS",
|
|
7258
|
+
"LateError",
|
|
7084
7259
|
"MACHINES",
|
|
7085
7260
|
"MANIFESTATIONS",
|
|
7086
7261
|
"MONGO_CLIENT_MACHINE",
|
|
@@ -7132,6 +7307,8 @@ const HOME_EXPORTS = {
|
|
|
7132
7307
|
"WS_CLIENT_STARTING_POLL",
|
|
7133
7308
|
"WS_OPERATIONS",
|
|
7134
7309
|
"Wait",
|
|
7310
|
+
"Within",
|
|
7311
|
+
"WithinWork",
|
|
7135
7312
|
"WorkerPoolOptions",
|
|
7136
7313
|
"acquireInstanceLock",
|
|
7137
7314
|
"adaptGrpc",
|
|
@@ -7206,6 +7383,7 @@ const HOME_EXPORTS = {
|
|
|
7206
7383
|
"isMessageShape",
|
|
7207
7384
|
"joinPath",
|
|
7208
7385
|
"keyedLimiter",
|
|
7386
|
+
"keyedQuota",
|
|
7209
7387
|
"kubernetes",
|
|
7210
7388
|
"limitRule",
|
|
7211
7389
|
"limitedResponse",
|
|
@@ -7221,6 +7399,7 @@ const HOME_EXPORTS = {
|
|
|
7221
7399
|
"matchesMessage",
|
|
7222
7400
|
"mayReissue",
|
|
7223
7401
|
"meetings",
|
|
7402
|
+
"memoryQuotaStore",
|
|
7224
7403
|
"memoryStore",
|
|
7225
7404
|
"merge",
|
|
7226
7405
|
"mongoClient",
|
|
@@ -7256,6 +7435,9 @@ const HOME_EXPORTS = {
|
|
|
7256
7435
|
"processPortOf",
|
|
7257
7436
|
"queueDrain",
|
|
7258
7437
|
"quietServer",
|
|
7438
|
+
"quotaProblems",
|
|
7439
|
+
"quotaRule",
|
|
7440
|
+
"quotaStep",
|
|
7259
7441
|
"rabbitClient",
|
|
7260
7442
|
"rabbitMeetings",
|
|
7261
7443
|
"rabbitOptions",
|
|
@@ -7307,6 +7489,7 @@ const HOME_EXPORTS = {
|
|
|
7307
7489
|
"superviseGroup",
|
|
7308
7490
|
"symbolsOf",
|
|
7309
7491
|
"systemdArg",
|
|
7492
|
+
"takeQuotas",
|
|
7310
7493
|
"tcpDial",
|
|
7311
7494
|
"testLogger",
|
|
7312
7495
|
"ticker",
|
|
@@ -7325,6 +7508,7 @@ const HOME_EXPORTS = {
|
|
|
7325
7508
|
"watchTargets",
|
|
7326
7509
|
"watchdog",
|
|
7327
7510
|
"windowsArg",
|
|
7511
|
+
"within",
|
|
7328
7512
|
"workerLoop",
|
|
7329
7513
|
"workerPool",
|
|
7330
7514
|
"writeDiscovery",
|
|
@@ -7337,7 +7521,7 @@ const HOME_EXPORTS = {
|
|
|
7337
7521
|
]
|
|
7338
7522
|
},
|
|
7339
7523
|
"@mark1russell7/site-pages": {
|
|
7340
|
-
version: "0.4.
|
|
7524
|
+
version: "0.4.9",
|
|
7341
7525
|
names: [
|
|
7342
7526
|
"AttributeValue",
|
|
7343
7527
|
"BASE_CSS",
|
|
@@ -7598,11 +7782,15 @@ const HOME_EXPORTS = {
|
|
|
7598
7782
|
]
|
|
7599
7783
|
},
|
|
7600
7784
|
"@mark1russell7/strategy-search": {
|
|
7601
|
-
version: "0.0.
|
|
7785
|
+
version: "0.0.2",
|
|
7602
7786
|
names: [
|
|
7787
|
+
"EVOLVE_DEFAULTS",
|
|
7603
7788
|
"GOALS",
|
|
7604
7789
|
"STRATEGY_SEARCH_SCHEMA",
|
|
7790
|
+
"crowdingDistances",
|
|
7605
7791
|
"dominates",
|
|
7792
|
+
"evolve",
|
|
7793
|
+
"evolveProblems",
|
|
7606
7794
|
"frontOf",
|
|
7607
7795
|
"isRead",
|
|
7608
7796
|
"objectiveProblems",
|
|
@@ -7738,7 +7926,7 @@ const HOME_EXPORTS = {
|
|
|
7738
7926
|
]
|
|
7739
7927
|
},
|
|
7740
7928
|
"@mark1russell7/typeset": {
|
|
7741
|
-
version: "0.
|
|
7929
|
+
version: "0.6.0",
|
|
7742
7930
|
names: [
|
|
7743
7931
|
"Text",
|
|
7744
7932
|
"adjustmentRatio",
|
|
@@ -8118,7 +8306,7 @@ const HOME_EXPORTS = {
|
|
|
8118
8306
|
]
|
|
8119
8307
|
},
|
|
8120
8308
|
"@procedures/browser": {
|
|
8121
|
-
version: "0.
|
|
8309
|
+
version: "0.57.0",
|
|
8122
8310
|
names: [
|
|
8123
8311
|
"BOOKMARK_FILES",
|
|
8124
8312
|
"BROWSER_ENV",
|
|
@@ -8171,7 +8359,7 @@ const HOME_EXPORTS = {
|
|
|
8171
8359
|
]
|
|
8172
8360
|
},
|
|
8173
8361
|
"@procedures/client": {
|
|
8174
|
-
version: "0.
|
|
8362
|
+
version: "0.57.0",
|
|
8175
8363
|
names: [
|
|
8176
8364
|
"BatchExecutor",
|
|
8177
8365
|
"BodyError",
|
|
@@ -8617,12 +8805,11 @@ const HOME_EXPORTS = {
|
|
|
8617
8805
|
]
|
|
8618
8806
|
},
|
|
8619
8807
|
"@procedures/collections": {
|
|
8620
|
-
version: "0.
|
|
8808
|
+
version: "0.57.0",
|
|
8621
8809
|
names: [
|
|
8622
8810
|
"ArrayDeque",
|
|
8623
8811
|
"ArrayList",
|
|
8624
8812
|
"AsyncQueue",
|
|
8625
|
-
"ContractViolation",
|
|
8626
8813
|
"DEFAULT_FIND_LIMIT",
|
|
8627
8814
|
"DEFAULT_QUERY_OPERATORS",
|
|
8628
8815
|
"DEFAULT_QUERY_POLICY",
|
|
@@ -8689,7 +8876,6 @@ const HOME_EXPORTS = {
|
|
|
8689
8876
|
"createEmitter",
|
|
8690
8877
|
"dateCompare",
|
|
8691
8878
|
"deepEq",
|
|
8692
|
-
"deepEqual",
|
|
8693
8879
|
"defaultCompare",
|
|
8694
8880
|
"defaultEq",
|
|
8695
8881
|
"defaultHash",
|
|
@@ -8833,7 +9019,7 @@ const HOME_EXPORTS = {
|
|
|
8833
9019
|
]
|
|
8834
9020
|
},
|
|
8835
9021
|
"@procedures/compiler": {
|
|
8836
|
-
version: "0.
|
|
9022
|
+
version: "0.57.0",
|
|
8837
9023
|
names: [
|
|
8838
9024
|
"CallExplanationOutput",
|
|
8839
9025
|
"CapabilityInput",
|
|
@@ -8929,7 +9115,7 @@ const HOME_EXPORTS = {
|
|
|
8929
9115
|
]
|
|
8930
9116
|
},
|
|
8931
9117
|
"@procedures/dag": {
|
|
8932
|
-
version: "0.
|
|
9118
|
+
version: "0.57.0",
|
|
8933
9119
|
names: [
|
|
8934
9120
|
"DagTraverseInputSchema",
|
|
8935
9121
|
"DagTraverseOutputSchema",
|
|
@@ -8955,7 +9141,7 @@ const HOME_EXPORTS = {
|
|
|
8955
9141
|
]
|
|
8956
9142
|
},
|
|
8957
9143
|
"@procedures/env": {
|
|
8958
|
-
version: "0.
|
|
9144
|
+
version: "0.57.0",
|
|
8959
9145
|
names: [
|
|
8960
9146
|
"DEFAULT_ENV_SETTINGS",
|
|
8961
9147
|
"DEFAULT_SECRET_PATTERNS",
|
|
@@ -8979,7 +9165,7 @@ const HOME_EXPORTS = {
|
|
|
8979
9165
|
]
|
|
8980
9166
|
},
|
|
8981
9167
|
"@procedures/fs": {
|
|
8982
|
-
version: "0.
|
|
9168
|
+
version: "0.57.0",
|
|
8983
9169
|
names: [
|
|
8984
9170
|
"ConfinedFs",
|
|
8985
9171
|
"FsModuleOptions",
|
|
@@ -9025,7 +9211,7 @@ const HOME_EXPORTS = {
|
|
|
9025
9211
|
]
|
|
9026
9212
|
},
|
|
9027
9213
|
"@procedures/gh": {
|
|
9028
|
-
version: "0.
|
|
9214
|
+
version: "0.57.0",
|
|
9029
9215
|
names: [
|
|
9030
9216
|
"GITHUB_API_URL",
|
|
9031
9217
|
"GITHUB_API_VERSION",
|
|
@@ -9090,7 +9276,7 @@ const HOME_EXPORTS = {
|
|
|
9090
9276
|
]
|
|
9091
9277
|
},
|
|
9092
9278
|
"@procedures/git": {
|
|
9093
|
-
version: "0.
|
|
9279
|
+
version: "0.57.0",
|
|
9094
9280
|
names: [
|
|
9095
9281
|
"GitError",
|
|
9096
9282
|
"classifyStatus",
|
|
@@ -9147,7 +9333,7 @@ const HOME_EXPORTS = {
|
|
|
9147
9333
|
]
|
|
9148
9334
|
},
|
|
9149
9335
|
"@procedures/http": {
|
|
9150
|
-
version: "0.
|
|
9336
|
+
version: "0.57.0",
|
|
9151
9337
|
names: [
|
|
9152
9338
|
"DEFAULT_HOST_POLICY",
|
|
9153
9339
|
"DEFAULT_ITEM_BYTES",
|
|
@@ -9198,7 +9384,7 @@ const HOME_EXPORTS = {
|
|
|
9198
9384
|
]
|
|
9199
9385
|
},
|
|
9200
9386
|
"@procedures/json": {
|
|
9201
|
-
version: "0.
|
|
9387
|
+
version: "0.57.0",
|
|
9202
9388
|
names: [
|
|
9203
9389
|
"CsvParseInput",
|
|
9204
9390
|
"CsvParseOutput",
|
|
@@ -9256,7 +9442,7 @@ const HOME_EXPORTS = {
|
|
|
9256
9442
|
]
|
|
9257
9443
|
},
|
|
9258
9444
|
"@procedures/mcp-server": {
|
|
9259
|
-
version: "0.
|
|
9445
|
+
version: "0.57.0",
|
|
9260
9446
|
names: [
|
|
9261
9447
|
"DEFAULT_ELICIT_TIMEOUT_MS",
|
|
9262
9448
|
"DEFAULT_SERVE_BUNDLE",
|
|
@@ -9293,7 +9479,7 @@ const HOME_EXPORTS = {
|
|
|
9293
9479
|
]
|
|
9294
9480
|
},
|
|
9295
9481
|
"@procedures/notify": {
|
|
9296
|
-
version: "0.
|
|
9482
|
+
version: "0.57.0",
|
|
9297
9483
|
names: [
|
|
9298
9484
|
"FetchPost",
|
|
9299
9485
|
"NOTIFY_TOKEN_ENV",
|
|
@@ -9306,17 +9492,21 @@ const HOME_EXPORTS = {
|
|
|
9306
9492
|
"PUSHOVER_LIMITS",
|
|
9307
9493
|
"PUSHOVER_MIN_WAIT_MS",
|
|
9308
9494
|
"PUSHOVER_RETRY_MIN_MS",
|
|
9495
|
+
"PushoverApiOptions",
|
|
9309
9496
|
"PushoverCallback",
|
|
9310
9497
|
"PushoverCancelled",
|
|
9311
9498
|
"PushoverEmergency",
|
|
9312
9499
|
"PushoverFailure",
|
|
9313
9500
|
"PushoverFailureKind",
|
|
9314
9501
|
"PushoverFetch",
|
|
9502
|
+
"PushoverLedger",
|
|
9503
|
+
"PushoverLedgerMessage",
|
|
9315
9504
|
"PushoverLimits",
|
|
9316
9505
|
"PushoverLimitsRead",
|
|
9317
9506
|
"PushoverMessage",
|
|
9318
9507
|
"PushoverPriority",
|
|
9319
9508
|
"PushoverReceipt",
|
|
9509
|
+
"PushoverReceiptState",
|
|
9320
9510
|
"PushoverRequest",
|
|
9321
9511
|
"PushoverResponse",
|
|
9322
9512
|
"PushoverSent",
|
|
@@ -9332,12 +9522,16 @@ const HOME_EXPORTS = {
|
|
|
9332
9522
|
"notifyModule",
|
|
9333
9523
|
"notifyProcedures",
|
|
9334
9524
|
"notifySendProcedure",
|
|
9525
|
+
"pushoverApi",
|
|
9335
9526
|
"pushoverCancelByTagRequest",
|
|
9336
9527
|
"pushoverCancelProcedure",
|
|
9337
9528
|
"pushoverCancelRequest",
|
|
9529
|
+
"pushoverFetchTo",
|
|
9530
|
+
"pushoverLedgerOf",
|
|
9338
9531
|
"pushoverLimitsProcedure",
|
|
9339
9532
|
"pushoverLimitsRequest",
|
|
9340
9533
|
"pushoverProcedures",
|
|
9534
|
+
"pushoverReceiptOf",
|
|
9341
9535
|
"pushoverReceiptProcedure",
|
|
9342
9536
|
"pushoverReceiptRequest",
|
|
9343
9537
|
"pushoverSendProcedure",
|
|
@@ -9349,7 +9543,7 @@ const HOME_EXPORTS = {
|
|
|
9349
9543
|
]
|
|
9350
9544
|
},
|
|
9351
9545
|
"@procedures/npm": {
|
|
9352
|
-
version: "0.
|
|
9546
|
+
version: "0.57.0",
|
|
9353
9547
|
names: [
|
|
9354
9548
|
"ACCEPT_ABBREVIATED",
|
|
9355
9549
|
"DOWNLOADS_BULK_LIMIT",
|
|
@@ -9422,7 +9616,7 @@ const HOME_EXPORTS = {
|
|
|
9422
9616
|
]
|
|
9423
9617
|
},
|
|
9424
9618
|
"@procedures/peer": {
|
|
9425
|
-
version: "0.
|
|
9619
|
+
version: "0.57.0",
|
|
9426
9620
|
names: [
|
|
9427
9621
|
"DEFAULT_STATIC_HEADERS",
|
|
9428
9622
|
"HOST_PROBE_PREFIX",
|
|
@@ -9476,7 +9670,7 @@ const HOME_EXPORTS = {
|
|
|
9476
9670
|
]
|
|
9477
9671
|
},
|
|
9478
9672
|
"@procedures/shell": {
|
|
9479
|
-
version: "0.
|
|
9673
|
+
version: "0.57.0",
|
|
9480
9674
|
names: [
|
|
9481
9675
|
"CliToolError",
|
|
9482
9676
|
"DEFAULT_MAX_OUTPUT_BYTES",
|
|
@@ -9679,7 +9873,7 @@ const HOME_EXPORTS = {
|
|
|
9679
9873
|
]
|
|
9680
9874
|
},
|
|
9681
9875
|
"polite-crawler": {
|
|
9682
|
-
version: "0.
|
|
9876
|
+
version: "0.7.1",
|
|
9683
9877
|
names: [
|
|
9684
9878
|
"ALLOW_ALL",
|
|
9685
9879
|
"API_TIMEOUT_MS",
|
|
@@ -9841,6 +10035,7 @@ const HOME_EXPORTS = {
|
|
|
9841
10035
|
"fromText",
|
|
9842
10036
|
"fuseRanks",
|
|
9843
10037
|
"heldBackMeta",
|
|
10038
|
+
"isApiError",
|
|
9844
10039
|
"isClientError",
|
|
9845
10040
|
"isHeldBack",
|
|
9846
10041
|
"isHtmlRobots",
|
|
@@ -9848,6 +10043,7 @@ const HOME_EXPORTS = {
|
|
|
9848
10043
|
"isMailbox",
|
|
9849
10044
|
"isPdf",
|
|
9850
10045
|
"isProductToken",
|
|
10046
|
+
"isQuotaError",
|
|
9851
10047
|
"isoTime",
|
|
9852
10048
|
"keyDirectory",
|
|
9853
10049
|
"locate",
|
|
@@ -9921,7 +10117,7 @@ const HOME_EXPORTS = {
|
|
|
9921
10117
|
]
|
|
9922
10118
|
},
|
|
9923
10119
|
"polite-crawler-mcp": {
|
|
9924
|
-
version: "0.
|
|
10120
|
+
version: "0.7.1",
|
|
9925
10121
|
names: [
|
|
9926
10122
|
"INSTRUCTIONS",
|
|
9927
10123
|
"MCP_HTTP_DEFAULTS",
|
|
@@ -10528,11 +10724,10 @@ const HOMES = [
|
|
|
10528
10724
|
area: "geography",
|
|
10529
10725
|
title: "Places on the Earth",
|
|
10530
10726
|
covers: "WGS84 points (latitude and longitude), great-circle distance and bearing, the destination from a point, a point in a polygon on the Earth, polygon overlap, buffers, bounding boxes, geohash, GeoJSON: plain functions with no dependencies",
|
|
10531
|
-
packages: [],
|
|
10532
|
-
pending: ["@mark1russell7/geo"],
|
|
10727
|
+
packages: ["@mark1russell7/geo"],
|
|
10533
10728
|
repo: "mark1russell7/geo",
|
|
10534
10729
|
alsoIn: ["mark1russell7/client"],
|
|
10535
|
-
state: "
|
|
10730
|
+
state: "published",
|
|
10536
10731
|
words: [
|
|
10537
10732
|
"geo",
|
|
10538
10733
|
"geography",
|
|
@@ -10556,7 +10751,7 @@ const HOMES = [
|
|
|
10556
10751
|
"decodeGeohash",
|
|
10557
10752
|
"initialBearing"
|
|
10558
10753
|
],
|
|
10559
|
-
note: "
|
|
10754
|
+
note: "@procedures/geo wraps it as procedures with the geocoding, the routes and the map tiles, and its greatCircleKm and geohash move to it. Points, boxes and polygons on a plane go to geometry (layout-contract)."
|
|
10560
10755
|
},
|
|
10561
10756
|
{
|
|
10562
10757
|
area: "strategy-space",
|
|
@@ -10605,10 +10800,9 @@ const HOMES = [
|
|
|
10605
10800
|
area: "market",
|
|
10606
10801
|
title: "Products, offers and price history",
|
|
10607
10802
|
covers: "a live catalog of products with the offers of many sellers, the price of each offer over time, trends, one adapter for each seller (the official API first)",
|
|
10608
|
-
packages: [],
|
|
10609
|
-
pending: ["@mark1russell7/market", "@mark1russell7/market-sources"],
|
|
10803
|
+
packages: ["@mark1russell7/market", "@mark1russell7/market-sources"],
|
|
10610
10804
|
repo: "mark1russell7/market",
|
|
10611
|
-
state: "
|
|
10805
|
+
state: "published",
|
|
10612
10806
|
words: [
|
|
10613
10807
|
"price",
|
|
10614
10808
|
"prices",
|
|
@@ -10623,7 +10817,7 @@ const HOMES = [
|
|
|
10623
10817
|
"listing",
|
|
10624
10818
|
"sku"
|
|
10625
10819
|
],
|
|
10626
|
-
note: "
|
|
10820
|
+
note: "Fetches go through polite-crawler, live loops through @mark1russell7/service, trend statistics through rigor-statistics."
|
|
10627
10821
|
},
|
|
10628
10822
|
{
|
|
10629
10823
|
area: "cluster-design",
|
|
@@ -10952,14 +11146,9 @@ const HOMES = [
|
|
|
10952
11146
|
{
|
|
10953
11147
|
area: "local-database",
|
|
10954
11148
|
title: "Databases on one computer",
|
|
10955
|
-
covers: "SQLite through node:sqlite: WAL, synchronous and busy-timeout settings, migrations by user_version or by a version for each part of a file, BEGIN IMMEDIATE transactions, typed append-only event logs as grow-only sets, the fault kind and the action of each SQLite error, recovery of a broken or stuck file (integrity check, quarantine, salvage of a log, snapshot), the filter of the experimental warning",
|
|
11149
|
+
covers: "SQLite through node:sqlite: WAL, synchronous and busy-timeout settings, migrations by user_version or by a version for each part of a file, BEGIN IMMEDIATE transactions, read transactions on one snapshot, typed append-only event logs as grow-only sets, the fault kind and the action of each SQLite error, recovery of a broken or stuck file (integrity check, quarantine, salvage of a log, snapshot), the filter of the experimental warning",
|
|
10956
11150
|
packages: ["@mark1russell7/sqlite"],
|
|
10957
11151
|
repo: "mark1russell7/sqlite",
|
|
10958
|
-
alsoIn: [
|
|
10959
|
-
"mark1russell7/headroom",
|
|
10960
|
-
"mark1russell7/crawler",
|
|
10961
|
-
"mark1russell7/pairrank"
|
|
10962
|
-
],
|
|
10963
11152
|
state: "published",
|
|
10964
11153
|
words: [
|
|
10965
11154
|
"sqlite",
|
|
@@ -10976,7 +11165,9 @@ const HOMES = [
|
|
|
10976
11165
|
"quarantine",
|
|
10977
11166
|
"corrupt",
|
|
10978
11167
|
"snapshot",
|
|
10979
|
-
"backup"
|
|
11168
|
+
"backup",
|
|
11169
|
+
"read transaction",
|
|
11170
|
+
"query_only"
|
|
10980
11171
|
],
|
|
10981
11172
|
signatures: [
|
|
10982
11173
|
"openEventLog",
|
|
@@ -10984,8 +11175,7 @@ const HOMES = [
|
|
|
10984
11175
|
"sqliteFault",
|
|
10985
11176
|
"openOrQuarantine",
|
|
10986
11177
|
"quietSqliteWarning"
|
|
10987
|
-
]
|
|
10988
|
-
note: "headroom (packages/core/src/store.ts), polite-crawler (docs.ts, hoststate.ts, vectors.ts and watch.ts in packages/polite-crawler/src) and pairrank (packages/store/src/log.ts) have their own WAL and migration code. They move to @mark1russell7/sqlite. Do not grow a local copy."
|
|
11178
|
+
]
|
|
10989
11179
|
},
|
|
10990
11180
|
{
|
|
10991
11181
|
area: "releases",
|
|
@@ -11104,10 +11294,9 @@ const HOMES = [
|
|
|
11104
11294
|
area: "network-diagnosis",
|
|
11105
11295
|
title: "Network diagnosis",
|
|
11106
11296
|
covers: "the cause of a network fault at each layer (link, Wi-Fi, IP and routes, DNS, TCP, TLS, HTTP, the path through providers) and the next step: probes as adapters that give typed facts, a catalog of faults as data, the probability of each cause from the facts, the next probe by its expected information gain, the estimators of jitter, loss, delay variation, retransmission time-out and bandwidth",
|
|
11107
|
-
packages: [],
|
|
11108
|
-
pending: ["@mark1russell7/netdiag"],
|
|
11297
|
+
packages: ["@mark1russell7/netdiag"],
|
|
11109
11298
|
repo: "mark1russell7/netdiag",
|
|
11110
|
-
state: "
|
|
11299
|
+
state: "published",
|
|
11111
11300
|
words: [
|
|
11112
11301
|
"network diagnosis",
|
|
11113
11302
|
"diagnose",
|
|
@@ -11131,7 +11320,7 @@ const HOMES = [
|
|
|
11131
11320
|
"iperf",
|
|
11132
11321
|
"netdiag"
|
|
11133
11322
|
],
|
|
11134
|
-
note: "
|
|
11323
|
+
note: "Commands go through @procedures/shell, statistics through rigor-statistics, timers and backoff through @mark1russell7/algebra, scheduled checks through @mark1russell7/service. Its ground truth comes from the network labs: a lab injects each fault class, and a gate holds the hit rate of each class. It checks only the networks that its user owns or names."
|
|
11135
11324
|
}
|
|
11136
11325
|
];
|
|
11137
11326
|
/** A file of more homes, for example the private repositories, in the shape `{ "homes": Home[] }`. */
|
|
@@ -12260,6 +12449,48 @@ function pathNameHit(list, path) {
|
|
|
12260
12449
|
};
|
|
12261
12450
|
}
|
|
12262
12451
|
}
|
|
12452
|
+
// src/pull-request.ts
|
|
12453
|
+
/**
|
|
12454
|
+
* The pull request of a run: its title, its body and its number of commits. On a pull request, the event file of GitHub
|
|
12455
|
+
* Actions (GITHUB_EVENT_PATH) has it. A run that `workflow_dispatch` starts has no pull request in its event file. For
|
|
12456
|
+
* such a run, the shared CI of the template finds the open pull request of the branch and writes it to a JSON file. The
|
|
12457
|
+
* variable CONVENTIONS_PULL_REQUEST names that file, and the variable CONVENTIONS_BASE gives the tip of its base branch.
|
|
12458
|
+
*/
|
|
12459
|
+
/** The variable that names a JSON file with the pull request of the run. The file has priority over the event file. */
|
|
12460
|
+
const PULL_REQUEST_VARIABLE = "CONVENTIONS_PULL_REQUEST";
|
|
12461
|
+
/** This function gives the JSON value of a file, or undefined when the file does not exist or does not parse. */
|
|
12462
|
+
function readJson(file) {
|
|
12463
|
+
if (file === void 0 || file === "" || !existsSync(file)) return void 0;
|
|
12464
|
+
try {
|
|
12465
|
+
return JSON.parse(readFileSync(file, "utf8"));
|
|
12466
|
+
} catch {
|
|
12467
|
+
return;
|
|
12468
|
+
}
|
|
12469
|
+
}
|
|
12470
|
+
/** This function gives the facts of a pull request object, or undefined when the value is not an object. */
|
|
12471
|
+
function factsOf(value) {
|
|
12472
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) return void 0;
|
|
12473
|
+
const { title, body, commits } = value;
|
|
12474
|
+
return {
|
|
12475
|
+
...typeof title === "string" ? { title } : {},
|
|
12476
|
+
...typeof body === "string" ? { body } : {},
|
|
12477
|
+
...typeof commits === "number" ? { commits } : {}
|
|
12478
|
+
};
|
|
12479
|
+
}
|
|
12480
|
+
/** This function tells if the run names a file of its pull request in CONVENTIONS_PULL_REQUEST. */
|
|
12481
|
+
function namesPullRequestFile(env) {
|
|
12482
|
+
const file = env[PULL_REQUEST_VARIABLE];
|
|
12483
|
+
return file !== void 0 && file !== "";
|
|
12484
|
+
}
|
|
12485
|
+
/**
|
|
12486
|
+
* This function gives the pull request of the run. When CONVENTIONS_PULL_REQUEST names a file, the function reads only
|
|
12487
|
+
* that file. Else it reads the field `pull_request` of the event file. With no pull request, it gives undefined.
|
|
12488
|
+
*/
|
|
12489
|
+
function pullRequestOfRun(env) {
|
|
12490
|
+
if (namesPullRequestFile(env)) return factsOf(readJson(env[PULL_REQUEST_VARIABLE]));
|
|
12491
|
+
const event = readJson(env["GITHUB_EVENT_PATH"]);
|
|
12492
|
+
return factsOf(typeof event === "object" && event !== null ? event.pull_request : void 0);
|
|
12493
|
+
}
|
|
12263
12494
|
// src/rules/no-local-paths.ts
|
|
12264
12495
|
/**
|
|
12265
12496
|
* The rule `no-local-paths`: no tracked file names the home folder of a user of a computer. The commit messages of a
|
|
@@ -12427,7 +12658,8 @@ function privateTextBreaks(name, text, privates, options = {}) {
|
|
|
12427
12658
|
}
|
|
12428
12659
|
/**
|
|
12429
12660
|
* This function gives the texts of the change that are not files. They are each commit message of a pull request (or of the
|
|
12430
|
-
* range of `--base`). They are also the title and the body of the pull request, from the event file of GitHub Actions
|
|
12661
|
+
* range of `--base`). They are also the title and the body of the pull request, from the event file of GitHub Actions or
|
|
12662
|
+
* from the file of CONVENTIONS_PULL_REQUEST.
|
|
12431
12663
|
*/
|
|
12432
12664
|
function changeTexts(context) {
|
|
12433
12665
|
const texts = [];
|
|
@@ -12447,20 +12679,15 @@ function changeTexts(context) {
|
|
|
12447
12679
|
});
|
|
12448
12680
|
}
|
|
12449
12681
|
}
|
|
12450
|
-
const
|
|
12451
|
-
if (
|
|
12452
|
-
|
|
12453
|
-
|
|
12454
|
-
|
|
12455
|
-
|
|
12456
|
-
|
|
12457
|
-
|
|
12458
|
-
|
|
12459
|
-
if (typeof body === "string") texts.push({
|
|
12460
|
-
name: "pull request body",
|
|
12461
|
-
text: body
|
|
12462
|
-
});
|
|
12463
|
-
} catch {}
|
|
12682
|
+
const pullRequest = pullRequestOfRun(context.env);
|
|
12683
|
+
if (pullRequest?.title !== void 0) texts.push({
|
|
12684
|
+
name: "pull request title",
|
|
12685
|
+
text: pullRequest.title
|
|
12686
|
+
});
|
|
12687
|
+
if (pullRequest?.body !== void 0) texts.push({
|
|
12688
|
+
name: "pull request body",
|
|
12689
|
+
text: pullRequest.body
|
|
12690
|
+
});
|
|
12464
12691
|
return texts;
|
|
12465
12692
|
}
|
|
12466
12693
|
const noLocalPaths = {
|
|
@@ -14669,22 +14896,6 @@ const publishedMinor = publishedMinorRule();
|
|
|
14669
14896
|
* The rule `release-files`: a pull request changes a file of the release flow only with a reason
|
|
14670
14897
|
* that everyone can see.
|
|
14671
14898
|
*/
|
|
14672
|
-
/** This function gives the pull request of the event file of GitHub Actions. With no event file, the body is empty. */
|
|
14673
|
-
function pullRequestOf(context) {
|
|
14674
|
-
const file = context.env["GITHUB_EVENT_PATH"];
|
|
14675
|
-
if (file === void 0 || file === "" || !existsSync(file)) return { body: "" };
|
|
14676
|
-
try {
|
|
14677
|
-
const event = JSON.parse(readFileSync(file, "utf8"));
|
|
14678
|
-
const body = typeof event.pull_request?.body === "string" ? event.pull_request.body : "";
|
|
14679
|
-
const commits = event.pull_request?.commits;
|
|
14680
|
-
return typeof commits === "number" ? {
|
|
14681
|
-
body,
|
|
14682
|
-
commits
|
|
14683
|
-
} : { body };
|
|
14684
|
-
} catch {
|
|
14685
|
-
return { body: "" };
|
|
14686
|
-
}
|
|
14687
|
-
}
|
|
14688
14899
|
/** This function escapes the special characters of a regular expression. */
|
|
14689
14900
|
const escape = (text) => text.replace(/[\\^$.|?*+()[\]{}]/g, "\\$&");
|
|
14690
14901
|
const releaseFiles = {
|
|
@@ -14753,8 +14964,8 @@ const releaseFiles = {
|
|
|
14753
14964
|
if (changed.length === 0) return [];
|
|
14754
14965
|
const trailer = typeof options["trailer"] === "string" ? options["trailer"] : "Release-Edit";
|
|
14755
14966
|
const line = new RegExp(`^${escape(trailer)}:[ \\t]*\\S`, "im");
|
|
14756
|
-
const pullRequest =
|
|
14757
|
-
if (line.test(pullRequest.body)) return [];
|
|
14967
|
+
const pullRequest = pullRequestOfRun(context.env) ?? {};
|
|
14968
|
+
if (line.test(pullRequest.body ?? "")) return [];
|
|
14758
14969
|
if (!(pullRequest.commits === 1 && context.git([
|
|
14759
14970
|
"rev-parse",
|
|
14760
14971
|
"--verify",
|
|
@@ -16171,16 +16382,30 @@ function setVersions(context, from, to) {
|
|
|
16171
16382
|
}
|
|
16172
16383
|
return versions;
|
|
16173
16384
|
}
|
|
16174
|
-
/**
|
|
16175
|
-
function
|
|
16176
|
-
|
|
16177
|
-
|
|
16178
|
-
|
|
16179
|
-
|
|
16180
|
-
|
|
16181
|
-
|
|
16182
|
-
|
|
16385
|
+
/**
|
|
16386
|
+
* This function gives the versions that a merge of HEAD into `base` sets, with `fork` as the merge base. They are the
|
|
16387
|
+
* versions of each `package.json` that the change (from `fork` to HEAD) changes, less each version that `base` has
|
|
16388
|
+
* already. Thus, when the base branch has the version of the change, the merge sets no version.
|
|
16389
|
+
*/
|
|
16390
|
+
function mergeSetVersions(context, base, fork) {
|
|
16391
|
+
const out = context.git([
|
|
16392
|
+
"diff",
|
|
16393
|
+
"--name-only",
|
|
16394
|
+
"--no-renames",
|
|
16395
|
+
fork,
|
|
16396
|
+
"HEAD",
|
|
16397
|
+
"--",
|
|
16398
|
+
"package.json",
|
|
16399
|
+
"**/package.json"
|
|
16400
|
+
]);
|
|
16401
|
+
if (out === void 0) return void 0;
|
|
16402
|
+
const versions = [];
|
|
16403
|
+
for (const file of out.split(/\r?\n/).filter((line) => line !== "")) {
|
|
16404
|
+
const after = versionAt(context, "HEAD", file);
|
|
16405
|
+
if (after === void 0 || versions.includes(after)) continue;
|
|
16406
|
+
if (after !== versionAt(context, fork, file) && after !== versionAt(context, base, file)) versions.push(after);
|
|
16183
16407
|
}
|
|
16408
|
+
return versions;
|
|
16184
16409
|
}
|
|
16185
16410
|
/**
|
|
16186
16411
|
* This function gives the break of a title that names a version when the change sets no version, or undefined. A change
|
|
@@ -16225,7 +16450,7 @@ const versionTitle = {
|
|
|
16225
16450
|
check(context) {
|
|
16226
16451
|
const event = context.env["GITHUB_EVENT_NAME"];
|
|
16227
16452
|
if (context.base === void 0 && (event === "pull_request" || event === "pull_request_target")) {
|
|
16228
|
-
const title =
|
|
16453
|
+
const title = pullRequestOfRun(context.env)?.title;
|
|
16229
16454
|
if (title === void 0) return { skipped: "the event file has no title of the pull request" };
|
|
16230
16455
|
const range = rangeOf(context);
|
|
16231
16456
|
if ("skipped" in range) return range;
|
|
@@ -16234,6 +16459,18 @@ const versionTitle = {
|
|
|
16234
16459
|
const found = breakOf(title, set, "package.json", "The pull request");
|
|
16235
16460
|
return found === void 0 ? [] : [found];
|
|
16236
16461
|
}
|
|
16462
|
+
if (context.base !== void 0 && namesPullRequestFile(context.env)) {
|
|
16463
|
+
const title = pullRequestOfRun(context.env)?.title;
|
|
16464
|
+
if (title === void 0) return { skipped: "the file of CONVENTIONS_PULL_REQUEST has no title of the pull request" };
|
|
16465
|
+
const range = rangeOf(context);
|
|
16466
|
+
if ("skipped" in range) return range;
|
|
16467
|
+
const fork = context.git(["merge-base", ...range.ends])?.trim();
|
|
16468
|
+
if (fork === void 0 || fork === "") return { skipped: `the checkout does not have the merge base of ${range.ends.join(" and ")}` };
|
|
16469
|
+
const set = mergeSetVersions(context, range.ends[0], fork);
|
|
16470
|
+
if (set === void 0) return { skipped: "git cannot give the changed files of the pull request" };
|
|
16471
|
+
const found = breakOf(title, set, "package.json", "The pull request");
|
|
16472
|
+
return found === void 0 ? [] : [found];
|
|
16473
|
+
}
|
|
16237
16474
|
const range = rangeOf(context, { push: true });
|
|
16238
16475
|
if ("skipped" in range) return range;
|
|
16239
16476
|
const out = context.git([
|
|
@@ -17130,12 +17367,16 @@ const USAGE = `Usage: conventions check [options]
|
|
|
17130
17367
|
|
|
17131
17368
|
--root <folder> The root of the repository. The default is the current folder.
|
|
17132
17369
|
--rule <id> Only this rule. Use it again for more rules.
|
|
17133
|
-
--base <ref> The base commit of the change, for the rules that examine a change.
|
|
17134
|
-
|
|
17135
|
-
|
|
17370
|
+
--base <ref> The base commit of the change, for the rules that examine a change. The first default is the
|
|
17371
|
+
variable CONVENTIONS_BASE, when it is not empty. Outside CI, the next default is the default
|
|
17372
|
+
branch of origin. With no base, the rules find the base in the merge commit of a pull request.
|
|
17373
|
+
--no-base Do not use a default base.
|
|
17136
17374
|
--json Write the result as JSON.
|
|
17137
17375
|
-h, --help Show this text.
|
|
17138
17376
|
|
|
17377
|
+
The variable CONVENTIONS_PULL_REQUEST names a JSON file with the pull request of the run (title, body,
|
|
17378
|
+
commits). The rules then read that file, not the event file. The shared CI writes it on a dispatched run.
|
|
17379
|
+
|
|
17139
17380
|
The field "conventions" of the root package.json turns a rule off with a reason, keeps an exception
|
|
17140
17381
|
with a reason, and sets the options of a rule with a reason:
|
|
17141
17382
|
|
|
@@ -17167,6 +17408,15 @@ function localBase(root, env) {
|
|
|
17167
17408
|
`${ref}^{commit}`
|
|
17168
17409
|
]) !== void 0) return ref;
|
|
17169
17410
|
}
|
|
17411
|
+
/**
|
|
17412
|
+
* This function gives the base of the variable CONVENTIONS_BASE, or undefined when it is empty or not set. The event of a
|
|
17413
|
+
* run that `workflow_dispatch` starts gives no base. For such a run of a pull request, the shared CI sets the variable to
|
|
17414
|
+
* the tip of the base branch.
|
|
17415
|
+
*/
|
|
17416
|
+
function environmentBase(env) {
|
|
17417
|
+
const base = env["CONVENTIONS_BASE"]?.trim();
|
|
17418
|
+
return base === void 0 || base === "" ? void 0 : base;
|
|
17419
|
+
}
|
|
17170
17420
|
/** An error of the arguments: exit code 2 and the help text. */
|
|
17171
17421
|
var UsageError = class extends Error {};
|
|
17172
17422
|
/** This function starts the bin with the arguments `args`, and gives its exit code. */
|
|
@@ -17223,7 +17473,7 @@ function runCli(args, io) {
|
|
|
17223
17473
|
let result;
|
|
17224
17474
|
let fixed;
|
|
17225
17475
|
try {
|
|
17226
|
-
const change = noBase ? void 0 : base ?? localBase(root, io.env);
|
|
17476
|
+
const change = noBase ? void 0 : base ?? environmentBase(io.env) ?? localBase(root, io.env);
|
|
17227
17477
|
const options = {
|
|
17228
17478
|
root,
|
|
17229
17479
|
only,
|
|
@@ -17321,4 +17571,4 @@ function runHook(args, io) {
|
|
|
17321
17571
|
}
|
|
17322
17572
|
export { unreleasedChangeRule as $, MAP_RULE as $t, typedFiles as A, gateAfterCancel as An, lineNameHits as At, roadmapParses as B, inFolder as Bn, LICENSE_TEXTS as Bt, versionTitle as C, securityOneJob as Cn, privateTextBreaks as Ct, typedScripts as D, gateTrigger as Dn, isAllowedHit as Dt, trustPolicy as E, convertGate as En, firstNameMatch as Et, HOME_TIMEOUT_MS as F, DEPENDENCY_FIELDS as Fn, REAL_COMPARE as Ft, publishedMinor as G, readJsonc as Gn, repositoryIsPublic as Gt, releaseFiles as H, lineOf as Hn, licenseFile as Ht, blockHash as I, RULE_WARN_DAYS as In, hasImportMetaMain as It, NPM_REGISTRY as J, specifiersOf as Jn, messageOf as Jt, publishedMinorRule as K, replaceLine as Kn, declaredName as Kt, githubFetch as L, cleanPath as Ln, mainCheck as Lt, isSourcePath as M, readWorkflow as Mn, parsePrivateNames as Mt, pathsOf as N, STRICT_OPTIONS as Nn, pathNameHit as Nt, configsOfScript as O, prPathFilters as On, isCommonUse as Ot, sourceMain as P, cuePreset as Pn, noBuildOutput as Pt, unreleasedChange as Q, HOMES as Qt, sharedDocsRule as R, codePackages as Rn, coverageProvider as Rt, setVersions as S, securityCallers as Sn, privatePatterns as St, TRAIN_SCOPES as T, ACTIONS_COMMIT as Tn, PrivateNameListError as Tt, lockedVersions as U, matchesAny as Un, licenseFileOf as Ut, requiredScripts as V, keyLine as Vn, authorOf as Vt, minorOf as W, parseJsonc as Wn, mitText as Wt, UNSHIPPED_FILES as X, parseConfig as Xn, reposOf as Xt, SHIPPED_FIELDS as Y, defaultOptions as Yn, repoOf as Yt, npmLookup as Z, signaturesOf as Zt, workspaceProtocol as _, sharedCi as _n, PRIVATE_NAMES_FILE_VARIABLE as _t, listRules as a, npmNames as an, repositoryOfRemote as at, yamlFaults as b, SECURITY_SCAN_INPUTS as bn, noLocalPaths as bt, runCli as c, SERVICE_PACKAGE as cn, pushMainOnly as ct, HOOK_MARKER as d, hasTests as dn, pagesSite as dt, findHomes as en, pipeFails as et, NO_READ_LINE as f, tsconfigTest as fn, exportsRequire as ft, RULES as g, callsSharedCi as gn, PRIVATE_NAMES_FILE_CONFIG as gt, prePush as h, SHARED_WORKFLOWS as hn, HOME_PATTERNS as ht, formatResult as i, npmDrift as in, pagesAfterRelease as it, testsRequired as j, readAction as jn, nameMatches as jt, scriptsOf as k, summaryName as kn, lineNameHit as kt, runFix as l, runCalls as ln, PAGES_WORKFLOWS as lt, installHook as m, SHARED_CI as mn, DEFAULT_ALLOWED as mt, annotations as n, mapText as nn, isPinned as nt, readConfig as o, readOverlay as on, runnerBudget as ot, PRE_PUSH_HOOK as p, SHARED_ACTIONS as pn, packNoBuildinfo as pt, reachOf as q, runGit as qn, homePackage as qt, createContext as r, mergeHomes as rn, pinnedGitDeps as rt, runChecks as s, HOME_EXPORTS as sn, scheduleMinute as st, USAGE as t, mapMarkdown as tn, isGitSpecifier as tt, summaryMarkdown as u, serviceRunMain as un, pagesCalls as ut, GITHUB_YAML as v, setupCue as vn, PRIVATE_PATTERNS_VARIABLE as vt, IGNORE_AFTER as w, withOneJob as wn, PRIVATE_NAME_LIST as wt, namedVersions as x, SECURITY_TIMEOUT_MINUTES as xn, privateNamesFile as xt, workflowParses as y, SECURITY_SCAN_COMMIT as yn, invalidPatternBreaks as yt, roadmapOfLine as z, hasFile as zn, apiReportScript as zt };
|
|
17323
17573
|
|
|
17324
|
-
//# sourceMappingURL=run-
|
|
17574
|
+
//# sourceMappingURL=run-fxiGe-ig.js.map
|