@quonfig/cli 0.0.61 → 0.0.63
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/commands/info.d.ts +2 -0
- package/dist/commands/info.js +50 -11
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
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.63 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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/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.63/src/commands/workspace/switch.ts)_
|
|
2331
2331
|
<!-- commandsstop -->
|
|
2332
2332
|
|
|
2333
2333
|
## Local Development
|
package/dist/commands/info.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ export default class Info extends APICommand {
|
|
|
12
12
|
};
|
|
13
13
|
run(): Promise<JsonObj | void>;
|
|
14
14
|
private displayEvaluationStats;
|
|
15
|
+
private evalRowCount;
|
|
16
|
+
private evalRowValue;
|
|
15
17
|
private extractSimpleValue;
|
|
16
18
|
private fetchEvaluationStats;
|
|
17
19
|
private formatValue;
|
package/dist/commands/info.js
CHANGED
|
@@ -108,12 +108,11 @@ Related commands:
|
|
|
108
108
|
for (const interval of envStats.intervals) {
|
|
109
109
|
if (interval.data) {
|
|
110
110
|
for (const dataPoint of interval.data) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
valueBreakdown.set(valueKey, (valueBreakdown.get(valueKey) || 0) + (dataPoint.count || 0));
|
|
111
|
+
const count = this.evalRowCount(dataPoint);
|
|
112
|
+
totalEvaluations += count;
|
|
113
|
+
const parsedValue = this.evalRowValue(dataPoint);
|
|
114
|
+
const valueKey = parsedValue ? this.extractSimpleValue(parsedValue) : 'unknown';
|
|
115
|
+
valueBreakdown.set(valueKey, (valueBreakdown.get(valueKey) || 0) + count);
|
|
117
116
|
}
|
|
118
117
|
}
|
|
119
118
|
}
|
|
@@ -156,6 +155,40 @@ Related commands:
|
|
|
156
155
|
this.log('');
|
|
157
156
|
}
|
|
158
157
|
}
|
|
158
|
+
// The analytics/evaluationStats endpoint returns ClickHouse EvalStatRow[]
|
|
159
|
+
// (app-quonfig/src/lib/clickhouse/queries.ts): each row carries `total` (the
|
|
160
|
+
// evaluation count) and `selected_value` — a JSON-encoded STRING like
|
|
161
|
+
// '{"bool":false}', NOT an object. Earlier code read `count` / `selectedValue`
|
|
162
|
+
// (an object), which silently yielded 0 / undefined: totals summed to 0
|
|
163
|
+
// ("No evaluations found" even with real data) and the undefined value crashed
|
|
164
|
+
// transformValueForJson ('Cannot read properties of undefined (reading bool)').
|
|
165
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
166
|
+
evalRowCount(dataPoint) {
|
|
167
|
+
const total = dataPoint?.total;
|
|
168
|
+
return typeof total === 'number' ? total : Number(total) || 0;
|
|
169
|
+
}
|
|
170
|
+
// Parse a row's `selected_value` into the object shape ({bool: false}, etc.)
|
|
171
|
+
// that extractSimpleValue / transformValueForJson expect. Returns undefined
|
|
172
|
+
// for missing or unparseable values so callers render them as 'unknown'
|
|
173
|
+
// rather than throwing.
|
|
174
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
175
|
+
evalRowValue(dataPoint) {
|
|
176
|
+
const raw = dataPoint?.selected_value;
|
|
177
|
+
if (raw === undefined || raw === null)
|
|
178
|
+
return undefined;
|
|
179
|
+
if (typeof raw === 'object')
|
|
180
|
+
return raw;
|
|
181
|
+
if (typeof raw === 'string') {
|
|
182
|
+
try {
|
|
183
|
+
const parsed = JSON.parse(raw);
|
|
184
|
+
return typeof parsed === 'object' && parsed !== null ? parsed : undefined;
|
|
185
|
+
}
|
|
186
|
+
catch {
|
|
187
|
+
return undefined;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return undefined;
|
|
191
|
+
}
|
|
159
192
|
extractSimpleValue(value) {
|
|
160
193
|
if (!value)
|
|
161
194
|
return 'null';
|
|
@@ -452,17 +485,19 @@ Related commands:
|
|
|
452
485
|
for (const interval of envStats.intervals) {
|
|
453
486
|
if (interval.data) {
|
|
454
487
|
for (const dataPoint of interval.data) {
|
|
455
|
-
|
|
488
|
+
const count = this.evalRowCount(dataPoint);
|
|
489
|
+
totalEvaluations += count;
|
|
490
|
+
const parsedValue = this.evalRowValue(dataPoint);
|
|
456
491
|
// Create a key for deduplication
|
|
457
|
-
const valueKey = JSON.stringify(
|
|
492
|
+
const valueKey = JSON.stringify(parsedValue ?? null);
|
|
458
493
|
const existing = seenValues.get(valueKey);
|
|
459
494
|
if (existing) {
|
|
460
|
-
existing.count +=
|
|
495
|
+
existing.count += count;
|
|
461
496
|
}
|
|
462
497
|
else {
|
|
463
498
|
const entry = {
|
|
464
|
-
configValue: this.transformValueForJson(
|
|
465
|
-
count
|
|
499
|
+
configValue: parsedValue ? this.transformValueForJson(parsedValue) : {},
|
|
500
|
+
count,
|
|
466
501
|
};
|
|
467
502
|
seenValues.set(valueKey, entry);
|
|
468
503
|
valueCounts.push(entry);
|
|
@@ -499,6 +534,10 @@ Related commands:
|
|
|
499
534
|
};
|
|
500
535
|
}
|
|
501
536
|
transformValueForJson(value) {
|
|
537
|
+
// Tolerate a missing value — a row with no selected_value should render as
|
|
538
|
+
// an empty object, never throw 'Cannot read properties of undefined'.
|
|
539
|
+
if (!value || typeof value !== 'object')
|
|
540
|
+
return {};
|
|
502
541
|
// If already in new format ({bool: true}, {string: "test"}, etc.), return as-is
|
|
503
542
|
if (value.bool !== undefined ||
|
|
504
543
|
value.string !== undefined ||
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.0.
|
|
1
|
+
declare const _default: "0.0.63";
|
|
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.63';
|
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.63",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/quonfig/cli/issues"
|
|
7
7
|
},
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@oclif/core": "^3.18.2",
|
|
22
22
|
"@oclif/plugin-help": "^6",
|
|
23
23
|
"@oclif/plugin-plugins": "^4",
|
|
24
|
-
"@quonfig/node": "^0.0
|
|
24
|
+
"@quonfig/node": "^1.0.0",
|
|
25
25
|
"acorn": "^8.10.0",
|
|
26
26
|
"acorn-walk": "^8.3.5",
|
|
27
27
|
"chalk": "^5.6.2",
|