@quonfig/cli 0.0.63 → 0.0.65
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/quonfig-target/ruleset.js +5 -2
- package/dist/verify/validate.d.ts +3 -1
- package/dist/verify/validate.js +91 -69
- 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.65 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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/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.65/src/commands/logout.ts)_
|
|
1331
1331
|
|
|
1332
1332
|
## `qfg migrate`
|
|
1333
1333
|
|
|
@@ -1390,7 +1390,7 @@ EXAMPLES
|
|
|
1390
1390
|
$ qfg migrate --from launch --source-api-key $LAUNCH_API_KEY --dir ./quonfig-repo --staging
|
|
1391
1391
|
```
|
|
1392
1392
|
|
|
1393
|
-
_See code: [src/commands/migrate.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1393
|
+
_See code: [src/commands/migrate.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/migrate.ts)_
|
|
1394
1394
|
|
|
1395
1395
|
## `qfg migrate doctor`
|
|
1396
1396
|
|
|
@@ -1428,7 +1428,7 @@ EXAMPLES
|
|
|
1428
1428
|
$ qfg migrate doctor --json
|
|
1429
1429
|
```
|
|
1430
1430
|
|
|
1431
|
-
_See code: [src/commands/migrate/doctor.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1431
|
+
_See code: [src/commands/migrate/doctor.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/migrate/doctor.ts)_
|
|
1432
1432
|
|
|
1433
1433
|
## `qfg migrate my-code`
|
|
1434
1434
|
|
|
@@ -1460,7 +1460,7 @@ EXAMPLES
|
|
|
1460
1460
|
$ qfg migrate my-code --dry-run
|
|
1461
1461
|
```
|
|
1462
1462
|
|
|
1463
|
-
_See code: [src/commands/migrate/my-code.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1463
|
+
_See code: [src/commands/migrate/my-code.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/migrate/my-code.ts)_
|
|
1464
1464
|
|
|
1465
1465
|
## `qfg migrate status`
|
|
1466
1466
|
|
|
@@ -1491,7 +1491,7 @@ EXAMPLES
|
|
|
1491
1491
|
$ qfg migrate status --json
|
|
1492
1492
|
```
|
|
1493
1493
|
|
|
1494
|
-
_See code: [src/commands/migrate/status.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1494
|
+
_See code: [src/commands/migrate/status.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/migrate/status.ts)_
|
|
1495
1495
|
|
|
1496
1496
|
## `qfg override [NAME] [VALUE]`
|
|
1497
1497
|
|
|
@@ -1546,7 +1546,7 @@ EXAMPLES
|
|
|
1546
1546
|
$ qfg override my.flag true --env=staging
|
|
1547
1547
|
```
|
|
1548
1548
|
|
|
1549
|
-
_See code: [src/commands/override.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1549
|
+
_See code: [src/commands/override.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/override.ts)_
|
|
1550
1550
|
|
|
1551
1551
|
## `qfg pull`
|
|
1552
1552
|
|
|
@@ -1594,7 +1594,7 @@ EXAMPLES
|
|
|
1594
1594
|
$ qfg pull # uses QUONFIG_DIR env var
|
|
1595
1595
|
```
|
|
1596
1596
|
|
|
1597
|
-
_See code: [src/commands/pull.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1597
|
+
_See code: [src/commands/pull.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/pull.ts)_
|
|
1598
1598
|
|
|
1599
1599
|
## `qfg push`
|
|
1600
1600
|
|
|
@@ -1643,7 +1643,7 @@ EXAMPLES
|
|
|
1643
1643
|
$ qfg push --dir ./our-config --yes
|
|
1644
1644
|
```
|
|
1645
1645
|
|
|
1646
|
-
_See code: [src/commands/push.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1646
|
+
_See code: [src/commands/push.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/push.ts)_
|
|
1647
1647
|
|
|
1648
1648
|
## `qfg run [COMMAND]`
|
|
1649
1649
|
|
|
@@ -1694,7 +1694,7 @@ EXAMPLES
|
|
|
1694
1694
|
$ qfg run --env DATABASE_URL=db.url --preserve-env --environment=staging -- npm test
|
|
1695
1695
|
```
|
|
1696
1696
|
|
|
1697
|
-
_See code: [src/commands/run.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1697
|
+
_See code: [src/commands/run.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/run.ts)_
|
|
1698
1698
|
|
|
1699
1699
|
## `qfg schema NAME`
|
|
1700
1700
|
|
|
@@ -1732,7 +1732,7 @@ EXAMPLES
|
|
|
1732
1732
|
$ qfg schema my-schema --set-json-schema=@schemas/my-schema.json --protected
|
|
1733
1733
|
```
|
|
1734
1734
|
|
|
1735
|
-
_See code: [src/commands/schema.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1735
|
+
_See code: [src/commands/schema.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/schema.ts)_
|
|
1736
1736
|
|
|
1737
1737
|
## `qfg sdk-key`
|
|
1738
1738
|
|
|
@@ -1759,7 +1759,7 @@ EXAMPLES
|
|
|
1759
1759
|
$ qfg sdk-key revoke <key-id>
|
|
1760
1760
|
```
|
|
1761
1761
|
|
|
1762
|
-
_See code: [src/commands/sdk-key.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1762
|
+
_See code: [src/commands/sdk-key.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/sdk-key.ts)_
|
|
1763
1763
|
|
|
1764
1764
|
## `qfg sdk-key create`
|
|
1765
1765
|
|
|
@@ -1791,7 +1791,7 @@ EXAMPLES
|
|
|
1791
1791
|
$ qfg sdk-key create --environment staging --type browser
|
|
1792
1792
|
```
|
|
1793
1793
|
|
|
1794
|
-
_See code: [src/commands/sdk-key/create.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1794
|
+
_See code: [src/commands/sdk-key/create.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/sdk-key/create.ts)_
|
|
1795
1795
|
|
|
1796
1796
|
## `qfg sdk-key list`
|
|
1797
1797
|
|
|
@@ -1820,7 +1820,7 @@ EXAMPLES
|
|
|
1820
1820
|
$ qfg sdk-key list --environment production
|
|
1821
1821
|
```
|
|
1822
1822
|
|
|
1823
|
-
_See code: [src/commands/sdk-key/list.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1823
|
+
_See code: [src/commands/sdk-key/list.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/sdk-key/list.ts)_
|
|
1824
1824
|
|
|
1825
1825
|
## `qfg sdk-key revoke KEYID`
|
|
1826
1826
|
|
|
@@ -1847,7 +1847,7 @@ EXAMPLES
|
|
|
1847
1847
|
$ qfg sdk-key revoke a1b2c3d4-e5f6-7890-abcd-ef1234567890
|
|
1848
1848
|
```
|
|
1849
1849
|
|
|
1850
|
-
_See code: [src/commands/sdk-key/revoke.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1850
|
+
_See code: [src/commands/sdk-key/revoke.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/sdk-key/revoke.ts)_
|
|
1851
1851
|
|
|
1852
1852
|
## `qfg serve`
|
|
1853
1853
|
|
|
@@ -1904,7 +1904,7 @@ EXAMPLES
|
|
|
1904
1904
|
$ qfg serve --port 6581 --frontend-sdk-key PUBLIC_KEY
|
|
1905
1905
|
```
|
|
1906
1906
|
|
|
1907
|
-
_See code: [src/commands/serve.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1907
|
+
_See code: [src/commands/serve.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/serve.ts)_
|
|
1908
1908
|
|
|
1909
1909
|
## `qfg set-default [NAME]`
|
|
1910
1910
|
|
|
@@ -1975,7 +1975,7 @@ EXAMPLES
|
|
|
1975
1975
|
$ qfg pull && qfg config-schema
|
|
1976
1976
|
```
|
|
1977
1977
|
|
|
1978
|
-
_See code: [src/commands/set-default.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
1978
|
+
_See code: [src/commands/set-default.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/set-default.ts)_
|
|
1979
1979
|
|
|
1980
1980
|
## `qfg set-rollout [NAME]`
|
|
1981
1981
|
|
|
@@ -2052,7 +2052,7 @@ EXAMPLES
|
|
|
2052
2052
|
$ qfg set-rollout my.variant.flag --environment production --weights "a:33,b:33,c:34" --hash-by user.id
|
|
2053
2053
|
```
|
|
2054
2054
|
|
|
2055
|
-
_See code: [src/commands/set-rollout.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
2055
|
+
_See code: [src/commands/set-rollout.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/set-rollout.ts)_
|
|
2056
2056
|
|
|
2057
2057
|
## `qfg sync`
|
|
2058
2058
|
|
|
@@ -2084,7 +2084,7 @@ EXAMPLES
|
|
|
2084
2084
|
$ qfg sync --watch --dir ./our-config --interval 30
|
|
2085
2085
|
```
|
|
2086
2086
|
|
|
2087
|
-
_See code: [src/commands/sync.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
2087
|
+
_See code: [src/commands/sync.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/sync.ts)_
|
|
2088
2088
|
|
|
2089
2089
|
## `qfg toggle [NAME]`
|
|
2090
2090
|
|
|
@@ -2186,7 +2186,7 @@ EXAMPLES
|
|
|
2186
2186
|
$ qfg verify --json
|
|
2187
2187
|
```
|
|
2188
2188
|
|
|
2189
|
-
_See code: [src/commands/verify.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
2189
|
+
_See code: [src/commands/verify.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/verify.ts)_
|
|
2190
2190
|
|
|
2191
2191
|
## `qfg whoami`
|
|
2192
2192
|
|
|
@@ -2209,7 +2209,7 @@ EXAMPLES
|
|
|
2209
2209
|
$ qfg whoami
|
|
2210
2210
|
```
|
|
2211
2211
|
|
|
2212
|
-
_See code: [src/commands/whoami.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
2212
|
+
_See code: [src/commands/whoami.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/whoami.ts)_
|
|
2213
2213
|
|
|
2214
2214
|
## `qfg workspace`
|
|
2215
2215
|
|
|
@@ -2232,7 +2232,7 @@ EXAMPLES
|
|
|
2232
2232
|
$ qfg workspace
|
|
2233
2233
|
```
|
|
2234
2234
|
|
|
2235
|
-
_See code: [src/commands/workspace.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
2235
|
+
_See code: [src/commands/workspace.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/workspace.ts)_
|
|
2236
2236
|
|
|
2237
2237
|
## `qfg workspace bootstrap`
|
|
2238
2238
|
|
|
@@ -2265,7 +2265,7 @@ EXAMPLES
|
|
|
2265
2265
|
$ qfg workspace bootstrap --dir ./our-config --skip-validate
|
|
2266
2266
|
```
|
|
2267
2267
|
|
|
2268
|
-
_See code: [src/commands/workspace/bootstrap.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
2268
|
+
_See code: [src/commands/workspace/bootstrap.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/workspace/bootstrap.ts)_
|
|
2269
2269
|
|
|
2270
2270
|
## `qfg workspace create SLUG`
|
|
2271
2271
|
|
|
@@ -2299,7 +2299,7 @@ EXAMPLES
|
|
|
2299
2299
|
$ qfg workspace create my-team --org 11111111-1111-1111-1111-111111111111
|
|
2300
2300
|
```
|
|
2301
2301
|
|
|
2302
|
-
_See code: [src/commands/workspace/create.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
2302
|
+
_See code: [src/commands/workspace/create.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/workspace/create.ts)_
|
|
2303
2303
|
|
|
2304
2304
|
## `qfg workspace switch [SLUG]`
|
|
2305
2305
|
|
|
@@ -2327,7 +2327,7 @@ EXAMPLES
|
|
|
2327
2327
|
$ qfg workspace switch acme/production
|
|
2328
2328
|
```
|
|
2329
2329
|
|
|
2330
|
-
_See code: [src/commands/workspace/switch.ts](https://github.com/quonfig/cli/blob/v0.0.
|
|
2330
|
+
_See code: [src/commands/workspace/switch.ts](https://github.com/quonfig/cli/blob/v0.0.65/src/commands/workspace/switch.ts)_
|
|
2331
2331
|
<!-- commandsstop -->
|
|
2332
2332
|
|
|
2333
2333
|
## Local Development
|
|
@@ -83,8 +83,11 @@ export function clauseToCriterion(clause, ctx) {
|
|
|
83
83
|
return null;
|
|
84
84
|
}
|
|
85
85
|
const { operator } = mapping;
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
// Segment matches key off valueToMatch alone — LD's pseudo-attribute
|
|
87
|
+
// ("segmentMatch") must not leak in as a propertyName (qfg-gc3u).
|
|
88
|
+
const criterion = operator === 'IN_SEG' || operator === 'NOT_IN_SEG'
|
|
89
|
+
? { operator }
|
|
90
|
+
: { operator, propertyName: normalizeAttribute(clause.contextKind, clause.attribute) };
|
|
88
91
|
criterion.valueToMatch = valueToMatchFor(operator, clause, ctx);
|
|
89
92
|
return criterion;
|
|
90
93
|
}
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
* - Valid JSON
|
|
10
10
|
* - Schema compliance (StoredConfigSchema from Zod)
|
|
11
11
|
* - Key matches filename
|
|
12
|
-
* - Key constraints (1-
|
|
12
|
+
* - Key constraints (1-200 chars, no slashes, not "new", FS-safety floor)
|
|
13
|
+
* - Case-insensitive key uniqueness (no Foo/foo collisions)
|
|
13
14
|
* - Config type matches directory
|
|
14
15
|
* - Segment constraints (valueType=bool, sendToClientSdk=false)
|
|
15
16
|
* - Log level constraints (valueType=log_level)
|
|
@@ -55,4 +56,5 @@ export declare function validateWorkspace(workspaceDir: string): ValidationResul
|
|
|
55
56
|
* Used by the pre-receive hook which reads files from git objects.
|
|
56
57
|
*/
|
|
57
58
|
export declare function validateFileMap(files: Map<string, string>): ValidationResult;
|
|
59
|
+
export declare function validateKey(key: string, file: string, issues: ValidationIssue[]): void;
|
|
58
60
|
export declare function formatResult(result: ValidationResult): string;
|
package/dist/verify/validate.js
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
* - Valid JSON
|
|
10
10
|
* - Schema compliance (StoredConfigSchema from Zod)
|
|
11
11
|
* - Key matches filename
|
|
12
|
-
* - Key constraints (1-
|
|
12
|
+
* - Key constraints (1-200 chars, no slashes, not "new", FS-safety floor)
|
|
13
|
+
* - Case-insensitive key uniqueness (no Foo/foo collisions)
|
|
13
14
|
* - Config type matches directory
|
|
14
15
|
* - Segment constraints (valueType=bool, sendToClientSdk=false)
|
|
15
16
|
* - Log level constraints (valueType=log_level)
|
|
@@ -552,40 +553,11 @@ export function validateWorkspace(workspaceDir) {
|
|
|
552
553
|
}
|
|
553
554
|
}
|
|
554
555
|
}
|
|
555
|
-
// Check for duplicate keys across directories
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
keyToFiles.set(c.key, existing);
|
|
561
|
-
}
|
|
562
|
-
for (const [key, files] of keyToFiles) {
|
|
563
|
-
if (files.length > 1) {
|
|
564
|
-
issues.push({
|
|
565
|
-
file: files.join(', '),
|
|
566
|
-
message: `Duplicate key "${key}" found in multiple files`,
|
|
567
|
-
severity: 'error',
|
|
568
|
-
suggestion: `Each key must be unique across the workspace`,
|
|
569
|
-
});
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
const schemaKeyToFiles = new Map();
|
|
573
|
-
for (const schemaFile of allSchemaFiles) {
|
|
574
|
-
const existing = schemaKeyToFiles.get(schemaFile.key) || [];
|
|
575
|
-
existing.push(schemaFile.file);
|
|
576
|
-
schemaKeyToFiles.set(schemaFile.key, existing);
|
|
577
|
-
}
|
|
578
|
-
for (const [key, files] of schemaKeyToFiles) {
|
|
579
|
-
if (files.length > 1) {
|
|
580
|
-
issues.push({
|
|
581
|
-
file: files.join(', '),
|
|
582
|
-
message: `Duplicate schema key "${key}" found in multiple files`,
|
|
583
|
-
severity: 'error',
|
|
584
|
-
suggestion: `Each schema key must be unique across schema directories`,
|
|
585
|
-
});
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
stats.uniqueKeysVerified = keyToFiles.size + schemaKeyToFiles.size;
|
|
556
|
+
// Check for duplicate keys across directories (case-insensitive — see
|
|
557
|
+
// detectDuplicateKeys).
|
|
558
|
+
const uniqueConfigKeys = detectDuplicateKeys(allConfigs, 'key', issues);
|
|
559
|
+
const uniqueSchemaKeys = detectDuplicateKeys(allSchemaFiles, 'schema key', issues);
|
|
560
|
+
stats.uniqueKeysVerified = uniqueConfigKeys + uniqueSchemaKeys;
|
|
589
561
|
const hasErrors = issues.some((i) => i.severity === 'error');
|
|
590
562
|
return { issues, filesChecked, valid: !hasErrors, stats };
|
|
591
563
|
}
|
|
@@ -800,37 +772,9 @@ export function validateFileMap(files) {
|
|
|
800
772
|
}
|
|
801
773
|
}
|
|
802
774
|
}
|
|
803
|
-
// Duplicate keys
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
const existing = keyToFiles.get(c.key) || [];
|
|
807
|
-
existing.push(c.file);
|
|
808
|
-
keyToFiles.set(c.key, existing);
|
|
809
|
-
}
|
|
810
|
-
for (const [key, fileList] of keyToFiles) {
|
|
811
|
-
if (fileList.length > 1) {
|
|
812
|
-
issues.push({
|
|
813
|
-
file: fileList.join(', '),
|
|
814
|
-
message: `Duplicate key "${key}" found in multiple files`,
|
|
815
|
-
severity: 'error',
|
|
816
|
-
});
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
const schemaKeyToFiles = new Map();
|
|
820
|
-
for (const schemaFile of allSchemaFiles) {
|
|
821
|
-
const existing = schemaKeyToFiles.get(schemaFile.key) || [];
|
|
822
|
-
existing.push(schemaFile.file);
|
|
823
|
-
schemaKeyToFiles.set(schemaFile.key, existing);
|
|
824
|
-
}
|
|
825
|
-
for (const [key, fileList] of schemaKeyToFiles) {
|
|
826
|
-
if (fileList.length > 1) {
|
|
827
|
-
issues.push({
|
|
828
|
-
file: fileList.join(', '),
|
|
829
|
-
message: `Duplicate schema key "${key}" found in multiple files`,
|
|
830
|
-
severity: 'error',
|
|
831
|
-
});
|
|
832
|
-
}
|
|
833
|
-
}
|
|
775
|
+
// Duplicate keys (case-insensitive — see detectDuplicateKeys).
|
|
776
|
+
detectDuplicateKeys(allConfigs, 'key', issues);
|
|
777
|
+
detectDuplicateKeys(allSchemaFiles, 'schema key', issues);
|
|
834
778
|
const hasErrors = issues.some((i) => i.severity === 'error');
|
|
835
779
|
return { issues, filesChecked, valid: !hasErrors, stats: emptyStats() };
|
|
836
780
|
}
|
|
@@ -855,12 +799,42 @@ function validateEnvironmentIds(environments, file, issues) {
|
|
|
855
799
|
}
|
|
856
800
|
}
|
|
857
801
|
}
|
|
858
|
-
|
|
802
|
+
// FS-safety floor checks (qfg-6na9.4). These are the names that pass the loose
|
|
803
|
+
// historical rule but produce a file that cannot be cloned/checked-out on a
|
|
804
|
+
// customer machine (macOS/Windows). The audit (project/plans/26-06-tighter-naming.md,
|
|
805
|
+
// "FS-safety floor") found ZERO existing violations, so every one is a hard
|
|
806
|
+
// error from day one.
|
|
807
|
+
//
|
|
808
|
+
// IMPORTANT: this floor must stay conceptually in lockstep with app-quonfig's
|
|
809
|
+
// src/lib/domain/config-schemas.ts (the charset precedent there is
|
|
810
|
+
// `SchemaKeySchema`; Policy A is `PolicyAKeySchema`). The general charset check
|
|
811
|
+
// (`^[A-Za-z0-9._-]+$`) is deliberately NOT here — it ships separately as a
|
|
812
|
+
// warning (bead qfg-6na9.5). This module is the FS-floor + dedup only.
|
|
813
|
+
//
|
|
814
|
+
// Structured as a table so severity is trivially adjustable later.
|
|
815
|
+
const FS_SAFETY_FLOOR_CHECKS = [
|
|
816
|
+
{ test: (k) => k.startsWith('.'), message: `Key has a leading dot (files starting with "." are skipped by verify)` },
|
|
817
|
+
// eslint-disable-next-line no-control-regex -- matching control chars/NUL is the point
|
|
818
|
+
{ test: (k) => /[\u0000-\u001F\u007F]/.test(k), message: `Key contains control chars or NUL` },
|
|
819
|
+
{ test: (k) => /["*:<>?|]/.test(k), message: `Key contains Windows-reserved chars (: * ? " < > |)` },
|
|
820
|
+
{
|
|
821
|
+
test: (k) => /^(con|prn|aux|nul|com[1-9]|lpt[1-9])$/i.test(k.split('.')[0]),
|
|
822
|
+
message: `Key is a Windows reserved device name (con/prn/aux/nul/com1-9/lpt1-9)`,
|
|
823
|
+
},
|
|
824
|
+
{ test: (k) => /[ .]$/.test(k), message: `Key has a trailing dot or space (silently stripped on Windows)` },
|
|
825
|
+
];
|
|
826
|
+
// Exported so the FS-safety floor (incl. the leading-dot rule, whose files are
|
|
827
|
+
// pre-filtered by the directory walk before they'd reach the file-map path) can
|
|
828
|
+
// be unit-tested directly.
|
|
829
|
+
export function validateKey(key, file, issues) {
|
|
859
830
|
if (key.length === 0) {
|
|
860
831
|
issues.push({ file, message: `Key is empty`, severity: 'error' });
|
|
861
832
|
}
|
|
862
|
-
|
|
863
|
-
|
|
833
|
+
// Length cap lowered 512 -> 200 (project/plans/26-06-tighter-naming.md,
|
|
834
|
+
// "Length cap: 200"): ASCII-only Policy A means 200 chars == 200 bytes, well
|
|
835
|
+
// under the 255-byte filesystem path-component limit even with `.json`.
|
|
836
|
+
if (key.length > 200) {
|
|
837
|
+
issues.push({ file, message: `Key exceeds 200 characters (${key.length})`, severity: 'error' });
|
|
864
838
|
}
|
|
865
839
|
if (key === 'new') {
|
|
866
840
|
issues.push({ file, message: `Key cannot be "new" (reserved)`, severity: 'error' });
|
|
@@ -868,6 +842,54 @@ function validateKey(key, file, issues) {
|
|
|
868
842
|
if (/[/\\]/.test(key)) {
|
|
869
843
|
issues.push({ file, message: `Key contains slash or backslash`, severity: 'error' });
|
|
870
844
|
}
|
|
845
|
+
for (const check of FS_SAFETY_FLOOR_CHECKS) {
|
|
846
|
+
if (check.test(key)) {
|
|
847
|
+
issues.push({ file, message: check.message, severity: 'error' });
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
// Case-insensitive duplicate-key detection (qfg-6na9.4,
|
|
852
|
+
// project/plans/26-06-tighter-naming.md "Case-insensitive uniqueness").
|
|
853
|
+
// `Foo` and `foo` are distinct keys server-side (case-sensitive Linux ext4) but
|
|
854
|
+
// collide to one file on a case-insensitive macOS/Windows clone, silently
|
|
855
|
+
// dropping a config. Group by the DOWNCASED key and branch the message:
|
|
856
|
+
// - all original keys byte-identical -> exact-duplicate message
|
|
857
|
+
// - they differ only by case -> case-collision message
|
|
858
|
+
// The audit found 0 such collisions today, so this is a hard error from day one.
|
|
859
|
+
function detectDuplicateKeys(entries, label, issues) {
|
|
860
|
+
const byLowercase = new Map();
|
|
861
|
+
for (const e of entries) {
|
|
862
|
+
const lower = e.key.toLowerCase();
|
|
863
|
+
const existing = byLowercase.get(lower) || [];
|
|
864
|
+
existing.push(e);
|
|
865
|
+
byLowercase.set(lower, existing);
|
|
866
|
+
}
|
|
867
|
+
for (const group of byLowercase.values()) {
|
|
868
|
+
if (group.length <= 1)
|
|
869
|
+
continue;
|
|
870
|
+
const files = group.map((g) => g.file).join(', ');
|
|
871
|
+
const originalKeys = group.map((g) => g.key);
|
|
872
|
+
const allIdentical = originalKeys.every((k) => k === originalKeys[0]);
|
|
873
|
+
if (allIdentical) {
|
|
874
|
+
issues.push({
|
|
875
|
+
file: files,
|
|
876
|
+
message: `Duplicate ${label} "${originalKeys[0]}" found in multiple files`,
|
|
877
|
+
severity: 'error',
|
|
878
|
+
suggestion: label === 'schema key'
|
|
879
|
+
? `Each schema key must be unique across schema directories`
|
|
880
|
+
: `Each key must be unique across the workspace`,
|
|
881
|
+
});
|
|
882
|
+
}
|
|
883
|
+
else {
|
|
884
|
+
issues.push({
|
|
885
|
+
file: files,
|
|
886
|
+
message: `Keys differ only by case (${originalKeys.join(', ')}); they collide to one file on case-insensitive filesystems (macOS/Windows)`,
|
|
887
|
+
severity: 'error',
|
|
888
|
+
suggestion: `Rename so the ${label}s are also unique when lowercased`,
|
|
889
|
+
});
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
return byLowercase.size;
|
|
871
893
|
}
|
|
872
894
|
function validateRules(rules, file, context, expectedValueType, issues, variants = []) {
|
|
873
895
|
if (rules.length === 0) {
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.0.
|
|
1
|
+
declare const _default: "0.0.65";
|
|
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.65';
|
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.65",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/quonfig/cli/issues"
|
|
7
7
|
},
|