@quonfig/cli 0.0.68 → 0.0.69
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 +50 -50
- package/dist/migrate/migration-report.js +1 -0
- package/dist/migrate/quonfig-target/report.d.ts +7 -1
- package/dist/migrate/quonfig-target/ruleset.js +11 -2
- package/dist/migrate/quonfig-target/weights.d.ts +20 -0
- package/dist/migrate/quonfig-target/weights.js +48 -0
- package/dist/migrate/sources/flagsmith/translate.js +9 -0
- package/dist/migrate/sources/launch/translate.d.ts +1 -1
- package/dist/migrate/sources/launch/translate.js +52 -1
- package/dist/migrate/sources/launch.js +10 -0
- package/dist/verify/validate.js +18 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ $ npm install -g @quonfig/cli
|
|
|
17
17
|
$ qfg COMMAND
|
|
18
18
|
running command...
|
|
19
19
|
$ qfg (--version)
|
|
20
|
-
@quonfig/cli/0.0.
|
|
20
|
+
@quonfig/cli/0.0.69 linux-x64 node-v24.4.1
|
|
21
21
|
$ qfg --help [COMMAND]
|
|
22
22
|
USAGE
|
|
23
23
|
$ qfg COMMAND
|
|
@@ -201,7 +201,7 @@ EXAMPLES
|
|
|
201
201
|
$ qfg activity restore my.flag --yes
|
|
202
202
|
```
|
|
203
203
|
|
|
204
|
-
_See code: [src/commands/activity.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
204
|
+
_See code: [src/commands/activity.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/activity.ts)_
|
|
205
205
|
|
|
206
206
|
## `qfg activity deleted`
|
|
207
207
|
|
|
@@ -230,7 +230,7 @@ EXAMPLES
|
|
|
230
230
|
$ qfg activity deleted --json
|
|
231
231
|
```
|
|
232
232
|
|
|
233
|
-
_See code: [src/commands/activity/deleted.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
233
|
+
_See code: [src/commands/activity/deleted.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/activity/deleted.ts)_
|
|
234
234
|
|
|
235
235
|
## `qfg activity feed`
|
|
236
236
|
|
|
@@ -265,7 +265,7 @@ EXAMPLES
|
|
|
265
265
|
$ qfg activity feed --json
|
|
266
266
|
```
|
|
267
267
|
|
|
268
|
-
_See code: [src/commands/activity/feed.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
268
|
+
_See code: [src/commands/activity/feed.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/activity/feed.ts)_
|
|
269
269
|
|
|
270
270
|
## `qfg activity history [NAME]`
|
|
271
271
|
|
|
@@ -299,7 +299,7 @@ EXAMPLES
|
|
|
299
299
|
$ qfg activity history request.timeout --json
|
|
300
300
|
```
|
|
301
301
|
|
|
302
|
-
_See code: [src/commands/activity/history.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
302
|
+
_See code: [src/commands/activity/history.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/activity/history.ts)_
|
|
303
303
|
|
|
304
304
|
## `qfg activity restore [NAME]`
|
|
305
305
|
|
|
@@ -338,7 +338,7 @@ EXAMPLES
|
|
|
338
338
|
$ qfg activity restore request.timeout --type config --yes
|
|
339
339
|
```
|
|
340
340
|
|
|
341
|
-
_See code: [src/commands/activity/restore.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
341
|
+
_See code: [src/commands/activity/restore.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/activity/restore.ts)_
|
|
342
342
|
|
|
343
343
|
## `qfg audit-log [NAME]`
|
|
344
344
|
|
|
@@ -366,7 +366,7 @@ EXAMPLES
|
|
|
366
366
|
$ qfg audit-log my.flag
|
|
367
367
|
```
|
|
368
368
|
|
|
369
|
-
_See code: [src/commands/audit-log.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
369
|
+
_See code: [src/commands/audit-log.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/audit-log.ts)_
|
|
370
370
|
|
|
371
371
|
## `qfg cleanup`
|
|
372
372
|
|
|
@@ -407,7 +407,7 @@ EXAMPLES
|
|
|
407
407
|
$ qfg cleanup status my.flag.key
|
|
408
408
|
```
|
|
409
409
|
|
|
410
|
-
_See code: [src/commands/cleanup.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
410
|
+
_See code: [src/commands/cleanup.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/cleanup.ts)_
|
|
411
411
|
|
|
412
412
|
## `qfg cleanup list`
|
|
413
413
|
|
|
@@ -453,7 +453,7 @@ EXAMPLES
|
|
|
453
453
|
$ qfg cleanup list --json
|
|
454
454
|
```
|
|
455
455
|
|
|
456
|
-
_See code: [src/commands/cleanup/list.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
456
|
+
_See code: [src/commands/cleanup/list.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/cleanup/list.ts)_
|
|
457
457
|
|
|
458
458
|
## `qfg cleanup remove [NAME]`
|
|
459
459
|
|
|
@@ -498,7 +498,7 @@ EXAMPLES
|
|
|
498
498
|
$ qfg cleanup remove my.flag.key --json
|
|
499
499
|
```
|
|
500
500
|
|
|
501
|
-
_See code: [src/commands/cleanup/remove.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
501
|
+
_See code: [src/commands/cleanup/remove.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/cleanup/remove.ts)_
|
|
502
502
|
|
|
503
503
|
## `qfg cleanup status [NAME]`
|
|
504
504
|
|
|
@@ -538,7 +538,7 @@ EXAMPLES
|
|
|
538
538
|
$ qfg cleanup status my.flag.key --json
|
|
539
539
|
```
|
|
540
540
|
|
|
541
|
-
_See code: [src/commands/cleanup/status.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
541
|
+
_See code: [src/commands/cleanup/status.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/cleanup/status.ts)_
|
|
542
542
|
|
|
543
543
|
## `qfg cleanup verify [NAME]`
|
|
544
544
|
|
|
@@ -584,7 +584,7 @@ EXAMPLES
|
|
|
584
584
|
$ qfg cleanup verify my.flag.key && qfg delete my.flag.key
|
|
585
585
|
```
|
|
586
586
|
|
|
587
|
-
_See code: [src/commands/cleanup/verify.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
587
|
+
_See code: [src/commands/cleanup/verify.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/cleanup/verify.ts)_
|
|
588
588
|
|
|
589
589
|
## `qfg config-schema`
|
|
590
590
|
|
|
@@ -613,7 +613,7 @@ EXAMPLES
|
|
|
613
613
|
$ qfg config-schema --json-schema # full JSON Schema document (copy into your editor)
|
|
614
614
|
```
|
|
615
615
|
|
|
616
|
-
_See code: [src/commands/config-schema.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
616
|
+
_See code: [src/commands/config-schema.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/config-schema.ts)_
|
|
617
617
|
|
|
618
618
|
## `qfg create NAME`
|
|
619
619
|
|
|
@@ -700,7 +700,7 @@ EXAMPLES
|
|
|
700
700
|
$ qfg set-rollout my.new.flag --environment production --true-percent 20
|
|
701
701
|
```
|
|
702
702
|
|
|
703
|
-
_See code: [src/commands/create.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
703
|
+
_See code: [src/commands/create.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/create.ts)_
|
|
704
704
|
|
|
705
705
|
## `qfg delete NAME`
|
|
706
706
|
|
|
@@ -746,7 +746,7 @@ EXAMPLES
|
|
|
746
746
|
$ qfg delete my.config --yes
|
|
747
747
|
```
|
|
748
748
|
|
|
749
|
-
_See code: [src/commands/delete.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
749
|
+
_See code: [src/commands/delete.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/delete.ts)_
|
|
750
750
|
|
|
751
751
|
## `qfg flag info [NAME]`
|
|
752
752
|
|
|
@@ -950,7 +950,7 @@ EXAMPLES
|
|
|
950
950
|
$ qfg generate --targets node-ts -o ./dist # combine with targets
|
|
951
951
|
```
|
|
952
952
|
|
|
953
|
-
_See code: [src/commands/generate.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
953
|
+
_See code: [src/commands/generate.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/generate.ts)_
|
|
954
954
|
|
|
955
955
|
## `qfg generate-new-hex-key`
|
|
956
956
|
|
|
@@ -973,7 +973,7 @@ EXAMPLES
|
|
|
973
973
|
$ qfg generate-new-hex-key
|
|
974
974
|
```
|
|
975
975
|
|
|
976
|
-
_See code: [src/commands/generate-new-hex-key.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
976
|
+
_See code: [src/commands/generate-new-hex-key.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/generate-new-hex-key.ts)_
|
|
977
977
|
|
|
978
978
|
## `qfg get [NAME]`
|
|
979
979
|
|
|
@@ -1005,7 +1005,7 @@ EXAMPLES
|
|
|
1005
1005
|
$ qfg get my.config.name --environment=production
|
|
1006
1006
|
```
|
|
1007
1007
|
|
|
1008
|
-
_See code: [src/commands/get.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1008
|
+
_See code: [src/commands/get.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/get.ts)_
|
|
1009
1009
|
|
|
1010
1010
|
## `qfg history NAME`
|
|
1011
1011
|
|
|
@@ -1031,7 +1031,7 @@ EXAMPLES
|
|
|
1031
1031
|
$ qfg history my.flag
|
|
1032
1032
|
```
|
|
1033
1033
|
|
|
1034
|
-
_See code: [src/commands/history.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1034
|
+
_See code: [src/commands/history.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/history.ts)_
|
|
1035
1035
|
|
|
1036
1036
|
## `qfg info [NAME]`
|
|
1037
1037
|
|
|
@@ -1079,7 +1079,7 @@ EXAMPLES
|
|
|
1079
1079
|
$ qfg info my.config.name --exclude-evaluations # skip 24h stats
|
|
1080
1080
|
```
|
|
1081
1081
|
|
|
1082
|
-
_See code: [src/commands/info.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1082
|
+
_See code: [src/commands/info.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/info.ts)_
|
|
1083
1083
|
|
|
1084
1084
|
## `qfg init [DIRECTORY]`
|
|
1085
1085
|
|
|
@@ -1119,7 +1119,7 @@ EXAMPLES
|
|
|
1119
1119
|
$ qfg init --dry-run
|
|
1120
1120
|
```
|
|
1121
1121
|
|
|
1122
|
-
_See code: [src/commands/init.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1122
|
+
_See code: [src/commands/init.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/init.ts)_
|
|
1123
1123
|
|
|
1124
1124
|
## `qfg interactive`
|
|
1125
1125
|
|
|
@@ -1149,7 +1149,7 @@ EXAMPLES
|
|
|
1149
1149
|
$ qfg
|
|
1150
1150
|
```
|
|
1151
1151
|
|
|
1152
|
-
_See code: [src/commands/interactive.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1152
|
+
_See code: [src/commands/interactive.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/interactive.ts)_
|
|
1153
1153
|
|
|
1154
1154
|
## `qfg list`
|
|
1155
1155
|
|
|
@@ -1189,7 +1189,7 @@ EXAMPLES
|
|
|
1189
1189
|
$ qfg list --feature-flags
|
|
1190
1190
|
```
|
|
1191
1191
|
|
|
1192
|
-
_See code: [src/commands/list.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1192
|
+
_See code: [src/commands/list.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/list.ts)_
|
|
1193
1193
|
|
|
1194
1194
|
## `qfg log`
|
|
1195
1195
|
|
|
@@ -1214,7 +1214,7 @@ EXAMPLES
|
|
|
1214
1214
|
$ qfg log --limit 5
|
|
1215
1215
|
```
|
|
1216
1216
|
|
|
1217
|
-
_See code: [src/commands/log.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1217
|
+
_See code: [src/commands/log.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/log.ts)_
|
|
1218
1218
|
|
|
1219
1219
|
## `qfg log-level NAME`
|
|
1220
1220
|
|
|
@@ -1279,7 +1279,7 @@ EXAMPLES
|
|
|
1279
1279
|
$ qfg log-level log-level.my-app --target=Chatty --value=INFO --environment=production
|
|
1280
1280
|
```
|
|
1281
1281
|
|
|
1282
|
-
_See code: [src/commands/log-level.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1282
|
+
_See code: [src/commands/log-level.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/log-level.ts)_
|
|
1283
1283
|
|
|
1284
1284
|
## `qfg login`
|
|
1285
1285
|
|
|
@@ -1304,7 +1304,7 @@ EXAMPLES
|
|
|
1304
1304
|
$ qfg login --profile myprofile
|
|
1305
1305
|
```
|
|
1306
1306
|
|
|
1307
|
-
_See code: [src/commands/login.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1307
|
+
_See code: [src/commands/login.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/login.ts)_
|
|
1308
1308
|
|
|
1309
1309
|
## `qfg logout`
|
|
1310
1310
|
|
|
@@ -1327,7 +1327,7 @@ EXAMPLES
|
|
|
1327
1327
|
$ qfg logout
|
|
1328
1328
|
```
|
|
1329
1329
|
|
|
1330
|
-
_See code: [src/commands/logout.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1330
|
+
_See code: [src/commands/logout.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/logout.ts)_
|
|
1331
1331
|
|
|
1332
1332
|
## `qfg migrate`
|
|
1333
1333
|
|
|
@@ -1392,7 +1392,7 @@ EXAMPLES
|
|
|
1392
1392
|
$ qfg migrate --from launch --source-api-key $LAUNCH_API_KEY --dir ./quonfig-repo --staging
|
|
1393
1393
|
```
|
|
1394
1394
|
|
|
1395
|
-
_See code: [src/commands/migrate.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1395
|
+
_See code: [src/commands/migrate.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/migrate.ts)_
|
|
1396
1396
|
|
|
1397
1397
|
## `qfg migrate doctor`
|
|
1398
1398
|
|
|
@@ -1430,7 +1430,7 @@ EXAMPLES
|
|
|
1430
1430
|
$ qfg migrate doctor --json
|
|
1431
1431
|
```
|
|
1432
1432
|
|
|
1433
|
-
_See code: [src/commands/migrate/doctor.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1433
|
+
_See code: [src/commands/migrate/doctor.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/migrate/doctor.ts)_
|
|
1434
1434
|
|
|
1435
1435
|
## `qfg migrate my-code`
|
|
1436
1436
|
|
|
@@ -1462,7 +1462,7 @@ EXAMPLES
|
|
|
1462
1462
|
$ qfg migrate my-code --dry-run
|
|
1463
1463
|
```
|
|
1464
1464
|
|
|
1465
|
-
_See code: [src/commands/migrate/my-code.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1465
|
+
_See code: [src/commands/migrate/my-code.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/migrate/my-code.ts)_
|
|
1466
1466
|
|
|
1467
1467
|
## `qfg migrate status`
|
|
1468
1468
|
|
|
@@ -1493,7 +1493,7 @@ EXAMPLES
|
|
|
1493
1493
|
$ qfg migrate status --json
|
|
1494
1494
|
```
|
|
1495
1495
|
|
|
1496
|
-
_See code: [src/commands/migrate/status.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1496
|
+
_See code: [src/commands/migrate/status.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/migrate/status.ts)_
|
|
1497
1497
|
|
|
1498
1498
|
## `qfg override [NAME] [VALUE]`
|
|
1499
1499
|
|
|
@@ -1548,7 +1548,7 @@ EXAMPLES
|
|
|
1548
1548
|
$ qfg override my.flag true --env=staging
|
|
1549
1549
|
```
|
|
1550
1550
|
|
|
1551
|
-
_See code: [src/commands/override.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1551
|
+
_See code: [src/commands/override.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/override.ts)_
|
|
1552
1552
|
|
|
1553
1553
|
## `qfg pull`
|
|
1554
1554
|
|
|
@@ -1595,7 +1595,7 @@ EXAMPLES
|
|
|
1595
1595
|
$ qfg pull # uses QUONFIG_DIR env var
|
|
1596
1596
|
```
|
|
1597
1597
|
|
|
1598
|
-
_See code: [src/commands/pull.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1598
|
+
_See code: [src/commands/pull.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/pull.ts)_
|
|
1599
1599
|
|
|
1600
1600
|
## `qfg push`
|
|
1601
1601
|
|
|
@@ -1644,7 +1644,7 @@ EXAMPLES
|
|
|
1644
1644
|
$ qfg push --dir ./our-config --yes
|
|
1645
1645
|
```
|
|
1646
1646
|
|
|
1647
|
-
_See code: [src/commands/push.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1647
|
+
_See code: [src/commands/push.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/push.ts)_
|
|
1648
1648
|
|
|
1649
1649
|
## `qfg run [COMMAND]`
|
|
1650
1650
|
|
|
@@ -1695,7 +1695,7 @@ EXAMPLES
|
|
|
1695
1695
|
$ qfg run --env DATABASE_URL=db.url --preserve-env --environment=staging -- npm test
|
|
1696
1696
|
```
|
|
1697
1697
|
|
|
1698
|
-
_See code: [src/commands/run.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1698
|
+
_See code: [src/commands/run.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/run.ts)_
|
|
1699
1699
|
|
|
1700
1700
|
## `qfg schema NAME`
|
|
1701
1701
|
|
|
@@ -1733,7 +1733,7 @@ EXAMPLES
|
|
|
1733
1733
|
$ qfg schema my-schema --set-json-schema=@schemas/my-schema.json --protected
|
|
1734
1734
|
```
|
|
1735
1735
|
|
|
1736
|
-
_See code: [src/commands/schema.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1736
|
+
_See code: [src/commands/schema.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/schema.ts)_
|
|
1737
1737
|
|
|
1738
1738
|
## `qfg sdk-key`
|
|
1739
1739
|
|
|
@@ -1760,7 +1760,7 @@ EXAMPLES
|
|
|
1760
1760
|
$ qfg sdk-key revoke <key-id>
|
|
1761
1761
|
```
|
|
1762
1762
|
|
|
1763
|
-
_See code: [src/commands/sdk-key.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1763
|
+
_See code: [src/commands/sdk-key.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/sdk-key.ts)_
|
|
1764
1764
|
|
|
1765
1765
|
## `qfg sdk-key create`
|
|
1766
1766
|
|
|
@@ -1792,7 +1792,7 @@ EXAMPLES
|
|
|
1792
1792
|
$ qfg sdk-key create --environment staging --type browser
|
|
1793
1793
|
```
|
|
1794
1794
|
|
|
1795
|
-
_See code: [src/commands/sdk-key/create.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1795
|
+
_See code: [src/commands/sdk-key/create.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/sdk-key/create.ts)_
|
|
1796
1796
|
|
|
1797
1797
|
## `qfg sdk-key list`
|
|
1798
1798
|
|
|
@@ -1821,7 +1821,7 @@ EXAMPLES
|
|
|
1821
1821
|
$ qfg sdk-key list --environment production
|
|
1822
1822
|
```
|
|
1823
1823
|
|
|
1824
|
-
_See code: [src/commands/sdk-key/list.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1824
|
+
_See code: [src/commands/sdk-key/list.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/sdk-key/list.ts)_
|
|
1825
1825
|
|
|
1826
1826
|
## `qfg sdk-key revoke KEYID`
|
|
1827
1827
|
|
|
@@ -1848,7 +1848,7 @@ EXAMPLES
|
|
|
1848
1848
|
$ qfg sdk-key revoke a1b2c3d4-e5f6-7890-abcd-ef1234567890
|
|
1849
1849
|
```
|
|
1850
1850
|
|
|
1851
|
-
_See code: [src/commands/sdk-key/revoke.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1851
|
+
_See code: [src/commands/sdk-key/revoke.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/sdk-key/revoke.ts)_
|
|
1852
1852
|
|
|
1853
1853
|
## `qfg serve`
|
|
1854
1854
|
|
|
@@ -1905,7 +1905,7 @@ EXAMPLES
|
|
|
1905
1905
|
$ qfg serve --port 6581 --frontend-sdk-key PUBLIC_KEY
|
|
1906
1906
|
```
|
|
1907
1907
|
|
|
1908
|
-
_See code: [src/commands/serve.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1908
|
+
_See code: [src/commands/serve.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/serve.ts)_
|
|
1909
1909
|
|
|
1910
1910
|
## `qfg set-default [NAME]`
|
|
1911
1911
|
|
|
@@ -1976,7 +1976,7 @@ EXAMPLES
|
|
|
1976
1976
|
$ qfg pull && qfg config-schema
|
|
1977
1977
|
```
|
|
1978
1978
|
|
|
1979
|
-
_See code: [src/commands/set-default.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1979
|
+
_See code: [src/commands/set-default.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/set-default.ts)_
|
|
1980
1980
|
|
|
1981
1981
|
## `qfg set-rollout [NAME]`
|
|
1982
1982
|
|
|
@@ -2053,7 +2053,7 @@ EXAMPLES
|
|
|
2053
2053
|
$ qfg set-rollout my.variant.flag --environment production --weights "a:33,b:33,c:34" --hash-by user.id
|
|
2054
2054
|
```
|
|
2055
2055
|
|
|
2056
|
-
_See code: [src/commands/set-rollout.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
2056
|
+
_See code: [src/commands/set-rollout.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/set-rollout.ts)_
|
|
2057
2057
|
|
|
2058
2058
|
## `qfg sync`
|
|
2059
2059
|
|
|
@@ -2085,7 +2085,7 @@ EXAMPLES
|
|
|
2085
2085
|
$ qfg sync --watch --dir ./our-config --interval 30
|
|
2086
2086
|
```
|
|
2087
2087
|
|
|
2088
|
-
_See code: [src/commands/sync.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
2088
|
+
_See code: [src/commands/sync.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/sync.ts)_
|
|
2089
2089
|
|
|
2090
2090
|
## `qfg toggle [NAME]`
|
|
2091
2091
|
|
|
@@ -2187,7 +2187,7 @@ EXAMPLES
|
|
|
2187
2187
|
$ qfg verify --json
|
|
2188
2188
|
```
|
|
2189
2189
|
|
|
2190
|
-
_See code: [src/commands/verify.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
2190
|
+
_See code: [src/commands/verify.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/verify.ts)_
|
|
2191
2191
|
|
|
2192
2192
|
## `qfg whoami`
|
|
2193
2193
|
|
|
@@ -2210,7 +2210,7 @@ EXAMPLES
|
|
|
2210
2210
|
$ qfg whoami
|
|
2211
2211
|
```
|
|
2212
2212
|
|
|
2213
|
-
_See code: [src/commands/whoami.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
2213
|
+
_See code: [src/commands/whoami.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/whoami.ts)_
|
|
2214
2214
|
|
|
2215
2215
|
## `qfg workspace`
|
|
2216
2216
|
|
|
@@ -2233,7 +2233,7 @@ EXAMPLES
|
|
|
2233
2233
|
$ qfg workspace
|
|
2234
2234
|
```
|
|
2235
2235
|
|
|
2236
|
-
_See code: [src/commands/workspace.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
2236
|
+
_See code: [src/commands/workspace.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/workspace.ts)_
|
|
2237
2237
|
|
|
2238
2238
|
## `qfg workspace bootstrap`
|
|
2239
2239
|
|
|
@@ -2266,7 +2266,7 @@ EXAMPLES
|
|
|
2266
2266
|
$ qfg workspace bootstrap --dir ./our-config --skip-validate
|
|
2267
2267
|
```
|
|
2268
2268
|
|
|
2269
|
-
_See code: [src/commands/workspace/bootstrap.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
2269
|
+
_See code: [src/commands/workspace/bootstrap.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/workspace/bootstrap.ts)_
|
|
2270
2270
|
|
|
2271
2271
|
## `qfg workspace create SLUG`
|
|
2272
2272
|
|
|
@@ -2300,7 +2300,7 @@ EXAMPLES
|
|
|
2300
2300
|
$ qfg workspace create my-team --org 11111111-1111-1111-1111-111111111111
|
|
2301
2301
|
```
|
|
2302
2302
|
|
|
2303
|
-
_See code: [src/commands/workspace/create.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
2303
|
+
_See code: [src/commands/workspace/create.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/workspace/create.ts)_
|
|
2304
2304
|
|
|
2305
2305
|
## `qfg workspace switch [SLUG]`
|
|
2306
2306
|
|
|
@@ -2328,7 +2328,7 @@ EXAMPLES
|
|
|
2328
2328
|
$ qfg workspace switch acme/production
|
|
2329
2329
|
```
|
|
2330
2330
|
|
|
2331
|
-
_See code: [src/commands/workspace/switch.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
2331
|
+
_See code: [src/commands/workspace/switch.ts](https://github.com/quonfig/cli/blob/v0.0.69/src/commands/workspace/switch.ts)_
|
|
2332
2332
|
<!-- commandsstop -->
|
|
2333
2333
|
|
|
2334
2334
|
## Local Development
|
|
@@ -198,6 +198,7 @@ const CONVERSION_NOTE_HEADINGS = {
|
|
|
198
198
|
'identity-override-as-rule': 'Identity overrides converted to leading rules',
|
|
199
199
|
'identity-traits-referenced': 'Identity traits referenced by segment rules',
|
|
200
200
|
'individual-target-as-rule': 'Individual targets converted to rules',
|
|
201
|
+
'normalized-rollout-weights': 'Normalized rollout weights',
|
|
201
202
|
'skipped-rule': 'Skipped rules (unsupported operators)',
|
|
202
203
|
'unexportable-segment-membership': 'Unexportable segment membership',
|
|
203
204
|
};
|
|
@@ -60,7 +60,13 @@ export type ConversionNoteCategory =
|
|
|
60
60
|
* (plan §5.5 / D-F6). Pure FYI — your SDK callers will need to send this attribute at
|
|
61
61
|
* eval time. The `key` is the trait name; `detail` lists the segments referencing it.
|
|
62
62
|
*/
|
|
63
|
-
| 'identity-traits-referenced'
|
|
63
|
+
| 'identity-traits-referenced'
|
|
64
|
+
/**
|
|
65
|
+
* Imported rollout weights violated the weight predicate (neither an even
|
|
66
|
+
* split nor a percent-scale sum of 100000) and were normalized to sum
|
|
67
|
+
* 100000 — or, at zero total, replaced with an even split (qfg-wis6.11).
|
|
68
|
+
*/
|
|
69
|
+
| 'normalized-rollout-weights';
|
|
64
70
|
export interface ConversionNote {
|
|
65
71
|
category: ConversionNoteCategory;
|
|
66
72
|
/** Human-readable detail — names the exact thing lost and why. */
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
import { resolveKey } from '../key-rewriter.js';
|
|
12
12
|
import { mapLaunchDarklyOperator } from './operators.js';
|
|
13
13
|
import { toQuonfigValue } from './values.js';
|
|
14
|
+
import { normalizeImportedWeights } from './weights.js';
|
|
14
15
|
const ALWAYS_TRUE = { operator: 'ALWAYS_TRUE' };
|
|
15
16
|
/** Operators whose `valueToMatch` is a `string_list` of every clause value. */
|
|
16
17
|
const STRING_LIST_OPERATORS = new Set([
|
|
@@ -130,13 +131,21 @@ export function rolloutToWeightedValues(rollout, ctx) {
|
|
|
130
131
|
? normalizeAttribute(rollout.contextKind, rollout.bucketBy)
|
|
131
132
|
: `${rollout.contextKind && rollout.contextKind.length > 0 ? rollout.contextKind : 'user'}.key`;
|
|
132
133
|
ctx.report.add('rebucketed-rollout', ctx.sourceKey, `percentage rollout hashed on "${hashByPropertyName}" — LaunchDarkly and Quonfig bucket differently, so users will be re-bucketed`);
|
|
134
|
+
// LD weights natively sum to 100000, but guard the predicate anyway
|
|
135
|
+
// (qfg-wis6.11) — the hook now errors on non-conforming imports.
|
|
136
|
+
let weights = rollout.variations.map((wv) => wv.weight);
|
|
137
|
+
const normalized = normalizeImportedWeights(weights);
|
|
138
|
+
if (normalized) {
|
|
139
|
+
ctx.report.add('normalized-rollout-weights', ctx.sourceKey, normalized.detail);
|
|
140
|
+
weights = normalized.weights;
|
|
141
|
+
}
|
|
133
142
|
return {
|
|
134
143
|
type: 'weighted_values',
|
|
135
144
|
value: {
|
|
136
145
|
hashByPropertyName,
|
|
137
|
-
weightedValues: rollout.variations.map((wv) => ({
|
|
146
|
+
weightedValues: rollout.variations.map((wv, i) => ({
|
|
138
147
|
value: variationValue(wv.variation, ctx),
|
|
139
|
-
weight:
|
|
148
|
+
weight: weights[i],
|
|
140
149
|
})),
|
|
141
150
|
},
|
|
142
151
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared verb: imported rollout-weight normalization (qfg-wis6.11).
|
|
3
|
+
*
|
|
4
|
+
* Stored weighted values must satisfy the weight predicate qfg-verify
|
|
5
|
+
* enforces: either an even split (all weights equal and > 0) or percentages
|
|
6
|
+
* summing to MAX_WEIGHT. All-equal imports are the canonical even-split
|
|
7
|
+
* encoding and pass through verbatim (Launch's 1/1 rollouts are intended
|
|
8
|
+
* data, not a bug). Anything else is scaled to sum exactly MAX_WEIGHT via
|
|
9
|
+
* largest remainder — ties go to the earliest index — and reported. A zero
|
|
10
|
+
* (or negative) total becomes an even split.
|
|
11
|
+
*/
|
|
12
|
+
export declare const MAX_WEIGHT = 100000;
|
|
13
|
+
export interface NormalizedWeights {
|
|
14
|
+
/** Human-readable report line naming the original ratio and the action. */
|
|
15
|
+
detail: string;
|
|
16
|
+
/** The predicate-satisfying replacement weights, same length as input. */
|
|
17
|
+
weights: number[];
|
|
18
|
+
}
|
|
19
|
+
/** Returns null when the weights already satisfy the predicate (import verbatim). */
|
|
20
|
+
export declare function normalizeImportedWeights(weights: number[]): NormalizedWeights | null;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared verb: imported rollout-weight normalization (qfg-wis6.11).
|
|
3
|
+
*
|
|
4
|
+
* Stored weighted values must satisfy the weight predicate qfg-verify
|
|
5
|
+
* enforces: either an even split (all weights equal and > 0) or percentages
|
|
6
|
+
* summing to MAX_WEIGHT. All-equal imports are the canonical even-split
|
|
7
|
+
* encoding and pass through verbatim (Launch's 1/1 rollouts are intended
|
|
8
|
+
* data, not a bug). Anything else is scaled to sum exactly MAX_WEIGHT via
|
|
9
|
+
* largest remainder — ties go to the earliest index — and reported. A zero
|
|
10
|
+
* (or negative) total becomes an even split.
|
|
11
|
+
*/
|
|
12
|
+
export const MAX_WEIGHT = 100_000;
|
|
13
|
+
/** Returns null when the weights already satisfy the predicate (import verbatim). */
|
|
14
|
+
export function normalizeImportedWeights(weights) {
|
|
15
|
+
if (weights.length === 0)
|
|
16
|
+
return null;
|
|
17
|
+
const clamped = weights.map((w) => (Number.isFinite(w) && w > 0 ? w : 0));
|
|
18
|
+
const total = clamped.reduce((a, b) => a + b, 0);
|
|
19
|
+
const allEqualNonZero = clamped[0] > 0 && clamped.every((w) => w === clamped[0]);
|
|
20
|
+
if (allEqualNonZero && clamped.every((w, i) => w === weights[i]))
|
|
21
|
+
return null;
|
|
22
|
+
if (total <= 0) {
|
|
23
|
+
return {
|
|
24
|
+
weights: weights.map(() => 1),
|
|
25
|
+
detail: `rollout weights [${weights.join(', ')}] have zero total — imported as an even split (all ones)`,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
if (total === MAX_WEIGHT && clamped.every((w, i) => w === weights[i] && Number.isInteger(w)))
|
|
29
|
+
return null;
|
|
30
|
+
// Largest remainder: floor each exact share, then hand the missing units
|
|
31
|
+
// to the largest fractional remainders, ties to the earliest index.
|
|
32
|
+
const exact = clamped.map((w) => (w / total) * MAX_WEIGHT);
|
|
33
|
+
const floors = exact.map((x) => Math.floor(x));
|
|
34
|
+
let missing = MAX_WEIGHT - floors.reduce((a, b) => a + b, 0);
|
|
35
|
+
const order = exact
|
|
36
|
+
.map((x, i) => ({ fraction: x - Math.floor(x), i }))
|
|
37
|
+
.sort((a, b) => b.fraction - a.fraction || a.i - b.i);
|
|
38
|
+
for (const { i } of order) {
|
|
39
|
+
if (missing <= 0)
|
|
40
|
+
break;
|
|
41
|
+
floors[i] += 1;
|
|
42
|
+
missing -= 1;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
weights: floors,
|
|
46
|
+
detail: `rollout weights [${weights.join(', ')}] (sum ${total}) normalized to [${floors.join(', ')}] to sum ${MAX_WEIGHT}`,
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import { resolveKey } from '../../key-rewriter.js';
|
|
19
19
|
import { inferValueType, toQuonfigValue } from '../../quonfig-target/values.js';
|
|
20
|
+
import { normalizeImportedWeights } from '../../quonfig-target/weights.js';
|
|
20
21
|
const ALWAYS_TRUE = { operator: 'ALWAYS_TRUE' };
|
|
21
22
|
/** Flagsmith identity-override rule keys context attributes under this propertyName. */
|
|
22
23
|
const IDENTITY_PROPERTY_NAME = 'user.key';
|
|
@@ -465,6 +466,14 @@ function multivariateWeightedValue(mvOptions, perEnvWeights, ctx) {
|
|
|
465
466
|
weight: Math.round(pct * 1000),
|
|
466
467
|
};
|
|
467
468
|
});
|
|
469
|
+
// Flagsmith allocations don't have to sum to 100 — enforce the weight
|
|
470
|
+
// predicate the qfg-verify hook now errors on (qfg-wis6.11).
|
|
471
|
+
const normalized = normalizeImportedWeights(weightedValues.map((wv) => wv.weight));
|
|
472
|
+
if (normalized) {
|
|
473
|
+
ctx.report.add('normalized-rollout-weights', ctx.feature.name, normalized.detail);
|
|
474
|
+
for (const [i, wv] of weightedValues.entries())
|
|
475
|
+
wv.weight = normalized.weights[i];
|
|
476
|
+
}
|
|
468
477
|
return {
|
|
469
478
|
type: 'weighted_values',
|
|
470
479
|
value: {
|
|
@@ -31,7 +31,7 @@ export declare function normalizeKey(key: string): string;
|
|
|
31
31
|
* test in this file enforces parity.
|
|
32
32
|
*/
|
|
33
33
|
export declare const QUONFIG_SUPPORTED_OPERATORS: Set<string>;
|
|
34
|
-
export declare function transformConfig(config: LaunchConfig, envIdMap: Record<string, string>, onDroppedEnv?: (envId: string) => void, onCoercedSentinel?: (envId: string, valueType: string) => void): Record<string, unknown>;
|
|
34
|
+
export declare function transformConfig(config: LaunchConfig, envIdMap: Record<string, string>, onDroppedEnv?: (envId: string) => void, onCoercedSentinel?: (envId: string, valueType: string) => void, onNormalizedWeights?: (detail: string) => void): Record<string, unknown>;
|
|
35
35
|
export declare function getOutputPath(type: string, key: string): string;
|
|
36
36
|
/**
|
|
37
37
|
* Walks the set of written files looking for cross-type collisions (the same
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { normalizeImportedWeights } from '../../quonfig-target/weights.js';
|
|
1
2
|
import { zodToJsonSchema } from './zod-to-json-schema.js';
|
|
2
3
|
import { resolveKey } from '../../key-rewriter.js';
|
|
3
4
|
/**
|
|
@@ -271,7 +272,56 @@ function normalizeJsonValuesInConfig(out) {
|
|
|
271
272
|
}
|
|
272
273
|
}
|
|
273
274
|
}
|
|
274
|
-
|
|
275
|
+
// qfg-wis6.11: Launch's relative weights import verbatim when all weights
|
|
276
|
+
// are equal (the intended even-split encoding, e.g. 1/1). Any other ratio is
|
|
277
|
+
// normalized to sum 100000, and a zero total becomes an even split, so
|
|
278
|
+
// imported data always satisfies the weight predicate the qfg-verify hook
|
|
279
|
+
// errors on. Every change is surfaced through the callback.
|
|
280
|
+
function normalizeWeightsInRules(rules, path, onNormalized) {
|
|
281
|
+
if (!Array.isArray(rules))
|
|
282
|
+
return;
|
|
283
|
+
for (const [i, rule] of rules.entries()) {
|
|
284
|
+
if (!rule || typeof rule !== 'object')
|
|
285
|
+
continue;
|
|
286
|
+
const v = rule.value;
|
|
287
|
+
if (!v || typeof v !== 'object' || v.type !== 'weighted_values')
|
|
288
|
+
continue;
|
|
289
|
+
const inner = v.value;
|
|
290
|
+
let entries = null;
|
|
291
|
+
if (Array.isArray(inner)) {
|
|
292
|
+
entries = inner;
|
|
293
|
+
}
|
|
294
|
+
else if (inner && typeof inner === 'object') {
|
|
295
|
+
const wvs = inner.weightedValues;
|
|
296
|
+
if (Array.isArray(wvs))
|
|
297
|
+
entries = wvs;
|
|
298
|
+
}
|
|
299
|
+
if (!entries || entries.length === 0)
|
|
300
|
+
continue;
|
|
301
|
+
const weights = entries.map((e) => Number(e?.weight ?? 0));
|
|
302
|
+
const normalized = normalizeImportedWeights(weights);
|
|
303
|
+
if (!normalized)
|
|
304
|
+
continue;
|
|
305
|
+
for (const [j, entry] of entries.entries()) {
|
|
306
|
+
if (entry && typeof entry === 'object')
|
|
307
|
+
entry.weight = normalized.weights[j];
|
|
308
|
+
}
|
|
309
|
+
onNormalized?.(`${path}[${i}]: ${normalized.detail}`);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
function normalizeWeightsInConfig(out, onNormalized) {
|
|
313
|
+
const defaultSection = out.default;
|
|
314
|
+
if (defaultSection) {
|
|
315
|
+
normalizeWeightsInRules(defaultSection.rules, 'default.rules', onNormalized);
|
|
316
|
+
}
|
|
317
|
+
if (Array.isArray(out.environments)) {
|
|
318
|
+
for (const [i, env] of out.environments.entries()) {
|
|
319
|
+
const envId = typeof env.id === 'string' ? env.id : String(i);
|
|
320
|
+
normalizeWeightsInRules(env.rules, `environments[${envId}].rules`, onNormalized);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
export function transformConfig(config, envIdMap, onDroppedEnv, onCoercedSentinel, onNormalizedWeights) {
|
|
275
325
|
const out = JSON.parse(JSON.stringify(config));
|
|
276
326
|
// qfg-qhk1: normalize `/` to `.` in the key so the JSON `key` field matches
|
|
277
327
|
// the flat dotted filename the migrator will write.
|
|
@@ -374,6 +424,7 @@ export function transformConfig(config, envIdMap, onDroppedEnv, onCoercedSentine
|
|
|
374
424
|
}
|
|
375
425
|
}
|
|
376
426
|
normalizeJsonValuesInConfig(out);
|
|
427
|
+
normalizeWeightsInConfig(out, onNormalizedWeights);
|
|
377
428
|
validateOperators(out);
|
|
378
429
|
return out;
|
|
379
430
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { ConversionReport } from '../quonfig-target/report.js';
|
|
1
2
|
import { fetchAllChangeHistory, fetchEnvironments } from './launch/api.js';
|
|
2
3
|
import { InvalidSourceConfigError, getOutputPath, isLegacyLogLevel, slugify, transformConfig, } from './launch/translate.js';
|
|
3
4
|
const SOURCE_NAME = 'launch';
|
|
4
5
|
const state = {
|
|
5
6
|
apiKey: null,
|
|
6
7
|
coercedSentinels: new Map(),
|
|
8
|
+
conversionReport: new ConversionReport(),
|
|
7
9
|
droppedOverrides: new Map(),
|
|
8
10
|
envIdMap: null,
|
|
9
11
|
skippedConfigs: [],
|
|
@@ -71,6 +73,8 @@ function translateImpl(change) {
|
|
|
71
73
|
state.coercedSentinels.set(envId, perFlag);
|
|
72
74
|
}
|
|
73
75
|
perFlag.set(outputPath, (perFlag.get(outputPath) ?? 0) + 1);
|
|
76
|
+
}, (detail) => {
|
|
77
|
+
state.conversionReport.add('normalized-rollout-weights', raw.key, detail);
|
|
74
78
|
});
|
|
75
79
|
}
|
|
76
80
|
catch (error) {
|
|
@@ -145,6 +149,10 @@ async function validateAuthImpl(apiKey) {
|
|
|
145
149
|
state.droppedOverrides = new Map();
|
|
146
150
|
state.skippedConfigs = [];
|
|
147
151
|
state.coercedSentinels = new Map();
|
|
152
|
+
state.conversionReport.reset();
|
|
153
|
+
}
|
|
154
|
+
function getConversionNotesImpl() {
|
|
155
|
+
return state.conversionReport.isEmpty() ? null : state.conversionReport.all();
|
|
148
156
|
}
|
|
149
157
|
export const launchSource = {
|
|
150
158
|
fetchChanges(sinceEpochMs, onProgress) {
|
|
@@ -152,6 +160,7 @@ export const launchSource = {
|
|
|
152
160
|
},
|
|
153
161
|
getCoercedSentinels: getCoercedSentinelsImpl,
|
|
154
162
|
getCommitMeta: getCommitMetaImpl,
|
|
163
|
+
getConversionNotes: getConversionNotesImpl,
|
|
155
164
|
getDroppedOverrides: getDroppedOverridesImpl,
|
|
156
165
|
getSkippedConfigs: getSkippedConfigsImpl,
|
|
157
166
|
listEnvironments: listEnvironmentsImpl,
|
|
@@ -165,4 +174,5 @@ export function __resetLaunchSourceForTests() {
|
|
|
165
174
|
state.droppedOverrides = new Map();
|
|
166
175
|
state.skippedConfigs = [];
|
|
167
176
|
state.coercedSentinels = new Map();
|
|
177
|
+
state.conversionReport.reset();
|
|
168
178
|
}
|
package/dist/verify/validate.js
CHANGED
|
@@ -980,6 +980,24 @@ function validateRules(rules, file, context, expectedValueType, issues, variants
|
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
}
|
|
983
|
+
// Weight predicate (qfg-wis6.10): stored weights must be either an
|
|
984
|
+
// even split (all weights equal and > 0) or percentages summing to
|
|
985
|
+
// MAX_WEIGHT. Anything else was written by a broken client: evaluators
|
|
986
|
+
// normalize by total, so it silently serves different percentages
|
|
987
|
+
// than any display of the raw weights suggests.
|
|
988
|
+
if (wv.weightedValues.length > 0) {
|
|
989
|
+
const weights = wv.weightedValues.map((entry) => entry.weight);
|
|
990
|
+
const total = weights.reduce((a, b) => a + b, 0);
|
|
991
|
+
const evenSplit = weights[0] > 0 && weights.every((w) => w === weights[0]);
|
|
992
|
+
if (!evenSplit && total !== MAX_WEIGHT) {
|
|
993
|
+
issues.push({
|
|
994
|
+
file,
|
|
995
|
+
message: `${ruleCtx}: weighted values must either be an even split (all weights equal and > 0) or sum to ${MAX_WEIGHT}; got [${weights.join(', ')}] summing to ${total}`,
|
|
996
|
+
severity: 'error',
|
|
997
|
+
suggestion: `Use equal weights for an even split, or make the weights sum to ${MAX_WEIGHT} (1000 units per percent).`,
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
983
1001
|
}
|
|
984
1002
|
// Check criteria
|
|
985
1003
|
for (let j = 0; j < rule.criteria.length; j++) {
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.0.
|
|
1
|
+
declare const _default: "0.0.69";
|
|
2
2
|
export default _default;
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// AUTO-GENERATED from package.json by scripts/generate-version.mjs — do not edit.
|
|
2
|
-
export default '0.0.
|
|
2
|
+
export default '0.0.69';
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"packageManager": "yarn@4.11.0+sha512.4e54aeace9141df2f0177c266b05ec50dc044638157dae128c471ba65994ac802122d7ab35bcd9e81641228b7dcf24867d28e750e0bcae8a05277d600008ad54",
|
|
3
3
|
"name": "@quonfig/cli",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.69",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/quonfig/cli/issues"
|
|
7
7
|
},
|